public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/16314] New: EP9312 gcc: undefined reference to __divdf3
@ 2004-07-01 13:20 wouter at vidicode dot org
  2004-07-01 13:57 ` [Bug target/16314] " rearnsha at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 17+ messages in thread
From: wouter at vidicode dot org @ 2004-07-01 13:20 UTC (permalink / raw)
  To: gcc-bugs

Trying to compile some simple floating point math using the Maverick Crunch
coprocessor on the EP9312 breaks because the divide functions end up in the
assemby but aren't in libcc. As far as I understand it, the problem stems from
the Crunch core not supporting floating point divide, and then we get into ABI
differences (returning values in integer/float point registers). More (accurate)
information can be found in the thread on the gcc ml:

thread start: http://gcc.gnu.org/ml/gcc/2004-06/msg01867.html
continued into the next month: http://gcc.gnu.org/ml/gcc/2004-07/msg00028.html


simple test case to reproduce the problem:

double x, y;  float a, b;
int main () { a = a/b; x = x /y; return 0; }

compiler commandline and output:

# arm-ep93xx-linux-gnu-gcc bug.c -Wall -nostdlib                               
                                                                                   
/home/larstiq/crosstool/arm-ep93xx-linux-gnu/gcc-3.4.0-glibc-2.3.2/bin/../lib/gcc/arm-ep93xx-linux-gnu/3.4.0/../../../../arm-ep93xx-linux-gnu/bin/ld:
warning: cannot find entry symbol _start; defaulting to 0000807
/tmp/cc8FEzYi.o(.text+0x20): In function `main':                               
                                                                               
                                                     
: undefined reference to `__divsf3'                                            
                                                                               
                                                     
/tmp/cc8FEzYi.o(.text+0x40): In function `main':
: undefined reference to `__divdf3'                                            
                                                                               
        
collect2: ld returned 1 exit status

# arm-ep93xx-linux-gnu-gcc -v                                                  
                                                                                
Reading specs from
/home/larstiq/crosstool/arm-ep93xx-linux-gnu/gcc-3.4.0-glibc-2.3.2/bin/../lib/gcc/arm-ep93xx-linux-gnu/3.4.0/specs
                                                                               
Configured with: ../gcc-3.4.0/configure --target=arm-ep93xx-linux-gnu
--host=powerpc-linux
--prefix=/opt/crosstool/arm-ep93xx-linux-gnu/gcc-3.4.0-glibc-2.3.2
--with-local-prefix=/opt/crosstool/arm-ep93xx-linux-gnu
Thread model: single                                                           
                                                                               
                                                     
gcc version 3.4.0

-- 
           Summary: EP9312 gcc: undefined reference to __divdf3
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wouter at vidicode dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: arm-elf


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


^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <bug-16314-8845@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-16314-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-07-10  9:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-01 13:20 [Bug target/16314] New: EP9312 gcc: undefined reference to __divdf3 wouter at vidicode dot org
2004-07-01 13:57 ` [Bug target/16314] " rearnsha at gcc dot gnu dot org
2004-08-30 14:12 ` dank at kegel dot com
2004-08-30 14:17 ` dank at kegel dot com
2004-08-30 14:46 ` mmitchel at gcc dot gnu dot org
2004-08-31  9:15 ` rearnsha at gcc dot gnu dot org
2004-08-31 13:14 ` dank at kegel dot com
2004-08-31 13:16 ` rearnsha at gcc dot gnu dot org
2004-08-31 15:17 ` dank at kegel dot com
2004-09-01 10:44   ` Richard Earnshaw
2004-09-01 10:44 ` rearnsha at gcc dot gnu dot org
2004-11-23  6:05 ` zhangyijin_2008 at 163 dot com
2004-11-23  6:07 ` zhangyijin_2008 at 163 dot com
2004-11-23 11:04 ` rearnsha at gcc dot gnu dot org
     [not found] <bug-16314-8845@http.gcc.gnu.org/bugzilla/>
2005-11-26 22:44 ` rearnsha at gcc dot gnu dot org
2005-11-28 18:14 ` nekkar at libero dot it
     [not found] <bug-16314-4@http.gcc.gnu.org/bugzilla/>
2012-07-10  9:11 ` rearnsha at gcc dot gnu.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).