From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5440 invoked by alias); 4 Sep 2004 14:48:54 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 5433 invoked from network); 4 Sep 2004 14:48:54 -0000 Received: from unknown (HELO vlsi1.ultra.nyu.edu) (128.122.140.213) by sourceware.org with SMTP; 4 Sep 2004 14:48:54 -0000 Received: by vlsi1.ultra.nyu.edu (4.1/1.34) id AA09485; Sat, 4 Sep 04 10:51:49 EDT Date: Sat, 04 Sep 2004 14:48:00 -0000 From: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Message-Id: <10409041451.AA09485@vlsi1.ultra.nyu.edu> To: amacleod@redhat.com Subject: Problem with operand handling Cc: gcc@gcc.gnu.org X-SW-Source: 2004-09/txt/msg00189.txt.bz2 When I work around the problem with lcm.c, I then get: ../../xgcc -B../../ -c -g -O2 -W -Wall -gnatpg g-exctra.adb -o g-exctra.o +===========================GNAT BUG DETECTED==============================+ | 5.03h (20040831) (x86_64-unknown-linux-gnu) GCC error: | | in var_ann, at tree-flow-inline.h:38 | Upon investigating, I find I don't understand something about tree-ssa-operands. It looks like add_stmt_operand is supposed to be passed a pointer to the operand. But in a number of places in tree-ssa-operands.c, you have tree var = referenced_var (i); add_stmt_operand (&var, ...); But this puts a pointer into the stack of that function into the operands of the statement. That looks very wrong and seems to be causing my problem. How is that supposed to work?