From: Alan Modra Date: Mon, 29 Nov 2004 06:24:30 +0000 (+1030) Subject: re PR target/9571 ([PPC] problems with 'const', -msdata=eabi and sections.) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6654de69a7b37f784658232694bb5707c3eb1719;p=platform%2Fupstream%2Fgcc.git re PR target/9571 ([PPC] problems with 'const', -msdata=eabi and sections.) PR target/9571 * varasm.c (default_elf_select_section_1): Pass decl to named_section. From-SVN: r91462 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6e2afa3..a73f06f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,11 +1,16 @@ -2004-11-18 Andrew Pinski +2004-11-29 Alan Modra + + PR target/9571 + * varasm.c (default_elf_select_section_1): Pass decl to named_section. + +2004-11-28 Andrew Pinski PR middle-end/18164 * gimplify.c (gimplify_asm_expr): If the length of an output operand is zero, do not process it, just let it go through. 2004-11-28 Richard Kenner - Diego Novillo + Diego Novillo PR/18662, also backported from tree-cleanup-branch. * tree-ssa-ccp.c (substitute_and_fold): If replaced anything, diff --git a/gcc/varasm.c b/gcc/varasm.c index aaf9e53..09ce14d 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -4915,41 +4915,41 @@ default_elf_select_section_1 (tree decl, int reloc, mergeable_constant_section (DECL_MODE (decl), align, 0); break; case SECCAT_SRODATA: - named_section (NULL_TREE, ".sdata2", reloc); + named_section (decl, ".sdata2", reloc); break; case SECCAT_DATA: data_section (); break; case SECCAT_DATA_REL: - named_section (NULL_TREE, ".data.rel", reloc); + named_section (decl, ".data.rel", reloc); break; case SECCAT_DATA_REL_LOCAL: - named_section (NULL_TREE, ".data.rel.local", reloc); + named_section (decl, ".data.rel.local", reloc); break; case SECCAT_DATA_REL_RO: - named_section (NULL_TREE, ".data.rel.ro", reloc); + named_section (decl, ".data.rel.ro", reloc); break; case SECCAT_DATA_REL_RO_LOCAL: - named_section (NULL_TREE, ".data.rel.ro.local", reloc); + named_section (decl, ".data.rel.ro.local", reloc); break; case SECCAT_SDATA: - named_section (NULL_TREE, ".sdata", reloc); + named_section (decl, ".sdata", reloc); break; case SECCAT_TDATA: - named_section (NULL_TREE, ".tdata", reloc); + named_section (decl, ".tdata", reloc); break; case SECCAT_BSS: #ifdef BSS_SECTION_ASM_OP bss_section (); #else - named_section (NULL_TREE, ".bss", reloc); + named_section (decl, ".bss", reloc); #endif break; case SECCAT_SBSS: - named_section (NULL_TREE, ".sbss", reloc); + named_section (decl, ".sbss", reloc); break; case SECCAT_TBSS: - named_section (NULL_TREE, ".tbss", reloc); + named_section (decl, ".tbss", reloc); break; default: abort ();