------- Comment #10 from mrs at apple dot com 2009-09-30 20:54 ------- When targeting darwin10, the .eh symbols don't have to be generated anymore. They are from darwin.c, darwin_emit_unwind_label.
if (darwin_macosx_version_min && strverscmp (darwin_macosx_version_min, "10.6") >= 0) can be used, and the entirety of the routine can be avoided. That said, this is a bug somewhere, it can be found by binary searching the testcase on the compiler sources until the change that dupped these is found. I don't believe it has always been broken. Or, you can just put a breakpoint on this routine, and when the second one is hit, find a variable that is different that the first time it is hit, and pass that as a parameter and the bail out, just like ! for_eh. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41313