diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-05-08 14:45:20 +0100 |
---|---|---|
committer | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-05-12 12:54:16 +0100 |
commit | e8fb1a3892f4e2f8268ac2649776a7bd0a967643 (patch) | |
tree | 7306c846aa2caa3596b210957704db3c370714ea /gcc/testsuite | |
parent | 89aa37dc3c71666d0ff05e96ea84e195d049a226 (diff) | |
download | gcc-e8fb1a3892f4e2f8268ac2649776a7bd0a967643.zip gcc-e8fb1a3892f4e2f8268ac2649776a7bd0a967643.tar.gz gcc-e8fb1a3892f4e2f8268ac2649776a7bd0a967643.tar.bz2 |
MSP430: Define ASM_OUTPUT_ALIGNED_DECL_LOCAL
gcc/ChangeLog:
2020-05-12 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
Update prototype to include "local" argument.
* config/msp430/msp430.c (msp430_output_aligned_decl_common): Add
"local" argument. Handle local common decls.
* config/msp430/msp430.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Adjust
msp430_output_aligned_decl_common call with 0 for "local" argument.
(ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
gcc/testsuite/ChangeLog:
2020-05-12 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* gcc.c-torture/execute/noinit-attribute.c: Skip for msp430
in the large memory model.
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/noinit-attribute.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index da77641..b83e0ee 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2020-05-12 Jozef Lawrynowicz <jozef.l@mittosystems.com> + * gcc.c-torture/execute/noinit-attribute.c: Skip for msp430 + in the large memory model. + +2020-05-12 Jozef Lawrynowicz <jozef.l@mittosystems.com> + * gcc.target/msp430/region-attribute-misuse.c: Allow a .bss section to be created. diff --git a/gcc/testsuite/gcc.c-torture/execute/noinit-attribute.c b/gcc/testsuite/gcc.c-torture/execute/noinit-attribute.c index b99417c..20a2a45 100644 --- a/gcc/testsuite/gcc.c-torture/execute/noinit-attribute.c +++ b/gcc/testsuite/gcc.c-torture/execute/noinit-attribute.c @@ -1,8 +1,12 @@ /* { dg-do run } */ /* { dg-require-effective-target noinit } */ /* { dg-options "-O2" } */ +/* { dg-skip-if "data LMA != VMA" { msp430-*-* } { "-mlarge" } } */ -/* This test checks that noinit data is handled correctly. */ +/* This test checks that noinit data is handled correctly. + If data LMA != VMA (e.g. for simulating the copy of data from ROM to RAM), + then var_init will always be re-initialized to 2 and this test will loop + forever. */ extern void _start (void) __attribute__ ((noreturn)); extern void abort (void) __attribute__ ((noreturn)); |