Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: senthil.thecoder at gmail dot com
Target Milestone: ---
Using -fdata-sections causes string literals in functions to go into
.progmem.sw_gcc, instead of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151
--- Comment #1 from Senthil Kumar Selvaraj
---
A workaround is to disable constant merging (-fno-merge-constants).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151
--- Comment #3 from Senthil Kumar Selvaraj
---
Yeah, it's a 6.x thing. There's a commit that changes varasm.c from using
targetm.asm_out.mergeable_rodata_prefix to a function call to
targetm.asm_out.function_rodata_section hook if the section ca
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151
--- Comment #7 from Senthil Kumar Selvaraj
---
Created attachment 38613
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38613&action=edit
Tentative patch for 6.1
Looks like the right fix will need to somehow differentiate between jump tabl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151
--- Comment #9 from Senthil Kumar Selvaraj
---
For both kinds of invocation (mergeable constants and jump tables), the decl
passed is current_function_decl. And that looks right from the documentation
for the target hook.
I'll submit another pa
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151
--- Comment #12 from Senthil Kumar Selvaraj
---
Yes, tiny also has .rodata in .data
I'd totally missed PR 63323, so just removing the target hook and turning on
JUMP_TABLES_IN_TEXT_SECTION does the trick, like you said. Wrote a basic test
to ma
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: senthil.thecoder at gmail dot com
Target Milestone: ---
Compiler crashes with an ICE for the below code.
Already seen in regression runs (gcc.c-torture/compile/pr104327.c, for e.g
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110086
Senthil Kumar Selvaraj changed:
What|Removed |Added
Resolution|--- |FIXED
Status|UNCON