aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-11-08 12:45:35 +0100
committerMartin Liska <marxin@gcc.gnu.org>2017-11-08 11:45:35 +0000
commit9f6fbcd3c9ac2ce44c1f0226b2bf6e58d81398af (patch)
treeed9970d05f29409527482f63720662b8bcf816bc
parent106db840d063c19ab6bed5e76fcb5a70dc6c7d80 (diff)
downloadgcc-9f6fbcd3c9ac2ce44c1f0226b2bf6e58d81398af.zip
gcc-9f6fbcd3c9ac2ce44c1f0226b2bf6e58d81398af.tar.gz
gcc-9f6fbcd3c9ac2ce44c1f0226b2bf6e58d81398af.tar.bz2
Simplify call of gimple_call_internal_p.
2017-11-08 Martin Liska <mliska@suse.cz> * gimplify.c (expand_FALLTHROUGH_r): Simplify usage of gimple_call_internal_p. From-SVN: r254524
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gimplify.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ed9a130..6ba019c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-11-08 Martin Liska <mliska@suse.cz>
+
+ * gimplify.c (expand_FALLTHROUGH_r): Simplify usage
+ of gimple_call_internal_p.
+
2017-11-07 Tom de Vries <tom@codesourcery.com>
* config/mips/mips.h (ASM_OUTPUT_LABELREF): Wrap in "do {} while (0)".
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 9563d82..e916878 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -2223,8 +2223,7 @@ expand_FALLTHROUGH_r (gimple_stmt_iterator *gsi_p, bool *handled_ops_p,
while (!gsi_end_p (gsi2))
{
stmt = gsi_stmt (gsi2);
- enum gimple_code gc = gimple_code (stmt);
- if (gc == GIMPLE_LABEL)
+ if (gimple_code (stmt) == GIMPLE_LABEL)
{
tree label = gimple_label_label (as_a <glabel *> (stmt));
if (gimple_has_location (stmt) && DECL_ARTIFICIAL (label))
@@ -2233,8 +2232,7 @@ expand_FALLTHROUGH_r (gimple_stmt_iterator *gsi_p, bool *handled_ops_p,
break;
}
}
- else if (gc == GIMPLE_CALL
- && gimple_call_internal_p (stmt, IFN_ASAN_MARK))
+ else if (gimple_call_internal_p (stmt, IFN_ASAN_MARK))
;
else
/* Something other is not expected. */