This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug target/14041] New: H8300-elf unaligned word/longword access of zero initialized variables
- From: "Dhananjay R. Deshpande" <dhananjayd at KPITCummins dot com>
- To: <gcc-bugzilla at gcc dot gnu dot org>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 6 Feb 2004 12:25:31 +0530
- Subject: Re: [Bug target/14041] New: H8300-elf unaligned word/longword access of zero initialized variables
This requires ASM_OUTPUT_ALIGNED_BSS to be defined.
-Dhananjay
2004-02-06 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
PR target/14041
* config/h8300/h8300.h (ASM_OUTPUT_ALIGNED_BSS): Define.
--- old/gcc/config/h8300/h8300.h Thu Jun 12 17:37:10 2003
+++ gcc-3.3/gcc/config/h8300/h8300.h Wed Feb 4 21:54:03 2004
@@ -1247,6 +1247,20 @@ struct cum_arg
#define ASM_OUTPUT_BSS(FILE, DECL, NAME, SIZE, ROUNDED) \
asm_output_bss ((FILE), (DECL), (NAME), (SIZE), (ROUNDED))
+/* Like `ASM_OUTPUT_BSS' except takes the required alignment as a
+ separate, explicit argument. If you define this macro, it is used
+ in place of `ASM_OUTPUT_BSS', and gives you more flexibility in
+ handling the required alignment of the variable. The alignment is
+ specified as the number of bits.
+
+ Try to use function `asm_output_aligned_bss' defined in file
+ `varasm.c' when defining this macro. */
+#ifndef ASM_OUTPUT_ALIGNED_BSS
+#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
+ asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
+#endif
+
+
/* This says how to output an assembler line
to define a local common symbol. */
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14041