https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32040

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Suma Sharma from comment #2)
> (In reply to comment #1)
> > This works as designed.
> > 
> 
> 
> Thank you for your reply.
> Please confirm whether it is expected behaviour (that means it is not a bug).
> 
> But it was also observed that
> 1. there is a difference in result when compiled with -O0 option(with all
> -O2 flags enabled) and compiled with -O2 ?
> 2. there is a difference in result when compiled with -O2 option(with all
> -O2 flags disabled) and compiled with -O0 ?

There is a define which is defined when using -O1 and above (__OPTIMIZED__),
the GNU libc uses that define to define some inline function versions of the
standard functions.

Reply via email to