[llvm-commits] [llvm-gcc-4.2] r80991 - /llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
Sandeep Patel
deeppatel1987 at gmail.com
Fri Sep 4 00:36:36 PDT 2009
Author: sandeep
Date: Fri Sep 4 02:36:36 2009
New Revision: 80991
URL: http://llvm.org/viewvc/llvm-project?rev=80991&view=rev
Log:
Revert r80990. Wrong file.
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=80991&r1=80990&r2=80991&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 4 02:36:36 2009
@@ -16604,6 +16604,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
@@ -16743,7 +16754,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. */
- 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);
@@ -23520,22 +23531,8 @@
void
optimization_options (int level ATTRIBUTE_UNUSED, int size ATTRIBUTE_UNUSED)
{
-#if !TARGET_MACHO
- if (level > 0)
- {
- /* For NGP, we don't need these enabled by default.
- FIXME: We should create an NGP target triple for configure and
- specify these options in the corresponding header. */
- flag_errno_math = 0;
- flag_trapping_math = 0;
-
- /* Enable these and the linkers -gc-sections by default to
- * eliminate dead code and data at link time. */
- flag_function_sections = 1;
- flag_data_sections = 1;
- }
-#else
/* disable strict aliasing; breaks too much existing code. */
+#if TARGET_MACHO
flag_strict_aliasing = 0;
/* Trapping math is not needed by many users, and is expensive.
More information about the llvm-commits
mailing list