diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-09-03 08:40:14 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-09-03 08:40:14 +0000 |
commit | 5ae916e1f940c52d41e0235a9fca5ff9b2bfa4c6 (patch) | |
tree | 89af2098e1e88bd1d53c04b1f1b85461f93113c3 /dev-embedded/avr-libc/files | |
parent | ppc/ppc64 stable wrt #380475 (diff) | |
download | gentoo-2-5ae916e1f940c52d41e0235a9fca5ff9b2bfa4c6.tar.gz gentoo-2-5ae916e1f940c52d41e0235a9fca5ff9b2bfa4c6.tar.bz2 gentoo-2-5ae916e1f940c52d41e0235a9fca5ff9b2bfa4c6.zip |
Version bump. Apply fix for gcc-4.6 issue (bug #371043 by klondike).
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'dev-embedded/avr-libc/files')
-rw-r--r-- | dev-embedded/avr-libc/files/avr-libc-1.7.1-gcc46.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-embedded/avr-libc/files/avr-libc-1.7.1-gcc46.patch b/dev-embedded/avr-libc/files/avr-libc-1.7.1-gcc46.patch new file mode 100644 index 000000000000..1f0922196c36 --- /dev/null +++ b/dev-embedded/avr-libc/files/avr-libc-1.7.1-gcc46.patch @@ -0,0 +1,25 @@ +--- avr-libc-1.7.1.orig/include/avr/pgmspace.h ++++ avr-libc-1.7.1/include/avr/pgmspace.h +@@ -252,7 +252,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) \ +--- avr-libc-1.7.1.orig/libc/stdlib/dtostre.c ++++ avr-libc-1.7.1/libc/stdlib/dtostre.c +@@ -37,9 +37,9 @@ + char * + dtostre (double val, char *sbeg, unsigned char prec, unsigned char flags) + { +- __attribute__((progmem)) static char str_nan[2][4] = ++ __attribute__((progmem)) static const char str_nan[2][4] = + {"nan", "NAN"}; +- __attribute__((progmem)) static char str_inf[2][sizeof(str_nan[0])] = ++ __attribute__((progmem)) static const char str_inf[2][sizeof(str_nan[0])] = + {"inf", "INF"}; + char *d; /* dst */ + char *s; /* src */ |