http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41159
--- Comment #11 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-15 10:33:03 UTC --- (In reply to comment #9) > I believe I also have this occurring with host=x86_64-linux > target=arm-linux-gnueabi. After reading this ticket, I retried my compiles > with the same link and compile optimization level and it succeeds. > > I understand that you want gcc to support different option levels for both > compile and link. However, I don't know that most people want this and I am > not use to passing the linker options; a diagnostic for ld/gold plug-in when > there is an optimization mismatch may be helpful? Is that a possibility for > 4.5.x and 4.6.x releases? It's not easy, otherwise we'd have done this already ;)