public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/53372] New: [avr] Section attribute ignored with address space
@ 2012-05-16 6:04 gjl at gcc dot gnu.org
2012-05-16 6:14 ` [Bug target/53372] " gjl at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-05-16 6:04 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/53372] [avr] Section attribute ignored with address space
2012-05-16 6:04 [Bug target/53372] New: [avr] Section attribute ignored with address space gjl at gcc dot gnu.org
@ 2012-05-16 6:14 ` gjl at gcc dot gnu.org
2012-07-02 12:56 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2012-05-16 6:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53372
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P5
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-05-16
Target Milestone|--- |4.7.1
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/53372] [avr] Section attribute ignored with address space
2012-05-16 6:04 [Bug target/53372] New: [avr] Section attribute ignored with address space gjl at gcc dot gnu.org
2012-05-16 6:14 ` [Bug target/53372] " gjl at gcc dot gnu.org
@ 2012-07-02 12:56 ` rguenth at gcc dot gnu.org
2023-11-17 11:54 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 12:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53372
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.1 |---
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/53372] [avr] Section attribute ignored with address space
2012-05-16 6:04 [Bug target/53372] New: [avr] Section attribute ignored with address space gjl at gcc dot gnu.org
2012-05-16 6:14 ` [Bug target/53372] " gjl at gcc dot gnu.org
2012-07-02 12:56 ` rguenth at gcc dot gnu.org
@ 2023-11-17 11:54 ` cvs-commit at gcc dot gnu.org
2023-11-17 12:46 ` cvs-commit at gcc dot gnu.org
2023-11-17 12:50 ` gjl at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-17 11:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53372
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:
https://gcc.gnu.org/g:68221c54a9752dbf131c231413edfd21046f8dad
commit r14-5552-g68221c54a9752dbf131c231413edfd21046f8dad
Author: Georg-Johann Lay <avr@gjlay.de>
Date: Fri Nov 17 12:51:16 2023 +0100
PR target/53372: Don't ignore section attribute with address-space.
gcc/
PR target/53372
* config/avr/avr.cc (avr_asm_named_section) [AVR_SECTION_PROGMEM]:
Only return some .progmem*.data section if the user did not
specify a section attribute.
(avr_section_type_flags) [avr_progmem_p]: Unset SECTION_NOTYPE
in returned section flags.
gcc/testsuite/
PR target/53372
* gcc.target/avr/pr53372-1.c: New test.
* gcc.target/avr/pr53372-2.c: New test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/53372] [avr] Section attribute ignored with address space
2012-05-16 6:04 [Bug target/53372] New: [avr] Section attribute ignored with address space gjl at gcc dot gnu.org
` (2 preceding siblings ...)
2023-11-17 11:54 ` cvs-commit at gcc dot gnu.org
@ 2023-11-17 12:46 ` cvs-commit at gcc dot gnu.org
2023-11-17 12:50 ` gjl at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-17 12:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53372
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Georg-Johann Lay
<gjl@gcc.gnu.org>:
https://gcc.gnu.org/g:adb1f8b0eda99e8a1d21bda5955cbe1df5517e63
commit r13-8080-gadb1f8b0eda99e8a1d21bda5955cbe1df5517e63
Author: Georg-Johann Lay <avr@gjlay.de>
Date: Fri Nov 17 12:51:16 2023 +0100
PR target/53372: Don't ignore section attribute with address-space.
gcc/
PR target/53372
* config/avr/avr.cc (avr_asm_named_section) [AVR_SECTION_PROGMEM]:
Only return some .progmem*.data section if the user did not
specify a section attribute.
(avr_section_type_flags) [avr_progmem_p]: Unset SECTION_NOTYPE
in returned section flags.
gcc/testsuite/
PR target/53372
* gcc.target/avr/pr53372-1.c: New test.
* gcc.target/avr/pr53372-2.c: New test.
(cherry picked from commit 68221c54a9752dbf131c231413edfd21046f8dad)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/53372] [avr] Section attribute ignored with address space
2012-05-16 6:04 [Bug target/53372] New: [avr] Section attribute ignored with address space gjl at gcc dot gnu.org
` (3 preceding siblings ...)
2023-11-17 12:46 ` cvs-commit at gcc dot gnu.org
@ 2023-11-17 12:50 ` gjl at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: gjl at gcc dot gnu.org @ 2023-11-17 12:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53372
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |addr-space
Target Milestone|--- |13.3
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Fixed in v13.3+
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-11-17 12:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-16 6:04 [Bug target/53372] New: [avr] Section attribute ignored with address space gjl at gcc dot gnu.org
2012-05-16 6:14 ` [Bug target/53372] " gjl at gcc dot gnu.org
2012-07-02 12:56 ` rguenth at gcc dot gnu.org
2023-11-17 11:54 ` cvs-commit at gcc dot gnu.org
2023-11-17 12:46 ` cvs-commit at gcc dot gnu.org
2023-11-17 12:50 ` gjl 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).