First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 14352
Product:  
Component:  
Status: NEW
Resolution:
Assigned To: Richard Earnshaw <rearnsha@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Daniel Jacobowitz <drow@gcc.gnu.org>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 14352 depends on: Show dependency tree
Show dependency graph
Bug 14352 blocks:

Additional Comments:





Mark bug as waiting for feedback
Mark bug as suspended




View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2005-07-23 05:25 Opened: 2004-03-01 00:06
Most of the ARM target makefile fragments reference arm/lib1funcs.asm, but only
t-arm-elf references all the symbols that need to be defined to get the new
floating point code:
LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func \
        _call_via_rX _interwork_call_via_rX \
        _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
        _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
        _fixsfsi _fixunssfsi

t-linux just says this:

LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx

This generates undefined references in libgcc_s.so to, for instance, the functions
defined by L_addsubdf3.

If I copy LIB1ASMFUNCS from t-arm-elf to t-linux that solves the problem (for
this particular target at least, and keeping _dvmd_lnx...)

------- Comment #1 From Richard Earnshaw 2004-03-01 10:48 -------
Subject: Re:  New: New FP code not compiled for 
 non-arm-elf targets

> t-linux just says this:
> 
> LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
> 
> This generates undefined references in libgcc_s.so to, for instance, the functions
> defined by L_addsubdf3.
> 
> If I copy LIB1ASMFUNCS from t-arm-elf to t-linux that solves the problem (for
> this particular target at least, and keeping _dvmd_lnx...)

t-linux is not a soft-float target, so shouldn't need any of the FP 
support functions.

R.


------- Comment #2 From Daniel Jacobowitz 2004-03-01 14:39 -------
Subject: Re:  New FP code not compiled for non-arm-elf targets

But this prevents using it with -msoft-float; which is often
advantageous.  Hmm, I'm not sure how best to do it, but I'd like to
make this new requirement clearer - especially now that we have
--with-float=soft.

------- Comment #3 From Daniel Jacobowitz 2004-04-13 23:57 -------
I just ran into this again.  Richard, I know the soft-float routines are not
generally needed, but would there be any harm in building them anyway?

------- Comment #4 From Daniel Jacobowitz 2004-04-14 00:07 -------
An alternative would be to detect --with-float=soft in t-linux, and adjust
LIB1ASMFUNCS.  I think that can be done.

------- Comment #5 From Andrew Pinski 2004-07-14 00:21 -------
Confirmed.

First Last Prev Next    No search results available      Search page      Enter new bug