This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Remove unreachable return stmt (PR c/53123)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 5 Feb 2014 22:01:31 +0100
- Subject: Re: [PATCH] Remove unreachable return stmt (PR c/53123)
- Authentication-results: sourceware.org; auth=none
- References: <20140205205832 dot GP8907 at redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Feb 05, 2014 at 09:58:32PM +0100, Marek Polacek wrote:
> 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.
Ok, thanks.
> --- 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
Jakub