This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: GCC patch for MIPS multi-got support in the linker
On Jan 16, 2003, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:
>> from Alexandre Oliva <aoliva@redhat.com>
>> * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
>> to set $gp before the call.
>>
>> + jal " USER_LABEL_PREFIX #FUNC "\n\
>> + " TEXT_SECTION_ASM_OP);
>> +#elif (defined _ABIN32 && _MIPS_SIM == _ABIN32) \
>> + || (defined _ABI64 && _MIPS_SIM == _ABI64)
> On an irix6 bootstrap, the above fragment yields:
>> mips.h:4693:2: warning: suggest not using #elif in traditional C
> Would you please fix it?
Thanks, I'm checking this in, as obviously correct.
Index: gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* config/mips/mips.h: Don't use #elif. Reported by Kaveh
R. Ghazi.
Index: gcc/config/mips/mips.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.232
diff -u -p -r1.232 mips.h
--- gcc/config/mips/mips.h 15 Jan 2003 07:42:21 -0000 1.232
+++ gcc/config/mips/mips.h 17 Jan 2003 04:56:11 -0000
@@ -4690,7 +4690,8 @@ while (0)
.set reorder\n\
jal " USER_LABEL_PREFIX #FUNC "\n\
" TEXT_SECTION_ASM_OP);
-#elif (defined _ABIN32 && _MIPS_SIM == _ABIN32) \
+#endif /* Switch to #elif when we're no longer limited by K&R C. */
+#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) \
|| (defined _ABI64 && _MIPS_SIM == _ABI64)
#define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \
asm (SECTION_OP "\n\
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer