Bug 25138 - [4.2 Regression] [m68k] undefined reference to `__floatunsidf'
Summary: [4.2 Regression] [m68k] undefined reference to `__floatunsidf'
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: 4.2.0
Assignee: Not yet assigned to anyone
URL:
Keywords: link-failure
Depends on:
Blocks:
 
Reported: 2005-11-28 14:32 UTC by Kazu Hirata
Modified: 2005-12-14 22:17 UTC (History)
1 user (show)

See Also:
Host:
Target: m68k-elf
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kazu Hirata 2005-11-28 14:32:23 UTC
Consider

double
foo (unsigned int a)
{
  return a;
}

int
main (void)
{
  return 0;
}

When I compile and link this like so

  m68k-elf-gcc -Wl,-T,sim.ld -o test test.c

I get

  undefined reference to `__floatunsidf'

Inspection of m5200/libgcc.a reveals that it does not contain __floatunsidf.
Comment 1 Andrew Pinski 2005-11-28 14:49:42 UTC
I think this is a 4.2 regression cause by JSM's patch, could you check to see if this is a regression?
Comment 2 Andrew Pinski 2005-12-14 22:17:38 UTC
Fixed by:
2005-12-13  Paul Brook  <paul@codesourcery.com>
        
        * config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
        __floatunsidf, __floatunsisf, __floatunsixf): New functions.