From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15526 invoked by alias); 30 Jun 2005 22:16:41 -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 15487 invoked by uid 22791); 30 Jun 2005 22:16:34 -0000 Received: from vlsi1.ultra.nyu.edu (HELO vlsi1.ultra.nyu.edu) (128.122.140.213) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 30 Jun 2005 22:16:34 +0000 Received: by vlsi1.ultra.nyu.edu (4.1/1.34) id AA00728; Thu, 30 Jun 05 18:18:36 EDT Date: Thu, 30 Jun 2005 22:16:00 -0000 From: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Message-Id: <10506302218.AA00728@vlsi1.ultra.nyu.edu> To: gcc@gcc.gnu.org Subject: Problem with tree-ssa-loop-ivopts.c:get_computation-cost X-SW-Source: 2005-06/txt/msg01337.txt.bz2 This function generates RTL from an expression to see how many RTL insns it is. But this causes a problem compiling the Ada ACATS test cxa4006. The problem is when part of the expression has a location. In that case, record_block_change is called and that relies on cfun->ib_boundaries_block being set. But it isn't because we aren't expanding stuff "for real". A kludge would be to test that field, but what's the proper way? Also, seq_cost really should be looking at next_real_insn, not NEXT_INSN, since any notes shouldn't be counted.