public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
@ 2004-05-06 21:58 gcc-bugzilla at gcc dot gnu dot org
  2004-05-06 21:59 ` [Bug target/15331] " ro at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-05-06 21:58 UTC (permalink / raw)
  To: gcc-bugs

Bootstrapping the current 3.4 branch on IRIX 6.5 with GNU as from the binutils
2.15 branch fails due to what seems to be invalid assembler code:

../../xgcc -B../../ -c -g -O2      -W -Wall -gnatpg  s-mastop.adb -o s-mastop.o -v -save-temps                  
Reading specs from ../../specs
Configured with: /.vol/gcc/src/gcc-3.4-branch-dist/configure --prefix=/.vol/gcc --with-local-prefix=/.vol/gcc --disable-nls --with-gnu-as --with-as=/homes/ro/bin/gas-2.14.91 --enable-libgcj
Thread model: single
gcc version 3.4.1 20040506 (prerelease)
 ../../gnat1 -quiet -dumpbase s-mastop.adb -g -gnatpg -O2 -W -Wall -gnatO s-mastop.o s-mastop.adb -o s-mastop.s
 /homes/ro/bin/gas-2.14.91 --traditional-format -EB -O2 -g -no-mdebug -v -n32 -mips3 -o s-mastop.o s-mastop.s
GNU assembler version 2.14.91 (mips-sgi-irix6.5) using BFD version 2.14.91 20040506
s-mastop.s: Assembler messages:
s-mastop.s:108: Error: illegal operands `ld'
[...]

The file assembles ok with GNU as 2.14.90 20040209, but the affected lines seem
bogus nonetheless:

	ld $16,  16*8+ +16($4)

I'm not sure if the second `+' is interpreted as a unary plus here.  But (after
removing several instances of .[ul]eb128, even the native assembler groks this
file without problems.

Environment:
System: IRIX64 columba 6.5 10120104 IP27


	
host: mips-sgi-irix6.5
build: mips-sgi-irix6.5
target: mips-sgi-irix6.5
configured with: /.vol/gcc/src/gcc-3.4-branch-dist/configure --prefix=/.vol/gcc --with-local-prefix=/.vol/gcc --disable-nls --with-gnu-as --with-as=/homes/ro/bin/gas-2.14.91 --enable-libgcj

How-To-Repeat:
Bootstrap current 3.4 branch on IRIX 6.5 with Ada included as described above.

-- 
           Summary: Assembler error building gnatlib on IRIX 6.5 with GNU as
                    2.14.91
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at techfak dot uni-bielefeld dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: mips-sgi-irix6.5
  GCC host triplet: mips-sgi-irix6.5
GCC target triplet: mips-sgi-irix6.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
@ 2004-05-06 21:59 ` ro at gcc dot gnu dot org
  2004-05-06 22:00 ` ro at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ro at gcc dot gnu dot org @ 2004-05-06 21:59 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan-jaap dot vanderheijden
                   |                            |at phoenixbv dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
  2004-05-06 21:59 ` [Bug target/15331] " ro at gcc dot gnu dot org
@ 2004-05-06 22:00 ` ro at gcc dot gnu dot org
  2004-05-06 22:42 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ro at gcc dot gnu dot org @ 2004-05-06 22:00 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsandifo at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
  2004-05-06 21:59 ` [Bug target/15331] " ro at gcc dot gnu dot org
  2004-05-06 22:00 ` ro at gcc dot gnu dot org
@ 2004-05-06 22:42 ` pinskia at gcc dot gnu dot org
  2004-05-06 22:50 ` rsandifo at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-06 22:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-06 22:42 -------
I would say this is valid asm to me it the + is just an unary plus as it would be in C, I think gas is wrong 
but then again I do not know MIPS asm that well.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
   Target Milestone|---                         |3.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-05-06 22:42 ` pinskia at gcc dot gnu dot org
@ 2004-05-06 22:50 ` rsandifo at gcc dot gnu dot org
  2004-05-06 22:50 ` rsandifo at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2004-05-06 22:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rsandifo at gcc dot gnu dot org  2004-05-06 22:50 -------
Created an attachment (id=6240)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6240&action=view)
patch

Yeah, I'd noticed this too, and came up with the attached patch.
Unfortunately, Ada seems to assume the native linker, so it's
not going to be possible to use GNU ld even if this patch goes in.
And I'm never too sure how useful the --with-gnu-as --without-gnu-ld
combo is for n32 & n64.

"gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> The file assembles ok with GNU as 2.14.90 20040209, but the affected
> lines seem bogus nonetheless:
>
>	ld $16,  16*8+ +16($4)
>
> I'm not sure if the second `+' is interpreted as a unary plus here.
> But (after removing several instances of .[ul]eb128, even the native
> assembler groks this file without problems.

The second '+' used to be interpreted as a unary, but this was deliberately
changed by:

   http://sources.redhat.com/ml/binutils/2004-03/msg00400.html

Richard


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-05-06 22:50 ` rsandifo at gcc dot gnu dot org
@ 2004-05-06 22:50 ` rsandifo at gcc dot gnu dot org
  2004-05-10 13:59 ` ro at techfak dot uni-bielefeld dot de
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2004-05-06 22:50 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-06 22:50:55
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-05-06 22:50 ` rsandifo at gcc dot gnu dot org
@ 2004-05-10 13:59 ` ro at techfak dot uni-bielefeld dot de
  2004-05-12 14:56 ` rsandifo at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2004-05-10 13:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ro at techfak dot uni-bielefeld dot de  2004-05-10 13:59 -------
Subject: Re:  Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91

rsandifo at gcc dot gnu dot org writes:

> Yeah, I'd noticed this too, and came up with the attached patch.

Thanks, that worked for me.

> Unfortunately, Ada seems to assume the native linker, so it's
> not going to be possible to use GNU ld even if this patch goes in.

True, although this is only an issue for mainline (and will not be as soon
as tree-ssa is merged since Ada will stop working at this point): the 3.4
branch doesn't try to build the shared libgnat, so this issue doesn't come
up.

> And I'm never too sure how useful the --with-gnu-as --without-gnu-ld
> combo is for n32 & n64.

It used to work for me pretty well.  When I tried to use gas and gld, many
Ada testcases failed for me with linker errors, though I haven't yet
started to investigate what's going on there.

	Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-05-10 13:59 ` ro at techfak dot uni-bielefeld dot de
@ 2004-05-12 14:56 ` rsandifo at gcc dot gnu dot org
  2004-05-12 19:43 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2004-05-12 14:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rsandifo at gcc dot gnu dot org  2004-05-11 18:07 -------
Thanks for testing the patch.

"ro at techfak dot uni-bielefeld dot de" <gcc-bugzilla@gcc.gnu.org> writes:
>> Unfortunately, Ada seems to assume the native linker, so it's
>> not going to be possible to use GNU ld even if this patch goes in.
>
> True, although this is only an issue for mainline (and will not be as soon
> as tree-ssa is merged since Ada will stop working at this point): the 3.4
> branch doesn't try to build the shared libgnat, so this issue doesn't come
> up.

Ah, yes, you're right, I'd only tested mainline.  I've now tried 3.4,
and like you say, it builds fine with gld.

>> And I'm never too sure how useful the --with-gnu-as --without-gnu-ld
>> combo is for n32 & n64.
>
> It used to work for me pretty well.  When I tried to use gas and gld, many
> Ada testcases failed for me with linker errors, though I haven't yet
> started to investigate what's going on there.

Yeah, I'm seeing this too.  It looks like some of the objects have
no suffix and gld thinks they must be linker scripts.  Haven't had
a chance to look into it yet...

Anyway, I'm about to submit the patch.  I'll try my best to argue
that this is a regression ;)

Richard


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|rsandifo at redhat dot com  |
         AssignedTo|unassigned at gcc dot gnu   |rsandifo at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-05-12 14:56 ` rsandifo at gcc dot gnu dot org
@ 2004-05-12 19:43 ` cvs-commit at gcc dot gnu dot org
  2004-05-12 19:46 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-12 19:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-12 07:26 -------
Subject: Bug 15331

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rsandifo@gcc.gnu.org	2004-05-12 07:25:54

Modified files:
	gcc/ada        : ChangeLog 5gmastop.adb 

Log message:
	PR target/15331
	* 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/ChangeLog.diff?cvsroot=gcc&r1=1.501&r2=1.502
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/5gmastop.adb.diff?cvsroot=gcc&r1=1.11&r2=1.12



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2004-05-12 19:43 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-12 19:46 ` cvs-commit at gcc dot gnu dot org
  2004-05-12 20:01 ` rsandifo at gcc dot gnu dot org
  2004-05-15  9:01 ` ro at techfak dot uni-bielefeld dot de
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-12 19:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-12 07:28 -------
Subject: Bug 15331

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	rsandifo@gcc.gnu.org	2004-05-12 07:28:31

Modified files:
	gcc/ada        : ChangeLog 5gmastop.adb 

Log message:
	PR target/15331
	* 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.428.2.7&r2=1.428.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ada/5gmastop.adb.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.8&r2=1.8.4.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2004-05-12 19:46 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-12 20:01 ` rsandifo at gcc dot gnu dot org
  2004-05-15  9:01 ` ro at techfak dot uni-bielefeld dot de
  10 siblings, 0 replies; 12+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2004-05-12 20:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rsandifo at gcc dot gnu dot org  2004-05-12 07:36 -------
http://gcc.gnu.org/ml/gcc-patches/2004-05/msg00608.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

* [Bug target/15331] Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91
  2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2004-05-12 20:01 ` rsandifo at gcc dot gnu dot org
@ 2004-05-15  9:01 ` ro at techfak dot uni-bielefeld dot de
  10 siblings, 0 replies; 12+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2004-05-15  9:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ro at techfak dot uni-bielefeld dot de  2004-05-14 18:06 -------
Subject: Re:  Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91

rsandifo at gcc dot gnu dot org writes:

> Yeah, I'm seeing this too.  It looks like some of the objects have
> no suffix and gld thinks they must be linker scripts.  Haven't had
> a chance to look into it yet...

Me neither.  I'm currently running full bootstraps on irix5 and irix6 with
all three combinations (native as/ld, gas/native ld, and gas/gld) and will
see what I find.  I'll mostly have to find some time to investigate and fix
the results, though :-)

> Anyway, I'm about to submit the patch.  I'll try my best to argue
> that this is a regression ;)

Thanks alot for your help.

	Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15331


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

end of thread, other threads:[~2004-05-14 18:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06 21:58 [Bug target/15331] New: Assembler error building gnatlib on IRIX 6.5 with GNU as 2.14.91 gcc-bugzilla at gcc dot gnu dot org
2004-05-06 21:59 ` [Bug target/15331] " ro at gcc dot gnu dot org
2004-05-06 22:00 ` ro at gcc dot gnu dot org
2004-05-06 22:42 ` pinskia at gcc dot gnu dot org
2004-05-06 22:50 ` rsandifo at gcc dot gnu dot org
2004-05-06 22:50 ` rsandifo at gcc dot gnu dot org
2004-05-10 13:59 ` ro at techfak dot uni-bielefeld dot de
2004-05-12 14:56 ` rsandifo at gcc dot gnu dot org
2004-05-12 19:43 ` cvs-commit at gcc dot gnu dot org
2004-05-12 19:46 ` cvs-commit at gcc dot gnu dot org
2004-05-12 20:01 ` rsandifo at gcc dot gnu dot org
2004-05-15  9:01 ` ro at techfak dot uni-bielefeld dot de

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).