From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20207 invoked by alias); 24 Jul 2012 09:30:40 -0000 Received: (qmail 20197 invoked by uid 22791); 24 Jul 2012 09:30:38 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Jul 2012 09:30:15 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/52544] compilation fails with -finstrument-functions and sse c code Date: Tue, 24 Jul 2012 09:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Last reconfirmed CC Ever Confirmed Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-07/txt/msg01834.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52544 Richard Guenther changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-07-24 CC| |hubicka at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #3 from Richard Guenther 2012-07-24 09:30:14 UTC --- Confirmed. It's because we instrument before inlining always-inline functions and get calls like __cyg_profile_func_enter (_mm_set1_ps, return_addr.3_22); but of course no body for _mm_set1_ps function exists (not should it, IMHO). We do the instrumentation during gimplification. Honza, why does the address-taking of _mm_set1_ps not force its body to be output? Is there a predicate we can check that tells us wheter a function body will forcefully _not_ be output? Add that to void gimplify_function_tree (tree fndecl) { ... /* If we're instrumenting function entry/exit, then prepend the call to the entry hook and wrap the whole function in a TRY_FINALLY_EXPR to catch the exit hook. */ /* ??? Add some way to ignore exceptions for this TFE. */ if (flag_instrument_function_entry_exit && !DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT (fndecl) && !flag_instrument_functions_exclude_p (fndecl)) {