rpms/compat-gcc-296/devel compat-gcc-296.spec, 1.22, 1.23 gcc-2.96-parallel.patch, 1.1, 1.2 gcc-__NO_INLINE__.patch, 1.1, 1.2 gcc-c++-anonaggr-copy.patch, 1.1, 1.2 gcc-c++-taking-address-error.patch, 1.1, 1.2 gcc-f77-line.patch, 1.1, 1.2 gcc-i386-reload.patch, 1.1, 1.2 gcc-iso-not-ansi.patch, 1.1, 1.2 gcc-regrename.patch, 1.1, 1.2 gcc-segv3.patch, 1.1, 1.2

Tom Callaway (spot) fedora-extras-commits at redhat.com
Tue Jul 15 16:00:09 UTC 2008


Author: spot

Update of /cvs/pkgs/rpms/compat-gcc-296/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22527

Modified Files:
	compat-gcc-296.spec gcc-2.96-parallel.patch 
	gcc-__NO_INLINE__.patch gcc-c++-anonaggr-copy.patch 
	gcc-c++-taking-address-error.patch gcc-f77-line.patch 
	gcc-i386-reload.patch gcc-iso-not-ansi.patch 
	gcc-regrename.patch gcc-segv3.patch 
Log Message:
fix license tag


Index: compat-gcc-296.spec
===================================================================
RCS file: /cvs/pkgs/rpms/compat-gcc-296/devel/compat-gcc-296.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- compat-gcc-296.spec	21 Feb 2008 02:15:07 -0000	1.22
+++ compat-gcc-296.spec	15 Jul 2008 15:59:21 -0000	1.23
@@ -1,11 +1,11 @@
 %define DATE 20000731
 %define gcc_version 2.96
-%define gcc_release 140
+%define gcc_release 141
 Summary: 2.96-RH compatibility libraries
 Name: compat-gcc-296
 Version: %{gcc_version}
 Release: %{gcc_release}
-License: GPL
+License: GPLv2+
 Group: Development/Languages
 ExclusiveArch: %{ix86} ia64 ppc
 URL: http://gcc.gnu.org
@@ -1077,6 +1077,10 @@
 %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/crtendS.o
 
 %changelog
+* Tue Jul 15 2008 Tom "spot" Callaway <tcallawa at redhat.com> 2.96-141
+- fix license tag
+- fix patches to apply with fuzz=0
+
 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 2.96-140
 - Autorebuild for GCC 4.3
 

gcc-2.96-parallel.patch:

Index: gcc-2.96-parallel.patch
===================================================================
RCS file: /cvs/pkgs/rpms/compat-gcc-296/devel/gcc-2.96-parallel.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gcc-2.96-parallel.patch	15 Oct 2004 17:18:07 -0000	1.1
+++ gcc-2.96-parallel.patch	15 Jul 2008 15:59:21 -0000	1.2
@@ -27,8 +27,8 @@
 +jv-scan$(exeext): gcjh$(exeext)
 +jcf-dump$(exeext): jv-scan$(exeext)
  
- # errors.o may not be always built for canadian cross compile. Make
- # sure it is built for java.
+ # Define the name of target independant tools to be installed in $(bindir)
+ # Names are subject to changes
 --- libstdc++/Makefile.in.parallel	Sun Jul  2 01:37:33 2000
 +++ libstdc++/Makefile.in	Fri Apr  5 11:12:33 2002
 @@ -139,7 +139,7 @@ stlinst.o: stlinst.cc

gcc-__NO_INLINE__.patch:

Index: gcc-__NO_INLINE__.patch
===================================================================
RCS file: /cvs/pkgs/rpms/compat-gcc-296/devel/gcc-__NO_INLINE__.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gcc-__NO_INLINE__.patch	15 Oct 2004 17:18:07 -0000	1.1
+++ gcc-__NO_INLINE__.patch	15 Jul 2008 15:59:21 -0000	1.2
@@ -4,22 +4,12 @@
 	"inline" keyword.
 	* cpp.texi (__NO_INLINE): Document it.
 
---- gcc/gcc.c.jj	Thu May  3 20:12:47 2001
-+++ gcc/gcc.c	Fri May  4 22:08:38 2001
-@@ -647,7 +647,7 @@ static const char *cpp_options =
-  %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3}\
-  %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\
-  %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
-- %{ffast-math:-D__FAST_MATH__}\
-+ %{fno-inline|O0|!O*:-D__NO_INLINE__} %{ffast-math:-D__FAST_MATH__}\
-  %{fshort-wchar:-U__WCHAR_TYPE__ -D__WCHAR_TYPE__=short\\ unsigned\\ int}\
-  %{ffreestanding:-D__STDC_HOSTED__=0} %{fno-hosted:-D__STDC_HOSTED__=0}\
-  %{!ffreestanding:%{!fno-hosted:-D__STDC_HOSTED__=1}}\
---- gcc/cpp.texi.jj	Wed Apr 18 15:45:14 2001
-+++ gcc/cpp.texi	Fri May  4 22:35:33 2001
-@@ -1200,6 +1200,16 @@ for some system library functions.  You 
- definition of this macro unless you make very sure that programs will
- execute with the same effect regardless.
+diff -up gcc/cpp.texi.__NO_INLINE__ gcc/cpp.texi
+--- gcc/cpp.texi.__NO_INLINE__	2008-07-15 11:27:05.000000000 -0400
++++ gcc/cpp.texi	2008-07-15 11:50:40.000000000 -0400
+@@ -1173,6 +1173,16 @@ library functions.  You should not refer
+ this macro unless you make very sure that programs will execute with the
+ same effect regardless.
  
 + at item __NO_INLINE__
 + at findex __NO_INLINE__
@@ -34,3 +24,15 @@
  @item __CHAR_UNSIGNED__
  @findex __CHAR_UNSIGNED__
  GNU C defines this macro if and only if the data type @code{char} is
+diff -up gcc/gcc.c.__NO_INLINE__ gcc/gcc.c
+--- gcc/gcc.c.__NO_INLINE__	2008-07-15 11:27:09.000000000 -0400
++++ gcc/gcc.c	2008-07-15 11:49:42.000000000 -0400
+@@ -564,7 +564,7 @@ static const char *cpp_options =
+  %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3}\
+  %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs}\
+  %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
+- %{ffast-math:-D__FAST_MATH__}\
++ %{fno-inline|O0|!O*:-D__NO_INLINE__} %{ffast-math:-D__FAST_MATH__}\
+  %{fshort-wchar:-U__WCHAR_TYPE__ -D__WCHAR_TYPE__=short\\ unsigned\\ int}\
+  %{fshow-column} %{fno-show-column}\
+  %{fleading-underscore} %{fno-leading-underscore}\

gcc-c++-anonaggr-copy.patch:

Index: gcc-c++-anonaggr-copy.patch
===================================================================
RCS file: /cvs/pkgs/rpms/compat-gcc-296/devel/gcc-c++-anonaggr-copy.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gcc-c++-anonaggr-copy.patch	15 Oct 2004 17:18:08 -0000	1.1
+++ gcc-c++-anonaggr-copy.patch	15 Jul 2008 15:59:21 -0000	1.2
@@ -8,24 +8,10 @@
 
 	* g++.old-deja/g++.other/anon8.C: New test.
 
---- gcc/cp/method.c.jj	Tue Mar 20 13:45:06 2001
-+++ gcc/cp/method.c	Thu Mar 22 12:36:44 2001
-@@ -703,7 +703,11 @@ do_build_assign_ref (fndecl)
- 	                build_qualified_type (TREE_TYPE (field), cvquals),
- 	                init, field);
- 
--	  finish_expr_stmt (build_modify_expr (comp, NOP_EXPR, init));
-+	  if (DECL_NAME (field))
-+	    finish_expr_stmt (build_modify_expr (comp, NOP_EXPR, init));
-+	  else
-+	    finish_expr_stmt (build (MODIFY_EXPR, TREE_TYPE (comp), comp,
-+				     init));
- 	}
-     }
-   finish_return_stmt (current_class_ref);
---- gcc/cp/decl.c.jj	Thu Mar 22 12:11:00 2001
-+++ gcc/cp/decl.c	Thu Mar 22 12:47:18 2001
-@@ -6815,6 +6815,33 @@ fixup_anonymous_aggr (t)
+diff -up gcc/cp/decl.c.c++-anonaggr-copy gcc/cp/decl.c
+--- gcc/cp/decl.c.c++-anonaggr-copy	2008-07-15 11:12:48.000000000 -0400
++++ gcc/cp/decl.c	2008-07-15 11:12:52.000000000 -0400
+@@ -6974,6 +6974,33 @@ fixup_anonymous_aggr (t)
    /* ISO C++ 9.5.3.  Anonymous unions may not have function members.  */
    if (TYPE_METHODS (t))
      error ("an anonymous union cannot have function members");
@@ -59,8 +45,25 @@
  }
  
  /* Make sure that a declaration with no declarator is well-formed, i.e.
---- gcc/testsuite/g++.old-deja/g++.other/anon8.C.jj	Mon Mar 19 17:13:30 2001
-+++ gcc/testsuite/g++.old-deja/g++.other/anon8.C	Tue Mar 20 17:01:57 2001
+diff -up gcc/cp/method.c.c++-anonaggr-copy gcc/cp/method.c
+--- gcc/cp/method.c.c++-anonaggr-copy	2008-07-15 11:12:47.000000000 -0400
++++ gcc/cp/method.c	2008-07-15 11:14:48.000000000 -0400
+@@ -2509,7 +2509,11 @@ do_build_assign_ref (fndecl)
+ 	  comp = build (COMPONENT_REF, TREE_TYPE (field), comp, field);
+ 	  init = build (COMPONENT_REF, TREE_TYPE (field), init, field);
+ 
+-	  finish_expr_stmt (build_modify_expr (comp, NOP_EXPR, init));
++	  if (DECL_NAME (field))
++	    finish_expr_stmt (build_modify_expr (comp, NOP_EXPR, init));
++	  else
++	    finish_expr_stmt (build (MODIFY_EXPR, TREE_TYPE (comp), comp,
++				     init));
+ 	}
+     }
+   finish_return_stmt (current_class_ref);
+diff -up /dev/null gcc/testsuite/g++.old-deja/g++.other/anon8.C
+--- /dev/null	2008-07-14 09:17:49.235004637 -0400
++++ gcc/testsuite/g++.old-deja/g++.other/anon8.C	2008-07-15 11:12:52.000000000 -0400
 @@ -0,0 +1,22 @@
 +// Build don't link:
 +

gcc-c++-taking-address-error.patch:

Index: gcc-c++-taking-address-error.patch
===================================================================
RCS file: /cvs/pkgs/rpms/compat-gcc-296/devel/gcc-c++-taking-address-error.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gcc-c++-taking-address-error.patch	15 Oct 2004 17:18:08 -0000	1.1
+++ gcc-c++-taking-address-error.patch	15 Jul 2008 15:59:21 -0000	1.2
@@ -2,14 +2,15 @@
 
 	* typeck.c (build_unary_op): Clarify error message.
 
---- gcc/cp/typeck.c.jj	Wed Feb 14 01:39:02 2001
-+++ gcc/cp/typeck.c	Wed Feb 14 18:39:49 2001
-@@ -4652,7 +4652,7 @@ build_unary_op (code, xarg, noconvert)
+diff -up gcc/cp/typeck.c.c++-taking-address-error gcc/cp/typeck.c
+--- gcc/cp/typeck.c.c++-taking-address-error	2008-07-15 11:09:16.000000000 -0400
++++ gcc/cp/typeck.c	2008-07-15 11:11:15.000000000 -0400
+@@ -4662,7 +4662,7 @@ build_unary_op (code, xarg, noconvert)
  	      if (current_class_type
  		  && TREE_OPERAND (arg, 0) == current_class_ref)
  		/* An expression like &memfn.  */
 -		cp_pedwarn ("ISO C++ forbids taking the address of a non-static member function to form a pointer to member function.  Say `&%T::%D'", base, name);
 +		cp_pedwarn ("ISO C++ forbids taking the address of an unqualified non-static member function to form a pointer to member function.  Say `&%T::%D'", base, name);
  	      else
- 		cp_pedwarn ("ISO C++ forbids taking the address of a bound member function to form a pointer to member function.  Say `&%T::%D'", base, name);
+ 		cp_pedwarn ("ISO C++ forbids taking the address of a bound member function to form a pointer to member function", base, name);
  	    }

gcc-f77-line.patch:

Index: gcc-f77-line.patch
===================================================================
RCS file: /cvs/pkgs/rpms/compat-gcc-296/devel/gcc-f77-line.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gcc-f77-line.patch	15 Oct 2004 17:18:08 -0000	1.1
+++ gcc-f77-line.patch	15 Jul 2008 15:59:21 -0000	1.2
@@ -9,7 +9,7 @@
 +++ gcc/f/lex.c	Wed Mar 21 14:31:33 2001
 @@ -1412,6 +1412,12 @@ ffelex_hash_ (FILE *finput)
  	  input_filename = old_input_filename;
- 	  error ("Use `#line ...' instead of `# ...' in first line");
+ 	  fatal ("Use `#line ...' instead of `# ...' in first line");
  	}
 +      if (c == '\n' || c == EOF)
 +	{

gcc-i386-reload.patch:

Index: gcc-i386-reload.patch
===================================================================
RCS file: /cvs/pkgs/rpms/compat-gcc-296/devel/gcc-i386-reload.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gcc-i386-reload.patch	15 Oct 2004 17:18:08 -0000	1.1
+++ gcc-i386-reload.patch	15 Jul 2008 15:59:21 -0000	1.2
@@ -1,12 +1,7 @@
-2000-10-23  Bernd Schmidt  <bernds at redhat.com>
-
-	* reload.c (find_reloads): Distinguish "wins" so that we know whether
-	a given operand won because of a matching constraint or not; then use
-	that information to compute goal_alternative_matched properly.
-
---- gcc/reload.c	2000/09/14 17:42:48	1.130
-+++ gcc/reload.c	2000/10/23 16:05:19
-@@ -2399,6 +2399,7 @@ find_reloads (insn, replace, ind_levels,
+diff -up ./gcc/reload.c.i386-reload ./gcc/reload.c
+--- ./gcc/reload.c.i386-reload	2008-07-15 11:00:47.000000000 -0400
++++ ./gcc/reload.c	2008-07-15 11:02:45.000000000 -0400
+@@ -2400,6 +2400,7 @@ find_reloads (insn, replace, ind_levels,
    int no_input_reloads = 0, no_output_reloads = 0;
    int n_alternatives;
    int this_alternative[MAX_RECOG_OPERANDS];
@@ -14,7 +9,7 @@
    char this_alternative_win[MAX_RECOG_OPERANDS];
    char this_alternative_offmemok[MAX_RECOG_OPERANDS];
    char this_alternative_earlyclobber[MAX_RECOG_OPERANDS];
-@@ -2410,6 +2411,7 @@ find_reloads (insn, replace, ind_levels,
+@@ -2411,6 +2412,7 @@ find_reloads (insn, replace, ind_levels,
    int operand_reloadnum[MAX_RECOG_OPERANDS];
    int goal_alternative_matches[MAX_RECOG_OPERANDS];
    int goal_alternative_matched[MAX_RECOG_OPERANDS];
@@ -22,7 +17,7 @@
    char goal_alternative_win[MAX_RECOG_OPERANDS];
    char goal_alternative_offmemok[MAX_RECOG_OPERANDS];
    char goal_alternative_earlyclobber[MAX_RECOG_OPERANDS];
-@@ -2741,6 +2743,7 @@ find_reloads (insn, replace, ind_levels,
+@@ -2742,6 +2744,7 @@ find_reloads (insn, replace, ind_levels,
  	{
  	  register char *p = constraints[i];
  	  register int win = 0;
@@ -30,7 +25,7 @@
  	  /* 0 => this operand can be reloaded somehow for this alternative */
  	  int badop = 1;
  	  /* 0 => this operand can be reloaded if the alternative allows regs.  */
-@@ -2839,6 +2842,7 @@ find_reloads (insn, replace, ind_levels,
+@@ -2858,6 +2861,7 @@ find_reloads (insn, replace, ind_levels,
  
  	  this_alternative[i] = (int) NO_REGS;
  	  this_alternative_win[i] = 0;
@@ -38,7 +33,7 @@
  	  this_alternative_offmemok[i] = 0;
  	  this_alternative_earlyclobber[i] = 0;
  	  this_alternative_matches[i] = -1;
-@@ -2917,7 +2921,7 @@ find_reloads (insn, replace, ind_levels,
+@@ -2935,7 +2939,7 @@ find_reloads (insn, replace, ind_levels,
  			&& ! this_alternative_win[c])
  		      bad = 1;
  
@@ -47,7 +42,7 @@
  		  }
  		else
  		  {
-@@ -2953,12 +2957,11 @@ find_reloads (insn, replace, ind_levels,
+@@ -2971,12 +2975,11 @@ find_reloads (insn, replace, ind_levels,
  		   operand also had to match the same thing as this
  		   operand, we don't know how to do that.  So reject this
  		   alternative.  */
@@ -61,7 +56,7 @@
  		break;
  
  	      case 'p':
-@@ -3175,6 +3178,8 @@ find_reloads (insn, replace, ind_levels,
+@@ -3196,6 +3199,8 @@ find_reloads (insn, replace, ind_levels,
  	  this_alternative_earlyclobber[i] = earlyclobber;
  	  if (win && ! force_reload)
  	    this_alternative_win[i] = 1;
@@ -70,17 +65,17 @@
  	  else
  	    {
  	      int const_to_mem = 0;
-@@ -3276,7 +3281,8 @@ find_reloads (insn, replace, ind_levels,
- 	     Don't do this if the preferred class has only one register
+@@ -3299,7 +3304,8 @@ find_reloads (insn, replace, ind_levels,
  	     because we might otherwise exhaust the class.  */
  
+ 
 -	  if (! win && this_alternative[i] != (int) NO_REGS
 +	  if (! win && ! did_match
 +	      && this_alternative[i] != (int) NO_REGS
  	      && GET_MODE_SIZE (operand_mode[i]) <= UNITS_PER_WORD
  	      && reg_class_size[(int) preferred_class[i]] > 1)
  	    {
-@@ -3302,7 +3308,7 @@ find_reloads (insn, replace, ind_levels,
+@@ -3325,7 +3331,7 @@ find_reloads (insn, replace, ind_levels,
  
        for (i = 0; i < noperands; i++)
  	if (this_alternative_earlyclobber[i]
@@ -89,7 +84,7 @@
  	  {
  	    struct decomposition early_data;
  
-@@ -3345,6 +3351,7 @@ find_reloads (insn, replace, ind_levels,
+@@ -3368,6 +3374,7 @@ find_reloads (insn, replace, ind_levels,
  		    {
  		      losers++;
  		      this_alternative_win[j] = 0;
@@ -97,7 +92,7 @@
  		    }
  		  else
  		    break;
-@@ -3355,11 +3362,13 @@ find_reloads (insn, replace, ind_levels,
+@@ -3378,11 +3385,13 @@ find_reloads (insn, replace, ind_levels,
  	      {
  		losers++;
  		this_alternative_win[i] = 0;
@@ -112,7 +107,7 @@
  		      losers++;
  		    }
  	      }
-@@ -3378,7 +3387,8 @@ find_reloads (insn, replace, ind_levels,
+@@ -3401,7 +3410,8 @@ find_reloads (insn, replace, ind_levels,
  	    }
  	  for (i = 0; i < noperands; i++)
  	    {
@@ -122,7 +117,7 @@
  	      goal_alternative[i] = this_alternative[i];
  	      goal_alternative_offmemok[i] = this_alternative_offmemok[i];
  	      goal_alternative_matches[i] = this_alternative_matches[i];
-@@ -3406,6 +3416,7 @@ find_reloads (insn, replace, ind_levels,
+@@ -3429,6 +3439,7 @@ find_reloads (insn, replace, ind_levels,
  	    {
  	      goal_alternative[i] = this_alternative[i];
  	      goal_alternative_win[i] = this_alternative_win[i];
@@ -130,7 +125,7 @@
  	      goal_alternative_offmemok[i] = this_alternative_offmemok[i];
  	      goal_alternative_matches[i] = this_alternative_matches[i];
  	      goal_alternative_earlyclobber[i]
-@@ -3487,11 +3498,14 @@ find_reloads (insn, replace, ind_levels,
+@@ -3510,12 +3521,15 @@ find_reloads (insn, replace, ind_levels,
  
    for (i = 0; i < noperands; i++)
      goal_alternative_matched[i] = -1;
@@ -140,10 +135,10 @@
      if (! goal_alternative_win[i]
  	&& goal_alternative_matches[i] >= 0)
        goal_alternative_matched[goal_alternative_matches[i]] = i;
-+
+ 
 +  for (i = 0; i < noperands; i++)
 +    goal_alternative_win[i] |= goal_alternative_match_win[i];
- 
++
    /* If the best alternative is with operands 1 and 2 swapped,
       consider them swapped before reporting the reloads.  Update the
-
+      operand numbers of any reloads already pushed.  */

gcc-iso-not-ansi.patch:

Index: gcc-iso-not-ansi.patch
===================================================================
RCS file: /cvs/pkgs/rpms/compat-gcc-296/devel/gcc-iso-not-ansi.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gcc-iso-not-ansi.patch	15 Oct 2004 17:18:08 -0000	1.1
+++ gcc-iso-not-ansi.patch	15 Jul 2008 15:59:21 -0000	1.2
@@ -1,19 +1,6 @@
-2000-08-08  Joseph S. Myers  <jsm28 at cam.ac.uk>
-
-	* c-common.c (combine_strings, check_format_info): Refer to ISO C
-	or ISO C89 instead of ANSI C.
-	* c-decl.c (grokdeclarator, xref_tag, finish_struct,
-	build_enumerator, do_case): Likewise.
-	* c-lex.c (parse_float, yylex): Likewise.
-	* c-parse.in: Likewise.
-	* c-typeck.c (common_type, build_array_ref, build_binary_op,
-	build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
-	build_c_cast, convert_for_assignment, set_init_index,
-	set_init_label, c_expand_start_case): Likewise.
-	* toplev.c (documented_lang_options, display_help): Likewise.
-
---- gcc/c-common.c	Sun Aug  6 18:08:43 2000
-+++ gcc/c-common.c	Tue Aug  8 19:27:49 2000
+diff -up ./gcc/c-common.c.iso-not-ansi ./gcc/c-common.c
+--- ./gcc/c-common.c.iso-not-ansi	2008-07-15 10:56:30.000000000 -0400
++++ ./gcc/c-common.c	2008-07-15 10:56:30.000000000 -0400
 @@ -375,8 +375,8 @@ combine_strings (strings)
    nchars = wide_flag ? length / wchar_bytes : length;
  
@@ -184,8 +171,9 @@
  		 format_char);
  
        /* Finally. . .check type of argument against desired type!  */
---- gcc/c-decl.c	Sun Aug  6 18:08:43 2000
-+++ gcc/c-decl.c	Tue Aug  8 19:31:02 2000
+diff -up ./gcc/c-decl.c.iso-not-ansi ./gcc/c-decl.c
+--- ./gcc/c-decl.c.iso-not-ansi	2008-07-15 10:56:30.000000000 -0400
++++ ./gcc/c-decl.c	2008-07-15 10:56:30.000000000 -0400
 @@ -4005,7 +4005,7 @@ grokdeclarator (declarator, declspecs, d
  		      {
  			if (pedantic && !flag_isoc99 && ! in_system_header
@@ -313,8 +301,9 @@
        
        if (low_value == NULL_TREE)
  	success = pushcase (NULL_TREE, 0, label, &duplicate);
---- gcc/c-lex.c	Tue Aug  8 08:17:48 2000
-+++ gcc/c-lex.c	Tue Aug  8 19:32:14 2000
+diff -up ./gcc/c-lex.c.iso-not-ansi ./gcc/c-lex.c
+--- ./gcc/c-lex.c.iso-not-ansi	2000-07-24 05:04:16.000000000 -0400
++++ ./gcc/c-lex.c	2008-07-15 10:58:23.000000000 -0400
 @@ -1122,7 +1122,7 @@ parse_float (data)
  	  if (args->imag)
  	    error ("more than one `i' or `j' in numeric constant");
@@ -324,16 +313,16 @@
  	  args->imag = 1;
  	  break;
  
-@@ -1789,7 +1789,7 @@ yylex ()
- 			  error ("`Ll' and `lL' are not valid integer suffixes");
+@@ -1782,7 +1782,7 @@ yylex ()
+ 			  error ("three `l's in integer constant");
  			else if (pedantic && ! flag_isoc99
  				 && ! in_system_header && warn_long_long)
 -			  pedwarn ("ANSI C forbids long long integer constants");
 +			  pedwarn ("ISO C89 forbids long long integer constants");
  			spec_long_long = 1;
  		      }
- 		    spec_long = c;
-@@ -1799,7 +1799,7 @@ yylex ()
+ 		    spec_long = 1;
+@@ -1792,7 +1792,7 @@ yylex ()
  		    if (spec_imag)
  		      error ("more than one `i' or `j' in numeric constant");
  		    else if (pedantic)
@@ -342,7 +331,7 @@
  		    spec_imag = 1;
  		  }
  		else
-@@ -1914,7 +1914,7 @@ yylex ()
+@@ -1907,7 +1907,7 @@ yylex ()
  		  warning ("width of integer constant changes with -traditional");
  		else if (TREE_UNSIGNED (traditional_type)
  			 != TREE_UNSIGNED (ansi_type))
@@ -351,7 +340,7 @@
  		else
  		  warning ("width of integer constant may change on other systems with -traditional");
  	      }
-@@ -2018,7 +2018,7 @@ yylex ()
+@@ -2011,7 +2011,7 @@ yylex ()
  	    else if (c == '\n')
  	      {
  		if (pedantic)
@@ -360,7 +349,7 @@
  		lineno++;
  	      }
  	    else
-@@ -2175,7 +2175,7 @@ yylex ()
+@@ -2168,7 +2168,7 @@ yylex ()
  	    else if (c == '\n')
  	      {
  		if (pedantic)
@@ -369,8 +358,9 @@
  		lineno++;
  	      }
  	    else
---- gcc/c-parse.in	Mon Aug  7 09:46:01 2000
-+++ gcc/c-parse.in	Tue Aug  8 19:35:46 2000
+diff -up ./gcc/c-parse.in.iso-not-ansi ./gcc/c-parse.in
+--- ./gcc/c-parse.in.iso-not-ansi	2000-07-31 14:02:08.000000000 -0400
++++ ./gcc/c-parse.in	2008-07-15 10:56:30.000000000 -0400
 @@ -277,7 +277,7 @@ end ifobjc
  %%
  program: /* empty */
@@ -542,8 +532,9 @@
  		}
  	| parms
  		{ $$ = get_parm_info (1); }
---- gcc/c-typeck.c	Mon Jul 31 23:18:12 2000
-+++ gcc/c-typeck.c	Tue Aug  8 19:39:54 2000
+diff -up ./gcc/c-typeck.c.iso-not-ansi ./gcc/c-typeck.c
+--- ./gcc/c-typeck.c.iso-not-ansi	2008-07-15 10:56:25.000000000 -0400
++++ ./gcc/c-typeck.c	2008-07-15 10:56:30.000000000 -0400
 @@ -388,7 +388,7 @@ common_type (t1, t2)
  		    {
  		      TREE_VALUE (n) = TREE_VALUE (p2);
@@ -704,7 +695,7 @@
  				 errtype, funname, parmnum);
  	  /* Const and volatile mean something different for function types,
  	     so the usual warnings are not appropriate.  */
-@@ -5609,7 +5609,7 @@ set_init_index (first, last)
+@@ -5613,7 +5613,7 @@ set_init_index (first, last)
        else
  	{
  	  if (pedantic)
@@ -713,7 +704,7 @@
  
  	  constructor_range_end = last ? convert (bitsizetype, last) : 0;
  	}
-@@ -5649,7 +5649,7 @@ set_init_label (fieldname)
+@@ -5653,7 +5653,7 @@ set_init_label (fieldname)
      {
        constructor_fields = tail;
        if (pedantic)
@@ -722,7 +713,7 @@
      }
  }
  
-@@ -6740,7 +6740,7 @@ c_expand_start_case (exp)
+@@ -6744,7 +6744,7 @@ c_expand_start_case (exp)
  	  && ! in_system_header
  	  && (type == long_integer_type_node
  	      || type == long_unsigned_type_node))
@@ -731,9 +722,10 @@
  
        exp = default_conversion (exp);
        type = TREE_TYPE (exp);
---- gcc/toplev.c	Sun Aug  6 10:24:53 2000
-+++ gcc/toplev.c	Tue Aug  8 19:41:03 2000
-@@ -1135,7 +1135,7 @@ documented_lang_options[] =
+diff -up ./gcc/toplev.c.iso-not-ansi ./gcc/toplev.c
+--- ./gcc/toplev.c.iso-not-ansi	2000-07-31 14:02:13.000000000 -0400
++++ ./gcc/toplev.c	2008-07-15 10:59:09.000000000 -0400
+@@ -1125,7 +1125,7 @@ documented_lang_options[] =
       used here is to only describe those options which are not
       enabled by default.  */
  
@@ -742,7 +734,7 @@
    { "-fallow-single-precision",
      "Do not promote floats to double if using -traditional" },
    { "-std= ", "Determine language standard"},
-@@ -1236,7 +1236,7 @@ documented_lang_options[] =
+@@ -1226,7 +1226,7 @@ documented_lang_options[] =
    { "-Wno-unknown-pragmas", "" },
    { "-Wstrict-prototypes", "Warn about non-prototyped function decls" },
    { "-Wno-strict-prototypes", "" },
@@ -751,8 +743,8 @@
    { "-Wno-traditional", "" },
    { "-Wtrigraphs", "Warn when trigraphs are encountered" },
    { "-Wno-trigraphs", "" },
-@@ -3741,7 +3741,7 @@ display_help ()
- 
+@@ -3729,7 +3729,7 @@ display_help ()
+   
    printf (_("  -O[number]              Set optimisation level to [number]\n"));
    printf (_("  -Os                     Optimise for space rather than speed\n"));
 -  printf (_("  -pedantic               Issue warnings needed by strict compliance to ANSI C\n"));

gcc-regrename.patch:

Index: gcc-regrename.patch
===================================================================
RCS file: /cvs/pkgs/rpms/compat-gcc-296/devel/gcc-regrename.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gcc-regrename.patch	15 Oct 2004 17:18:08 -0000	1.1
+++ gcc-regrename.patch	15 Jul 2008 15:59:21 -0000	1.2
@@ -49,69 +49,10 @@
 	* regrename.c (regrename_optimize): Make control flow explicit.
 	(replace_reg_in_block): Initialize reg_use to 0.
 
---- gcc/toplev.c	2000/10/20 23:32:09	1.390
-+++ gcc/toplev.c	2000/10/27 21:56:01	1.391
-@@ -277,9 +277,9 @@ enum dump_file_index
-   DFI_lreg,
-   DFI_greg,
-   DFI_flow2,
--  DFI_ce2,
-   DFI_peephole2,
-   DFI_rnreg,
-+  DFI_ce2,
-   DFI_sched2,
-   DFI_bbro,
-   DFI_jump2,
-@@ -321,9 +321,9 @@ struct dump_file_info dump_file[DFI_MAX]
-   { "lreg",	'l', 1, 0, 0 },
-   { "greg",	'g', 1, 0, 0 },
-   { "flow2",	'w', 1, 0, 0 },
--  { "ce2",	'E', 1, 0, 0 },
-   { "peephole2", 'z', 1, 0, 0 },
-   { "rnreg",	'n', 1, 0, 0 },
-+  { "ce2",	'E', 1, 0, 0 },
-   { "sched2",	'R', 1, 0, 0 },
-   { "bbro",	'B', 1, 0, 0 },
-   { "jump2",	'J', 1, 0, 0 },
-@@ -3509,17 +3509,6 @@ rest_of_compilation (decl)
-   close_dump_file (DFI_flow2, print_rtl_with_bb, insns);
-   timevar_pop (TV_FLOW2);
- 
--  if (optimize > 0)
--    {
--      timevar_push (TV_IFCVT2);
--      open_dump_file (DFI_ce2, decl);
--
--      if_convert (1);
--
--      close_dump_file (DFI_ce2, print_rtl_with_bb, insns);
--      timevar_pop (TV_IFCVT2);
--    }
--
- #ifdef HAVE_peephole2
-   if (optimize > 0 && flag_peephole2)
-     {
-@@ -3544,6 +3533,17 @@ rest_of_compilation (decl)
-       timevar_pop (TV_RENAME_REGISTERS);
-     }
- 
-+  if (optimize > 0)
-+    {
-+      timevar_push (TV_IFCVT2);
-+      open_dump_file (DFI_ce2, decl);
-+
-+      if_convert (1);
-+
-+      close_dump_file (DFI_ce2, print_rtl_with_bb, insns);
-+      timevar_pop (TV_IFCVT2);
-+    }
-+
- #ifdef INSN_SCHEDULING
-   if (optimize > 0 && flag_schedule_insns_after_reload)
-     {
---- gcc/Makefile.in	2000/10/26 07:28:23	1.529
-+++ gcc/Makefile.in	2000/10/27 20:58:57	1.531
-@@ -1425,9 +1452,9 @@ bb-reorder.o : bb-reorder.c $(CONFIG_H) 
+diff -up gcc/Makefile.in.regrename gcc/Makefile.in
+--- gcc/Makefile.in.regrename	2008-07-15 11:21:22.000000000 -0400
++++ gcc/Makefile.in	2008-07-15 11:21:24.000000000 -0400
+@@ -1400,9 +1400,9 @@ bb-reorder.o : bb-reorder.c $(CONFIG_H) 
     insn-config.h $(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h \
     $(RECOG_H) insn-flags.h function.h except.h $(EXPR_H)
  timevar.o : timevar.c $(CONFIG_H) system.h $(TIMEVAR_H) flags.h intl.h
@@ -124,9 +65,10 @@
  ifcvt.o : ifcvt.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) \
     flags.h insn-config.h function.h $(RECOG_H) $(BASIC_BLOCK_H) $(EXPR_H) \
     output.h
---- gcc/recog.c	2000/10/26 00:30:55	1.79
-+++ gcc/recog.c	2000/10/27 20:58:57	1.80
-@@ -2272,6 +2272,7 @@ preprocess_constraints ()
+diff -up gcc/recog.c.regrename gcc/recog.c
+--- gcc/recog.c.regrename	2008-07-15 11:21:20.000000000 -0400
++++ gcc/recog.c	2008-07-15 11:21:24.000000000 -0400
+@@ -2256,6 +2256,7 @@ preprocess_constraints ()
  		  break;
  
  		case 'p':
@@ -134,9 +76,10 @@
  		  op_alt[j].class = reg_class_subunion[(int) op_alt[j].class][(int) BASE_REG_CLASS];
  		  break;
  
---- gcc/recog.h	2000/09/29 11:40:24	1.35
-+++ gcc/recog.h	2000/10/27 20:58:57	1.36
-@@ -63,6 +63,8 @@ struct operand_alternative
+diff -up gcc/recog.h.regrename gcc/recog.h
+--- gcc/recog.h.regrename	2000-07-31 14:02:12.000000000 -0400
++++ gcc/recog.h	2008-07-15 11:21:24.000000000 -0400
+@@ -61,6 +61,8 @@ struct operand_alternative
    unsigned int decmem_ok:1;
    /* Nonzero if '>' was found in the constraint string.  */
    unsigned int incmem_ok:1;
@@ -145,8 +88,9 @@
    /* Nonzero if 'X' was found in the constraint string, or if the constraint
       string for this alternative was empty.  */
    unsigned int anything_ok:1;
---- gcc/regrename.c	Mon Jun 12 09:55:37 2000
-+++ gcc/regrename.c	Wed Nov 22 04:19:34 2000
+diff -up gcc/regrename.c.regrename gcc/regrename.c
+--- gcc/regrename.c.regrename	2000-06-12 03:55:37.000000000 -0400
++++ gcc/regrename.c	2008-07-15 11:21:24.000000000 -0400
 @@ -18,713 +18,500 @@
     the Free Software Foundation, 59 Temple Place - Suite 330,
     Boston, MA 02111-1307, USA.  */
@@ -1935,3 +1879,64 @@
 -
 -  return recog_op_alt[id][alt].class;
  }
+diff -up gcc/toplev.c.regrename gcc/toplev.c
+--- gcc/toplev.c.regrename	2008-07-15 11:21:20.000000000 -0400
++++ gcc/toplev.c	2008-07-15 11:23:35.000000000 -0400
+@@ -273,9 +273,9 @@ enum dump_file_index
+   DFI_lreg,
+   DFI_greg,
+   DFI_flow2,
+-  DFI_ce2,
+   DFI_peephole2,
+   DFI_rnreg,
++  DFI_ce2,
+   DFI_sched2,
+   DFI_bbro,
+   DFI_jump2,
+@@ -316,9 +316,9 @@ struct dump_file_info dump_file[DFI_MAX]
+   { "lreg",	'l', 1, 0, 0 },
+   { "greg",	'g', 1, 0, 0 },
+   { "flow2",	'w', 1, 0, 0 },
+-  { "ce2",	'E', 1, 0, 0 },
+   { "peephole2", 'z', 1, 0, 0 },
+   { "rnreg",	'n', 1, 0, 0 },
++  { "ce2",	'E', 1, 0, 0 },
+   { "sched2",	'R', 1, 0, 0 },
+   { "bbro",	'B', 1, 0, 0 },
+   { "jump2",	'J', 1, 0, 0 },
+@@ -3440,17 +3440,6 @@ rest_of_compilation (decl)
+   close_dump_file (DFI_flow2, print_rtl_with_bb, insns);
+   timevar_pop (TV_FLOW2);
+ 
+-  if (optimize > 0)
+-    {
+-      timevar_push (TV_IFCVT2);
+-      open_dump_file (DFI_ce2, decl);
+-
+-      if_convert (1);
+-
+-      close_dump_file (DFI_ce2, print_rtl_with_bb, insns);
+-      timevar_pop (TV_IFCVT2);
+-    }
+-
+ #ifdef HAVE_peephole2
+   if (optimize > 0 && flag_peephole2)
+     {
+@@ -3475,6 +3464,17 @@ rest_of_compilation (decl)
+       timevar_pop (TV_RENAME_REGISTERS);
+     }    
+ 
++  if (optimize > 0)
++    {
++      timevar_push (TV_IFCVT2);
++      open_dump_file (DFI_ce2, decl);
++
++      if_convert (1);
++
++      close_dump_file (DFI_ce2, print_rtl_with_bb, insns);
++      timevar_pop (TV_IFCVT2);
++    }
++
+ #ifdef INSN_SCHEDULING
+   if (optimize > 0 && flag_schedule_insns_after_reload)
+     {

gcc-segv3.patch:

Index: gcc-segv3.patch
===================================================================
RCS file: /cvs/pkgs/rpms/compat-gcc-296/devel/gcc-segv3.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gcc-segv3.patch	15 Oct 2004 17:18:08 -0000	1.1
+++ gcc-segv3.patch	15 Jul 2008 15:59:21 -0000	1.2
@@ -9,9 +9,10 @@
 
 	* gcc.dg/noncompile/init-3.c: New test.
 
---- gcc/c-decl.c	2000/10/17 09:34:20	1.168
-+++ gcc/c-decl.c	2000/10/20 00:58:35	1.170
-@@ -3515,7 +3506,12 @@ start_decl (declarator, declspecs, initi
+diff -up ./gcc/c-decl.c.segv3 ./gcc/c-decl.c
+--- ./gcc/c-decl.c.segv3	2008-07-15 11:03:47.000000000 -0400
++++ ./gcc/c-decl.c	2008-07-15 11:07:41.000000000 -0400
+@@ -3465,7 +3465,12 @@ start_decl (declarator, declspecs, initi
        default:
  	/* Don't allow initializations for incomplete types
  	   except for arrays which might be completed by the initialization.  */
@@ -25,17 +26,17 @@
  	  {
  	    /* A complete type is ok if size is fixed.  */
  
-@@ -3593,7 +3589,8 @@ start_decl (declarator, declspecs, initi
-       && DECL_RTL (tem) == 0
-       && !DECL_CONTEXT (tem))
+@@ -3541,7 +3546,8 @@ start_decl (declarator, declspecs, initi
+ 	 (which may or may not happen).  */
+       && DECL_RTL (tem) == 0)
      {
 -      if (COMPLETE_TYPE_P (TREE_TYPE (tem)))
 +      if (TREE_TYPE (tem) != error_mark_node
-+	  && COMPLETE_TYPE_P (TREE_TYPE (tem)))
++         && COMPLETE_TYPE_P (TREE_TYPE (decl)))
  	expand_decl (tem);
        else if (TREE_CODE (TREE_TYPE (tem)) == ARRAY_TYPE
  	       && DECL_INITIAL (tem) != 0)
-@@ -3688,10 +3685,13 @@ finish_decl (decl, init, asmspec_tree)
+@@ -3644,10 +3650,13 @@ finish_decl (decl, init, asmspec_tree)
  
    if (TREE_CODE (decl) == VAR_DECL)
      {
@@ -50,8 +51,9 @@
  	  && (TREE_STATIC (decl)
  	      ?
  		/* A static variable with an incomplete type
---- gcc/testsuite/gcc.dg/noncompile/init-3.c.jj	Thu Aug 24 11:00:32 2000
-+++ gcc/testsuite/gcc.dg/noncompile/init-3.c	Fri Oct 20 23:37:57 2000
+diff -up /dev/null ./gcc/testsuite/gcc.dg/noncompile/init-3.c
+--- /dev/null	2008-07-14 09:17:49.235004637 -0400
++++ ./gcc/testsuite/gcc.dg/noncompile/init-3.c	2008-07-15 11:03:47.000000000 -0400
 @@ -0,0 +1,4 @@
 +void die(void)
 +{




More information about the fedora-extras-commits mailing list