public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl dot tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/42690] Undefined reference errors with -flto -fuse-linker-plugin Date: Fri, 15 Jan 2010 03:41:00 -0000 [thread overview] Message-ID: <20100115034119.26890.qmail@sourceware.org> (raw) In-Reply-To: <bug-42690-16926@http.gcc.gnu.org/bugzilla/> ------- Comment #4 from hjl dot tools at gmail dot com 2010-01-15 03:41 ------- Works for me: [hjl@gnu-6 gold-2]$ vi pr42690.c [hjl@gnu-6 gold-2]$ cat pr42690.c int f(long long a, long long b) { #ifdef BUG return (int) (a / b); #else return (int) __divdi3(a, b); #endif } int main(void) { return f(2718281828459045, 543656365691809); } [hjl@gnu-6 gold-2]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B./ -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -B/export/build/gnu/gcc/build-x86_64-linux/gcc/../lto-plugin/.libs/ -flto -fuse-linker-plugin -DBUG pr42690.c [hjl@gnu-6 gold-2]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -v Using built-in specs. COLLECT_GCC=/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc Target: x86_64-unknown-linux-gnu Configured with: /export/gnu/import/git/gcc/configure --enable-languages=c --disable-bootstrap --prefix=/usr/gcc-4.5.0 --with-local-prefix=/usr/local --with-plugin-ld=ld.gold --enable-gold Thread model: posix gcc version 4.5.0 20100114 (experimental) (GCC) [hjl@gnu-6 gold-2]$ -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WORKSFORME http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42690
next prev parent reply other threads:[~2010-01-15 3:41 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-01-11 15:23 [Bug lto/42690] New: " d dot g dot gorbachev at gmail dot com 2010-01-11 15:25 ` [Bug lto/42690] " d dot g dot gorbachev at gmail dot com 2010-01-12 16:30 ` espindola at gcc dot gnu dot org 2010-01-14 22:15 ` d dot g dot gorbachev at gmail dot com 2010-01-15 3:41 ` hjl dot tools at gmail dot com [this message] 2010-01-15 3:55 ` espindola at gcc dot gnu dot org 2010-01-15 4:26 ` hjl dot tools at gmail dot com 2010-01-15 11:02 ` d dot g dot gorbachev at gmail dot com 2010-01-15 11:02 ` d dot g dot gorbachev at gmail dot com 2010-01-15 11:02 ` d dot g dot gorbachev at gmail dot com 2010-01-15 11:03 ` d dot g dot gorbachev at gmail dot com 2010-01-15 11:04 ` [Bug driver/42690] " d dot g dot gorbachev at gmail dot com 2010-01-15 15:29 ` espindola at gcc dot gnu dot org 2010-01-16 16:56 ` d dot g dot gorbachev at gmail dot com 2010-01-17 5:47 ` espindola at gcc dot gnu dot org 2010-01-18 18:48 ` d dot g dot gorbachev at gmail 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=20100115034119.26890.qmail@sourceware.org \ --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).