summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/function.c
diff options
context:
space:
mode:
authorbenl <benl@FreeBSD.org>2011-05-22 22:17:06 +0000
committerbenl <benl@FreeBSD.org>2011-05-22 22:17:06 +0000
commit383b306f0a67acf8f459ff44a54abfdc085a7b0e (patch)
treee4d361069bb21555aa50fe046c78e63e724aed33 /contrib/gcc/function.c
parent9dc57d1405dd2c0bcbeb0a8f971ae24937bff1b3 (diff)
downloadFreeBSD-src-383b306f0a67acf8f459ff44a54abfdc085a7b0e.zip
FreeBSD-src-383b306f0a67acf8f459ff44a54abfdc085a7b0e.tar.gz
Fix clang warnings.
Approved by: philip (mentor)
Diffstat (limited to 'contrib/gcc/function.c')
-rw-r--r--contrib/gcc/function.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/contrib/gcc/function.c b/contrib/gcc/function.c
index 7549ec4..59970c4 100644
--- a/contrib/gcc/function.c
+++ b/contrib/gcc/function.c
@@ -4008,22 +4008,19 @@ stack_protect_epilogue (void)
/* Allow the target to compare Y with X without leaking either into
a register. */
- switch (HAVE_stack_protect_test != 0)
+ if (HAVE_stack_protect_test != 0)
{
- case 1:
tmp = gen_stack_protect_test (x, y, label);
if (tmp)
{
emit_insn (tmp);
- break;
+ goto done;
}
- /* FALLTHRU */
-
- default:
- emit_cmp_and_jump_insns (x, y, EQ, NULL_RTX, ptr_mode, 1, label);
- break;
}
+ emit_cmp_and_jump_insns (x, y, EQ, NULL_RTX, ptr_mode, 1, label);
+ done:
+
/* The noreturn predictor has been moved to the tree level. The rtl-level
predictors estimate this branch about 20%, which isn't enough to get
things moved out of line. Since this is the only extant case of adding
OpenPOWER on IntegriCloud