arm-elf-gcc 4.4.2 internal compiler error: in expand_expr_addr_expr_1, at expr.c:6835

OP (Company: Univ of Idaho) #1540511
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
(Company: Coastal Environmental Systems) #1633784
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.
Guest #1641290
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

A question of your own? This thread is over 16 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.