re PR middle-end/67861 (coreutils' wc.c:write_counts is miscompiled since commit...
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 6 Oct 2015 16:47:00 +0000 (16:47 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 6 Oct 2015 16:47:00 +0000 (16:47 +0000)
PR 67861
* gimple-fold.c (gimple_fold_builtin): Add break after
BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.

From-SVN: r228536

gcc/ChangeLog
gcc/gimple-fold.c

index bf66e62d8d4a4cfaca328f3e8189ec0a39e45cca..a906ea5bf9b328634b88889b09b398c4b9be4093 100644 (file)
@@ -1,3 +1,9 @@
+2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR 67861
+       * gimple-fold.c (gimple_fold_builtin): Add break after
+       BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
+
 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
index a6caaa490689c4c22485c1e4202999884d0c45bb..48353804972d5ff5240a3d60fa644d4d68e1db6b 100644 (file)
@@ -2890,6 +2890,7 @@ gimple_fold_builtin (gimple_stmt_iterator *gsi)
                                           n == 3
                                           ? gimple_call_arg (stmt, 2)
                                           : NULL_TREE, fcode);
+      break;
     case BUILT_IN_ACC_ON_DEVICE:
       return gimple_fold_builtin_acc_on_device (gsi,
                                                gimple_call_arg (stmt, 0));