public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* bootstrap/3067: Compilation with -fPIC -fexceptions fails, breaking bootstrap
@ 2001-06-06 15:26 marcus
  0 siblings, 0 replies; 2+ messages in thread
From: marcus @ 2001-06-06 15:26 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3067
>Category:       bootstrap
>Synopsis:       Compilation with -fPIC -fexceptions fails, breaking bootstrap
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 06 15:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     marcus@roxen.com
>Release:        3.0 2001-05-21, 2001-05-28 and 2001-06-04
>Organization:
>Environment:
SunOS kronan.idonex.se 5.8 Generic_108529-03 i86pc i386 i86pc
>Description:
When compiling any code doing abort() with -fPIC and
-fexceptions (such as unwind-dw2.c for example), the
compiler produces a subtraction of two symbols in different
sections, prompting the assembler to say "Illegal subtraction"
and die.  It can be reproduced with a minial test program
like so:

kronan:~/build/gcc-20010521/gcc% cat foo.c
void foo()
{
  abort ();
}
kronan:~/build/gcc-20010521/gcc% ./xgcc -B./ -fPIC -fexceptions -c foo.c
Assembler: foo.c
        "/var/tmp/ccTfkQG7.s", line 48 : Illegal subtraction
kronan:~/build/gcc-20010521/gcc% 

I tested with the three most recent snapshots and got the
same result in all of them.

The generated assembler code for the trivial test program is
attached.  The offending line is the one that says

	.long	.LFB1-.
>How-To-Repeat:
Compilation of trivial program file as described above.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="foo.s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.s"

CS5maWxlCSJmb28uYyIKCS52ZXJzaW9uCSIwMS4wMSIKCS50ZXh0CgkuYWxpZ24gNAouZ2xvYmwg
Zm9vCgkudHlwZQlmb28sQGZ1bmN0aW9uCmZvbzoKLkxGQjE6CglwdXNobAklZW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gkuYWxpZ24gNAouTEVGREUxOgoJLmlkZW50CSJHQ0M6IChHTlUpIDMuMCAyMDAxMDUyMSAo
cHJlcmVsZWFzZSkiCg==


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

* Re: bootstrap/3067: Compilation with -fPIC -fexceptions fails, breaking bootstrap
@ 2001-07-03  5:49 ro
  0 siblings, 0 replies; 2+ messages in thread
From: ro @ 2001-07-03  5:49 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, marcus, nobody

Synopsis: Compilation with -fPIC -fexceptions fails, breaking bootstrap

State-Changed-From-To: open->closed
State-Changed-By: ro
State-Changed-When: Tue Jul  3 05:49:50 2001
State-Changed-Why:
    Fixed for 3.0.1:
    
    http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01561.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3067&database=gcc


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

end of thread, other threads:[~2001-07-03  5:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-06 15:26 bootstrap/3067: Compilation with -fPIC -fexceptions fails, breaking bootstrap marcus
2001-07-03  5:49 ro

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