diff options
author | Mark Loeser <halcy0n@gentoo.org> | 2006-03-01 23:59:20 +0000 |
---|---|---|
committer | Mark Loeser <halcy0n@gentoo.org> | 2006-03-01 23:59:20 +0000 |
commit | 2ac61e13933785903b629aa7c4a98cc81ee479c9 (patch) | |
tree | 7982c6b303218fbb99998f2228bfca096d90fbf6 /4.1.0 | |
parent | Initial commit of the 4.1.0 patchset (diff) | |
download | gcc-patches-2ac61e13933785903b629aa7c4a98cc81ee479c9.tar.gz gcc-patches-2ac61e13933785903b629aa7c4a98cc81ee479c9.tar.bz2 gcc-patches-2ac61e13933785903b629aa7c4a98cc81ee479c9.zip |
Fix trampoline patch's warning() call, and remove old patch that doesn't work anymore
Diffstat (limited to '4.1.0')
-rw-r--r-- | 4.1.0/gentoo/00_all_gcc-trampolinewarn.patch | 2 | ||||
-rw-r--r-- | 4.1.0/gentoo/05_all_gcc4-bitfield-ref-vec.patch | 36 |
2 files changed, 1 insertions, 37 deletions
diff --git a/4.1.0/gentoo/00_all_gcc-trampolinewarn.patch b/4.1.0/gentoo/00_all_gcc-trampolinewarn.patch index 96db820..35be719 100644 --- a/4.1.0/gentoo/00_all_gcc-trampolinewarn.patch +++ b/4.1.0/gentoo/00_all_gcc-trampolinewarn.patch @@ -62,7 +62,7 @@ INITIALIZE_TRAMPOLINE (r_tramp, r_func, r_chain); + + if (warn_trampolines) -+ warning ("generating trampoline in object (requires executable stack)"); ++ warning (OPT_Wtrampolines, "generating trampoline in object (requires executable stack)"); return const0_rtx; } diff --git a/4.1.0/gentoo/05_all_gcc4-bitfield-ref-vec.patch b/4.1.0/gentoo/05_all_gcc4-bitfield-ref-vec.patch deleted file mode 100644 index c9375a3..0000000 --- a/4.1.0/gentoo/05_all_gcc4-bitfield-ref-vec.patch +++ /dev/null @@ -1,36 +0,0 @@ -2005-05-31 Jakub Jelinek <jakub@redhat.com> - - * fold-const.c (fold): Optimize BIT_FIELD_REF of VECTOR_CST. - ---- gcc/fold-const.c.jj 2005-05-16 23:31:03.000000000 +0200 -+++ gcc/fold-const.c 2005-05-31 19:11:51.000000000 +0200 -@@ -9860,6 +9860,29 @@ fold (tree expr) - } - return t; - -+ case BIT_FIELD_REF: -+ if (TREE_CODE (arg0) == VECTOR_CST -+ && type == TREE_TYPE (TREE_TYPE (arg0)) -+ && host_integerp (arg1, 1) -+ && host_integerp (TREE_OPERAND (t, 2), 1)) -+ { -+ unsigned HOST_WIDE_INT width = tree_low_cst (arg1, 1); -+ unsigned HOST_WIDE_INT idx = tree_low_cst (TREE_OPERAND (t, 2), 1); -+ -+ if (width != 0 -+ && simple_cst_equal (arg1, TYPE_SIZE (type)) == 1 -+ && (idx % width) == 0 -+ && (idx = idx / width) -+ < TYPE_VECTOR_SUBPARTS (TREE_TYPE (arg0))) -+ { -+ tree elements = TREE_VECTOR_CST_ELTS (arg0); -+ while (idx-- > 0) -+ elements = TREE_CHAIN (elements); -+ return TREE_VALUE (elements); -+ } -+ } -+ return t; -+ - default: - return t; - } /* switch (code) */ |