http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53570
--- Comment #3 from jwatte at gmail dot com 2012-06-04 18:07:04 UTC ---
I will try -flto and report back. Thanks!
Btw: I think "that's expected" is in the eye of the beholder. If all you've
ever done is VAX/GCC-style UNIX, th
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53570
--- Comment #1 from jwatte at gmail dot com 2012-06-04 07:08:03 UTC ---
Created attachment 27551
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27551
Reproduction case (gzipped tar archive)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53570
Bug #: 53570
Summary: Unused symbols are not removed for fully static
targets (avr-gcc)
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53493
jwatte at gmail dot com changed:
What|Removed |Added
Status|RESOLVED|UNCONFIRMED
Resolution
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53493
--- Comment #3 from jwatte at gmail dot com 2012-05-26 19:25:50 UTC ---
Created attachment 27504
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27504
The preprocessed source
Generated with:
avr-gcc -Os -mmcu=atmega328p -c foo.cpp -o foo.E
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53493
--- Comment #2 from jwatte at gmail dot com 2012-05-26 19:22:01 UTC ---
Note that there is not yet any linkage involved -- this is simply a compile
pass. Specifically, the problem here is that I run into a missing symbol error
when linking a
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53493
Bug #: 53493
Summary: [4.7 regression] Compiling with -Os excludes PROGMEM
array from generated object file
(__attribute__((__progmem__)))
Classification: Unclassified
P