[llvm-commits] [llvm-gcc-4.2] r80990 - /llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
Sandeep Patel
deeppatel1987 at gmail.com
Fri Sep 4 00:10:04 PDT 2009
Author: sandeep
Date: Fri Sep 4 02:10:03 2009
New Revision: 80990
URL: http://llvm.org/viewvc/llvm-project?rev=80990&view=rev
Log:
Eliminate warning caused by r80773. Committed as obvious.
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=80990&r1=80989&r2=80990&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:10:03 2009
@@ -16604,17 +16604,6 @@
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
@@ -16754,7 +16743,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 = make_neon_float_type ();
+ tree neon_float_type_node = build_variant_type_copy (float_type_node);
/* APPLE LOCAL end 7083296 Build without warnings. */
tree intQI_pointer_node = build_pointer_type (neon_intQI_type_node);
@@ -23531,8 +23520,22 @@
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