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: IRIX fixincludes



Zack was kind enough to audit the IRIX includes diffs, and spotted one
over-agressive fix, cured with this patch.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

Sat Nov 11 21:14:02 2000  Mark P Mitchell  <mark@codesourcery.com>

	* fixinc/inclhack.def (sunos_matherr_decl): Bypass matherr
	declarations that use `__MATH_EXCEPTION' in their prototypes, too.
	* fixinc/fixincl.x: Regenerated.
	
Index: fixinc/fixincl.x
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fixinc/fixincl.x,v
retrieving revision 1.91
diff -c -p -r1.91 fixincl.x
*** fixincl.x	2000/11/11 21:40:27	1.91
--- fixincl.x	2000/11/12 04:11:11
*************** tSCC zSunos_Matherr_DeclSelect0[] =
*** 4023,4029 ****
   *  content bypass pattern - skip fix if pattern found
   */
  tSCC zSunos_Matherr_DeclBypass0[] =
!        "matherr.*struct exception";
  
  #define    SUNOS_MATHERR_DECL_TEST_CT  2
  static tTestDesc aSunos_Matherr_DeclTests[] = {
--- 4023,4029 ----
   *  content bypass pattern - skip fix if pattern found
   */
  tSCC zSunos_Matherr_DeclBypass0[] =
!        "matherr.*(struct exception|__MATH_EXCEPTION)";
  
  #define    SUNOS_MATHERR_DECL_TEST_CT  2
  static tTestDesc aSunos_Matherr_DeclTests[] = {
Index: fixinc/inclhack.def
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fixinc/inclhack.def,v
retrieving revision 1.94
diff -c -p -r1.94 inclhack.def
*** inclhack.def	2000/11/11 21:40:27	1.94
--- inclhack.def	2000/11/12 04:11:11
*************** fix = {
*** 2203,2209 ****
      files     = math.h;
  
      /*  If matherr has a prototype already, the header needs no fix.  */
!     bypass    = 'matherr.*struct exception';
      select    = matherr;
  
      c_fix     = wrap;
--- 2203,2209 ----
      files     = math.h;
  
      /*  If matherr has a prototype already, the header needs no fix.  */
!     bypass    = 'matherr.*(struct exception|__MATH_EXCEPTION)';
      select    = matherr;
  
      c_fix     = wrap;

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