Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-09 Thread Kito Cheng
On Tue, Sep 9, 2014 at 10:06 PM, Andreas Schwab wrote: > Kito Cheng writes: > >> .align 2 >> bufbuf.4078: >> .space 8 >> ... >> .ident "GCC: (GNU) 5.0.0 20140828 (experimental)" >> >> >> And then the size info will missing: >> >> $ arm-none-eabi-objdump ./foo.o -t >> >> ./foo.o: file format

Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-09 Thread Andreas Schwab
Kito Cheng writes: > .align 2 > bufbuf.4078: > .space 8 > ... > .ident "GCC: (GNU) 5.0.0 20140828 (experimental)" > > > And then the size info will missing: > > $ arm-none-eabi-objdump ./foo.o -t > > ./foo.o: file format elf32-littlearm > > SYMBOL TABLE: > ldf *ABS* zoo

Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-09 Thread Andreas Schwab
Richard Earnshaw writes: > .space puts space in the current section, I believe. .comm and .lcomm > put the space in the common section; that's very different behaviour. The local common section is the .bss section. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0

Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-09 Thread Richard Earnshaw
On 09/09/14 14:32, Ramana Radhakrishnan wrote: > On Mon, Sep 1, 2014 at 4:30 AM, Kito Cheng wrote: >> Hi all: >> >> In arm-*-elf target some variable will missing size directive, >> >> for example: >> >> foo.c: >> >> void foo (void) { >> static char bufbuf[8]; >> } >> >> $ arm-none-eabi-gcc ./fo

Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-09 Thread Ramana Radhakrishnan
On Mon, Sep 1, 2014 at 4:30 AM, Kito Cheng wrote: > Hi all: > > In arm-*-elf target some variable will missing size directive, > > for example: > > foo.c: > > void foo (void) { > static char bufbuf[8]; > } > > $ arm-none-eabi-gcc ./foo.c -S -o - > > ... > .align 2 > bufbuf.4078: > .space 8 Th

Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-08 Thread Kito Cheng
ping! On Mon, Sep 1, 2014 at 11:30 AM, Kito Cheng wrote: > Hi all: > > In arm-*-elf target some variable will missing size directive, > > for example: > > foo.c: > > void foo (void) { > static char bufbuf[8]; > } > > $ arm-none-eabi-gcc ./foo.c -S -o - > > ... > .align 2 > bufbuf.4078: > .spac

[PATCH] Add missing size directive for arm-*-elf

2014-08-31 Thread Kito Cheng
tive. From e0034653a4d457708fc4d858ea20fab70a42d798 Mon Sep 17 00:00:00 2001 From: Kito Cheng Date: Mon, 1 Sep 2014 11:19:13 +0800 Subject: [PATCH] Add missing size directive for arm-elf ChangeLog 2014-09-01 Kito Cheng * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Add size directive. --- gcc/config/arm/unknown