Commit 6cdd2721 by Dhananjay Deshpande Committed by Jeff Law

re PR target/14041 (H8300-elf unaligned word/longword access of zero initialized variables)

        PR target/14041
        * config/h8300/h8300.h (ASM_OUTPUT_ALIGNED_BSS): Define.

       PR target/14041
        * gcc.dg/h8300-bss-align-1.c : New.

From-SVN: r83797
parent 086e3095
2004-06-28 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
PR target/14041
* config/h8300/h8300.h (ASM_OUTPUT_ALIGNED_BSS): Define.
2004-06-28 Nathan Sidwell <nathan@codesourcery.com> 2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
* tree.h (tree_check_failed): Make varadic. * tree.h (tree_check_failed): Make varadic.
......
...@@ -1100,6 +1100,9 @@ struct cum_arg ...@@ -1100,6 +1100,9 @@ struct cum_arg
#define ASM_OUTPUT_BSS(FILE, DECL, NAME, SIZE, ROUNDED) \ #define ASM_OUTPUT_BSS(FILE, DECL, NAME, SIZE, ROUNDED) \
asm_output_bss ((FILE), (DECL), (NAME), (SIZE), (ROUNDED)) asm_output_bss ((FILE), (DECL), (NAME), (SIZE), (ROUNDED))
#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
/* This says how to output an assembler line /* This says how to output an assembler line
to define a local common symbol. */ to define a local common symbol. */
......
2004-06-28 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
PR target/14041
* gcc.dg/h8300-bss-align-1.c : New.
2004-06-28 Nathan Sidwell <nathan@codesourcery.com> 2004-06-28 Nathan Sidwell <nathan@codesourcery.com>
* PR C++/16174 * PR C++/16174
......
/* Make sure that the H8 backend does align zero initialized variables. */
/* { dg-do compile { target h8300-*-* } } */
/* { dg-options "" } */
struct s {
char a, b;
long c;
};
struct s s = {0};
/* { dg-final { scan-assembler ".align" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment