I'm getting an Internal compiler error when I compile part of the code I am working on. Attached is a simplified version of the code. When I compile this code with gcc for x86 it comes out fine so I think this is a MSP430 specific problem. I've added a #define so that if you define _COMP_WORK you'll get a version of the code which is almost the same and performs the same function but does not create the error. I hope this helps narrow down the location of the bug. Below are the commands I used to generate the error. Attached is the source and the preprocessed source.
Thanks -Chris Takahashi > msp430-gcc -c -Os broken_code.c broken_code.c: In function `KRNinit': broken_code.c:35: Internal compiler error in redirect_edge_and_branch, at cfgrtl.c:902 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. > msp430-gcc -c broken_code.c broken_code.c: In function `KRNinit': broken_code.c:35: unrecognizable insn: (jump_insn 12 37 38 (set (pc) (if_then_else (geu:HI (const:HI (plus:HI (symbol_ref:HI ("KRNtcb")) (const_int 2 [0x2]))) (mem/f:HI (symbol_ref:HI ("pKRNtcb")) [0 pKRNtcb+0 S2 A16])) (label_ref 15) (pc))) -1 (nil) (nil)) broken_code.c:35: Internal compiler error in extract_insn, at recog.c:2148 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
broken_code.c
Description: Binary data
broken_code.i
Description: Binary data