diff options
author | Alan Modra <amodra@gcc.gnu.org> | 2004-11-29 16:54:30 +1030 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2004-11-29 16:54:30 +1030 |
commit | 6654de69a7b37f784658232694bb5707c3eb1719 (patch) | |
tree | cb43f27c88ce47f175fdd702b70fcacb635c2219 /gcc | |
parent | 6db081f1a815ed28c6639fcdb4c9c0c169808a4b (diff) | |
download | gcc-6654de69a7b37f784658232694bb5707c3eb1719.zip gcc-6654de69a7b37f784658232694bb5707c3eb1719.tar.gz gcc-6654de69a7b37f784658232694bb5707c3eb1719.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/varasm.c | 20 |
2 files changed, 17 insertions, 12 deletions
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 <pinskia@physics.uc.edu> +2004-11-29 Alan Modra <amodra@bigpond.net.au> + + PR target/9571 + * varasm.c (default_elf_select_section_1): Pass decl to named_section. + +2004-11-28 Andrew Pinski <pinskia@physics.uc.edu> 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 <kenner@vlsi1.ultra.nyu.edu> - Diego Novillo <dnovillo@redhat.com> + Diego Novillo <dnovillo@redhat.com> 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 (); |