summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-01 23:29:55 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-01 23:29:55 +0000
commitf4111c945c19b2ca01d5d23fbf81dbcf6fba7d3e (patch)
tree194c05431fa23bd64a67f9d0a7826dbb16f016c2 /gcc/config
parent52964258ce3d663d267b005bbf1b1ab28d56973f (diff)
downloadgcc-f4111c945c19b2ca01d5d23fbf81dbcf6fba7d3e.tar.gz
* output.h (DECL_READONLY_SECTION): Remove.
(decl_readonly_section): Declare. * varasm.c (decl_readonly_section): New. (default_section_type_flags, default_select_section): Use it. * config/arm/pe.c (arm_pe_unique_section): Likewise. * config/i386/interix.c (i386_pe_unique_section): Likewise. * config/i386/winnt.c (i386_pe_unique_section): Likewise. * config/mcore/mcore.c (mcore_unique_section): Likewise. * config/mips/mips.c (mips_unique_section): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55957 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arm/pe.c2
-rw-r--r--gcc/config/i386/interix.c2
-rw-r--r--gcc/config/i386/winnt.c4
-rw-r--r--gcc/config/mcore/mcore.c2
-rw-r--r--gcc/config/mips/mips.c4
5 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/arm/pe.c b/gcc/config/arm/pe.c
index c86e23124b6..848d1986fe8 100644
--- a/gcc/config/arm/pe.c
+++ b/gcc/config/arm/pe.c
@@ -264,7 +264,7 @@ arm_pe_unique_section (decl, reloc)
(everything from the $ on is stripped). */
if (TREE_CODE (decl) == FUNCTION_DECL)
prefix = ".text$";
- else if (DECL_READONLY_SECTION (decl, reloc))
+ else if (decl_readonly_section (decl, reloc))
prefix = ".rdata$";
else
prefix = ".data$";
diff --git a/gcc/config/i386/interix.c b/gcc/config/i386/interix.c
index 58a19ab5de6..e2222cac1f3 100644
--- a/gcc/config/i386/interix.c
+++ b/gcc/config/i386/interix.c
@@ -112,7 +112,7 @@ i386_pe_unique_section (decl, reloc)
without a .rdata section. */
if (TREE_CODE (decl) == FUNCTION_DECL)
prefix = ".text$";
- else if (DECL_READONLY_SECTION (decl, reloc))
+ else if (decl_readonly_section (decl, reloc))
prefix = ".rdata$";
else
prefix = ".data$";
diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c
index d6f0a7a81aa..066b4d22f3a 100644
--- a/gcc/config/i386/winnt.c
+++ b/gcc/config/i386/winnt.c
@@ -472,7 +472,7 @@ i386_pe_unique_section (decl, reloc)
without a .rdata section. */
if (TREE_CODE (decl) == FUNCTION_DECL)
prefix = ".text$";
- else if (DECL_READONLY_SECTION (decl, reloc))
+ else if (decl_readonly_section (decl, reloc))
prefix = ".rdata$";
else
prefix = ".data$";
@@ -518,7 +518,7 @@ i386_pe_section_type_flags (decl, name, reloc)
if (decl && TREE_CODE (decl) == FUNCTION_DECL)
flags = SECTION_CODE;
- else if (decl && DECL_READONLY_SECTION (decl, reloc))
+ else if (decl && decl_readonly_section (decl, reloc))
flags = 0;
else
{
diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c
index 2b7747e1769..650d0dd8a96 100644
--- a/gcc/config/mcore/mcore.c
+++ b/gcc/config/mcore/mcore.c
@@ -3540,7 +3540,7 @@ mcore_unique_section (decl, reloc)
prefix = ".text$";
/* For compatibility with EPOC, we ignore the fact that the
section might have relocs against it. */
- else if (DECL_READONLY_SECTION (decl, 0))
+ else if (decl_readonly_section (decl, 0))
prefix = ".rdata$";
else
prefix = ".data$";
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 532e55994ea..d04f4ce6baa 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -10310,7 +10310,7 @@ mips_unique_section (decl, reloc)
read-only data if possible, in order to reduce RAM
usage. */
- if (DECL_READONLY_SECTION (decl, reloc))
+ if (decl_readonly_section (decl, reloc))
sec = 1;
else if (size > 0 && size <= mips_section_threshold)
sec = 3;
@@ -10325,7 +10325,7 @@ mips_unique_section (decl, reloc)
if (size > 0 && size <= mips_section_threshold)
sec = 3;
- else if (DECL_READONLY_SECTION (decl, reloc))
+ else if (decl_readonly_section (decl, reloc))
sec = 1;
else
sec = 2;