public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13132] New: long-double code leads to unresolved reference to __trunctfxf2
@ 2003-11-19 22:09 davidm at hpl dot hp dot com
  2003-11-19 22:15 ` [Bug target/13132] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: davidm at hpl dot hp dot com @ 2003-11-19 22:09 UTC (permalink / raw)
  To: gcc-bugs

Compiling the test-program below results in an undefined reference to __tructfxf2:

$ gcc -v
Reading specs from /opt/gcc-pre3.4/lib/gcc/ia64-hp-linux/3.4/specs
Configured with:  : (reconfigured)  : (reconfigured)  : (reconfigured) 
Thread model: posix
gcc version 3.4 20031119 (experimental)
$ cat t.c
long double f (int g)
{
        union {
                int g;
                long double d;
        } u;
        u.g = g;
        return u.d;
}

int main (int argc, char **argv)
{
        return f(argc);
}
$ gcc -O /tmp/t.c
/tmp/cc6b8Pzg.o(.text+0x32): In function `f':
: undefined reference to `__trunctfxf2'
collect2: ld returned 1 exit status

It doesn't matter whether -O or -O2 is specified.  Dropping -O makes the problem
disppear, however.

I discovered this problem while trying to compile libc with gcc-pre3.4.

-- 
           Summary: long-double code leads to unresolved reference to
                    __trunctfxf2
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: davidm at hpl dot hp dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: ia64-hp-linux
  GCC host triplet: ia64-hp-linux
GCC target triplet: ia64-hp-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13132


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-02-05 11:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-19 22:09 [Bug c/13132] New: long-double code leads to unresolved reference to __trunctfxf2 davidm at hpl dot hp dot com
2003-11-19 22:15 ` [Bug target/13132] " pinskia at gcc dot gnu dot org
2003-12-05  8:33 ` wilson at specifixinc dot com
2003-12-05 16:54 ` zack at codesourcery dot com
2003-12-06  9:08 ` pinskia at gcc dot gnu dot org
2003-12-08  8:40 ` wilson at gcc dot gnu dot org
2003-12-08 22:40 ` cvs-commit at gcc dot gnu dot org
2003-12-09  0:48 ` wilson at gcc dot gnu dot org
2003-12-09  0:55 ` wilson at gcc dot gnu dot org
2003-12-11 19:04 ` cvs-commit at gcc dot gnu dot org
2003-12-11 19:11 ` wilson at gcc dot gnu dot org
2004-02-05 11:43 ` cvs-commit at gcc dot gnu dot org

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).