--- gcc/config/i386/i386.c.orig	Mon Sep 20 03:00:00 1999
+++ gcc/config/i386/i386.c	Sat Sep 25 10:42:16 1999
@@ -54,6 +54,21 @@
 #define CHECK_STACK_LIMIT -1
 #endif
 
+	/*
+#define PIC_REG_USED 					\
+  (flag_pic && (current_function_uses_pic_offset_table	\
+		|| current_function_uses_const_pool	\
+		|| profile_flag || profile_block_flag))
+	*/
+
+#ifndef PIC_REG_USED
+#define PIC_REG_USED	\
+  (flag_pic &&		\
+  (current_function_uses_pic_offset_table || current_function_uses_const_pool))
+#else
+#error GOT PIC_REG_USED :-) !
+#endif
+
 /* Processor costs (relative to an add) */
 struct processor_costs i386_cost = {	/* 386 specific costs */
   1,					/* cost of an add instruction */
@@ -1338,8 +1353,7 @@
   int nregs = 0;
   int reglimit = (frame_pointer_needed
 		  ? FRAME_POINTER_REGNUM : STACK_POINTER_REGNUM);
-  int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table
-				  || current_function_uses_const_pool);
+  int pic_reg_used = PIC_REG_USED;
 
 #ifdef NON_SAVING_SETJMP
   if (NON_SAVING_SETJMP && current_function_calls_setjmp)
@@ -1369,8 +1383,7 @@
      char *name ATTRIBUTE_UNUSED;
 {
   rtx xops[2];
-  int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table
-				  || current_function_uses_const_pool);
+  int pic_reg_used = PIC_REG_USED;
   xops[0] = pic_offset_table_rtx;
   xops[1] = stack_pointer_rtx;
 
@@ -1449,8 +1462,7 @@
   int nregs;
   int regno;
   int padding;
-  int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table
-				  || current_function_uses_const_pool);
+  int pic_reg_used = PIC_REG_USED;
   HOST_WIDE_INT total_size;
 
   limit = frame_pointer_needed
@@ -1504,8 +1516,7 @@
 {
   register int regno;
   int limit;
-  int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table
-				  || current_function_uses_const_pool);
+  int pic_reg_used = PIC_REG_USED;
   HOST_WIDE_INT tsize = ix86_compute_frame_size (get_frame_size (), (int *)0);
   rtx insn;
 
@@ -1583,8 +1594,7 @@
   register int regno;
   register int limit;
   int nregs;
-  int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table
-				  || current_function_uses_const_pool);
+  int pic_reg_used = PIC_REG_USED;
   int sp_valid = !frame_pointer_needed || current_function_sp_is_unchanging;
   HOST_WIDE_INT offset;
   HOST_WIDE_INT tsize = ix86_compute_frame_size (get_frame_size (), &nregs);
