This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: basic-improvements merge status
- From: Jan Hubicka <jh at suse dot cz>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Jan Hubicka <jh at suse dot cz>, David Edelsohn <dje at watson dot ibm dot com>,Zack Weinberg <zack at codesourcery dot com>,"gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>,"libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>,Richard Henderson <rth at redhat dot com>
- Date: Tue, 17 Dec 2002 09:52:36 +0100
- Subject: Re: basic-improvements merge status
- References: <20021217083819.GP3138@kam.mff.cuni.cz> <42170000.1040114274@warlock.codesourcery.com>
> >OK, I will disable the transfromation for the moment.
>
> Thanks; that's fine.
>
> >>how to do the configury bits. (One possibility is explicitly flags in
> >>the tm.h file.)
> >
> >What do you think is the correct way to handle it?
>
> I'm not sure; I'm not a configury expert. For a native build, I'd think
> we could use autoconf; for a cross-build, that's a little tougher -- but
> I'd think we could still do it.
>
> The simplest approach would be something like TARGET_MEM_FUNCTIONS.
I've applied the attached patch. It should solve the bootstrap problems
we are having right now and will prepare updated patch afternoon.
I have to leave for now so hope everything is OK.
THanks!
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.16126
diff -c -3 -p -r1.16126 ChangeLog
*** ChangeLog 17 Dec 2002 07:49:23 -0000 1.16126
--- ChangeLog 17 Dec 2002 08:50:06 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ Tue Dec 17 09:47:57 CET 2002 Jan Hubicka <jh@suse.cz>
+
+ * convert.c (convert_to_real): Disable function transformation for
+ now.
+
2002-12-16 Geoffrey Keating <geoffk@apple.com>
* gcc.c (handle_braces): Allow '@' as a switch name.
Index: convert.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/convert.c,v
retrieving revision 1.20
diff -c -3 -p -r1.20 convert.c
*** convert.c 16 Dec 2002 18:19:13 -0000 1.20
--- convert.c 17 Dec 2002 08:50:07 -0000
*************** convert_to_real (type, expr)
*** 110,115 ****
--- 110,118 ----
enum built_in_function fcode = builtin_mathfn_code (expr);
tree itype = TREE_TYPE (expr);
+ /* Disable until we figure out how to decide whether the functions are
+ present in runtime. */
+ #if 0
/* Convert (float)sqrt((double)x) where x is float into sqrtf(x) */
if ((fcode == BUILT_IN_SQRT
|| fcode == BUILT_IN_SQRTL
*************** convert_to_real (type, expr)
*** 196,201 ****
--- 199,205 ----
}
}
}
+ #endif
/* Propagate the cast into the operation. */
if (itype != type && FLOAT_TYPE_P (type))