r181527 - Fix the return type of the complex creal functions. Patch by YunZhong Gao, modified to use _Static_assert and to check __STDC_HOSTED__ by me.
Richard Smith
richard-llvm at metafoo.co.uk
Thu May 9 10:41:19 PDT 2013
Author: rsmith
Date: Thu May 9 12:41:19 2013
New Revision: 181527
URL: http://llvm.org/viewvc/llvm-project?rev=181527&view=rev
Log:
Fix the return type of the complex creal functions. Patch by YunZhong Gao, modified to use _Static_assert and to check __STDC_HOSTED__ by me.
Modified:
cfe/trunk/lib/Headers/tgmath.h
Modified: cfe/trunk/lib/Headers/tgmath.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/tgmath.h?rev=181527&r1=181526&r2=181527&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/tgmath.h (original)
+++ cfe/trunk/lib/Headers/tgmath.h Thu May 9 12:41:19 2013
@@ -1340,15 +1340,15 @@ static long double _Complex
// creal
-static float _Complex
+static float
_TG_ATTRS
__tg_creal(float __x) {return __x;}
-static double _Complex
+static double
_TG_ATTRS
__tg_creal(double __x) {return __x;}
-static long double _Complex
+static long double
_TG_ATTRS
__tg_creal(long double __x) {return __x;}
More information about the cfe-commits
mailing list