public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14047] New: __progmem__ attribute doesn't work
@ 2004-02-06 12:45 LAL at pro dot onet dot pl
  2004-02-06 15:09 ` [Bug target/14047] " pinskia at gcc dot gnu dot org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: LAL at pro dot onet dot pl @ 2004-02-06 12:45 UTC (permalink / raw)
  To: gcc-bugs

It seems that this version of the GCC does ignore __progmem__ attribute.

Following code (but the same result for other vriable types) produces elf image
with rotor array placed in .data section

const uint8_t rotor[ANIMSTEPS] __attribute__((__progmem__)) = {
        ~(SEG_A)&SEG_MASK, ~(SEG_B)&SEG_MASK, ~(SEG_C)&SEG_MASK,
        ~(SEG_D)&SEG_MASK, ~(SEG_E)&SEG_MASK, ~(SEG_F)&SEG_MASK };

Where SEG_* are simple numeric defines.

Below a fragment of the map file:
.data           0x00800060       0x2c load address 0x00000604
                0x00800060                PROVIDE (__data_start, .)
 *(.data)
 .data          0x00800060       0x2b display.o
                0x00800078                rotor

(AVR)Binutils version 2.14

GCC version:
Reading specs from /usr/lib/gcc/avr/3.4.0/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-languages=c --disable-nls --target=avr
i686-redhat-linux-gnu
Thread model: single
gcc version 3.4.0 20040206 (prerelease)

-- 
           Summary: __progmem__ attribute doesn't work
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P1
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: LAL at pro dot onet dot pl
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-redhat-linux-gnu
  GCC host triplet: i686-redhat-linux-gnu
GCC target triplet: avr-unknown-elf


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


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2004-03-13  6:52 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-06 12:45 [Bug c/14047] New: __progmem__ attribute doesn't work LAL at pro dot onet dot pl
2004-02-06 15:09 ` [Bug target/14047] " pinskia at gcc dot gnu dot org
2004-02-07  9:27 ` berndtrog at yahoo dot com
2004-02-10  7:43 ` olischulz at web dot de
2004-02-10 16:21 ` eric at ecentral dot com
2004-02-11  8:02 ` LAL at pro dot onet dot pl
2004-02-11  8:56 ` [Bug target/14047] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-03-01  2:00 ` mmitchel at gcc dot gnu dot org
2004-03-10  5:33 ` eric at ecentral dot com
2004-03-11  4:30 ` mmitchel at gcc dot gnu dot org
2004-03-11  4:52 ` kazu at cs dot umass dot edu
2004-03-11  4:53 ` mark at codesourcery dot com
2004-03-11  4:54 ` eric at ecentral dot com
2004-03-12  4:13 ` eric at ecentral dot com
2004-03-13  6:24 ` eric at ecentral dot com
2004-03-13  6:38 ` cvs-commit at gcc dot gnu dot org
2004-03-13  6:39 ` denisc at overta dot ru
2004-03-13  6:43 ` cvs-commit at gcc dot gnu dot org
2004-03-13  6:45 ` pinskia at gcc dot gnu dot org
2004-03-13  6:52 ` eric at ecentral dot com
2004-03-13  6:52 ` cvs-commit at gcc dot gnu dot 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).