home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / bug / 3036 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.4 KB  |  39 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.utexas.edu!meyering
  3. From: meyering@cs.utexas.edu (Jim Meyering)
  4. Subject: getting gcc to use ANSI ctype macros on SGIs
  5. Message-ID: <ljch4qINNa2o@ai.cs.utexas.edu>
  6. Keywords: SGI, Irix-4.0.5, gcc, ANSI, ctype macros
  7. Sender: gnulists@ai.mit.edu
  8. Organization: U of TX at Austin CS Dept
  9. Distribution: gnu
  10. Date: Mon, 21 Dec 1992 10:26:34 GMT
  11. Approved: bug-gcc@prep.ai.mit.edu
  12. Lines: 25
  13.  
  14. I noticed recently that cc (without -ansi) and gcc on SGIs running
  15. irix-4.0.5 have ANSI ctype macros that aren't ANSI.  The problem is
  16. that all macros but isascii are undefined for non-ASCII character codes.
  17. E.g. compiled with `cc' this program aborts
  18.  
  19.   #include <ctype.h>
  20.   main() {if (isprint (0377)) abort(); exit(0);}
  21.  
  22. With `cc -ansi' it exits normally.
  23. The only difference I could see is that plain `cc' uses /usr/lib/crt1.o
  24. and `cc -ansi' uses /usr/lib/acrt1.o.
  25.  
  26. I want gcc to get the ANSI ctype tables, so I changed the specs file
  27. so that gcc uses acrt1.o.
  28.  
  29. So far, this is the only difference I know of -- other than what nm
  30. told me: that a couple of entrypoints like `environ' are in crt1.o, but
  31. not in acrt1.o.
  32.  
  33. Is there any reason not to make gcc use the ANSI start file?
  34.  
  35. -- 
  36. Jim Meyering             | Member of the League for Programming Freedom
  37. meyering@cs.utexas.edu   | Contact me or lpf@uunet.uu.net for more info.
  38.  
  39.