[Bug target/71151] New: -fmerge-constants and -fdata-sections results in string constants in .progmem.gcc_sw section

2016-05-16 Thread senthil.thecoder at gmail dot com
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

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-05-17 Thread senthil.thecoder at gmail dot com
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).

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-05-18 Thread senthil.thecoder at gmail dot com
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

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-05-31 Thread senthil.thecoder at gmail dot com
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

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-06-01 Thread senthil.thecoder at gmail dot com
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

[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section

2016-06-02 Thread senthil.thecoder at gmail dot com
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

[Bug target/110086] New: ICE when optimization level is changed using optimize attribute

2023-06-02 Thread senthil.thecoder at gmail dot com via Gcc-bugs
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

[Bug target/110086] ICE when optimization level is changed using optimize attribute

2023-06-18 Thread senthil.thecoder at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110086 Senthil Kumar Selvaraj changed: What|Removed |Added Resolution|--- |FIXED Status|UNCON