[PATCH/RFT] move code from rs6000_override_options to the target headers
Andrew Pinski
pinskia@physics.uc.edu
Sun Jan 1 21:49:00 GMT 2006
While looking into an ABI issue (which I am not dealing with right
now), I noticed
that rs6000_override_options has some code which could be moved back to
the subtarget's
headers. This cleans up some of the code in rs6000.c so that they
don't have subtarget
specific code in there.
OK? Boostrapped and tested on powerpc-darwin7.9 though I would like
someone to
bootstrap and test on powerpc-darwin8.0 with mulitilib enabled and
powerpc64-linux-gnu
with multilib enabled too before getting approval.
Thanks,
Andrew Pinski
ChangeLog:
* config/rs6000/rs6000.c (rs6000_override_options): Remove darwin
specific
code. Remove Linux64 specific code. Move it to their subtarget
headers.
* config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Move code
which
sets the altivec ABI, here.
* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Move code which
sets the darwin64 ABI here.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cleanuprs6000target.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060101/911b647d/attachment.txt>
More information about the Gcc-patches
mailing list