public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: other/10757: Adding -fpic/-fPIC causes crash with PCH created without -fpic/-fPIC
@ 2003-05-16 7:36 Geoffrey Keating
0 siblings, 0 replies; 2+ messages in thread
From: Geoffrey Keating @ 2003-05-16 7:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR other/10757; it has been noted by GNATS.
From: Geoffrey Keating <geoffk@apple.com>
To: gcc-prs@gcc.gnu.org, ghazi@caip.rutgers.edu, gcc-bugs@gcc.gnu.org,
ljrittle@acm.org, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: other/10757: Adding -fpic/-fPIC causes crash with PCH created without -fpic/-fPIC
Date: Thu, 15 May 2003 21:22:06 -0700
I have a report of a similar bug on Darwin. It's a PCH validation bug;
it can't work if you build the PCH without -fpic but try to use it with
-fpic, but the validation code doesn't check for this (which is tricky,
because the reason it doesn't work is target-dependent, so we need to
add some way for the target to save and validate some flags).
^ permalink raw reply [flat|nested] 2+ messages in thread
* other/10757: Adding -fpic/-fPIC causes crash with PCH created without -fpic/-fPIC
@ 2003-05-12 19:15 ljrittle
0 siblings, 0 replies; 2+ messages in thread
From: ljrittle @ 2003-05-12 19:15 UTC (permalink / raw)
To: gcc-gnats
>Number: 10757
>Category: other
>Synopsis: Adding -fpic/-fPIC causes crash with PCH created without -fpic/-fPIC
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 12 19:06:03 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: ljrittle@acm.org
>Release: mainline 5/12
>Organization:
>Environment:
sol2.9 & ppclinux & i386-unknown-freebsd4.8
>Description:
People on the libstdc++ mailing list found a problem with PCH and the -fpic flag that I traced to this root (multi-file) test case.
>How-To-Repeat:
; echo >t.h
; echo >main.c 'int main() {}'
; g++ -o t.h.gch t.h
; g++ -include t.h -Winvalid-pch main.c
; g++ -include t.h -Winvalid-pch -fpic main.c
main.c: In function `int main()':
main.c:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
; g++ -fpic main.c
(Humm, at this point, I'd have thought that maybe something wasn't
marked for PCH/GC properly in a region keyed by -fpic, but then I
noticed:)
; g++ -fpic -o t.h.gch t.h
; g++ -include t.h -Winvalid-pch main.c
cc1plus: warning: ./t.h.gch: not used because `__pic__' not defined
; g++ -include t.h -Winvalid-pch -fpic main.c
I'm sorry, I have no time to debug this today.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-16 7:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-16 7:36 other/10757: Adding -fpic/-fPIC causes crash with PCH created without -fpic/-fPIC Geoffrey Keating
-- strict thread matches above, loose matches on Subject: below --
2003-05-12 19:15 ljrittle
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).