[Bug middle-end/91899] Merge constant literals

2021-09-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91899 Andrew Pinski changed: What|Removed |Added Resolution|--- |WONTFIX Status|NEW

[Bug middle-end/91899] Merge constant literals

2019-09-25 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91899 --- Comment #5 from joseph at codesourcery dot com --- Note that you can use -fmerge-all-constants to tell the compiler to allow merging named constant objects (I haven't checked if that helps in this case, however).

[Bug middle-end/91899] Merge constant literals

2019-09-25 Thread antoshkka at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91899 --- Comment #4 from Antony Polukhin --- (In reply to Alexander Monakov from comment #3) > unless the compiler somehow proves that overlap is not > observable? Oh, now I see. Here's a valid example: static const char data1[] = "test"; static con

[Bug middle-end/91899] Merge constant literals

2019-09-25 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91899 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org --- Comm

[Bug middle-end/91899] Merge constant literals

2019-09-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91899 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/91899] Merge constant literals

2019-09-25 Thread antoshkka at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91899 --- Comment #1 from Antony Polukhin --- Godbolt playground: https://godbolt.org/z/UA_Xsm