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]
Other format: [Raw text]

Re: MIPS -mplt option in N32 abi system


Zhang Le wrote:
Hi there,

I have just tried gcc 4.4 svn trunk on a MIPS N32 system.
But I found -mplt is practically not usable, because -mno-shared is not used
when generating non-PIC code.

I dug into the code and found the cause is in gcc/config/mips/linux64.h.
Unlike linux.h under the same directory, DRIVER_SELF_SPECS in linux64.h has no
LINUX_DRIVER_SELF_SPECS.

Is it left out intentionally?
However it seems to me that -mplt works on N32 system.

So what about the patch attached? ok to apply?
[...]

BASE_DRIVER_SELF_SPECS \ +LINUX_DRIVER_SELF_SPECS \ " %{!EB:%{!EL:%(endian_spec)}}" \ " %{!mabi=*: -mabi=n32}"

You are missing a comma there between BASE_DRIVER_SELF_SPECS and LINUX_DRIVER_SELF_SPECS. Without the comma, I am told that gcc.target/mips/pr35802.c FAILs. Other than that (and some formatting) this patch is equivalent to:

http://gcc.gnu.org/ml/gcc-patches/2008-12/msg00033.html

David Daney


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