Page 1 of 1

I've broken two compilers today

PostPosted:Fri Aug 26, 2005 2:40 pm
by Kupek
Code: Select all
/home/scotts/factory/src/lf_allocator.h:134: error: unrecognizable insn:
(insn:HI 403 402 404 7 0x4249570c (set (reg/f:SI 125)
        (const:SI (plus:SI (symbol_ref:SI ("%l__thread_num"))
                (const_int -12 [0xfffffff4])))) -1 (nil)
    (expr_list:REG_EQUAL (const:SI (plus:SI (symbol_ref:SI ("%l__thread_num"))
                (const_int -12 [0xfffffff4])))
        (nil)))
/home/scotts/factory/src/lf_allocator.h:134: internal compiler error: in
   extract_insn, at recog.c:2175
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.suse.de/feedback> for instructions.
Preprocessed source stored into /tmp/ccOWYWaQ.out file, please attach this to your bugreport.
make: *** [taskman.o] Error 1
That's gcc. We're also confident that Intel's compiler has a bug; the address for a variable is 12 bytes higher than it should be.

PostPosted:Fri Aug 26, 2005 10:57 pm
by Nev
What are you doing?

I thought it was interesting when I pushed the ARM compiler a little too hard and it shattered (trying to use templates and pointer-to-members in the same class), but the ARM documentation does say template support is limited, and I understand that's the kind of thing that's likely to shatter all over the place when it comes to C++. But I did get to find out what a "thunk" was.
My friend and I (I'm nevyn917), via IM, wrote: [10:26] nevyn917: by the way
[10:26] nevyn917: i don't suppose you know what a "thunk" is
[10:27] daveweaver2004: a common cartoon onomatopoeia denoting two heavy objects colliding
[10:27] nevyn917: gotcha
[10:27] daveweaver2004: or, a group of lice
[10:27] daveweaver2004: "a thunk of lice"
[10:27] nevyn917: LOL!
[10:28] nevyn917: i think my own internal compiler just broke trying to use that definition in the context "0x02e89c03 [thunk]: `vcall'{0, {flat}}'
[10:29] nevyn917: unless it refers to the actual noise of either my code or my brain colliding with horrible C++ syntax
[10:29] daveweaver2004: oh, that thunk
[10:29] daveweaver2004: sorry, you're on your own there

PostPosted:Sat Aug 27, 2005 7:26 pm
by Kupek
We're trying to make use of <a href=http://developer.apple.com/documentatio ... tml>thread local storage</a>.

PostPosted:Sat Aug 27, 2005 8:09 pm
by Nev
Interesting.

By the way, you must know a lot about academic languages...

What would you say is your favorite modern language to use? You can include things like Objective-C or other academic languages I'm not well aware of, C#, Java, C++, Delphi...I'm sort of looking for your opinion on where computer science is headed languagewise. I've used C# a bit and like it, but I'm sort of looking for who you think is doing the best job of implementing hitherto academic or mostly academic concepts (closures, interfaces, anything else you like to talk about) into a useful and reasonably cohesive framework.