public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38342]  New: __attribute__((__progmem__)) not propagated from typedef to data
@ 2008-12-01  9:15 westfw at yahoo dot com
  2008-12-01  9:17 ` [Bug c++/38342] " westfw at yahoo dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: westfw at yahoo dot com @ 2008-12-01  9:15 UTC (permalink / raw)
  To: gcc-bugs

The program source is trivial (yes, I've attached the .ii file as well):
   #include <avr/pgmspace.h>
   prog_uchar foo [10][10] = { 0 };
When compiled with g++ 4.3.0, this does not actually put the data in program
space.
BillW-MacOSX<1063> /Downloads/arduino-0012/hardware/tools/avr/bin/avr-g++
pgmspace.c -mmcu=atmega168 -c -o pgmspace43c++.o --version
avr-g++ (GCC) 4.3.0
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

BillW-MacOSX<1064> /Downloads/arduino-0012/hardware/tools/avr/bin/avr-g++
pgmspace.c -mmcu=atmega168 -c -o pgmspace43c++.o         
BillW-MacOSX<1065> /Downloads/arduino-0012/hardware/tools/avr/bin/avr-size
pgmspace43c++.o
   text    data     bss     dec     hex filename
      0       0     100     100      64 pgmspace43c++.o 

It works correctly with gcc 4.3.0 (from the same distribution), and it works
correctly with g++ 4.1

BillW-MacOSX<1060> /Downloads/arduino-0012/hardware/tools/avr/bin/avr-gcc
pgmspace.c -mmcu=atmega168 -c -o pgmspace43cc.o --version
avr-gcc (GCC) 4.3.0
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

BillW-MacOSX<1061> /Downloads/arduino-0012/hardware/tools/avr/bin/avr-gcc
pgmspace.c -mmcu=atmega168 -c -o pgmspace43cc.o
BillW-MacOSX<1062> /Downloads/arduino-0012/hardware/tools/avr/bin/avr-size
pgmspace43cc.o
   text    data     bss     dec     hex filename
    100       0       0     100      64 pgmspace43cc.o
BillW-MacOSX<1063>


-- 
           Summary: __attribute__((__progmem__)) not propagated from typedef
                    to data
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: westfw at yahoo dot com
GCC target triplet: avr


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


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

end of thread, other threads:[~2010-05-22 18:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-01  9:15 [Bug c++/38342] New: __attribute__((__progmem__)) not propagated from typedef to data westfw at yahoo dot com
2008-12-01  9:17 ` [Bug c++/38342] " westfw at yahoo dot com
2008-12-01  9:19 ` westfw at yahoo dot com
2008-12-01  9:21 ` westfw at yahoo dot com
2008-12-01 10:39 ` j at uriah dot heep dot sax dot de
2008-12-24  1:15 ` [Bug target/38342] [4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
2008-12-26 10:50 ` jakub at gcc dot gnu dot org
2009-01-24 10:27 ` rguenth at gcc dot gnu dot org
2009-01-24 16:21 ` eric dot weddington at atmel dot com
2009-08-04 12:44 ` [Bug target/38342] [4.3/4.4/4.5 " rguenth at gcc dot gnu dot org
2010-05-22 18:27 ` [Bug target/38342] [4.3/4.4/4.5/4.6 " rguenth 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).