[Bug c/32040] Including a header file inside a function block results compilation error
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 29 07:46:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list