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


Author: Jim Conrad (Company: Univ of Idaho) (conr2286)
Posted on:

Rate this post
0 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

Author: Mark Hinds (Company: Coastal Environmental Systems) (zoro98020)
Posted on:

Rate this post
0 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.

Author: Michal (Guest)
Posted on:

Rate this post
0 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?

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.