[oe-commits] org.oe.dev gcc: Add pr34130.patch for missing versions.

likewise commit openembedded-commits at lists.openembedded.org
Mon Nov 26 21:45:15 UTC 2007


gcc: Add pr34130.patch for missing versions.

Author: likewise at openembedded.org
Branch: org.openembedded.dev
Revision: fd549036e39255b6f9ea199f6ca4fa98085c419d
ViewMTN: http://monotone.openembedded.org/revision/info/fd549036e39255b6f9ea199f6ca4fa98085c419d
Files:
1
packages/gcc/gcc-4.1.0/pr34130.patch
packages/gcc/gcc-4.1.1/pr34130.patch
Diffs:

#
# mt diff -rd5059e99123ac26efa72358d1cdbbb2776399a25 -rfd549036e39255b6f9ea199f6ca4fa98085c419d
#
# 
# 
# add_file "packages/gcc/gcc-4.1.0/pr34130.patch"
#  content [23564cf74db7c5330d103f2b44e167ad2ef97eba]
# 
# add_file "packages/gcc/gcc-4.1.1/pr34130.patch"
#  content [23564cf74db7c5330d103f2b44e167ad2ef97eba]
# 
============================================================
--- packages/gcc/gcc-4.1.0/pr34130.patch	23564cf74db7c5330d103f2b44e167ad2ef97eba
+++ packages/gcc/gcc-4.1.0/pr34130.patch	23564cf74db7c5330d103f2b44e167ad2ef97eba
@@ -0,0 +1,16 @@
+Index: gcc-4.1.2/gcc/fold-const.c
+===================================================================
+--- gcc-4.1.2.orig/gcc/fold-const.c	2007-11-21 18:53:42.000000000 +0100
++++ gcc-4.1.2/gcc/fold-const.c	2007-11-21 18:56:26.000000000 +0100
+@@ -5339,7 +5339,10 @@
+             }
+           break;
+         }
+-      /* FALLTHROUGH */
++   /* If the constant is negative, we cannot simplify this.  */
++   if (tree_int_cst_sgn (c) == -1)
++     break;
++   /* FALLTHROUGH */
+     case NEGATE_EXPR:
+       if ((t1 = extract_muldiv (op0, c, code, wide_type)) != 0)
+ 	return fold_build1 (tcode, ctype, fold_convert (ctype, t1));
============================================================
--- packages/gcc/gcc-4.1.1/pr34130.patch	23564cf74db7c5330d103f2b44e167ad2ef97eba
+++ packages/gcc/gcc-4.1.1/pr34130.patch	23564cf74db7c5330d103f2b44e167ad2ef97eba
@@ -0,0 +1,16 @@
+Index: gcc-4.1.2/gcc/fold-const.c
+===================================================================
+--- gcc-4.1.2.orig/gcc/fold-const.c	2007-11-21 18:53:42.000000000 +0100
++++ gcc-4.1.2/gcc/fold-const.c	2007-11-21 18:56:26.000000000 +0100
+@@ -5339,7 +5339,10 @@
+             }
+           break;
+         }
+-      /* FALLTHROUGH */
++   /* If the constant is negative, we cannot simplify this.  */
++   if (tree_int_cst_sgn (c) == -1)
++     break;
++   /* FALLTHROUGH */
+     case NEGATE_EXPR:
+       if ((t1 = extract_muldiv (op0, c, code, wide_type)) != 0)
+ 	return fold_build1 (tcode, ctype, fold_convert (ctype, t1));






More information about the Openembedded-commits mailing list