GCC Bug

From Bilbo
Jump to: navigation, search

2006-09-09

I come up with some obscure bugs fairly often. Other software authors must hate me. I would if I were them.  ;)

This time, it's GCC "3.4.4 [FreeBSD] 20050518" on x86-64, compiling with -O3.

int main(long long a, long long b) {
        return (long long)&a + (long long)&b;
}

And before you ask, no, I really don't have a good reason to do this. I was just kinda goofing around.

a.c: In function `main':
a.c:1: error: unrecognizable insn:
(insn 33 14 16 0 (set (reg:SI 0 ax [66])
        (subreg:SI (plus:DI (subreg:DI (reg:SI 7 sp) 0)
                (const_int -16 [0xfffffffffffffff0])) 0)) -1 (nil)
    (nil))
a.c:1: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.