This is the mail archive of the gcc-patches@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: [patch] Add MIPS nonpic tests to testsuite




Richard Sandiford wrote:
Adam Nemet <anemet@caviumnetworks.com> writes:
Catherine Moore <clm@codesourcery.com> writes:
	I've tested with mips-linux and also with mips-sde-elf.  The testsuite
doesn't currently pass with the mips-sde-elf configuration due to extra
compiler/linker messages, though.
Can you elaborate?  It would be nice if the new tests passed on the
configurations that they're run on.

I imagine it was:


%{fPIC|fpic|fPIE|fpie:%{!mips16*:-KPIC}}

in sde.h:SUBTARGET_ASM_SPEC.  So we assemble -fpic code as -mabicalls,
even though GCC hasn't generated that.

If so, it looks like an SDE bug to me, and it's good that the testsuite
has picked up on it.  -fpic really ought to be link-compatible with
-fno-pic, if it's accepted at all.

Actually, the problem that I'm currently seeing is:


/tmp/cc6v0Red.s: Assembler messages:^M
/tmp/cc6v0Red.s:26: Warning: No .cprestore pseudo-op used in PIC code^M
/tmp/cc6v0Red.s:26: Warning: Macro instruction expanded into multiple instructions^M

My intention is to get the testsuite working properly for the sde-elf target as well.

Catherine


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