This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: g++ 4.8 fails with -Ox option
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Patrick Begou <Patrick dot Begou at legi dot grenoble-inp dot fr>
- Cc: Ian Lance Taylor <iant at google dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 22 Jul 2013 17:47:51 +0100
- Subject: Re: g++ 4.8 fails with -Ox option
- References: <51E930AF dot 9000800 at legi dot grenoble-inp dot fr> <CAKOQZ8ws50Tp-3cKHOkpXZ7-QEYjd2aw3Bn02ZhB7Sejja=_Xg at mail dot gmail dot com> <51ED5C52 dot 5030909 at legi dot grenoble-inp dot fr>
On 22 July 2013 17:22, Patrick Begou wrote:
> Ian Lance Taylor wrote:
>>
>>
>> Using optimization changes how your library header files behave. Look
>> for #ifdef __OPTIMIZE__ or defined(__OPTIMIZE__). This looks like a
>> problem with your C library, not with GCC proper.
>>
>> Ian
>>
> In http://gfortran.com/download/x86_64/PLEASE_README.txt the requirement for
> glibc is :
> "... The provided compilers need glibc 2.4 or newer, however the library
> libgomp needs glibc 2.6...."
>
> I am runing glibc-devel-2.11.3-12.59.1.x86_64
> so my glibc level seams correct no ?
Yes, but Ian didn't say your glibc is too old. Try looking for
__OPTIMIZE__ and figuring out why you get different declarations with
optimization enabled.