https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83954
--- Comment #9 from Jan Hubicka ---
Author: hubicka
Date: Tue Jan 30 13:17:40 2018
New Revision: 257183
URL: https://gcc.gnu.org/viewcvs?rev=257183=gcc=rev
Log:
PR lto/83954
* lto-symtab.c (warn_type_compatibility_p): Silence
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83954
--- Comment #8 from Dan Bonachea ---
(In reply to Jan Hubicka from comment #7)
> This should silence the warning.
> Index: lto-symtab.c
> ===
> --- lto-symtab.c(revision
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83954
--- Comment #7 from Jan Hubicka ---
It is not going to produce wrong code. GCC knows that pointers to incomplete
types alias with pointers to complete types and it also handles array by alias
sets of their elements. What is wrong here is that
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83954
--- Comment #6 from Martin Liška ---
(In reply to Dan Bonachea from comment #5)
> (In reply to Martin Liška from comment #4)
> > > Assuming it's the latter, can anyone suggest any non-intrusive
> > > workarounds?
> > > (aside from the obvious
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83954
--- Comment #5 from Dan Bonachea ---
(In reply to Martin Liška from comment #4)
> > Assuming it's the latter, can anyone suggest any non-intrusive workarounds?
> > (aside from the obvious "big hammers" of -fno-lto or -fno-strict-aliasing)
>
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83954
--- Comment #4 from Martin Liška ---
> Assuming it's the latter, can anyone suggest any non-intrusive workarounds?
> (aside from the obvious "big hammers" of -fno-lto or -fno-strict-aliasing)
Yes, the warning should not produce bogus warnings.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83954
Martin Liška changed:
What|Removed |Added
Assignee|marxin at gcc dot gnu.org |hubicka at gcc dot
gnu.org
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83954
--- Comment #2 from Dan Bonachea ---
Thanks Mr. Liška!
If possible it would be useful for our project to know whether this defect is
solely a spurious warning, or whether it could affect analysis in a way that
might result in incorrect code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83954
Richard Biener changed:
What|Removed |Added
Priority|P3 |P2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83954
Martin Liška changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
10 matches
Mail list logo