This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: -fpic for mingw32 target
- To: Phil Blecker <tmwg at inxservices dot com>
- Subject: Re: -fpic for mingw32 target
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Tue, 3 Nov 1998 10:50:20 -0600 (CST)
- Cc: egcs-bugs at cygnus dot com
On Tue, 3 Nov 1998, Phil Blecker wrote:
> I accidently changed a makefile that targets both Linux and MSWindows so
> that -fpic was passed to the mingw32 cross-compiler (running on Linux). It
> was accepted.
Unfortunately, it accepts it silently and then emits code that the
assembler may choke on ...
> Does it do anything useful for MSWindows? If not, can I send a patch to
> make it an unknown option to gcc for that target?
Better yet, you might want to take the approach that rs6k port does when
the ABI is AIX (see rs6000/rs6000.c and search for ``flag_pic = 0').
You might want to use the same approach and define the OVERRIDE_OPTIONS
macro and handle the -fpic/-fPIC options there. If the user supplies
-f(pic)|(PIC), warn (pedwarn?) and set it to zero.
Regards,
Mumit