From 7e7e470f9bf455553ee08e9be90943fa3631a07b Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 11 Feb 2005 16:26:57 -0800 Subject: tree-complex.c (expand_complex_libcall): New. * tree-complex.c (expand_complex_libcall): New. (expand_complex_multiplication): Use it for c99 compliance. (expand_complex_division): Likewise. * fold-const.c (fold_complex_add, fold_complex_mult): New. (fold): Call them. * builtins.c (built_in_names): Remove const. * tree.c (build_common_builtin_nodes): Build complex arithmetic builtins. * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New. (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New. (built_in_names): Remove const. * c-common.c (c_common_type_for_mode): Handle complex modes. * flags.h, toplev.c (flag_complex_method): Rename from flag_complex_divide_method. * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3, __mulsc3, __muldc3, __mulxc3, __multc3): New. * libgcc2.h: Declare them. * libgcc-std.ver: Export them. * mklibgcc.in (lib2funcs): Build them. From-SVN: r94909 --- gcc/libgcc-std.ver | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gcc/libgcc-std.ver') diff --git a/gcc/libgcc-std.ver b/gcc/libgcc-std.ver index b701fcf..341cf7a 100644 --- a/gcc/libgcc-std.ver +++ b/gcc/libgcc-std.ver @@ -241,4 +241,14 @@ GCC_4.0.0 { __powidf2 __powixf2 __powitf2 -} \ No newline at end of file + + # c99 compliant complex arithmetic + __divsc3 + __divdc3 + __divxc3 + __divtc3 + __mulsc3 + __muldc3 + __mulxc3 + __multc3 +} -- cgit v1.1