From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22872 invoked by alias); 10 May 2010 14:32:06 -0000 Received: (qmail 22862 invoked by uid 22791); 10 May 2010 14:32:05 -0000 X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_20,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-fx0-f47.google.com (HELO mail-fx0-f47.google.com) (209.85.161.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 May 2010 14:32:01 +0000 Received: by fxm11 with SMTP id 11so2745517fxm.20 for ; Mon, 10 May 2010 07:31:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.145.74 with SMTP id r10mr400316hba.191.1273501918395; Mon, 10 May 2010 07:31:58 -0700 (PDT) Received: by 10.239.131.148 with HTTP; Mon, 10 May 2010 07:31:57 -0700 (PDT) Date: Mon, 10 May 2010 14:32:00 -0000 Message-ID: Subject: CLI-FE merge 4.3 to 4.5 From: Kevin Williams To: gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg00165.txt.bz2 Hello, We have just merged the branch st/cli-fe (a gcc front end for CLI) from a 4.3 realse to 4.5. This merge has broken the compiler and for a simple helloworld test it fails with the error cil1: internal compiler error: in execute_one_pass, at passes.c:1525 This error is reporting that the 'cfun' variable is not set correctly. I have observed that IPA passes are being executed (even when i attempt to turn them off with the relevant -fno-ipa-* flags). Setting of both cfun and current_function_declaration remains the same now as before the merge (with the exception that we now use the updated API for set_cfun). I have three questions: 1. What is the correct behaviour for a FE in terms of setting the global variables cfun and current_function_declaration? 2. It seems that the new api for set_cfun has some side effects on optimization flags? is this correct? 3. How should DECL_FUNCTION_SPECIFIC_ OPTIMIZATION be controled, should the front end be setting these per function? (I am looking to avoid IPA passes for now) Thank you in advance, Kevin