[llvm-commits] [llvm-gcc-4.2] r82795 - /llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
Bob Wilson
bob.wilson at apple.com
Fri Sep 25 13:51:26 PDT 2009
Author: bwilson
Date: Fri Sep 25 15:51:26 2009
New Revision: 82795
URL: http://llvm.org/viewvc/llvm-project?rev=82795&view=rev
Log:
Revert fix for pr5037 (svn 82787). It broke the NEON-specific mangling for C++.
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/arm.c?rev=82795&r1=82794&r2=82795&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/arm.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/arm.c Fri Sep 25 15:51:26 2009
@@ -16734,6 +16734,17 @@
return VALID_NEON_DREG_MODE (mode) || VALID_NEON_QREG_MODE (mode);
}
+/* APPLE LOCAL begin 7083296 Build without warnings. */
+static tree
+make_neon_float_type (void)
+{
+ tree neon_float_type_node = make_node (REAL_TYPE);
+ TYPE_PRECISION (neon_float_type_node) = FLOAT_TYPE_SIZE;
+ layout_type (neon_float_type_node);
+ return neon_float_type_node;
+}
+/* APPLE LOCAL end 7083296 Build without warnings. */
+
/* LLVM LOCAL begin multi-vector types */
#ifdef ENABLE_LLVM
/* Create a new builtin struct type containing NUMVECS fields (where NUMVECS
@@ -16869,8 +16880,7 @@
tree neon_intSI_type_node = make_signed_type (GET_MODE_PRECISION (SImode));
tree neon_intDI_type_node = make_signed_type (GET_MODE_PRECISION (DImode));
/* APPLE LOCAL begin 7083296 Build without warnings. */
- /* LLVM LOCAL pr5037 */
- tree neon_float_type_node = build_variant_type_copy (float_type_node);
+ tree neon_float_type_node = make_neon_float_type ();
/* APPLE LOCAL end 7083296 Build without warnings. */
tree intQI_pointer_node = build_pointer_type (neon_intQI_type_node);
More information about the llvm-commits
mailing list