PATCH ARM fix fatal build warnings
Richard Earnshaw
rearnsha@arm.com
Wed Sep 24 09:12:00 GMT 2003
This patch fixes a fatal warning from stage 2 of a full bootstrap on ARM
platforms
R.
2003-09-24 Richard Earnshaw <rearnsha@arm.com>
* arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
do...while(0)
-------------- next part --------------
Index: arm.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.h,v
retrieving revision 1.204
retrieving revision 1.205
diff -p -r1.204 -r1.205
*** arm.h 3 Sep 2003 11:40:05 -0000 1.204
--- arm.h 24 Sep 2003 09:06:32 -0000 1.205
*************** extern int making_const_table;
*** 2409,2427 ****
/* Output a push or a pop instruction (only used when profiling). */
#define ASM_OUTPUT_REG_PUSH(STREAM, REGNO) \
! if (TARGET_ARM) \
! asm_fprintf (STREAM,"\tstmfd\t%r!,{%r}\n", \
! STACK_POINTER_REGNUM, REGNO); \
! else \
! asm_fprintf (STREAM, "\tpush {%r}\n", REGNO)
#define ASM_OUTPUT_REG_POP(STREAM, REGNO) \
! if (TARGET_ARM) \
! asm_fprintf (STREAM, "\tldmfd\t%r!,{%r}\n", \
! STACK_POINTER_REGNUM, REGNO); \
! else \
! asm_fprintf (STREAM, "\tpop {%r}\n", REGNO)
/* This is how to output a label which precedes a jumptable. Since
Thumb instructions are 2 bytes, we may need explicit alignment here. */
--- 2409,2433 ----
/* Output a push or a pop instruction (only used when profiling). */
#define ASM_OUTPUT_REG_PUSH(STREAM, REGNO) \
! do \
! { \
! if (TARGET_ARM) \
! asm_fprintf (STREAM,"\tstmfd\t%r!,{%r}\n", \
! STACK_POINTER_REGNUM, REGNO); \
! else \
! asm_fprintf (STREAM, "\tpush {%r}\n", REGNO); \
! } while (0)
#define ASM_OUTPUT_REG_POP(STREAM, REGNO) \
! do \
! { \
! if (TARGET_ARM) \
! asm_fprintf (STREAM, "\tldmfd\t%r!,{%r}\n", \
! STACK_POINTER_REGNUM, REGNO); \
! else \
! asm_fprintf (STREAM, "\tpop {%r}\n", REGNO); \
! } while (0)
/* This is how to output a label which precedes a jumptable. Since
Thumb instructions are 2 bytes, we may need explicit alignment here. */
More information about the Gcc-patches
mailing list