[PATCH, ARM, regression] Fix ternary operator in arm/unknown-elf.h

Thomas Preud'homme thomas.preudhomme@arm.com
Fri Apr 24 06:04:00 GMT 2015


I just committed the obvious fix below that fix build failure introduced by
revision 222371.


*** gcc/ChangeLog ***

2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>

        * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
        ternary operator in fprintf and harmonize spacing.


diff --git a/gcc/config/arm/unknown-elf.h b/gcc/config/arm/unknown-elf.h
index df0b9ce..2e5ab7e 100644
--- a/gcc/config/arm/unknown-elf.h
+++ b/gcc/config/arm/unknown-elf.h
@@ -80,9 +80,9 @@
 									\
       ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT));	\
       ASM_OUTPUT_LABEL (FILE, NAME);					\
-      fprintf (FILE, "\t.space\t%d\n", SIZE ? (int)(SIZE) : 1);		\
+      fprintf (FILE, "\t.space\t%d\n", SIZE ? (int) SIZE : 1);		\
       fprintf (FILE, "\t.size\t%s, %d\n",				\
-	       NAME, SIZE ? (int) SIZE, 1);				\
+	       NAME, SIZE ? (int) SIZE : 1);				\
     }									\
   while (0)

Best regards,

Thomas




More information about the Gcc-patches mailing list