[llvm-commits] [llvm-gcc-4.2] r46160 - /llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
Evan Cheng
evan.cheng at apple.com
Fri Jan 18 00:39:57 PST 2008
Author: evancheng
Date: Fri Jan 18 02:39:55 2008
New Revision: 46160
URL: http://llvm.org/viewvc/llvm-project?rev=46160&view=rev
Log:
Eliminate a compilation warning: mixing declarations and code is badness. Forgot it's not C++.
Modified:
llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/i386.c?rev=46160&r1=46159&r2=46160&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/i386.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/i386.c Fri Jan 18 02:39:55 2008
@@ -15553,26 +15553,6 @@
tree V8HI_type_node = build_vector_type_for_mode (intHI_type_node, V8HImode);
tree V1DI_type_node = build_vector_type_for_mode (long_long_integer_type_node, V1DImode);
- /* APPLE LOCAL begin LLVM */
-#ifdef ENABLE_LLVM
- /* LLVM doesn't initialize the RTL backend, so build_vector_type will assign
- all of these types BLKmode. This interferes with i386.c-specific
- argument passing routines. As such, give them the correct modes here
- manually. */
- TYPE_MODE (V16QI_type_node) = V16QImode;
- TYPE_MODE (V2SI_type_node) = V2SImode;
- TYPE_MODE (V2SF_type_node) = V2SFmode;
- TYPE_MODE (V2DI_type_node) = V2DImode;
- TYPE_MODE (V2DF_type_node) = V2DFmode;
- TYPE_MODE (V4SF_type_node) = V4SFmode;
- TYPE_MODE (V4SI_type_node) = V4SImode;
- TYPE_MODE (V4HI_type_node) = V4HImode;
- TYPE_MODE (V8QI_type_node) = V8QImode;
- TYPE_MODE (V8HI_type_node) = V8HImode;
- TYPE_MODE (V1DI_type_node) = V1DImode;
-#endif
- /* APPLE LOCAL end LLVM */
-
tree pchar_type_node = build_pointer_type (char_type_node);
tree pcchar_type_node = build_pointer_type (
build_type_variant (char_type_node, 1, 0));
@@ -15860,6 +15840,26 @@
tree float128_type;
tree ftype;
+ /* APPLE LOCAL begin LLVM */
+#ifdef ENABLE_LLVM
+ /* LLVM doesn't initialize the RTL backend, so build_vector_type will assign
+ all of these types BLKmode. This interferes with i386.c-specific
+ argument passing routines. As such, give them the correct modes here
+ manually. */
+ TYPE_MODE (V16QI_type_node) = V16QImode;
+ TYPE_MODE (V2SI_type_node) = V2SImode;
+ TYPE_MODE (V2SF_type_node) = V2SFmode;
+ TYPE_MODE (V2DI_type_node) = V2DImode;
+ TYPE_MODE (V2DF_type_node) = V2DFmode;
+ TYPE_MODE (V4SF_type_node) = V4SFmode;
+ TYPE_MODE (V4SI_type_node) = V4SImode;
+ TYPE_MODE (V4HI_type_node) = V4HImode;
+ TYPE_MODE (V8QI_type_node) = V8QImode;
+ TYPE_MODE (V8HI_type_node) = V8HImode;
+ TYPE_MODE (V1DI_type_node) = V1DImode;
+#endif
+ /* APPLE LOCAL end LLVM */
+
/* The __float80 type. */
if (TYPE_MODE (long_double_type_node) == XFmode)
(*lang_hooks.types.register_builtin_type) (long_double_type_node,
More information about the llvm-commits
mailing list