This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53372] New: [avr] Section attribute ignored with address space
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 May 2012 06:03:28 +0000
- Subject: [Bug target/53372] New: [avr] Section attribute ignored with address space
- Auto-submitted: auto-generated
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