public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/15046] New: Math functions misdetected by cross configuration
@ 2004-04-21 16:01 drow at gcc dot gnu dot org
2004-04-21 17:41 ` [Bug libstdc++/15046] " pinskia at gcc dot gnu dot org
` (14 more replies)
0 siblings, 15 replies; 16+ messages in thread
From: drow at gcc dot gnu dot org @ 2004-04-21 16:01 UTC (permalink / raw)
To: gcc-bugs
crossconfig.m4 is pretty incomplete. The example I found was for GNU/Linux
targeted crosses, but I suspect many of the others have the same problem;
likewise, by inspection, I think that this problem is in 3.4 also (it worked
in 3.3, and I haven't tested 3.4 yet).
The problem is that the *-linux* case doesn't define all the C99 math functions.
This means that sqrtf is provided in libmath/stubs.o as (float) sqrt (val). sqrt
is a call to __builtin_sqrt, which GCC expands to sqrtf, generating an infinite
loop.
--
Summary: Math functions misdetected by cross configuration
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: drow at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i386-pc-linux-gnu
GCC target triplet: arm-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
@ 2004-04-21 17:41 ` pinskia at gcc dot gnu dot org
2004-04-23 3:00 ` rittle at latour dot rsch dot comm dot mot dot com
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-21 17:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-21 17:18 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-04-21 17:18:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
2004-04-21 17:41 ` [Bug libstdc++/15046] " pinskia at gcc dot gnu dot org
@ 2004-04-23 3:00 ` rittle at latour dot rsch dot comm dot mot dot com
2004-04-23 4:28 ` drow at gcc dot gnu dot org
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: rittle at latour dot rsch dot comm dot mot dot com @ 2004-04-23 3:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rittle at latour dot rsch dot comm dot mot dot com 2004-04-23 02:36 -------
Subject: Re: New: Math functions misdetected by cross
configuration
> crossconfig.m4 is pretty incomplete. The example I found was for GNU/Linux
> targeted crosses, but I suspect many of the others have the same problem;
> likewise, by inspection, I think that this problem is in 3.4 also (it worked
> in 3.3, and I haven't tested 3.4 yet). [...]
I think you are right. We expect target maintainers (for those
targets which are usually crossed) to update the entries as they
(re-)attempt ports. Sorry, but this is the protocol at the moment.
Offhand, I don't recall why autoconf doesn't work here...
Regards,
Loren
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
2004-04-21 17:41 ` [Bug libstdc++/15046] " pinskia at gcc dot gnu dot org
2004-04-23 3:00 ` rittle at latour dot rsch dot comm dot mot dot com
@ 2004-04-23 4:28 ` drow at gcc dot gnu dot org
2004-05-14 12:26 ` bkoz at gcc dot gnu dot org
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: drow at gcc dot gnu dot org @ 2004-04-23 4:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From drow at gcc dot gnu dot org 2004-04-23 03:38 -------
Subject: Re: Math functions misdetected by cross configuration
Well, we can't use autoconf normally, because we can't necessarily run
link tests. On the other hands:
- sometimes we can run link tests
- sometimes we could use compile tests instead; there's a macro to
check for presence of a prototype.
I may experiment with these...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-04-23 4:28 ` drow at gcc dot gnu dot org
@ 2004-05-14 12:26 ` bkoz at gcc dot gnu dot org
2004-05-14 12:38 ` cvs-commit at gcc dot gnu dot org
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-05-14 12:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bkoz at gcc dot gnu dot org 2004-05-13 17:19 -------
You have to have both link and compile visibility. Compile-time bits are often
obscured by defines on the compile line, FYI.
Here's a patch that fixes the linux crosses WRT C99 math. Give it a whirl, if
you can, and I'll put it on gcc-3.4.0 if it works for you.
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-05-14 12:26 ` bkoz at gcc dot gnu dot org
@ 2004-05-14 12:38 ` cvs-commit at gcc dot gnu dot org
2004-05-16 22:23 ` cvs-commit at gcc dot gnu dot org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-14 12:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-05-13 17:50 -------
Subject: Bug 15046
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: bkoz@gcc.gnu.org 2004-05-13 17:49:54
Modified files:
libstdc++-v3 : ChangeLog configure crossconfig.m4
Log message:
2004-05-13 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/15046
* crossconfig.m4: Add C99 math bits for linux crosses.
* configure: Regenerate.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2473&r2=1.2474
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/configure.diff?cvsroot=gcc&r1=1.386&r2=1.387
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/crossconfig.m4.diff?cvsroot=gcc&r1=1.13&r2=1.14
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-05-14 12:38 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-16 22:23 ` cvs-commit at gcc dot gnu dot org
2004-05-17 0:10 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-16 22:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-05-15 21:25 -------
Subject: Bug 15046
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: bkoz@gcc.gnu.org 2004-05-15 21:25:46
Modified files:
libstdc++-v3 : ChangeLog configure crossconfig.m4
Log message:
2004-05-15 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/15046
* crossconfig.m4: Add C99 math bits for linux crosses.
* configure: Regenerate.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.2224.2.103&r2=1.2224.2.104
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/configure.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.373.4.8&r2=1.373.4.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/crossconfig.m4.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.11.4.2&r2=1.11.4.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-05-16 22:23 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-17 0:10 ` pinskia at gcc dot gnu dot org
2004-05-19 12:59 ` drow at gcc dot gnu dot org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-17 0:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-15 23:41 -------
Fixed for 3.4.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-05-17 0:10 ` pinskia at gcc dot gnu dot org
@ 2004-05-19 12:59 ` drow at gcc dot gnu dot org
2004-07-26 20:34 ` aoliva at gcc dot gnu dot org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: drow at gcc dot gnu dot org @ 2004-05-19 12:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From drow at gcc dot gnu dot org 2004-05-18 19:51 -------
Subject: Re: Math functions misdetected by cross configuration
Thanks. I tested the patch on arm-linux (better late than never), and
now libstdc++-v3 contains the right set of stubs and no stubs which
recursively call themselves.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-05-19 12:59 ` drow at gcc dot gnu dot org
@ 2004-07-26 20:34 ` aoliva at gcc dot gnu dot org
2004-07-26 21:49 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2004-07-26 20:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aoliva at gcc dot gnu dot org 2004-07-26 20:34 -------
This patch actually breaks uclinux, since it doesn't provide a number of the
functions defined here. Also, the problem of stub functions recursively calling
themselves is not addressed at all. I suppose we may need some additional
libstdc++ hackery to fix that.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-07-26 20:34 ` aoliva at gcc dot gnu dot org
@ 2004-07-26 21:49 ` pinskia at gcc dot gnu dot org
2004-08-29 18:55 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-26 21:49 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.1 |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-07-26 21:49 ` pinskia at gcc dot gnu dot org
@ 2004-08-29 18:55 ` mmitchel at gcc dot gnu dot org
2004-11-01 0:46 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-08-29 18:55 -------
Postponed until GCC 3.4.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.2 |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-08-29 18:55 ` mmitchel at gcc dot gnu dot org
@ 2004-11-01 0:46 ` mmitchel at gcc dot gnu dot org
2005-05-19 17:36 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-01 0:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-11-01 00:46 -------
Postponed until GCC 3.4.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.3 |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (11 preceding siblings ...)
2004-11-01 0:46 ` mmitchel at gcc dot gnu dot org
@ 2005-05-19 17:36 ` mmitchel at gcc dot gnu dot org
2005-06-13 3:30 ` pinskia at gcc dot gnu dot org
2005-07-15 21:54 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:36 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.4 |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (12 preceding siblings ...)
2005-05-19 17:36 ` mmitchel at gcc dot gnu dot org
@ 2005-06-13 3:30 ` pinskia at gcc dot gnu dot org
2005-07-15 21:54 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-13 3:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-13 03:29 -------
(In reply to comment #9)
> This patch actually breaks uclinux, since it doesn't provide a number of the
> functions defined here. Also, the problem of stub functions recursively calling
> themselves is not addressed at all. I suppose we may need some additional
> libstdc++ hackery to fix that.
But that is a bug in the configure which makes uclinux thinks it is a glibc, really there should be a
different triplit for those targets.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug libstdc++/15046] Math functions misdetected by cross configuration
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
` (13 preceding siblings ...)
2005-06-13 3:30 ` pinskia at gcc dot gnu dot org
@ 2005-07-15 21:54 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-15 21:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-15 21:52 -------
The orginal problem was fixed in 3.4.1. The next problem is in PR 20353.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
GCC host triplet|i386-pc-linux-gnu |
GCC target triplet|arm-unknown-linux-gnu |arm-*-linux-gnu
Resolution| |FIXED
Target Milestone|3.4.5 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15046
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2005-07-15 21:52 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-21 16:01 [Bug libstdc++/15046] New: Math functions misdetected by cross configuration drow at gcc dot gnu dot org
2004-04-21 17:41 ` [Bug libstdc++/15046] " pinskia at gcc dot gnu dot org
2004-04-23 3:00 ` rittle at latour dot rsch dot comm dot mot dot com
2004-04-23 4:28 ` drow at gcc dot gnu dot org
2004-05-14 12:26 ` bkoz at gcc dot gnu dot org
2004-05-14 12:38 ` cvs-commit at gcc dot gnu dot org
2004-05-16 22:23 ` cvs-commit at gcc dot gnu dot org
2004-05-17 0:10 ` pinskia at gcc dot gnu dot org
2004-05-19 12:59 ` drow at gcc dot gnu dot org
2004-07-26 20:34 ` aoliva at gcc dot gnu dot org
2004-07-26 21:49 ` pinskia at gcc dot gnu dot org
2004-08-29 18:55 ` mmitchel at gcc dot gnu dot org
2004-11-01 0:46 ` mmitchel at gcc dot gnu dot org
2005-05-19 17:36 ` mmitchel at gcc dot gnu dot org
2005-06-13 3:30 ` pinskia at gcc dot gnu dot org
2005-07-15 21:54 ` 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).