public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: hhonda26@ybb.ne.jp To: gcc-gnats@gcc.gnu.org Subject: target/7592: sh-elf-gcc cannot decrease alignment by -falign-functions Date: Wed, 14 Aug 2002 04:36:00 -0000 [thread overview] Message-ID: <20020814032353.15647.qmail@sources.redhat.com> (raw) >Number: 7592 >Category: target >Synopsis: sh-elf-gcc cannot decrease alignment by -falign-functions >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Aug 13 20:26:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Honda Hiroki (hhonda26@ybb.ne.jp) >Release: 3.1.1 >Organization: >Environment: host=i686-pc-linux-gnu (Linux 2.4.5-3) target=sh-elf >Description: [sh-elf-gcc -m3] aligns functions to 16 bytes by default. [sh-elf-gcc -m3 -falign-functions=32] aligns functions to 32 bytes, as expected. [sh-elf-gcc -m3 -falign-functions=4] should align functions to 4 bytes. However, [sh-elf-gcc -m3 -falign-functions=4] align functions to 16 bytes. Similar problems exist for other -falign-xxx options (not presented here). >How-To-Repeat: [/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]% echo 'int foo(void) { return 1; }' > ttt.c [/tmp]% echo 'int bar(void) { return 2; }' >> ttt.c [/tmp]% sh-elf-gcc -m3 -S -o - ttt.c | grep align .align 4 .align 4 [/tmp]% sh-elf-gcc -m3 -S -o - ttt.c -falign-functions=32 | grep align .align 4 .align 5 .align 4 .align 5 [/tmp]% sh-elf-gcc -m3 -S -o - ttt.c -falign-functions=4 | grep align .align 4 .align 4 >Fix: The following article may help. http://gcc.gnu.org/ml/gcc-patches/2002-08/msg00878.html >Release-Note: >Audit-Trail: >Unformatted:
reply other threads:[~2002-08-14 3:26 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020814032353.15647.qmail@sources.redhat.com \ --to=hhonda26@ybb.ne.jp \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).