[llvm-commits] [dragonegg] r85897 - /dragonegg/trunk/gcc-patches/i386_static.diff

Duncan Sands baldrick at free.fr
Tue Nov 3 05:26:22 PST 2009


Author: baldrick
Date: Tue Nov  3 07:26:21 2009
New Revision: 85897

URL: http://llvm.org/viewvc/llvm-project?rev=85897&view=rev
Log:
Add prototypes, so that gcc successfully bootstraps with the patch applied.

Modified:
    dragonegg/trunk/gcc-patches/i386_static.diff

Modified: dragonegg/trunk/gcc-patches/i386_static.diff
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/gcc-patches/i386_static.diff?rev=85897&r1=85896&r2=85897&view=diff

==============================================================================
--- dragonegg/trunk/gcc-patches/i386_static.diff (original)
+++ dragonegg/trunk/gcc-patches/i386_static.diff Tue Nov  3 07:26:21 2009
@@ -1,39 +1,45 @@
 Index: mainline/gcc/config/i386/i386.c
 ===================================================================
---- mainline.orig/gcc/config/i386/i386.c	2009-09-28 10:25:38.639572451 +0200
-+++ mainline/gcc/config/i386/i386.c	2009-09-28 10:58:43.498571902 +0200
-@@ -4898,7 +4898,7 @@
+--- mainline.orig/gcc/config/i386/i386.c	2009-11-02 17:21:03.257325701 +0100
++++ mainline/gcc/config/i386/i386.c	2009-11-03 13:26:05.384538824 +0100
+@@ -4943,7 +4943,8 @@
     case, we return the original mode and warn ABI change if CUM isn't
     NULL.  */
  
 -static enum machine_mode
++extern enum machine_mode type_natural_mode (const_tree, CUMULATIVE_ARGS *);
 +enum machine_mode
  type_natural_mode (const_tree type, CUMULATIVE_ARGS *cum)
  {
    enum machine_mode mode = TYPE_MODE (type);
-@@ -5029,7 +5029,7 @@
+@@ -5074,7 +5075,9 @@
     See the x86-64 PS ABI for details.
  */
  
 -static int
++extern int classify_argument (enum machine_mode, const_tree,
++                              enum x86_64_reg_class [MAX_CLASSES], int);
 +int
  classify_argument (enum machine_mode mode, const_tree type,
  		   enum x86_64_reg_class classes[MAX_CLASSES], int bit_offset)
  {
-@@ -5409,7 +5409,7 @@
+@@ -5454,7 +5457,9 @@
  
  /* Examine the argument and return set number of register required in each
     class.  Return 0 iff parameter should be passed in memory.  */
 -static int
++extern int examine_argument (enum machine_mode, const_tree, int,
++                             int *, int *);
 +int
  examine_argument (enum machine_mode mode, const_tree type, int in_return,
  		  int *int_nregs, int *sse_nregs)
  {
-@@ -6089,7 +6089,7 @@
+@@ -6134,7 +6139,8 @@
  
  /* Return true when TYPE should be 128bit aligned for 32bit argument passing
     ABI.  */
 -static bool
++extern bool contains_aligned_value_p (tree);
 +bool
  contains_aligned_value_p (tree type)
  {





More information about the llvm-commits mailing list