From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24836 invoked by alias); 6 Oct 2005 11:21:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24791 invoked by uid 48); 6 Oct 2005 11:21:01 -0000 Date: Thu, 06 Oct 2005 11:21:00 -0000 Message-ID: <20051006112101.24790.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/24225] [4,1 Regression] ICE: segmentation fault in profile.c:branch_prob In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" X-SW-Source: 2005-10/txt/msg00591.txt.bz2 List-Id: ------- Comment #3 from rguenth at gcc dot gnu dot org 2005-10-06 11:21 ------- Reduced testcase: typedef struct linklist *LinkList; typedef struct options *Options; typedef struct builtin *Builtin; struct options { }; typedef int (*HandlerFunc) (char *, char **, Options, int); struct builtin { HandlerFunc handlerfunc; int funcid; }; enum { XTRACE, OPT_SIZE }; extern char opts[OPT_SIZE]; int execbuiltin(LinkList args, Builtin bn) { char *pp, *name, *optstr; int flags, sense, argc, execop, xtr = (opts[XTRACE]); struct options ops; if (!bn->handlerfunc) { return 1; } { char * (argarr)[argc + 1]; char **argv; return (*(bn->handlerfunc)) (name, argv, &ops, bn->funcid); } } -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2005-10-06 11:21:00 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24225