This is the mail archive of the gcc-bugs@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: -fpic for mingw32 target


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




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