public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/26695] New: -mabi=ieeelongdouble / undefined reference to _q_add.
@ 2006-03-15 13:51 pluto at agmk dot net
2006-03-15 14:12 ` [Bug target/26695] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: pluto at agmk dot net @ 2006-03-15 13:51 UTC (permalink / raw)
To: gcc-bugs
template < typename T >
T __add( T x, T y )
{
return x + y;
}
template float __add( float, float );
template double __add( double, double );
template long double __add( long double, long double );
$ g++ add.cpp -O -mabi=ieeelongdouble
cc1plus: warning: Using IEEE extended precision long double
(...)
/tmp/cccCMXjm.o: In function
`long double __add<long double>(long double, long double)':add.cpp
(.text._Z5__addIeET_S0_S0_[_Z5__addIeET_S0_S0_]+0x70):
undefined reference to `_q_add'
i have a gcc-4.1.1snap with patches from PR25864.
--
Summary: -mabi=ieeelongdouble / undefined reference to _q_add.
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pluto at agmk dot net
GCC build triplet: ppc-linux
GCC host triplet: ppc-linux
GCC target triplet: ppc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26695
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/26695] -mabi=ieeelongdouble / undefined reference to _q_add.
2006-03-15 13:51 [Bug target/26695] New: -mabi=ieeelongdouble / undefined reference to _q_add pluto at agmk dot net
@ 2006-03-15 14:12 ` pinskia at gcc dot gnu dot org
2006-03-15 14:22 ` pluto at agmk dot net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-15 14:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-15 14:12 -------
Why are you using ieeelongdouble? It is not really supported at all on
PPC-linux.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26695
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/26695] -mabi=ieeelongdouble / undefined reference to _q_add.
2006-03-15 13:51 [Bug target/26695] New: -mabi=ieeelongdouble / undefined reference to _q_add pluto at agmk dot net
2006-03-15 14:12 ` [Bug target/26695] " pinskia at gcc dot gnu dot org
@ 2006-03-15 14:22 ` pluto at agmk dot net
2006-03-15 21:14 ` joseph at codesourcery dot com
2006-03-16 14:11 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pluto at agmk dot net @ 2006-03-15 14:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pluto at agmk dot net 2006-03-15 14:22 -------
(In reply to comment #1)
> Why are you using ieeelongdouble?
just for testing. is it enough reason?
> It is not really supported at all on PPC-linux.
so, for what gcc has such broken feature?
[ cite gcc.info@ppc ]
`-mabi=ABI-TYPE'
Extend the current ABI with a particular extension, or remove such
extension. Valid values are ALTIVEC, NO-ALTIVEC, SPE, NO-SPE,
IBMLONGDOUBLE, IEEELONGDOUBLE.
^^^^^^^^^^^^^^
`-mabi=ibmlongdouble'
Change the current ABI to use IBM extended precision long double.
This is a PowerPC 32-bit SYSV ABI option.
`-mabi=ieeelongdouble'
Change the current ABI to use IEEE extended precision long double.
This is a PowerPC 32-bit Linux ABI option.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ /cite ]
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26695
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/26695] -mabi=ieeelongdouble / undefined reference to _q_add.
2006-03-15 13:51 [Bug target/26695] New: -mabi=ieeelongdouble / undefined reference to _q_add pluto at agmk dot net
2006-03-15 14:12 ` [Bug target/26695] " pinskia at gcc dot gnu dot org
2006-03-15 14:22 ` pluto at agmk dot net
@ 2006-03-15 21:14 ` joseph at codesourcery dot com
2006-03-16 14:11 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: joseph at codesourcery dot com @ 2006-03-15 21:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from joseph at codesourcery dot com 2006-03-15 21:14 -------
Subject: Re: New: -mabi=ieeelongdouble / undefined
reference to _q_add.
On Wed, 15 Mar 2006, pluto at agmk dot net wrote:
> undefined reference to `_q_add'
This function is an ABI-defined function libc should define, glibc has
definitions of these functions (except it wrongly defines _q_uitoq instead
of _q_utoq) but you'll need to get a glibc version with those definitions
built in.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26695
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/26695] -mabi=ieeelongdouble / undefined reference to _q_add.
2006-03-15 13:51 [Bug target/26695] New: -mabi=ieeelongdouble / undefined reference to _q_add pluto at agmk dot net
` (2 preceding siblings ...)
2006-03-15 21:14 ` joseph at codesourcery dot com
@ 2006-03-16 14:11 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-16 14:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-16 14:11 -------
Not a GCC bug as explained by Joseph.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26695
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-03-16 14:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-15 13:51 [Bug target/26695] New: -mabi=ieeelongdouble / undefined reference to _q_add pluto at agmk dot net
2006-03-15 14:12 ` [Bug target/26695] " pinskia at gcc dot gnu dot org
2006-03-15 14:22 ` pluto at agmk dot net
2006-03-15 21:14 ` joseph at codesourcery dot com
2006-03-16 14:11 ` pinskia 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).