Welcome! Log In Create A New Profile

Advanced

Re: inlining

Jeffrey Walton
February 18, 2014 04:36PM
On Tue, Feb 18, 2014 at 2:51 PM, atarob <nginx-forum@nginx.us> wrote:
> Pankaj Mehta Wrote:
> -------------------------------------------------------
>> These should be covered during the link time optimisations.
>>
>> Look here for gcc: http://gcc.gnu.org/wiki/LinkTimeOptimization
>
> I was very much unaware of this. The linker actually compiles..... Wow.
>
LTO also allows the linker to silently drop code with undefined
behavior. The compiler and linker are free to do what they want with
UB, including making demons fly out your nose [0].

So if the code includes, for example, signed integer overflow, then it
may result in incorrect results. The baffling thing will be when the
test suite passed earlier becuase the UB was not detected under the
test suite.

Jeff

[0] https://groups.google.com/forum/?hl=en#!msg/comp.std.c/ycpVKxTZkgw/S2hHdTbv4d8J

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

inlining

atarob February 14, 2014 04:59PM

Re: inlining

Styopa Semenukha February 14, 2014 05:52PM

Re: inlining

atarob February 14, 2014 06:24PM

Re: inlining

Pankaj Mehta February 14, 2014 07:02PM

Re: inlining

atarob February 18, 2014 02:51PM

Re: inlining

Jeffrey Walton February 18, 2014 04:36PM

Re: inlining

Maxim Dounin February 17, 2014 09:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready