[PATCH] GCC LTO-bootstrap -Wodr fix
Martin Liška
mliska@suse.cz
Thu Feb 26 14:25:00 GMT 2015
Hello.
Following error message can be seen for LTO boostrap:
../../gcc/fortran/resolve.c:3812:1: error: type âcomparisonâ violates one definition rule [-Werror=odr]
comparison;
^
../../gcc/compare-elim.c:95:0: note: a different type is defined in another translation unit
rtx_insn *insn;
^
lto1: all warnings being treated as errors
lto-wrapper: fatal error: /home/marxin/Programming/gcc3/objdir/./prev-gcc/xg++ returned 1 exit status
I've removed enum type in resolve.c, which is quite small change (I hope so).
With patch applied, GCC can bootstrap.
Ready for trunk?
Thanks,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-LTO-bootstrap.patch
Type: text/x-patch
Size: 1726 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150226/9be9da07/attachment.bin>
More information about the Gcc-patches
mailing list