From 011c0c29a2452e588f255673238460da4167c4c0 Mon Sep 17 00:00:00 2001 From: Cupertino Miranda Date: Sun, 22 Jan 2023 11:51:20 -0700 Subject: [PATCH] [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. --- gcc/config/v850/v850.cc | 1 - 1 file changed, 1 deletion(-) 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)))) -- 2.47.2