Documentation request for -ansi

Zack Weinberg zack@wolery.cumb.org
Wed Jun 21 15:35:00 GMT 2000


On Thu, Jun 22, 2000 at 12:14:32AM +0200, Philipp Thomas wrote:
> * Claus Fischer (claus.fischer@intel.com) [20000621 19:35]:
> 
> > Repetitive trauma from -ansi
> > ============================
> > 
> > This probably happens mostly to numerics folks.
> 
> IMO you've choosen the wrong list. This is a library issue, not one of gcc,
> so you should contact the glibc developers, not the gcc ones. Feel free to
> correct me if I've misunderstood you.

I know what they'll say: if you need erf() or any function not in C89,
don't use -ansi.

This is of course not very helpful.  I would suggest you try 
-ansi -D_XOPEN_SOURCE=500; that gets you a conforming-mode compiler,
and (I think) all of the C library except the GNU extensions.

zw


More information about the Gcc mailing list