This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/61886] [4.9/5/6 Regression] LTO breaks fread with _FORTIFY_SOURCE=2


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]