[llvm-commits] [llvm-gcc-4.2] r41678 - /llvm-gcc-4.2/trunk/gcc/convert.c
Anton Korobeynikov
asl at math.spbu.ru
Sun Sep 2 15:26:15 PDT 2007
Author: asl
Date: Sun Sep 2 17:26:15 2007
New Revision: 41678
URL: http://llvm.org/viewvc/llvm-project?rev=41678&view=rev
Log:
Disable emitting lroundf() and friends. This should be fixed sometimes.
Modified:
llvm-gcc-4.2/trunk/gcc/convert.c
Modified: llvm-gcc-4.2/trunk/gcc/convert.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/convert.c?rev=41678&r1=41677&r2=41678&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/convert.c (original)
+++ llvm-gcc-4.2/trunk/gcc/convert.c Sun Sep 2 17:26:15 2007
@@ -38,6 +38,7 @@
#include "langhooks.h"
#include "real.h"
+#include "llvm.h"
/* Convert EXPR to some pointer or reference type TYPE.
EXPR must be pointer, reference, integer, enumeral, or literal zero;
in other cases error is called. */
@@ -394,6 +395,12 @@
/* Only convert in ISO C99 mode. */
if (!TARGET_C99_FUNCTIONS)
break;
+ /* LLVM LOCAL begin */
+ /* FIXME: l-functions should be supported sometimes */
+ #ifdef ENABLE_LLVM
+ break;
+ #endif
+ /* LLVM LOCAL end */
if (outprec < TYPE_PRECISION (long_integer_type_node)
|| (outprec == TYPE_PRECISION (long_integer_type_node)
&& !TYPE_UNSIGNED (type)))
@@ -407,6 +414,10 @@
/* Only convert in ISO C99 mode. */
if (!TARGET_C99_FUNCTIONS)
break;
+ /* LLVM LOCAL begin */
+ #ifdef ENABLER_LLVM
+ break;
+ #endif
if (outprec < TYPE_PRECISION (long_integer_type_node)
|| (outprec == TYPE_PRECISION (long_integer_type_node)
&& !TYPE_UNSIGNED (type)))
More information about the llvm-commits
mailing list