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]

3.4/3.5 PATCH: Disable wrong svr4_profil fix on IRIX 5/6


Trying to build gdb 6.1 on IRIX 5.3 and 6.5 with current gcc, I noticed
that the svr4_profil fix is wrong on that platform: the `fixed' prototype
conflicts both with the man page and another one in <sys/profil.h>.

The following patch fixes this.

Mainline bootstrap on mips-sgi-irix6.5 in progress (into stage2 already,
and unistd.h correctly hasn't been modified).

Ok for mainline and 3.4 branch if they pass?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University



Thu Apr 29 00:08:16 2004  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
	* fixinc/fixincl.x: Regenerate.
	
Index: inclhack.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.196
diff -u -p -r1.196 inclhack.def
--- inclhack.def	24 Apr 2004 22:42:29 -0000	1.196
+++ inclhack.def	29 Apr 2004 18:48:31 -0000
@@ -3161,6 +3161,9 @@ fix = {
 
     select    =
     'profil\(unsigned short \*, unsigned int, unsigned int, unsigned int\)';
+    /* The fix is wrong on IRIX 5/6 and creates a conflict with another
+       prototype in <sys/profil.h>.  */
+    bypass    = 'Silicon Graphics';
     c_fix     = format;
     c_fix_arg = 'profil(unsigned short *, size_t, int, unsigned int)';
 


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