summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-29 06:24:30 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-29 06:24:30 +0000
commit0b95377a11b7919946aea748fec48ecdb7af891c (patch)
treecb43f27c88ce47f175fdd702b70fcacb635c2219
parentd9714f266ea901cb3e1276fa1262355024c6b6f7 (diff)
downloadgcc-0b95377a11b7919946aea748fec48ecdb7af891c.tar.gz
PR target/9571
* varasm.c (default_elf_select_section_1): Pass decl to named_section. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91462 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/varasm.c20
2 files changed, 17 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6e2afa3cc24..a73f06ffe1d 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 aaf9e53b22c..09ce14dfcc0 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 ();