public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/arm-struct-reorg-wip)] Adds missing syntax discovered through fuzzying
@ 2020-08-30 8:25 Erick Ochoa Lopez
0 siblings, 0 replies; only message in thread
From: Erick Ochoa Lopez @ 2020-08-30 8:25 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9bb2c0ae701e84e600c132d2813dbbdde455ec1b
commit 9bb2c0ae701e84e600c132d2813dbbdde455ec1b
Author: Erick Ochoa <erick.ochoa@theobroma-systems.com>
Date: Fri Aug 28 12:36:26 2020 +0200
Adds missing syntax discovered through fuzzying
Diff:
---
gcc/ipa-type-escape-analysis.c | 25 ++++++++++++++++++++++++-
gcc/ipa-type-escape-analysis.h | 2 ++
2 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/gcc/ipa-type-escape-analysis.c b/gcc/ipa-type-escape-analysis.c
index 0a45959f882..d5f03794fdd 100644
--- a/gcc/ipa-type-escape-analysis.c
+++ b/gcc/ipa-type-escape-analysis.c
@@ -927,6 +927,12 @@ ExprWalker::_walk (const_tree e)
case GT_EXPR:
walk_GT_EXPR (e);
break;
+ case GE_EXPR:
+ walk_GE_EXPR (e);
+ break;
+ case NE_EXPR:
+ walk_NE_EXPR (e);
+ break;
default:
{
log ("missing %s\n", get_tree_code_name (code));
@@ -974,6 +980,8 @@ ExprWalkerFuncDef (LE_EXPR)
ExprWalkerFuncDef (LT_EXPR)
ExprWalkerFuncDef (EQ_EXPR)
ExprWalkerFuncDef (GT_EXPR)
+ExprWalkerFuncDef (GE_EXPR)
+ExprWalkerFuncDef (NE_EXPR)
void ExprWalker::_walk_leaf (const_tree e, const enum tree_code c)
{
@@ -1035,6 +1043,18 @@ ExprWalker::_walk_GT_EXPR (const_tree e)
_walk_op_1 (e, GT_EXPR);
}
+void
+ExprWalker::_walk_GE_EXPR (const_tree e)
+{
+ _walk_op_1 (e, GE_EXPR);
+}
+
+void
+ExprWalker::_walk_NE_EXPR (const_tree e)
+{
+ _walk_op_1 (e, NE_EXPR);
+}
+
void
ExprWalker::_walk_INTEGER_CST (const_tree e)
{
@@ -2199,7 +2219,10 @@ bool
GimpleEscaper::is_variable_escaping (varpool_node *vnode)
{
gcc_assert (vnode);
- return vnode->externally_visible;
+ const bool retval = vnode->externally_visible;
+ const bool retval2 = vnode->externally_visible_p();
+ log("%s externally_visible = %d %d\n", vnode->name(), retval, retval2);
+ return retval;
}
/* Walk global variable VNODE. */
diff --git a/gcc/ipa-type-escape-analysis.h b/gcc/ipa-type-escape-analysis.h
index 040e71b3d61..5faa723a6a6 100644
--- a/gcc/ipa-type-escape-analysis.h
+++ b/gcc/ipa-type-escape-analysis.h
@@ -291,6 +291,8 @@ private:
ExprWalkerFuncDecl (LT_EXPR);
ExprWalkerFuncDecl (EQ_EXPR);
ExprWalkerFuncDecl (GT_EXPR);
+ ExprWalkerFuncDecl (GE_EXPR);
+ ExprWalkerFuncDecl (NE_EXPR);
};
/* Base class for applying the visitor pattern to gimple_stmts.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-30 8:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-30 8:25 [gcc(refs/vendors/ARM/heads/arm-struct-reorg-wip)] Adds missing syntax discovered through fuzzying Erick Ochoa Lopez
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).