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]

PATCH: Fixincl Irix's limits.h


To permit Irix6.5 to compile
gcc/testsuite/gcc.c-torture/execute/920730-1t.c with -traditional, we
fixinclude its /usr/include/limits.h to change "const" to "__const".

Thanks to Bruce Korb for his help.  All mistakes are, of course, my
responsibility.

2001-01-30  Jeffrey Oldham  <oldham@codesourcery.com>

        * fixinc/fixincl.tpl: Add 2001 to copyright.  Change name of
        README file.
        * fixinc/fixincl.x: Regenerated.
        * fixinc/inclhack.def (irix_limits_const): New definition to
        convert "const" to "__const" in limits.h.

Tested on       mips-sgi-irix6.5 (change to fixinc/inclhack.def and
		  fixinc/fixincl.x)
                i686-pc-linux-gnu (bootstrapping but not regression
                  tests and change to fixinc/fixincl.tpl).
Approved by     Mark Mitchell (mark@codesourcery.com)

Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
Index: fixincl.tpl
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fixinc/fixincl.tpl,v
retrieving revision 1.18
diff -c -p -r1.18 fixincl.tpl
*** fixincl.tpl	2000/12/11 21:04:39	1.18
--- fixincl.tpl	2001/01/31 02:33:44
*************** x=fixincl.x =]
*** 9,17 ****
   *
   * This file contains [=_eval fix _count =] fixup descriptions.
   *
!  * See README-fixinc for more information.
   *
!  *  inclhack copyright (c) 1998, 1999, 2000
   *  The Free Software Foundation, Inc.
   *
  [=_eval inclhack "# *  " _gpl=]
--- 9,17 ----
   *
   * This file contains [=_eval fix _count =] fixup descriptions.
   *
!  * See README for more information.
   *
!  *  inclhack copyright (c) 1998, 1999, 2000, 2001
   *  The Free Software Foundation, Inc.
   *
  [=_eval inclhack "# *  " _gpl=]
Index: inclhack.def
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fixinc/inclhack.def,v
retrieving revision 1.99
diff -c -p -r1.99 inclhack.def
*** inclhack.def	2000/12/14 06:11:11	1.99
--- inclhack.def	2001/01/31 02:33:45
*************** fix = {
*** 1284,1289 ****
--- 1284,1301 ----
  
  
  /*
+  *  Non-traditional "const" declaration in Irix's limits.h.
+  */
+ fix = {
+     hackname	= irix_limits_const;
+     files	= limits.h;
+     select	= "^extern const ";
+     c_fix	= format;
+     c_fix_arg	= "extern __const ";
+ };
+ 
+ 
+ /*
   * Fixing ISC fmod declaration
   */
  fix = {

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