diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0256-config-rx-rx.h-HAVE_PRE_DECREMENT-Fix-typo.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0256-config-rx-rx.h-HAVE_PRE_DECREMENT-Fix-typo.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0256-config-rx-rx.h-HAVE_PRE_DECREMENT-Fix-typo.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0256-config-rx-rx.h-HAVE_PRE_DECREMENT-Fix-typo.patch new file mode 100644 index 0000000000..175696e98e --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0256-config-rx-rx.h-HAVE_PRE_DECREMENT-Fix-typo.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | From 664634ca66bf069826734420f6324342bbb5e541 Mon Sep 17 00:00:00 2001 | ||
2 | From: nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Thu, 12 May 2011 09:44:14 +0000 | ||
4 | Subject: [PATCH] * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo. | ||
5 | * config/rx/rx.c (rx_is_legitimate_constant): Use gcc_unreachable | ||
6 | instead of abort. | ||
7 | (rx_align_for_label): Test label before extracting its number of | ||
8 | uses. | ||
9 | (rx_max_skip_for_label): Ignore debug insns. | ||
10 | |||
11 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173694 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
12 | |||
13 | index 6fd1153..e0bd176 100644 | ||
14 | --- a/gcc/config/rx/rx.c | ||
15 | +++ b/gcc/config/rx/rx.c | ||
16 | @@ -2451,8 +2451,7 @@ rx_is_legitimate_constant (rtx x) | ||
17 | |||
18 | default: | ||
19 | /* FIXME: Can this ever happen ? */ | ||
20 | - abort (); | ||
21 | - return false; | ||
22 | + gcc_unreachable (); | ||
23 | } | ||
24 | break; | ||
25 | |||
26 | @@ -2758,7 +2757,7 @@ rx_align_for_label (rtx lab, int uses_threshold) | ||
27 | because the delay due to the inserted NOPs would be greater than the delay | ||
28 | due to the misaligned branch. If uses_threshold is zero then the alignment | ||
29 | is always useful. */ | ||
30 | - if (LABEL_NUSES (lab) < uses_threshold) | ||
31 | + if (LABEL_P (lab) && LABEL_NUSES (lab) < uses_threshold) | ||
32 | return 0; | ||
33 | |||
34 | return optimize_size ? 1 : 3; | ||
35 | @@ -2775,7 +2774,7 @@ rx_max_skip_for_label (rtx lab) | ||
36 | op = lab; | ||
37 | do | ||
38 | { | ||
39 | - op = next_nonnote_insn (op); | ||
40 | + op = next_nonnote_nondebug_insn (op); | ||
41 | } | ||
42 | while (op && (LABEL_P (op) | ||
43 | || (INSN_P (op) && GET_CODE (PATTERN (op)) == USE))); | ||
44 | diff --git a/gcc/config/rx/rx.h b/gcc/config/rx/rx.h | ||
45 | index 4a88a5b..89f2e2c 100644 | ||
46 | --- a/gcc/config/rx/rx.h | ||
47 | +++ b/gcc/config/rx/rx.h | ||
48 | @@ -155,7 +155,7 @@ extern enum rx_cpu_types rx_cpu_type; | ||
49 | |||
50 | #define LEGITIMATE_CONSTANT_P(X) rx_is_legitimate_constant (X) | ||
51 | |||
52 | -#define HAVE_PRE_DECCREMENT 1 | ||
53 | +#define HAVE_PRE_DECREMENT 1 | ||
54 | #define HAVE_POST_INCREMENT 1 | ||
55 | |||
56 | #define MOVE_RATIO(SPEED) ((SPEED) ? 4 : 2) | ||
57 | -- | ||
58 | 1.7.0.4 | ||
59 | |||