This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14047] [3.4/3.5 Regression] __progmem__ attribute doesn't work
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2004 02:00:45 -0000
- Subject: [Bug target/14047] [3.4/3.5 Regression] __progmem__ attribute doesn't work
- References: <20040206124549.14047.LAL@pro.onet.pl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-01 02:00 -------
AVR is not a primary platform, so I have postponed this until 3.4.1.
The patch here is not quite right. I believe a correct patch would be to modify
avr_insert_attributes to use
avr_progrmem_p (node) || lookup_attribute ("progmem", *attributes)
That would still find a progmem attribute already in the DECL_ATTRIBUTES, which
the patch would not.
If someone will test that change, such a patch would be OK for 3.4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.0 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14047