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]

ARM/ELF PATCH avoid '.space 0'


Running the java testsuite on arm-elf shows a couple of compile failures 
where we emit a '.space 0' directive.  Following the ia64 example we avoid 
this problem by always allocating at least one byte of space.

2002-09-23  Richard Earnshaw  <rearnsha@arm.com>

	* arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
	at least one byte of space.


Index: config/arm/unknown-elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/unknown-elf.h,v
retrieving revision 1.27
diff -p -r1.27 unknown-elf.h
*** config/arm/unknown-elf.h	17 Sep 2002 23:10:03 -0000	1.27
--- config/arm/unknown-elf.h	23 Sep 2002 15:10:37 -0000
*************** Boston, MA 02111-1307, USA.  */
*** 82,88 ****
  									\
        ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT));	\
        ASM_OUTPUT_LABEL (FILE, NAME);					\
!       fprintf (FILE, "\t.space\t%d\n", SIZE);				\
      }									\
    while (0)
  
--- 82,88 ----
  									\
        ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT));	\
        ASM_OUTPUT_LABEL (FILE, NAME);					\
!       fprintf (FILE, "\t.space\t%d\n", SIZE ? SIZE : 1);		\
      }									\
    while (0)
  

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