Bug 47636 - Powerpc rs6000.md uses RS6000_RECIP_HAVE_RSQRT_P
Summary: Powerpc rs6000.md uses RS6000_RECIP_HAVE_RSQRT_P
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Michael Meissner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-07 19:42 UTC by Michael Meissner
Modified: 2011-02-15 17:58 UTC (History)
1 user (show)

See Also:
Host: powerpc64-linux
Target: powerpc64-linux
Build: powerpc64-linux
Known to work:
Known to fail:
Last reconfirmed: 2011-02-07 19:43:31


Attachments
Patch that fixes the problem (356 bytes, patch)
2011-02-07 20:35 UTC, Michael Meissner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Meissner 2011-02-07 19:42:08 UTC
There is a typo in rs6000.md in the rsqrt<type> generator functions.  It refers to the RS6000_RECIP_HAVE_RSQRT_P macro, but the actual macro is RS6000_RECIP_HAVE_RSQRTE_P.  You get a warning that the function is unknown in the build, but it doesn't stop the build since it just puts out a relocation for the RS6000_RECIP_HAVE_RSQRT_P function to be loaded later.  However the rsqrt<type> generators are never called, you never get an error.
Comment 1 Michael Meissner 2011-02-07 20:32:51 UTC
Author: meissner
Date: Mon Feb  7 20:32:45 2011
New Revision: 169901

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169901
Log:
Fix PR target/47636

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.md
Comment 2 Michael Meissner 2011-02-07 20:35:02 UTC
Created attachment 23269 [details]
Patch that fixes the problem

Spell RS6000_RECIP_HAVE_RSQRTE_P correctly.
Comment 3 Michael Meissner 2011-02-15 17:58:14 UTC
Fixed on February 7th, 2011.