aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCupertino Miranda <cupertino.miranda@oracle.com>2023-01-22 11:51:20 -0700
committerJeff Law <jlaw@ventanamicro.com>2023-01-22 11:52:26 -0700
commit011c0c29a2452e588f255673238460da4167c4c0 (patch)
treea083f689ee4d1332a98dc5bc0cdd747c720d8a59
parente4703bd0e15b4ed6e5eae36604b28bd4ca4f8cee (diff)
downloadgcc-011c0c29a2452e588f255673238460da4167c4c0.zip
gcc-011c0c29a2452e588f255673238460da4167c4c0.tar.gz
gcc-011c0c29a2452e588f255673238460da4167c4c0.tar.bz2
[PATCH 1/2] select .rodata for const volatile variables.
gcc/ * config/v850/v850.cc (v850_select_section): Put const volatile objects into read-only sections.
-rw-r--r--gcc/config/v850/v850.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/config/v850/v850.cc b/gcc/config/v850/v850.cc
index 7143a2e..367ba03 100644
--- a/gcc/config/v850/v850.cc
+++ b/gcc/config/v850/v850.cc
@@ -2865,7 +2865,6 @@ v850_select_section (tree exp,
{
int is_const;
if (!TREE_READONLY (exp)
- || TREE_SIDE_EFFECTS (exp)
|| !DECL_INITIAL (exp)
|| (DECL_INITIAL (exp) != error_mark_node
&& !TREE_CONSTANT (DECL_INITIAL (exp))))