[Bug middle-end/50199] [5/6 Regression] wrong code with -flto -fno-merge-constants

2017-01-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50199

--- Comment #30 from Jakub Jelinek  ---
Author: jakub
Date: Tue Jan 17 20:33:16 2017
New Revision: 244553

URL: https://gcc.gnu.org/viewcvs?rev=244553=gcc=rev
Log:
Backported from mainline
2017-01-11  Jakub Jelinek  

PR middle-end/50199
* lto-lang.c (lto_post_options): Force flag_merge_constants = 1
if it was 0.

* gcc.dg/lto/pr50199_0.c: New test.

Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/lto/pr50199_0.c
Modified:
branches/gcc-6-branch/gcc/lto/ChangeLog
branches/gcc-6-branch/gcc/lto/lto-lang.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug middle-end/50199] [5/6 Regression] wrong code with -flto -fno-merge-constants

2017-01-13 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50199

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[5/6/7 Regression] wrong|[5/6 Regression] wrong code
   |code with -flto |with -flto
   |-fno-merge-constants|-fno-merge-constants

--- Comment #29 from Jakub Jelinek  ---
Fixed on the trunk.