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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 10 12:41:00 GMT 2017


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?


More information about the Gcc-bugs mailing list