[llvm-commits] [llvm-gcc-4.2] r40097 - in /llvm-gcc-4.2/trunk/gcc/ada: gigi.h misc.c

Duncan Sands baldrick at free.fr
Fri Jul 20 06:32:05 PDT 2007


Author: baldrick
Date: Fri Jul 20 08:32:05 2007
New Revision: 40097

URL: http://llvm.org/viewvc/llvm-project?rev=40097&view=rev
Log:
Do not use optabs when ifdef ENABLE_LLVM.  The result
of the optabs computation was not used anyway!

Modified:
    llvm-gcc-4.2/trunk/gcc/ada/gigi.h
    llvm-gcc-4.2/trunk/gcc/ada/misc.c

Modified: llvm-gcc-4.2/trunk/gcc/ada/gigi.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/ada/gigi.h?rev=40097&r1=40096&r2=40097&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/ada/gigi.h (original)
+++ llvm-gcc-4.2/trunk/gcc/ada/gigi.h Fri Jul 20 08:32:05 2007
@@ -34,7 +34,11 @@
 
 /* The largest alignment, in bits, that is needed for using the widest
    move instruction.  */
+/* LLVM LOCAL begin */
+#ifndef ENABLE_LLVM
 extern unsigned int largest_move_alignment;
+#endif
+/* LLVM LOCAL end */
 
 /* Compute the alignment of the largest mode that can be used for copying
    objects.  */

Modified: llvm-gcc-4.2/trunk/gcc/ada/misc.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/ada/misc.c?rev=40097&r1=40096&r2=40097&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/ada/misc.c (original)
+++ llvm-gcc-4.2/trunk/gcc/ada/misc.c Fri Jul 20 08:32:05 2007
@@ -83,7 +83,11 @@
 
 /* The largest alignment, in bits, that is needed for using the widest
    move instruction.  */
+/* LLVM LOCAL begin */
+#ifndef ENABLE_LLVM
 unsigned int largest_move_alignment;
+#endif
+/* LLVM LOCAL end */
 
 static bool gnat_init			(void);
 static void gnat_finish_incomplete_decl	(tree);
@@ -474,6 +478,8 @@
 void
 gnat_compute_largest_alignment (void)
 {
+/* LLVM LOCAL */
+#ifndef ENABLE_LLVM
   enum machine_mode mode;
 
   for (mode = GET_CLASS_NARROWEST_MODE (MODE_INT); mode != VOIDmode;
@@ -482,6 +488,8 @@
       largest_move_alignment = MIN (BIGGEST_ALIGNMENT,
 				    MAX (largest_move_alignment,
 					 GET_MODE_ALIGNMENT (mode)));
+/* LLVM LOCAL */
+#endif
 }
 
 /* If we are using the GCC mechanism to process exception handling, we
@@ -867,6 +875,8 @@
 void
 enumerate_modes (void (*f) (int, int, int, int, int, int, unsigned int))
 {
+/* LLVM LOCAL */
+#ifndef ENABLE_LLVM
   enum machine_mode i;
 
   for (i = 0; i < NUM_MACHINE_MODES; i++)
@@ -928,6 +938,8 @@
 	      GET_MODE_BITSIZE (i), mantissa,
 	      GET_MODE_SIZE (i) * BITS_PER_UNIT, GET_MODE_ALIGNMENT (i));
     }
+/* LLVM LOCAL */
+#endif
 }
 
 int





More information about the llvm-commits mailing list