public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mobi at mobiphil dot com" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-52544-4-TAJqsENdlO@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-52544-4@http.gcc.gnu.org/bugzilla/> 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 <emmintrin.h> 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
next prev parent reply other threads:[~2014-12-20 14:44 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-03-09 17:30 [Bug c/52544] New: " jgpiccinali at free dot fr 2012-03-10 7:51 ` [Bug middle-end/52544] " pinskia at gcc dot gnu.org 2012-07-23 14:47 ` oeste.sebastian at googlemail dot com 2012-07-23 14:50 ` oeste.sebastian at googlemail dot com 2012-07-24 9:30 ` rguenth at gcc dot gnu.org 2013-06-28 13:45 ` rodrigo at sdfg dot com.ar 2013-06-28 15:25 ` rodrigo at sdfg dot com.ar 2013-08-13 8:17 ` rodrigo at sdfg dot com.ar 2014-12-20 14:44 ` mobi at mobiphil dot com [this message] 2014-12-20 14:58 ` mobi at mobiphil dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-52544-4-TAJqsENdlO@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).