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

[Bug target/53448] New: [avr] ignoring __attribute__((aligned(2)))


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53448

             Bug #: 53448
           Summary: [avr] ignoring __attribute__((aligned(2)))
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gjl@gcc.gnu.org
                CC: eric.weddington@atmel.com
            Target: avr


int var __attribute__((aligned(2))) = 1;

gets compiled to

.global    var
    .data
    .type    var, @object
    .size    var, 2
var:
    .word    1


i.e. the alignment directive .p2align 1 is missing.


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