This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/61043] LTO accumulates CPU requirements from all input objects
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Oct 2016 17:31:47 +0000
- Subject: [Bug lto/61043] LTO accumulates CPU requirements from all input objects
- Auto-submitted: auto-generated
- References: <bug-61043-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61043
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to andysem from comment #10)
> (In reply to Andrew Pinski from comment #9)
> >
> > I think this testcase is violating C++ ODR. In that
> > INSTRUCTION_SET::my_simd_func_impl is the same between the TUs. If you had
> > used an anonymous namespace, it should have worked correctly. If anonymous
> > namespace does not work, please file a separate bug.
>
> INSTRUCTION_SET is defined differently for the two translation units, so we
> essentially have sse2::my_simd_func_impl and avx::my_simd_func_impl. This
> does not violate ODR.
Open a new bug.