From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id 223393858D32; Sun, 22 Jan 2023 18:52:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 223393858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674413559; bh=IBcLP3yZthii6XnYGl2PM52KFVn7oYxQCRBaHs9PKvc=; h=From:To:Subject:Date:From; b=K3uX87LxjFGL7FSTu6Yv9GKdLdyVHITvWR7VXuei7/2Txk5twKe26xPxny5w3148L HW0OGq7rk4ISpkOnFKrzNKzGQJnd8nXImSbdhn+UYHkZpyFTiA1ays8rqKRtf99ur+ SdHPgBnl+TRB1Rhqzxn0eYd3LvOhSN/gQQqliwho= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jeff Law To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5279] [PATCH 1/2] select .rodata for const volatile variables. X-Act-Checkin: gcc X-Git-Author: Cupertino Miranda X-Git-Refname: refs/heads/master X-Git-Oldrev: e4703bd0e15b4ed6e5eae36604b28bd4ca4f8cee X-Git-Newrev: 011c0c29a2452e588f255673238460da4167c4c0 Message-Id: <20230122185239.223393858D32@sourceware.org> Date: Sun, 22 Jan 2023 18:52:39 +0000 (GMT) List-Id: https://gcc.gnu.org/g:011c0c29a2452e588f255673238460da4167c4c0 commit r13-5279-g011c0c29a2452e588f255673238460da4167c4c0 Author: Cupertino Miranda Date: Sun Jan 22 11:51:20 2023 -0700 [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: --- 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 7143a2e1482..367ba033d66 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))))