1 May 2012 01:25
[patch] skip tpf configure tests
DJ Delorie <dj <at> redhat.com>
2012-04-30 23:25:07 GMT
2012-04-30 23:25:07 GMT
* crossconfig.m4: Since we know that all TPF builds are cross-
builds and cannot run configuration-time link tests, do not
allow it; just go with known supported linker options.
* configure: Regenerate (called as GLIBCXX_CROSSCONFIG).
Index: crossconfig.m4
===================================================================
--- crossconfig.m4 (revision 187002)
+++ crossconfig.m4 (working copy)
<at> <at> -219,14 +219,14 <at> <at> case "${host}" in
AC_DEFINE(HAVE_ISNANF)
AC_DEFINE(HAVE_MODFF)
AC_DEFINE(HAVE_HYPOT)
;;
*-tpf)
SECTION_FLAGS='-ffunction-sections -fdata-sections'
+ SECTION_LDFLAGS='-Wl,--gc-sections $SECTION_LDFLAGS'
AC_SUBST(SECTION_FLAGS)
- GLIBCXX_CHECK_LINKER_FEATURES
AC_DEFINE(HAVE_FINITE)
AC_DEFINE(HAVE_FINITEF)
AC_DEFINE(HAVE_FREXPF)
AC_DEFINE(HAVE_HYPOTF)
AC_DEFINE(HAVE_ISINF)
AC_DEFINE(HAVE_ISINFF)
Did you ever dig up the
> Apple test cases from the APPLE LOCAL work I pointed you at earlier?
> They will be more comprehensive that any testing you've done, and,
> if you get them to all pass, the work should be closer to being
> complete. The feature needed a ton of testcases, a few didn't cut
> it.
In going through the Apple test cases, I discovered one HUGE
disadvantage to using __attribute__ to tag structures for bit reversal
- it doesn't propogate. I.e.:
typedef __attribute__((reverse)) struct {
struct {
int x:4;
int y:4;
} a;
} b;
The attribute seems to apply only to struct b, not to struct a. For
PACKED, we handle the flag specially, propogating it at every step in
the layout. The original Apple patch used a #pragma.
Suggestions on how to make a structure attribute apply to the whole
structure?
Or should I *also* add a #pragma to specify the default bit ordering?
This is what the Renesas ABIs want anyway, and what Apple did, but I
was told to use an attribute and have a target pragma set the
attribute, but I don't see how...
RSS Feed