]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH 1/2] select .rodata for const volatile variables.
authorCupertino Miranda <cupertino.miranda@oracle.com>
Sun, 22 Jan 2023 18:51:20 +0000 (11:51 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 22 Jan 2023 18:52:26 +0000 (11:52 -0700)
gcc/
* config/v850/v850.cc (v850_select_section): Put const volatile
objects into read-only sections.

gcc/config/v850/v850.cc

index 7143a2e148295c80386e57cff3d16ef32b12c927..367ba033d66abc89a6eb682647161a6152f98282 100644 (file)
@@ -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))))