]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/53123 (Double return statement in c-omp.c source file)
authorMarek Polacek <polacek@redhat.com>
Wed, 5 Feb 2014 21:06:56 +0000 (21:06 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 5 Feb 2014 21:06:56 +0000 (21:06 +0000)
PR c/53123
c-family/
* c-omp.c (c_finish_omp_atomic): Remove unreachable return
statement.

From-SVN: r207524

gcc/c-family/ChangeLog
gcc/c-family/c-omp.c

index 82807f385798ab826ef7d39c53e6aa5eda4b6af6..38fc2d23e34229dafeba4be8646d3f85ad974dca 100644 (file)
@@ -1,3 +1,9 @@
+2014-02-05  Marek Polacek  <polacek@redhat.com>
+
+       PR c/53123
+       * c-omp.c (c_finish_omp_atomic): Remove unreachable return
+       statement.
+
 2014-02-04  Marek Polacek  <polacek@redhat.com>
 
        PR c/60036
index 4ce51e4a9d2fe425873f66ab00d089498e2b50b6..dd0a45d968a9cea5c6f8eaf3d42a45a699ecf0bc 100644 (file)
@@ -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