Gentoo Archives: gentoo-embedded

From: Mike Frysinger <vapier@g.o>
To: gentoo-embedded@l.g.o
Cc: Ryan Baldwin <ryan.baldwin@××××××××××.com>
Subject: Re: [gentoo-embedded] Broken __builtin_cos on armv4t/gcc3.4.6-r2
Date: Sat, 24 Mar 2007 07:35:01
Message-Id: 200703240333.20234.vapier@gentoo.org
In Reply to: [gentoo-embedded] Broken __builtin_cos on armv4t/gcc3.4.6-r2 by Ryan Baldwin
1 On Friday 23 March 2007, Ryan Baldwin wrote:
2 > I have found that on the target system - if I invoke std::cos (therefore
3 > calling the implementation in libstdc++) - this will hang the calling
4 > thread. If I call ::cos (from uclibc.so) this runs fine.
5 >
6 > Looking at the code for libstdc++ it seems it has no cos implementation of
7 > it's own but rather relies on the compilers built in implementation - by
8 > calling __builtin_cos. It therefore appears that the compiler is generating
9 > a broken implementation of this method for my target?
10
11 this is generally beyond help from the Gentoo embedded project (at this
12 time) ... what you should try is to narrow down as many variables as possible
13
14 come up with a reduced test case and verify it works on your host and then try
15 and find a native arm system and make sure it works there ...
16 -mike