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/53372] New: [avr] Section attribute ignored with address space


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

             Bug #: 53372
           Summary: [avr] Section attribute ignored with address space
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gjl@gcc.gnu.org
            Target: avr


In the following code the section attribute is ignored

const __memx int __attribute__((section(".rodata"))) a = 1;

because the address space __memx overrides the section no matter what:

.global    a
    .section    .progmem.data,"a",@progbits
    .type    a, @object
    .size    a, 2
a:
    .word    1


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