|
From: | E. Weddington |
Subject: | Re: [avr-gcc-list] PSTR macro bug in C++ |
Date: | Fri, 10 Sep 2004 10:39:50 -0600 |
User-agent: | Mozilla Thunderbird 0.7.3 (Windows/20040803) |
Iztok Zupet wrote:
Hello Just today I discovered a bug. Using the printf_P function and PSTR macro causes:*App.cpp: In member function `void App::dmxScreen()': *App.cpp:47: internal compiler error: in simplify_gen_subreg, at simplify-rtx.c:3444 *Please submit a full bug report,I use avr-gcc V 3.4.1 and avr-libc V 1.0.4. However, defining PSTR(s) macro as #define PSTR(s) ({static char __c[] PROGMEM = (s); &__c[0];}) instead of #define ({static char __c[] PROGMEM = (s); __c;}) solves this problem. Regards Iztok
Already known as avr-libc bug #8633: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=8633>
[Prev in Thread] | Current Thread | [Next in Thread] |