This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bugs using -fPIC on linux (i86 RedHat 5.0)?



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]