public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] varasm: Handle {VAR, PARM}_DECL in tree_innermost_capability
@ 2022-06-13 10:14 Alex Coplan
0 siblings, 0 replies; only message in thread
From: Alex Coplan @ 2022-06-13 10:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:63b4bc6634e17fcc73742635887cb7155cd4a213
commit 63b4bc6634e17fcc73742635887cb7155cd4a213
Author: Alex Coplan <alex.coplan@arm.com>
Date: Wed Jun 8 13:01:22 2022 +0100
varasm: Handle {VAR,PARM}_DECL in tree_innermost_capability
Diff:
---
gcc/varasm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 2e76f0f725b..79ecf9d9c60 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -4625,6 +4625,10 @@ tree_innermost_capability (const_tree t)
switch (TREE_CODE (t))
{
+ case VAR_DECL:
+ case PARM_DECL:
+ /* These can never be assembly constants. */
+ return NULL_TREE;
case INTEGER_CST:
CASE_ADDR_EXPR:
return t;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-13 10:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 10:14 [gcc(refs/vendors/ARM/heads/morello)] varasm: Handle {VAR, PARM}_DECL in tree_innermost_capability Alex Coplan
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).