Initial commit: Uploaded everything from abs/core
[arch-rock.git] / devel / gcc / gcc-r109581.dpatch
blob6787d193178df1494c1596177645ab6594b4f3b6
1 #! /bin/sh -e
3 # DP: Backport r109581 from the trunk
5 dir=
6 if [ $# -eq 3 -a "$2" = '-d' ]; then
7 pdir="-d $3"
8 dir="$3/"
9 elif [ $# -ne 1 ]; then
10 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
11 exit 1
13 case "$1" in
14 -patch)
15 patch $pdir -f --no-backup-if-mismatch -p0 < $0
17 -unpatch)
18 patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
19 #rm ${dir}gcc/configure
22 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
23 exit 1
24 esac
25 exit 0
27 2006-01-19 Jan Hubicka <jh@suse.cz>
29 * i386.h (TARGET_DECOMPOSE_LEA): Kill.
30 * i386.c (x86_decompose_lea): Kill.
31 (ix86_rtx_costs): Kill.
33 Index: gcc/config/i386/i386.h
34 ===================================================================
35 --- gcc/config/i386/i386.h (revision 109569)
36 +++ gcc/config/i386/i386.h (revision 109581)
37 @@ -209,7 +209,6 @@
38 #define TARGET_MEMORY_MISMATCH_STALL (x86_memory_mismatch_stall & TUNEMASK)
39 #define TARGET_PROLOGUE_USING_MOVE (x86_prologue_using_move & TUNEMASK)
40 #define TARGET_EPILOGUE_USING_MOVE (x86_epilogue_using_move & TUNEMASK)
41 -#define TARGET_DECOMPOSE_LEA (x86_decompose_lea & TUNEMASK)
42 #define TARGET_PREFETCH_SSE (x86_prefetch_sse)
43 #define TARGET_SHIFT1 (x86_shift1 & TUNEMASK)
44 #define TARGET_USE_FFREEP (x86_use_ffreep & TUNEMASK)
45 Index: gcc/config/i386/i386.c
46 ===================================================================
47 --- gcc/config/i386/i386.c (revision 109569)
48 +++ gcc/config/i386/i386.c (revision 109581)
49 @@ -640,7 +640,6 @@
50 const int x86_accumulate_outgoing_args = m_ATHLON_K8 | m_PENT4 | m_NOCONA | m_PPRO;
51 const int x86_prologue_using_move = m_ATHLON_K8 | m_PPRO;
52 const int x86_epilogue_using_move = m_ATHLON_K8 | m_PPRO;
53 -const int x86_decompose_lea = m_PENT4 | m_NOCONA;
54 const int x86_shift1 = ~m_486;
55 const int x86_arch_always_fancy_math_387 = m_PENT | m_PPRO | m_ATHLON_K8 | m_PENT4 | m_NOCONA;
56 const int x86_sse_partial_reg_dependency = m_PENT4 | m_NOCONA | m_PPRO;
57 @@ -16673,7 +16673,6 @@
58 return false;
60 if ((value == 2 || value == 3)
61 - && !TARGET_DECOMPOSE_LEA
62 && ix86_cost->lea <= ix86_cost->shift_const)
64 *total = ix86_cost->lea;