[arm-gnu] arm-none-eabi 2012.09-63 ICE

Zoltan Devai zoss at devai.org
Thu Mar 7 10:06:31 UTC 2013


A minor thing I just noticed.
If the struct isn't initialized, gcc correctly complains
"local frame unavailable (naked function?)", without an ICE.

$ arm-none-eabi-gcc -c bug.c
bug.c: In function 'function':
bug.c:10:12: internal compiler error: in emit_block_move_hints, at
expr.c:1154
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://support.codesourcery.com/GNUToolchain/> for instructions.

$ arm-none-eabi-gcc -E bug.c
# 1 "bug.c"
# 1 "<command-line>"
# 1 "bug.c"
struct st {
 int a;
 int b;
};

extern void subfunction(struct st *s);

__attribute__((naked)) static void function(void)
{
 struct st s = {
  .a = 10,
  .b = 20,
 };

 subfunction(&s);
}

-- 
Cheers,
Zoltan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/arm-gnu/attachments/20130307/f9eb3664/attachment.html>


More information about the arm-gnu mailing list