This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols
On Fri, 2006-10-13 at 14:32 +0900, Hiroki Kaminaga wrote:
> > The attached patch is the more correct way to solve this.
>
> Your patch would cause `-profile' option not to set `-p' to cc1. Is this OK?
Not really, the following patch on top of the previous fixes the above
problem:
Index: config/mips/linux.h
===================================================================
--- config/mips/linux.h (revision 117683)
+++ config/mips/linux.h (working copy)
@@ -49,6 +49,8 @@ Boston, MA 02110-1301, USA. */
#undef MD_EXEC_PREFIX
#undef MD_STARTFILE_PREFIX
+#define SUBTARGET_CC1_SPEC "%{profile:-p}"
+
/* If we don't set MASK_ABICALLS, we can't default to PIC. */
#undef TARGET_DEFAULT
#define TARGET_DEFAULT MASK_ABICALLS
Thanks,
Andrew Pinski