public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5279] [PATCH 1/2] select .rodata for const volatile variables.
@ 2023-01-22 18:52 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-01-22 18:52 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:011c0c29a2452e588f255673238460da4167c4c0

commit r13-5279-g011c0c29a2452e588f255673238460da4167c4c0
Author: Cupertino Miranda <cupertino.miranda@oracle.com>
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))))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-22 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-22 18:52 [gcc r13-5279] [PATCH 1/2] select .rodata for const volatile variables Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).