This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/43746] -fmerge-constants and -fmerge-all-constants don't work at AVR target
- 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: Thu, 14 Jul 2011 07:49:38 +0000
- Subject: [Bug target/43746] -fmerge-constants and -fmerge-all-constants don't work at AVR target
- Auto-submitted: auto-generated
- References: <bug-43746-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43746
--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-07-14 07:49:19 UTC ---
Author: gjl
Date: Thu Jul 14 07:49:14 2011
New Revision: 176262
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176262
Log:
gcc/
PR target/43746
* config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
i.e. use default_elf_select_section.
(TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
(READONLY_DATA_SECTION_ASM_OP): Remove.
(TARGET_ASM_NAMED_SECTION): Move from here...
* config/avr/avr.c: ...to here.
(avr_asm_init_sections): Set unnamed callback of
readonly_data_section.
(avr_asm_named_section): Make static.
testsuite/
PR target/43746
* gcc.dg/array-quals-1.c: Don't xfail on AVR.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/avr/avr.c
trunk/gcc/config/avr/elf.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/array-quals-1.c