head	1.2;
access;
symbols
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2006.12.12.16.06.37;	author vd;	state dead;
branches;
next	1.1;

1.1
date	2000.11.30.11.39.26;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Remove expired ports:
2006-12-01 print/latex-beamer: is already included in the teTeX distribution
2006-12-01 print/latex-bibtopic: is already included in the teTeX distribution
2006-12-01 print/latex-bibunits: is already included in the teTeX distribution
2006-12-01 print/latex-booktabs: is already included in the teTeX distribution
2006-12-01 print/latex-index: is already included in the teTeX distribution
2006-12-01 print/latex-layouts: is already included in the teTeX distribution
2006-12-01 print/latex-pgf: is already included in the teTeX distribution
2006-12-01 print/latex-subfig: is already included in the teTeX distribution
2006-12-01 print/latex-xcolor: is already included in the teTeX distribution
2006-12-01 print/latex-lineno: is already included in the teTeX distribution
2006-12-01 print/latex-pict2e: is already included in the teTeX distribution
2007-05-31 multimedia/gstreamer-plugins-mpeg2enc80: Obsolete version, use gstreamer 0.10 instead
2006-12-01 lang/gcc30: "This port is no longer in use by anything in the ports collection and will be removed in the future.  Use a later release instead."
2006-12-01 lang/egcs: "This port is no longer in use by anything in the ports collection and will be removed in the future.  Use a later release of gcc instead"
2006-12-01 graphics/php4-ming: doesn't work with new version of ming library
2006-12-01 graphics/dvipng: is already included in the teTeX distribution
@
text
@--- gcc/config/i386/i386.c.orig	Sat Sep  5 22:52:05 1998
+++ gcc/config/i386/i386.c	Wed Oct  7 17:06:48 1998
@@@@ -51,6 +51,11 @@@@
 #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))
+
 /* Type of an operand for ix86_{binary,unary}_operator_ok */
 enum reg_mem
 {
@@@@ -1938,13 +1943,11 @@@@
      char *name ATTRIBUTE_UNUSED;
 {
   rtx xops[2];
-  int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table
-				  || current_function_uses_const_pool);
   xops[0] = pic_offset_table_rtx;
   xops[1] = stack_pointer_rtx;
 
   /* Deep branch prediction favors having a return for every call. */
-  if (pic_reg_used && TARGET_DEEP_BRANCH_PREDICTION)
+  if (PIC_REG_USED && TARGET_DEEP_BRANCH_PREDICTION)
     {
       tree prologue_node;
 
@@@@ -2074,8 +2077,7 @@@@
   register int regno;
   int limit;
   rtx xops[4];
-  int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table
-				  || current_function_uses_const_pool);
+  int pic_reg_used = PIC_REG_USED;
   long tsize = get_frame_size ();
   rtx insn;
   int cfa_offset = INCOMING_FRAME_SP_OFFSET, cfa_store_offset = cfa_offset;
@@@@ -2245,8 +2247,6 @@@@
   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);
 
 #ifdef NON_SAVING_SETJMP
   if (NON_SAVING_SETJMP && current_function_calls_setjmp)
@@@@ -2258,7 +2258,7 @@@@
 
   for (regno = reglimit - 1; regno >= 0; regno--)
     if ((regs_ever_live[regno] && ! call_used_regs[regno])
-	|| (regno == PIC_OFFSET_TABLE_REGNUM && pic_reg_used))
+	|| (regno == PIC_OFFSET_TABLE_REGNUM && PIC_REG_USED))
       nregs++;
 
   return nregs == 0 || ! frame_pointer_needed;
@@@@ -2292,8 +2292,7 @@@@
   register int nregs, limit;
   int offset;
   rtx xops[3];
-  int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table
-				  || current_function_uses_const_pool);
+  int pic_reg_used = PIC_REG_USED;
   long tsize = get_frame_size ();
 
   /* Compute the number of registers to pop */
@


1.1
log
@This should take this port back to the last version of it for EGCS-1.1.2.
The gcc-2.95.2 bits have been repo copied to ports/lang/gcc295.

GCC 2.95.2 does not work for some people's code.  GCC 3.0 will be even
worse.  So it looks like we'll have to keep a port for each version of
GCC we've ever used.
@
text
@@

