public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/31713] New: Illegal subtraction - symbols from different sections with Solaris as
@ 2007-04-26 11:40 Rob dot McMahon at warwick dot ac dot uk
2007-04-26 15:12 ` [Bug target/31713] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Rob dot McMahon at warwick dot ac dot uk @ 2007-04-26 11:40 UTC (permalink / raw)
To: gcc-bugs
I've seen this in other reports, but it seems to have been marked as `fixed' as
of 3.0.x, and still seems to be broken in 4.1.2.
Using the Solaris `as', as opposed to `gas', `make bootstrap' fails with
"/var/tmp//cc3fLwsc.s", line 338 : Illegal subtraction - symbols from different
sections: ".L52", ".L61"
make[3]: *** [libgcc/amd64/unwind-dw2.o] Error 1
The offending assembler is
334 .section .rodata
335 .align 4
336 .align 4
337 .L61:
338 .long .L52-.L61
...
350 .long .L60-.L61
351 .text
352 .L52:
--
Summary: Illegal subtraction - symbols from different sections
with Solaris as
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Rob dot McMahon at warwick dot ac dot uk
GCC build triplet: i386-pc-solaris2.10
GCC host triplet: i386-pc-solaris2.10
GCC target triplet: i386-pc-solaris2.10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31713
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/31713] Illegal subtraction - symbols from different sections with Solaris as
2007-04-26 11:40 [Bug bootstrap/31713] New: Illegal subtraction - symbols from different sections with Solaris as Rob dot McMahon at warwick dot ac dot uk
@ 2007-04-26 15:12 ` pinskia at gcc dot gnu dot org
2007-08-13 18:14 ` kjetilho at ifi dot uio dot no
2007-08-13 18:20 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-26 15:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-26 16:12 -------
Fixed by:
2006-11-01 Roger Sayle <roger@eyesopen.com>
* configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine
whether the assembler supports taking the difference of symbols in
different sections. On x86/Solaris, GAS does but Solaris as doesn't.
* configure: Regenerate.
* config.in: Regenerate.
* config/i386/sol2-10.h (JUMP_TABLES_IN_TEXT_SECTION): Define if
the assembler doesn't support taking the difference of symbols in
different sections, i.e. we're using the native solaris assembler.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|bootstrap |target
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31713
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/31713] Illegal subtraction - symbols from different sections with Solaris as
2007-04-26 11:40 [Bug bootstrap/31713] New: Illegal subtraction - symbols from different sections with Solaris as Rob dot McMahon at warwick dot ac dot uk
2007-04-26 15:12 ` [Bug target/31713] " pinskia at gcc dot gnu dot org
@ 2007-08-13 18:14 ` kjetilho at ifi dot uio dot no
2007-08-13 18:20 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: kjetilho at ifi dot uio dot no @ 2007-08-13 18:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from kjetilho at ifi dot uio dot no 2007-08-13 18:14 -------
It doesn't seem like this patch made it into 4.2.1, at least I can't find any
mention of HAVE_AS_IX86_DIFF_SECT_DELTA in the sources, and the build fails the
same way. Please reopen bug. (BTW, would it be possible to download the
patchset mentioned above separately?)
--
kjetilho at ifi dot uio dot no changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kjetilho at ifi dot uio dot
| |no
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31713
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/31713] Illegal subtraction - symbols from different sections with Solaris as
2007-04-26 11:40 [Bug bootstrap/31713] New: Illegal subtraction - symbols from different sections with Solaris as Rob dot McMahon at warwick dot ac dot uk
2007-04-26 15:12 ` [Bug target/31713] " pinskia at gcc dot gnu dot org
2007-08-13 18:14 ` kjetilho at ifi dot uio dot no
@ 2007-08-13 18:20 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-13 18:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-08-13 18:20 -------
[andrew-pinskis-computer:local/gcc/gcc] apinski% grep
HAVE_AS_IX86_DIFF_SECT_DELTA config/*/*
config/i386/sol2-10.h:#ifndef HAVE_AS_IX86_DIFF_SECT_DELTA
http://gcc.gnu.org/ml/gcc-cvs/2006-11/msg00056.html
That is because it was fixed for the trunk and not for the 4.2 branch.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.0 |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31713
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-13 18:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-26 11:40 [Bug bootstrap/31713] New: Illegal subtraction - symbols from different sections with Solaris as Rob dot McMahon at warwick dot ac dot uk
2007-04-26 15:12 ` [Bug target/31713] " pinskia at gcc dot gnu dot org
2007-08-13 18:14 ` kjetilho at ifi dot uio dot no
2007-08-13 18:20 ` 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).