https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120051
--- Comment #10 from Iouri Kharon <bc-info at styx dot cabel.net> --- (In reply to Sam James from comment #6) > Mark, when you get a chance to work on this, if you haven't tried it before, > I'd recommend doing a bootstrap w/ -gcodeview enabled by default to see what > falls out. With -O0 the compilers got it right (after last patch :). Only I had to add -Wl,--exclude-all-symbols to LDFLAGS - too many exports for PE :). And link without debugging (ld "hang" with code 5). With -Os, there are problems interacting with assembler generation - I'll see when I have time.