re PR target/26702 (.size is not emitted for BSS variables)

Fix PR target/26702

For Kwok Cheung Yeung.

From-SVN: r222371
This commit is contained in:
Ramana Radhakrishnan 2015-04-23 14:49:45 +00:00
parent 5c4abbb8e8
commit 4cf0223853
4 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
PR target/26702
* config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
Emit size of local.
2015-04-23 Nick Clifton <nickc@redhat.com>
* config/rl78/rl78.c (rl78_preferred_reload_class): Add

View File

@ -81,6 +81,8 @@
ASM_OUTPUT_ALIGN (FILE, floor_log2 (ALIGN / BITS_PER_UNIT)); \
ASM_OUTPUT_LABEL (FILE, NAME); \
fprintf (FILE, "\t.space\t%d\n", SIZE ? (int)(SIZE) : 1); \
fprintf (FILE, "\t.size\t%s, %d\n", \
NAME, SIZE ? (int) SIZE, 1); \
} \
while (0)

View File

@ -1,3 +1,8 @@
2015-04-23 Kyok Cheung Yeung <kck@codesourcery.com>
PR target/26702
* gcc.target/arm/pr26702.c: New test.
2015-04-23 Marek Polacek <polacek@redhat.com>
PR c/65345

View File

@ -0,0 +1,4 @@
/* { dg-do compile { target arm_eabi } } */
/* { dg-final { scan-assembler "\\.size\[\\t \]+static_foo, 4" } } */
int foo;
static int static_foo;