This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/61886] [4.9/5/6 Regression] LTO breaks fread with _FORTIFY_SOURCE=2
- From: "mwahab at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Dec 2015 13:14:10 +0000
- Subject: [Bug lto/61886] [4.9/5/6 Regression] LTO breaks fread with _FORTIFY_SOURCE=2
- Auto-submitted: auto-generated
- References: <bug-61886-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61886
mwahab at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mwahab at gcc dot gnu.org
--- Comment #53 from mwahab at gcc dot gnu.org ---
(In reply to Jan Hubicka from comment #52)
> We no longer merge the decls, so hopefully this is fixed, but it would be
> nice to give it a try on the original packages that failed. We still may
> lose/provoke some warnings during IPA optimizations I suppose as IPA code
> does not assume this kind of side effect for aliases, but that is not an LTO
> specific issue anymore.
The new test case alias-2.c fails for aarch64.
Compiling from the command line with gcc -O2 -fdump-tree-all, I get the
following for the tree.optimized pass
-----
;; Function main (main, funcdef_no=0, decl_uid=2753, cgraph_uid=0,
symbol_order=3) (executed once)
main ()
{
int off.0_2;
<bb 2>:
off.0_2 = off;
b[off.0_2] = 1;
a[off.0_2] = 2;
__builtin_abort ();
}
----
Matthew