EmbDev.net

Forum: ARM programming with GCC/GNU tools arm-elf-gcc 4.4.2 internal compiler error: in expand_expr_addr_expr_1, at expr.c:6835


von Jim C. (Company: Univ of Idaho) (conr2286)


Rate this post
useful
not useful
Has anyone seen anything like the following?

Using the YAGARTO 4.4.2 toolchain (includes arm-elf-gcc 4.4.2) on OS/X 
10.6.2 to compile an LPC2148 Demo, I encountered the following:

   rtcISR.c: In function 'rtcISR':
   rtcISR.c:66: internal compiler error: in expand_expr_addr_expr_1, at 
expr.c:6835
   Please submit a full bug report, with preprocessed source if 
appropriate.

JimC

von Mark H. (Company: Coastal Environmental Systems) (zoro98020)


Rate this post
useful
not useful
I got this when I switched from gcc-3.4.3 to gcc-4.4.3.
Seems to have been caused by my inappropriate use of
_attribute_ ((naked)) for the function in question.

I simply removed the naked attribute and the problem
went away.

von Michal (Guest)


Rate this post
useful
not useful
I have the same thing on Crossworks 2 when compiling FreeRTOS. It worked 
properly in earlier version. I am not sure if removing naked is safe. 
Can anyone help?

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.