From: Cupertino Miranda Date: Sun, 22 Jan 2023 18:51:20 +0000 (-0700) Subject: [PATCH 1/2] select .rodata for const volatile variables. X-Git-Tag: basepoints/gcc-14~1928 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=011c0c29a2452e588f255673238460da4167c4c0;p=thirdparty%2Fgcc.git [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. --- diff --git a/gcc/config/v850/v850.cc b/gcc/config/v850/v850.cc index 7143a2e14829..367ba033d66a 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))))