Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gcc/4.5.3/gentoo: 77_all_pr51106_4.5.4_ice-move_insn.patch README.history
Date: Mon, 20 Feb 2012 05:19:55
Message-Id: 20120220051946.5D2E22004B@flycatcher.gentoo.org
1 dirtyepic 12/02/20 05:19:46
2
3 Modified: README.history
4 Added: 77_all_pr51106_4.5.4_ice-move_insn.patch
5 Log:
6 Add patch for bug #388835.
7
8 Revision Changes Path
9 1.3 src/patchsets/gcc/4.5.3/gentoo/README.history
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.5.3/gentoo/README.history?rev=1.3&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.5.3/gentoo/README.history?rev=1.3&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.5.3/gentoo/README.history?r1=1.2&r2=1.3
14
15 Index: README.history
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.5.3/gentoo/README.history,v
18 retrieving revision 1.2
19 retrieving revision 1.3
20 diff -u -r1.2 -r1.3
21 --- README.history 6 Dec 2011 19:54:40 -0000 1.2
22 +++ README.history 20 Feb 2012 05:19:46 -0000 1.3
23 @@ -1,3 +1,6 @@
24 +1.1 20 Feb 2012
25 + + 77_all_pr51106_4.5.4_ice-move_insn.patch
26 +
27 1.0 05 Aug 2011
28 + 00_all_gcc-4.1-alpha-mieee-default.patch
29 + 01_all_gcc-4.1-alpha-asm-mcpu.patch
30
31
32
33 1.1 src/patchsets/gcc/4.5.3/gentoo/77_all_pr51106_4.5.4_ice-move_insn.patch
34
35 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.5.3/gentoo/77_all_pr51106_4.5.4_ice-move_insn.patch?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.5.3/gentoo/77_all_pr51106_4.5.4_ice-move_insn.patch?rev=1.1&content-type=text/plain
37
38 Index: 77_all_pr51106_4.5.4_ice-move_insn.patch
39 ===================================================================
40 ICE in move_insn, at haifa-sched.c
41
42 https://bugs.gentoo.org/388835
43 http://gcc.gnu.org/PR51106
44
45 --- a/gcc/function.c
46 +++ b/gcc/function.c
47 @@ -1747,7 +1747,7 @@ instantiate_virtual_regs_in_insn (rtx insn)
48 if (!check_asm_operands (PATTERN (insn)))
49 {
50 error_for_asm (insn, "impossible constraint in %<asm%>");
51 - delete_insn (insn);
52 + delete_insn_and_edges (insn);
53 }
54 }
55 else
56 --- /dev/null
57 +++ b/gcc/testsuite/gcc.dg/torture/pr51106-1.c
58 @@ -0,0 +1,14 @@
59 +/* PR target/51106 */
60 +/* { dg-do "compile" } */
61 +/* { dg-skip-if "RTL error" { "*-*-*" } { "-fno-fat-lto-objects" } { "" } } */
62 +
63 +int
64 +foo (int x)
65 +{
66 + asm goto ("" : : "i" (x) : : lab); /* { dg-error "impossible constraint" } */
67 + return 1;
68 +lab:
69 + return 0;
70 +}
71 +
72 +/* { dg-warning "probably doesn.t match constraints" "" { target *-*-* } 8 } */
73 --- /dev/null
74 +++ b/gcc/testsuite/gcc.dg/torture/pr51106-2.c
75 @@ -0,0 +1,14 @@
76 +/* PR target/51106 */
77 +/* { dg-do "compile" } */
78 +/* { dg-skip-if "RTL error" { "*-*-*" } { "-fno-fat-lto-objects" } { "" } } */
79 +
80 +int
81 +bar (int x)
82 +{
83 + asm goto ("" : : "i" (x) : : lab); /* { dg-error "impossible constraint" } */
84 + __builtin_unreachable ();
85 +lab:
86 + return 0;
87 +}
88 +
89 +/* { dg-warning "probably doesn.t match constraints" "" { target *-*-* } 8 } */