This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix gcc.dg/gnu89-init-1.c on alpha


A similar change already exists in asm_output_aligned_bss,
which is why this isn't showing up on more systems.


r~


	* varasm.c (asm_output_bss): Always output one byte.
	* config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.

Index: gcc/varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.287
diff -c -p -d -u -r1.287 varasm.c
--- gcc/varasm.c	23 May 2002 18:11:00 -0000	1.287
+++ gcc/varasm.c	24 May 2002 18:17:45 -0000
@@ -525,7 +525,7 @@ asm_output_bss (file, decl, name, size, 
   /* Standard thing is just output label for the object.  */
   ASM_OUTPUT_LABEL (file, name);
 #endif /* ASM_DECLARE_OBJECT_NAME */
-  ASM_OUTPUT_SKIP (file, rounded);
+  ASM_OUTPUT_SKIP (file, rounded ? rounded : 1);
 }
 
 #endif
Index: gcc/config/alpha/elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/elf.h,v
retrieving revision 1.57
diff -c -p -d -u -r1.57 elf.h
--- gcc/config/alpha/elf.h	18 May 2002 23:47:10 -0000	1.57
+++ gcc/config/alpha/elf.h	24 May 2002 18:17:45 -0000
@@ -158,7 +158,7 @@ do {									\
     }									\
   ASM_OUTPUT_ALIGN ((FILE), exact_log2((ALIGN) / BITS_PER_UNIT));	\
   ASM_OUTPUT_LABEL(FILE, NAME);						\
-  ASM_OUTPUT_SKIP((FILE), (SIZE));					\
+  ASM_OUTPUT_SKIP((FILE), (SIZE) ? (SIZE) : 1);				\
 } while (0)
 
 /* This says how to output assembler code to declare an


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]