From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25320 invoked by alias); 2 Dec 2008 00:39:10 -0000 Received: (qmail 24753 invoked by uid 48); 2 Dec 2008 00:37:49 -0000 Date: Tue, 02 Dec 2008 00:39:00 -0000 Message-ID: <20081202003749.24752.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/38360] [4.3/4.4 regression] ICE in gimple_op, at gimple.h:1636 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-12/txt/msg00125.txt.bz2 ------- Comment #3 from pinskia at gcc dot gnu dot org 2008-12-02 00:37 ------- Caused by: ------------------------------------------------------------------------ r122018 | sandra | 2007-02-15 15:50:49 -0800 (Thu, 15 Feb 2007) | 862 lines There used to be a validate_arglist in fold_builtin_fputs but that has been removed in that revision. /* Verify the arguments in the original call. */ - if (!validate_arglist (arglist, POINTER_TYPE, POINTER_TYPE, VOID_TYPE)) - return 0; + if (!validate_arg (arg0, POINTER_TYPE) + || !validate_arg (arg1, POINTER_TYPE)) + return NULL_TREE; So we no longer validate that the fputs builtin has the correct argument types/number any more in tree-ssa-ccp.c's ccp_fold_builtin. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sandra at gcc dot gnu dot | |org Target Milestone|--- |4.3.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38360