This is the mail archive of the gcc-patches@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]

fix target/5996


The comment below is hopefully self-explanitory.  I've managed
to get a good bootstrap on solaris 2.8 with this.


r~


        PR target/5996
        * fixinc/inclhack.def (solaris_stdio_tag): New.
        * fixinc/fixincl.x: Regenerate.

Index: inclhack.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.120.2.1
diff -c -p -d -r1.120.2.1 inclhack.def
*** inclhack.def	2002/03/21 01:07:54	1.120.2.1
--- inclhack.def	2002/03/22 02:10:19
*************** fix = {
*** 2061,2066 ****
--- 2061,2082 ----
  
  
  /*
+  * Solaris 2.8 has what appears to be some gross workaround for 
+  * some old version of their c++ compiler.  G++ doesn't want it
+  * either, but doesn't want to be tied to SunPRO version numbers.
+  */
+ fix = {
+     hackname = solaris_stdio_tag;
+     files    = stdio_tag.h;
+ 
+     select   = '__cplusplus < 54321L';
+     sed      = 's/defined(__cplusplus) && (__cplusplus < 54321L)/0/';
+ 
+     test_text = '#if\tdefined(__cplusplus) && (__cplusplus < 54321L)';
+ };
+ 
+ 
+ /*
   *  Sony NEWSOS 5.0 does not support the complete ANSI C standard.
   */
  #ifdef SONY


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