From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5786 invoked by alias); 20 Dec 2014 14:44:52 -0000 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 Received: (qmail 5748 invoked by uid 48); 20 Dec 2014 14:44:48 -0000 From: "mobi at mobiphil dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/52544] compilation fails with -finstrument-functions and sse c code Date: Sat, 20 Dec 2014 14:44: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-Version: 4.6.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mobi at mobiphil dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg02456.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52544 mobi at mobiphil dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mobi at mobiphil dot com --- Comment #7 from mobi at mobiphil dot com --- Hi, I run into the same issue. Strange enough few days ago some similar construct was working, that is I could use -finstrument-functions. (Do not remember, if I did some package update on the ubuntu workstation I work). Now for a simple program: #include void setbytes(char *p, int c) { __m128i i = _mm_set_epi8(c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c); _mm_stream_si128((__m128i *)&p[0], i); _mm_stream_si128((__m128i *)&p[16], i); _mm_stream_si128((__m128i *)&p[32], i); _mm_stream_si128((__m128i *)&p[48], i); } char cucu[1000]; int main() { setbytes(cucu, 3); } ->gcc t.c -finstrument-functions /tmp/ccDMgc7s.o:t.c:function setbytes: error: undefined reference to '_mm_set_epi8' /tmp/ccDMgc7s.o:t.c:function setbytes: error: undefined reference to '_mm_set_epi8' /tmp/ccDMgc7s.o:t.c:function setbytes: error: undefined reference to '_mm_stream_si128' /tmp/ccDMgc7s.o:t.c:function setbytes: error: undefined reference to '_mm_stream_si128' /tmp/ccDMgc7s.o:t.c:function setbytes: error: undefined reference to '_mm_stream_si128' /tmp/ccDMgc7s.o:t.c:function setbytes: error: undefined reference to '_mm_stream_si128' collect2: error: ld returned 1 exit status