public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/28183]  New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils
@ 2006-06-27 21:24 tbm at cyrius dot com
  2006-06-27 22:21 ` [Bug target/28183] " tbm at cyrius dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tbm at cyrius dot com @ 2006-06-27 21:24 UTC (permalink / raw)
  To: gcc-bugs

[ forwarded from http://bugs.debian.org/375519 ]

We get the following assembler error when compiling the application cln.  The
error goes away when you drop -fPIC or when you use gcc 3.4.  Additionally, the
error does not show up with older releases of binutils.  While 2.16.91 20060413
produces the error, 2.16.91 20051117 works fine.

I'm not sure if this is a bug in binutils but given that gcc 3.4 works I'm
filing it as a gcc bug.  Andreas, since you're also involved in binutils, I
hope you know where to put the blame. ;-)

crest% g++-4.1 -fPIC -DPIC -c cl_MI.ii
crest% g++-4.1 -fPIC -DPIC -c -O2 cl_MI.ii
cl_MI.o: No error
/tmp/ccjCp4mS.s: Assembler messages:
/tmp/ccjCp4mS.s:18716: FATAL: can't close cl_MI.o
: No error
crest% g++-4.0 -fPIC -DPIC -c -O2 cl_MI.ii
cl_MI.o: No error
/tmp/ccreQBwI.s: Assembler messages:
/tmp/ccreQBwI.s:19590: FATAL: can't close cl_MI.o
: No error
crest% g++-3.4 -fPIC -DPIC -c -O2 cl_MI.ii
crest% as --version
GNU assembler 2.16.91 20060413 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.


-- 
           Summary: [4.0/4.1/4.2 regression] assembler error "FATAL: can't
                    close x.o" on m68k with new binutils
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com
 GCC build triplet: m68k-linux-gnu
GCC target triplet: m68k-linux-gnu


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


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

* [Bug target/28183] [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils
  2006-06-27 21:24 [Bug target/28183] New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils tbm at cyrius dot com
@ 2006-06-27 22:21 ` tbm at cyrius dot com
  2006-06-28  4:50 ` tbm at cyrius dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tbm at cyrius dot com @ 2006-06-27 22:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tbm at cyrius dot com  2006-06-27 22:08 -------
Created an attachment (id=11766)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11766&action=view)
preprocessed source


-- 


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


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

* [Bug target/28183] [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils
  2006-06-27 21:24 [Bug target/28183] New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils tbm at cyrius dot com
  2006-06-27 22:21 ` [Bug target/28183] " tbm at cyrius dot com
@ 2006-06-28  4:50 ` tbm at cyrius dot com
  2006-06-28 11:21 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tbm at cyrius dot com @ 2006-06-28  4:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tbm at cyrius dot com  2006-06-27 22:21 -------
What I said about binutils might be wrong.  It seems it's not due to a
difference in the version, but due to one being native and one being cross.  I
just upgraded the binutils-m68k on i386 to the same version as that on m68k
native and strangely enough the same .s file works on i386 with m68k-as but
fails on m68k:

native:
crest% as test.s
a.out: No error
test.s: Assembler messages:
test.s:18960: FATAL: can't close a.out
: No error
crest% as --version
GNU assembler 2.16.91 20060413 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `m68k-linux-gnu'.
crest%

i386:
1173:tbm@reyes: ~] /usr/local/bin/m68k-linux-gnu-as test.s
1174:tbm@reyes: ~] /usr/local/bin/m68k-linux-gnu-as --version
GNU assembler 2.16.91 20060413 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `m68k-linux-gnu'.
1175:tbm@reyes: ~]


-- 


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


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

* [Bug target/28183] [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils
  2006-06-27 21:24 [Bug target/28183] New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils tbm at cyrius dot com
  2006-06-27 22:21 ` [Bug target/28183] " tbm at cyrius dot com
  2006-06-28  4:50 ` tbm at cyrius dot com
@ 2006-06-28 11:21 ` pinskia at gcc dot gnu dot org
  2006-08-07 23:12 ` schwab at suse dot de
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-28 11:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-06-28 11:15 -------
(In reply to comment #2)
That would almost mean as is being miscompiled on m68k.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code


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


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

* [Bug target/28183] [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils
  2006-06-27 21:24 [Bug target/28183] New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils tbm at cyrius dot com
                   ` (2 preceding siblings ...)
  2006-06-28 11:21 ` pinskia at gcc dot gnu dot org
@ 2006-08-07 23:12 ` schwab at suse dot de
  2006-08-07 23:13 ` schwab at suse dot de
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: schwab at suse dot de @ 2006-08-07 23:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from schwab at suse dot de  2006-08-07 23:12 -------
The removed comment says:

-  /* If will do cse, generate all results into pseudo registers
-     since 1) that allows cse to find more things
-     and 2) otherwise cse could produce an insn the machine
-     cannot support.  An exception is a CONSTRUCTOR into a multi-word
-     MEM: that's much more likely to be most efficient into the MEM.
-     Another is a CALL_EXPR which must return in memory.  */

So it looks like point 2 is true.


-- 


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


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

* [Bug target/28183] [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils
  2006-06-27 21:24 [Bug target/28183] New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils tbm at cyrius dot com
                   ` (3 preceding siblings ...)
  2006-08-07 23:12 ` schwab at suse dot de
@ 2006-08-07 23:13 ` schwab at suse dot de
  2006-09-10 16:56 ` jsm28 at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: schwab at suse dot de @ 2006-08-07 23:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from schwab at suse dot de  2006-08-07 23:13 -------
Sorry, wrong bug.


-- 


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


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

* [Bug target/28183] [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils
  2006-06-27 21:24 [Bug target/28183] New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils tbm at cyrius dot com
                   ` (4 preceding siblings ...)
  2006-08-07 23:13 ` schwab at suse dot de
@ 2006-09-10 16:56 ` jsm28 at gcc dot gnu dot org
  2006-09-20 22:24 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2006-09-10 16:56 UTC (permalink / raw)
  To: gcc-bugs



-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.4


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


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

* [Bug target/28183] [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils
  2006-06-27 21:24 [Bug target/28183] New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils tbm at cyrius dot com
                   ` (5 preceding siblings ...)
  2006-09-10 16:56 ` jsm28 at gcc dot gnu dot org
@ 2006-09-20 22:24 ` mmitchel at gcc dot gnu dot org
  2007-01-31 18:20 ` [Bug target/28183] [4.0/4.1/4.2/4.3 " zippel at linux-m68k dot org
  2007-01-31 18:27 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-09-20 22:24 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


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


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

* [Bug target/28183] [4.0/4.1/4.2/4.3 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils
  2006-06-27 21:24 [Bug target/28183] New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils tbm at cyrius dot com
                   ` (6 preceding siblings ...)
  2006-09-20 22:24 ` mmitchel at gcc dot gnu dot org
@ 2007-01-31 18:20 ` zippel at linux-m68k dot org
  2007-01-31 18:27 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: zippel at linux-m68k dot org @ 2007-01-31 18:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from zippel at linux-m68k dot org  2007-01-31 18:20 -------
This bug can be closed, it's really a bug in binutils triggered by some inline
assembly in cln. Here is a bit more info:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388000


-- 


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


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

* [Bug target/28183] [4.0/4.1/4.2/4.3 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils
  2006-06-27 21:24 [Bug target/28183] New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils tbm at cyrius dot com
                   ` (7 preceding siblings ...)
  2007-01-31 18:20 ` [Bug target/28183] [4.0/4.1/4.2/4.3 " zippel at linux-m68k dot org
@ 2007-01-31 18:27 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-31 18:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2007-01-31 18:27 -------
Marking as invalid as requested.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2007-01-31 18:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-27 21:24 [Bug target/28183] New: [4.0/4.1/4.2 regression] assembler error "FATAL: can't close x.o" on m68k with new binutils tbm at cyrius dot com
2006-06-27 22:21 ` [Bug target/28183] " tbm at cyrius dot com
2006-06-28  4:50 ` tbm at cyrius dot com
2006-06-28 11:21 ` pinskia at gcc dot gnu dot org
2006-08-07 23:12 ` schwab at suse dot de
2006-08-07 23:13 ` schwab at suse dot de
2006-09-10 16:56 ` jsm28 at gcc dot gnu dot org
2006-09-20 22:24 ` mmitchel at gcc dot gnu dot org
2007-01-31 18:20 ` [Bug target/28183] [4.0/4.1/4.2/4.3 " zippel at linux-m68k dot org
2007-01-31 18:27 ` pinskia at gcc dot gnu dot org

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