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

Re: Hitachi SH: no-cache-align option


> Your new option is redundant with -falign-function=N.

Oh, really?  I think -falign-functions=N can only increase alignments.

[/tmp]% sh-elf-gcc -v
Reading specs from /tmp/experiment/lib/gcc-lib/sh-elf/3.1.1/specs
Configured with: ../gcc-3.1.1/configure --prefix=/tmp/experiment --target=sh-elf --with-gnu-as --with-gnu-ld --disable-nls --enable-languages=c
Thread model: single
gcc version 3.1.1
[/tmp]% cat ttt.c
int foo(void) { return 1; }
int bar(void) { return 2; }
[/tmp]% sh-elf-gcc -m3 -O -S -o - ttt.c | grep align
        .align 4
        .align 4
[/tmp]% sh-elf-gcc -m3 -O -falign-functions=32 -S -o - ttt.c | grep align
        .align 4
        .align 5
        .align 4
        .align 5
[/tmp]% sh-elf-gcc -m3 -O -falign-functions=4 -S -o - ttt.c | grep align
        .align 4
        .align 4
[/tmp]%

Am I doing anything wrong?

====
Honda Hiroki


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