diff mbox

[PR,67861] fix printf_chk folding

Message ID 5613FB4F.6050609@acm.org
State New
Headers show

Commit Message

Nathan Sidwell Oct. 6, 2015, 4:48 p.m. UTC
I've committed this obvious fix.  Sorry for the breakage.

nathan
diff mbox

Patch

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.

Index: gimple-fold.c
===================================================================
--- gimple-fold.c	(revision 228535)
+++ gimple-fold.c	(working copy)
@@ -2890,6 +2890,7 @@  gimple_fold_builtin (gimple_stmt_iterato
 					   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));