This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/50199] [5/6/7 Regression] wrong code with -flto -fno-merge-constants
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Jan 2017 12:41:25 +0000
- Subject: [Bug middle-end/50199] [5/6/7 Regression] wrong code with -flto -fno-merge-constants
- Auto-submitted: auto-generated
- References: <bug-50199-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50199
--- Comment #24 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Another option is to silently force -flto-partition=none (or would
-flto-partition=1to1 work too?) if !flag_merge_constants or HAVE_GAS_SHF_MERGE
is not defined. Or silently turn on flag_merge_constants (set to 1 if 0) in
lto compilation, and/or force -flto-partition=none (or 1to1) if
HAVE_GAS_SHF_MERGE is not defined.
Honza/Richard, what do you prefer here?