This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Remove unreachable return stmt (PR c/53123)
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>
- Date: Wed, 5 Feb 2014 21:58:32 +0100
- Subject: [PATCH] Remove unreachable return stmt (PR c/53123)
- Authentication-results: sourceware.org; auth=none
This is not a regression, on the other hand it's so obvious that
it could go in nevertheless. Ok?
2014-02-05 Marek Polacek <polacek@redhat.com>
PR c/53123
c-family/
* c-omp.c (c_finish_omp_atomic): Remove unreachable return
statement.
diff --git gcc/c-family/c-omp.c gcc/c-family/c-omp.c
index 4ce51e4..dd0a45d 100644
--- gcc/c-family/c-omp.c
+++ gcc/c-family/c-omp.c
@@ -183,7 +183,6 @@ c_finish_omp_atomic (location_t loc, enum tree_code code,
OMP_ATOMIC_SEQ_CST (x) = seq_cst;
return build_modify_expr (loc, v, NULL_TREE, NOP_EXPR,
loc, x, NULL_TREE);
- return x;
}
/* There are lots of warnings, errors, and conversions that need to happen
Marek