Re: [3.3 branch] Ada bootstrap failure on powerpc-linux
Matthias Klose writes:
> David Edelsohn writes:
> > >>>>> Matthias Klose writes:
> >
> > Matthias> ../targtyps.o(.text+0x6a): In function `get_target_long_double_size':
> > Matthias> : undefined reference to `rs6000_long_double_type_size'
> > Matthias> ../targtyps.o(.text+0x6e): In function `get_target_long_double_size':
> > Matthias> : undefined reference to `rs6000_long_double_type_size'
> >
> > This has been discussed on the GCC mailinglist before. Because
> > Gnat cannot link with the GCC infrastructure defining this variable to
> > provide variable size, it needs to assume 64-bit long double for now.
>
> I found
>
> http://gcc.gnu.org/ml/gcc/2002-03/msg00809.html
>
> but this was before branching for 3.1/3.2.
ok, found. should this be applied to the 3.3 branch again?
2002-04-02 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.h (WIDEST_HARDWARE_FP_SIZE): Define.
--- src/gcc/config/rs6000/rs6000.h~ 2002-12-10 23:42:32.000000000 +0100
+++ src/gcc/config/rs6000/rs6000.h 2002-12-29 20:58:22.000000000 +0100
@@ -611,6 +611,9 @@
#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 64
#endif
+/* Work around rs6000_long_double_type_size dependency in ada/targtyps.c. */
+#define WIDEST_HARDWARE_FP_SIZE 64
+
/* Width in bits of a pointer.
See also the macro `Pmode' defined below. */
#define POINTER_SIZE (TARGET_32BIT ? 32 : 64)
Reply to: