From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4310 invoked by alias); 24 Dec 2002 20:26:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4258 invoked by uid 71); 24 Dec 2002 20:26:01 -0000 Date: Tue, 24 Dec 2002 12:26:00 -0000 Message-ID: <20021224202601.4257.qmail@sources.redhat.com> To: ebotcazou@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Janis Johnson Subject: Re: optimization/7675: [3.2/3.3 regression] ICE in fixup_var_refs_1 Reply-To: Janis Johnson X-SW-Source: 2002-12/txt/msg01263.txt.bz2 List-Id: The following reply was made to PR optimization/7675; it has been noted by GNATS. From: Janis Johnson To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, sowhat@amnis.co.jp, ebotcazou@gcc.gnu.org Cc: Subject: Re: optimization/7675: [3.2/3.3 regression] ICE in fixup_var_refs_1 Date: Tue, 24 Dec 2002 12:24:53 -0800 The regression reported in PR optimization/7675 showed up starting with this patch: 2000-11-11 Jason Merrill * function.c (assign_parms): If TREE_ADDRESSABLE is set, try to give the parm a register and then call put_var_into_stack. * stmt.c (expand_decl): Likewise. cp/ * typeck.c (mark_addressable): Don't call put_var_into_stack. Here's a small test case that causes the compiler to ICE when compiled on i686-linux with -O: ------------------- /* ICE when compiled with -O */ int dummy (int *); void foo(int i, int j) { int k=j; void bar() { int x=k, y=i, z=j; } dummy(&j); } ------------------- Output from the mainline compiler: 7675.c: In function `foo': 7675.c:9: internal compiler error: in fixup_var_refs_1, at function.c:1900 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Eric, I just noticed that you're working on a patch. Perhaps this information will be useful for you. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7675