public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* RE: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
@ 2002-03-04 15:16 Billinghurst, David (CRTS)
  0 siblings, 0 replies; 6+ messages in thread
From: Billinghurst, David (CRTS) @ 2002-03-04 15:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libgcj/5789; it has been noted by GNATS.

From: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
To: "Zack Weinberg" <zack@codesourcery.com>
Cc: <java@gcc.gnu.org>,
	<hans_boehm@hp.com>,
	<gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>
Subject: RE: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
Date: Tue, 5 Mar 2002 07:08:51 +0800

 Works a treat.   I will start a full bootstrap.
 
 -----Original Message-----
 From: Zack Weinberg [mailto:zack@codesourcery.com]
 Sent: Tuesday, 5 March 2002 3:26=20
 To: Billinghurst, David (CRTS)
 Cc: java@gcc.gnu.org; hans_boehm@hp.com; gcc-gnats@gcc.gnu.org;
 gcc-bugs@gcc.gnu.org
 Subject: Re: libgcj/5789: boehm-gc won't build on irix - irix assembler
 chokes on #indent
 
 
 On Sat, Mar 02, 2002 at 09:53:54AM +0800, Billinghurst, David (CRTS) =
 wrote:
 > Version:  3.1 and 3.2
 > System: mips-sgi-irix6.5
 >=20
 > The problem
 >=20
 > Error compiling boehm-gc/mips_sgi_mach_dep.S
 >=20
 > as: Error: /usr/include/sys/regdef.h, line 17: Expected cpp-generated =
 line number
 > as INTERNAL ERROR:  /usr/lib32/cmplrs/asm returned non-zero status 1
 >=20
 >=20
 > Cause
 >=20
 > The Irix header files
 >   /usr/include/sys/regdef.h
 >   /usr/include/sgidefs.h
 >   /usr/include/sys/asm.h
 > contain #ident "$Revision: 3.52 $" lines.
 >=20
 > The gcc cpp passess these through to the .s file, and the irix
 > assembler chokes on them. =20
 
 Sounds like it's incorrect to emit #ident lines in CPP when we're
 processing assembly language.  That's not hard -- please try this
 patch.
 
 zw
 
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 Index: cppmain.c
 --- cppmain.c	2002/01/03 21:43:06	1.90
 +++ cppmain.c	2002/03/04 16:25:37
 @@ -193,8 +193,13 @@ setup_callbacks ()
    if (! options->no_output)
      {
        cb->line_change =3D cb_line_change;
 -      cb->ident      =3D cb_ident;
 -      cb->def_pragma =3D cb_def_pragma;
 +      /* Don't emit #pragma or #ident directives if we are processing
 +	 assembly language; the assembler may choke on them.  */
 +      if (options->lang !=3D CLK_ASM)
 +	{
 +	  cb->ident      =3D cb_ident;
 +	  cb->def_pragma =3D cb_def_pragma;
 +	}
        if (! options->no_line_commands)
  	cb->file_change =3D cb_file_change;
      }


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
@ 2002-03-04 15:36 Zack Weinberg
  0 siblings, 0 replies; 6+ messages in thread
From: Zack Weinberg @ 2002-03-04 15:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libgcj/5789; it has been noted by GNATS.

From: Zack Weinberg <zack@codesourcery.com>
To: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
Cc: java@gcc.gnu.org, hans_boehm@hp.com, gcc-gnats@gcc.gnu.org,
	gcc-bugs@gcc.gnu.org
Subject: Re: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
Date: Mon, 4 Mar 2002 15:28:20 -0800

 On Tue, Mar 05, 2002 at 07:08:51AM +0800, Billinghurst, David (CRTS) wrote:
 > Works a treat.   I will start a full bootstrap.
 
 Please let me know when it's finished, and I'll apply the patch.
 
 zw


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
@ 2002-03-04 12:26 Neil Booth
  0 siblings, 0 replies; 6+ messages in thread
From: Neil Booth @ 2002-03-04 12:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libgcj/5789; it has been noted by GNATS.

From: Neil Booth <neil@daikokuya.demon.co.uk>
To: Zack Weinberg <zack@codesourcery.com>
Cc: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>,
	java@gcc.gnu.org, hans_boehm@hp.com, gcc-gnats@gcc.gnu.org,
	gcc-bugs@gcc.gnu.org
Subject: Re: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
Date: Mon, 4 Mar 2002 20:18:19 +0000

 Zack Weinberg wrote:-
 
 > Sounds like it's incorrect to emit #ident lines in CPP when we're
 > processing assembly language.  That's not hard -- please try this
 > patch.
 
 If this flies, I think it should go in 3.1, and even 3.0.5.
 
 Neil.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
@ 2002-03-04  8:36 Zack Weinberg
  0 siblings, 0 replies; 6+ messages in thread
From: Zack Weinberg @ 2002-03-04  8:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libgcj/5789; it has been noted by GNATS.

From: Zack Weinberg <zack@codesourcery.com>
To: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
Cc: java@gcc.gnu.org, hans_boehm@hp.com, gcc-gnats@gcc.gnu.org,
	gcc-bugs@gcc.gnu.org
Subject: Re: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
Date: Mon, 4 Mar 2002 08:26:22 -0800

 On Sat, Mar 02, 2002 at 09:53:54AM +0800, Billinghurst, David (CRTS) wrote:
 > Version:  3.1 and 3.2
 > System: mips-sgi-irix6.5
 > 
 > The problem
 > 
 > Error compiling boehm-gc/mips_sgi_mach_dep.S
 > 
 > as: Error: /usr/include/sys/regdef.h, line 17: Expected cpp-generated line number
 > as INTERNAL ERROR:  /usr/lib32/cmplrs/asm returned non-zero status 1
 > 
 > 
 > Cause
 > 
 > The Irix header files
 >   /usr/include/sys/regdef.h
 >   /usr/include/sgidefs.h
 >   /usr/include/sys/asm.h
 > contain #ident "$Revision: 3.52 $" lines.
 > 
 > The gcc cpp passess these through to the .s file, and the irix
 > assembler chokes on them.  
 
 Sounds like it's incorrect to emit #ident lines in CPP when we're
 processing assembly language.  That's not hard -- please try this
 patch.
 
 zw
 
 ===================================================================
 Index: cppmain.c
 --- cppmain.c	2002/01/03 21:43:06	1.90
 +++ cppmain.c	2002/03/04 16:25:37
 @@ -193,8 +193,13 @@ setup_callbacks ()
    if (! options->no_output)
      {
        cb->line_change = cb_line_change;
 -      cb->ident      = cb_ident;
 -      cb->def_pragma = cb_def_pragma;
 +      /* Don't emit #pragma or #ident directives if we are processing
 +	 assembly language; the assembler may choke on them.  */
 +      if (options->lang != CLK_ASM)
 +	{
 +	  cb->ident      = cb_ident;
 +	  cb->def_pragma = cb_def_pragma;
 +	}
        if (! options->no_line_commands)
  	cb->file_change = cb_file_change;
      }


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
@ 2002-03-03 23:46 Bryce McKinlay
  0 siblings, 0 replies; 6+ messages in thread
From: Bryce McKinlay @ 2002-03-03 23:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libgcj/5789; it has been noted by GNATS.

From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
To: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
Cc: java@gcc.gnu.org, hans_boehm@hp.com, gcc-gnats@gcc.gnu.org,
   gcc-bugs@gcc.gnu.org
Subject: Re: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
Date: Mon, 04 Mar 2002 20:40:42 +1300

 Billinghurst, David (CRTS) wrote:
 
 >Cause
 >
 >The Irix header files
 >  /usr/include/sys/regdef.h
 >  /usr/include/sgidefs.h
 >  /usr/include/sys/asm.h
 >contain #ident "$Revision: 3.52 $" lines.
 >
 >The gcc cpp passess these through to the .s file, and the irix
 >assembler chokes on them. 
 >
 >Proper fix
 >
 >Don't know.  Perhaps:
 >  - get gcc cpp to remove #ident lines
 >  - fix headers
 >
 
 Best fix would be to write a fixincludes haxie to fix these headers. 
 This probibly won't be hard, but it sounds like the path of least 
 resistance will be to just rename it back to .s (since, afaik, there is 
 no actual problem with having it called .s on irix, apart from the lack 
 of consistency with the other files).
 
 regards
 
 Bryce.
 
 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
@ 2002-03-01 22:46 Billinghurst, David (CRTS)
  0 siblings, 0 replies; 6+ messages in thread
From: Billinghurst, David (CRTS) @ 2002-03-01 22:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libgcj/5789; it has been noted by GNATS.

From: "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com>
To: <java@gcc.gnu.org>
Cc: <hans_boehm@hp.com>,
	<gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>
Subject: RE: libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent
Date: Sat, 2 Mar 2002 09:53:54 +0800

 Version:  3.1 and 3.2
 System: mips-sgi-irix6.5
 
 The problem
 
 Error compiling boehm-gc/mips_sgi_mach_dep.S
 
 as: Error: /usr/include/sys/regdef.h, line 17: Expected cpp-generated =
 line number
 as INTERNAL ERROR:  /usr/lib32/cmplrs/asm returned non-zero status 1
 
 
 Cause
 
 The Irix header files
   /usr/include/sys/regdef.h
   /usr/include/sgidefs.h
   /usr/include/sys/asm.h
 contain #ident "$Revision: 3.52 $" lines.
 
 The gcc cpp passess these through to the .s file, and the irix
 assembler chokes on them.  If the lines are removed from the .s
 file it can be assembled.
 
 The irix cpp removes #ident lines.
 
 
 Work around
 
 Renaming the file to .s works in this case, as irix assembler=20
 runs the irix cpp on the file by default.  This was the case for=20
 gcc-3.0.
 
 
 Proper fix
 
 Don't know.  Perhaps:
   - get gcc cpp to remove #ident lines
   - fix headers


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-03-04 23:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-04 15:16 libgcj/5789: boehm-gc won't build on irix - irix assembler chokes on #indent Billinghurst, David (CRTS)
  -- strict thread matches above, loose matches on Subject: below --
2002-03-04 15:36 Zack Weinberg
2002-03-04 12:26 Neil Booth
2002-03-04  8:36 Zack Weinberg
2002-03-03 23:46 Bryce McKinlay
2002-03-01 22:46 Billinghurst, David (CRTS)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).