diff options
author | Cupertino Miranda <cupertino.miranda@oracle.com> | 2023-01-22 11:51:20 -0700 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2023-01-22 11:52:26 -0700 |
commit | 011c0c29a2452e588f255673238460da4167c4c0 (patch) | |
tree | a083f689ee4d1332a98dc5bc0cdd747c720d8a59 | |
parent | e4703bd0e15b4ed6e5eae36604b28bd4ca4f8cee (diff) | |
download | gcc-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.cc | 1 |
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)))) |