[libstdc++] Re: basic-improvements merge status
Jan Hubicka
jh@suse.cz
Mon Dec 16 15:05:00 GMT 2002
> >>>>> Jan Hubicka writes:
>
> Jan> As I've mentined I am handling this with the other patch that disables
> Jan> the transfomration for C90 until we decide how to detect such systems.
> Jan> On C99 and C++ it is always valid as runtime is required to have it (and
> Jan> thats why libstdc++ does it). I hope Richard will have time to take a
> Jan> look on these patches soon.
>
> Would you please include a pointer to the patch? I have been
> browsing your patches and cannot find one that fixes this problem.
Hi,
and this should fix the builtins overwriting problem.
Even if we manage gcc to not do the transformation under certain
configurations, still this is more safe to do.
Honza
Mon Dec 16 23:53:16 CET 2002 Jan Hubicka <jh@suse.cz>
* Makefile.am (AM_CFLAGS): New.
Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libmath/Makefile.am,v
retrieving revision 1.20
diff -c -3 -p -r1.20 Makefile.am
*** Makefile.am 12 Sep 2002 23:27:30 -0000 1.20
--- Makefile.am 16 Dec 2002 22:53:03 -0000
*************** libmath_la_DEPENDENCIES = $(libmath_la_L
*** 34,39 ****
--- 34,43 ----
libmath_la_SOURCES = stubs.c
+ # Avoid GCC transfroming (float)sin(float) into sinf causing infinite
+ # recursion.
+ AM_CFLAGS = -fno-builtins
+
# Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
More information about the Gcc
mailing list