Re: fix aix build error with math.h in gcc/sreal.c

2014-12-17 Thread Mike Stump
On Dec 17, 2014, at 1:34 AM, Richard Biener wrote: > Do we even link GCC with libm …? Yes. :-) If you grew up on C++, you would realize, -lm as you call it, is just there in C++, always. If you compile with g++ -v, you will even see it. > Also we don't require a C99 runtime, With the major

Re: fix aix build error with math.h in gcc/sreal.c

2014-12-17 Thread Richard Biener
On Tue, Dec 16, 2014 at 8:05 PM, Jan Hubicka wrote: >> On Tue, Dec 16, 2014 at 5:04 PM, Michael Haubenwallner >> wrote: >> > Recent commit 218765 adding sreal::to_double() breaks on AIX due to math.h >> > being included before _LARGE_FILES and __STDC_FORMAT_MACROS being defined >> > later in conf

Re: fix aix build error with math.h in gcc/sreal.c

2014-12-16 Thread Jan Hubicka
> On Tue, Dec 16, 2014 at 5:04 PM, Michael Haubenwallner > wrote: > > Recent commit 218765 adding sreal::to_double() breaks on AIX due to math.h > > being included before _LARGE_FILES and __STDC_FORMAT_MACROS being defined > > later in config.h and system.h, respectively. > > sreal.c shouldn't in

Re: fix aix build error with math.h in gcc/sreal.c

2014-12-16 Thread Richard Biener
On Tue, Dec 16, 2014 at 5:04 PM, Michael Haubenwallner wrote: > Recent commit 218765 adding sreal::to_double() breaks on AIX due to math.h > being included before _LARGE_FILES and __STDC_FORMAT_MACROS being defined > later in config.h and system.h, respectively. sreal.c shouldn't include math.h,

fix aix build error with math.h in gcc/sreal.c

2014-12-16 Thread Michael Haubenwallner
Recent commit 218765 adding sreal::to_double() breaks on AIX due to math.h being included before _LARGE_FILES and __STDC_FORMAT_MACROS being defined later in config.h and system.h, respectively. 2014-12-16 Michael Haubenwallner Both config.h and system.h define ABI/API macros for system