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: [committed] Add mips16_attribute to gcc.target/mips/scc-[13].c


Richard Sandiford <rdsandiford@googlemail.com> writes:
> The PIC part of check_effective_target_mips16_attribute is really
> duplicating check_effective_target_nonpic.  However, Tclwise, it seemed
> easier to combine the PIC test with the other MIPS16 tests.

...which I realise doesn't explain why the -fno-pic is there at all.
The point was that, after deciding to do the test this way, we might as
well handle targets that are PIC by default and that allow non-PIC code
to be generated by -fno-pic.  (Which mas probably the motivating reason
in the first place.)

Richard


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