This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bugs using -fPIC on linux (i86 RedHat 5.0)?
- To: Marius Kjeldahl <marius at ace dot funcom dot com>
- Subject: Re: Bugs using -fPIC on linux (i86 RedHat 5.0)?
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 25 Feb 1998 23:41:12 -0700
- cc: egcs at cygnus dot com, marius at funcom dot com
- Reply-To: law at cygnus dot com
In message <52u3bsp11b.fsf@ace.funcom.com>you write:
> >>>>> "Jeffrey" == Jeffrey A Law <law@hurl.cygnus.com> writes:
>
> Jeffrey> What assembler are you using? Do you have a testcase?
>
> as -v yields:
>
> GNU assembler version 970731 (i586-linux), using BFD version
> linux-2.8.1.0.15
>
> Unfortunately, I have not been able to make a test case for this error
> yet. However, when trying I have come across another test that seem to
> indicate that there is something wrong with PIC and iostream, like the
> following example shows (which may or may not be related to the
> problem I am experiencing in the applictation I am porting):
>
> An example:
>
> // test3.cpp
> #include <iostream.h>
>
> int testfunc ()
> {
> cout << "Hi!\n";
> return 0;
> }
>
> g++ -c test3.cpp -o test3.o runs fine.
>
> g++ -fPIC test3.cpp -o test3.o gives me:
> test3.cpp: In function `int testfunc()':
> test3.cpp:7: Internal compiler error.
> test3.cpp:7: Please submit a full bug report to `egcs-bugs@cygnus.com'.
I've just checked in a fix for this bug.
jeff