re PR middle-end/50199 (wrong code with -flto -fno-merge-constants)
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Jan 2017 08:40:59 +0000 (09:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Jan 2017 08:40:59 +0000 (09:40 +0100)
commit4c4b47031d4bcbf116cbc3c479933adf14b2b4fe
treeeb8e4fca20eece89c2e2363b589bcc9a85df7417
parenta476f04689b31d139f976d3ef8c80631ca52c591
re PR middle-end/50199 (wrong code with -flto -fno-merge-constants)

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.

From-SVN: r244304
gcc/lto/ChangeLog
gcc/lto/lto-lang.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr50199_0.c [new file with mode: 0644]