This is the mail archive of the gcc-bugs@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]

[Bug target/14041] H8300-elf unaligned word/longword access of zero initialized variables


------- Additional Comments From dhananjayd at kpitcummins dot com  2004-02-06 06:56 -------
Subject: Re:  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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14041


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