public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/67745] New: [ARM] wrong alignments when __attribute__ ((optimize,target,align) is used
@ 2015-09-28 12:36 chrbr at gcc dot gnu.org
  2015-09-28 12:43 ` [Bug target/67745] " chrbr at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: chrbr at gcc dot gnu.org @ 2015-09-28 12:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67745

            Bug ID: 67745
           Summary: [ARM] wrong alignments when __attribute__
                    ((optimize,target,align) is used
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chrbr at gcc dot gnu.org
  Target Milestone: ---

alignment directives emitted by the compiler are inconsistent for ARM when
attributes target are used.

for instance this code compiled with -Os -mthumb, 

void  __attribute__ ((target ("arm")))
c(void)
{
}

emits

        .text
        .align  1
        .global c
        .syntax divided
        .arm
        .type   c, %function

it should have the function 'c' aligned on 2^2 bytes, not 2^1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-10-16 14:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-28 12:36 [Bug target/67745] New: [ARM] wrong alignments when __attribute__ ((optimize,target,align) is used chrbr at gcc dot gnu.org
2015-09-28 12:43 ` [Bug target/67745] " chrbr at gcc dot gnu.org
2015-09-28 12:48 ` chrbr at gcc dot gnu.org
2015-09-28 13:37 ` chrbr at gcc dot gnu.org
2015-09-29 13:33 ` chrbr at gcc dot gnu.org
2015-10-10 10:55 ` ramana at gcc dot gnu.org
2015-10-15 19:36 ` ramana at gcc dot gnu.org
2015-10-16 13:37 ` chrbr at gcc dot gnu.org
2015-10-16 13:53 ` chrbr at gcc dot gnu.org
2015-10-16 14:15 ` chrbr at gcc dot gnu.org

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).