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 middle-end/50199] [5/6 Regression] wrong code with -flto -fno-merge-constants


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50199

--- Comment #30 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jan 17 20:33:16 2017
New Revision: 244553

URL: https://gcc.gnu.org/viewcvs?rev=244553&root=gcc&view=rev
Log:
        Backported from mainline
        2017-01-11  Jakub Jelinek  <jakub@redhat.com>

        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

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