From: Nathan Sidwell Date: Tue, 6 Oct 2015 16:47:00 +0000 (+0000) Subject: re PR middle-end/67861 (coreutils' wc.c:write_counts is miscompiled since commit... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=242a37f12db15a2158a801ad0fa1d50feb3732b2;p=gcc.git re PR middle-end/67861 (coreutils' wc.c:write_counts is miscompiled since commit 7e3a76de7c496449b187c2688d958631cf21a944) PR 67861 * gimple-fold.c (gimple_fold_builtin): Add break after BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding. From-SVN: r228536 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf66e62d8d4..a906ea5bf9b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-10-06 Nathan Sidwell + + 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 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index a6caaa49068..48353804972 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -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));