* [Bug middle-end/63556] gcc should dedup string postfixes
2014-10-16 8:53 [Bug middle-end/63556] New: gcc should dedup string postfixes andi-gcc at firstfloor dot org
@ 2014-10-16 8:54 ` andi-gcc at firstfloor dot org
2014-10-16 9:07 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: andi-gcc at firstfloor dot org @ 2014-10-16 8:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/63556] gcc should dedup string postfixes
2014-10-16 8:53 [Bug middle-end/63556] New: gcc should dedup string postfixes andi-gcc at firstfloor dot org
2014-10-16 8:54 ` [Bug middle-end/63556] " andi-gcc at firstfloor dot org
@ 2014-10-16 9:07 ` rguenth at gcc dot gnu.org
2014-10-16 9:27 ` schwab@linux-m68k.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-10-16 9:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-10-16
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. Constant/literal pool also misses merging V2DF { 0., 0. } with
DF 0. for example (and more). There's another PR for that somewhere with
some hackish patch from me.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/63556] gcc should dedup string postfixes
2014-10-16 8:53 [Bug middle-end/63556] New: gcc should dedup string postfixes andi-gcc at firstfloor dot org
2014-10-16 8:54 ` [Bug middle-end/63556] " andi-gcc at firstfloor dot org
2014-10-16 9:07 ` rguenth at gcc dot gnu.org
@ 2014-10-16 9:27 ` schwab@linux-m68k.org
2024-06-11 17:39 ` andi-gcc at firstfloor dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: schwab@linux-m68k.org @ 2014-10-16 9:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556
--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
This is done by the linker, as part of the merge section handling.
Contents of section .rodata:
4005b0 01000200 78616263 00 ....xabc.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/63556] gcc should dedup string postfixes
2014-10-16 8:53 [Bug middle-end/63556] New: gcc should dedup string postfixes andi-gcc at firstfloor dot org
` (2 preceding siblings ...)
2014-10-16 9:27 ` schwab@linux-m68k.org
@ 2024-06-11 17:39 ` andi-gcc at firstfloor dot org
2024-06-13 9:23 ` xry111 at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: andi-gcc at firstfloor dot org @ 2024-06-11 17:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEW |RESOLVED
--- Comment #3 from Andi Kleen <andi-gcc at firstfloor dot org> ---
Since the linker does it the change is not needed.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/63556] gcc should dedup string postfixes
2014-10-16 8:53 [Bug middle-end/63556] New: gcc should dedup string postfixes andi-gcc at firstfloor dot org
` (3 preceding siblings ...)
2024-06-11 17:39 ` andi-gcc at firstfloor dot org
@ 2024-06-13 9:23 ` xry111 at gcc dot gnu.org
2024-06-13 9:24 ` xry111 at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: xry111 at gcc dot gnu.org @ 2024-06-13 9:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556
Xi Ruoyao <xry111 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|WONTFIX |---
CC| |xry111 at gcc dot gnu.org
Status|RESOLVED |REOPENED
--- Comment #4 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Added the gentleman applying as the new IA64 maintainer into CC and reopened.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/63556] gcc should dedup string postfixes
2014-10-16 8:53 [Bug middle-end/63556] New: gcc should dedup string postfixes andi-gcc at firstfloor dot org
` (4 preceding siblings ...)
2024-06-13 9:23 ` xry111 at gcc dot gnu.org
@ 2024-06-13 9:24 ` xry111 at gcc dot gnu.org
2024-06-13 9:40 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: xry111 at gcc dot gnu.org @ 2024-06-13 9:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556
Xi Ruoyao <xry111 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #5 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Sorry somehow changed the wrong bug. I don't really understand the rule of
bugzilla for jumping into another bug when I changed one...
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/63556] gcc should dedup string postfixes
2014-10-16 8:53 [Bug middle-end/63556] New: gcc should dedup string postfixes andi-gcc at firstfloor dot org
` (5 preceding siblings ...)
2024-06-13 9:24 ` xry111 at gcc dot gnu.org
@ 2024-06-13 9:40 ` jakub at gcc dot gnu.org
2024-06-13 13:43 ` andi-gcc at firstfloor dot org
2024-06-13 13:49 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-06-13 9:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
When you touch this, only ld.bfd does this optimization, none of gold, lld or
mold (at least versions I've tried) do that. Easy way to speed up the
linkers...
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/63556] gcc should dedup string postfixes
2014-10-16 8:53 [Bug middle-end/63556] New: gcc should dedup string postfixes andi-gcc at firstfloor dot org
` (6 preceding siblings ...)
2024-06-13 9:40 ` jakub at gcc dot gnu.org
@ 2024-06-13 13:43 ` andi-gcc at firstfloor dot org
2024-06-13 13:49 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: andi-gcc at firstfloor dot org @ 2024-06-13 13:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556
--- Comment #7 from Andi Kleen <andi-gcc at firstfloor dot org> ---
I'm not sure how it would speed up the linker if gcc did it. The linker would
still need to do it because there might be matches between different .o files.
Also linker wouldn't know if the compiler supported this or not.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/63556] gcc should dedup string postfixes
2014-10-16 8:53 [Bug middle-end/63556] New: gcc should dedup string postfixes andi-gcc at firstfloor dot org
` (7 preceding siblings ...)
2024-06-13 13:43 ` andi-gcc at firstfloor dot org
@ 2024-06-13 13:49 ` pinskia at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-13 13:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63556
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andi Kleen from comment #7)
> I'm not sure how it would speed up the linker if gcc did it. The linker
> would still need to do it because there might be matches between different
> .o files. Also linker wouldn't know if the compiler supported this or not.
I think you misunderstood Jakub's comment, he was basically mentioning that
comparing the linking speed of gold/mold/lld to bfd ld is not exactly fair
because those don't implement this optimization. Removing it from bfd ld might
speed up it up too. It was not really a comment about adding it to GCC.
^ permalink raw reply [flat|nested] 10+ messages in thread