This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC viciously beaten by ICC in trig test!


On Mon, Mar 15, 2004 at 08:25:31AM -0800, Stephan T. Lavavej wrote:
> I recently found that math.h (on GNU/Linux and MinGW, no less) was
> prototyping some fool function named y1, which is not ISO.  I didn't want

y1 is indeed just Unix 95, Unix 98, Unix 2003, SVID3 and 4.3BSD function.
In glibc, you get y1 prototyped in math.h if you request BSD, SVID or XOPEN
standards.  BSD and SVID are the defaults if you don't choose any standards.
If you want say strict ISO C99 (or ISO C90), just compile with gcc -std=c99,
gcc -D_ISOC99_SOURCE or gcc -std=c89, gcc -ansi and y1 will not be prototyped.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]