This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] GCC LTO-bootstrap -Wodr fix
- From: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- To: Martin Liska <mliska at suse dot cz>, gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Thu, 26 Feb 2015 16:05:05 +0100
- Subject: Re: [PATCH] GCC LTO-bootstrap -Wodr fix
- Authentication-results: sourceware.org; auth=none
Martin Liska wrote:
> 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;
> 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?
> gcc/fortran/ChangeLog:
>
> 2015-02-26 Martin Liska <mliska@suse.cz>
>
> * resolve.c: Rename enum 'comparison' to 'compare_result' as
> solution for -Wodr issue.
OK. Thanks for the patch!
Tobias
PS: For Fortran patches, it helps to have fortran@ CCed as not all developers
also read gcc-patches@.