This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Aug 2016 09:15:58 +0000
- Subject: [Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section
- Auto-submitted: auto-generated
- References: <bug-71151-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151
--- Comment #15 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Mon Aug 1 09:15:24 2016
New Revision: 238935
URL: https://gcc.gnu.org/viewcvs?rev=238935&root=gcc&view=rev
Log:
gcc/
Backport from 2016-06-16 trunk r237536.
2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
PR target/71151
* config/avr/avr.c (avr_asm_init_sections): Remove setup of
progmem_swtable_section.
(progmem_swtable_section): Remove.
(avr_asm_function_rodata_section): Remove.
(TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
* config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Define to 1.
testsuite/
Backport from 2016-06-16 trunk r237536, r237910.
2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
PR target/71151
* gcc.target/avr/pr71151-1.c: New test.
* gcc.target/avr/pr71151-2.c: New test.
* gcc.target/avr/pr71151-3.c: New test.
* gcc.target/avr/pr71151-4.c: New test.
* gcc.target/avr/pr71151-5.c: New test.
* gcc.target/avr/pr71151-6.c: New test.
* gcc.target/avr/pr71151-7.c: New test.
* gcc.target/avr/pr71151-8.c: New test.
* gcc.target/avr/pr71151-common.h: New file.
Added:
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/pr71151-1.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/pr71151-2.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/pr71151-3.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/pr71151-4.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/pr71151-5.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/pr71151-6.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/pr71151-7.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/pr71151-8.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/pr71151-common.h
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/config/avr/avr.c
branches/gcc-6-branch/gcc/config/avr/avr.h
branches/gcc-6-branch/gcc/testsuite/ChangeLog