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

* [Bug c++/38342] __attribute__((__progmem__)) not propagated from typedef to data
  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 ` westfw at yahoo dot com
  2008-12-01  9:19 ` westfw at yahoo dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: westfw at yahoo dot com @ 2008-12-01  9:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from westfw at yahoo dot com  2008-12-01 09:16 -------
Created an attachment (id=16797)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16797&action=view)
output from g++ -v


-- 


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


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

* [Bug c++/38342] __attribute__((__progmem__)) not propagated from typedef to data
  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
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: westfw at yahoo dot com @ 2008-12-01  9:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from westfw at yahoo dot com  2008-12-01 09:18 -------
Created an attachment (id=16798)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16798&action=view)
pgmspace.ii for the failing g++ compilation

Actual compile command:

/Downloads/arduino-0012/hardware/tools/avr/bin/avr-g++ pgmspace.c
-mmcu=atmega168 -c -o pgmspace43c++.o -save-temps -v >&foo.out


-- 


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


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

* [Bug c++/38342] __attribute__((__progmem__)) not propagated from typedef to data
  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
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: westfw at yahoo dot com @ 2008-12-01  9:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from westfw at yahoo dot com  2008-12-01 09:20 -------
Bug has been reproduced on at least two hosts.
See also avrfreaks discussion:
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=515859#515859


-- 


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


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

* [Bug c++/38342] __attribute__((__progmem__)) not propagated from typedef to data
  2008-12-01  9:15 [Bug c++/38342] New: __attribute__((__progmem__)) not propagated from typedef to data westfw at yahoo dot com
                   ` (2 preceding siblings ...)
  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
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: j at uriah dot heep dot sax dot de @ 2008-12-01 10:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from j at uriah dot heep dot sax dot de  2008-12-01 10:37 -------
Note that this is a GCC 4.3.x regression; GCC 4.2.x compiled the code the
way expected.


-- 

j at uriah dot heep dot sax dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric dot weddington at atmel
                   |                            |dot com


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


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

* [Bug target/38342] [4.3/4.4 Regression] __attribute__((__progmem__)) not propagated from typedef to data
  2008-12-01  9:15 [Bug c++/38342] New: __attribute__((__progmem__)) not propagated from typedef to data westfw at yahoo dot com
                   ` (3 preceding siblings ...)
  2008-12-01 10:39 ` j at uriah dot heep dot sax dot de
@ 2008-12-24  1:15 ` pinskia at gcc dot gnu dot org
  2008-12-26 10:50 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-24  1:15 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
          Component|c++                         |target
            Summary|__attribute__((__progmem__))|[4.3/4.4 Regression]
                   |not propagated from typedef |__attribute__((__progmem__))
                   |to data                     |not propagated from typedef
                   |                            |to data
   Target Milestone|---                         |4.3.3


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


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

* [Bug target/38342] [4.3/4.4 Regression] __attribute__((__progmem__)) not propagated from typedef to data
  2008-12-01  9:15 [Bug c++/38342] New: __attribute__((__progmem__)) not propagated from typedef to data westfw at yahoo dot com
                   ` (4 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-12-26 10:50 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


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


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

* [Bug target/38342] [4.3/4.4 Regression] __attribute__((__progmem__)) not propagated from typedef to data
  2008-12-01  9:15 [Bug c++/38342] New: __attribute__((__progmem__)) not propagated from typedef to data westfw at yahoo dot com
                   ` (5 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-24 10:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-01-24 10:20 -------
GCC 4.3.3 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.3                       |4.3.4


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


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

* [Bug target/38342] [4.3/4.4 Regression] __attribute__((__progmem__)) not propagated from typedef to data
  2008-12-01  9:15 [Bug c++/38342] New: __attribute__((__progmem__)) not propagated from typedef to data westfw at yahoo dot com
                   ` (6 preceding siblings ...)
  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
  9 siblings, 0 replies; 11+ messages in thread
From: eric dot weddington at atmel dot com @ 2009-01-24 16:21 UTC (permalink / raw)
  To: gcc-bugs



-- 

eric dot weddington at atmel dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-01-24 16:20:54
               date|                            |


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


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

* [Bug target/38342] [4.3/4.4/4.5 Regression] __attribute__((__progmem__)) not propagated from typedef to data
  2008-12-01  9:15 [Bug c++/38342] New: __attribute__((__progmem__)) not propagated from typedef to data westfw at yahoo dot com
                   ` (7 preceding siblings ...)
  2009-01-24 16:21 ` eric dot weddington at atmel dot com
@ 2009-08-04 12:44 ` 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
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-08-04 12:29 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.4                       |4.3.5


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


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

* [Bug target/38342] [4.3/4.4/4.5/4.6 Regression] __attribute__((__progmem__)) not propagated from typedef to data
  2008-12-01  9:15 [Bug c++/38342] New: __attribute__((__progmem__)) not propagated from typedef to data westfw at yahoo dot com
                   ` (8 preceding siblings ...)
  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 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2010-05-22 18:12 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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).