This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


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

[fixinc patch] Re: misp-sgi-irix5.2 assembler-preprocessor error building libgcj


On Jul 31, 1999, Tom Tromey <tromey@cygnus.com> wrote:

>>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:
Alexandre> In file included from /home/phd/oliva/src/libgcj-2.95/boehm-gc/mips_sgi_mach_dep.s:2:
Alexandre> /usr/include/sys/asm.h:620: unterminated string or character constant

Alexandre> oliva@escher% sed -n 620p /usr/include/sys/asm.h
Alexandre> # Now we're executing in Kernel Physical (KP) space
Alexandre>         ^ the culprit

> Did you ever get an answer to this?

Nope.  Here's a patch for gcc.  Is this ok to install?  Release
branch?

Index: gcc/ChangeLog
from  Alexandre Oliva  <oliva@dcc.unicamp.br>
	
	* fixinc/inclhack.def: Replace ``We're'' with ``We are'' in IRIX's 
	asm comment.
	
Index: gcc/fixinc/inclhack.def
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/fixinc/inclhack.def,v
retrieving revision 1.33
diff -u -r1.33 inclhack.def
--- gcc/fixinc/inclhack.def	1999/08/03 04:06:30	1.33
+++ gcc/fixinc/inclhack.def	1999/08/07 02:47:40
@@ -708,6 +708,20 @@
 
 
 /*
+ *  IRIX 5.2's <sys/asm.h> contains an asm comment with a contraction
+ *  that causes the assembly preprocessor to complain about an
+ *  unterminated character constant.
+ */
+fix = {
+    hackname = irix_asm_apostrophe;
+    files    = sys/asm.h;
+
+    select   = "^[ \t]#.*[Ww]e're";
+    sed      = "s/'/ a/";
+}
+    
+
+/*
  *  IRIX 4.0.5 <rpc/auth.h> uses struct sockaddr
  *  in prototype without previous definition.
  */

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them

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