avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] binutils 2.22 blow up program size with -flto


From: Volker Kuhlmann
Subject: Re: [avr-gcc-list] binutils 2.22 blow up program size with -flto
Date: Sun, 12 Aug 2012 13:03:02 +1200

On Mon 30 Jul 2012 19:49:15 NZST +1200, Jan Waclawek wrote:

> > Tested with Seismograph 1.8.3, 
> 
> What is Seismograph 1.8.3?

My Arduino application that I used for this compiler comparison.
Unpublished as of yet because it's still a bit too messy, but it's
intended to be open source and you can have a copy as-is no-warranty.

> > avr-libc 1.7.1 with progmem const patch,
> 
> What is progmem const patch?

Fixing a trivial lapse of programmer concentration that becomes an error
with later gccs. Fix is required if you want the compiler to finish.


--- /opt/cross/avr/avr/include/avr/pgmspace.h.orig      2011-10-19 
05:22:19.000000000 +1300
+++ /opt/cross/avr/avr/include/avr/pgmspace.h   2011-12-25 14:02:53.000000000 
+1300
@@ -252,7 +261,7 @@
 # define PSTR(s) ((const PROGMEM char *)(s))
 #else  /* !DOXYGEN */
 /* The real thing. */
-# define PSTR(s) (__extension__({static char __c[] PROGMEM = (s); &__c[0];}))
+# define PSTR(s) (__extension__({static const char __c[] PROGMEM = (s); 
&__c[0];}))
 #endif /* DOXYGEN */
 
 #define __LPM_classic__(addr)   \


Volker

-- 
Volker Kuhlmann
http://volker.dnsalias.net/     Please do not CC list postings to me.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]