Merge lp:~ams-codesourcery/gcc-linaro/merge-fsf-4.5.3 into lp:gcc-linaro/4.5
- merge-fsf-4.5.3
- Merge into 4.5
Status: | Merged |
---|---|
Approved by: | Ulrich Weigand |
Approved revision: | no longer in the source branch. |
Merged at revision: | 99505 |
Proposed branch: | lp:~ams-codesourcery/gcc-linaro/merge-fsf-4.5.3 |
Merge into: | lp:gcc-linaro/4.5 |
Diff against target: |
4828 lines (+2513/-342) 140 files modified
ChangeLog (+4/-0) ChangeLog.linaro (+4/-0) boehm-gc/ChangeLog (+4/-0) config/ChangeLog (+4/-0) contrib/ChangeLog (+4/-0) contrib/reghunt/ChangeLog (+4/-0) contrib/regression/ChangeLog (+4/-0) fixincludes/ChangeLog (+4/-0) gcc/ChangeLog (+394/-0) gcc/DATESTAMP (+1/-1) gcc/DEV-PHASE (+0/-1) gcc/ada/ChangeLog (+4/-0) gcc/alias.c (+8/-0) gcc/c-common.c (+1/-0) gcc/c-lex.c (+9/-2) gcc/c-ppoutput.c (+6/-1) gcc/cfgloopmanip.c (+13/-4) gcc/cgraphunit.c (+4/-43) gcc/config/alpha/osf.h (+5/-1) gcc/config/i386/predicates.md (+1/-6) gcc/config/i386/sse.md (+66/-27) gcc/config/pa/pa.c (+23/-15) gcc/config/pa/pa.h (+1/-0) gcc/config/pa/pa32-regs.h (+1/-0) gcc/config/pa/pa64-regs.h (+2/-1) gcc/config/rx/rx.md (+9/-0) gcc/cp/ChangeLog (+47/-0) gcc/cp/call.c (+6/-7) gcc/cp/cp-tree.h (+1/-1) gcc/cp/cvt.c (+1/-3) gcc/cp/decl.c (+13/-0) gcc/cp/decl2.c (+10/-4) gcc/cp/init.c (+47/-9) gcc/cp/parser.c (+6/-0) gcc/cp/search.c (+2/-8) gcc/cp/typeck.c (+5/-1) gcc/doc/sourcebuild.texi (+4/-1) gcc/dse.c (+3/-3) gcc/dwarf2out.c (+2/-2) gcc/fold-const.c (+12/-2) gcc/fortran/ChangeLog (+4/-0) gcc/gcov-io.c (+7/-2) gcc/gimplify.c (+2/-1) gcc/haifa-sched.c (+2/-0) gcc/ipa-inline.c (+7/-3) gcc/java/ChangeLog (+4/-0) gcc/lto/ChangeLog (+4/-0) gcc/objc/ChangeLog (+4/-0) gcc/objcp/ChangeLog (+4/-0) gcc/omp-low.c (+12/-1) gcc/po/ChangeLog (+4/-0) gcc/reload1.c (+12/-28) gcc/rtl.h (+1/-0) gcc/sched-vis.c (+1/-1) gcc/sel-sched-ir.c (+153/-113) gcc/sel-sched-ir.h (+1/-4) gcc/sel-sched.c (+55/-26) gcc/simplify-rtx.c (+6/-2) gcc/testsuite/ChangeLog (+227/-0) gcc/testsuite/c-c++-common/raw-string-11.c (+13/-0) gcc/testsuite/g++.dg/conversion/cast2.C (+0/-11) gcc/testsuite/g++.dg/conversion/cast3.C (+14/-0) gcc/testsuite/g++.dg/conversion/cond4.C (+31/-0) gcc/testsuite/g++.dg/ext/attrib41.C (+19/-0) gcc/testsuite/g++.dg/ext/complex7.C (+6/-0) gcc/testsuite/g++.dg/gomp/pr47963.C (+11/-0) gcc/testsuite/g++.dg/inherit/virtual8.C (+48/-0) gcc/testsuite/g++.dg/lookup/koenig13.C (+16/-0) gcc/testsuite/g++.dg/opt/pr46640.C (+44/-0) gcc/testsuite/g++.dg/opt/pr46649.C (+9/-0) gcc/testsuite/g++.dg/opt/pr47036.C (+10/-0) gcc/testsuite/g++.dg/template/operator11.C (+25/-0) gcc/testsuite/g++.dg/torture/pr46364.C (+20/-0) gcc/testsuite/g++.dg/torture/pr47290.C (+19/-0) gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog (+4/-0) gcc/testsuite/gcc.dg/attr-alias-5.c (+1/-0) gcc/testsuite/gcc.dg/dfp/pr48204.c (+10/-0) gcc/testsuite/gcc.dg/gomp/pr47963.c (+11/-0) gcc/testsuite/gcc.dg/guality/pr36977.c (+32/-0) gcc/testsuite/gcc.dg/guality/pr48466.c (+41/-0) gcc/testsuite/gcc.dg/pr45352-1.c (+13/-0) gcc/testsuite/gcc.dg/pr45352-2.c (+17/-0) gcc/testsuite/gcc.dg/pr45352-3.c (+16/-0) gcc/testsuite/gcc.dg/pr45352.c (+24/-0) gcc/testsuite/gcc.dg/pr45570.c (+28/-0) gcc/testsuite/gcc.dg/pr45652.c (+39/-0) gcc/testsuite/gcc.dg/pr46521.c (+20/-0) gcc/testsuite/gcc.dg/pr46522.c (+33/-0) gcc/testsuite/gcc.dg/pr46585.c (+11/-0) gcc/testsuite/gcc.dg/pr46875.c (+27/-0) gcc/testsuite/gcc.dg/pr47391.c (+22/-0) gcc/testsuite/gcc.dg/pr47899.c (+26/-0) gcc/testsuite/gcc.dg/pr48141.c (+17/-0) gcc/testsuite/gcc.dg/pr48144.c (+16/-0) gcc/testsuite/gcc.dg/torture/pr47473.c (+14/-0) gcc/testsuite/gcc.dg/tree-prof/pr45354.c (+43/-0) gcc/testsuite/gcc.dg/ucnid-10.c (+1/-0) gcc/testsuite/gcc.dg/ucnid-13.c (+1/-0) gcc/testsuite/gcc.dg/ucnid-7.c (+1/-0) gcc/testsuite/gcc.dg/ucnid-8.c (+2/-1) gcc/testsuite/gcc.target/i386/avx-vinsertps-3.c (+8/-0) gcc/testsuite/gcc.target/i386/avx-vinsertps-4.c (+8/-0) gcc/testsuite/gcc.target/i386/pr45352-1.c (+19/-0) gcc/testsuite/gcc.target/i386/pr45352-2.c (+109/-0) gcc/testsuite/gcc.target/i386/pr45352.c (+25/-0) gcc/testsuite/gcc.target/i386/pr47809.c (+13/-0) gcc/testsuite/gcc.target/i386/sse4_1-insertps-3.c (+5/-0) gcc/testsuite/gcc.target/i386/sse4_1-insertps-4.c (+92/-0) gcc/testsuite/gcc.target/ia64/pr43603.c (+39/-0) gcc/testsuite/gfortran.dg/gomp/pr48117.f90 (+11/-0) gcc/testsuite/lib/target-supports-dg.exp (+11/-2) gcc/testsuite/lib/target-supports.exp (+11/-0) gcc/tree-eh.c (+38/-2) gcc/tree-ssa-ccp.c (+1/-1) gcc/tree.c (+4/-0) gnattools/ChangeLog (+4/-0) include/ChangeLog (+4/-0) intl/ChangeLog (+4/-0) libada/ChangeLog (+4/-0) libcpp/ChangeLog (+14/-0) libcpp/lex.c (+3/-1) libcpp/po/ChangeLog (+4/-0) libdecnumber/ChangeLog (+4/-0) libffi/ChangeLog (+4/-0) libgcc/ChangeLog (+4/-0) libgcc/config/libbid/ChangeLog (+4/-0) libgfortran/ChangeLog (+4/-0) libgomp/ChangeLog (+4/-0) libiberty/ChangeLog (+4/-0) libjava/ChangeLog (+9/-0) libjava/classpath/ChangeLog (+4/-0) libjava/libltdl/ChangeLog (+4/-0) libjava/testsuite/libjava.jni/jni.exp (+5/-0) libmudflap/ChangeLog (+4/-0) libobjc/ChangeLog (+4/-0) libssp/ChangeLog (+4/-0) libstdc++-v3/ChangeLog (+4/-0) lto-plugin/ChangeLog (+4/-0) maintainer-scripts/ChangeLog (+4/-0) zlib/ChangeLog (+4/-0) |
To merge this branch: | bzr merge lp:~ams-codesourcery/gcc-linaro/merge-fsf-4.5.3 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ulrich Weigand (community) | Approve | ||
Review via email:
|
Commit message
Description of the change
Merge from FSF GCC 4.5.3 release.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Linaro Toolchain Builder (cbuild) wrote : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Linaro Toolchain Builder (cbuild) wrote : | # |
cbuild successfully built this on i686-lucid-
The build results are available at:
http://
The test suite results changed compared to the branch point lp:gcc-linaro+bzr99502:
+PASS: c-c++-common/
+PASS: c-c++-common/
-PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+UNSUPPORTED: gcc.dg/
+UNSUPPORTED: gcc.dg/
...and 122 more
The full testsuite results are at:
http://
cbuild-checked: i686-lucid-
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Linaro Toolchain Builder (cbuild) wrote : | # |
cbuild successfully built this on x86_64-
The build results are available at:
http://
The test suite results changed compared to the branch point lp:gcc-linaro+bzr99502:
+PASS: c-c++-common/
+PASS: c-c++-common/
-PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+UNSUPPORTED: gcc.dg/
+UNSUPPORTED: gcc.dg/
...and 121 more
The full testsuite results are at:
http://
cbuild-checked: x86_64-
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Linaro Toolchain Builder (cbuild) wrote : | # |
cbuild successfully built this on armv7l-
The build results are available at:
http://
The test suite results changed compared to the branch point lp:gcc-linaro+bzr99502:
+PASS: c-c++-common/
+PASS: c-c++-common/
-PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+PASS: gcc.dg/
+UNSUPPORTED: gcc.dg/
+UNSUPPORTED: gcc.dg/
+UNSUPPORTED: gcc.dg/
...and 115 more
The full testsuite results are at:
http://
cbuild-checked: armv7l-
Preview Diff
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2011-01-25 15:49:54 +0000 | |||
3 | +++ ChangeLog 2011-04-28 16:44:05 +0000 | |||
4 | @@ -1,3 +1,7 @@ | |||
5 | 1 | 2011-04-28 Release Manager | ||
6 | 2 | |||
7 | 3 | * GCC 4.5.3 released. | ||
8 | 4 | |||
9 | 1 | 2011-01-25 Richard Guenther <rguenther@suse.de> | 5 | 2011-01-25 Richard Guenther <rguenther@suse.de> |
10 | 2 | 6 | ||
11 | 3 | Backport from mainline | 7 | Backport from mainline |
12 | 4 | 8 | ||
13 | === modified file 'ChangeLog.linaro' | |||
14 | --- ChangeLog.linaro 2011-04-26 09:24:25 +0000 | |||
15 | +++ ChangeLog.linaro 2011-04-28 16:44:05 +0000 | |||
16 | @@ -1,3 +1,7 @@ | |||
17 | 1 | 2011-04-28 Andrew Stubbs <ams@codesourcery.com> | ||
18 | 2 | |||
19 | 3 | Merge from FSF 4.5 branch r173113 (4.5.3 release). | ||
20 | 4 | |||
21 | 1 | 2011-04-26 Chung-Lin Tang <cltang@codesourcery.com> | 5 | 2011-04-26 Chung-Lin Tang <cltang@codesourcery.com> |
22 | 2 | 6 | ||
23 | 3 | Backport from mainline: | 7 | Backport from mainline: |
24 | 4 | 8 | ||
25 | === modified file 'boehm-gc/ChangeLog' | |||
26 | --- boehm-gc/ChangeLog 2010-12-16 12:30:55 +0000 | |||
27 | +++ boehm-gc/ChangeLog 2011-04-28 16:44:05 +0000 | |||
28 | @@ -1,3 +1,7 @@ | |||
29 | 1 | 2011-04-28 Release Manager | ||
30 | 2 | |||
31 | 3 | * GCC 4.5.3 released. | ||
32 | 4 | |||
33 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
34 | 2 | 6 | ||
35 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
36 | 4 | 8 | ||
37 | === modified file 'config/ChangeLog' | |||
38 | --- config/ChangeLog 2010-12-16 12:32:12 +0000 | |||
39 | +++ config/ChangeLog 2011-04-28 16:44:05 +0000 | |||
40 | @@ -1,3 +1,7 @@ | |||
41 | 1 | 2011-04-28 Release Manager | ||
42 | 2 | |||
43 | 3 | * GCC 4.5.3 released. | ||
44 | 4 | |||
45 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
46 | 2 | 6 | ||
47 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
48 | 4 | 8 | ||
49 | === modified file 'contrib/ChangeLog' | |||
50 | --- contrib/ChangeLog 2010-12-16 12:29:50 +0000 | |||
51 | +++ contrib/ChangeLog 2011-04-28 16:44:05 +0000 | |||
52 | @@ -1,3 +1,7 @@ | |||
53 | 1 | 2011-04-28 Release Manager | ||
54 | 2 | |||
55 | 3 | * GCC 4.5.3 released. | ||
56 | 4 | |||
57 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
58 | 2 | 6 | ||
59 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
60 | 4 | 8 | ||
61 | === modified file 'contrib/reghunt/ChangeLog' | |||
62 | --- contrib/reghunt/ChangeLog 2010-12-16 12:29:55 +0000 | |||
63 | +++ contrib/reghunt/ChangeLog 2011-04-28 16:44:05 +0000 | |||
64 | @@ -1,3 +1,7 @@ | |||
65 | 1 | 2011-04-28 Release Manager | ||
66 | 2 | |||
67 | 3 | * GCC 4.5.3 released. | ||
68 | 4 | |||
69 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
70 | 2 | 6 | ||
71 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
72 | 4 | 8 | ||
73 | === modified file 'contrib/regression/ChangeLog' | |||
74 | --- contrib/regression/ChangeLog 2010-12-16 12:29:45 +0000 | |||
75 | +++ contrib/regression/ChangeLog 2011-04-28 16:44:05 +0000 | |||
76 | @@ -1,3 +1,7 @@ | |||
77 | 1 | 2011-04-28 Release Manager | ||
78 | 2 | |||
79 | 3 | * GCC 4.5.3 released. | ||
80 | 4 | |||
81 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
82 | 2 | 6 | ||
83 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
84 | 4 | 8 | ||
85 | === modified file 'fixincludes/ChangeLog' | |||
86 | --- fixincludes/ChangeLog 2010-12-16 12:30:44 +0000 | |||
87 | +++ fixincludes/ChangeLog 2011-04-28 16:44:05 +0000 | |||
88 | @@ -1,3 +1,7 @@ | |||
89 | 1 | 2011-04-28 Release Manager | ||
90 | 2 | |||
91 | 3 | * GCC 4.5.3 released. | ||
92 | 4 | |||
93 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
94 | 2 | 6 | ||
95 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
96 | 4 | 8 | ||
97 | === modified file 'gcc/ChangeLog' | |||
98 | --- gcc/ChangeLog 2011-03-30 10:48:07 +0000 | |||
99 | +++ gcc/ChangeLog 2011-04-28 16:44:05 +0000 | |||
100 | @@ -1,3 +1,397 @@ | |||
101 | 1 | 2011-04-28 Release Manager | ||
102 | 2 | |||
103 | 3 | * GCC 4.5.3 released. | ||
104 | 4 | |||
105 | 5 | 2011-04-21 Richard Guenther <rguenther@suse.de> | ||
106 | 6 | |||
107 | 7 | PR middle-end/48712 | ||
108 | 8 | Backport from 4.6 branch | ||
109 | 9 | 2011-03-07 Zdenek Dvorak <ook@ucw.cz> | ||
110 | 10 | |||
111 | 11 | PR bootstrap/48000 | ||
112 | 12 | * cfgloopmanip.c (fix_bb_placements): Return immediately | ||
113 | 13 | if FROM is BASE_LOOP's header. | ||
114 | 14 | |||
115 | 15 | 2011-04-20 Richard Guenther <rguenther@suse.de> | ||
116 | 16 | |||
117 | 17 | Backport from 4.6 branch | ||
118 | 18 | 2011-04-19 Bernd Schmidt <bernds@codesourcery.com> | ||
119 | 19 | |||
120 | 20 | PR fortran/47976 | ||
121 | 21 | * reload1.c (inc_for_reload): Return void. All callers changed. | ||
122 | 22 | (emit_input_reload_insns): Don't try to delete previous output | ||
123 | 23 | reloads to a register, or record spill_reg_store for autoincs. | ||
124 | 24 | |||
125 | 25 | 2011-04-19 Richard Guenther <rguenther@suse.de> | ||
126 | 26 | |||
127 | 27 | Backported from 4.6 branch | ||
128 | 28 | 2011-03-29 Jakub Jelinek <jakub@redhat.com> | ||
129 | 29 | |||
130 | 30 | PR preprocessor/48248 | ||
131 | 31 | * c-ppoutput.c (print): Add src_file field. | ||
132 | 32 | (init_pp_output): Initialize it. | ||
133 | 33 | (maybe_print_line): Don't optimize by adding up to 8 newlines | ||
134 | 34 | if map->to_file and print.src_file are different file. | ||
135 | 35 | (print_line): Update print.src_file. | ||
136 | 36 | |||
137 | 37 | 2011-04-18 Richard Guenther <rguenther@suse.de> | ||
138 | 38 | |||
139 | 39 | PR preprocessor/48248 | ||
140 | 40 | * c-ppoutput.c (maybe_print_line): Avoid changing -P behavior. | ||
141 | 41 | |||
142 | 42 | 2011-04-19 Richard Guenther <rguenther@suse.de> | ||
143 | 43 | |||
144 | 44 | PR tree-optimization/46188 | ||
145 | 45 | Backported from 4.6 branch | ||
146 | 46 | 2010-05-26 Jan Hubicka <jh@suse.cz> | ||
147 | 47 | |||
148 | 48 | * cgraphunit.c (clone_of_p): Remove. | ||
149 | 49 | (verify_cgraph_node): Do not verify clones. | ||
150 | 50 | (cgraph_materialize_all_clones): Do no redirection here. | ||
151 | 51 | * ipa-inline.c (inline_transform): Do redirection here. | ||
152 | 52 | |||
153 | 53 | 2011-04-18 Eric Botcazou <ebotcazou@adacore.com> | ||
154 | 54 | |||
155 | 55 | * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype. | ||
156 | 56 | |||
157 | 57 | 2011-04-18 Richard Guenther <rguenther@suse.de> | ||
158 | 58 | |||
159 | 59 | Backported from 4.6 branch | ||
160 | 60 | 2011-01-19 Jakub Jelinek <jakub@redhat.com> | ||
161 | 61 | |||
162 | 62 | PR tree-optimization/47290 | ||
163 | 63 | * tree-eh.c (infinite_empty_loop_p): New function. | ||
164 | 64 | (cleanup_empty_eh): Use it. | ||
165 | 65 | |||
166 | 66 | 2010-05-29 Jan Hubicka <jh@suse.cz> | ||
167 | 67 | |||
168 | 68 | PR tree-optimization/46364 | ||
169 | 69 | * cgraphunit.c (cgraph_materialize_clone): Only remove calles, refs | ||
170 | 70 | and body; | ||
171 | 71 | not the whole node for masters of materialized clones. | ||
172 | 72 | |||
173 | 73 | 2011-04-18 Richard Guenther <rguenther@suse.de> | ||
174 | 74 | |||
175 | 75 | Backported from 4.6 branch | ||
176 | 76 | 2011-03-05 Zdenek Dvorak <ook@ucw.cz> | ||
177 | 77 | |||
178 | 78 | PR rtl-optimization/47899 | ||
179 | 79 | * cfgloopmanip.c (fix_bb_placements): Fix first argument | ||
180 | 80 | to flow_loop_nested_p when moving the loop upward. | ||
181 | 81 | |||
182 | 82 | 2011-03-15 Richard Guenther <rguenther@suse.de> | ||
183 | 83 | |||
184 | 84 | PR middle-end/48031 | ||
185 | 85 | * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized | ||
186 | 86 | or variable-indexed array accesses when in gimple form. | ||
187 | 87 | |||
188 | 88 | 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | ||
189 | 89 | |||
190 | 90 | * config/pa/pa.h (REGISTER_MOVE_COST): Increase to 18 cost of | ||
191 | 91 | move from floating point to shift amount register. | ||
192 | 92 | |||
193 | 93 | Backport from mainline: | ||
194 | 94 | 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | ||
195 | 95 | |||
196 | 96 | PR target/48366 | ||
197 | 97 | * config/pa/pa.c (emit_move_sequence): Remove secondary reload | ||
198 | 98 | support for floating point to shift amount amount register copies. | ||
199 | 99 | (pa_secondary_reload): Return GENERAL_REGS for floating point/shift | ||
200 | 100 | amount register copies. | ||
201 | 101 | * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount | ||
202 | 102 | register, return false if mode isn't a scalar integer mode. | ||
203 | 103 | * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise. | ||
204 | 104 | |||
205 | 105 | 2011-04-16 Jakub Jelinek <jakub@redhat.com> | ||
206 | 106 | |||
207 | 107 | Backported from 4.6 branch | ||
208 | 108 | 2011-04-15 Jakub Jelinek <jakub@redhat.com> | ||
209 | 109 | |||
210 | 110 | PR target/48605 | ||
211 | 111 | * config/i386/sse.md (avx_insertps, sse4_1_insertps): If operands[2] | ||
212 | 112 | is a MEM, offset it as needed based on top 2 bits in operands[3], | ||
213 | 113 | change MEM mode to SFmode and mask those 2 bits away from operands[3]. | ||
214 | 114 | |||
215 | 115 | 2011-04-13 Nick Clifton <nickc@redhat.com> | ||
216 | 116 | |||
217 | 117 | * config/rx/rx.md (movmemsi): Do not use this pattern when | ||
218 | 118 | volatile pointers are involved. | ||
219 | 119 | |||
220 | 120 | 2011-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | ||
221 | 121 | |||
222 | 122 | Backport from mainline: | ||
223 | 123 | 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | ||
224 | 124 | |||
225 | 125 | PR testsuite/47400 | ||
226 | 126 | * doc/sourcebuild.texi (Require Support): Document | ||
227 | 127 | dg-require-ascii-locale. | ||
228 | 128 | |||
229 | 129 | 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> | ||
230 | 130 | |||
231 | 131 | Backport from mainline: | ||
232 | 132 | 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> | ||
233 | 133 | PR target/48090 | ||
234 | 134 | * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints. | ||
235 | 135 | |||
236 | 136 | 2011-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | ||
237 | 137 | |||
238 | 138 | Backport from mainline: | ||
239 | 139 | 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | ||
240 | 140 | |||
241 | 141 | * config/alpha/osf.h (MAX_OFILE_ALIGNMENT): Define. | ||
242 | 142 | |||
243 | 143 | 2011-04-09 Duncan Sands <baldrick@free.fr> | ||
244 | 144 | |||
245 | 145 | * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set. | ||
246 | 146 | |||
247 | 147 | 2011-04-07 Uros Bizjak <ubizjak@gmail.com> | ||
248 | 148 | |||
249 | 149 | * config/i386/sse.md (avx_cmps<ssemodesuffixf2c><mode>3): Add | ||
250 | 150 | missing output register constraint. | ||
251 | 151 | (*vec_concatv2sf_avx): Fix wrong register constraint in | ||
252 | 152 | alternative 3 of operand 1. | ||
253 | 153 | (*vec_set<mode>_0_avx): Avoid combining registers from different | ||
254 | 154 | units in a single alternative. | ||
255 | 155 | (*vec_set<mode>_0_sse4_1): Ditto. | ||
256 | 156 | (*vec_set<mode>_0_sse2): Ditto. | ||
257 | 157 | (vec_set<mode>_0): Ditto. | ||
258 | 158 | (sse2_storehpd): Ditto. | ||
259 | 159 | (sse2_loadhpd): Ditto. | ||
260 | 160 | (sse4_1_insertps): Use nonimmediate_operand for operand 2. | ||
261 | 161 | * config/i386/predicates.md (sse_comparison_operator): Do not | ||
262 | 162 | define as special predicate. | ||
263 | 163 | |||
264 | 164 | 2011-04-07 Jakub Jelinek <jakub@redhat.com> | ||
265 | 165 | |||
266 | 166 | Backported from mainline | ||
267 | 167 | 2011-04-06 Jakub Jelinek <jakub@redhat.com> | ||
268 | 168 | |||
269 | 169 | PR debug/48466 | ||
270 | 170 | * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use | ||
271 | 171 | as base_reg whatever register reg has been eliminated to, instead | ||
272 | 172 | of hardcoding STACK_POINTER_REGNUM. | ||
273 | 173 | |||
274 | 174 | 2011-03-24 Jakub Jelinek <jakub@redhat.com> | ||
275 | 175 | |||
276 | 176 | PR debug/48204 | ||
277 | 177 | * simplify-rtx.c (simplify_const_unary_operation): Call | ||
278 | 178 | real_convert when changing mode class with FLOAT_EXTEND. | ||
279 | 179 | |||
280 | 180 | 2011-03-17 Jakub Jelinek <jakub@redhat.com> | ||
281 | 181 | |||
282 | 182 | PR rtl-optimization/48141 | ||
283 | 183 | * dse.c (record_store): If no positions are needed in an insn | ||
284 | 184 | that cannot be deleted, at least unchain it from active_local_stores. | ||
285 | 185 | |||
286 | 186 | 2011-03-03 Jakub Jelinek <jakub@redhat.com> | ||
287 | 187 | |||
288 | 188 | PR c/47963 | ||
289 | 189 | * gimplify.c (omp_add_variable): Only call omp_notice_variable | ||
290 | 190 | on TYPE_SIZE_UNIT if it is a DECL. | ||
291 | 191 | |||
292 | 192 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> | ||
293 | 193 | |||
294 | 194 | PR c/47809 | ||
295 | 195 | * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. | ||
296 | 196 | |||
297 | 197 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> | ||
298 | 198 | |||
299 | 199 | PR c/47473 | ||
300 | 200 | * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure | ||
301 | 201 | EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of | ||
302 | 202 | REAL_TYPE. | ||
303 | 203 | |||
304 | 204 | 2011-04-07 Jakub Jelinek <jakub@redhat.com> | ||
305 | 205 | |||
306 | 206 | PR tree-optimization/47391 | ||
307 | 207 | * tree-ssa-ccp.c (get_symbol_constant_value): Don't optimize | ||
308 | 208 | if sym is volatile. | ||
309 | 209 | |||
310 | 210 | Backported from mainline | ||
311 | 211 | 2010-07-01 Richard Guenther <rguenther@suse.de> | ||
312 | 212 | |||
313 | 213 | * omp-low.c (scan_omp_1_op): Don't change type of INTEGER_CSTs | ||
314 | 214 | directly. | ||
315 | 215 | |||
316 | 216 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
317 | 217 | |||
318 | 218 | Backport from mainline | ||
319 | 219 | 2011-03-26 Andrey Belevantsev <abel@ispras.ru> | ||
320 | 220 | |||
321 | 221 | PR rtl-optimization/48144 | ||
322 | 222 | * sel-sched-ir.c (merge_history_vect): Factor out from ... | ||
323 | 223 | (merge_expr_data): ... here. | ||
324 | 224 | (av_set_intersect): Rename to av_set_code_motion_filter. | ||
325 | 225 | Update all callers. Call merge_history_vect when an expression | ||
326 | 226 | is found in both sets. | ||
327 | 227 | * sel-sched-ir.h (av_set_code_motion_filter): Add prototype. | ||
328 | 228 | |||
329 | 229 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
330 | 230 | |||
331 | 231 | Backport from mainline | ||
332 | 232 | 2011-01-13 Andrey Belevantsev <abel@ispras.ru> | ||
333 | 233 | |||
334 | 234 | PR rtl-optimization/45352 | ||
335 | 235 | * sel-sched.c: Update copyright years. | ||
336 | 236 | (reset_sched_cycles_in_current_ebb): Also recheck the DFA state | ||
337 | 237 | in the advancing loop when we have issued issue_rate insns. | ||
338 | 238 | |||
339 | 239 | Backport from mainline | ||
340 | 240 | 2010-12-22 Andrey Belevantsev <abel@ispras.ru> | ||
341 | 241 | |||
342 | 242 | PR rtl-optimization/45352 | ||
343 | 243 | PR rtl-optimization/46521 | ||
344 | 244 | PR rtl-optimization/46522 | ||
345 | 245 | * sel-sched.c (reset_sched_cycles_in_current_ebb): Recheck the DFA state | ||
346 | 246 | on the last iteration of the advancing loop. | ||
347 | 247 | (sel_sched_region_1): Propagate the rescheduling bit to the next block | ||
348 | 248 | also for empty blocks. | ||
349 | 249 | |||
350 | 250 | Backport from mainline | ||
351 | 251 | 2010-11-08 Andrey Belevantsev <abel@ispras.ru> | ||
352 | 252 | |||
353 | 253 | PR rtl-optimization/45352 | ||
354 | 254 | * sel-sched.c (find_best_expr): Do not set pneed_stall when | ||
355 | 255 | the variable_issue hook is not implemented. | ||
356 | 256 | (fill_insns): Remove dead variable stall_iterations. | ||
357 | 257 | (init_seqno_1): Force EBB start for resetting sched cycles on any | ||
358 | 258 | successor blocks of the rescheduled region. | ||
359 | 259 | (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit. | ||
360 | 260 | (reset_sched_cycles_in_current_ebb): Add debug printing. | ||
361 | 261 | New variable issued_insns. Advance state when we have issued | ||
362 | 262 | issue_rate insns. | ||
363 | 263 | |||
364 | 264 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
365 | 265 | |||
366 | 266 | Backport from mainline | ||
367 | 267 | 2010-12-24 Alexander Monakov <amonakov@ispras.ru> | ||
368 | 268 | |||
369 | 269 | PR rtl-optimization/47036 | ||
370 | 270 | * sel-sched-ir.c (fallthru_bb_of_jump): Remove special support for | ||
371 | 271 | unconditional jumps. | ||
372 | 272 | * sel-sched.c (moveup_expr): Ditto. | ||
373 | 273 | |||
374 | 274 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
375 | 275 | |||
376 | 276 | Backport from mainline | ||
377 | 277 | 2010-12-15 Alexander Monakov <amonakov@ispras.ru> | ||
378 | 278 | |||
379 | 279 | PR rtl-optimization/46649 | ||
380 | 280 | * sel-sched-ir.c (purge_empty_blocks): Unconditionally skip the first | ||
381 | 281 | basic block in the region. | ||
382 | 282 | |||
383 | 283 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
384 | 284 | |||
385 | 285 | Backport from mainline | ||
386 | 286 | 2010-12-14 Alexander Monakov <amonakov@ispras.ru> | ||
387 | 287 | |||
388 | 288 | PR rtl-optimization/46875 | ||
389 | 289 | * sched-vis.c (print_pattern): Dump "sequence" for ADDR_VECs. | ||
390 | 290 | * sel-sched-ir.c (bb_has_removable_jump_to_p): Forbid table jumps. | ||
391 | 291 | |||
392 | 292 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
393 | 293 | |||
394 | 294 | Backport from mainline | ||
395 | 295 | 2010-12-07 Andrey Belevantsev <abel@ispras.ru> | ||
396 | 296 | PR target/43603 | ||
397 | 297 | * haifa-sched.c (sched_create_recovery_edges): Update | ||
398 | 298 | dominator info. | ||
399 | 299 | * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info | ||
400 | 300 | after deleting an empty block. | ||
401 | 301 | (tidy_control_flow): Also verify dominators. | ||
402 | 302 | (sel_remove_bb): Update dominator info after removing a block. | ||
403 | 303 | (sel_redirect_edge_and_branch_force): Assert that no unreachable | ||
404 | 304 | blocks will be created. Update dominator info. | ||
405 | 305 | (sel_redirect_edge_and_branch): Update dominator info when | ||
406 | 306 | basic blocks do not become unreachable. | ||
407 | 307 | (sel_remove_loop_preheader): Update dominator info. | ||
408 | 308 | |||
409 | 309 | 2010-10-14 Andrey Belevantsev <abel@ispras.ru> | ||
410 | 310 | |||
411 | 311 | * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment. | ||
412 | 312 | (tidy_control_flow): Tidy vertical space. | ||
413 | 313 | (sel_remove_bb): New variable idx. Use it to remember the basic | ||
414 | 314 | block index before deleting the block. | ||
415 | 315 | (sel_remove_empty_bb): Remove dead code, simplify and insert to ... | ||
416 | 316 | (sel_merge_blocks): ... here. | ||
417 | 317 | * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype. | ||
418 | 318 | |||
419 | 319 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
420 | 320 | |||
421 | 321 | Backport from mainline | ||
422 | 322 | 2010-12-03 Alexander Monakov <amonakov@ispras.ru> | ||
423 | 323 | |||
424 | 324 | PR rtl-optimization/45354 | ||
425 | 325 | * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ... | ||
426 | 326 | (bb_has_removable_jump_to_p): This. Update all callers. Make static. | ||
427 | 327 | Allow BBs ending with a conditional jump. Forbid EDGE_CROSSING jumps. | ||
428 | 328 | * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype. | ||
429 | 329 | |||
430 | 330 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
431 | 331 | |||
432 | 332 | Backport from mainline | ||
433 | 333 | 2010-11-25 Alexander Monakov <amonakov@ispras.ru> | ||
434 | 334 | |||
435 | 335 | PR rtl-optimization/46585 | ||
436 | 336 | * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL. | ||
437 | 337 | (vinsn_init): Skip computation of dependencies for local NOPs. | ||
438 | 338 | (vinsn_delete): Don't try to free regsets for local NOPs. | ||
439 | 339 | (setup_nop_and_exit_insns): Change definition of nop_pattern. | ||
440 | 340 | |||
441 | 341 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
442 | 342 | |||
443 | 343 | Backport from mainline | ||
444 | 344 | 2010-11-25 Alexander Monakov <amonakov@ispras.ru> | ||
445 | 345 | |||
446 | 346 | PR rtl-optimization/46602 | ||
447 | 347 | * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ... | ||
448 | 348 | (tidy_control_flow): Here. | ||
449 | 349 | |||
450 | 350 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
451 | 351 | |||
452 | 352 | Backport from mainline | ||
453 | 353 | 2010-11-22 Alexander Monakov <amonakov@ispras.ru> | ||
454 | 354 | |||
455 | 355 | PR rtl-optimization/45652 | ||
456 | 356 | * alias.c (get_reg_base_value): New. | ||
457 | 357 | * rtl.h (get_reg_base_value): Add prototype. | ||
458 | 358 | * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with | ||
459 | 359 | non-null REG_BASE_VALUE for renaming. | ||
460 | 360 | |||
461 | 361 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
462 | 362 | |||
463 | 363 | Backport from mainline | ||
464 | 364 | 2010-11-18 Alexander Monakov <amonakov@ispras.ru> | ||
465 | 365 | |||
466 | 366 | PR middle-end/46518 | ||
467 | 367 | * sel-sched-ir.c (init_expr): Use the correct type for | ||
468 | 368 | target_available. | ||
469 | 369 | * sel-sched.c (fill_vec_av_set): Use explicitly signed char type. | ||
470 | 370 | |||
471 | 371 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
472 | 372 | |||
473 | 373 | Backport from mainline | ||
474 | 374 | 2010-11-12 Alexander Monakov <amonakov@ispras.ru> | ||
475 | 375 | |||
476 | 376 | PR rtl-optimization/46204 | ||
477 | 377 | sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument. | ||
478 | 378 | pdate all callers. Do not recompute topological order. Adjust | ||
479 | 379 | allthrough edges following a degenerate conditional jump. | ||
480 | 380 | |||
481 | 381 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
482 | 382 | |||
483 | 383 | Backport from mainline | ||
484 | 384 | 2010-10-14 Andrey Belevantsev <abel@ispras.ru> | ||
485 | 385 | |||
486 | 386 | PR rtl-optimization/45570 | ||
487 | 387 | * sel-sched-ir.c (cfg_preds_1): When walking out of the region, | ||
488 | 388 | assert that we are pipelining outer loops. Allow returning | ||
489 | 389 | zero predecessors. | ||
490 | 390 | |||
491 | 391 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> | ||
492 | 392 | |||
493 | 393 | * gcov-io.c: Use GCC Runtime Library Exception. | ||
494 | 394 | |||
495 | 1 | 2011-03-30 H.J. Lu <hongjiu.lu@intel.com> | 395 | 2011-03-30 H.J. Lu <hongjiu.lu@intel.com> |
496 | 2 | 396 | ||
497 | 3 | Backport from mainline | 397 | Backport from mainline |
498 | 4 | 398 | ||
499 | === modified file 'gcc/DATESTAMP' | |||
500 | --- gcc/DATESTAMP 2011-04-06 00:18:18 +0000 | |||
501 | +++ gcc/DATESTAMP 2011-04-28 16:44:05 +0000 | |||
502 | @@ -1,1 +1,1 @@ | |||
504 | 1 | 20110406 | 1 | 20110428 |
505 | 2 | 2 | ||
506 | === modified file 'gcc/DEV-PHASE' | |||
507 | --- gcc/DEV-PHASE 2011-02-22 11:38:56 +0000 | |||
508 | +++ gcc/DEV-PHASE 2011-04-28 16:44:05 +0000 | |||
509 | @@ -1,1 +0,0 @@ | |||
510 | 1 | prerelease | ||
511 | 2 | 0 | ||
512 | === modified file 'gcc/ada/ChangeLog' | |||
513 | --- gcc/ada/ChangeLog 2011-02-12 19:22:17 +0000 | |||
514 | +++ gcc/ada/ChangeLog 2011-04-28 16:44:05 +0000 | |||
515 | @@ -1,3 +1,7 @@ | |||
516 | 1 | 2011-04-28 Release Manager | ||
517 | 2 | |||
518 | 3 | * GCC 4.5.3 released. | ||
519 | 4 | |||
520 | 1 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> | 5 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> |
521 | 2 | 6 | ||
522 | 3 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update | 7 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update |
523 | 4 | 8 | ||
524 | === modified file 'gcc/alias.c' | |||
525 | --- gcc/alias.c 2010-05-26 10:29:20 +0000 | |||
526 | +++ gcc/alias.c 2011-04-28 16:44:05 +0000 | |||
527 | @@ -1228,6 +1228,14 @@ | |||
528 | 1228 | reg_seen[regno] = 1; | 1228 | reg_seen[regno] = 1; |
529 | 1229 | } | 1229 | } |
530 | 1230 | 1230 | ||
531 | 1231 | /* Return REG_BASE_VALUE for REGNO. Selective scheduler uses this to avoid | ||
532 | 1232 | using hard registers with non-null REG_BASE_VALUE for renaming. */ | ||
533 | 1233 | rtx | ||
534 | 1234 | get_reg_base_value (unsigned int regno) | ||
535 | 1235 | { | ||
536 | 1236 | return VEC_index (rtx, reg_base_value, regno); | ||
537 | 1237 | } | ||
538 | 1238 | |||
539 | 1231 | /* If a value is known for REGNO, return it. */ | 1239 | /* If a value is known for REGNO, return it. */ |
540 | 1232 | 1240 | ||
541 | 1233 | rtx | 1241 | rtx |
542 | 1234 | 1242 | ||
543 | === modified file 'gcc/c-common.c' | |||
544 | --- gcc/c-common.c 2011-01-06 11:02:44 +0000 | |||
545 | +++ gcc/c-common.c 2011-04-28 16:44:05 +0000 | |||
546 | @@ -1352,6 +1352,7 @@ | |||
547 | 1352 | case FIX_TRUNC_EXPR: | 1352 | case FIX_TRUNC_EXPR: |
548 | 1353 | case FLOAT_EXPR: | 1353 | case FLOAT_EXPR: |
549 | 1354 | CASE_CONVERT: | 1354 | CASE_CONVERT: |
550 | 1355 | case VIEW_CONVERT_EXPR: | ||
551 | 1355 | case NON_LVALUE_EXPR: | 1356 | case NON_LVALUE_EXPR: |
552 | 1356 | case NEGATE_EXPR: | 1357 | case NEGATE_EXPR: |
553 | 1357 | case BIT_NOT_EXPR: | 1358 | case BIT_NOT_EXPR: |
554 | 1358 | 1359 | ||
555 | === modified file 'gcc/c-lex.c' | |||
556 | --- gcc/c-lex.c 2009-11-25 10:55:54 +0000 | |||
557 | +++ gcc/c-lex.c 2011-04-28 16:44:05 +0000 | |||
558 | @@ -739,8 +739,15 @@ | |||
559 | 739 | /* Create a node with determined type and value. */ | 739 | /* Create a node with determined type and value. */ |
560 | 740 | value = build_real (const_type, real); | 740 | value = build_real (const_type, real); |
561 | 741 | if (flags & CPP_N_IMAGINARY) | 741 | if (flags & CPP_N_IMAGINARY) |
564 | 742 | value = build_complex (NULL_TREE, convert (const_type, integer_zero_node), | 742 | { |
565 | 743 | value); | 743 | value = build_complex (NULL_TREE, convert (const_type, |
566 | 744 | integer_zero_node), value); | ||
567 | 745 | if (type != const_type) | ||
568 | 746 | { | ||
569 | 747 | const_type = TREE_TYPE (value); | ||
570 | 748 | type = build_complex_type (type); | ||
571 | 749 | } | ||
572 | 750 | } | ||
573 | 744 | 751 | ||
574 | 745 | if (type != const_type) | 752 | if (type != const_type) |
575 | 746 | value = build1 (EXCESS_PRECISION_EXPR, type, value); | 753 | value = build1 (EXCESS_PRECISION_EXPR, type, value); |
576 | 747 | 754 | ||
577 | === modified file 'gcc/c-ppoutput.c' | |||
578 | --- gcc/c-ppoutput.c 2009-10-09 18:55:34 +0000 | |||
579 | +++ gcc/c-ppoutput.c 2011-04-28 16:44:05 +0000 | |||
580 | @@ -37,6 +37,7 @@ | |||
581 | 37 | int src_line; /* Line number currently being written. */ | 37 | int src_line; /* Line number currently being written. */ |
582 | 38 | unsigned char printed; /* Nonzero if something output at line. */ | 38 | unsigned char printed; /* Nonzero if something output at line. */ |
583 | 39 | bool first_time; /* pp_file_change hasn't been called yet. */ | 39 | bool first_time; /* pp_file_change hasn't been called yet. */ |
584 | 40 | const char *src_file; /* Current source file. */ | ||
585 | 40 | } print; | 41 | } print; |
586 | 41 | 42 | ||
587 | 42 | /* Defined and undefined macros being queued for output with -dU at | 43 | /* Defined and undefined macros being queued for output with -dU at |
588 | @@ -154,6 +155,7 @@ | |||
589 | 154 | print.prev = 0; | 155 | print.prev = 0; |
590 | 155 | print.outf = out_stream; | 156 | print.outf = out_stream; |
591 | 156 | print.first_time = 1; | 157 | print.first_time = 1; |
592 | 158 | print.src_file = ""; | ||
593 | 157 | } | 159 | } |
594 | 158 | 160 | ||
595 | 159 | /* Writes out the preprocessed file, handling spacing and paste | 161 | /* Writes out the preprocessed file, handling spacing and paste |
596 | @@ -313,7 +315,9 @@ | |||
597 | 313 | print.printed = 0; | 315 | print.printed = 0; |
598 | 314 | } | 316 | } |
599 | 315 | 317 | ||
601 | 316 | if (src_line >= print.src_line && src_line < print.src_line + 8) | 318 | if (src_line >= print.src_line |
602 | 319 | && src_line < print.src_line + 8 | ||
603 | 320 | && (flag_no_line_commands || strcmp (map->to_file, print.src_file) == 0)) | ||
604 | 317 | { | 321 | { |
605 | 318 | while (src_line > print.src_line) | 322 | while (src_line > print.src_line) |
606 | 319 | { | 323 | { |
607 | @@ -345,6 +349,7 @@ | |||
608 | 345 | unsigned char *p; | 349 | unsigned char *p; |
609 | 346 | 350 | ||
610 | 347 | print.src_line = SOURCE_LINE (map, src_loc); | 351 | print.src_line = SOURCE_LINE (map, src_loc); |
611 | 352 | print.src_file = map->to_file; | ||
612 | 348 | 353 | ||
613 | 349 | /* cpp_quote_string does not nul-terminate, so we have to do it | 354 | /* cpp_quote_string does not nul-terminate, so we have to do it |
614 | 350 | ourselves. */ | 355 | ourselves. */ |
615 | 351 | 356 | ||
616 | === modified file 'gcc/cfgloopmanip.c' | |||
617 | --- gcc/cfgloopmanip.c 2010-11-11 20:33:18 +0000 | |||
618 | +++ gcc/cfgloopmanip.c 2011-04-28 16:44:05 +0000 | |||
619 | @@ -174,7 +174,7 @@ | |||
620 | 174 | { | 174 | { |
621 | 175 | sbitmap in_queue; | 175 | sbitmap in_queue; |
622 | 176 | basic_block *queue, *qtop, *qbeg, *qend; | 176 | basic_block *queue, *qtop, *qbeg, *qend; |
624 | 177 | struct loop *base_loop; | 177 | struct loop *base_loop, *target_loop; |
625 | 178 | edge e; | 178 | edge e; |
626 | 179 | 179 | ||
627 | 180 | /* We pass through blocks back-reachable from FROM, testing whether some | 180 | /* We pass through blocks back-reachable from FROM, testing whether some |
628 | @@ -185,7 +185,11 @@ | |||
629 | 185 | fix_loop_placement. */ | 185 | fix_loop_placement. */ |
630 | 186 | 186 | ||
631 | 187 | base_loop = from->loop_father; | 187 | base_loop = from->loop_father; |
633 | 188 | if (base_loop == current_loops->tree_root) | 188 | /* If we are already in the outermost loop, the basic blocks cannot be moved |
634 | 189 | outside of it. If FROM is the header of the base loop, it cannot be moved | ||
635 | 190 | outside of it, either. In both cases, we can end now. */ | ||
636 | 191 | if (base_loop == current_loops->tree_root | ||
637 | 192 | || from == base_loop->header) | ||
638 | 189 | return; | 193 | return; |
639 | 190 | 194 | ||
640 | 191 | in_queue = sbitmap_alloc (last_basic_block); | 195 | in_queue = sbitmap_alloc (last_basic_block); |
641 | @@ -214,12 +218,14 @@ | |||
642 | 214 | /* Subloop header, maybe move the loop upward. */ | 218 | /* Subloop header, maybe move the loop upward. */ |
643 | 215 | if (!fix_loop_placement (from->loop_father)) | 219 | if (!fix_loop_placement (from->loop_father)) |
644 | 216 | continue; | 220 | continue; |
645 | 221 | target_loop = loop_outer (from->loop_father); | ||
646 | 217 | } | 222 | } |
647 | 218 | else | 223 | else |
648 | 219 | { | 224 | { |
649 | 220 | /* Ordinary basic block. */ | 225 | /* Ordinary basic block. */ |
650 | 221 | if (!fix_bb_placement (from)) | 226 | if (!fix_bb_placement (from)) |
651 | 222 | continue; | 227 | continue; |
652 | 228 | target_loop = from->loop_father; | ||
653 | 223 | } | 229 | } |
654 | 224 | 230 | ||
655 | 225 | FOR_EACH_EDGE (e, ei, from->succs) | 231 | FOR_EACH_EDGE (e, ei, from->succs) |
656 | @@ -248,9 +254,12 @@ | |||
657 | 248 | && (nca == base_loop | 254 | && (nca == base_loop |
658 | 249 | || nca != pred->loop_father)) | 255 | || nca != pred->loop_father)) |
659 | 250 | pred = pred->loop_father->header; | 256 | pred = pred->loop_father->header; |
661 | 251 | else if (!flow_loop_nested_p (from->loop_father, pred->loop_father)) | 257 | else if (!flow_loop_nested_p (target_loop, pred->loop_father)) |
662 | 252 | { | 258 | { |
664 | 253 | /* No point in processing it. */ | 259 | /* If PRED is already higher in the loop hierarchy than the |
665 | 260 | TARGET_LOOP to that we moved FROM, the change of the position | ||
666 | 261 | of FROM does not affect the position of PRED, so there is no | ||
667 | 262 | point in processing it. */ | ||
668 | 254 | continue; | 263 | continue; |
669 | 255 | } | 264 | } |
670 | 256 | 265 | ||
671 | 257 | 266 | ||
672 | === modified file 'gcc/cgraphunit.c' | |||
673 | --- gcc/cgraphunit.c 2010-06-30 12:17:35 +0000 | |||
674 | +++ gcc/cgraphunit.c 2011-04-28 16:44:05 +0000 | |||
675 | @@ -553,15 +553,6 @@ | |||
676 | 553 | cgraph_mark_needed_node (node); | 553 | cgraph_mark_needed_node (node); |
677 | 554 | } | 554 | } |
678 | 555 | 555 | ||
679 | 556 | /* Return TRUE if NODE2 is equivalent to NODE or its clone. */ | ||
680 | 557 | static bool | ||
681 | 558 | clone_of_p (struct cgraph_node *node, struct cgraph_node *node2) | ||
682 | 559 | { | ||
683 | 560 | while (node != node2 && node2) | ||
684 | 561 | node2 = node2->clone_of; | ||
685 | 562 | return node2 != NULL; | ||
686 | 563 | } | ||
687 | 564 | |||
688 | 565 | /* Verify cgraph nodes of given cgraph node. */ | 556 | /* Verify cgraph nodes of given cgraph node. */ |
689 | 566 | void | 557 | void |
690 | 567 | verify_cgraph_node (struct cgraph_node *node) | 558 | verify_cgraph_node (struct cgraph_node *node) |
691 | @@ -777,16 +768,6 @@ | |||
692 | 777 | debug_tree (e->callee->decl); | 768 | debug_tree (e->callee->decl); |
693 | 778 | error_found = true; | 769 | error_found = true; |
694 | 779 | } | 770 | } |
695 | 780 | else if (!node->global.inlined_to | ||
696 | 781 | && !e->callee->global.inlined_to | ||
697 | 782 | && !clone_of_p (cgraph_node (decl), e->callee)) | ||
698 | 783 | { | ||
699 | 784 | error ("edge points to wrong declaration:"); | ||
700 | 785 | debug_tree (e->callee->decl); | ||
701 | 786 | fprintf (stderr," Instead of:"); | ||
702 | 787 | debug_tree (decl); | ||
703 | 788 | error_found = true; | ||
704 | 789 | } | ||
705 | 790 | e->aux = (void *)1; | 771 | e->aux = (void *)1; |
706 | 791 | } | 772 | } |
707 | 792 | else | 773 | else |
708 | @@ -2259,7 +2240,10 @@ | |||
709 | 2259 | node->next_sibling_clone = NULL; | 2240 | node->next_sibling_clone = NULL; |
710 | 2260 | node->prev_sibling_clone = NULL; | 2241 | node->prev_sibling_clone = NULL; |
711 | 2261 | if (!node->clone_of->analyzed && !node->clone_of->clones) | 2242 | if (!node->clone_of->analyzed && !node->clone_of->clones) |
713 | 2262 | cgraph_remove_node (node->clone_of); | 2243 | { |
714 | 2244 | cgraph_release_function_body (node->clone_of); | ||
715 | 2245 | cgraph_node_remove_callees (node->clone_of); | ||
716 | 2246 | } | ||
717 | 2263 | node->clone_of = NULL; | 2247 | node->clone_of = NULL; |
718 | 2264 | bitmap_obstack_release (NULL); | 2248 | bitmap_obstack_release (NULL); |
719 | 2265 | } | 2249 | } |
720 | @@ -2394,30 +2378,7 @@ | |||
721 | 2394 | if (!node->analyzed && node->callees) | 2378 | if (!node->analyzed && node->callees) |
722 | 2395 | cgraph_node_remove_callees (node); | 2379 | cgraph_node_remove_callees (node); |
723 | 2396 | if (cgraph_dump_file) | 2380 | if (cgraph_dump_file) |
724 | 2397 | fprintf (cgraph_dump_file, "Updating call sites\n"); | ||
725 | 2398 | for (node = cgraph_nodes; node; node = node->next) | ||
726 | 2399 | if (node->analyzed && !node->clone_of | ||
727 | 2400 | && gimple_has_body_p (node->decl)) | ||
728 | 2401 | { | ||
729 | 2402 | struct cgraph_edge *e; | ||
730 | 2403 | |||
731 | 2404 | current_function_decl = node->decl; | ||
732 | 2405 | push_cfun (DECL_STRUCT_FUNCTION (node->decl)); | ||
733 | 2406 | for (e = node->callees; e; e = e->next_callee) | ||
734 | 2407 | cgraph_redirect_edge_call_stmt_to_callee (e); | ||
735 | 2408 | pop_cfun (); | ||
736 | 2409 | current_function_decl = NULL; | ||
737 | 2410 | #ifdef ENABLE_CHECKING | ||
738 | 2411 | verify_cgraph_node (node); | ||
739 | 2412 | #endif | ||
740 | 2413 | } | ||
741 | 2414 | if (cgraph_dump_file) | ||
742 | 2415 | fprintf (cgraph_dump_file, "Materialization Call site updates done.\n"); | 2381 | fprintf (cgraph_dump_file, "Materialization Call site updates done.\n"); |
743 | 2416 | /* All changes to parameters have been performed. In order not to | ||
744 | 2417 | incorrectly repeat them, we simply dispose of the bitmaps that drive the | ||
745 | 2418 | changes. */ | ||
746 | 2419 | for (node = cgraph_nodes; node; node = node->next) | ||
747 | 2420 | node->clone.combined_args_to_skip = NULL; | ||
748 | 2421 | #ifdef ENABLE_CHECKING | 2382 | #ifdef ENABLE_CHECKING |
749 | 2422 | verify_cgraph (); | 2383 | verify_cgraph (); |
750 | 2423 | #endif | 2384 | #endif |
751 | 2424 | 2385 | ||
752 | === modified file 'gcc/config/alpha/osf.h' | |||
753 | --- gcc/config/alpha/osf.h 2010-12-03 12:54:16 +0000 | |||
754 | +++ gcc/config/alpha/osf.h 2011-04-28 16:44:05 +0000 | |||
755 | @@ -1,6 +1,6 @@ | |||
756 | 1 | /* Definitions of target machine for GNU compiler, for DEC Alpha on OSF/1. | 1 | /* Definitions of target machine for GNU compiler, for DEC Alpha on OSF/1. |
757 | 2 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2003, | 2 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2003, |
759 | 3 | 2004, 2007, 2009, 2010 Free Software Foundation, Inc. | 3 | 2004, 2007, 2009, 2010, 2011 Free Software Foundation, Inc. |
760 | 4 | Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu) | 4 | Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu) |
761 | 5 | 5 | ||
762 | 6 | This file is part of GCC. | 6 | This file is part of GCC. |
763 | @@ -199,6 +199,10 @@ | |||
764 | 199 | #define LD_INIT_SWITCH "-init" | 199 | #define LD_INIT_SWITCH "-init" |
765 | 200 | #define LD_FINI_SWITCH "-fini" | 200 | #define LD_FINI_SWITCH "-fini" |
766 | 201 | 201 | ||
767 | 202 | /* From Tru64 UNIX Object File and Symbol Table Format Specification, | ||
768 | 203 | 2.3.5 Alignment, p.19. */ | ||
769 | 204 | #define MAX_OFILE_ALIGNMENT (64 * 1024 * BITS_PER_UNIT) | ||
770 | 205 | |||
771 | 202 | /* Select a format to encode pointers in exception handling data. CODE | 206 | /* Select a format to encode pointers in exception handling data. CODE |
772 | 203 | is 0 for data, 1 for code labels, 2 for function pointers. GLOBAL is | 207 | is 0 for data, 1 for code labels, 2 for function pointers. GLOBAL is |
773 | 204 | true if the symbol may be affected by dynamic relocations. | 208 | true if the symbol may be affected by dynamic relocations. |
774 | 205 | 209 | ||
775 | === modified file 'gcc/config/i386/predicates.md' | |||
776 | --- gcc/config/i386/predicates.md 2010-06-21 13:52:07 +0000 | |||
777 | +++ gcc/config/i386/predicates.md 2011-04-28 16:44:05 +0000 | |||
778 | @@ -990,13 +990,8 @@ | |||
779 | 990 | ;; Return 1 if OP is a comparison that can be used in the CMPSS/CMPPS insns. | 990 | ;; Return 1 if OP is a comparison that can be used in the CMPSS/CMPPS insns. |
780 | 991 | ;; The first set are supported directly; the second set can't be done with | 991 | ;; The first set are supported directly; the second set can't be done with |
781 | 992 | ;; full IEEE support, i.e. NaNs. | 992 | ;; full IEEE support, i.e. NaNs. |
782 | 993 | ;; | ||
783 | 994 | ;; ??? It would seem that we have a lot of uses of this predicate that pass | ||
784 | 995 | ;; it the wrong mode. We got away with this because the old function didn't | ||
785 | 996 | ;; check the mode at all. Mirror that for now by calling this a special | ||
786 | 997 | ;; predicate. | ||
787 | 998 | 993 | ||
789 | 999 | (define_special_predicate "sse_comparison_operator" | 994 | (define_predicate "sse_comparison_operator" |
790 | 1000 | (match_code "eq,lt,le,unordered,ne,unge,ungt,ordered")) | 995 | (match_code "eq,lt,le,unordered,ne,unge,ungt,ordered")) |
791 | 1001 | 996 | ||
792 | 1002 | ;; Return 1 if OP is a comparison operator that can be issued by | 997 | ;; Return 1 if OP is a comparison operator that can be issued by |
793 | 1003 | 998 | ||
794 | === modified file 'gcc/config/i386/sse.md' | |||
795 | --- gcc/config/i386/sse.md 2011-03-03 21:11:16 +0000 | |||
796 | +++ gcc/config/i386/sse.md 2011-04-28 16:44:05 +0000 | |||
797 | @@ -1484,7 +1484,7 @@ | |||
798 | 1484 | (set_attr "mode" "<MODE>")]) | 1484 | (set_attr "mode" "<MODE>")]) |
799 | 1485 | 1485 | ||
800 | 1486 | (define_insn "avx_cmps<ssemodesuffixf2c><mode>3" | 1486 | (define_insn "avx_cmps<ssemodesuffixf2c><mode>3" |
802 | 1487 | [(set (match_operand:SSEMODEF2P 0 "register_operand" "") | 1487 | [(set (match_operand:SSEMODEF2P 0 "register_operand" "=x") |
803 | 1488 | (vec_merge:SSEMODEF2P | 1488 | (vec_merge:SSEMODEF2P |
804 | 1489 | (unspec:SSEMODEF2P | 1489 | (unspec:SSEMODEF2P |
805 | 1490 | [(match_operand:SSEMODEF2P 1 "register_operand" "x") | 1490 | [(match_operand:SSEMODEF2P 1 "register_operand" "x") |
806 | @@ -3934,7 +3934,7 @@ | |||
807 | 3934 | (define_insn "*vec_concatv2sf_avx" | 3934 | (define_insn "*vec_concatv2sf_avx" |
808 | 3935 | [(set (match_operand:V2SF 0 "register_operand" "=x,x,x,*y ,*y") | 3935 | [(set (match_operand:V2SF 0 "register_operand" "=x,x,x,*y ,*y") |
809 | 3936 | (vec_concat:V2SF | 3936 | (vec_concat:V2SF |
811 | 3937 | (match_operand:SF 1 "nonimmediate_operand" " x,x,m, x , m") | 3937 | (match_operand:SF 1 "nonimmediate_operand" " x,x,m, 0 , m") |
812 | 3938 | (match_operand:SF 2 "vector_move_operand" " x,m,C,*ym, C")))] | 3938 | (match_operand:SF 2 "vector_move_operand" " x,m,C,*ym, C")))] |
813 | 3939 | "TARGET_AVX" | 3939 | "TARGET_AVX" |
814 | 3940 | "@ | 3940 | "@ |
815 | @@ -4023,13 +4023,15 @@ | |||
816 | 4023 | DONE; | 4023 | DONE; |
817 | 4024 | }) | 4024 | }) |
818 | 4025 | 4025 | ||
819 | 4026 | ;; Avoid combining registers from different units in a single alternative, | ||
820 | 4027 | ;; see comment above inline_secondary_memory_needed function in i386.c | ||
821 | 4026 | (define_insn "*vec_set<mode>_0_avx" | 4028 | (define_insn "*vec_set<mode>_0_avx" |
823 | 4027 | [(set (match_operand:SSEMODE4S 0 "nonimmediate_operand" "=x,x, x,x, x,m") | 4029 | [(set (match_operand:SSEMODE4S 0 "nonimmediate_operand" "=x,x, x,x, x,m, m,m") |
824 | 4028 | (vec_merge:SSEMODE4S | 4030 | (vec_merge:SSEMODE4S |
825 | 4029 | (vec_duplicate:SSEMODE4S | 4031 | (vec_duplicate:SSEMODE4S |
826 | 4030 | (match_operand:<ssescalarmode> 2 | 4032 | (match_operand:<ssescalarmode> 2 |
829 | 4031 | "general_operand" " x,m,*r,x,*rm,x*rfF")) | 4033 | "general_operand" " x,m,*r,x,*rm,x,*r,fF")) |
830 | 4032 | (match_operand:SSEMODE4S 1 "vector_move_operand" " C,C, C,x, x,0") | 4034 | (match_operand:SSEMODE4S 1 "vector_move_operand" " C,C, C,x, x,0, 0,0") |
831 | 4033 | (const_int 1)))] | 4035 | (const_int 1)))] |
832 | 4034 | "TARGET_AVX" | 4036 | "TARGET_AVX" |
833 | 4035 | "@ | 4037 | "@ |
834 | @@ -4038,20 +4040,24 @@ | |||
835 | 4038 | vmovd\t{%2, %0|%0, %2} | 4040 | vmovd\t{%2, %0|%0, %2} |
836 | 4039 | vmovss\t{%2, %1, %0|%0, %1, %2} | 4041 | vmovss\t{%2, %1, %0|%0, %1, %2} |
837 | 4040 | vpinsrd\t{$0, %2, %1, %0|%0, %1, %2, 0} | 4042 | vpinsrd\t{$0, %2, %1, %0|%0, %1, %2, 0} |
838 | 4043 | # | ||
839 | 4044 | # | ||
840 | 4041 | #" | 4045 | #" |
844 | 4042 | [(set_attr "type" "sselog,ssemov,ssemov,ssemov,sselog,*") | 4046 | [(set_attr "type" "sselog,ssemov,ssemov,ssemov,sselog,*,*,*") |
845 | 4043 | (set_attr "prefix_extra" "*,*,*,*,1,*") | 4047 | (set_attr "prefix_extra" "*,*,*,*,1,*,*,*") |
846 | 4044 | (set_attr "length_immediate" "*,*,*,*,1,*") | 4048 | (set_attr "length_immediate" "*,*,*,*,1,*,*,*") |
847 | 4045 | (set_attr "prefix" "vex") | 4049 | (set_attr "prefix" "vex") |
849 | 4046 | (set_attr "mode" "SF,<ssescalarmode>,SI,SF,TI,*")]) | 4050 | (set_attr "mode" "SF,<ssescalarmode>,SI,SF,TI,*,*,*")]) |
850 | 4047 | 4051 | ||
851 | 4052 | ;; Avoid combining registers from different units in a single alternative, | ||
852 | 4053 | ;; see comment above inline_secondary_memory_needed function in i386.c | ||
853 | 4048 | (define_insn "*vec_set<mode>_0_sse4_1" | 4054 | (define_insn "*vec_set<mode>_0_sse4_1" |
855 | 4049 | [(set (match_operand:SSEMODE4S 0 "nonimmediate_operand" "=x,x, x,x, x,m") | 4055 | [(set (match_operand:SSEMODE4S 0 "nonimmediate_operand" "=x,x, x,x, x, m,m") |
856 | 4050 | (vec_merge:SSEMODE4S | 4056 | (vec_merge:SSEMODE4S |
857 | 4051 | (vec_duplicate:SSEMODE4S | 4057 | (vec_duplicate:SSEMODE4S |
858 | 4052 | (match_operand:<ssescalarmode> 2 | 4058 | (match_operand:<ssescalarmode> 2 |
861 | 4053 | "general_operand" " x,m,*r,x,*rm,*rfF")) | 4059 | "general_operand" " x,m,*r,x,*rm,*r,fF")) |
862 | 4054 | (match_operand:SSEMODE4S 1 "vector_move_operand" " C,C, C,0, 0,0") | 4060 | (match_operand:SSEMODE4S 1 "vector_move_operand" " C,C, C,0, 0, 0,0") |
863 | 4055 | (const_int 1)))] | 4061 | (const_int 1)))] |
864 | 4056 | "TARGET_SSE4_1" | 4062 | "TARGET_SSE4_1" |
865 | 4057 | "@ | 4063 | "@ |
866 | @@ -4060,44 +4066,53 @@ | |||
867 | 4060 | movd\t{%2, %0|%0, %2} | 4066 | movd\t{%2, %0|%0, %2} |
868 | 4061 | movss\t{%2, %0|%0, %2} | 4067 | movss\t{%2, %0|%0, %2} |
869 | 4062 | pinsrd\t{$0, %2, %0|%0, %2, 0} | 4068 | pinsrd\t{$0, %2, %0|%0, %2, 0} |
870 | 4069 | # | ||
871 | 4063 | #" | 4070 | #" |
876 | 4064 | [(set_attr "type" "sselog,ssemov,ssemov,ssemov,sselog,*") | 4071 | [(set_attr "type" "sselog,ssemov,ssemov,ssemov,sselog,*,*") |
877 | 4065 | (set_attr "prefix_extra" "*,*,*,*,1,*") | 4072 | (set_attr "prefix_extra" "*,*,*,*,1,*,*") |
878 | 4066 | (set_attr "length_immediate" "*,*,*,*,1,*") | 4073 | (set_attr "length_immediate" "*,*,*,*,1,*,*") |
879 | 4067 | (set_attr "mode" "SF,<ssescalarmode>,SI,SF,TI,*")]) | 4074 | (set_attr "mode" "SF,<ssescalarmode>,SI,SF,TI,*,*")]) |
880 | 4068 | 4075 | ||
881 | 4076 | ;; Avoid combining registers from different units in a single alternative, | ||
882 | 4077 | ;; see comment above inline_secondary_memory_needed function in i386.c | ||
883 | 4069 | (define_insn "*vec_set<mode>_0_sse2" | 4078 | (define_insn "*vec_set<mode>_0_sse2" |
885 | 4070 | [(set (match_operand:SSEMODE4S 0 "nonimmediate_operand" "=x, x,x,m") | 4079 | [(set (match_operand:SSEMODE4S 0 "nonimmediate_operand" "=x, x,x,m, m,m") |
886 | 4071 | (vec_merge:SSEMODE4S | 4080 | (vec_merge:SSEMODE4S |
887 | 4072 | (vec_duplicate:SSEMODE4S | 4081 | (vec_duplicate:SSEMODE4S |
888 | 4073 | (match_operand:<ssescalarmode> 2 | 4082 | (match_operand:<ssescalarmode> 2 |
891 | 4074 | "general_operand" " m,*r,x,x*rfF")) | 4083 | "general_operand" " m,*r,x,x,*r,fF")) |
892 | 4075 | (match_operand:SSEMODE4S 1 "vector_move_operand" " C, C,0,0") | 4084 | (match_operand:SSEMODE4S 1 "vector_move_operand" " C, C,0,0, 0,0") |
893 | 4076 | (const_int 1)))] | 4085 | (const_int 1)))] |
894 | 4077 | "TARGET_SSE2" | 4086 | "TARGET_SSE2" |
895 | 4078 | "@ | 4087 | "@ |
896 | 4079 | mov<ssescalarmodesuffix2s>\t{%2, %0|%0, %2} | 4088 | mov<ssescalarmodesuffix2s>\t{%2, %0|%0, %2} |
897 | 4080 | movd\t{%2, %0|%0, %2} | 4089 | movd\t{%2, %0|%0, %2} |
898 | 4081 | movss\t{%2, %0|%0, %2} | 4090 | movss\t{%2, %0|%0, %2} |
899 | 4091 | # | ||
900 | 4092 | # | ||
901 | 4082 | #" | 4093 | #" |
902 | 4083 | [(set_attr "type" "ssemov") | 4094 | [(set_attr "type" "ssemov") |
904 | 4084 | (set_attr "mode" "<ssescalarmode>,SI,SF,*")]) | 4095 | (set_attr "mode" "<ssescalarmode>,SI,SF,*,*,*")]) |
905 | 4085 | 4096 | ||
906 | 4097 | ;; Avoid combining registers from different units in a single alternative, | ||
907 | 4098 | ;; see comment above inline_secondary_memory_needed function in i386.c | ||
908 | 4086 | (define_insn "vec_set<mode>_0" | 4099 | (define_insn "vec_set<mode>_0" |
910 | 4087 | [(set (match_operand:SSEMODE4S 0 "nonimmediate_operand" "=x,x,m") | 4100 | [(set (match_operand:SSEMODE4S 0 "nonimmediate_operand" "=x,x,m, m,m") |
911 | 4088 | (vec_merge:SSEMODE4S | 4101 | (vec_merge:SSEMODE4S |
912 | 4089 | (vec_duplicate:SSEMODE4S | 4102 | (vec_duplicate:SSEMODE4S |
913 | 4090 | (match_operand:<ssescalarmode> 2 | 4103 | (match_operand:<ssescalarmode> 2 |
916 | 4091 | "general_operand" " m,x,x*rfF")) | 4104 | "general_operand" " m,x,x,*r,fF")) |
917 | 4092 | (match_operand:SSEMODE4S 1 "vector_move_operand" " C,0,0") | 4105 | (match_operand:SSEMODE4S 1 "vector_move_operand" " C,0,0, 0,0") |
918 | 4093 | (const_int 1)))] | 4106 | (const_int 1)))] |
919 | 4094 | "TARGET_SSE" | 4107 | "TARGET_SSE" |
920 | 4095 | "@ | 4108 | "@ |
921 | 4096 | movss\t{%2, %0|%0, %2} | 4109 | movss\t{%2, %0|%0, %2} |
922 | 4097 | movss\t{%2, %0|%0, %2} | 4110 | movss\t{%2, %0|%0, %2} |
923 | 4111 | # | ||
924 | 4112 | # | ||
925 | 4098 | #" | 4113 | #" |
926 | 4099 | [(set_attr "type" "ssemov") | 4114 | [(set_attr "type" "ssemov") |
928 | 4100 | (set_attr "mode" "SF")]) | 4115 | (set_attr "mode" "SF,SF,*,*,*")]) |
929 | 4101 | 4116 | ||
930 | 4102 | ;; A subset is vec_setv4sf. | 4117 | ;; A subset is vec_setv4sf. |
931 | 4103 | (define_insn "*vec_setv4sf_avx" | 4118 | (define_insn "*vec_setv4sf_avx" |
932 | @@ -4143,7 +4158,16 @@ | |||
933 | 4143 | (match_operand:SI 3 "const_0_to_255_operand" "n")] | 4158 | (match_operand:SI 3 "const_0_to_255_operand" "n")] |
934 | 4144 | UNSPEC_INSERTPS))] | 4159 | UNSPEC_INSERTPS))] |
935 | 4145 | "TARGET_AVX" | 4160 | "TARGET_AVX" |
937 | 4146 | "vinsertps\t{%3, %2, %1, %0|%0, %1, %2, %3}"; | 4161 | { |
938 | 4162 | if (MEM_P (operands[2])) | ||
939 | 4163 | { | ||
940 | 4164 | unsigned count_s = INTVAL (operands[3]) >> 6; | ||
941 | 4165 | if (count_s) | ||
942 | 4166 | operands[3] = GEN_INT (INTVAL (operands[3]) & 0x3f); | ||
943 | 4167 | operands[2] = adjust_address_nv (operands[2], SFmode, count_s * 4); | ||
944 | 4168 | } | ||
945 | 4169 | return "vinsertps\t{%3, %2, %1, %0|%0, %1, %2, %3}"; | ||
946 | 4170 | } | ||
947 | 4147 | [(set_attr "type" "sselog") | 4171 | [(set_attr "type" "sselog") |
948 | 4148 | (set_attr "prefix" "vex") | 4172 | (set_attr "prefix" "vex") |
949 | 4149 | (set_attr "prefix_extra" "1") | 4173 | (set_attr "prefix_extra" "1") |
950 | @@ -4152,12 +4176,21 @@ | |||
951 | 4152 | 4176 | ||
952 | 4153 | (define_insn "sse4_1_insertps" | 4177 | (define_insn "sse4_1_insertps" |
953 | 4154 | [(set (match_operand:V4SF 0 "register_operand" "=x") | 4178 | [(set (match_operand:V4SF 0 "register_operand" "=x") |
955 | 4155 | (unspec:V4SF [(match_operand:V4SF 2 "register_operand" "x") | 4179 | (unspec:V4SF [(match_operand:V4SF 2 "nonimmediate_operand" "xm") |
956 | 4156 | (match_operand:V4SF 1 "register_operand" "0") | 4180 | (match_operand:V4SF 1 "register_operand" "0") |
957 | 4157 | (match_operand:SI 3 "const_0_to_255_operand" "n")] | 4181 | (match_operand:SI 3 "const_0_to_255_operand" "n")] |
958 | 4158 | UNSPEC_INSERTPS))] | 4182 | UNSPEC_INSERTPS))] |
959 | 4159 | "TARGET_SSE4_1" | 4183 | "TARGET_SSE4_1" |
961 | 4160 | "insertps\t{%3, %2, %0|%0, %2, %3}"; | 4184 | { |
962 | 4185 | if (MEM_P (operands[2])) | ||
963 | 4186 | { | ||
964 | 4187 | unsigned count_s = INTVAL (operands[3]) >> 6; | ||
965 | 4188 | if (count_s) | ||
966 | 4189 | operands[3] = GEN_INT (INTVAL (operands[3]) & 0x3f); | ||
967 | 4190 | operands[2] = adjust_address_nv (operands[2], SFmode, count_s * 4); | ||
968 | 4191 | } | ||
969 | 4192 | return "insertps\t{%3, %2, %0|%0, %2, %3}"; | ||
970 | 4193 | } | ||
971 | 4161 | [(set_attr "type" "sselog") | 4194 | [(set_attr "type" "sselog") |
972 | 4162 | (set_attr "prefix_data16" "1") | 4195 | (set_attr "prefix_data16" "1") |
973 | 4163 | (set_attr "prefix_extra" "1") | 4196 | (set_attr "prefix_extra" "1") |
974 | @@ -4823,6 +4856,8 @@ | |||
975 | 4823 | (set_attr "prefix" "vex") | 4856 | (set_attr "prefix" "vex") |
976 | 4824 | (set_attr "mode" "V1DF,V2DF,DF,DF,DF")]) | 4857 | (set_attr "mode" "V1DF,V2DF,DF,DF,DF")]) |
977 | 4825 | 4858 | ||
978 | 4859 | ;; Avoid combining registers from different units in a single alternative, | ||
979 | 4860 | ;; see comment above inline_secondary_memory_needed function in i386.c | ||
980 | 4826 | (define_insn "sse2_storehpd" | 4861 | (define_insn "sse2_storehpd" |
981 | 4827 | [(set (match_operand:DF 0 "nonimmediate_operand" "=m,x,x,*f,r") | 4862 | [(set (match_operand:DF 0 "nonimmediate_operand" "=m,x,x,*f,r") |
982 | 4828 | (vec_select:DF | 4863 | (vec_select:DF |
983 | @@ -4926,6 +4961,8 @@ | |||
984 | 4926 | (set_attr "prefix" "vex") | 4961 | (set_attr "prefix" "vex") |
985 | 4927 | (set_attr "mode" "V1DF,V2DF,DF,DF,DF")]) | 4962 | (set_attr "mode" "V1DF,V2DF,DF,DF,DF")]) |
986 | 4928 | 4963 | ||
987 | 4964 | ;; Avoid combining registers from different units in a single alternative, | ||
988 | 4965 | ;; see comment above inline_secondary_memory_needed function in i386.c | ||
989 | 4929 | (define_insn "sse2_loadhpd" | 4966 | (define_insn "sse2_loadhpd" |
990 | 4930 | [(set (match_operand:V2DF 0 "nonimmediate_operand" "=x,x,x,o,o,o") | 4967 | [(set (match_operand:V2DF 0 "nonimmediate_operand" "=x,x,x,o,o,o") |
991 | 4931 | (vec_concat:V2DF | 4968 | (vec_concat:V2DF |
992 | @@ -4999,6 +5036,8 @@ | |||
993 | 4999 | (set_attr "prefix" "vex") | 5036 | (set_attr "prefix" "vex") |
994 | 5000 | (set_attr "mode" "DF,V1DF,V1DF,V1DF,DF,DF,DF")]) | 5037 | (set_attr "mode" "DF,V1DF,V1DF,V1DF,DF,DF,DF")]) |
995 | 5001 | 5038 | ||
996 | 5039 | ;; Avoid combining registers from different units in a single alternative, | ||
997 | 5040 | ;; see comment above inline_secondary_memory_needed function in i386.c | ||
998 | 5002 | (define_insn "sse2_loadlpd" | 5041 | (define_insn "sse2_loadlpd" |
999 | 5003 | [(set (match_operand:V2DF 0 "nonimmediate_operand" "=x,x,x,x,x,m,m,m") | 5042 | [(set (match_operand:V2DF 0 "nonimmediate_operand" "=x,x,x,x,x,m,m,m") |
1000 | 5004 | (vec_concat:V2DF | 5043 | (vec_concat:V2DF |
1001 | 5005 | 5044 | ||
1002 | === modified file 'gcc/config/pa/pa.c' | |||
1003 | --- gcc/config/pa/pa.c 2010-12-19 19:50:17 +0000 | |||
1004 | +++ gcc/config/pa/pa.c 2011-04-28 16:44:05 +0000 | |||
1005 | @@ -1635,15 +1635,12 @@ | |||
1006 | 1635 | return 1; | 1635 | return 1; |
1007 | 1636 | } | 1636 | } |
1008 | 1637 | /* Handle secondary reloads for SAR. These occur when trying to load | 1637 | /* Handle secondary reloads for SAR. These occur when trying to load |
1010 | 1638 | the SAR from memory, FP register, or with a constant. */ | 1638 | the SAR from memory or a constant. */ |
1011 | 1639 | else if (scratch_reg | 1639 | else if (scratch_reg |
1012 | 1640 | && GET_CODE (operand0) == REG | 1640 | && GET_CODE (operand0) == REG |
1013 | 1641 | && REGNO (operand0) < FIRST_PSEUDO_REGISTER | 1641 | && REGNO (operand0) < FIRST_PSEUDO_REGISTER |
1014 | 1642 | && REGNO_REG_CLASS (REGNO (operand0)) == SHIFT_REGS | 1642 | && REGNO_REG_CLASS (REGNO (operand0)) == SHIFT_REGS |
1019 | 1643 | && (GET_CODE (operand1) == MEM | 1643 | && (GET_CODE (operand1) == MEM || GET_CODE (operand1) == CONST_INT)) |
1016 | 1644 | || GET_CODE (operand1) == CONST_INT | ||
1017 | 1645 | || (GET_CODE (operand1) == REG | ||
1018 | 1646 | && FP_REG_CLASS_P (REGNO_REG_CLASS (REGNO (operand1)))))) | ||
1020 | 1647 | { | 1644 | { |
1021 | 1648 | /* D might not fit in 14 bits either; for such cases load D into | 1645 | /* D might not fit in 14 bits either; for such cases load D into |
1022 | 1649 | scratch reg. */ | 1646 | scratch reg. */ |
1023 | @@ -5697,6 +5694,10 @@ | |||
1024 | 5697 | fputc ('\n', asm_out_file); | 5694 | fputc ('\n', asm_out_file); |
1025 | 5698 | } | 5695 | } |
1026 | 5699 | 5696 | ||
1027 | 5700 | 5697 | ||
1028 | 5698 | /* Inform reload about cases where moving X with a mode MODE to a register in | ||
1029 | 5699 | RCLASS requires an extra scratch or immediate register. Return the class | ||
1030 | 5700 | needed for the immediate register. */ | ||
1031 | 5701 | |||
1032 | 5701 | static enum reg_class | 5702 | static enum reg_class |
1033 | 5702 | pa_secondary_reload (bool in_p, rtx x, enum reg_class rclass, | 5703 | pa_secondary_reload (bool in_p, rtx x, enum reg_class rclass, |
1034 | 5703 | enum machine_mode mode, secondary_reload_info *sri) | 5704 | enum machine_mode mode, secondary_reload_info *sri) |
1035 | @@ -5796,20 +5797,27 @@ | |||
1036 | 5796 | return NO_REGS; | 5797 | return NO_REGS; |
1037 | 5797 | } | 5798 | } |
1038 | 5798 | 5799 | ||
1042 | 5799 | /* We need a secondary register (GPR) for copies between the SAR | 5800 | /* A SAR<->FP register copy requires an intermediate general register |
1043 | 5800 | and anything other than a general register. */ | 5801 | and secondary memory. We need a secondary reload with a general |
1044 | 5801 | if (rclass == SHIFT_REGS && (regno <= 0 || regno >= 32)) | 5802 | scratch register for spills. */ |
1045 | 5803 | if (rclass == SHIFT_REGS) | ||
1046 | 5802 | { | 5804 | { |
1049 | 5803 | sri->icode = in_p ? reload_in_optab[mode] : reload_out_optab[mode]; | 5805 | /* Handle spill. */ |
1050 | 5804 | return NO_REGS; | 5806 | if (regno >= FIRST_PSEUDO_REGISTER || regno < 0) |
1051 | 5807 | { | ||
1052 | 5808 | sri->icode = in_p ? reload_in_optab[mode] : reload_out_optab[mode]; | ||
1053 | 5809 | return NO_REGS; | ||
1054 | 5810 | } | ||
1055 | 5811 | |||
1056 | 5812 | /* Handle FP copy. */ | ||
1057 | 5813 | if (FP_REG_CLASS_P (REGNO_REG_CLASS (regno))) | ||
1058 | 5814 | return GENERAL_REGS; | ||
1059 | 5805 | } | 5815 | } |
1060 | 5806 | 5816 | ||
1061 | 5807 | /* A SAR<->FP register copy requires a secondary register (GPR) as | ||
1062 | 5808 | well as secondary memory. */ | ||
1063 | 5809 | if (regno >= 0 && regno < FIRST_PSEUDO_REGISTER | 5817 | if (regno >= 0 && regno < FIRST_PSEUDO_REGISTER |
1067 | 5810 | && (REGNO_REG_CLASS (regno) == SHIFT_REGS | 5818 | && REGNO_REG_CLASS (regno) == SHIFT_REGS |
1068 | 5811 | && FP_REG_CLASS_P (rclass))) | 5819 | && FP_REG_CLASS_P (rclass)) |
1069 | 5812 | sri->icode = in_p ? reload_in_optab[mode] : reload_out_optab[mode]; | 5820 | return GENERAL_REGS; |
1070 | 5813 | 5821 | ||
1071 | 5814 | return NO_REGS; | 5822 | return NO_REGS; |
1072 | 5815 | } | 5823 | } |
1073 | 5816 | 5824 | ||
1074 | === modified file 'gcc/config/pa/pa.h' | |||
1075 | --- gcc/config/pa/pa.h 2010-08-08 18:55:40 +0000 | |||
1076 | +++ gcc/config/pa/pa.h 2011-04-28 16:44:05 +0000 | |||
1077 | @@ -1360,6 +1360,7 @@ | |||
1078 | 1360 | Other copies are reasonably cheap. */ | 1360 | Other copies are reasonably cheap. */ |
1079 | 1361 | #define REGISTER_MOVE_COST(MODE, CLASS1, CLASS2) \ | 1361 | #define REGISTER_MOVE_COST(MODE, CLASS1, CLASS2) \ |
1080 | 1362 | (CLASS1 == SHIFT_REGS ? 0x100 \ | 1362 | (CLASS1 == SHIFT_REGS ? 0x100 \ |
1081 | 1363 | : CLASS2 == SHIFT_REGS && FP_REG_CLASS_P (CLASS1) ? 18 \ | ||
1082 | 1363 | : FP_REG_CLASS_P (CLASS1) && ! FP_REG_CLASS_P (CLASS2) ? 16 \ | 1364 | : FP_REG_CLASS_P (CLASS1) && ! FP_REG_CLASS_P (CLASS2) ? 16 \ |
1083 | 1364 | : FP_REG_CLASS_P (CLASS2) && ! FP_REG_CLASS_P (CLASS1) ? 16 \ | 1365 | : FP_REG_CLASS_P (CLASS2) && ! FP_REG_CLASS_P (CLASS1) ? 16 \ |
1084 | 1365 | : 2) | 1366 | : 2) |
1085 | 1366 | 1367 | ||
1086 | === modified file 'gcc/config/pa/pa32-regs.h' | |||
1087 | --- gcc/config/pa/pa32-regs.h 2009-04-21 18:03:23 +0000 | |||
1088 | +++ gcc/config/pa/pa32-regs.h 2011-04-28 16:44:05 +0000 | |||
1089 | @@ -226,6 +226,7 @@ | |||
1090 | 226 | registers. */ | 226 | registers. */ |
1091 | 227 | #define HARD_REGNO_MODE_OK(REGNO, MODE) \ | 227 | #define HARD_REGNO_MODE_OK(REGNO, MODE) \ |
1092 | 228 | ((REGNO) == 0 ? (MODE) == CCmode || (MODE) == CCFPmode \ | 228 | ((REGNO) == 0 ? (MODE) == CCmode || (MODE) == CCFPmode \ |
1093 | 229 | : (REGNO) == 88 ? SCALAR_INT_MODE_P (MODE) \ | ||
1094 | 229 | : !TARGET_PA_11 && FP_REGNO_P (REGNO) \ | 230 | : !TARGET_PA_11 && FP_REGNO_P (REGNO) \ |
1095 | 230 | ? (VALID_FP_MODE_P (MODE) \ | 231 | ? (VALID_FP_MODE_P (MODE) \ |
1096 | 231 | && (GET_MODE_SIZE (MODE) <= 8 \ | 232 | && (GET_MODE_SIZE (MODE) <= 8 \ |
1097 | 232 | 233 | ||
1098 | === modified file 'gcc/config/pa/pa64-regs.h' | |||
1099 | --- gcc/config/pa/pa64-regs.h 2009-02-20 15:20:38 +0000 | |||
1100 | +++ gcc/config/pa/pa64-regs.h 2011-04-28 16:44:05 +0000 | |||
1101 | @@ -161,10 +161,11 @@ | |||
1102 | 161 | 161 | ||
1103 | 162 | /* Value is 1 if hard register REGNO can hold a value of machine-mode MODE. | 162 | /* Value is 1 if hard register REGNO can hold a value of machine-mode MODE. |
1104 | 163 | On the HP-PA, the cpu registers can hold any mode. We | 163 | On the HP-PA, the cpu registers can hold any mode. We |
1106 | 164 | force this to be an even register is it cannot hold the full mode. */ | 164 | force this to be an even register if it cannot hold the full mode. */ |
1107 | 165 | #define HARD_REGNO_MODE_OK(REGNO, MODE) \ | 165 | #define HARD_REGNO_MODE_OK(REGNO, MODE) \ |
1108 | 166 | ((REGNO) == 0 \ | 166 | ((REGNO) == 0 \ |
1109 | 167 | ? (MODE) == CCmode || (MODE) == CCFPmode \ | 167 | ? (MODE) == CCmode || (MODE) == CCFPmode \ |
1110 | 168 | : (REGNO) == 60 ? SCALAR_INT_MODE_P (MODE) \ | ||
1111 | 168 | /* Make wide modes be in aligned registers. */ \ | 169 | /* Make wide modes be in aligned registers. */ \ |
1112 | 169 | : FP_REGNO_P (REGNO) \ | 170 | : FP_REGNO_P (REGNO) \ |
1113 | 170 | ? (VALID_FP_MODE_P (MODE) \ | 171 | ? (VALID_FP_MODE_P (MODE) \ |
1114 | 171 | 172 | ||
1115 | === modified file 'gcc/config/rx/rx.md' | |||
1116 | --- gcc/config/rx/rx.md 2011-03-16 11:47:59 +0000 | |||
1117 | +++ gcc/config/rx/rx.md 2011-04-28 16:44:05 +0000 | |||
1118 | @@ -2031,6 +2031,14 @@ | |||
1119 | 2031 | rtx addr2 = gen_rtx_REG (SImode, 2); | 2031 | rtx addr2 = gen_rtx_REG (SImode, 2); |
1120 | 2032 | rtx len = gen_rtx_REG (SImode, 3); | 2032 | rtx len = gen_rtx_REG (SImode, 3); |
1121 | 2033 | 2033 | ||
1122 | 2034 | /* Do not use when the source or destination are volatile - the SMOVF | ||
1123 | 2035 | instruction will read and write in word sized blocks, which may be | ||
1124 | 2036 | outside of the valid address range. */ | ||
1125 | 2037 | if (MEM_P (operands[0]) && MEM_VOLATILE_P (operands[0])) | ||
1126 | 2038 | FAIL; | ||
1127 | 2039 | if (MEM_P (operands[1]) && MEM_VOLATILE_P (operands[1])) | ||
1128 | 2040 | FAIL; | ||
1129 | 2041 | |||
1130 | 2034 | if (REG_P (operands[0]) && (REGNO (operands[0]) == 2 | 2042 | if (REG_P (operands[0]) && (REGNO (operands[0]) == 2 |
1131 | 2035 | || REGNO (operands[0]) == 3)) | 2043 | || REGNO (operands[0]) == 3)) |
1132 | 2036 | FAIL; | 2044 | FAIL; |
1133 | @@ -2040,6 +2048,7 @@ | |||
1134 | 2040 | if (REG_P (operands[2]) && (REGNO (operands[2]) == 1 | 2048 | if (REG_P (operands[2]) && (REGNO (operands[2]) == 1 |
1135 | 2041 | || REGNO (operands[2]) == 2)) | 2049 | || REGNO (operands[2]) == 2)) |
1136 | 2042 | FAIL; | 2050 | FAIL; |
1137 | 2051 | |||
1138 | 2043 | emit_move_insn (addr1, force_operand (XEXP (operands[0], 0), NULL_RTX)); | 2052 | emit_move_insn (addr1, force_operand (XEXP (operands[0], 0), NULL_RTX)); |
1139 | 2044 | emit_move_insn (addr2, force_operand (XEXP (operands[1], 0), NULL_RTX)); | 2053 | emit_move_insn (addr2, force_operand (XEXP (operands[1], 0), NULL_RTX)); |
1140 | 2045 | emit_move_insn (len, force_operand (operands[2], NULL_RTX)); | 2054 | emit_move_insn (len, force_operand (operands[2], NULL_RTX)); |
1141 | 2046 | 2055 | ||
1142 | === modified file 'gcc/cp/ChangeLog' | |||
1143 | --- gcc/cp/ChangeLog 2011-03-28 15:06:28 +0000 | |||
1144 | +++ gcc/cp/ChangeLog 2011-04-28 16:44:05 +0000 | |||
1145 | @@ -1,3 +1,50 @@ | |||
1146 | 1 | 2011-04-28 Release Manager | ||
1147 | 2 | |||
1148 | 3 | * GCC 4.5.3 released. | ||
1149 | 4 | |||
1150 | 5 | 2011-04-26 Dodji Seketeli <dodji@redhat.com> | ||
1151 | 6 | |||
1152 | 7 | PR c++/46824 | ||
1153 | 8 | * call.c (add_builtin_candidate)<case INDIRECT_REF>: The type of | ||
1154 | 9 | the argument of the indirection operator should not be dependent. | ||
1155 | 10 | Fix the comment. | ||
1156 | 11 | |||
1157 | 12 | 2011-04-26 Jason Merrill <jason@redhat.com> | ||
1158 | 13 | |||
1159 | 14 | PR c++/42687 | ||
1160 | 15 | * parser.c (cp_parser_primary_expression): Set *idk to | ||
1161 | 16 | CP_ID_KIND_NONE for a parenthesized identifier. | ||
1162 | 17 | |||
1163 | 18 | 2011-04-20 Jason Merrill <jason@redhat.com> | ||
1164 | 19 | |||
1165 | 20 | PR c++/48594 | ||
1166 | 21 | * decl2.c (build_offset_ref_call_from_tree): Fix calling a functor | ||
1167 | 22 | or pointer to (non-member) function. | ||
1168 | 23 | |||
1169 | 24 | 2011-04-19 Jason Merrill <jason@redhat.com> | ||
1170 | 25 | |||
1171 | 26 | PR c++/46304 | ||
1172 | 27 | * typeck.c (cp_build_binary_op): Fold COMPLEX_EXPR. | ||
1173 | 28 | |||
1174 | 29 | 2011-04-19 Jason Merrill <jason@redhat.com> | ||
1175 | 30 | |||
1176 | 31 | PR c++/45267 | ||
1177 | 32 | * decl.c (duplicate_decls): Keep always_inline attribute | ||
1178 | 33 | in sync with DECL_DISREGARD_INLINE_LIMITS. | ||
1179 | 34 | |||
1180 | 35 | 2011-04-18 Richard Guenther <rguenther@suse.de> | ||
1181 | 36 | |||
1182 | 37 | Backported from 4.6 branch | ||
1183 | 38 | 2011-03-11 Jakub Jelinek <jakub@redhat.com> | ||
1184 | 39 | |||
1185 | 40 | PR c++/48035 | ||
1186 | 41 | * init.c (build_zero_init_1): Extracted from build_zero_init. | ||
1187 | 42 | Add FIELD_SIZE argument, if non-NULL and field bit_position | ||
1188 | 43 | as not smaller than that, don't add that field's initializer. | ||
1189 | 44 | Pass DECL_SIZE as last argument to build_zero_init_1 | ||
1190 | 45 | for DECL_FIELD_IS_BASE fields. | ||
1191 | 46 | (build_zero_init): Use build_zero_init_1. | ||
1192 | 47 | |||
1193 | 1 | 2011-03-28 Jason Merrill <jason@redhat.com> | 48 | 2011-03-28 Jason Merrill <jason@redhat.com> |
1194 | 2 | 49 | ||
1195 | 3 | Revert: | 50 | Revert: |
1196 | 4 | 51 | ||
1197 | === modified file 'gcc/cp/call.c' | |||
1198 | --- gcc/cp/call.c 2010-09-07 15:47:57 +0000 | |||
1199 | +++ gcc/cp/call.c 2011-04-28 16:44:05 +0000 | |||
1200 | @@ -1023,7 +1023,7 @@ | |||
1201 | 1023 | if (!expr) | 1023 | if (!expr) |
1202 | 1024 | return NULL; | 1024 | return NULL; |
1203 | 1025 | 1025 | ||
1205 | 1026 | conversions = lookup_conversions (s, /*lookup_template_convs_p=*/true); | 1026 | conversions = lookup_conversions (s); |
1206 | 1027 | if (!conversions) | 1027 | if (!conversions) |
1207 | 1028 | return NULL; | 1028 | return NULL; |
1208 | 1029 | 1029 | ||
1209 | @@ -1925,7 +1925,7 @@ | |||
1210 | 1925 | } | 1925 | } |
1211 | 1926 | return; | 1926 | return; |
1212 | 1927 | 1927 | ||
1214 | 1928 | /* 7 For every cv-qualified or cv-unqualified complete object type T, there | 1928 | /* 7 For every cv-qualified or cv-unqualified object type T, there |
1215 | 1929 | exist candidate operator functions of the form | 1929 | exist candidate operator functions of the form |
1216 | 1930 | 1930 | ||
1217 | 1931 | T& operator*(T*); | 1931 | T& operator*(T*); |
1218 | @@ -1936,6 +1936,7 @@ | |||
1219 | 1936 | 1936 | ||
1220 | 1937 | case INDIRECT_REF: | 1937 | case INDIRECT_REF: |
1221 | 1938 | if (TREE_CODE (type1) == POINTER_TYPE | 1938 | if (TREE_CODE (type1) == POINTER_TYPE |
1222 | 1939 | && !uses_template_parms (TREE_TYPE (type1)) | ||
1223 | 1939 | && (TYPE_PTROB_P (type1) | 1940 | && (TYPE_PTROB_P (type1) |
1224 | 1940 | || TREE_CODE (TREE_TYPE (type1)) == FUNCTION_TYPE)) | 1941 | || TREE_CODE (TREE_TYPE (type1)) == FUNCTION_TYPE)) |
1225 | 1941 | break; | 1942 | break; |
1226 | @@ -2376,8 +2377,7 @@ | |||
1227 | 2376 | if (i == 0 && code == MODIFY_EXPR && code2 == NOP_EXPR) | 2377 | if (i == 0 && code == MODIFY_EXPR && code2 == NOP_EXPR) |
1228 | 2377 | return; | 2378 | return; |
1229 | 2378 | 2379 | ||
1232 | 2379 | convs = lookup_conversions (argtypes[i], | 2380 | convs = lookup_conversions (argtypes[i]); |
1231 | 2380 | /*lookup_template_convs_p=*/false); | ||
1233 | 2381 | 2381 | ||
1234 | 2382 | if (code == COND_EXPR) | 2382 | if (code == COND_EXPR) |
1235 | 2383 | { | 2383 | { |
1236 | @@ -2867,8 +2867,7 @@ | |||
1237 | 2867 | reference to it)... */ | 2867 | reference to it)... */ |
1238 | 2868 | } | 2868 | } |
1239 | 2869 | else | 2869 | else |
1242 | 2870 | conv_fns = lookup_conversions (fromtype, | 2870 | conv_fns = lookup_conversions (fromtype); |
1241 | 2871 | /*lookup_template_convs_p=*/true); | ||
1243 | 2872 | } | 2871 | } |
1244 | 2873 | 2872 | ||
1245 | 2874 | candidates = 0; | 2873 | candidates = 0; |
1246 | @@ -3402,7 +3401,7 @@ | |||
1247 | 3402 | } | 3401 | } |
1248 | 3403 | } | 3402 | } |
1249 | 3404 | 3403 | ||
1251 | 3405 | convs = lookup_conversions (type, /*lookup_template_convs_p=*/true); | 3404 | convs = lookup_conversions (type); |
1252 | 3406 | 3405 | ||
1253 | 3407 | for (; convs; convs = TREE_CHAIN (convs)) | 3406 | for (; convs; convs = TREE_CHAIN (convs)) |
1254 | 3408 | { | 3407 | { |
1255 | 3409 | 3408 | ||
1256 | === modified file 'gcc/cp/cp-tree.h' | |||
1257 | --- gcc/cp/cp-tree.h 2010-04-27 22:03:06 +0000 | |||
1258 | +++ gcc/cp/cp-tree.h 2011-04-28 16:44:05 +0000 | |||
1259 | @@ -5026,7 +5026,7 @@ | |||
1260 | 5026 | extern bool at_class_scope_p (void); | 5026 | extern bool at_class_scope_p (void); |
1261 | 5027 | extern bool at_namespace_scope_p (void); | 5027 | extern bool at_namespace_scope_p (void); |
1262 | 5028 | extern tree context_for_name_lookup (tree); | 5028 | extern tree context_for_name_lookup (tree); |
1264 | 5029 | extern tree lookup_conversions (tree, bool); | 5029 | extern tree lookup_conversions (tree); |
1265 | 5030 | extern tree binfo_from_vbase (tree); | 5030 | extern tree binfo_from_vbase (tree); |
1266 | 5031 | extern tree binfo_for_vbase (tree, tree); | 5031 | extern tree binfo_for_vbase (tree, tree); |
1267 | 5032 | extern tree look_for_overrides_here (tree, tree); | 5032 | extern tree look_for_overrides_here (tree, tree); |
1268 | 5033 | 5033 | ||
1269 | === modified file 'gcc/cp/cvt.c' | |||
1270 | --- gcc/cp/cvt.c 2010-02-20 21:32:06 +0000 | |||
1271 | +++ gcc/cp/cvt.c 2011-04-28 16:44:05 +0000 | |||
1272 | @@ -1199,9 +1199,7 @@ | |||
1273 | 1199 | if (!TYPE_HAS_CONVERSION (basetype)) | 1199 | if (!TYPE_HAS_CONVERSION (basetype)) |
1274 | 1200 | return NULL_TREE; | 1200 | return NULL_TREE; |
1275 | 1201 | 1201 | ||
1279 | 1202 | for (conv = lookup_conversions (basetype, /*lookup_template_convs_p=*/true); | 1202 | for (conv = lookup_conversions (basetype); conv; conv = TREE_CHAIN (conv)) |
1277 | 1203 | conv; | ||
1278 | 1204 | conv = TREE_CHAIN (conv)) | ||
1280 | 1205 | { | 1203 | { |
1281 | 1206 | int win = 0; | 1204 | int win = 0; |
1282 | 1207 | tree candidate; | 1205 | tree candidate; |
1283 | 1208 | 1206 | ||
1284 | === modified file 'gcc/cp/decl.c' | |||
1285 | --- gcc/cp/decl.c 2011-04-06 12:29:08 +0000 | |||
1286 | +++ gcc/cp/decl.c 2011-04-28 16:44:05 +0000 | |||
1287 | @@ -1975,6 +1975,19 @@ | |||
1288 | 1975 | 1975 | ||
1289 | 1976 | /* [temp.expl.spec/14] We don't inline explicit specialization | 1976 | /* [temp.expl.spec/14] We don't inline explicit specialization |
1290 | 1977 | just because the primary template says so. */ | 1977 | just because the primary template says so. */ |
1291 | 1978 | |||
1292 | 1979 | /* But still keep DECL_DISREGARD_INLINE_LIMITS in sync with | ||
1293 | 1980 | the always_inline attribute. */ | ||
1294 | 1981 | if (DECL_DISREGARD_INLINE_LIMITS (olddecl) | ||
1295 | 1982 | && !DECL_DISREGARD_INLINE_LIMITS (newdecl)) | ||
1296 | 1983 | { | ||
1297 | 1984 | if (DECL_DECLARED_INLINE_P (newdecl)) | ||
1298 | 1985 | DECL_DISREGARD_INLINE_LIMITS (newdecl) = true; | ||
1299 | 1986 | else | ||
1300 | 1987 | DECL_ATTRIBUTES (newdecl) | ||
1301 | 1988 | = remove_attribute ("always_inline", | ||
1302 | 1989 | DECL_ATTRIBUTES (newdecl)); | ||
1303 | 1990 | } | ||
1304 | 1978 | } | 1991 | } |
1305 | 1979 | else if (new_defines_function && DECL_INITIAL (olddecl)) | 1992 | else if (new_defines_function && DECL_INITIAL (olddecl)) |
1306 | 1980 | { | 1993 | { |
1307 | 1981 | 1994 | ||
1308 | === modified file 'gcc/cp/decl2.c' | |||
1309 | --- gcc/cp/decl2.c 2010-03-23 22:29:53 +0000 | |||
1310 | +++ gcc/cp/decl2.c 2011-04-28 16:44:05 +0000 | |||
1311 | @@ -3911,9 +3911,12 @@ | |||
1312 | 3911 | because we depend on the form of FN. */ | 3911 | because we depend on the form of FN. */ |
1313 | 3912 | make_args_non_dependent (*args); | 3912 | make_args_non_dependent (*args); |
1314 | 3913 | object = build_non_dependent_expr (object); | 3913 | object = build_non_dependent_expr (object); |
1318 | 3914 | if (TREE_CODE (fn) == DOTSTAR_EXPR) | 3914 | if (TREE_CODE (TREE_TYPE (fn)) == METHOD_TYPE) |
1319 | 3915 | object = cp_build_unary_op (ADDR_EXPR, object, 0, tf_warning_or_error); | 3915 | { |
1320 | 3916 | VEC_safe_insert (tree, gc, *args, 0, object); | 3916 | if (TREE_CODE (fn) == DOTSTAR_EXPR) |
1321 | 3917 | object = cp_build_unary_op (ADDR_EXPR, object, 0, tf_warning_or_error); | ||
1322 | 3918 | VEC_safe_insert (tree, gc, *args, 0, object); | ||
1323 | 3919 | } | ||
1324 | 3917 | /* Now that the arguments are done, transform FN. */ | 3920 | /* Now that the arguments are done, transform FN. */ |
1325 | 3918 | fn = build_non_dependent_expr (fn); | 3921 | fn = build_non_dependent_expr (fn); |
1326 | 3919 | } | 3922 | } |
1327 | @@ -3933,7 +3936,10 @@ | |||
1328 | 3933 | VEC_safe_insert (tree, gc, *args, 0, object_addr); | 3936 | VEC_safe_insert (tree, gc, *args, 0, object_addr); |
1329 | 3934 | } | 3937 | } |
1330 | 3935 | 3938 | ||
1332 | 3936 | expr = cp_build_function_call_vec (fn, args, tf_warning_or_error); | 3939 | if (CLASS_TYPE_P (TREE_TYPE (fn))) |
1333 | 3940 | expr = build_op_call (fn, args, tf_warning_or_error); | ||
1334 | 3941 | else | ||
1335 | 3942 | expr = cp_build_function_call_vec (fn, args, tf_warning_or_error); | ||
1336 | 3937 | if (processing_template_decl && expr != error_mark_node) | 3943 | if (processing_template_decl && expr != error_mark_node) |
1337 | 3938 | expr = build_min_non_dep_call_vec (expr, orig_fn, orig_args); | 3944 | expr = build_min_non_dep_call_vec (expr, orig_fn, orig_args); |
1338 | 3939 | 3945 | ||
1339 | 3940 | 3946 | ||
1340 | === modified file 'gcc/cp/init.c' | |||
1341 | --- gcc/cp/init.c 2010-08-23 06:39:42 +0000 | |||
1342 | +++ gcc/cp/init.c 2011-04-28 16:44:05 +0000 | |||
1343 | @@ -143,10 +143,13 @@ | |||
1344 | 143 | is the number of elements in the array. If STATIC_STORAGE_P is | 143 | is the number of elements in the array. If STATIC_STORAGE_P is |
1345 | 144 | TRUE, initializers are only generated for entities for which | 144 | TRUE, initializers are only generated for entities for which |
1346 | 145 | zero-initialization does not simply mean filling the storage with | 145 | zero-initialization does not simply mean filling the storage with |
1348 | 146 | zero bytes. */ | 146 | zero bytes. FIELD_SIZE, if non-NULL, is the bit size of the field, |
1349 | 147 | subfields with bit positions at or above that bit size shouldn't | ||
1350 | 148 | be added. */ | ||
1351 | 147 | 149 | ||
1354 | 148 | tree | 150 | static tree |
1355 | 149 | build_zero_init (tree type, tree nelts, bool static_storage_p) | 151 | build_zero_init_1 (tree type, tree nelts, bool static_storage_p, |
1356 | 152 | tree field_size) | ||
1357 | 150 | { | 153 | { |
1358 | 151 | tree init = NULL_TREE; | 154 | tree init = NULL_TREE; |
1359 | 152 | 155 | ||
1360 | @@ -191,15 +194,32 @@ | |||
1361 | 191 | if (TREE_CODE (field) != FIELD_DECL) | 194 | if (TREE_CODE (field) != FIELD_DECL) |
1362 | 192 | continue; | 195 | continue; |
1363 | 193 | 196 | ||
1364 | 197 | /* Don't add virtual bases for base classes if they are beyond | ||
1365 | 198 | the size of the current field, that means it is present | ||
1366 | 199 | somewhere else in the object. */ | ||
1367 | 200 | if (field_size) | ||
1368 | 201 | { | ||
1369 | 202 | tree bitpos = bit_position (field); | ||
1370 | 203 | if (TREE_CODE (bitpos) == INTEGER_CST | ||
1371 | 204 | && !tree_int_cst_lt (bitpos, field_size)) | ||
1372 | 205 | continue; | ||
1373 | 206 | } | ||
1374 | 207 | |||
1375 | 194 | /* Note that for class types there will be FIELD_DECLs | 208 | /* Note that for class types there will be FIELD_DECLs |
1376 | 195 | corresponding to base classes as well. Thus, iterating | 209 | corresponding to base classes as well. Thus, iterating |
1377 | 196 | over TYPE_FIELDs will result in correct initialization of | 210 | over TYPE_FIELDs will result in correct initialization of |
1378 | 197 | all of the subobjects. */ | 211 | all of the subobjects. */ |
1379 | 198 | if (!static_storage_p || !zero_init_p (TREE_TYPE (field))) | 212 | if (!static_storage_p || !zero_init_p (TREE_TYPE (field))) |
1380 | 199 | { | 213 | { |
1384 | 200 | tree value = build_zero_init (TREE_TYPE (field), | 214 | tree new_field_size |
1385 | 201 | /*nelts=*/NULL_TREE, | 215 | = (DECL_FIELD_IS_BASE (field) |
1386 | 202 | static_storage_p); | 216 | && DECL_SIZE (field) |
1387 | 217 | && TREE_CODE (DECL_SIZE (field)) == INTEGER_CST) | ||
1388 | 218 | ? DECL_SIZE (field) : NULL_TREE; | ||
1389 | 219 | tree value = build_zero_init_1 (TREE_TYPE (field), | ||
1390 | 220 | /*nelts=*/NULL_TREE, | ||
1391 | 221 | static_storage_p, | ||
1392 | 222 | new_field_size); | ||
1393 | 203 | if (value) | 223 | if (value) |
1394 | 204 | CONSTRUCTOR_APPEND_ELT(v, field, value); | 224 | CONSTRUCTOR_APPEND_ELT(v, field, value); |
1395 | 205 | } | 225 | } |
1396 | @@ -247,9 +267,9 @@ | |||
1397 | 247 | ce->index = build2 (RANGE_EXPR, sizetype, size_zero_node, | 267 | ce->index = build2 (RANGE_EXPR, sizetype, size_zero_node, |
1398 | 248 | max_index); | 268 | max_index); |
1399 | 249 | 269 | ||
1403 | 250 | ce->value = build_zero_init (TREE_TYPE (type), | 270 | ce->value = build_zero_init_1 (TREE_TYPE (type), |
1404 | 251 | /*nelts=*/NULL_TREE, | 271 | /*nelts=*/NULL_TREE, |
1405 | 252 | static_storage_p); | 272 | static_storage_p, NULL_TREE); |
1406 | 253 | } | 273 | } |
1407 | 254 | 274 | ||
1408 | 255 | /* Build a constructor to contain the initializations. */ | 275 | /* Build a constructor to contain the initializations. */ |
1409 | @@ -267,6 +287,24 @@ | |||
1410 | 267 | return init; | 287 | return init; |
1411 | 268 | } | 288 | } |
1412 | 269 | 289 | ||
1413 | 290 | /* Return an expression for the zero-initialization of an object with | ||
1414 | 291 | type T. This expression will either be a constant (in the case | ||
1415 | 292 | that T is a scalar), or a CONSTRUCTOR (in the case that T is an | ||
1416 | 293 | aggregate), or NULL (in the case that T does not require | ||
1417 | 294 | initialization). In either case, the value can be used as | ||
1418 | 295 | DECL_INITIAL for a decl of the indicated TYPE; it is a valid static | ||
1419 | 296 | initializer. If NELTS is non-NULL, and TYPE is an ARRAY_TYPE, NELTS | ||
1420 | 297 | is the number of elements in the array. If STATIC_STORAGE_P is | ||
1421 | 298 | TRUE, initializers are only generated for entities for which | ||
1422 | 299 | zero-initialization does not simply mean filling the storage with | ||
1423 | 300 | zero bytes. */ | ||
1424 | 301 | |||
1425 | 302 | tree | ||
1426 | 303 | build_zero_init (tree type, tree nelts, bool static_storage_p) | ||
1427 | 304 | { | ||
1428 | 305 | return build_zero_init_1 (type, nelts, static_storage_p, NULL_TREE); | ||
1429 | 306 | } | ||
1430 | 307 | |||
1431 | 270 | /* Return a suitable initializer for value-initializing an object of type | 308 | /* Return a suitable initializer for value-initializing an object of type |
1432 | 271 | TYPE, as described in [dcl.init]. */ | 309 | TYPE, as described in [dcl.init]. */ |
1433 | 272 | 310 | ||
1434 | 273 | 311 | ||
1435 | === modified file 'gcc/cp/parser.c' | |||
1436 | --- gcc/cp/parser.c 2011-03-02 18:46:01 +0000 | |||
1437 | +++ gcc/cp/parser.c 2011-04-28 16:44:05 +0000 | |||
1438 | @@ -3325,6 +3325,12 @@ | |||
1439 | 3325 | `&A::B' might be a pointer-to-member, but `&(A::B)' is | 3325 | `&A::B' might be a pointer-to-member, but `&(A::B)' is |
1440 | 3326 | not. */ | 3326 | not. */ |
1441 | 3327 | finish_parenthesized_expr (expr); | 3327 | finish_parenthesized_expr (expr); |
1442 | 3328 | /* DR 705: Wrapping an unqualified name in parentheses | ||
1443 | 3329 | suppresses arg-dependent lookup. We want to pass back | ||
1444 | 3330 | CP_ID_KIND_QUALIFIED for suppressing vtable lookup | ||
1445 | 3331 | (c++/37862), but none of the others. */ | ||
1446 | 3332 | if (*idk != CP_ID_KIND_QUALIFIED) | ||
1447 | 3333 | *idk = CP_ID_KIND_NONE; | ||
1448 | 3328 | } | 3334 | } |
1449 | 3329 | /* The `>' token might be the end of a template-id or | 3335 | /* The `>' token might be the end of a template-id or |
1450 | 3330 | template-parameter-list now. */ | 3336 | template-parameter-list now. */ |
1451 | 3331 | 3337 | ||
1452 | === modified file 'gcc/cp/search.c' | |||
1453 | --- gcc/cp/search.c 2010-02-10 07:37:37 +0000 | |||
1454 | +++ gcc/cp/search.c 2011-04-28 16:44:05 +0000 | |||
1455 | @@ -2420,13 +2420,10 @@ | |||
1456 | 2420 | functions in this node were selected. This function is effectively | 2420 | functions in this node were selected. This function is effectively |
1457 | 2421 | performing a set of member lookups as lookup_fnfield does, but | 2421 | performing a set of member lookups as lookup_fnfield does, but |
1458 | 2422 | using the type being converted to as the unique key, rather than the | 2422 | using the type being converted to as the unique key, rather than the |
1462 | 2423 | field name. | 2423 | field name. */ |
1460 | 2424 | If LOOKUP_TEMPLATE_CONVS_P is TRUE, the returned TREE_LIST contains | ||
1461 | 2425 | the non-hidden user-defined template conversion functions too. */ | ||
1463 | 2426 | 2424 | ||
1464 | 2427 | tree | 2425 | tree |
1467 | 2428 | lookup_conversions (tree type, | 2426 | lookup_conversions (tree type) |
1466 | 2429 | bool lookup_template_convs_p) | ||
1468 | 2430 | { | 2427 | { |
1469 | 2431 | tree convs, tpl_convs; | 2428 | tree convs, tpl_convs; |
1470 | 2432 | tree list = NULL_TREE; | 2429 | tree list = NULL_TREE; |
1471 | @@ -2453,9 +2450,6 @@ | |||
1472 | 2453 | } | 2450 | } |
1473 | 2454 | } | 2451 | } |
1474 | 2455 | 2452 | ||
1475 | 2456 | if (lookup_template_convs_p == false) | ||
1476 | 2457 | tpl_convs = NULL_TREE; | ||
1477 | 2458 | |||
1478 | 2459 | for (; tpl_convs; tpl_convs = TREE_CHAIN (tpl_convs)) | 2453 | for (; tpl_convs; tpl_convs = TREE_CHAIN (tpl_convs)) |
1479 | 2460 | { | 2454 | { |
1480 | 2461 | tree probe, next; | 2455 | tree probe, next; |
1481 | 2462 | 2456 | ||
1482 | === modified file 'gcc/cp/typeck.c' | |||
1483 | --- gcc/cp/typeck.c 2010-10-04 00:50:43 +0000 | |||
1484 | +++ gcc/cp/typeck.c 2011-04-28 16:44:05 +0000 | |||
1485 | @@ -4336,7 +4336,11 @@ | |||
1486 | 4336 | gcc_unreachable(); | 4336 | gcc_unreachable(); |
1487 | 4337 | } | 4337 | } |
1488 | 4338 | } | 4338 | } |
1490 | 4339 | return build2 (COMPLEX_EXPR, result_type, real, imag); | 4339 | real = fold_if_not_in_template (real); |
1491 | 4340 | imag = fold_if_not_in_template (imag); | ||
1492 | 4341 | result = build2 (COMPLEX_EXPR, result_type, real, imag); | ||
1493 | 4342 | result = fold_if_not_in_template (result); | ||
1494 | 4343 | return result; | ||
1495 | 4340 | } | 4344 | } |
1496 | 4341 | 4345 | ||
1497 | 4342 | /* For certain operations (which identify themselves by shorten != 0) | 4346 | /* For certain operations (which identify themselves by shorten != 0) |
1498 | 4343 | 4347 | ||
1499 | === modified file 'gcc/doc/sourcebuild.texi' | |||
1500 | --- gcc/doc/sourcebuild.texi 2011-01-06 11:02:44 +0000 | |||
1501 | +++ gcc/doc/sourcebuild.texi 2011-04-28 16:44:05 +0000 | |||
1502 | @@ -1,4 +1,4 @@ | |||
1504 | 1 | @c Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010 | 1 | @c Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011 |
1505 | 2 | @c Free Software Foundation, Inc. | 2 | @c Free Software Foundation, Inc. |
1506 | 3 | @c This is part of the GCC manual. | 3 | @c This is part of the GCC manual. |
1507 | 4 | @c For copying conditions, see the file gcc.texi. | 4 | @c For copying conditions, see the file gcc.texi. |
1508 | @@ -1941,6 +1941,9 @@ | |||
1509 | 1941 | @item dg-require-alias "" | 1941 | @item dg-require-alias "" |
1510 | 1942 | Skip the test if the target does not support the @samp{alias} attribute. | 1942 | Skip the test if the target does not support the @samp{alias} attribute. |
1511 | 1943 | 1943 | ||
1512 | 1944 | @item dg-require-ascii-locale "" | ||
1513 | 1945 | Skip the test if the host does not support an ASCII locale. | ||
1514 | 1946 | |||
1515 | 1944 | @item dg-require-compat-dfp "" | 1947 | @item dg-require-compat-dfp "" |
1516 | 1945 | Skip this test unless both compilers in a @file{compat} testsuite | 1948 | Skip this test unless both compilers in a @file{compat} testsuite |
1517 | 1946 | support decimal floating point. | 1949 | support decimal floating point. |
1518 | 1947 | 1950 | ||
1519 | === modified file 'gcc/dse.c' | |||
1520 | --- gcc/dse.c 2010-03-16 10:50:42 +0000 | |||
1521 | +++ gcc/dse.c 2011-04-28 16:44:05 +0000 | |||
1522 | @@ -1592,8 +1592,7 @@ | |||
1523 | 1592 | 1592 | ||
1524 | 1593 | /* An insn can be deleted if every position of every one of | 1593 | /* An insn can be deleted if every position of every one of |
1525 | 1594 | its s_infos is zero. */ | 1594 | its s_infos is zero. */ |
1528 | 1595 | if (any_positions_needed_p (s_info) | 1595 | if (any_positions_needed_p (s_info)) |
1527 | 1596 | || ptr->cannot_delete) | ||
1529 | 1597 | del = false; | 1596 | del = false; |
1530 | 1598 | 1597 | ||
1531 | 1599 | if (del) | 1598 | if (del) |
1532 | @@ -1605,7 +1604,8 @@ | |||
1533 | 1605 | else | 1604 | else |
1534 | 1606 | active_local_stores = ptr->next_local_store; | 1605 | active_local_stores = ptr->next_local_store; |
1535 | 1607 | 1606 | ||
1537 | 1608 | delete_dead_store_insn (insn_to_delete); | 1607 | if (!insn_to_delete->cannot_delete) |
1538 | 1608 | delete_dead_store_insn (insn_to_delete); | ||
1539 | 1609 | } | 1609 | } |
1540 | 1610 | else | 1610 | else |
1541 | 1611 | last = ptr; | 1611 | last = ptr; |
1542 | 1612 | 1612 | ||
1543 | === modified file 'gcc/dwarf2out.c' | |||
1544 | --- gcc/dwarf2out.c 2011-03-28 09:43:50 +0000 | |||
1545 | +++ gcc/dwarf2out.c 2011-04-28 16:44:05 +0000 | |||
1546 | @@ -6188,7 +6188,7 @@ | |||
1547 | 6188 | static void gen_type_die (tree, dw_die_ref); | 6188 | static void gen_type_die (tree, dw_die_ref); |
1548 | 6189 | static void gen_block_die (tree, dw_die_ref, int); | 6189 | static void gen_block_die (tree, dw_die_ref, int); |
1549 | 6190 | static void decls_for_scope (tree, dw_die_ref, int); | 6190 | static void decls_for_scope (tree, dw_die_ref, int); |
1551 | 6191 | static int is_redundant_typedef (const_tree); | 6191 | static inline int is_redundant_typedef (const_tree); |
1552 | 6192 | static inline dw_die_ref get_context_die (tree); | 6192 | static inline dw_die_ref get_context_die (tree); |
1553 | 6193 | static void gen_namespace_die (tree, dw_die_ref); | 6193 | static void gen_namespace_die (tree, dw_die_ref); |
1554 | 6194 | static void gen_decl_die (tree, tree, dw_die_ref); | 6194 | static void gen_decl_die (tree, tree, dw_die_ref); |
1555 | @@ -12824,7 +12824,7 @@ | |||
1556 | 12824 | int base_reg | 12824 | int base_reg |
1557 | 12825 | = DWARF_FRAME_REGNUM ((fde && fde->drap_reg != INVALID_REGNUM) | 12825 | = DWARF_FRAME_REGNUM ((fde && fde->drap_reg != INVALID_REGNUM) |
1558 | 12826 | ? HARD_FRAME_POINTER_REGNUM | 12826 | ? HARD_FRAME_POINTER_REGNUM |
1560 | 12827 | : STACK_POINTER_REGNUM); | 12827 | : REGNO (elim)); |
1561 | 12828 | return new_reg_loc_descr (base_reg, offset); | 12828 | return new_reg_loc_descr (base_reg, offset); |
1562 | 12829 | } | 12829 | } |
1563 | 12830 | 12830 | ||
1564 | 12831 | 12831 | ||
1565 | === modified file 'gcc/fold-const.c' | |||
1566 | --- gcc/fold-const.c 2010-11-26 12:03:32 +0000 | |||
1567 | +++ gcc/fold-const.c 2011-04-28 16:44:05 +0000 | |||
1568 | @@ -16165,12 +16165,17 @@ | |||
1569 | 16165 | } | 16165 | } |
1570 | 16166 | /* *(foo *)&fooarray => fooarray[0] */ | 16166 | /* *(foo *)&fooarray => fooarray[0] */ |
1571 | 16167 | else if (TREE_CODE (optype) == ARRAY_TYPE | 16167 | else if (TREE_CODE (optype) == ARRAY_TYPE |
1573 | 16168 | && type == TREE_TYPE (optype)) | 16168 | && type == TREE_TYPE (optype) |
1574 | 16169 | && (!in_gimple_form | ||
1575 | 16170 | || TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST)) | ||
1576 | 16169 | { | 16171 | { |
1577 | 16170 | tree type_domain = TYPE_DOMAIN (optype); | 16172 | tree type_domain = TYPE_DOMAIN (optype); |
1578 | 16171 | tree min_val = size_zero_node; | 16173 | tree min_val = size_zero_node; |
1579 | 16172 | if (type_domain && TYPE_MIN_VALUE (type_domain)) | 16174 | if (type_domain && TYPE_MIN_VALUE (type_domain)) |
1580 | 16173 | min_val = TYPE_MIN_VALUE (type_domain); | 16175 | min_val = TYPE_MIN_VALUE (type_domain); |
1581 | 16176 | if (in_gimple_form | ||
1582 | 16177 | && TREE_CODE (min_val) != INTEGER_CST) | ||
1583 | 16178 | return NULL_TREE; | ||
1584 | 16174 | op0 = build4 (ARRAY_REF, type, op, min_val, NULL_TREE, NULL_TREE); | 16179 | op0 = build4 (ARRAY_REF, type, op, min_val, NULL_TREE, NULL_TREE); |
1585 | 16175 | SET_EXPR_LOCATION (op0, loc); | 16180 | SET_EXPR_LOCATION (op0, loc); |
1586 | 16176 | return op0; | 16181 | return op0; |
1587 | @@ -16241,7 +16246,9 @@ | |||
1588 | 16241 | 16246 | ||
1589 | 16242 | /* *(foo *)fooarrptr => (*fooarrptr)[0] */ | 16247 | /* *(foo *)fooarrptr => (*fooarrptr)[0] */ |
1590 | 16243 | if (TREE_CODE (TREE_TYPE (subtype)) == ARRAY_TYPE | 16248 | if (TREE_CODE (TREE_TYPE (subtype)) == ARRAY_TYPE |
1592 | 16244 | && type == TREE_TYPE (TREE_TYPE (subtype))) | 16249 | && type == TREE_TYPE (TREE_TYPE (subtype)) |
1593 | 16250 | && (!in_gimple_form | ||
1594 | 16251 | || TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST)) | ||
1595 | 16245 | { | 16252 | { |
1596 | 16246 | tree type_domain; | 16253 | tree type_domain; |
1597 | 16247 | tree min_val = size_zero_node; | 16254 | tree min_val = size_zero_node; |
1598 | @@ -16249,6 +16256,9 @@ | |||
1599 | 16249 | type_domain = TYPE_DOMAIN (TREE_TYPE (sub)); | 16256 | type_domain = TYPE_DOMAIN (TREE_TYPE (sub)); |
1600 | 16250 | if (type_domain && TYPE_MIN_VALUE (type_domain)) | 16257 | if (type_domain && TYPE_MIN_VALUE (type_domain)) |
1601 | 16251 | min_val = TYPE_MIN_VALUE (type_domain); | 16258 | min_val = TYPE_MIN_VALUE (type_domain); |
1602 | 16259 | if (in_gimple_form | ||
1603 | 16260 | && TREE_CODE (min_val) != INTEGER_CST) | ||
1604 | 16261 | return NULL_TREE; | ||
1605 | 16252 | op0 = build4 (ARRAY_REF, type, sub, min_val, NULL_TREE, NULL_TREE); | 16262 | op0 = build4 (ARRAY_REF, type, sub, min_val, NULL_TREE, NULL_TREE); |
1606 | 16253 | SET_EXPR_LOCATION (op0, loc); | 16263 | SET_EXPR_LOCATION (op0, loc); |
1607 | 16254 | return op0; | 16264 | return op0; |
1608 | 16255 | 16265 | ||
1609 | === modified file 'gcc/fortran/ChangeLog' | |||
1610 | --- gcc/fortran/ChangeLog 2011-04-05 10:59:38 +0000 | |||
1611 | +++ gcc/fortran/ChangeLog 2011-04-28 16:44:05 +0000 | |||
1612 | @@ -1,3 +1,7 @@ | |||
1613 | 1 | 2011-04-28 Release Manager | ||
1614 | 2 | |||
1615 | 3 | * GCC 4.5.3 released. | ||
1616 | 4 | |||
1617 | 1 | 2011-04-05 Duncan Sands <baldrick@free.fr> | 5 | 2011-04-05 Duncan Sands <baldrick@free.fr> |
1618 | 2 | 6 | ||
1619 | 3 | * f95-lang.c (build_builtin_fntypes): Swap frexp and scalbn parameter | 7 | * f95-lang.c (build_builtin_fntypes): Swap frexp and scalbn parameter |
1620 | 4 | 8 | ||
1621 | === modified file 'gcc/gcov-io.c' | |||
1622 | --- gcc/gcov-io.c 2009-11-25 10:55:54 +0000 | |||
1623 | +++ gcc/gcov-io.c 2011-04-28 16:44:05 +0000 | |||
1624 | @@ -16,8 +16,13 @@ | |||
1625 | 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | 16 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
1626 | 17 | for more details. | 17 | for more details. |
1627 | 18 | 18 | ||
1630 | 19 | You should have received a copy of the GNU General Public License | 19 | Under Section 7 of GPL version 3, you are granted additional |
1631 | 20 | along with GCC; see the file COPYING3. If not see | 20 | permissions described in the GCC Runtime Library Exception, version |
1632 | 21 | 3.1, as published by the Free Software Foundation. | ||
1633 | 22 | |||
1634 | 23 | You should have received a copy of the GNU General Public License and | ||
1635 | 24 | a copy of the GCC Runtime Library Exception along with this program; | ||
1636 | 25 | see the files COPYING3 and COPYING.RUNTIME respectively. If not, see | ||
1637 | 21 | <http://www.gnu.org/licenses/>. */ | 26 | <http://www.gnu.org/licenses/>. */ |
1638 | 22 | 27 | ||
1639 | 23 | /* Routines declared in gcov-io.h. This file should be #included by | 28 | /* Routines declared in gcov-io.h. This file should be #included by |
1640 | 24 | 29 | ||
1641 | === modified file 'gcc/gimplify.c' | |||
1642 | --- gcc/gimplify.c 2010-11-11 20:36:49 +0000 | |||
1643 | +++ gcc/gimplify.c 2011-04-28 16:44:05 +0000 | |||
1644 | @@ -5438,7 +5438,8 @@ | |||
1645 | 5438 | For local variables TYPE_SIZE_UNIT might not be gimplified yet, | 5438 | For local variables TYPE_SIZE_UNIT might not be gimplified yet, |
1646 | 5439 | in this case omp_notice_variable will be called later | 5439 | in this case omp_notice_variable will be called later |
1647 | 5440 | on when it is gimplified. */ | 5440 | on when it is gimplified. */ |
1649 | 5441 | else if (! (flags & GOVD_LOCAL)) | 5441 | else if (! (flags & GOVD_LOCAL) |
1650 | 5442 | && DECL_P (TYPE_SIZE_UNIT (TREE_TYPE (decl)))) | ||
1651 | 5442 | omp_notice_variable (ctx, TYPE_SIZE_UNIT (TREE_TYPE (decl)), true); | 5443 | omp_notice_variable (ctx, TYPE_SIZE_UNIT (TREE_TYPE (decl)), true); |
1652 | 5443 | } | 5444 | } |
1653 | 5444 | else if (lang_hooks.decls.omp_privatize_by_reference (decl)) | 5445 | else if (lang_hooks.decls.omp_privatize_by_reference (decl)) |
1654 | 5445 | 5446 | ||
1655 | === modified file 'gcc/haifa-sched.c' | |||
1656 | --- gcc/haifa-sched.c 2011-02-08 10:51:58 +0000 | |||
1657 | +++ gcc/haifa-sched.c 2011-04-28 16:44:05 +0000 | |||
1658 | @@ -4442,6 +4442,8 @@ | |||
1659 | 4442 | edge_flags = 0; | 4442 | edge_flags = 0; |
1660 | 4443 | 4443 | ||
1661 | 4444 | make_single_succ_edge (rec, second_bb, edge_flags); | 4444 | make_single_succ_edge (rec, second_bb, edge_flags); |
1662 | 4445 | if (dom_info_available_p (CDI_DOMINATORS)) | ||
1663 | 4446 | set_immediate_dominator (CDI_DOMINATORS, rec, first_bb); | ||
1664 | 4445 | } | 4447 | } |
1665 | 4446 | 4448 | ||
1666 | 4447 | /* This function creates recovery code for INSN. If MUTATE_P is nonzero, | 4449 | /* This function creates recovery code for INSN. If MUTATE_P is nonzero, |
1667 | 4448 | 4450 | ||
1668 | === modified file 'gcc/ipa-inline.c' | |||
1669 | --- gcc/ipa-inline.c 2010-11-24 08:43:48 +0000 | |||
1670 | +++ gcc/ipa-inline.c 2011-04-28 16:44:05 +0000 | |||
1671 | @@ -2092,6 +2092,7 @@ | |||
1672 | 2092 | { | 2092 | { |
1673 | 2093 | unsigned int todo = 0; | 2093 | unsigned int todo = 0; |
1674 | 2094 | struct cgraph_edge *e; | 2094 | struct cgraph_edge *e; |
1675 | 2095 | bool inline_p = false; | ||
1676 | 2095 | 2096 | ||
1677 | 2096 | /* FIXME: Currently the passmanager is adding inline transform more than once to some | 2097 | /* FIXME: Currently the passmanager is adding inline transform more than once to some |
1678 | 2097 | clones. This needs revisiting after WPA cleanups. */ | 2098 | clones. This needs revisiting after WPA cleanups. */ |
1679 | @@ -2104,10 +2105,13 @@ | |||
1680 | 2104 | save_inline_function_body (node); | 2105 | save_inline_function_body (node); |
1681 | 2105 | 2106 | ||
1682 | 2106 | for (e = node->callees; e; e = e->next_callee) | 2107 | for (e = node->callees; e; e = e->next_callee) |
1685 | 2107 | if (!e->inline_failed || warn_inline) | 2108 | { |
1686 | 2108 | break; | 2109 | cgraph_redirect_edge_call_stmt_to_callee (e); |
1687 | 2110 | if (!e->inline_failed || warn_inline) | ||
1688 | 2111 | inline_p = true; | ||
1689 | 2112 | } | ||
1690 | 2109 | 2113 | ||
1692 | 2110 | if (e) | 2114 | if (inline_p) |
1693 | 2111 | { | 2115 | { |
1694 | 2112 | timevar_push (TV_INTEGRATION); | 2116 | timevar_push (TV_INTEGRATION); |
1695 | 2113 | todo = optimize_inline_calls (current_function_decl); | 2117 | todo = optimize_inline_calls (current_function_decl); |
1696 | 2114 | 2118 | ||
1697 | === modified file 'gcc/java/ChangeLog' | |||
1698 | --- gcc/java/ChangeLog 2010-12-16 12:32:23 +0000 | |||
1699 | +++ gcc/java/ChangeLog 2011-04-28 16:44:05 +0000 | |||
1700 | @@ -1,3 +1,7 @@ | |||
1701 | 1 | 2011-04-28 Release Manager | ||
1702 | 2 | |||
1703 | 3 | * GCC 4.5.3 released. | ||
1704 | 4 | |||
1705 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
1706 | 2 | 6 | ||
1707 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
1708 | 4 | 8 | ||
1709 | === modified file 'gcc/lto/ChangeLog' | |||
1710 | --- gcc/lto/ChangeLog 2010-12-16 12:32:50 +0000 | |||
1711 | +++ gcc/lto/ChangeLog 2011-04-28 16:44:05 +0000 | |||
1712 | @@ -1,3 +1,7 @@ | |||
1713 | 1 | 2011-04-28 Release Manager | ||
1714 | 2 | |||
1715 | 3 | * GCC 4.5.3 released. | ||
1716 | 4 | |||
1717 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
1718 | 2 | 6 | ||
1719 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
1720 | 4 | 8 | ||
1721 | === modified file 'gcc/objc/ChangeLog' | |||
1722 | --- gcc/objc/ChangeLog 2010-12-16 12:33:00 +0000 | |||
1723 | +++ gcc/objc/ChangeLog 2011-04-28 16:44:05 +0000 | |||
1724 | @@ -1,3 +1,7 @@ | |||
1725 | 1 | 2011-04-28 Release Manager | ||
1726 | 2 | |||
1727 | 3 | * GCC 4.5.3 released. | ||
1728 | 4 | |||
1729 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
1730 | 2 | 6 | ||
1731 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
1732 | 4 | 8 | ||
1733 | === modified file 'gcc/objcp/ChangeLog' | |||
1734 | --- gcc/objcp/ChangeLog 2010-12-16 12:33:13 +0000 | |||
1735 | +++ gcc/objcp/ChangeLog 2011-04-28 16:44:05 +0000 | |||
1736 | @@ -1,3 +1,7 @@ | |||
1737 | 1 | 2011-04-28 Release Manager | ||
1738 | 2 | |||
1739 | 3 | * GCC 4.5.3 released. | ||
1740 | 4 | |||
1741 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
1742 | 2 | 6 | ||
1743 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
1744 | 4 | 8 | ||
1745 | === modified file 'gcc/omp-low.c' | |||
1746 | --- gcc/omp-low.c 2010-04-21 13:01:30 +0000 | |||
1747 | +++ gcc/omp-low.c 2011-04-28 16:44:05 +0000 | |||
1748 | @@ -1930,7 +1930,18 @@ | |||
1749 | 1930 | { | 1930 | { |
1750 | 1931 | *walk_subtrees = 1; | 1931 | *walk_subtrees = 1; |
1751 | 1932 | if (ctx) | 1932 | if (ctx) |
1753 | 1933 | TREE_TYPE (t) = remap_type (TREE_TYPE (t), &ctx->cb); | 1933 | { |
1754 | 1934 | tree tem = remap_type (TREE_TYPE (t), &ctx->cb); | ||
1755 | 1935 | if (tem != TREE_TYPE (t)) | ||
1756 | 1936 | { | ||
1757 | 1937 | if (TREE_CODE (t) == INTEGER_CST) | ||
1758 | 1938 | *tp = build_int_cst_wide (tem, | ||
1759 | 1939 | TREE_INT_CST_LOW (t), | ||
1760 | 1940 | TREE_INT_CST_HIGH (t)); | ||
1761 | 1941 | else | ||
1762 | 1942 | TREE_TYPE (t) = tem; | ||
1763 | 1943 | } | ||
1764 | 1944 | } | ||
1765 | 1934 | } | 1945 | } |
1766 | 1935 | break; | 1946 | break; |
1767 | 1936 | } | 1947 | } |
1768 | 1937 | 1948 | ||
1769 | === modified file 'gcc/po/ChangeLog' | |||
1770 | --- gcc/po/ChangeLog 2010-12-16 12:32:28 +0000 | |||
1771 | +++ gcc/po/ChangeLog 2011-04-28 16:44:05 +0000 | |||
1772 | @@ -1,3 +1,7 @@ | |||
1773 | 1 | 2011-04-28 Release Manager | ||
1774 | 2 | |||
1775 | 3 | * GCC 4.5.3 released. | ||
1776 | 4 | |||
1777 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
1778 | 2 | 6 | ||
1779 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
1780 | 4 | 8 | ||
1781 | === modified file 'gcc/reload1.c' | |||
1782 | --- gcc/reload1.c 2011-03-02 13:30:06 +0000 | |||
1783 | +++ gcc/reload1.c 2011-04-28 16:44:05 +0000 | |||
1784 | @@ -461,7 +461,7 @@ | |||
1785 | 461 | static void delete_output_reload (rtx, int, int, rtx); | 461 | static void delete_output_reload (rtx, int, int, rtx); |
1786 | 462 | static void delete_address_reloads (rtx, rtx); | 462 | static void delete_address_reloads (rtx, rtx); |
1787 | 463 | static void delete_address_reloads_1 (rtx, rtx, rtx); | 463 | static void delete_address_reloads_1 (rtx, rtx, rtx); |
1789 | 464 | static rtx inc_for_reload (rtx, rtx, rtx, int); | 464 | static void inc_for_reload (rtx, rtx, rtx, int); |
1790 | 465 | #ifdef AUTO_INC_DEC | 465 | #ifdef AUTO_INC_DEC |
1791 | 466 | static void add_auto_inc_notes (rtx, rtx); | 466 | static void add_auto_inc_notes (rtx, rtx); |
1792 | 467 | #endif | 467 | #endif |
1793 | @@ -7150,22 +7150,12 @@ | |||
1794 | 7150 | 7150 | ||
1795 | 7151 | old = XEXP (rl->in_reg, 0); | 7151 | old = XEXP (rl->in_reg, 0); |
1796 | 7152 | 7152 | ||
1797 | 7153 | if (optimize && REG_P (oldequiv) | ||
1798 | 7154 | && REGNO (oldequiv) < FIRST_PSEUDO_REGISTER | ||
1799 | 7155 | && spill_reg_store[REGNO (oldequiv)] | ||
1800 | 7156 | && REG_P (old) | ||
1801 | 7157 | && (dead_or_set_p (insn, | ||
1802 | 7158 | spill_reg_stored_to[REGNO (oldequiv)]) | ||
1803 | 7159 | || rtx_equal_p (spill_reg_stored_to[REGNO (oldequiv)], | ||
1804 | 7160 | old))) | ||
1805 | 7161 | delete_output_reload (insn, j, REGNO (oldequiv), reloadreg); | ||
1806 | 7162 | |||
1807 | 7163 | /* Prevent normal processing of this reload. */ | 7153 | /* Prevent normal processing of this reload. */ |
1808 | 7164 | special = 1; | 7154 | special = 1; |
1813 | 7165 | /* Output a special code sequence for this case. */ | 7155 | /* Output a special code sequence for this case, and forget about |
1814 | 7166 | new_spill_reg_store[REGNO (reloadreg)] | 7156 | spill reg information. */ |
1815 | 7167 | = inc_for_reload (reloadreg, oldequiv, rl->out, | 7157 | new_spill_reg_store[REGNO (reloadreg)] = NULL; |
1816 | 7168 | rl->inc); | 7158 | inc_for_reload (reloadreg, oldequiv, rl->out, rl->inc); |
1817 | 7169 | } | 7159 | } |
1818 | 7170 | 7160 | ||
1819 | 7171 | /* If we are reloading a pseudo-register that was set by the previous | 7161 | /* If we are reloading a pseudo-register that was set by the previous |
1820 | @@ -8975,11 +8965,9 @@ | |||
1821 | 8975 | IN is either identical to VALUE, or some cheaper place to reload from. | 8965 | IN is either identical to VALUE, or some cheaper place to reload from. |
1822 | 8976 | 8966 | ||
1823 | 8977 | INC_AMOUNT is the number to increment or decrement by (always positive). | 8967 | INC_AMOUNT is the number to increment or decrement by (always positive). |
1829 | 8978 | This cannot be deduced from VALUE. | 8968 | This cannot be deduced from VALUE. */ |
1830 | 8979 | 8969 | ||
1831 | 8980 | Return the instruction that stores into RELOADREG. */ | 8970 | static void |
1827 | 8981 | |||
1828 | 8982 | static rtx | ||
1832 | 8983 | inc_for_reload (rtx reloadreg, rtx in, rtx value, int inc_amount) | 8971 | inc_for_reload (rtx reloadreg, rtx in, rtx value, int inc_amount) |
1833 | 8984 | { | 8972 | { |
1834 | 8985 | /* REG or MEM to be copied and incremented. */ | 8973 | /* REG or MEM to be copied and incremented. */ |
1835 | @@ -8991,7 +8979,6 @@ | |||
1836 | 8991 | rtx inc; | 8979 | rtx inc; |
1837 | 8992 | rtx add_insn; | 8980 | rtx add_insn; |
1838 | 8993 | int code; | 8981 | int code; |
1839 | 8994 | rtx store; | ||
1840 | 8995 | rtx real_in = in == value ? incloc : in; | 8982 | rtx real_in = in == value ? incloc : in; |
1841 | 8996 | 8983 | ||
1842 | 8997 | /* No hard register is equivalent to this register after | 8984 | /* No hard register is equivalent to this register after |
1843 | @@ -9039,9 +9026,8 @@ | |||
1844 | 9039 | be used as an address. */ | 9026 | be used as an address. */ |
1845 | 9040 | 9027 | ||
1846 | 9041 | if (! post) | 9028 | if (! post) |
1850 | 9042 | add_insn = emit_insn (gen_move_insn (reloadreg, incloc)); | 9029 | emit_insn (gen_move_insn (reloadreg, incloc)); |
1851 | 9043 | 9030 | return; | |
1849 | 9044 | return add_insn; | ||
1852 | 9045 | } | 9031 | } |
1853 | 9046 | } | 9032 | } |
1854 | 9047 | delete_insns_since (last); | 9033 | delete_insns_since (last); |
1855 | @@ -9057,7 +9043,7 @@ | |||
1856 | 9057 | if (in != reloadreg) | 9043 | if (in != reloadreg) |
1857 | 9058 | emit_insn (gen_move_insn (reloadreg, real_in)); | 9044 | emit_insn (gen_move_insn (reloadreg, real_in)); |
1858 | 9059 | emit_insn (gen_add2_insn (reloadreg, inc)); | 9045 | emit_insn (gen_add2_insn (reloadreg, inc)); |
1860 | 9060 | store = emit_insn (gen_move_insn (incloc, reloadreg)); | 9046 | emit_insn (gen_move_insn (incloc, reloadreg)); |
1861 | 9061 | } | 9047 | } |
1862 | 9062 | else | 9048 | else |
1863 | 9063 | { | 9049 | { |
1864 | @@ -9071,14 +9057,12 @@ | |||
1865 | 9071 | the original value. */ | 9057 | the original value. */ |
1866 | 9072 | 9058 | ||
1867 | 9073 | emit_insn (gen_add2_insn (reloadreg, inc)); | 9059 | emit_insn (gen_add2_insn (reloadreg, inc)); |
1869 | 9074 | store = emit_insn (gen_move_insn (incloc, reloadreg)); | 9060 | emit_insn (gen_move_insn (incloc, reloadreg)); |
1870 | 9075 | if (CONST_INT_P (inc)) | 9061 | if (CONST_INT_P (inc)) |
1871 | 9076 | emit_insn (gen_add2_insn (reloadreg, GEN_INT (-INTVAL (inc)))); | 9062 | emit_insn (gen_add2_insn (reloadreg, GEN_INT (-INTVAL (inc)))); |
1872 | 9077 | else | 9063 | else |
1873 | 9078 | emit_insn (gen_sub2_insn (reloadreg, inc)); | 9064 | emit_insn (gen_sub2_insn (reloadreg, inc)); |
1874 | 9079 | } | 9065 | } |
1875 | 9080 | |||
1876 | 9081 | return store; | ||
1877 | 9082 | } | 9066 | } |
1878 | 9083 | 9067 | ||
1879 | 9084 | 9068 | ||
1880 | 9085 | #ifdef AUTO_INC_DEC | 9069 | #ifdef AUTO_INC_DEC |
1881 | 9086 | 9070 | ||
1882 | === modified file 'gcc/rtl.h' | |||
1883 | --- gcc/rtl.h 2011-02-08 10:51:58 +0000 | |||
1884 | +++ gcc/rtl.h 2011-04-28 16:44:05 +0000 | |||
1885 | @@ -2418,6 +2418,7 @@ | |||
1886 | 2418 | extern rtx gen_hard_reg_clobber (enum machine_mode, unsigned int); | 2418 | extern rtx gen_hard_reg_clobber (enum machine_mode, unsigned int); |
1887 | 2419 | extern rtx get_reg_known_value (unsigned int); | 2419 | extern rtx get_reg_known_value (unsigned int); |
1888 | 2420 | extern bool get_reg_known_equiv_p (unsigned int); | 2420 | extern bool get_reg_known_equiv_p (unsigned int); |
1889 | 2421 | extern rtx get_reg_base_value (unsigned int); | ||
1890 | 2421 | 2422 | ||
1891 | 2422 | #ifdef STACK_REGS | 2423 | #ifdef STACK_REGS |
1892 | 2423 | extern int stack_regs_mentioned (const_rtx insn); | 2424 | extern int stack_regs_mentioned (const_rtx insn); |
1893 | 2424 | 2425 | ||
1894 | === modified file 'gcc/sched-vis.c' | |||
1895 | --- gcc/sched-vis.c 2011-02-08 10:51:58 +0000 | |||
1896 | +++ gcc/sched-vis.c 2011-04-28 16:44:05 +0000 | |||
1897 | @@ -603,7 +603,7 @@ | |||
1898 | 603 | sprintf (buf, "asm {%s}", XSTR (x, 0)); | 603 | sprintf (buf, "asm {%s}", XSTR (x, 0)); |
1899 | 604 | break; | 604 | break; |
1900 | 605 | case ADDR_VEC: | 605 | case ADDR_VEC: |
1902 | 606 | break; | 606 | /* Fall through. */ |
1903 | 607 | case ADDR_DIFF_VEC: | 607 | case ADDR_DIFF_VEC: |
1904 | 608 | print_value (buf, XEXP (x, 0), verbose); | 608 | print_value (buf, XEXP (x, 0), verbose); |
1905 | 609 | break; | 609 | break; |
1906 | 610 | 610 | ||
1907 | === modified file 'gcc/sel-sched-ir.c' | |||
1908 | --- gcc/sel-sched-ir.c 2011-02-08 10:51:58 +0000 | |||
1909 | +++ gcc/sel-sched-ir.c 2011-04-28 16:44:05 +0000 | |||
1910 | @@ -152,7 +152,9 @@ | |||
1911 | 152 | 152 | ||
1912 | 153 | static void move_bb_info (basic_block, basic_block); | 153 | static void move_bb_info (basic_block, basic_block); |
1913 | 154 | static void remove_empty_bb (basic_block, bool); | 154 | static void remove_empty_bb (basic_block, bool); |
1914 | 155 | static void sel_merge_blocks (basic_block, basic_block); | ||
1915 | 155 | static void sel_remove_loop_preheader (void); | 156 | static void sel_remove_loop_preheader (void); |
1916 | 157 | static bool bb_has_removable_jump_to_p (basic_block, basic_block); | ||
1917 | 156 | 158 | ||
1918 | 157 | static bool insn_is_the_only_one_in_bb_p (insn_t); | 159 | static bool insn_is_the_only_one_in_bb_p (insn_t); |
1919 | 158 | static void create_initial_data_sets (basic_block); | 160 | static void create_initial_data_sets (basic_block); |
1920 | @@ -939,6 +941,7 @@ | |||
1921 | 939 | void | 941 | void |
1922 | 940 | return_regset_to_pool (regset rs) | 942 | return_regset_to_pool (regset rs) |
1923 | 941 | { | 943 | { |
1924 | 944 | gcc_assert (rs); | ||
1925 | 942 | regset_pool.diff--; | 945 | regset_pool.diff--; |
1926 | 943 | 946 | ||
1927 | 944 | if (regset_pool.n == regset_pool.s) | 947 | if (regset_pool.n == regset_pool.s) |
1928 | @@ -1172,6 +1175,9 @@ | |||
1929 | 1172 | VINSN_COUNT (vi) = 0; | 1175 | VINSN_COUNT (vi) = 0; |
1930 | 1173 | vi->cost = -1; | 1176 | vi->cost = -1; |
1931 | 1174 | 1177 | ||
1932 | 1178 | if (INSN_NOP_P (insn)) | ||
1933 | 1179 | return; | ||
1934 | 1180 | |||
1935 | 1175 | if (DF_INSN_UID_SAFE_GET (INSN_UID (insn)) != NULL) | 1181 | if (DF_INSN_UID_SAFE_GET (INSN_UID (insn)) != NULL) |
1936 | 1176 | init_id_from_df (VINSN_ID (vi), insn, force_unique_p); | 1182 | init_id_from_df (VINSN_ID (vi), insn, force_unique_p); |
1937 | 1177 | else | 1183 | else |
1938 | @@ -1253,9 +1259,12 @@ | |||
1939 | 1253 | { | 1259 | { |
1940 | 1254 | gcc_assert (VINSN_COUNT (vi) == 0); | 1260 | gcc_assert (VINSN_COUNT (vi) == 0); |
1941 | 1255 | 1261 | ||
1945 | 1256 | return_regset_to_pool (VINSN_REG_SETS (vi)); | 1262 | if (!INSN_NOP_P (VINSN_INSN_RTX (vi))) |
1946 | 1257 | return_regset_to_pool (VINSN_REG_USES (vi)); | 1263 | { |
1947 | 1258 | return_regset_to_pool (VINSN_REG_CLOBBERS (vi)); | 1264 | return_regset_to_pool (VINSN_REG_SETS (vi)); |
1948 | 1265 | return_regset_to_pool (VINSN_REG_USES (vi)); | ||
1949 | 1266 | return_regset_to_pool (VINSN_REG_CLOBBERS (vi)); | ||
1950 | 1267 | } | ||
1951 | 1259 | 1268 | ||
1952 | 1260 | free (vi); | 1269 | free (vi); |
1953 | 1261 | } | 1270 | } |
1954 | @@ -1555,6 +1564,20 @@ | |||
1955 | 1555 | *pvect = NULL; | 1564 | *pvect = NULL; |
1956 | 1556 | } | 1565 | } |
1957 | 1557 | 1566 | ||
1958 | 1567 | /* Merge vector FROM to PVECT. */ | ||
1959 | 1568 | static void | ||
1960 | 1569 | merge_history_vect (VEC (expr_history_def, heap) **pvect, | ||
1961 | 1570 | VEC (expr_history_def, heap) *from) | ||
1962 | 1571 | { | ||
1963 | 1572 | expr_history_def *phist; | ||
1964 | 1573 | int i; | ||
1965 | 1574 | |||
1966 | 1575 | /* We keep this vector sorted. */ | ||
1967 | 1576 | for (i = 0; VEC_iterate (expr_history_def, from, i, phist); i++) | ||
1968 | 1577 | insert_in_history_vect (pvect, phist->uid, phist->type, | ||
1969 | 1578 | phist->old_expr_vinsn, phist->new_expr_vinsn, | ||
1970 | 1579 | phist->spec_ds); | ||
1971 | 1580 | } | ||
1972 | 1558 | 1581 | ||
1973 | 1559 | /* Compare two vinsns as rhses if possible and as vinsns otherwise. */ | 1582 | /* Compare two vinsns as rhses if possible and as vinsns otherwise. */ |
1974 | 1560 | bool | 1583 | bool |
1975 | @@ -1592,7 +1615,7 @@ | |||
1976 | 1592 | init_expr (expr_t expr, vinsn_t vi, int spec, int use, int priority, | 1615 | init_expr (expr_t expr, vinsn_t vi, int spec, int use, int priority, |
1977 | 1593 | int sched_times, int orig_bb_index, ds_t spec_done_ds, | 1616 | int sched_times, int orig_bb_index, ds_t spec_done_ds, |
1978 | 1594 | ds_t spec_to_check_ds, int orig_sched_cycle, | 1617 | ds_t spec_to_check_ds, int orig_sched_cycle, |
1980 | 1595 | VEC(expr_history_def, heap) *history, bool target_available, | 1618 | VEC(expr_history_def, heap) *history, signed char target_available, |
1981 | 1596 | bool was_substituted, bool was_renamed, bool needs_spec_check_p, | 1619 | bool was_substituted, bool was_renamed, bool needs_spec_check_p, |
1982 | 1597 | bool cant_move) | 1620 | bool cant_move) |
1983 | 1598 | { | 1621 | { |
1984 | @@ -1787,9 +1810,6 @@ | |||
1985 | 1787 | void | 1810 | void |
1986 | 1788 | merge_expr_data (expr_t to, expr_t from, insn_t split_point) | 1811 | merge_expr_data (expr_t to, expr_t from, insn_t split_point) |
1987 | 1789 | { | 1812 | { |
1988 | 1790 | int i; | ||
1989 | 1791 | expr_history_def *phist; | ||
1990 | 1792 | |||
1991 | 1793 | /* For now, we just set the spec of resulting expr to be minimum of the specs | 1813 | /* For now, we just set the spec of resulting expr to be minimum of the specs |
1992 | 1794 | of merged exprs. */ | 1814 | of merged exprs. */ |
1993 | 1795 | if (EXPR_SPEC (to) > EXPR_SPEC (from)) | 1815 | if (EXPR_SPEC (to) > EXPR_SPEC (from)) |
1994 | @@ -1813,20 +1833,12 @@ | |||
1995 | 1813 | EXPR_ORIG_SCHED_CYCLE (to) = MIN (EXPR_ORIG_SCHED_CYCLE (to), | 1833 | EXPR_ORIG_SCHED_CYCLE (to) = MIN (EXPR_ORIG_SCHED_CYCLE (to), |
1996 | 1814 | EXPR_ORIG_SCHED_CYCLE (from)); | 1834 | EXPR_ORIG_SCHED_CYCLE (from)); |
1997 | 1815 | 1835 | ||
1998 | 1816 | /* We keep this vector sorted. */ | ||
1999 | 1817 | for (i = 0; | ||
2000 | 1818 | VEC_iterate (expr_history_def, EXPR_HISTORY_OF_CHANGES (from), | ||
2001 | 1819 | i, phist); | ||
2002 | 1820 | i++) | ||
2003 | 1821 | insert_in_history_vect (&EXPR_HISTORY_OF_CHANGES (to), | ||
2004 | 1822 | phist->uid, phist->type, | ||
2005 | 1823 | phist->old_expr_vinsn, phist->new_expr_vinsn, | ||
2006 | 1824 | phist->spec_ds); | ||
2007 | 1825 | |||
2008 | 1826 | EXPR_WAS_SUBSTITUTED (to) |= EXPR_WAS_SUBSTITUTED (from); | 1836 | EXPR_WAS_SUBSTITUTED (to) |= EXPR_WAS_SUBSTITUTED (from); |
2009 | 1827 | EXPR_WAS_RENAMED (to) |= EXPR_WAS_RENAMED (from); | 1837 | EXPR_WAS_RENAMED (to) |= EXPR_WAS_RENAMED (from); |
2010 | 1828 | EXPR_CANT_MOVE (to) |= EXPR_CANT_MOVE (from); | 1838 | EXPR_CANT_MOVE (to) |= EXPR_CANT_MOVE (from); |
2011 | 1829 | 1839 | ||
2012 | 1840 | merge_history_vect (&EXPR_HISTORY_OF_CHANGES (to), | ||
2013 | 1841 | EXPR_HISTORY_OF_CHANGES (from)); | ||
2014 | 1830 | update_target_availability (to, from, split_point); | 1842 | update_target_availability (to, from, split_point); |
2015 | 1831 | update_speculative_bits (to, from, split_point); | 1843 | update_speculative_bits (to, from, split_point); |
2016 | 1832 | } | 1844 | } |
2017 | @@ -2319,16 +2331,24 @@ | |||
2018 | 2319 | } | 2331 | } |
2019 | 2320 | 2332 | ||
2020 | 2321 | /* Leave in AVP only those expressions, which are present in AV, | 2333 | /* Leave in AVP only those expressions, which are present in AV, |
2022 | 2322 | and return it. */ | 2334 | and return it, merging history expressions. */ |
2023 | 2323 | void | 2335 | void |
2025 | 2324 | av_set_intersect (av_set_t *avp, av_set_t av) | 2336 | av_set_code_motion_filter (av_set_t *avp, av_set_t av) |
2026 | 2325 | { | 2337 | { |
2027 | 2326 | av_set_iterator i; | 2338 | av_set_iterator i; |
2029 | 2327 | expr_t expr; | 2339 | expr_t expr, expr2; |
2030 | 2328 | 2340 | ||
2031 | 2329 | FOR_EACH_EXPR_1 (expr, i, avp) | 2341 | FOR_EACH_EXPR_1 (expr, i, avp) |
2033 | 2330 | if (av_set_lookup (av, EXPR_VINSN (expr)) == NULL) | 2342 | if ((expr2 = av_set_lookup (av, EXPR_VINSN (expr))) == NULL) |
2034 | 2331 | av_set_iter_remove (&i); | 2343 | av_set_iter_remove (&i); |
2035 | 2344 | else | ||
2036 | 2345 | /* When updating av sets in bookkeeping blocks, we can add more insns | ||
2037 | 2346 | there which will be transformed but the upper av sets will not | ||
2038 | 2347 | reflect those transformations. We then fail to undo those | ||
2039 | 2348 | when searching for such insns. So merge the history saved | ||
2040 | 2349 | in the av set of the block we are processing. */ | ||
2041 | 2350 | merge_history_vect (&EXPR_HISTORY_OF_CHANGES (expr), | ||
2042 | 2351 | EXPR_HISTORY_OF_CHANGES (expr2)); | ||
2043 | 2332 | } | 2352 | } |
2044 | 2333 | 2353 | ||
2045 | 2334 | 2354 | ||
2046 | 2335 | 2355 | ||
2047 | @@ -3539,9 +3559,10 @@ | |||
2048 | 3539 | 3559 | ||
2049 | 3540 | /* Tidy the possibly empty block BB. */ | 3560 | /* Tidy the possibly empty block BB. */ |
2050 | 3541 | static bool | 3561 | static bool |
2052 | 3542 | maybe_tidy_empty_bb (basic_block bb, bool recompute_toporder_p) | 3562 | maybe_tidy_empty_bb (basic_block bb) |
2053 | 3543 | { | 3563 | { |
2054 | 3544 | basic_block succ_bb, pred_bb; | 3564 | basic_block succ_bb, pred_bb; |
2055 | 3565 | VEC (basic_block, heap) *dom_bbs; | ||
2056 | 3545 | edge e; | 3566 | edge e; |
2057 | 3546 | edge_iterator ei; | 3567 | edge_iterator ei; |
2058 | 3547 | bool rescan_p; | 3568 | bool rescan_p; |
2059 | @@ -3577,6 +3598,7 @@ | |||
2060 | 3577 | succ_bb = single_succ (bb); | 3598 | succ_bb = single_succ (bb); |
2061 | 3578 | rescan_p = true; | 3599 | rescan_p = true; |
2062 | 3579 | pred_bb = NULL; | 3600 | pred_bb = NULL; |
2063 | 3601 | dom_bbs = NULL; | ||
2064 | 3580 | 3602 | ||
2065 | 3581 | /* Redirect all non-fallthru edges to the next bb. */ | 3603 | /* Redirect all non-fallthru edges to the next bb. */ |
2066 | 3582 | while (rescan_p) | 3604 | while (rescan_p) |
2067 | @@ -3589,20 +3611,44 @@ | |||
2068 | 3589 | 3611 | ||
2069 | 3590 | if (!(e->flags & EDGE_FALLTHRU)) | 3612 | if (!(e->flags & EDGE_FALLTHRU)) |
2070 | 3591 | { | 3613 | { |
2072 | 3592 | recompute_toporder_p |= sel_redirect_edge_and_branch (e, succ_bb); | 3614 | /* We can not invalidate computed topological order by moving |
2073 | 3615 | the edge destination block (E->SUCC) along a fallthru edge. | ||
2074 | 3616 | |||
2075 | 3617 | We will update dominators here only when we'll get | ||
2076 | 3618 | an unreachable block when redirecting, otherwise | ||
2077 | 3619 | sel_redirect_edge_and_branch will take care of it. */ | ||
2078 | 3620 | if (e->dest != bb | ||
2079 | 3621 | && single_pred_p (e->dest)) | ||
2080 | 3622 | VEC_safe_push (basic_block, heap, dom_bbs, e->dest); | ||
2081 | 3623 | sel_redirect_edge_and_branch (e, succ_bb); | ||
2082 | 3593 | rescan_p = true; | 3624 | rescan_p = true; |
2083 | 3594 | break; | 3625 | break; |
2084 | 3595 | } | 3626 | } |
2085 | 3627 | /* If the edge is fallthru, but PRED_BB ends in a conditional jump | ||
2086 | 3628 | to BB (so there is no non-fallthru edge from PRED_BB to BB), we | ||
2087 | 3629 | still have to adjust it. */ | ||
2088 | 3630 | else if (single_succ_p (pred_bb) && any_condjump_p (BB_END (pred_bb))) | ||
2089 | 3631 | { | ||
2090 | 3632 | /* If possible, try to remove the unneeded conditional jump. */ | ||
2091 | 3633 | if (INSN_SCHED_TIMES (BB_END (pred_bb)) == 0 | ||
2092 | 3634 | && !IN_CURRENT_FENCE_P (BB_END (pred_bb))) | ||
2093 | 3635 | { | ||
2094 | 3636 | if (!sel_remove_insn (BB_END (pred_bb), false, false)) | ||
2095 | 3637 | tidy_fallthru_edge (e); | ||
2096 | 3638 | } | ||
2097 | 3639 | else | ||
2098 | 3640 | sel_redirect_edge_and_branch (e, succ_bb); | ||
2099 | 3641 | rescan_p = true; | ||
2100 | 3642 | break; | ||
2101 | 3643 | } | ||
2102 | 3596 | } | 3644 | } |
2103 | 3597 | } | 3645 | } |
2104 | 3598 | 3646 | ||
2105 | 3599 | /* If it is possible - merge BB with its predecessor. */ | ||
2106 | 3600 | if (can_merge_blocks_p (bb->prev_bb, bb)) | 3647 | if (can_merge_blocks_p (bb->prev_bb, bb)) |
2107 | 3601 | sel_merge_blocks (bb->prev_bb, bb); | 3648 | sel_merge_blocks (bb->prev_bb, bb); |
2108 | 3602 | else | 3649 | else |
2109 | 3603 | /* Otherwise this is a block without fallthru predecessor. | ||
2110 | 3604 | Just delete it. */ | ||
2111 | 3605 | { | 3650 | { |
2112 | 3651 | /* This is a block without fallthru predecessor. Just delete it. */ | ||
2113 | 3606 | gcc_assert (pred_bb != NULL); | 3652 | gcc_assert (pred_bb != NULL); |
2114 | 3607 | 3653 | ||
2115 | 3608 | if (in_current_region_p (pred_bb)) | 3654 | if (in_current_region_p (pred_bb)) |
2116 | @@ -3610,12 +3656,12 @@ | |||
2117 | 3610 | remove_empty_bb (bb, true); | 3656 | remove_empty_bb (bb, true); |
2118 | 3611 | } | 3657 | } |
2119 | 3612 | 3658 | ||
2126 | 3613 | if (recompute_toporder_p) | 3659 | if (!VEC_empty (basic_block, dom_bbs)) |
2127 | 3614 | sel_recompute_toporder (); | 3660 | { |
2128 | 3615 | 3661 | VEC_safe_push (basic_block, heap, dom_bbs, succ_bb); | |
2129 | 3616 | #ifdef ENABLE_CHECKING | 3662 | iterate_fix_dominators (CDI_DOMINATORS, dom_bbs, false); |
2130 | 3617 | verify_backedges (); | 3663 | VEC_free (basic_block, heap, dom_bbs); |
2131 | 3618 | #endif | 3664 | } |
2132 | 3619 | 3665 | ||
2133 | 3620 | return true; | 3666 | return true; |
2134 | 3621 | } | 3667 | } |
2135 | @@ -3630,12 +3676,12 @@ | |||
2136 | 3630 | insn_t first, last; | 3676 | insn_t first, last; |
2137 | 3631 | 3677 | ||
2138 | 3632 | /* First check whether XBB is empty. */ | 3678 | /* First check whether XBB is empty. */ |
2140 | 3633 | changed = maybe_tidy_empty_bb (xbb, false); | 3679 | changed = maybe_tidy_empty_bb (xbb); |
2141 | 3634 | if (changed || !full_tidying) | 3680 | if (changed || !full_tidying) |
2142 | 3635 | return changed; | 3681 | return changed; |
2143 | 3636 | 3682 | ||
2144 | 3637 | /* Check if there is a unnecessary jump after insn left. */ | 3683 | /* Check if there is a unnecessary jump after insn left. */ |
2146 | 3638 | if (jump_leads_only_to_bb_p (BB_END (xbb), xbb->next_bb) | 3684 | if (bb_has_removable_jump_to_p (xbb, xbb->next_bb) |
2147 | 3639 | && INSN_SCHED_TIMES (BB_END (xbb)) == 0 | 3685 | && INSN_SCHED_TIMES (BB_END (xbb)) == 0 |
2148 | 3640 | && !IN_CURRENT_FENCE_P (BB_END (xbb))) | 3686 | && !IN_CURRENT_FENCE_P (BB_END (xbb))) |
2149 | 3641 | { | 3687 | { |
2150 | @@ -3676,7 +3722,7 @@ | |||
2151 | 3676 | /* And unconditional jump in previous basic block leads to | 3722 | /* And unconditional jump in previous basic block leads to |
2152 | 3677 | next basic block of XBB and this jump can be safely removed. */ | 3723 | next basic block of XBB and this jump can be safely removed. */ |
2153 | 3678 | && in_current_region_p (xbb->prev_bb) | 3724 | && in_current_region_p (xbb->prev_bb) |
2155 | 3679 | && jump_leads_only_to_bb_p (BB_END (xbb->prev_bb), xbb->next_bb) | 3725 | && bb_has_removable_jump_to_p (xbb->prev_bb, xbb->next_bb) |
2156 | 3680 | && INSN_SCHED_TIMES (BB_END (xbb->prev_bb)) == 0 | 3726 | && INSN_SCHED_TIMES (BB_END (xbb->prev_bb)) == 0 |
2157 | 3681 | /* Also this jump is not at the scheduling boundary. */ | 3727 | /* Also this jump is not at the scheduling boundary. */ |
2158 | 3682 | && !IN_CURRENT_FENCE_P (BB_END (xbb->prev_bb))) | 3728 | && !IN_CURRENT_FENCE_P (BB_END (xbb->prev_bb))) |
2159 | @@ -3694,11 +3740,16 @@ | |||
2160 | 3694 | that contained that jump, becomes empty too. In such case | 3740 | that contained that jump, becomes empty too. In such case |
2161 | 3695 | remove it too. */ | 3741 | remove it too. */ |
2162 | 3696 | if (sel_bb_empty_p (xbb->prev_bb)) | 3742 | if (sel_bb_empty_p (xbb->prev_bb)) |
2165 | 3697 | changed = maybe_tidy_empty_bb (xbb->prev_bb, recompute_toporder_p); | 3743 | changed = maybe_tidy_empty_bb (xbb->prev_bb); |
2166 | 3698 | else if (recompute_toporder_p) | 3744 | if (recompute_toporder_p) |
2167 | 3699 | sel_recompute_toporder (); | 3745 | sel_recompute_toporder (); |
2168 | 3700 | } | 3746 | } |
2169 | 3701 | 3747 | ||
2170 | 3748 | #ifdef ENABLE_CHECKING | ||
2171 | 3749 | verify_backedges (); | ||
2172 | 3750 | verify_dominators (CDI_DOMINATORS); | ||
2173 | 3751 | #endif | ||
2174 | 3752 | |||
2175 | 3702 | return changed; | 3753 | return changed; |
2176 | 3703 | } | 3754 | } |
2177 | 3704 | 3755 | ||
2178 | @@ -3706,14 +3757,14 @@ | |||
2179 | 3706 | void | 3757 | void |
2180 | 3707 | purge_empty_blocks (void) | 3758 | purge_empty_blocks (void) |
2181 | 3708 | { | 3759 | { |
2184 | 3709 | /* Do not attempt to delete preheader. */ | 3760 | int i; |
2183 | 3710 | int i = sel_is_loop_preheader_p (BASIC_BLOCK (BB_TO_BLOCK (0))) ? 1 : 0; | ||
2185 | 3711 | 3761 | ||
2187 | 3712 | while (i < current_nr_blocks) | 3762 | /* Do not attempt to delete the first basic block in the region. */ |
2188 | 3763 | for (i = 1; i < current_nr_blocks; ) | ||
2189 | 3713 | { | 3764 | { |
2190 | 3714 | basic_block b = BASIC_BLOCK (BB_TO_BLOCK (i)); | 3765 | basic_block b = BASIC_BLOCK (BB_TO_BLOCK (i)); |
2191 | 3715 | 3766 | ||
2193 | 3716 | if (maybe_tidy_empty_bb (b, false)) | 3767 | if (maybe_tidy_empty_bb (b)) |
2194 | 3717 | continue; | 3768 | continue; |
2195 | 3718 | 3769 | ||
2196 | 3719 | i++; | 3770 | i++; |
2197 | @@ -4381,9 +4432,6 @@ | |||
2198 | 4381 | if (!JUMP_P (jump)) | 4432 | if (!JUMP_P (jump)) |
2199 | 4382 | return NULL; | 4433 | return NULL; |
2200 | 4383 | 4434 | ||
2201 | 4384 | if (any_uncondjump_p (jump)) | ||
2202 | 4385 | return single_succ (BLOCK_FOR_INSN (jump)); | ||
2203 | 4386 | |||
2204 | 4387 | if (!any_condjump_p (jump)) | 4435 | if (!any_condjump_p (jump)) |
2205 | 4388 | return NULL; | 4436 | return NULL; |
2206 | 4389 | 4437 | ||
2207 | @@ -4578,8 +4626,12 @@ | |||
2208 | 4578 | basic_block pred_bb = e->src; | 4626 | basic_block pred_bb = e->src; |
2209 | 4579 | insn_t bb_end = BB_END (pred_bb); | 4627 | insn_t bb_end = BB_END (pred_bb); |
2210 | 4580 | 4628 | ||
2213 | 4581 | /* ??? This code is not supposed to walk out of a region. */ | 4629 | if (!in_current_region_p (pred_bb)) |
2214 | 4582 | gcc_assert (in_current_region_p (pred_bb)); | 4630 | { |
2215 | 4631 | gcc_assert (flag_sel_sched_pipelining_outer_loops | ||
2216 | 4632 | && current_loop_nest); | ||
2217 | 4633 | continue; | ||
2218 | 4634 | } | ||
2219 | 4583 | 4635 | ||
2220 | 4584 | if (sel_bb_empty_p (pred_bb)) | 4636 | if (sel_bb_empty_p (pred_bb)) |
2221 | 4585 | cfg_preds_1 (pred_bb, preds, n, size); | 4637 | cfg_preds_1 (pred_bb, preds, n, size); |
2222 | @@ -4592,7 +4644,9 @@ | |||
2223 | 4592 | } | 4644 | } |
2224 | 4593 | } | 4645 | } |
2225 | 4594 | 4646 | ||
2227 | 4595 | gcc_assert (*n != 0); | 4647 | gcc_assert (*n != 0 |
2228 | 4648 | || (flag_sel_sched_pipelining_outer_loops | ||
2229 | 4649 | && current_loop_nest)); | ||
2230 | 4596 | } | 4650 | } |
2231 | 4597 | 4651 | ||
2232 | 4598 | /* Find all predecessors of BB and record them in PREDS and their number | 4652 | /* Find all predecessors of BB and record them in PREDS and their number |
2233 | @@ -5018,16 +5072,23 @@ | |||
2234 | 5018 | static void | 5072 | static void |
2235 | 5019 | sel_remove_bb (basic_block bb, bool remove_from_cfg_p) | 5073 | sel_remove_bb (basic_block bb, bool remove_from_cfg_p) |
2236 | 5020 | { | 5074 | { |
2237 | 5075 | unsigned idx = bb->index; | ||
2238 | 5076 | |||
2239 | 5021 | gcc_assert (bb != NULL && BB_NOTE_LIST (bb) == NULL_RTX); | 5077 | gcc_assert (bb != NULL && BB_NOTE_LIST (bb) == NULL_RTX); |
2240 | 5022 | 5078 | ||
2241 | 5023 | remove_bb_from_region (bb); | 5079 | remove_bb_from_region (bb); |
2242 | 5024 | return_bb_to_pool (bb); | 5080 | return_bb_to_pool (bb); |
2244 | 5025 | bitmap_clear_bit (blocks_to_reschedule, bb->index); | 5081 | bitmap_clear_bit (blocks_to_reschedule, idx); |
2245 | 5026 | 5082 | ||
2246 | 5027 | if (remove_from_cfg_p) | 5083 | if (remove_from_cfg_p) |
2248 | 5028 | delete_and_free_basic_block (bb); | 5084 | { |
2249 | 5085 | basic_block succ = single_succ (bb); | ||
2250 | 5086 | delete_and_free_basic_block (bb); | ||
2251 | 5087 | set_immediate_dominator (CDI_DOMINATORS, succ, | ||
2252 | 5088 | recompute_dominator (CDI_DOMINATORS, succ)); | ||
2253 | 5089 | } | ||
2254 | 5029 | 5090 | ||
2256 | 5030 | rgn_setup_region (CONTAINING_RGN (bb->index)); | 5091 | rgn_setup_region (CONTAINING_RGN (idx)); |
2257 | 5031 | } | 5092 | } |
2258 | 5032 | 5093 | ||
2259 | 5033 | /* Concatenate info of EMPTY_BB to info of MERGE_BB. */ | 5094 | /* Concatenate info of EMPTY_BB to info of MERGE_BB. */ |
2260 | @@ -5042,50 +5103,6 @@ | |||
2261 | 5042 | 5103 | ||
2262 | 5043 | } | 5104 | } |
2263 | 5044 | 5105 | ||
2264 | 5045 | /* Remove an empty basic block EMPTY_BB. When MERGE_UP_P is true, we put | ||
2265 | 5046 | EMPTY_BB's note lists into its predecessor instead of putting them | ||
2266 | 5047 | into the successor. When REMOVE_FROM_CFG_P is true, also remove | ||
2267 | 5048 | the empty block. */ | ||
2268 | 5049 | void | ||
2269 | 5050 | sel_remove_empty_bb (basic_block empty_bb, bool merge_up_p, | ||
2270 | 5051 | bool remove_from_cfg_p) | ||
2271 | 5052 | { | ||
2272 | 5053 | basic_block merge_bb; | ||
2273 | 5054 | |||
2274 | 5055 | gcc_assert (sel_bb_empty_p (empty_bb)); | ||
2275 | 5056 | |||
2276 | 5057 | if (merge_up_p) | ||
2277 | 5058 | { | ||
2278 | 5059 | merge_bb = empty_bb->prev_bb; | ||
2279 | 5060 | gcc_assert (EDGE_COUNT (empty_bb->preds) == 1 | ||
2280 | 5061 | && EDGE_PRED (empty_bb, 0)->src == merge_bb); | ||
2281 | 5062 | } | ||
2282 | 5063 | else | ||
2283 | 5064 | { | ||
2284 | 5065 | edge e; | ||
2285 | 5066 | edge_iterator ei; | ||
2286 | 5067 | |||
2287 | 5068 | merge_bb = bb_next_bb (empty_bb); | ||
2288 | 5069 | |||
2289 | 5070 | /* Redirect incoming edges (except fallthrough one) of EMPTY_BB to its | ||
2290 | 5071 | successor block. */ | ||
2291 | 5072 | for (ei = ei_start (empty_bb->preds); | ||
2292 | 5073 | (e = ei_safe_edge (ei)); ) | ||
2293 | 5074 | { | ||
2294 | 5075 | if (! (e->flags & EDGE_FALLTHRU)) | ||
2295 | 5076 | sel_redirect_edge_and_branch (e, merge_bb); | ||
2296 | 5077 | else | ||
2297 | 5078 | ei_next (&ei); | ||
2298 | 5079 | } | ||
2299 | 5080 | |||
2300 | 5081 | gcc_assert (EDGE_COUNT (empty_bb->succs) == 1 | ||
2301 | 5082 | && EDGE_SUCC (empty_bb, 0)->dest == merge_bb); | ||
2302 | 5083 | } | ||
2303 | 5084 | |||
2304 | 5085 | move_bb_info (merge_bb, empty_bb); | ||
2305 | 5086 | remove_empty_bb (empty_bb, remove_from_cfg_p); | ||
2306 | 5087 | } | ||
2307 | 5088 | |||
2308 | 5089 | /* Remove EMPTY_BB. If REMOVE_FROM_CFG_P is false, remove EMPTY_BB from | 5106 | /* Remove EMPTY_BB. If REMOVE_FROM_CFG_P is false, remove EMPTY_BB from |
2309 | 5090 | region, but keep it in CFG. */ | 5107 | region, but keep it in CFG. */ |
2310 | 5091 | static void | 5108 | static void |
2311 | @@ -5385,12 +5402,16 @@ | |||
2312 | 5385 | } | 5402 | } |
2313 | 5386 | 5403 | ||
2314 | 5387 | /* Merge basic block B into basic block A. */ | 5404 | /* Merge basic block B into basic block A. */ |
2316 | 5388 | void | 5405 | static void |
2317 | 5389 | sel_merge_blocks (basic_block a, basic_block b) | 5406 | sel_merge_blocks (basic_block a, basic_block b) |
2318 | 5390 | { | 5407 | { |
2320 | 5391 | sel_remove_empty_bb (b, true, false); | 5408 | gcc_assert (sel_bb_empty_p (b) |
2321 | 5409 | && EDGE_COUNT (b->preds) == 1 | ||
2322 | 5410 | && EDGE_PRED (b, 0)->src == b->prev_bb); | ||
2323 | 5411 | |||
2324 | 5412 | move_bb_info (b->prev_bb, b); | ||
2325 | 5413 | remove_empty_bb (b, false); | ||
2326 | 5392 | merge_blocks (a, b); | 5414 | merge_blocks (a, b); |
2327 | 5393 | |||
2328 | 5394 | change_loops_latches (b, a); | 5415 | change_loops_latches (b, a); |
2329 | 5395 | } | 5416 | } |
2330 | 5396 | 5417 | ||
2331 | @@ -5400,12 +5421,15 @@ | |||
2332 | 5400 | void | 5421 | void |
2333 | 5401 | sel_redirect_edge_and_branch_force (edge e, basic_block to) | 5422 | sel_redirect_edge_and_branch_force (edge e, basic_block to) |
2334 | 5402 | { | 5423 | { |
2336 | 5403 | basic_block jump_bb, src; | 5424 | basic_block jump_bb, src, orig_dest = e->dest; |
2337 | 5404 | int prev_max_uid; | 5425 | int prev_max_uid; |
2338 | 5405 | rtx jump; | 5426 | rtx jump; |
2339 | 5406 | 5427 | ||
2342 | 5407 | gcc_assert (!sel_bb_empty_p (e->src)); | 5428 | /* This function is now used only for bookkeeping code creation, where |
2343 | 5408 | 5429 | we'll never get the single pred of orig_dest block and thus will not | |
2344 | 5430 | hit unreachable blocks when updating dominator info. */ | ||
2345 | 5431 | gcc_assert (!sel_bb_empty_p (e->src) | ||
2346 | 5432 | && !single_pred_p (orig_dest)); | ||
2347 | 5409 | src = e->src; | 5433 | src = e->src; |
2348 | 5410 | prev_max_uid = get_max_uid (); | 5434 | prev_max_uid = get_max_uid (); |
2349 | 5411 | jump_bb = redirect_edge_and_branch_force (e, to); | 5435 | jump_bb = redirect_edge_and_branch_force (e, to); |
2350 | @@ -5422,6 +5446,10 @@ | |||
2351 | 5422 | jump = find_new_jump (src, jump_bb, prev_max_uid); | 5446 | jump = find_new_jump (src, jump_bb, prev_max_uid); |
2352 | 5423 | if (jump) | 5447 | if (jump) |
2353 | 5424 | sel_init_new_insn (jump, INSN_INIT_TODO_LUID | INSN_INIT_TODO_SIMPLEJUMP); | 5448 | sel_init_new_insn (jump, INSN_INIT_TODO_LUID | INSN_INIT_TODO_SIMPLEJUMP); |
2354 | 5449 | set_immediate_dominator (CDI_DOMINATORS, to, | ||
2355 | 5450 | recompute_dominator (CDI_DOMINATORS, to)); | ||
2356 | 5451 | set_immediate_dominator (CDI_DOMINATORS, orig_dest, | ||
2357 | 5452 | recompute_dominator (CDI_DOMINATORS, orig_dest)); | ||
2358 | 5425 | } | 5453 | } |
2359 | 5426 | 5454 | ||
2360 | 5427 | /* A wrapper for redirect_edge_and_branch. Return TRUE if blocks connected by | 5455 | /* A wrapper for redirect_edge_and_branch. Return TRUE if blocks connected by |
2361 | @@ -5430,11 +5458,12 @@ | |||
2362 | 5430 | sel_redirect_edge_and_branch (edge e, basic_block to) | 5458 | sel_redirect_edge_and_branch (edge e, basic_block to) |
2363 | 5431 | { | 5459 | { |
2364 | 5432 | bool latch_edge_p; | 5460 | bool latch_edge_p; |
2366 | 5433 | basic_block src; | 5461 | basic_block src, orig_dest = e->dest; |
2367 | 5434 | int prev_max_uid; | 5462 | int prev_max_uid; |
2368 | 5435 | rtx jump; | 5463 | rtx jump; |
2369 | 5436 | edge redirected; | 5464 | edge redirected; |
2370 | 5437 | bool recompute_toporder_p = false; | 5465 | bool recompute_toporder_p = false; |
2371 | 5466 | bool maybe_unreachable = single_pred_p (orig_dest); | ||
2372 | 5438 | 5467 | ||
2373 | 5439 | latch_edge_p = (pipelining_p | 5468 | latch_edge_p = (pipelining_p |
2374 | 5440 | && current_loop_nest | 5469 | && current_loop_nest |
2375 | @@ -5465,6 +5494,15 @@ | |||
2376 | 5465 | if (jump) | 5494 | if (jump) |
2377 | 5466 | sel_init_new_insn (jump, INSN_INIT_TODO_LUID | INSN_INIT_TODO_SIMPLEJUMP); | 5495 | sel_init_new_insn (jump, INSN_INIT_TODO_LUID | INSN_INIT_TODO_SIMPLEJUMP); |
2378 | 5467 | 5496 | ||
2379 | 5497 | /* Only update dominator info when we don't have unreachable blocks. | ||
2380 | 5498 | Otherwise we'll update in maybe_tidy_empty_bb. */ | ||
2381 | 5499 | if (!maybe_unreachable) | ||
2382 | 5500 | { | ||
2383 | 5501 | set_immediate_dominator (CDI_DOMINATORS, to, | ||
2384 | 5502 | recompute_dominator (CDI_DOMINATORS, to)); | ||
2385 | 5503 | set_immediate_dominator (CDI_DOMINATORS, orig_dest, | ||
2386 | 5504 | recompute_dominator (CDI_DOMINATORS, orig_dest)); | ||
2387 | 5505 | } | ||
2388 | 5468 | return recompute_toporder_p; | 5506 | return recompute_toporder_p; |
2389 | 5469 | } | 5507 | } |
2390 | 5470 | 5508 | ||
2391 | @@ -5603,7 +5641,7 @@ | |||
2392 | 5603 | gcc_assert (nop_pattern == NULL_RTX | 5641 | gcc_assert (nop_pattern == NULL_RTX |
2393 | 5604 | && exit_insn == NULL_RTX); | 5642 | && exit_insn == NULL_RTX); |
2394 | 5605 | 5643 | ||
2396 | 5606 | nop_pattern = gen_nop (); | 5644 | nop_pattern = constm1_rtx; |
2397 | 5607 | 5645 | ||
2398 | 5608 | start_sequence (); | 5646 | start_sequence (); |
2399 | 5609 | emit_insn (nop_pattern); | 5647 | emit_insn (nop_pattern); |
2400 | @@ -6093,22 +6131,20 @@ | |||
2401 | 6093 | return false; | 6131 | return false; |
2402 | 6094 | } | 6132 | } |
2403 | 6095 | 6133 | ||
2407 | 6096 | /* Checks whether JUMP leads to basic block DEST_BB and no other blocks. */ | 6134 | /* Check whether JUMP_BB ends with a jump insn that leads only to DEST_BB and |
2408 | 6097 | bool | 6135 | can be removed, making the corresponding edge fallthrough (assuming that |
2409 | 6098 | jump_leads_only_to_bb_p (insn_t jump, basic_block dest_bb) | 6136 | all basic blocks between JUMP_BB and DEST_BB are empty). */ |
2410 | 6137 | static bool | ||
2411 | 6138 | bb_has_removable_jump_to_p (basic_block jump_bb, basic_block dest_bb) | ||
2412 | 6099 | { | 6139 | { |
2419 | 6100 | basic_block jump_bb = BLOCK_FOR_INSN (jump); | 6140 | if (!onlyjump_p (BB_END (jump_bb)) |
2420 | 6101 | 6141 | || tablejump_p (BB_END (jump_bb), NULL, NULL)) | |
2415 | 6102 | /* It is not jump, jump with side-effects or jump can lead to several | ||
2416 | 6103 | basic blocks. */ | ||
2417 | 6104 | if (!onlyjump_p (jump) | ||
2418 | 6105 | || !any_uncondjump_p (jump)) | ||
2421 | 6106 | return false; | 6142 | return false; |
2422 | 6107 | 6143 | ||
2423 | 6108 | /* Several outgoing edges, abnormal edge or destination of jump is | 6144 | /* Several outgoing edges, abnormal edge or destination of jump is |
2424 | 6109 | not DEST_BB. */ | 6145 | not DEST_BB. */ |
2425 | 6110 | if (EDGE_COUNT (jump_bb->succs) != 1 | 6146 | if (EDGE_COUNT (jump_bb->succs) != 1 |
2427 | 6111 | || EDGE_SUCC (jump_bb, 0)->flags & EDGE_ABNORMAL | 6147 | || EDGE_SUCC (jump_bb, 0)->flags & (EDGE_ABNORMAL | EDGE_CROSSING) |
2428 | 6112 | || EDGE_SUCC (jump_bb, 0)->dest != dest_bb) | 6148 | || EDGE_SUCC (jump_bb, 0)->dest != dest_bb) |
2429 | 6113 | return false; | 6149 | return false; |
2430 | 6114 | 6150 | ||
2431 | @@ -6188,12 +6224,16 @@ | |||
2432 | 6188 | basic block if it becomes empty. */ | 6224 | basic block if it becomes empty. */ |
2433 | 6189 | if (next_bb->prev_bb == prev_bb | 6225 | if (next_bb->prev_bb == prev_bb |
2434 | 6190 | && prev_bb != ENTRY_BLOCK_PTR | 6226 | && prev_bb != ENTRY_BLOCK_PTR |
2436 | 6191 | && jump_leads_only_to_bb_p (BB_END (prev_bb), next_bb)) | 6227 | && bb_has_removable_jump_to_p (prev_bb, next_bb)) |
2437 | 6192 | { | 6228 | { |
2438 | 6193 | redirect_edge_and_branch (EDGE_SUCC (prev_bb, 0), next_bb); | 6229 | redirect_edge_and_branch (EDGE_SUCC (prev_bb, 0), next_bb); |
2439 | 6194 | if (BB_END (prev_bb) == bb_note (prev_bb)) | 6230 | if (BB_END (prev_bb) == bb_note (prev_bb)) |
2440 | 6195 | free_data_sets (prev_bb); | 6231 | free_data_sets (prev_bb); |
2441 | 6196 | } | 6232 | } |
2442 | 6233 | |||
2443 | 6234 | set_immediate_dominator (CDI_DOMINATORS, next_bb, | ||
2444 | 6235 | recompute_dominator (CDI_DOMINATORS, | ||
2445 | 6236 | next_bb)); | ||
2446 | 6197 | } | 6237 | } |
2447 | 6198 | } | 6238 | } |
2448 | 6199 | VEC_free (basic_block, heap, preheader_blocks); | 6239 | VEC_free (basic_block, heap, preheader_blocks); |
2449 | 6200 | 6240 | ||
2450 | === modified file 'gcc/sel-sched-ir.h' | |||
2451 | --- gcc/sel-sched-ir.h 2010-06-02 16:31:39 +0000 | |||
2452 | +++ gcc/sel-sched-ir.h 2011-04-28 16:44:05 +0000 | |||
2453 | @@ -1565,7 +1565,7 @@ | |||
2454 | 1565 | extern expr_t av_set_element (av_set_t, int); | 1565 | extern expr_t av_set_element (av_set_t, int); |
2455 | 1566 | extern void av_set_substract_cond_branches (av_set_t *); | 1566 | extern void av_set_substract_cond_branches (av_set_t *); |
2456 | 1567 | extern void av_set_split_usefulness (av_set_t, int, int); | 1567 | extern void av_set_split_usefulness (av_set_t, int, int); |
2458 | 1568 | extern void av_set_intersect (av_set_t *, av_set_t); | 1568 | extern void av_set_code_motion_filter (av_set_t *, av_set_t); |
2459 | 1569 | 1569 | ||
2460 | 1570 | extern void sel_save_haifa_priorities (void); | 1570 | extern void sel_save_haifa_priorities (void); |
2461 | 1571 | 1571 | ||
2462 | @@ -1590,7 +1590,6 @@ | |||
2463 | 1590 | extern bool bb_header_p (insn_t); | 1590 | extern bool bb_header_p (insn_t); |
2464 | 1591 | extern void sel_init_invalid_data_sets (insn_t); | 1591 | extern void sel_init_invalid_data_sets (insn_t); |
2465 | 1592 | extern bool insn_at_boundary_p (insn_t); | 1592 | extern bool insn_at_boundary_p (insn_t); |
2466 | 1593 | extern bool jump_leads_only_to_bb_p (insn_t, basic_block); | ||
2467 | 1594 | 1593 | ||
2468 | 1595 | /* Basic block and CFG functions. */ | 1594 | /* Basic block and CFG functions. */ |
2469 | 1596 | 1595 | ||
2470 | @@ -1618,11 +1617,9 @@ | |||
2471 | 1618 | extern bool tidy_control_flow (basic_block, bool); | 1617 | extern bool tidy_control_flow (basic_block, bool); |
2472 | 1619 | extern void free_bb_note_pool (void); | 1618 | extern void free_bb_note_pool (void); |
2473 | 1620 | 1619 | ||
2474 | 1621 | extern void sel_remove_empty_bb (basic_block, bool, bool); | ||
2475 | 1622 | extern void purge_empty_blocks (void); | 1620 | extern void purge_empty_blocks (void); |
2476 | 1623 | extern basic_block sel_split_edge (edge); | 1621 | extern basic_block sel_split_edge (edge); |
2477 | 1624 | extern basic_block sel_create_recovery_block (insn_t); | 1622 | extern basic_block sel_create_recovery_block (insn_t); |
2478 | 1625 | extern void sel_merge_blocks (basic_block, basic_block); | ||
2479 | 1626 | extern bool sel_redirect_edge_and_branch (edge, basic_block); | 1623 | extern bool sel_redirect_edge_and_branch (edge, basic_block); |
2480 | 1627 | extern void sel_redirect_edge_and_branch_force (edge, basic_block); | 1624 | extern void sel_redirect_edge_and_branch_force (edge, basic_block); |
2481 | 1628 | extern void sel_init_pipelining (void); | 1625 | extern void sel_init_pipelining (void); |
2482 | 1629 | 1626 | ||
2483 | === modified file 'gcc/sel-sched.c' | |||
2484 | --- gcc/sel-sched.c 2011-02-08 10:51:58 +0000 | |||
2485 | +++ gcc/sel-sched.c 2011-04-28 16:44:05 +0000 | |||
2486 | @@ -1,5 +1,6 @@ | |||
2487 | 1 | /* Instruction scheduling pass. Selective scheduler and pipeliner. | 1 | /* Instruction scheduling pass. Selective scheduler and pipeliner. |
2489 | 2 | Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 2 | Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 |
2490 | 3 | Free Software Foundation, Inc. | ||
2491 | 3 | 4 | ||
2492 | 4 | This file is part of GCC. | 5 | This file is part of GCC. |
2493 | 5 | 6 | ||
2494 | @@ -1138,6 +1139,9 @@ | |||
2495 | 1138 | /* Can't use regs which aren't saved by | 1139 | /* Can't use regs which aren't saved by |
2496 | 1139 | the prologue. */ | 1140 | the prologue. */ |
2497 | 1140 | || !TEST_HARD_REG_BIT (sel_hrd.regs_ever_used, cur_reg + i) | 1141 | || !TEST_HARD_REG_BIT (sel_hrd.regs_ever_used, cur_reg + i) |
2498 | 1142 | /* Can't use regs with non-null REG_BASE_VALUE, because adjusting | ||
2499 | 1143 | it affects aliasing globally and invalidates all AV sets. */ | ||
2500 | 1144 | || get_reg_base_value (cur_reg + i) | ||
2501 | 1141 | #ifdef LEAF_REGISTERS | 1145 | #ifdef LEAF_REGISTERS |
2502 | 1142 | /* We can't use a non-leaf register if we're in a | 1146 | /* We can't use a non-leaf register if we're in a |
2503 | 1143 | leaf function. */ | 1147 | leaf function. */ |
2504 | @@ -2167,10 +2171,8 @@ | |||
2505 | 2167 | || ! in_current_region_p (fallthru_bb)) | 2171 | || ! in_current_region_p (fallthru_bb)) |
2506 | 2168 | return MOVEUP_EXPR_NULL; | 2172 | return MOVEUP_EXPR_NULL; |
2507 | 2169 | 2173 | ||
2512 | 2170 | /* And it should be mutually exclusive with through_insn, or | 2174 | /* And it should be mutually exclusive with through_insn. */ |
2513 | 2171 | be an unconditional jump. */ | 2175 | if (! sched_insns_conditions_mutex_p (insn, through_insn) |
2510 | 2172 | if (! any_uncondjump_p (insn) | ||
2511 | 2173 | && ! sched_insns_conditions_mutex_p (insn, through_insn) | ||
2514 | 2174 | && ! DEBUG_INSN_P (through_insn)) | 2176 | && ! DEBUG_INSN_P (through_insn)) |
2515 | 2175 | return MOVEUP_EXPR_NULL; | 2177 | return MOVEUP_EXPR_NULL; |
2516 | 2176 | } | 2178 | } |
2517 | @@ -3735,7 +3737,7 @@ | |||
2518 | 3735 | { | 3737 | { |
2519 | 3736 | expr_t expr = VEC_index (expr_t, vec_av_set, n); | 3738 | expr_t expr = VEC_index (expr_t, vec_av_set, n); |
2520 | 3737 | insn_t insn = EXPR_INSN_RTX (expr); | 3739 | insn_t insn = EXPR_INSN_RTX (expr); |
2522 | 3738 | char target_available; | 3740 | signed char target_available; |
2523 | 3739 | bool is_orig_reg_p = true; | 3741 | bool is_orig_reg_p = true; |
2524 | 3740 | int need_cycles, new_prio; | 3742 | int need_cycles, new_prio; |
2525 | 3741 | 3743 | ||
2526 | @@ -4403,7 +4405,8 @@ | |||
2527 | 4403 | { | 4405 | { |
2528 | 4404 | can_issue_more = invoke_aftermath_hooks (fence, EXPR_INSN_RTX (best), | 4406 | can_issue_more = invoke_aftermath_hooks (fence, EXPR_INSN_RTX (best), |
2529 | 4405 | can_issue_more); | 4407 | can_issue_more); |
2531 | 4406 | if (can_issue_more == 0) | 4408 | if (targetm.sched.variable_issue |
2532 | 4409 | && can_issue_more == 0) | ||
2533 | 4407 | *pneed_stall = 1; | 4410 | *pneed_stall = 1; |
2534 | 4408 | } | 4411 | } |
2535 | 4409 | 4412 | ||
2536 | @@ -5514,7 +5517,7 @@ | |||
2537 | 5514 | blist_t *bnds_tailp1, *bndsp; | 5517 | blist_t *bnds_tailp1, *bndsp; |
2538 | 5515 | expr_t expr_vliw; | 5518 | expr_t expr_vliw; |
2539 | 5516 | int need_stall; | 5519 | int need_stall; |
2541 | 5517 | int was_stall = 0, scheduled_insns = 0, stall_iterations = 0; | 5520 | int was_stall = 0, scheduled_insns = 0; |
2542 | 5518 | int max_insns = pipelining_p ? issue_rate : 2 * issue_rate; | 5521 | int max_insns = pipelining_p ? issue_rate : 2 * issue_rate; |
2543 | 5519 | int max_stall = pipelining_p ? 1 : 3; | 5522 | int max_stall = pipelining_p ? 1 : 3; |
2544 | 5520 | bool last_insn_was_debug = false; | 5523 | bool last_insn_was_debug = false; |
2545 | @@ -5533,16 +5536,15 @@ | |||
2546 | 5533 | do | 5536 | do |
2547 | 5534 | { | 5537 | { |
2548 | 5535 | expr_vliw = find_best_expr (&av_vliw, bnds, fence, &need_stall); | 5538 | expr_vliw = find_best_expr (&av_vliw, bnds, fence, &need_stall); |
2550 | 5536 | if (!expr_vliw && need_stall) | 5539 | if (! expr_vliw && need_stall) |
2551 | 5537 | { | 5540 | { |
2552 | 5538 | /* All expressions required a stall. Do not recompute av sets | 5541 | /* All expressions required a stall. Do not recompute av sets |
2553 | 5539 | as we'll get the same answer (modulo the insns between | 5542 | as we'll get the same answer (modulo the insns between |
2554 | 5540 | the fence and its boundary, which will not be available for | 5543 | the fence and its boundary, which will not be available for |
2557 | 5541 | pipelining). */ | 5544 | pipelining). |
2558 | 5542 | gcc_assert (! expr_vliw && stall_iterations < 2); | 5545 | If we are going to stall for too long, break to recompute av |
2559 | 5546 | sets and bring more insns for pipelining. */ | ||
2560 | 5543 | was_stall++; | 5547 | was_stall++; |
2561 | 5544 | /* If we are going to stall for too long, break to recompute av | ||
2562 | 5545 | sets and bring more insns for pipelining. */ | ||
2563 | 5546 | if (need_stall <= 3) | 5548 | if (need_stall <= 3) |
2564 | 5547 | stall_for_cycles (fence, need_stall); | 5549 | stall_for_cycles (fence, need_stall); |
2565 | 5548 | else | 5550 | else |
2566 | @@ -6475,7 +6477,7 @@ | |||
2567 | 6475 | 6477 | ||
2568 | 6476 | /* Filter the orig_ops set. */ | 6478 | /* Filter the orig_ops set. */ |
2569 | 6477 | if (AV_SET_VALID_P (insn)) | 6479 | if (AV_SET_VALID_P (insn)) |
2571 | 6478 | av_set_intersect (&orig_ops, AV_SET (insn)); | 6480 | av_set_code_motion_filter (&orig_ops, AV_SET (insn)); |
2572 | 6479 | 6481 | ||
2573 | 6480 | /* If no more original ops, return immediately. */ | 6482 | /* If no more original ops, return immediately. */ |
2574 | 6481 | if (!orig_ops) | 6483 | if (!orig_ops) |
2575 | @@ -6717,6 +6719,8 @@ | |||
2576 | 6717 | 6719 | ||
2577 | 6718 | init_seqno_1 (succ, visited_bbs, blocks_to_reschedule); | 6720 | init_seqno_1 (succ, visited_bbs, blocks_to_reschedule); |
2578 | 6719 | } | 6721 | } |
2579 | 6722 | else if (blocks_to_reschedule) | ||
2580 | 6723 | bitmap_set_bit (forced_ebb_heads, succ->index); | ||
2581 | 6720 | } | 6724 | } |
2582 | 6721 | 6725 | ||
2583 | 6722 | for (insn = BB_END (bb); insn != note; insn = PREV_INSN (insn)) | 6726 | for (insn = BB_END (bb); insn != note; insn = PREV_INSN (insn)) |
2584 | @@ -6971,6 +6975,7 @@ | |||
2585 | 6971 | int last_clock = 0; | 6975 | int last_clock = 0; |
2586 | 6972 | int haifa_last_clock = -1; | 6976 | int haifa_last_clock = -1; |
2587 | 6973 | int haifa_clock = 0; | 6977 | int haifa_clock = 0; |
2588 | 6978 | int issued_insns = 0; | ||
2589 | 6974 | insn_t insn; | 6979 | insn_t insn; |
2590 | 6975 | 6980 | ||
2591 | 6976 | if (targetm.sched.md_init) | 6981 | if (targetm.sched.md_init) |
2592 | @@ -6989,7 +6994,7 @@ | |||
2593 | 6989 | { | 6994 | { |
2594 | 6990 | int cost, haifa_cost; | 6995 | int cost, haifa_cost; |
2595 | 6991 | int sort_p; | 6996 | int sort_p; |
2597 | 6992 | bool asm_p, real_insn, after_stall; | 6997 | bool asm_p, real_insn, after_stall, all_issued; |
2598 | 6993 | int clock; | 6998 | int clock; |
2599 | 6994 | 6999 | ||
2600 | 6995 | if (!INSN_P (insn)) | 7000 | if (!INSN_P (insn)) |
2601 | @@ -7025,7 +7030,9 @@ | |||
2602 | 7025 | haifa_cost = cost; | 7030 | haifa_cost = cost; |
2603 | 7026 | after_stall = 1; | 7031 | after_stall = 1; |
2604 | 7027 | } | 7032 | } |
2606 | 7028 | 7033 | all_issued = issued_insns == issue_rate; | |
2607 | 7034 | if (haifa_cost == 0 && all_issued) | ||
2608 | 7035 | haifa_cost = 1; | ||
2609 | 7029 | if (haifa_cost > 0) | 7036 | if (haifa_cost > 0) |
2610 | 7030 | { | 7037 | { |
2611 | 7031 | int i = 0; | 7038 | int i = 0; |
2612 | @@ -7033,6 +7040,7 @@ | |||
2613 | 7033 | while (haifa_cost--) | 7040 | while (haifa_cost--) |
2614 | 7034 | { | 7041 | { |
2615 | 7035 | advance_state (curr_state); | 7042 | advance_state (curr_state); |
2616 | 7043 | issued_insns = 0; | ||
2617 | 7036 | i++; | 7044 | i++; |
2618 | 7037 | 7045 | ||
2619 | 7038 | if (sched_verbose >= 2) | 7046 | if (sched_verbose >= 2) |
2620 | @@ -7049,9 +7057,22 @@ | |||
2621 | 7049 | && haifa_cost > 0 | 7057 | && haifa_cost > 0 |
2622 | 7050 | && estimate_insn_cost (insn, curr_state) == 0) | 7058 | && estimate_insn_cost (insn, curr_state) == 0) |
2623 | 7051 | break; | 7059 | break; |
2625 | 7052 | } | 7060 | |
2626 | 7061 | /* When the data dependency stall is longer than the DFA stall, | ||
2627 | 7062 | and when we have issued exactly issue_rate insns and stalled, | ||
2628 | 7063 | it could be that after this longer stall the insn will again | ||
2629 | 7064 | become unavailable to the DFA restrictions. Looks strange | ||
2630 | 7065 | but happens e.g. on x86-64. So recheck DFA on the last | ||
2631 | 7066 | iteration. */ | ||
2632 | 7067 | if ((after_stall || all_issued) | ||
2633 | 7068 | && real_insn | ||
2634 | 7069 | && haifa_cost == 0) | ||
2635 | 7070 | haifa_cost = estimate_insn_cost (insn, curr_state); | ||
2636 | 7071 | } | ||
2637 | 7053 | 7072 | ||
2638 | 7054 | haifa_clock += i; | 7073 | haifa_clock += i; |
2639 | 7074 | if (sched_verbose >= 2) | ||
2640 | 7075 | sel_print ("haifa clock: %d\n", haifa_clock); | ||
2641 | 7055 | } | 7076 | } |
2642 | 7056 | else | 7077 | else |
2643 | 7057 | gcc_assert (haifa_cost == 0); | 7078 | gcc_assert (haifa_cost == 0); |
2644 | @@ -7065,21 +7086,27 @@ | |||
2645 | 7065 | &sort_p)) | 7086 | &sort_p)) |
2646 | 7066 | { | 7087 | { |
2647 | 7067 | advance_state (curr_state); | 7088 | advance_state (curr_state); |
2648 | 7089 | issued_insns = 0; | ||
2649 | 7068 | haifa_clock++; | 7090 | haifa_clock++; |
2650 | 7069 | if (sched_verbose >= 2) | 7091 | if (sched_verbose >= 2) |
2651 | 7070 | { | 7092 | { |
2652 | 7071 | sel_print ("advance_state (dfa_new_cycle)\n"); | 7093 | sel_print ("advance_state (dfa_new_cycle)\n"); |
2653 | 7072 | debug_state (curr_state); | 7094 | debug_state (curr_state); |
2654 | 7095 | sel_print ("haifa clock: %d\n", haifa_clock + 1); | ||
2655 | 7073 | } | 7096 | } |
2656 | 7074 | } | 7097 | } |
2657 | 7075 | 7098 | ||
2658 | 7076 | if (real_insn) | 7099 | if (real_insn) |
2659 | 7077 | { | 7100 | { |
2660 | 7078 | cost = state_transition (curr_state, insn); | 7101 | cost = state_transition (curr_state, insn); |
2661 | 7102 | issued_insns++; | ||
2662 | 7079 | 7103 | ||
2663 | 7080 | if (sched_verbose >= 2) | 7104 | if (sched_verbose >= 2) |
2666 | 7081 | debug_state (curr_state); | 7105 | { |
2667 | 7082 | 7106 | sel_print ("scheduled insn %d, clock %d\n", INSN_UID (insn), | |
2668 | 7107 | haifa_clock + 1); | ||
2669 | 7108 | debug_state (curr_state); | ||
2670 | 7109 | } | ||
2671 | 7083 | gcc_assert (cost < 0); | 7110 | gcc_assert (cost < 0); |
2672 | 7084 | } | 7111 | } |
2673 | 7085 | 7112 | ||
2674 | @@ -7492,21 +7519,23 @@ | |||
2675 | 7492 | { | 7519 | { |
2676 | 7493 | basic_block bb = EBB_FIRST_BB (i); | 7520 | basic_block bb = EBB_FIRST_BB (i); |
2677 | 7494 | 7521 | ||
2678 | 7495 | if (sel_bb_empty_p (bb)) | ||
2679 | 7496 | { | ||
2680 | 7497 | bitmap_clear_bit (blocks_to_reschedule, bb->index); | ||
2681 | 7498 | continue; | ||
2682 | 7499 | } | ||
2683 | 7500 | |||
2684 | 7501 | if (bitmap_bit_p (blocks_to_reschedule, bb->index)) | 7522 | if (bitmap_bit_p (blocks_to_reschedule, bb->index)) |
2685 | 7502 | { | 7523 | { |
2686 | 7524 | if (! bb_ends_ebb_p (bb)) | ||
2687 | 7525 | bitmap_set_bit (blocks_to_reschedule, bb_next_bb (bb)->index); | ||
2688 | 7526 | if (sel_bb_empty_p (bb)) | ||
2689 | 7527 | { | ||
2690 | 7528 | bitmap_clear_bit (blocks_to_reschedule, bb->index); | ||
2691 | 7529 | continue; | ||
2692 | 7530 | } | ||
2693 | 7503 | clear_outdated_rtx_info (bb); | 7531 | clear_outdated_rtx_info (bb); |
2694 | 7504 | if (sel_insn_is_speculation_check (BB_END (bb)) | 7532 | if (sel_insn_is_speculation_check (BB_END (bb)) |
2695 | 7505 | && JUMP_P (BB_END (bb))) | 7533 | && JUMP_P (BB_END (bb))) |
2696 | 7506 | bitmap_set_bit (blocks_to_reschedule, | 7534 | bitmap_set_bit (blocks_to_reschedule, |
2697 | 7507 | BRANCH_EDGE (bb)->dest->index); | 7535 | BRANCH_EDGE (bb)->dest->index); |
2698 | 7508 | } | 7536 | } |
2700 | 7509 | else if (INSN_SCHED_TIMES (sel_bb_head (bb)) <= 0) | 7537 | else if (! sel_bb_empty_p (bb) |
2701 | 7538 | && INSN_SCHED_TIMES (sel_bb_head (bb)) <= 0) | ||
2702 | 7510 | bitmap_set_bit (blocks_to_reschedule, bb->index); | 7539 | bitmap_set_bit (blocks_to_reschedule, bb->index); |
2703 | 7511 | } | 7540 | } |
2704 | 7512 | 7541 | ||
2705 | 7513 | 7542 | ||
2706 | === modified file 'gcc/simplify-rtx.c' | |||
2707 | --- gcc/simplify-rtx.c 2011-04-14 13:58:12 +0000 | |||
2708 | +++ gcc/simplify-rtx.c 2011-04-28 16:44:05 +0000 | |||
2709 | @@ -1468,7 +1468,8 @@ | |||
2710 | 1468 | } | 1468 | } |
2711 | 1469 | 1469 | ||
2712 | 1470 | else if (GET_CODE (op) == CONST_DOUBLE | 1470 | else if (GET_CODE (op) == CONST_DOUBLE |
2714 | 1471 | && SCALAR_FLOAT_MODE_P (mode)) | 1471 | && SCALAR_FLOAT_MODE_P (mode) |
2715 | 1472 | && SCALAR_FLOAT_MODE_P (GET_MODE (op))) | ||
2716 | 1472 | { | 1473 | { |
2717 | 1473 | REAL_VALUE_TYPE d, t; | 1474 | REAL_VALUE_TYPE d, t; |
2718 | 1474 | REAL_VALUE_FROM_CONST_DOUBLE (d, op); | 1475 | REAL_VALUE_FROM_CONST_DOUBLE (d, op); |
2719 | @@ -1491,7 +1492,10 @@ | |||
2720 | 1491 | d = real_value_truncate (mode, d); | 1492 | d = real_value_truncate (mode, d); |
2721 | 1492 | break; | 1493 | break; |
2722 | 1493 | case FLOAT_EXTEND: | 1494 | case FLOAT_EXTEND: |
2724 | 1494 | /* All this does is change the mode. */ | 1495 | /* All this does is change the mode, unless changing |
2725 | 1496 | mode class. */ | ||
2726 | 1497 | if (GET_MODE_CLASS (mode) != GET_MODE_CLASS (GET_MODE (op))) | ||
2727 | 1498 | real_convert (&d, mode, &d); | ||
2728 | 1495 | break; | 1499 | break; |
2729 | 1496 | case FIX: | 1500 | case FIX: |
2730 | 1497 | real_arithmetic (&d, FIX_TRUNC_EXPR, &d, NULL); | 1501 | real_arithmetic (&d, FIX_TRUNC_EXPR, &d, NULL); |
2731 | 1498 | 1502 | ||
2732 | === modified file 'gcc/testsuite/ChangeLog' | |||
2733 | --- gcc/testsuite/ChangeLog 2011-03-31 15:11:20 +0000 | |||
2734 | +++ gcc/testsuite/ChangeLog 2011-04-28 16:44:05 +0000 | |||
2735 | @@ -1,3 +1,230 @@ | |||
2736 | 1 | 2011-04-28 Release Manager | ||
2737 | 2 | |||
2738 | 3 | * GCC 4.5.3 released. | ||
2739 | 4 | |||
2740 | 5 | 2011-04-27 Dodji Seketeli <dodji@redhat.com> | ||
2741 | 6 | |||
2742 | 7 | PR c++/46824, c++/42260, c++/45383 | ||
2743 | 8 | * g++.dg/conversion/cast2.C: New test. | ||
2744 | 9 | * g++.dg/conversion/cast3.C: Likewise. | ||
2745 | 10 | * g++.dg/conversion/cond4.C: Likewise. | ||
2746 | 11 | |||
2747 | 12 | 2011-04-26 Jason Merrill <jason@redhat.com> | ||
2748 | 13 | |||
2749 | 14 | * g++.dg/lookup/koenig13.C: New. | ||
2750 | 15 | |||
2751 | 16 | 2011-04-26 Jakub Jelinek <jakub@redhat.com> | ||
2752 | 17 | |||
2753 | 18 | Backported from mainline | ||
2754 | 19 | 2011-04-24 Jakub Jelinek <jakub@redhat.com> | ||
2755 | 20 | |||
2756 | 21 | PR preprocessor/48740 | ||
2757 | 22 | * c-c++-common/raw-string-11.c: New test. | ||
2758 | 23 | |||
2759 | 24 | 2011-04-20 Jason Merrill <jason@redhat.com> | ||
2760 | 25 | |||
2761 | 26 | * g++.dg/template/operator11.C: New. | ||
2762 | 27 | |||
2763 | 28 | 2011-04-19 Jason Merrill <jason@redhat.com> | ||
2764 | 29 | |||
2765 | 30 | * g++.dg/ext/complex7.C: New. | ||
2766 | 31 | |||
2767 | 32 | 2011-04-19 Jason Merrill <jason@redhat.com> | ||
2768 | 33 | |||
2769 | 34 | * g++.dg/ext/attrib41.C: New. | ||
2770 | 35 | |||
2771 | 36 | 2011-04-18 Richard Guenther <rguenther@suse.de> | ||
2772 | 37 | |||
2773 | 38 | Backported from 4.6 branch | ||
2774 | 39 | 2011-01-19 Jakub Jelinek <jakub@redhat.com> | ||
2775 | 40 | |||
2776 | 41 | PR tree-optimization/47290 | ||
2777 | 42 | * g++.dg/torture/pr47290.C: New test. | ||
2778 | 43 | |||
2779 | 44 | 2010-05-29 Jan Hubicka <jh@suse.cz> | ||
2780 | 45 | |||
2781 | 46 | PR tree-optimization/46364 | ||
2782 | 47 | * g++.dg/torture/pr46364.C: New testcase. | ||
2783 | 48 | |||
2784 | 49 | 2011-04-18 Richard Guenther <rguenther@suse.de> | ||
2785 | 50 | |||
2786 | 51 | Backported from 4.6 branch | ||
2787 | 52 | 2011-03-11 Jakub Jelinek <jakub@redhat.com> | ||
2788 | 53 | |||
2789 | 54 | PR c++/48035 | ||
2790 | 55 | * g++.dg/inherit/virtual8.C: New test. | ||
2791 | 56 | |||
2792 | 57 | 2011-03-05 Zdenek Dvorak <ook@ucw.cz> | ||
2793 | 58 | |||
2794 | 59 | PR rtl-optimization/47899 | ||
2795 | 60 | * gcc.dg/pr47899.c: New test. | ||
2796 | 61 | |||
2797 | 62 | 2011-04-16 Jakub Jelinek <jakub@redhat.com> | ||
2798 | 63 | |||
2799 | 64 | Backported from 4.6 branch | ||
2800 | 65 | 2011-04-15 Jakub Jelinek <jakub@redhat.com> | ||
2801 | 66 | |||
2802 | 67 | PR target/48605 | ||
2803 | 68 | * gcc.target/i386/sse4_1-insertps-3.c: New test. | ||
2804 | 69 | * gcc.target/i386/sse4_1-insertps-4.c: New test. | ||
2805 | 70 | * gcc.target/i386/avx-insertps-3.c: New test. | ||
2806 | 71 | * gcc.target/i386/avx-insertps-4.c: New test. | ||
2807 | 72 | |||
2808 | 73 | 2011-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | ||
2809 | 74 | |||
2810 | 75 | Backport from mainline: | ||
2811 | 76 | 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | ||
2812 | 77 | |||
2813 | 78 | PR testsuite/47400 | ||
2814 | 79 | * lib/target-supports.exp (check_ascii_locale_available): New proc. | ||
2815 | 80 | * lib/target-supports-dg.exp (dg-require-ascii-locale): New proc. | ||
2816 | 81 | * gcc.dg/attr-alias-5.c: Use dg-require-ascii-locale. | ||
2817 | 82 | * gcc.dg/ucnid-10.c: Likewise. | ||
2818 | 83 | * gcc.dg/ucnid-13.c: Likewise. | ||
2819 | 84 | * gcc.dg/ucnid-7.c: Likewise. | ||
2820 | 85 | * gcc.dg/ucnid-8.c: Likewise. | ||
2821 | 86 | Adapt dg-warning line number. | ||
2822 | 87 | |||
2823 | 88 | 2011-04-07 Jakub Jelinek <jakub@redhat.com> | ||
2824 | 89 | |||
2825 | 90 | PR fortran/48117 | ||
2826 | 91 | * gfortran.dg/gomp/pr48117.f90: New test. | ||
2827 | 92 | |||
2828 | 93 | Backported from mainline | ||
2829 | 94 | 2011-04-06 Jakub Jelinek <jakub@redhat.com> | ||
2830 | 95 | |||
2831 | 96 | PR debug/48466 | ||
2832 | 97 | * gcc.dg/guality/pr36977.c: New test. | ||
2833 | 98 | * gcc.dg/guality/pr48466.c: New test. | ||
2834 | 99 | |||
2835 | 100 | 2011-03-24 Jakub Jelinek <jakub@redhat.com> | ||
2836 | 101 | |||
2837 | 102 | PR debug/48204 | ||
2838 | 103 | * gcc.dg/dfp/pr48204.c: New test. | ||
2839 | 104 | |||
2840 | 105 | 2011-03-17 Jakub Jelinek <jakub@redhat.com> | ||
2841 | 106 | |||
2842 | 107 | PR rtl-optimization/48141 | ||
2843 | 108 | * gcc.dg/pr48141.c: New test. | ||
2844 | 109 | |||
2845 | 110 | 2011-03-03 Jakub Jelinek <jakub@redhat.com> | ||
2846 | 111 | |||
2847 | 112 | PR c/47963 | ||
2848 | 113 | * gcc.dg/gomp/pr47963.c: New test. | ||
2849 | 114 | * g++.dg/gomp/pr47963.C: New test. | ||
2850 | 115 | |||
2851 | 116 | 2011-02-19 Jakub Jelinek <jakub@redhat.com> | ||
2852 | 117 | |||
2853 | 118 | PR c/47809 | ||
2854 | 119 | * gcc.target/i386/pr47809.c: New test. | ||
2855 | 120 | |||
2856 | 121 | 2011-01-26 Jakub Jelinek <jakub@redhat.com> | ||
2857 | 122 | |||
2858 | 123 | PR c/47473 | ||
2859 | 124 | * gcc.dg/torture/pr47473.c: New test. | ||
2860 | 125 | |||
2861 | 126 | 2011-01-21 Jakub Jelinek <jakub@redhat.com> | ||
2862 | 127 | |||
2863 | 128 | PR tree-optimization/47391 | ||
2864 | 129 | * gcc.dg/pr47391.c: New test. | ||
2865 | 130 | |||
2866 | 131 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
2867 | 132 | |||
2868 | 133 | Backport from mainline | ||
2869 | 134 | 2011-03-26 Andrey Belevantsev <abel@ispras.ru> | ||
2870 | 135 | |||
2871 | 136 | PR rtl-optimization/48144 | ||
2872 | 137 | * gcc.dg/pr48144.c: New test. | ||
2873 | 138 | |||
2874 | 139 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
2875 | 140 | |||
2876 | 141 | Backport from mainline | ||
2877 | 142 | 2011-01-13 Andrey Belevantsev <abel@ispras.ru> | ||
2878 | 143 | |||
2879 | 144 | PR rtl-optimization/45352 | ||
2880 | 145 | * gcc.dg/pr45352-3.c: New. | ||
2881 | 146 | |||
2882 | 147 | Backport from mainline | ||
2883 | 148 | 2010-12-22 Andrey Belevantsev <abel@ispras.ru> | ||
2884 | 149 | |||
2885 | 150 | PR rtl-optimization/45352 | ||
2886 | 151 | PR rtl-optimization/46521 | ||
2887 | 152 | PR rtl-optimization/46522 | ||
2888 | 153 | * gcc.dg/pr46521.c: New. | ||
2889 | 154 | * gcc.dg/pr46522.c: New. | ||
2890 | 155 | |||
2891 | 156 | Backport from mainline | ||
2892 | 157 | 2010-11-08 Andrey Belevantsev <abel@ispras.ru> | ||
2893 | 158 | |||
2894 | 159 | PR rtl-optimization/45352 | ||
2895 | 160 | gcc.dg/pr45352.c, gcc.dg/pr45352-1.c, gcc.dg/pr45352-2.c: New tests. | ||
2896 | 161 | gcc.target/i386/pr45352.c, gcc.target/i386/pr45352-1.c, | ||
2897 | 162 | gcc.target/i386/pr45352-2.c: New tests. | ||
2898 | 163 | |||
2899 | 164 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
2900 | 165 | |||
2901 | 166 | Backport from mainline | ||
2902 | 167 | 2010-12-24 Alexander Monakov <amonakov@ispras.ru> | ||
2903 | 168 | |||
2904 | 169 | PR rtl-optimization/47036 | ||
2905 | 170 | * g++.dg/opt/pr47036.C: New. | ||
2906 | 171 | |||
2907 | 172 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
2908 | 173 | |||
2909 | 174 | Backport from mainline | ||
2910 | 175 | 2010-12-15 Alexander Monakov <amonakov@ispras.ru> | ||
2911 | 176 | |||
2912 | 177 | PR rtl-optimization/46649 | ||
2913 | 178 | * g++.dg/opt/pr46649.C: New. | ||
2914 | 179 | |||
2915 | 180 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
2916 | 181 | |||
2917 | 182 | Backport from mainline | ||
2918 | 183 | 2010-12-14 Alexander Monakov <amonakov@ispras.ru> | ||
2919 | 184 | |||
2920 | 185 | PR rtl-optimization/46875 | ||
2921 | 186 | * gcc.dg/pr46875.c: New. | ||
2922 | 187 | |||
2923 | 188 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
2924 | 189 | |||
2925 | 190 | Backport from mainline | ||
2926 | 191 | 2010-12-07 Andrey Belevantsev <abel@ispras.ru> | ||
2927 | 192 | |||
2928 | 193 | PR target/43603 | ||
2929 | 194 | * gcc.target/ia64/pr43603.c: New. | ||
2930 | 195 | * gcc/testsuite/g++.dg/opt/pr46640.C: New. | ||
2931 | 196 | |||
2932 | 197 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
2933 | 198 | |||
2934 | 199 | Backport from mainline | ||
2935 | 200 | 2010-12-03 Alexander Monakov <amonakov@ispras.ru> | ||
2936 | 201 | |||
2937 | 202 | PR rtl-optimization/45354 | ||
2938 | 203 | * gcc.dg/tree-prof/pr45354.c: New. | ||
2939 | 204 | |||
2940 | 205 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
2941 | 206 | |||
2942 | 207 | Backport from mainline | ||
2943 | 208 | 2010-11-25 Alexander Monakov <amonakov@ispras.ru> | ||
2944 | 209 | |||
2945 | 210 | PR rtl-optimization/46585 | ||
2946 | 211 | * gcc.dg/pr46585.c: New. | ||
2947 | 212 | |||
2948 | 213 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
2949 | 214 | |||
2950 | 215 | Backport from mainline | ||
2951 | 216 | 2010-11-22 Alexander Monakov <amonakov@ispras.ru> | ||
2952 | 217 | |||
2953 | 218 | PR rtl-optimization/45652 | ||
2954 | 219 | * gcc.dg/pr45652.c: New. | ||
2955 | 220 | |||
2956 | 221 | 2011-04-07 Andrey Belevantsev <abel@ispras.ru> | ||
2957 | 222 | |||
2958 | 223 | Backport from mainline | ||
2959 | 224 | 2010-10-14 Andrey Belevantsev <abel@ispras.ru> | ||
2960 | 225 | PR rtl-optimization/45570 | ||
2961 | 226 | * gcc.dg/pr45570.c: New test. | ||
2962 | 227 | |||
2963 | 1 | 2011-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 228 | 2011-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2964 | 2 | 229 | ||
2965 | 3 | PR target/16292 | 230 | PR target/16292 |
2966 | 4 | 231 | ||
2967 | === added file 'gcc/testsuite/c-c++-common/raw-string-11.c' | |||
2968 | --- gcc/testsuite/c-c++-common/raw-string-11.c 1970-01-01 00:00:00 +0000 | |||
2969 | +++ gcc/testsuite/c-c++-common/raw-string-11.c 2011-04-28 16:44:05 +0000 | |||
2970 | @@ -0,0 +1,13 @@ | |||
2971 | 1 | // PR preprocessor/48740 | ||
2972 | 2 | // { dg-options "-std=gnu99 -trigraphs -save-temps" { target c } } | ||
2973 | 3 | // { dg-options "-std=c++0x -save-temps" { target c++ } } | ||
2974 | 4 | // { dg-do run } | ||
2975 | 5 | |||
2976 | 6 | int main () | ||
2977 | 7 | { | ||
2978 | 8 | return __builtin_memcmp (R"raw(foo%sbar%sfred%sbob?????)raw", | ||
2979 | 9 | "foo%sbar%sfred%sbob?""?""?""?""?", | ||
2980 | 10 | sizeof ("foo%sbar%sfred%sbob?""?""?""?""?")); | ||
2981 | 11 | } | ||
2982 | 12 | |||
2983 | 13 | // { dg-final { cleanup-saved-temps } } | ||
2984 | 0 | 14 | ||
2985 | === added file 'gcc/testsuite/g++.dg/conversion/cast2.C' | |||
2986 | --- gcc/testsuite/g++.dg/conversion/cast2.C 1970-01-01 00:00:00 +0000 | |||
2987 | +++ gcc/testsuite/g++.dg/conversion/cast2.C 2011-04-28 16:44:05 +0000 | |||
2988 | @@ -0,0 +1,10 @@ | |||
2989 | 1 | // Contributed by Dodji Seketeli <dodji@redhat.com> | ||
2990 | 2 | // Origin: PR c++/42260 | ||
2991 | 3 | // { dg-do compile } | ||
2992 | 4 | |||
2993 | 5 | struct A | ||
2994 | 6 | { | ||
2995 | 7 | template<typename T> operator T*(); | ||
2996 | 8 | }; | ||
2997 | 9 | |||
2998 | 10 | int i = *A();// { dg-error "no match" } | ||
2999 | 0 | 11 | ||
3000 | === removed file 'gcc/testsuite/g++.dg/conversion/cast2.C' | |||
3001 | --- gcc/testsuite/g++.dg/conversion/cast2.C 2009-12-23 00:31:33 +0000 | |||
3002 | +++ gcc/testsuite/g++.dg/conversion/cast2.C 1970-01-01 00:00:00 +0000 | |||
3003 | @@ -1,11 +0,0 @@ | |||
3004 | 1 | // Contributed by Dodji Seketeli <dodji@redhat.com> | ||
3005 | 2 | // Origin: PR c++/42260 | ||
3006 | 3 | // { dg-do compile } | ||
3007 | 4 | |||
3008 | 5 | struct A | ||
3009 | 6 | { | ||
3010 | 7 | template<typename T> operator T*(); | ||
3011 | 8 | }; | ||
3012 | 9 | |||
3013 | 10 | int i = *A();// { dg-error "no match" } | ||
3014 | 11 | |||
3015 | 12 | 0 | ||
3016 | === added file 'gcc/testsuite/g++.dg/conversion/cast3.C' | |||
3017 | --- gcc/testsuite/g++.dg/conversion/cast3.C 1970-01-01 00:00:00 +0000 | |||
3018 | +++ gcc/testsuite/g++.dg/conversion/cast3.C 2011-04-28 16:44:05 +0000 | |||
3019 | @@ -0,0 +1,14 @@ | |||
3020 | 1 | // Origin: PR c++/46824 | ||
3021 | 2 | |||
3022 | 3 | class Incomplete; | ||
3023 | 4 | struct Ptr | ||
3024 | 5 | { | ||
3025 | 6 | operator Incomplete*(); | ||
3026 | 7 | }; | ||
3027 | 8 | |||
3028 | 9 | int | ||
3029 | 10 | main() | ||
3030 | 11 | { | ||
3031 | 12 | Ptr p; | ||
3032 | 13 | *p; | ||
3033 | 14 | } | ||
3034 | 0 | 15 | ||
3035 | === added file 'gcc/testsuite/g++.dg/conversion/cond4.C' | |||
3036 | --- gcc/testsuite/g++.dg/conversion/cond4.C 1970-01-01 00:00:00 +0000 | |||
3037 | +++ gcc/testsuite/g++.dg/conversion/cond4.C 2011-04-28 16:44:05 +0000 | |||
3038 | @@ -0,0 +1,31 @@ | |||
3039 | 1 | // Origin: PR c++/45383 | ||
3040 | 2 | // { dg-do run } | ||
3041 | 3 | |||
3042 | 4 | struct null { | ||
3043 | 5 | null() {} | ||
3044 | 6 | template<class T> | ||
3045 | 7 | operator T*() const { | ||
3046 | 8 | return 0; | ||
3047 | 9 | } | ||
3048 | 10 | |||
3049 | 11 | template<class C, class T> | ||
3050 | 12 | operator T C::*() const { | ||
3051 | 13 | return 0; | ||
3052 | 14 | } | ||
3053 | 15 | private: | ||
3054 | 16 | null(const null&); | ||
3055 | 17 | null& operator=(const null&); | ||
3056 | 18 | void operator&() const; | ||
3057 | 19 | }; | ||
3058 | 20 | |||
3059 | 21 | static struct null null; | ||
3060 | 22 | |||
3061 | 23 | int | ||
3062 | 24 | main() | ||
3063 | 25 | { | ||
3064 | 26 | int* ptr = null; | ||
3065 | 27 | if (ptr == null) | ||
3066 | 28 | return 0; | ||
3067 | 29 | if (ptr != null) | ||
3068 | 30 | return 1; | ||
3069 | 31 | } | ||
3070 | 0 | 32 | ||
3071 | === added file 'gcc/testsuite/g++.dg/ext/attrib41.C' | |||
3072 | --- gcc/testsuite/g++.dg/ext/attrib41.C 1970-01-01 00:00:00 +0000 | |||
3073 | +++ gcc/testsuite/g++.dg/ext/attrib41.C 2011-04-28 16:44:05 +0000 | |||
3074 | @@ -0,0 +1,19 @@ | |||
3075 | 1 | // PR c++/45267 | ||
3076 | 2 | // { dg-options "-O" } | ||
3077 | 3 | |||
3078 | 4 | template<typename T> struct Vector { | ||
3079 | 5 | Vector(long long x); | ||
3080 | 6 | inline Vector<T> operator<<(int x) const __attribute__((always_inline)); | ||
3081 | 7 | }; | ||
3082 | 8 | long long bar (long long); | ||
3083 | 9 | template<> inline Vector<int> Vector<int>::operator<<(int x) const { | ||
3084 | 10 | return bar(x); | ||
3085 | 11 | } | ||
3086 | 12 | bool b; | ||
3087 | 13 | int main() { | ||
3088 | 14 | Vector<int> a(1); | ||
3089 | 15 | if ((a << 2), b) { | ||
3090 | 16 | a << 2; | ||
3091 | 17 | throw 1; | ||
3092 | 18 | } | ||
3093 | 19 | } | ||
3094 | 0 | 20 | ||
3095 | === added file 'gcc/testsuite/g++.dg/ext/complex7.C' | |||
3096 | --- gcc/testsuite/g++.dg/ext/complex7.C 1970-01-01 00:00:00 +0000 | |||
3097 | +++ gcc/testsuite/g++.dg/ext/complex7.C 2011-04-28 16:44:05 +0000 | |||
3098 | @@ -0,0 +1,6 @@ | |||
3099 | 1 | // { dg-options "" } | ||
3100 | 2 | |||
3101 | 3 | class A | ||
3102 | 4 | { | ||
3103 | 5 | static const _Complex double x = 1.0 + 2.0i; | ||
3104 | 6 | }; | ||
3105 | 0 | 7 | ||
3106 | === added file 'gcc/testsuite/g++.dg/gomp/pr47963.C' | |||
3107 | --- gcc/testsuite/g++.dg/gomp/pr47963.C 1970-01-01 00:00:00 +0000 | |||
3108 | +++ gcc/testsuite/g++.dg/gomp/pr47963.C 2011-04-28 16:44:05 +0000 | |||
3109 | @@ -0,0 +1,11 @@ | |||
3110 | 1 | // PR c/47963 | ||
3111 | 2 | // { dg-do compile } | ||
3112 | 3 | // { dg-options "-fopenmp" } | ||
3113 | 4 | |||
3114 | 5 | void | ||
3115 | 6 | foo (float n) | ||
3116 | 7 | { | ||
3117 | 8 | int A[n][n]; // { dg-error "has non-integral type" } | ||
3118 | 9 | #pragma omp parallel private(A) | ||
3119 | 10 | ; | ||
3120 | 11 | } | ||
3121 | 0 | 12 | ||
3122 | === added file 'gcc/testsuite/g++.dg/inherit/virtual8.C' | |||
3123 | --- gcc/testsuite/g++.dg/inherit/virtual8.C 1970-01-01 00:00:00 +0000 | |||
3124 | +++ gcc/testsuite/g++.dg/inherit/virtual8.C 2011-04-28 16:44:05 +0000 | |||
3125 | @@ -0,0 +1,48 @@ | |||
3126 | 1 | // PR c++/48035 | ||
3127 | 2 | // { dg-do run } | ||
3128 | 3 | |||
3129 | 4 | #include <new> | ||
3130 | 5 | #include <cstring> | ||
3131 | 6 | #include <cstdlib> | ||
3132 | 7 | |||
3133 | 8 | struct A | ||
3134 | 9 | { | ||
3135 | 10 | virtual void foo (void) {} | ||
3136 | 11 | virtual ~A () {} | ||
3137 | 12 | }; | ||
3138 | 13 | |||
3139 | 14 | struct B : public A | ||
3140 | 15 | { | ||
3141 | 16 | virtual ~B () {} | ||
3142 | 17 | }; | ||
3143 | 18 | |||
3144 | 19 | struct C | ||
3145 | 20 | { | ||
3146 | 21 | virtual ~C () {} | ||
3147 | 22 | int c; | ||
3148 | 23 | }; | ||
3149 | 24 | |||
3150 | 25 | struct D : public virtual B, public C | ||
3151 | 26 | { | ||
3152 | 27 | virtual ~D () {} | ||
3153 | 28 | }; | ||
3154 | 29 | |||
3155 | 30 | struct E : public virtual D | ||
3156 | 31 | { | ||
3157 | 32 | virtual ~E () {} | ||
3158 | 33 | }; | ||
3159 | 34 | |||
3160 | 35 | int | ||
3161 | 36 | main () | ||
3162 | 37 | { | ||
3163 | 38 | char *v = new char[sizeof (E) + 16]; | ||
3164 | 39 | memset (v, 0x55, sizeof (E) + 16); | ||
3165 | 40 | E *e = new (v) E (); | ||
3166 | 41 | e->~E (); | ||
3167 | 42 | |||
3168 | 43 | for (unsigned i = sizeof (E); i < sizeof (E) + 16; ++i) | ||
3169 | 44 | if (v[i] != 0x55) | ||
3170 | 45 | abort (); | ||
3171 | 46 | |||
3172 | 47 | delete[] v; | ||
3173 | 48 | } | ||
3174 | 0 | 49 | ||
3175 | === added file 'gcc/testsuite/g++.dg/lookup/koenig13.C' | |||
3176 | --- gcc/testsuite/g++.dg/lookup/koenig13.C 1970-01-01 00:00:00 +0000 | |||
3177 | +++ gcc/testsuite/g++.dg/lookup/koenig13.C 2011-04-28 16:44:05 +0000 | |||
3178 | @@ -0,0 +1,16 @@ | |||
3179 | 1 | // PR c++/42687 | ||
3180 | 2 | // DR 705 | ||
3181 | 3 | |||
3182 | 4 | namespace N | ||
3183 | 5 | { | ||
3184 | 6 | struct S { }; | ||
3185 | 7 | void f(const S &) { } | ||
3186 | 8 | } | ||
3187 | 9 | |||
3188 | 10 | void f(const N::S &) { } | ||
3189 | 11 | |||
3190 | 12 | int main() | ||
3191 | 13 | { | ||
3192 | 14 | N::S v; | ||
3193 | 15 | (f)(v); // no ambiguity: ADL is prevented with (), only ::f is considered | ||
3194 | 16 | } | ||
3195 | 0 | 17 | ||
3196 | === added file 'gcc/testsuite/g++.dg/opt/pr46640.C' | |||
3197 | --- gcc/testsuite/g++.dg/opt/pr46640.C 1970-01-01 00:00:00 +0000 | |||
3198 | +++ gcc/testsuite/g++.dg/opt/pr46640.C 2011-04-28 16:44:05 +0000 | |||
3199 | @@ -0,0 +1,44 @@ | |||
3200 | 1 | // { dg-do compile { target x86_64-*-* } } | ||
3201 | 2 | // { dg-options "-fschedule-insns2 -fsel-sched-pipelining -fselective-scheduling2 -fno-exceptions -O" } | ||
3202 | 3 | |||
3203 | 4 | struct QBasicAtomicInt | ||
3204 | 5 | { | ||
3205 | 6 | int i, j; | ||
3206 | 7 | bool deref () | ||
3207 | 8 | { | ||
3208 | 9 | asm volatile ("":"=m" (i), "=qm" (j)); | ||
3209 | 10 | } | ||
3210 | 11 | }; | ||
3211 | 12 | |||
3212 | 13 | struct Data | ||
3213 | 14 | { | ||
3214 | 15 | QBasicAtomicInt ref; | ||
3215 | 16 | void *data; | ||
3216 | 17 | }; | ||
3217 | 18 | |||
3218 | 19 | struct QByteArray | ||
3219 | 20 | { | ||
3220 | 21 | Data * d; | ||
3221 | 22 | ~QByteArray () | ||
3222 | 23 | { | ||
3223 | 24 | d->ref.deref (); | ||
3224 | 25 | } | ||
3225 | 26 | }; | ||
3226 | 27 | |||
3227 | 28 | int indexOf (unsigned); | ||
3228 | 29 | int stat (void *, int *); | ||
3229 | 30 | QByteArray encodeName (); | ||
3230 | 31 | |||
3231 | 32 | bool makeDir (unsigned len) | ||
3232 | 33 | { | ||
3233 | 34 | unsigned i = 0; | ||
3234 | 35 | while (len) | ||
3235 | 36 | { | ||
3236 | 37 | int st; | ||
3237 | 38 | int pos = indexOf (i); | ||
3238 | 39 | QByteArray baseEncoded = encodeName (); | ||
3239 | 40 | if (stat (baseEncoded.d->data, &st) && stat (baseEncoded.d, &st)) | ||
3240 | 41 | return false; | ||
3241 | 42 | i = pos; | ||
3242 | 43 | } | ||
3243 | 44 | } | ||
3244 | 0 | 45 | ||
3245 | === added file 'gcc/testsuite/g++.dg/opt/pr46649.C' | |||
3246 | --- gcc/testsuite/g++.dg/opt/pr46649.C 1970-01-01 00:00:00 +0000 | |||
3247 | +++ gcc/testsuite/g++.dg/opt/pr46649.C 2011-04-28 16:44:05 +0000 | |||
3248 | @@ -0,0 +1,9 @@ | |||
3249 | 1 | // { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } | ||
3250 | 2 | // { dg-options "-fschedule-insns -fselective-scheduling" } | ||
3251 | 3 | |||
3252 | 4 | void foo () | ||
3253 | 5 | { | ||
3254 | 6 | for (;;) | ||
3255 | 7 | for (;;({break;})) | ||
3256 | 8 | ; | ||
3257 | 9 | } | ||
3258 | 0 | 10 | ||
3259 | === added file 'gcc/testsuite/g++.dg/opt/pr47036.C' | |||
3260 | --- gcc/testsuite/g++.dg/opt/pr47036.C 1970-01-01 00:00:00 +0000 | |||
3261 | +++ gcc/testsuite/g++.dg/opt/pr47036.C 2011-04-28 16:44:05 +0000 | |||
3262 | @@ -0,0 +1,10 @@ | |||
3263 | 1 | // { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } | ||
3264 | 2 | // { dg-options "-fschedule-insns -fselective-scheduling -fno-dce" } | ||
3265 | 3 | |||
3266 | 4 | |||
3267 | 5 | void foo () | ||
3268 | 6 | { | ||
3269 | 7 | for (;;) | ||
3270 | 8 | for (;;({break;})); | ||
3271 | 9 | } | ||
3272 | 10 | |||
3273 | 0 | 11 | ||
3274 | === added file 'gcc/testsuite/g++.dg/template/operator11.C' | |||
3275 | --- gcc/testsuite/g++.dg/template/operator11.C 1970-01-01 00:00:00 +0000 | |||
3276 | +++ gcc/testsuite/g++.dg/template/operator11.C 2011-04-28 16:44:05 +0000 | |||
3277 | @@ -0,0 +1,25 @@ | |||
3278 | 1 | // PR c++/48594 | ||
3279 | 2 | // Test for uses of (X->*Y)() that don't actually involve a | ||
3280 | 3 | // pointer to member function. | ||
3281 | 4 | |||
3282 | 5 | struct A { } a; | ||
3283 | 6 | struct B { } b; | ||
3284 | 7 | struct C * cp; | ||
3285 | 8 | |||
3286 | 9 | struct Func { void operator()(); }; | ||
3287 | 10 | Func operator->* (A, int); | ||
3288 | 11 | |||
3289 | 12 | typedef void (*pfn)(); | ||
3290 | 13 | pfn operator->* (B, int); | ||
3291 | 14 | |||
3292 | 15 | pfn C::*cpfn; | ||
3293 | 16 | Func C::*cfunc; | ||
3294 | 17 | |||
3295 | 18 | template <class T> | ||
3296 | 19 | void f() | ||
3297 | 20 | { | ||
3298 | 21 | (a->*1)(); | ||
3299 | 22 | (b->*1)(); | ||
3300 | 23 | (cp->*cpfn)(); | ||
3301 | 24 | (cp->*cfunc)(); | ||
3302 | 25 | } | ||
3303 | 0 | 26 | ||
3304 | === added file 'gcc/testsuite/g++.dg/torture/pr46364.C' | |||
3305 | --- gcc/testsuite/g++.dg/torture/pr46364.C 1970-01-01 00:00:00 +0000 | |||
3306 | +++ gcc/testsuite/g++.dg/torture/pr46364.C 2011-04-28 16:44:05 +0000 | |||
3307 | @@ -0,0 +1,20 @@ | |||
3308 | 1 | // { dg-do compile } | ||
3309 | 2 | #include <string> | ||
3310 | 3 | |||
3311 | 4 | void a() throw (int); | ||
3312 | 5 | void b(std::string const &); | ||
3313 | 6 | |||
3314 | 7 | void c(std::string *e) | ||
3315 | 8 | { | ||
3316 | 9 | b(""); | ||
3317 | 10 | |||
3318 | 11 | try { | ||
3319 | 12 | a(); | ||
3320 | 13 | } catch (...) { | ||
3321 | 14 | *e = ""; | ||
3322 | 15 | } | ||
3323 | 16 | } | ||
3324 | 17 | |||
3325 | 18 | void d() { | ||
3326 | 19 | c(0); | ||
3327 | 20 | } | ||
3328 | 0 | 21 | ||
3329 | === added file 'gcc/testsuite/g++.dg/torture/pr47290.C' | |||
3330 | --- gcc/testsuite/g++.dg/torture/pr47290.C 1970-01-01 00:00:00 +0000 | |||
3331 | +++ gcc/testsuite/g++.dg/torture/pr47290.C 2011-04-28 16:44:05 +0000 | |||
3332 | @@ -0,0 +1,19 @@ | |||
3333 | 1 | // PR tree-optimization/47290 | ||
3334 | 2 | // { dg-do compile } | ||
3335 | 3 | |||
3336 | 4 | struct V | ||
3337 | 5 | { | ||
3338 | 6 | V (int = 0); | ||
3339 | 7 | ~V () | ||
3340 | 8 | { | ||
3341 | 9 | for (;;) | ||
3342 | 10 | ; | ||
3343 | 11 | } | ||
3344 | 12 | int size (); | ||
3345 | 13 | }; | ||
3346 | 14 | |||
3347 | 15 | struct S | ||
3348 | 16 | { | ||
3349 | 17 | V a, b; | ||
3350 | 18 | S () : b (a.size ()) {} | ||
3351 | 19 | } s; | ||
3352 | 0 | 20 | ||
3353 | === modified file 'gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog' | |||
3354 | --- gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog 2010-12-16 12:32:45 +0000 | |||
3355 | +++ gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog 2011-04-28 16:44:05 +0000 | |||
3356 | @@ -1,3 +1,7 @@ | |||
3357 | 1 | 2011-04-28 Release Manager | ||
3358 | 2 | |||
3359 | 3 | * GCC 4.5.3 released. | ||
3360 | 4 | |||
3361 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
3362 | 2 | 6 | ||
3363 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
3364 | 4 | 8 | ||
3365 | === modified file 'gcc/testsuite/gcc.dg/attr-alias-5.c' | |||
3366 | --- gcc/testsuite/gcc.dg/attr-alias-5.c 2009-05-04 11:23:50 +0000 | |||
3367 | +++ gcc/testsuite/gcc.dg/attr-alias-5.c 2011-04-28 16:44:05 +0000 | |||
3368 | @@ -3,6 +3,7 @@ | |||
3369 | 3 | /* { dg-do compile } */ | 3 | /* { dg-do compile } */ |
3370 | 4 | /* { dg-options "-std=gnu99" } */ | 4 | /* { dg-options "-std=gnu99" } */ |
3371 | 5 | /* { dg-require-alias "" } */ | 5 | /* { dg-require-alias "" } */ |
3372 | 6 | /* { dg-require-ascii-locale "" } */ | ||
3373 | 6 | 7 | ||
3374 | 7 | void f0 (void) __attribute__((alias("\xa1"))); /* { dg-error "undefined symbol '\\\\241'" } */ | 8 | void f0 (void) __attribute__((alias("\xa1"))); /* { dg-error "undefined symbol '\\\\241'" } */ |
3375 | 8 | void f1 (void) __attribute__((alias("\u00e9"))); /* { dg-error "undefined symbol '\\\\U000000e9'" } */ | 9 | void f1 (void) __attribute__((alias("\u00e9"))); /* { dg-error "undefined symbol '\\\\U000000e9'" } */ |
3376 | 9 | 10 | ||
3377 | === added file 'gcc/testsuite/gcc.dg/dfp/pr48204.c' | |||
3378 | --- gcc/testsuite/gcc.dg/dfp/pr48204.c 1970-01-01 00:00:00 +0000 | |||
3379 | +++ gcc/testsuite/gcc.dg/dfp/pr48204.c 2011-04-28 16:44:05 +0000 | |||
3380 | @@ -0,0 +1,10 @@ | |||
3381 | 1 | /* PR debug/48204 */ | ||
3382 | 2 | /* { dg-do compile } */ | ||
3383 | 3 | /* { dg-options "-O -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-fre -g" } */ | ||
3384 | 4 | |||
3385 | 5 | void | ||
3386 | 6 | foo (void) | ||
3387 | 7 | { | ||
3388 | 8 | float cf = 3.0f; | ||
3389 | 9 | _Decimal64 d64 = cf; | ||
3390 | 10 | } | ||
3391 | 0 | 11 | ||
3392 | === added file 'gcc/testsuite/gcc.dg/gomp/pr47963.c' | |||
3393 | --- gcc/testsuite/gcc.dg/gomp/pr47963.c 1970-01-01 00:00:00 +0000 | |||
3394 | +++ gcc/testsuite/gcc.dg/gomp/pr47963.c 2011-04-28 16:44:05 +0000 | |||
3395 | @@ -0,0 +1,11 @@ | |||
3396 | 1 | /* PR c/47963 */ | ||
3397 | 2 | /* { dg-do compile } */ | ||
3398 | 3 | /* { dg-options "-fopenmp" } */ | ||
3399 | 4 | |||
3400 | 5 | void | ||
3401 | 6 | foo (float n) | ||
3402 | 7 | { | ||
3403 | 8 | int A[n][n]; /* { dg-error "has non-integer type" } */ | ||
3404 | 9 | #pragma omp parallel private(A) | ||
3405 | 10 | ; | ||
3406 | 11 | } | ||
3407 | 0 | 12 | ||
3408 | === added file 'gcc/testsuite/gcc.dg/guality/pr36977.c' | |||
3409 | --- gcc/testsuite/gcc.dg/guality/pr36977.c 1970-01-01 00:00:00 +0000 | |||
3410 | +++ gcc/testsuite/gcc.dg/guality/pr36977.c 2011-04-28 16:44:05 +0000 | |||
3411 | @@ -0,0 +1,32 @@ | |||
3412 | 1 | /* PR debug/36977 */ | ||
3413 | 2 | /* { dg-do run } */ | ||
3414 | 3 | /* { dg-options "-g" } */ | ||
3415 | 4 | /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */ | ||
3416 | 5 | |||
3417 | 6 | void | ||
3418 | 7 | foo () | ||
3419 | 8 | { | ||
3420 | 9 | } | ||
3421 | 10 | |||
3422 | 11 | int | ||
3423 | 12 | main () | ||
3424 | 13 | { | ||
3425 | 14 | struct { char c[100]; } cbig; | ||
3426 | 15 | struct { int i[800]; } ibig; | ||
3427 | 16 | struct { long l[900]; } lbig; | ||
3428 | 17 | struct { float f[200]; } fbig; | ||
3429 | 18 | struct { double d[300]; } dbig; | ||
3430 | 19 | struct { short s[400]; } sbig; | ||
3431 | 20 | |||
3432 | 21 | ibig.i[0] = 55; /* { dg-final { gdb-test 30 "ibig.i\[0\]" "55" } } */ | ||
3433 | 22 | ibig.i[100] = 5; /* { dg-final { gdb-test 30 "ibig.i\[100\]" "5" } } */ | ||
3434 | 23 | cbig.c[0] = '\0'; /* { dg-final { gdb-test 30 "cbig.c\[0\]" "'\\0'" } } */ | ||
3435 | 24 | cbig.c[99] = 'A'; /* { dg-final { gdb-test 30 "cbig.c\[99\]" "'A'" } } */ | ||
3436 | 25 | fbig.f[100] = 11.0; /* { dg-final { gdb-test 30 "fbig.f\[100\]" "11" } } */ | ||
3437 | 26 | dbig.d[202] = 9.0; /* { dg-final { gdb-test 30 "dbig.d\[202\]" "9" } } */ | ||
3438 | 27 | sbig.s[90] = 255; /* { dg-final { gdb-test 30 "sbig.s\[90\]" "255" } } */ | ||
3439 | 28 | lbig.l[333] = 999; /* { dg-final { gdb-test 30 "lbig.l\[333\]" "999" } } */ | ||
3440 | 29 | |||
3441 | 30 | foo (); | ||
3442 | 31 | return 0; | ||
3443 | 32 | } | ||
3444 | 0 | 33 | ||
3445 | === added file 'gcc/testsuite/gcc.dg/guality/pr48466.c' | |||
3446 | --- gcc/testsuite/gcc.dg/guality/pr48466.c 1970-01-01 00:00:00 +0000 | |||
3447 | +++ gcc/testsuite/gcc.dg/guality/pr48466.c 2011-04-28 16:44:05 +0000 | |||
3448 | @@ -0,0 +1,41 @@ | |||
3449 | 1 | /* PR debug/48466 */ | ||
3450 | 2 | /* { dg-do run } */ | ||
3451 | 3 | /* { dg-options "-g" } */ | ||
3452 | 4 | /* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */ | ||
3453 | 5 | |||
3454 | 6 | struct S { unsigned int a; unsigned int *b; }; | ||
3455 | 7 | struct T { struct S a; struct S b; }; | ||
3456 | 8 | struct U { const char *u; }; | ||
3457 | 9 | int n[10]; | ||
3458 | 10 | volatile int v; | ||
3459 | 11 | |||
3460 | 12 | struct U | ||
3461 | 13 | foo (const char *s) | ||
3462 | 14 | { | ||
3463 | 15 | struct U r; | ||
3464 | 16 | r.u = s; | ||
3465 | 17 | return r; | ||
3466 | 18 | } | ||
3467 | 19 | |||
3468 | 20 | void | ||
3469 | 21 | bar (struct T *s, int a, int b) | ||
3470 | 22 | { | ||
3471 | 23 | s->a.a = a; | ||
3472 | 24 | s->a.b = &s->a.a; | ||
3473 | 25 | s->b.a = b; | ||
3474 | 26 | s->b.b = &s->b.a; | ||
3475 | 27 | } | ||
3476 | 28 | |||
3477 | 29 | int | ||
3478 | 30 | main () | ||
3479 | 31 | { | ||
3480 | 32 | struct T t; | ||
3481 | 33 | struct U x = foo ("this is x"); | ||
3482 | 34 | struct S y, z; | ||
3483 | 35 | y.b = n; /* { dg-final { gdb-test 38 "t.a.a" "17" } } */ | ||
3484 | 36 | y.a = 0; /* { dg-final { gdb-test 38 "*t.a.b" "17" } } */ | ||
3485 | 37 | bar (&t, 17, 21); /* { dg-final { gdb-test 38 "t.b.a" "21" } } */ | ||
3486 | 38 | v++; /* { dg-final { gdb-test 38 "*t.b.b" "21" } } */ | ||
3487 | 39 | z = y; | ||
3488 | 40 | return 0; | ||
3489 | 41 | } | ||
3490 | 0 | 42 | ||
3491 | === added file 'gcc/testsuite/gcc.dg/pr45352-1.c' | |||
3492 | --- gcc/testsuite/gcc.dg/pr45352-1.c 1970-01-01 00:00:00 +0000 | |||
3493 | +++ gcc/testsuite/gcc.dg/pr45352-1.c 2011-04-28 16:44:05 +0000 | |||
3494 | @@ -0,0 +1,13 @@ | |||
3495 | 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ | ||
3496 | 2 | /* { dg-options "-O3 -fschedule-insns -fschedule-insns2 -fselective-scheduling2 -fsel-sched-pipelining -funroll-loops -fprefetch-loop-arrays" } */ | ||
3497 | 3 | |||
3498 | 4 | void main1 (float *pa, float *pc) | ||
3499 | 5 | { | ||
3500 | 6 | int i; | ||
3501 | 7 | float b[256]; | ||
3502 | 8 | float c[256]; | ||
3503 | 9 | for (i = 0; i < 256; i++) | ||
3504 | 10 | b[i] = c[i] = pc[i]; | ||
3505 | 11 | for (i = 0; i < 256; i++) | ||
3506 | 12 | pa[i] = b[i] * c[i]; | ||
3507 | 13 | } | ||
3508 | 0 | 14 | ||
3509 | === added file 'gcc/testsuite/gcc.dg/pr45352-2.c' | |||
3510 | --- gcc/testsuite/gcc.dg/pr45352-2.c 1970-01-01 00:00:00 +0000 | |||
3511 | +++ gcc/testsuite/gcc.dg/pr45352-2.c 2011-04-28 16:44:05 +0000 | |||
3512 | @@ -0,0 +1,17 @@ | |||
3513 | 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ | ||
3514 | 2 | /* { dg-options "-O1 -freorder-blocks -fschedule-insns2 -funswitch-loops -fselective-scheduling2 -fsel-sched-pipelining -funroll-all-loops" } */ | ||
3515 | 3 | void | ||
3516 | 4 | foo1 (int *s) | ||
3517 | 5 | { | ||
3518 | 6 | s[0] = s[1]; | ||
3519 | 7 | while (s[6] - s[8]) | ||
3520 | 8 | { | ||
3521 | 9 | s[6] -= s[8]; | ||
3522 | 10 | if (s[8] || s[0]) | ||
3523 | 11 | { | ||
3524 | 12 | s[3] += s[0]; | ||
3525 | 13 | s[4] += s[1]; | ||
3526 | 14 | } | ||
3527 | 15 | s[7]++; | ||
3528 | 16 | } | ||
3529 | 17 | } | ||
3530 | 0 | 18 | ||
3531 | === added file 'gcc/testsuite/gcc.dg/pr45352-3.c' | |||
3532 | --- gcc/testsuite/gcc.dg/pr45352-3.c 1970-01-01 00:00:00 +0000 | |||
3533 | +++ gcc/testsuite/gcc.dg/pr45352-3.c 2011-04-28 16:44:05 +0000 | |||
3534 | @@ -0,0 +1,16 @@ | |||
3535 | 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ | ||
3536 | 2 | /* { dg-options "-O -fprofile-generate -fgcse -fno-gcse-lm -fgcse-sm -fno-ivopts -fno-tree-loop-im -ftree-pre -funroll-loops -fno-web -fschedule-insns2 -fselective-scheduling2 -fsel-sched-pipelining" } */ | ||
3537 | 3 | |||
3538 | 4 | extern volatile float f[]; | ||
3539 | 5 | |||
3540 | 6 | void foo (void) | ||
3541 | 7 | { | ||
3542 | 8 | int i; | ||
3543 | 9 | for (i = 0; i < 100; i++) | ||
3544 | 10 | f[i] = 0; | ||
3545 | 11 | for (i = 0; i < 100; i++) | ||
3546 | 12 | f[i] = 0; | ||
3547 | 13 | for (i = 0; i < 100; i++) | ||
3548 | 14 | if (f[i]) | ||
3549 | 15 | __builtin_abort (); | ||
3550 | 16 | } | ||
3551 | 0 | 17 | ||
3552 | === added file 'gcc/testsuite/gcc.dg/pr45352.c' | |||
3553 | --- gcc/testsuite/gcc.dg/pr45352.c 1970-01-01 00:00:00 +0000 | |||
3554 | +++ gcc/testsuite/gcc.dg/pr45352.c 2011-04-28 16:44:05 +0000 | |||
3555 | @@ -0,0 +1,24 @@ | |||
3556 | 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ | ||
3557 | 2 | /* { dg-options "-Os -fselective-scheduling2 -fsel-sched-pipelining -fprofile-generate" } */ | ||
3558 | 3 | |||
3559 | 4 | static inline void | ||
3560 | 5 | bmp_iter_next (int *bi, int *bit_no) | ||
3561 | 6 | { | ||
3562 | 7 | *bi >>= 1; | ||
3563 | 8 | *bit_no += 1; | ||
3564 | 9 | } | ||
3565 | 10 | |||
3566 | 11 | int bmp_iter_set (int *bi, int *bit_no); | ||
3567 | 12 | void bitmap_initialize_stat (int, ...); | ||
3568 | 13 | void bitmap_clear (void); | ||
3569 | 14 | |||
3570 | 15 | void | ||
3571 | 16 | df_md_alloc (int bi, int bb_index, void *bb_info) | ||
3572 | 17 | { | ||
3573 | 18 | for (; bmp_iter_set (&bi, &bb_index); bmp_iter_next (&bi, &bb_index)) | ||
3574 | 19 | |||
3575 | 20 | if (bb_info) | ||
3576 | 21 | bitmap_clear (); | ||
3577 | 22 | else | ||
3578 | 23 | bitmap_initialize_stat (0); | ||
3579 | 24 | } | ||
3580 | 0 | 25 | ||
3581 | === added file 'gcc/testsuite/gcc.dg/pr45570.c' | |||
3582 | --- gcc/testsuite/gcc.dg/pr45570.c 1970-01-01 00:00:00 +0000 | |||
3583 | +++ gcc/testsuite/gcc.dg/pr45570.c 2011-04-28 16:44:05 +0000 | |||
3584 | @@ -0,0 +1,28 @@ | |||
3585 | 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */ | ||
3586 | 2 | /* { dg-options "-O3 -fselective-scheduling2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -ftracer" } */ | ||
3587 | 3 | void | ||
3588 | 4 | parser_get_next_char (char c, int qm, char *p) | ||
3589 | 5 | { | ||
3590 | 6 | int quote_mode = 0; | ||
3591 | 7 | for (; *p; p++) | ||
3592 | 8 | { | ||
3593 | 9 | if (qm) | ||
3594 | 10 | { | ||
3595 | 11 | if (quote_mode == 0 && *p == '"' && *(p - 1)) | ||
3596 | 12 | { | ||
3597 | 13 | quote_mode = 1; | ||
3598 | 14 | continue; | ||
3599 | 15 | } | ||
3600 | 16 | if (quote_mode && *p == '"' && *(p - 1)) | ||
3601 | 17 | quote_mode = 0; | ||
3602 | 18 | } | ||
3603 | 19 | if (quote_mode == 0 && *p == c && *(p - 1)) | ||
3604 | 20 | break; | ||
3605 | 21 | } | ||
3606 | 22 | } | ||
3607 | 23 | |||
3608 | 24 | void | ||
3609 | 25 | parser_get_next_parameter (char *p) | ||
3610 | 26 | { | ||
3611 | 27 | parser_get_next_char (':', 1, p); | ||
3612 | 28 | } | ||
3613 | 0 | 29 | ||
3614 | === added file 'gcc/testsuite/gcc.dg/pr45652.c' | |||
3615 | --- gcc/testsuite/gcc.dg/pr45652.c 1970-01-01 00:00:00 +0000 | |||
3616 | +++ gcc/testsuite/gcc.dg/pr45652.c 2011-04-28 16:44:05 +0000 | |||
3617 | @@ -0,0 +1,39 @@ | |||
3618 | 1 | /* { dg-do run { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ | ||
3619 | 2 | /* { dg-options "-O2 -fselective-scheduling2" } */ | ||
3620 | 3 | |||
3621 | 4 | struct S { | ||
3622 | 5 | double i[2]; | ||
3623 | 6 | }; | ||
3624 | 7 | |||
3625 | 8 | void __attribute__ ((noinline)) checkcd (struct S x) | ||
3626 | 9 | { | ||
3627 | 10 | if (x.i[0] != 7.0 || x.i[1] != 8.0) | ||
3628 | 11 | __builtin_abort (); | ||
3629 | 12 | } | ||
3630 | 13 | |||
3631 | 14 | void __attribute__ ((noinline)) testvacd (int n, ...) | ||
3632 | 15 | { | ||
3633 | 16 | int i; | ||
3634 | 17 | __builtin_va_list ap; | ||
3635 | 18 | __builtin_va_start (ap, n); | ||
3636 | 19 | for (i = 0; i < n; i++) | ||
3637 | 20 | { | ||
3638 | 21 | struct S t = __builtin_va_arg (ap, struct S); | ||
3639 | 22 | checkcd (t); | ||
3640 | 23 | } | ||
3641 | 24 | __builtin_va_end (ap); | ||
3642 | 25 | } | ||
3643 | 26 | |||
3644 | 27 | void | ||
3645 | 28 | testitcd (void) | ||
3646 | 29 | { | ||
3647 | 30 | struct S x = { { 7.0, 8.0 } }; | ||
3648 | 31 | testvacd (2, x, x); | ||
3649 | 32 | } | ||
3650 | 33 | |||
3651 | 34 | int | ||
3652 | 35 | main () | ||
3653 | 36 | { | ||
3654 | 37 | testitcd (); | ||
3655 | 38 | return 0; | ||
3656 | 39 | } | ||
3657 | 0 | 40 | ||
3658 | === added file 'gcc/testsuite/gcc.dg/pr46521.c' | |||
3659 | --- gcc/testsuite/gcc.dg/pr46521.c 1970-01-01 00:00:00 +0000 | |||
3660 | +++ gcc/testsuite/gcc.dg/pr46521.c 2011-04-28 16:44:05 +0000 | |||
3661 | @@ -0,0 +1,20 @@ | |||
3662 | 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ | ||
3663 | 2 | /* { dg-options "-Os -fselective-scheduling2 -fsel-sched-pipelining -fprofile-generate -fno-early-inlining" } */ | ||
3664 | 3 | |||
3665 | 4 | static void bmp_iter_next (int *bi) | ||
3666 | 5 | { | ||
3667 | 6 | *bi >>= 1; | ||
3668 | 7 | } | ||
3669 | 8 | |||
3670 | 9 | int bmp_iter_set (int *, int); | ||
3671 | 10 | void bitmap_clear (void); | ||
3672 | 11 | void bitmap_initialize_stat (void); | ||
3673 | 12 | |||
3674 | 13 | void df_md_alloc (int bi, int bb_index, int bb_info) | ||
3675 | 14 | { | ||
3676 | 15 | for (; bmp_iter_set (&bi, bb_index); bmp_iter_next (&bi)) | ||
3677 | 16 | if (bb_info) | ||
3678 | 17 | bitmap_clear (); | ||
3679 | 18 | else | ||
3680 | 19 | bitmap_initialize_stat (); | ||
3681 | 20 | } | ||
3682 | 0 | 21 | ||
3683 | === added file 'gcc/testsuite/gcc.dg/pr46522.c' | |||
3684 | --- gcc/testsuite/gcc.dg/pr46522.c 1970-01-01 00:00:00 +0000 | |||
3685 | +++ gcc/testsuite/gcc.dg/pr46522.c 2011-04-28 16:44:05 +0000 | |||
3686 | @@ -0,0 +1,33 @@ | |||
3687 | 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ | ||
3688 | 2 | /* { dg-options "-O3 -fkeep-inline-functions -fsel-sched-pipelining -fselective-scheduling2 -funroll-loops" } */ | ||
3689 | 3 | |||
3690 | 4 | struct S | ||
3691 | 5 | { | ||
3692 | 6 | unsigned i, j; | ||
3693 | 7 | }; | ||
3694 | 8 | |||
3695 | 9 | static inline void | ||
3696 | 10 | bar (struct S *s) | ||
3697 | 11 | { | ||
3698 | 12 | if (s->i++ == 1) | ||
3699 | 13 | { | ||
3700 | 14 | s->i = 0; | ||
3701 | 15 | s->j++; | ||
3702 | 16 | } | ||
3703 | 17 | } | ||
3704 | 18 | |||
3705 | 19 | void | ||
3706 | 20 | foo1 (struct S *s) | ||
3707 | 21 | { | ||
3708 | 22 | bar (s); | ||
3709 | 23 | } | ||
3710 | 24 | |||
3711 | 25 | void | ||
3712 | 26 | foo2 (struct S s1, struct S s2, int i) | ||
3713 | 27 | { | ||
3714 | 28 | while (s1.i != s2.i) { | ||
3715 | 29 | if (i) | ||
3716 | 30 | *(unsigned *) 0 |= (1U << s1.i); | ||
3717 | 31 | bar (&s1); | ||
3718 | 32 | } | ||
3719 | 33 | } | ||
3720 | 0 | 34 | ||
3721 | === added file 'gcc/testsuite/gcc.dg/pr46585.c' | |||
3722 | --- gcc/testsuite/gcc.dg/pr46585.c 1970-01-01 00:00:00 +0000 | |||
3723 | +++ gcc/testsuite/gcc.dg/pr46585.c 2011-04-28 16:44:05 +0000 | |||
3724 | @@ -0,0 +1,11 @@ | |||
3725 | 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */ | ||
3726 | 2 | /* { dg-options "-fno-dce -fschedule-insns -fselective-scheduling" } */ | ||
3727 | 3 | void | ||
3728 | 4 | foo (void) | ||
3729 | 5 | { | ||
3730 | 6 | switch (0) | ||
3731 | 7 | { | ||
3732 | 8 | default: | ||
3733 | 9 | break; | ||
3734 | 10 | } | ||
3735 | 11 | } | ||
3736 | 0 | 12 | ||
3737 | === added file 'gcc/testsuite/gcc.dg/pr46875.c' | |||
3738 | --- gcc/testsuite/gcc.dg/pr46875.c 1970-01-01 00:00:00 +0000 | |||
3739 | +++ gcc/testsuite/gcc.dg/pr46875.c 2011-04-28 16:44:05 +0000 | |||
3740 | @@ -0,0 +1,27 @@ | |||
3741 | 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ | ||
3742 | 2 | /* { dg-options "-Os -fselective-scheduling2" } */ | ||
3743 | 3 | |||
3744 | 4 | long | ||
3745 | 5 | foo (int x, long *y) | ||
3746 | 6 | { | ||
3747 | 7 | long a = 0; | ||
3748 | 8 | switch (x) | ||
3749 | 9 | { | ||
3750 | 10 | case 0: | ||
3751 | 11 | a = *y; | ||
3752 | 12 | break; | ||
3753 | 13 | case 1: | ||
3754 | 14 | a = *y; | ||
3755 | 15 | break; | ||
3756 | 16 | case 2: | ||
3757 | 17 | a = *y; | ||
3758 | 18 | break; | ||
3759 | 19 | case 3: | ||
3760 | 20 | a = *y; | ||
3761 | 21 | break; | ||
3762 | 22 | case 4: | ||
3763 | 23 | a = *y; | ||
3764 | 24 | break; | ||
3765 | 25 | } | ||
3766 | 26 | return a; | ||
3767 | 27 | } | ||
3768 | 0 | 28 | ||
3769 | === added file 'gcc/testsuite/gcc.dg/pr47391.c' | |||
3770 | --- gcc/testsuite/gcc.dg/pr47391.c 1970-01-01 00:00:00 +0000 | |||
3771 | +++ gcc/testsuite/gcc.dg/pr47391.c 2011-04-28 16:44:05 +0000 | |||
3772 | @@ -0,0 +1,22 @@ | |||
3773 | 1 | /* PR tree-optimization/47391 */ | ||
3774 | 2 | /* { dg-do compile } */ | ||
3775 | 3 | /* { dg-options "-O2 -fdump-tree-optimized" } */ | ||
3776 | 4 | |||
3777 | 5 | const volatile int v = 1; | ||
3778 | 6 | int i = 0; | ||
3779 | 7 | |||
3780 | 8 | void | ||
3781 | 9 | foo (void) | ||
3782 | 10 | { | ||
3783 | 11 | i = v; | ||
3784 | 12 | } | ||
3785 | 13 | |||
3786 | 14 | int | ||
3787 | 15 | main (void) | ||
3788 | 16 | { | ||
3789 | 17 | foo (); | ||
3790 | 18 | return 0; | ||
3791 | 19 | } | ||
3792 | 20 | |||
3793 | 21 | /* { dg-final { scan-tree-dump-not "i = 1;" "optimized" } } */ | ||
3794 | 22 | /* { dg-final { cleanup-tree-dump "optimized" } } */ | ||
3795 | 0 | 23 | ||
3796 | === added file 'gcc/testsuite/gcc.dg/pr47899.c' | |||
3797 | --- gcc/testsuite/gcc.dg/pr47899.c 1970-01-01 00:00:00 +0000 | |||
3798 | +++ gcc/testsuite/gcc.dg/pr47899.c 2011-04-28 16:44:05 +0000 | |||
3799 | @@ -0,0 +1,26 @@ | |||
3800 | 1 | /* PR rtl-optimization/47899 */ | ||
3801 | 2 | /* { dg-do compile } */ | ||
3802 | 3 | /* { dg-options "-O -funroll-loops" } */ | ||
3803 | 4 | |||
3804 | 5 | extern unsigned int a, b, c; | ||
3805 | 6 | extern int d; | ||
3806 | 7 | |||
3807 | 8 | static int | ||
3808 | 9 | foo (void) | ||
3809 | 10 | { | ||
3810 | 11 | lab: | ||
3811 | 12 | if (b) | ||
3812 | 13 | for (d = 0; d >= 0; d--) | ||
3813 | 14 | if (a || c) | ||
3814 | 15 | for (; c; c++) | ||
3815 | 16 | ; | ||
3816 | 17 | else | ||
3817 | 18 | goto lab; | ||
3818 | 19 | } | ||
3819 | 20 | |||
3820 | 21 | int | ||
3821 | 22 | main () | ||
3822 | 23 | { | ||
3823 | 24 | foo (); | ||
3824 | 25 | return 0; | ||
3825 | 26 | } | ||
3826 | 0 | 27 | ||
3827 | === added file 'gcc/testsuite/gcc.dg/pr48141.c' | |||
3828 | --- gcc/testsuite/gcc.dg/pr48141.c 1970-01-01 00:00:00 +0000 | |||
3829 | +++ gcc/testsuite/gcc.dg/pr48141.c 2011-04-28 16:44:05 +0000 | |||
3830 | @@ -0,0 +1,17 @@ | |||
3831 | 1 | /* PR rtl-optimization/48141 */ | ||
3832 | 2 | /* { dg-do compile } */ | ||
3833 | 3 | /* { dg-options "-O -fno-tree-fre" } */ | ||
3834 | 4 | |||
3835 | 5 | #define A i = 0; | ||
3836 | 6 | #define B A A A A A A A A A A | ||
3837 | 7 | #define C B B B B B B B B B B | ||
3838 | 8 | #define D C C C C C C C C C C | ||
3839 | 9 | #define E D D D D D D D D D D | ||
3840 | 10 | |||
3841 | 11 | int | ||
3842 | 12 | foo (void) | ||
3843 | 13 | { | ||
3844 | 14 | volatile int i = 0; | ||
3845 | 15 | E E E E E E E E E E E | ||
3846 | 16 | return 0; | ||
3847 | 17 | } | ||
3848 | 0 | 18 | ||
3849 | === added file 'gcc/testsuite/gcc.dg/pr48144.c' | |||
3850 | --- gcc/testsuite/gcc.dg/pr48144.c 1970-01-01 00:00:00 +0000 | |||
3851 | +++ gcc/testsuite/gcc.dg/pr48144.c 2011-04-28 16:44:05 +0000 | |||
3852 | @@ -0,0 +1,16 @@ | |||
3853 | 1 | /* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */ | ||
3854 | 2 | /* { dg-options "-O -frerun-cse-after-loop -fschedule-insns2 -fselective-scheduling2 -fno-tree-ch -funroll-loops --param=max-sched-extend-regions-iters=2 --param=max-sched-region-blocks=15" } */ | ||
3855 | 3 | extern void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n); | ||
3856 | 4 | |||
3857 | 5 | void bar (void *, void *, void *); | ||
3858 | 6 | |||
3859 | 7 | void foo | ||
3860 | 8 | (void *p, char *data, unsigned data_len) | ||
3861 | 9 | { | ||
3862 | 10 | int buffer[8]; | ||
3863 | 11 | int buf2[8]; | ||
3864 | 12 | unsigned i; | ||
3865 | 13 | for (i = 0; i + 8 <= data_len; i += 8) | ||
3866 | 14 | bar (p, buffer, data + i); | ||
3867 | 15 | memcpy (buf2, data + i, data_len); | ||
3868 | 16 | } | ||
3869 | 0 | 17 | ||
3870 | === added file 'gcc/testsuite/gcc.dg/torture/pr47473.c' | |||
3871 | --- gcc/testsuite/gcc.dg/torture/pr47473.c 1970-01-01 00:00:00 +0000 | |||
3872 | +++ gcc/testsuite/gcc.dg/torture/pr47473.c 2011-04-28 16:44:05 +0000 | |||
3873 | @@ -0,0 +1,14 @@ | |||
3874 | 1 | /* PR c/47473 */ | ||
3875 | 2 | /* { dg-do run } */ | ||
3876 | 3 | /* { dg-options "-std=c99" } */ | ||
3877 | 4 | |||
3878 | 5 | int | ||
3879 | 6 | main (void) | ||
3880 | 7 | { | ||
3881 | 8 | long double _Complex w = 0.2L - 0.3iL; | ||
3882 | 9 | w = w * (0.3L - (0.0F + 1.0iF) * 0.9L); | ||
3883 | 10 | if (__builtin_fabsl (__real__ w + 0.21L) > 0.001L | ||
3884 | 11 | || __builtin_fabsl (__imag__ w + 0.27L) > 0.001L) | ||
3885 | 12 | __builtin_abort (); | ||
3886 | 13 | return 0; | ||
3887 | 14 | } | ||
3888 | 0 | 15 | ||
3889 | === added file 'gcc/testsuite/gcc.dg/tree-prof/pr45354.c' | |||
3890 | --- gcc/testsuite/gcc.dg/tree-prof/pr45354.c 1970-01-01 00:00:00 +0000 | |||
3891 | +++ gcc/testsuite/gcc.dg/tree-prof/pr45354.c 2011-04-28 16:44:05 +0000 | |||
3892 | @@ -0,0 +1,43 @@ | |||
3893 | 1 | /* { dg-require-effective-target freorder } */ | ||
3894 | 2 | /* { dg-options "-O -freorder-blocks-and-partition -fschedule-insns -fselective-scheduling" { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ | ||
3895 | 3 | |||
3896 | 4 | extern void abort (void); | ||
3897 | 5 | |||
3898 | 6 | int ifelse_val2; | ||
3899 | 7 | |||
3900 | 8 | int __attribute__((noinline)) | ||
3901 | 9 | test_ifelse2 (int i) | ||
3902 | 10 | { | ||
3903 | 11 | int result = 0; | ||
3904 | 12 | if (!i) /* count(6) */ | ||
3905 | 13 | result = 1; /* count(1) */ | ||
3906 | 14 | if (i == 1) /* count(6) */ | ||
3907 | 15 | result = 1024; | ||
3908 | 16 | if (i == 2) /* count(6) */ | ||
3909 | 17 | result = 2; /* count(3) */ | ||
3910 | 18 | if (i == 3) /* count(6) */ | ||
3911 | 19 | return 8; /* count(2) */ | ||
3912 | 20 | if (i == 4) /* count(4) */ | ||
3913 | 21 | return 2048; | ||
3914 | 22 | return result; /* count(4) */ | ||
3915 | 23 | } | ||
3916 | 24 | |||
3917 | 25 | void __attribute__((noinline)) | ||
3918 | 26 | call_ifelse () | ||
3919 | 27 | { | ||
3920 | 28 | ifelse_val2 += test_ifelse2 (0); | ||
3921 | 29 | ifelse_val2 += test_ifelse2 (2); | ||
3922 | 30 | ifelse_val2 += test_ifelse2 (2); | ||
3923 | 31 | ifelse_val2 += test_ifelse2 (2); | ||
3924 | 32 | ifelse_val2 += test_ifelse2 (3); | ||
3925 | 33 | ifelse_val2 += test_ifelse2 (3); | ||
3926 | 34 | } | ||
3927 | 35 | |||
3928 | 36 | int | ||
3929 | 37 | main() | ||
3930 | 38 | { | ||
3931 | 39 | call_ifelse (); | ||
3932 | 40 | if (ifelse_val2 != 23) | ||
3933 | 41 | abort (); | ||
3934 | 42 | return 0; | ||
3935 | 43 | } | ||
3936 | 0 | 44 | ||
3937 | === modified file 'gcc/testsuite/gcc.dg/ucnid-10.c' | |||
3938 | --- gcc/testsuite/gcc.dg/ucnid-10.c 2009-05-04 19:24:22 +0000 | |||
3939 | +++ gcc/testsuite/gcc.dg/ucnid-10.c 2011-04-28 16:44:05 +0000 | |||
3940 | @@ -2,6 +2,7 @@ | |||
3941 | 2 | locale). Test #pragma pack diagnostics. */ | 2 | locale). Test #pragma pack diagnostics. */ |
3942 | 3 | /* { dg-do compile { target *-*-linux* *-*-cygwin* powerpc*-*-eabi* } } */ | 3 | /* { dg-do compile { target *-*-linux* *-*-cygwin* powerpc*-*-eabi* } } */ |
3943 | 4 | /* { dg-options "-std=gnu99 -fextended-identifiers" } */ | 4 | /* { dg-options "-std=gnu99 -fextended-identifiers" } */ |
3944 | 5 | /* { dg-require-ascii-locale "" } */ | ||
3945 | 5 | 6 | ||
3946 | 6 | #pragma pack(push) | 7 | #pragma pack(push) |
3947 | 7 | #pragma pack(pop, \u00f3) /* { dg-warning "pop, \\\\U000000f3.*push, \\\\U000000f3" } */ | 8 | #pragma pack(pop, \u00f3) /* { dg-warning "pop, \\\\U000000f3.*push, \\\\U000000f3" } */ |
3948 | 8 | 9 | ||
3949 | === modified file 'gcc/testsuite/gcc.dg/ucnid-13.c' | |||
3950 | --- gcc/testsuite/gcc.dg/ucnid-13.c 2009-05-04 22:44:36 +0000 | |||
3951 | +++ gcc/testsuite/gcc.dg/ucnid-13.c 2011-04-28 16:44:05 +0000 | |||
3952 | @@ -2,6 +2,7 @@ | |||
3953 | 2 | locale). Miscellaneous diagnostics. */ | 2 | locale). Miscellaneous diagnostics. */ |
3954 | 3 | /* { dg-do compile } */ | 3 | /* { dg-do compile } */ |
3955 | 4 | /* { dg-options "-std=gnu99 -fextended-identifiers -Wpacked" } */ | 4 | /* { dg-options "-std=gnu99 -fextended-identifiers -Wpacked" } */ |
3956 | 5 | /* { dg-require-ascii-locale "" } */ | ||
3957 | 5 | 6 | ||
3958 | 6 | int a __attribute__((\u00c0)); /* { dg-warning "'\\\\U000000c0' attribute directive ignored" } */ | 7 | int a __attribute__((\u00c0)); /* { dg-warning "'\\\\U000000c0' attribute directive ignored" } */ |
3959 | 7 | 8 | ||
3960 | 8 | 9 | ||
3961 | === modified file 'gcc/testsuite/gcc.dg/ucnid-7.c' | |||
3962 | --- gcc/testsuite/gcc.dg/ucnid-7.c 2009-05-04 11:23:50 +0000 | |||
3963 | +++ gcc/testsuite/gcc.dg/ucnid-7.c 2011-04-28 16:44:05 +0000 | |||
3964 | @@ -2,6 +2,7 @@ | |||
3965 | 2 | locale). */ | 2 | locale). */ |
3966 | 3 | /* { dg-do compile } */ | 3 | /* { dg-do compile } */ |
3967 | 4 | /* { dg-options "-std=c99 -fextended-identifiers" } */ | 4 | /* { dg-options "-std=c99 -fextended-identifiers" } */ |
3968 | 5 | /* { dg-require-ascii-locale "" } */ | ||
3969 | 5 | 6 | ||
3970 | 6 | void *p = &\u00e9; /* { dg-error "'\\\\U000000e9' undeclared" } */ | 7 | void *p = &\u00e9; /* { dg-error "'\\\\U000000e9' undeclared" } */ |
3971 | 7 | void *q = &\u1e00; /* { dg-error "'\\\\U00001e00' undeclared" } */ | 8 | void *q = &\u1e00; /* { dg-error "'\\\\U00001e00' undeclared" } */ |
3972 | 8 | 9 | ||
3973 | === modified file 'gcc/testsuite/gcc.dg/ucnid-8.c' | |||
3974 | --- gcc/testsuite/gcc.dg/ucnid-8.c 2009-05-04 19:24:22 +0000 | |||
3975 | +++ gcc/testsuite/gcc.dg/ucnid-8.c 2011-04-28 16:44:05 +0000 | |||
3976 | @@ -2,6 +2,7 @@ | |||
3977 | 2 | locale). Further tests of C front-end diagnostics. */ | 2 | locale). Further tests of C front-end diagnostics. */ |
3978 | 3 | /* { dg-do compile } */ | 3 | /* { dg-do compile } */ |
3979 | 4 | /* { dg-options "-std=gnu99 -fextended-identifiers -Wvla" } */ | 4 | /* { dg-options "-std=gnu99 -fextended-identifiers -Wvla" } */ |
3980 | 5 | /* { dg-require-ascii-locale "" } */ | ||
3981 | 5 | 6 | ||
3982 | 6 | int a __attribute__((__mode__(\u00e9))); /* { dg-error "unknown machine mode '\\\\U000000e9'" } */ | 7 | int a __attribute__((__mode__(\u00e9))); /* { dg-error "unknown machine mode '\\\\U000000e9'" } */ |
3983 | 7 | struct s1 { int \u00e9 : 0; }; /* { dg-error "zero width for bit-field '\\\\U000000e9'" } */ | 8 | struct s1 { int \u00e9 : 0; }; /* { dg-error "zero width for bit-field '\\\\U000000e9'" } */ |
3984 | @@ -11,4 +12,4 @@ | |||
3985 | 11 | void g (static int \u00e9); /* { dg-error "storage class specified for parameter '\\\\U000000e9'" } */ | 12 | void g (static int \u00e9); /* { dg-error "storage class specified for parameter '\\\\U000000e9'" } */ |
3986 | 12 | 13 | ||
3987 | 13 | struct s2 { int \u00e1; } \u00e9 = { { 0 } }; /* { dg-warning "braces around scalar initializer" } */ | 14 | struct s2 { int \u00e1; } \u00e9 = { { 0 } }; /* { dg-warning "braces around scalar initializer" } */ |
3989 | 14 | /* { dg-warning "near initialization for '\\\\U000000e9\\.\\\\U000000e1'" "UCN diag" { target *-*-* } 13 } */ | 15 | /* { dg-warning "near initialization for '\\\\U000000e9\\.\\\\U000000e1'" "UCN diag" { target *-*-* } 14 } */ |
3990 | 15 | 16 | ||
3991 | === added file 'gcc/testsuite/gcc.target/i386/avx-vinsertps-3.c' | |||
3992 | --- gcc/testsuite/gcc.target/i386/avx-vinsertps-3.c 1970-01-01 00:00:00 +0000 | |||
3993 | +++ gcc/testsuite/gcc.target/i386/avx-vinsertps-3.c 2011-04-28 16:44:05 +0000 | |||
3994 | @@ -0,0 +1,8 @@ | |||
3995 | 1 | /* { dg-do run { target ilp32 } } */ | ||
3996 | 2 | /* { dg-require-effective-target avx } */ | ||
3997 | 3 | /* { dg-options "-O2 -mfpmath=sse -mavx -mtune=geode" } */ | ||
3998 | 4 | |||
3999 | 5 | #define CHECK_H "avx-check.h" | ||
4000 | 6 | #define TEST avx_test | ||
4001 | 7 | |||
4002 | 8 | #include "sse4_1-insertps-3.c" | ||
4003 | 0 | 9 | ||
4004 | === added file 'gcc/testsuite/gcc.target/i386/avx-vinsertps-4.c' | |||
4005 | --- gcc/testsuite/gcc.target/i386/avx-vinsertps-4.c 1970-01-01 00:00:00 +0000 | |||
4006 | +++ gcc/testsuite/gcc.target/i386/avx-vinsertps-4.c 2011-04-28 16:44:05 +0000 | |||
4007 | @@ -0,0 +1,8 @@ | |||
4008 | 1 | /* { dg-do run } */ | ||
4009 | 2 | /* { dg-require-effective-target avx } */ | ||
4010 | 3 | /* { dg-options "-O2 -mfpmath=sse -mavx" } */ | ||
4011 | 4 | |||
4012 | 5 | #define CHECK_H "avx-check.h" | ||
4013 | 6 | #define TEST avx_test | ||
4014 | 7 | |||
4015 | 8 | #include "sse4_1-insertps-4.c" | ||
4016 | 0 | 9 | ||
4017 | === added file 'gcc/testsuite/gcc.target/i386/pr45352-1.c' | |||
4018 | --- gcc/testsuite/gcc.target/i386/pr45352-1.c 1970-01-01 00:00:00 +0000 | |||
4019 | +++ gcc/testsuite/gcc.target/i386/pr45352-1.c 2011-04-28 16:44:05 +0000 | |||
4020 | @@ -0,0 +1,19 @@ | |||
4021 | 1 | /* { dg-do compile } */ | ||
4022 | 2 | /* { dg-options "-mtune=amdfam10 -O3 -fpeel-loops -fselective-scheduling2 -fsel-sched-pipelining -fPIC" } */ | ||
4023 | 3 | |||
4024 | 4 | static int FIR_Tab_16[16][16]; | ||
4025 | 5 | |||
4026 | 6 | void | ||
4027 | 7 | V_Pass_Avrg_16_C_ref (int *Dst, int *Src, int W, int BpS, int Rnd) | ||
4028 | 8 | { | ||
4029 | 9 | while (W-- > 0) | ||
4030 | 10 | { | ||
4031 | 11 | int i, k; | ||
4032 | 12 | int Sums[16] = { }; | ||
4033 | 13 | for (i = 0; i < 16; ++i) | ||
4034 | 14 | for (k = 0; k < 16; ++k) | ||
4035 | 15 | Sums[k] += FIR_Tab_16[i][k] * Src[i]; | ||
4036 | 16 | for (i = 0; i < 16; ++i) | ||
4037 | 17 | Dst[i] = Sums[i] + Src[i]; | ||
4038 | 18 | } | ||
4039 | 19 | } | ||
4040 | 0 | 20 | ||
4041 | === added file 'gcc/testsuite/gcc.target/i386/pr45352-2.c' | |||
4042 | --- gcc/testsuite/gcc.target/i386/pr45352-2.c 1970-01-01 00:00:00 +0000 | |||
4043 | +++ gcc/testsuite/gcc.target/i386/pr45352-2.c 2011-04-28 16:44:05 +0000 | |||
4044 | @@ -0,0 +1,109 @@ | |||
4045 | 1 | /* { dg-do compile } */ | ||
4046 | 2 | /* { dg-options "-O1 -mtune=amdfam10 -fexpensive-optimizations -fgcse -foptimize-register-move -freorder-blocks -fschedule-insns2 -funswitch-loops -fgcse-las -fselective-scheduling2 -fsel-sched-pipelining -funroll-all-loops" } */ | ||
4047 | 3 | |||
4048 | 4 | typedef char uint8_t; | ||
4049 | 5 | typedef uint32_t; | ||
4050 | 6 | typedef vo_frame_t; | ||
4051 | 7 | struct vo_frame_s | ||
4052 | 8 | { | ||
4053 | 9 | uint8_t base[3]; | ||
4054 | 10 | int pitches[3];}; | ||
4055 | 11 | typedef struct | ||
4056 | 12 | { | ||
4057 | 13 | void | ||
4058 | 14 | (*proc_macro_block) | ||
4059 | 15 | (void); | ||
4060 | 16 | } | ||
4061 | 17 | xine_xvmc_t; | ||
4062 | 18 | typedef struct | ||
4063 | 19 | { | ||
4064 | 20 | uint8_t ref[2][3]; | ||
4065 | 21 | int pmv; | ||
4066 | 22 | } | ||
4067 | 23 | motion_t; | ||
4068 | 24 | typedef struct | ||
4069 | 25 | { | ||
4070 | 26 | uint32_t bitstream_buf; | ||
4071 | 27 | int bitstream_bits; | ||
4072 | 28 | uint8_t * bitstream_ptr; | ||
4073 | 29 | uint8_t dest[3]; | ||
4074 | 30 | int pitches[3]; | ||
4075 | 31 | int offset; | ||
4076 | 32 | motion_t b_motion; | ||
4077 | 33 | motion_t f_motion; | ||
4078 | 34 | int v_offset; | ||
4079 | 35 | int coded_picture_width; | ||
4080 | 36 | int picture_structure; | ||
4081 | 37 | struct vo_frame_s *current_frame;} | ||
4082 | 38 | picture_t; | ||
4083 | 39 | typedef struct | ||
4084 | 40 | { | ||
4085 | 41 | int xvmc_last_slice_code;} | ||
4086 | 42 | mpeg2dec_accel_t; | ||
4087 | 43 | static int bitstream_init (picture_t * picture, void *start) | ||
4088 | 44 | { | ||
4089 | 45 | picture->bitstream_ptr = start; | ||
4090 | 46 | return (int) (long) start; | ||
4091 | 47 | } | ||
4092 | 48 | static slice_xvmc_init (picture_t * picture, int code) | ||
4093 | 49 | { | ||
4094 | 50 | int offset; | ||
4095 | 51 | struct vo_frame_s *forward_reference_frame; | ||
4096 | 52 | offset = picture->picture_structure == 2; | ||
4097 | 53 | picture->pitches[0] = picture->current_frame->pitches[0]; | ||
4098 | 54 | picture->pitches[1] = picture->current_frame->pitches[1]; | ||
4099 | 55 | if (picture) | ||
4100 | 56 | picture->f_motion.ref | ||
4101 | 57 | [0] | ||
4102 | 58 | [0] | ||
4103 | 59 | = (char) (long) (forward_reference_frame->base + (offset ? picture->pitches[0] : 0)); | ||
4104 | 60 | picture->f_motion.ref[0][1] = (offset); | ||
4105 | 61 | if (picture->picture_structure) | ||
4106 | 62 | picture->pitches[0] <<= picture->pitches[1] <<= 1; | ||
4107 | 63 | offset = 0; | ||
4108 | 64 | while (1) | ||
4109 | 65 | { | ||
4110 | 66 | if (picture->bitstream_buf >= 0x08000000) | ||
4111 | 67 | break; | ||
4112 | 68 | switch (picture->bitstream_buf >> 12) | ||
4113 | 69 | { | ||
4114 | 70 | case 8: | ||
4115 | 71 | offset += 33; | ||
4116 | 72 | picture->bitstream_buf | ||
4117 | 73 | |= | ||
4118 | 74 | picture->bitstream_ptr[1] << picture->bitstream_bits; | ||
4119 | 75 | } | ||
4120 | 76 | } | ||
4121 | 77 | picture->offset = (offset); | ||
4122 | 78 | while (picture->offset - picture->coded_picture_width >= 0) | ||
4123 | 79 | { | ||
4124 | 80 | picture->offset -= picture->coded_picture_width; | ||
4125 | 81 | if (picture->current_frame) | ||
4126 | 82 | { | ||
4127 | 83 | picture->dest[0] += picture->pitches[0]; | ||
4128 | 84 | picture->dest[1] += picture->pitches[1]; | ||
4129 | 85 | } | ||
4130 | 86 | picture->v_offset += 16; | ||
4131 | 87 | } | ||
4132 | 88 | } | ||
4133 | 89 | |||
4134 | 90 | void | ||
4135 | 91 | mpeg2_xvmc_slice | ||
4136 | 92 | (mpeg2dec_accel_t * accel, picture_t * picture, int code, uint8_t buffer,int mba_inc) | ||
4137 | 93 | { | ||
4138 | 94 | xine_xvmc_t * xvmc = (xine_xvmc_t *) (long) bitstream_init (picture, (void *) (long) buffer); | ||
4139 | 95 | slice_xvmc_init (picture, code); | ||
4140 | 96 | while (1) | ||
4141 | 97 | { | ||
4142 | 98 | if (picture) | ||
4143 | 99 | break; | ||
4144 | 100 | switch (picture->bitstream_buf) | ||
4145 | 101 | { | ||
4146 | 102 | case 8: | ||
4147 | 103 | mba_inc += accel->xvmc_last_slice_code = code; | ||
4148 | 104 | xvmc->proc_macro_block (); | ||
4149 | 105 | while (mba_inc) | ||
4150 | 106 | ; | ||
4151 | 107 | } | ||
4152 | 108 | } | ||
4153 | 109 | } | ||
4154 | 0 | 110 | ||
4155 | === added file 'gcc/testsuite/gcc.target/i386/pr45352.c' | |||
4156 | --- gcc/testsuite/gcc.target/i386/pr45352.c 1970-01-01 00:00:00 +0000 | |||
4157 | +++ gcc/testsuite/gcc.target/i386/pr45352.c 2011-04-28 16:44:05 +0000 | |||
4158 | @@ -0,0 +1,25 @@ | |||
4159 | 1 | /* { dg-do compile } */ | ||
4160 | 2 | /* { dg-options "-O3 -march=amdfam10 -fselective-scheduling2 -fsel-sched-pipelining -funroll-all-loops" } */ | ||
4161 | 3 | |||
4162 | 4 | struct S | ||
4163 | 5 | { | ||
4164 | 6 | struct | ||
4165 | 7 | { | ||
4166 | 8 | int i; | ||
4167 | 9 | } **p; | ||
4168 | 10 | int x; | ||
4169 | 11 | int y; | ||
4170 | 12 | }; | ||
4171 | 13 | |||
4172 | 14 | extern int baz (void); | ||
4173 | 15 | extern int bar (void *, int, int); | ||
4174 | 16 | |||
4175 | 17 | void | ||
4176 | 18 | foo (struct S *s) | ||
4177 | 19 | { | ||
4178 | 20 | int i; | ||
4179 | 21 | for (i = 0; i < s->x; i++) | ||
4180 | 22 | bar (s->p[i], baz (), s->y); | ||
4181 | 23 | for (i = 0; i < s->x; i++) | ||
4182 | 24 | s->p[i]->i++; | ||
4183 | 25 | } | ||
4184 | 0 | 26 | ||
4185 | === added file 'gcc/testsuite/gcc.target/i386/pr47809.c' | |||
4186 | --- gcc/testsuite/gcc.target/i386/pr47809.c 1970-01-01 00:00:00 +0000 | |||
4187 | +++ gcc/testsuite/gcc.target/i386/pr47809.c 2011-04-28 16:44:05 +0000 | |||
4188 | @@ -0,0 +1,13 @@ | |||
4189 | 1 | /* PR c/47809 */ | ||
4190 | 2 | /* { dg-do compile } */ | ||
4191 | 3 | /* { dg-options "-O2 -msse2" } */ | ||
4192 | 4 | |||
4193 | 5 | #include <emmintrin.h> | ||
4194 | 6 | double bar (double, double); | ||
4195 | 7 | |||
4196 | 8 | __m128d | ||
4197 | 9 | foo (__m128d x) | ||
4198 | 10 | { | ||
4199 | 11 | x *= (__m128d) { bar (1.0, 1.0), 0.0 }; | ||
4200 | 12 | return (__m128d) ((__m128i) x ^ (__m128i) { 0, 0}); | ||
4201 | 13 | } | ||
4202 | 0 | 14 | ||
4203 | === added file 'gcc/testsuite/gcc.target/i386/sse4_1-insertps-3.c' | |||
4204 | --- gcc/testsuite/gcc.target/i386/sse4_1-insertps-3.c 1970-01-01 00:00:00 +0000 | |||
4205 | +++ gcc/testsuite/gcc.target/i386/sse4_1-insertps-3.c 2011-04-28 16:44:05 +0000 | |||
4206 | @@ -0,0 +1,5 @@ | |||
4207 | 1 | /* { dg-do run { target ilp32 } } */ | ||
4208 | 2 | /* { dg-require-effective-target sse4 } */ | ||
4209 | 3 | /* { dg-options "-O2 -msse4.1 -mtune=geode" } */ | ||
4210 | 4 | |||
4211 | 5 | #include "sse4_1-insertps-2.c" | ||
4212 | 0 | 6 | ||
4213 | === added file 'gcc/testsuite/gcc.target/i386/sse4_1-insertps-4.c' | |||
4214 | --- gcc/testsuite/gcc.target/i386/sse4_1-insertps-4.c 1970-01-01 00:00:00 +0000 | |||
4215 | +++ gcc/testsuite/gcc.target/i386/sse4_1-insertps-4.c 2011-04-28 16:44:05 +0000 | |||
4216 | @@ -0,0 +1,92 @@ | |||
4217 | 1 | /* { dg-do run } */ | ||
4218 | 2 | /* { dg-require-effective-target sse4 } */ | ||
4219 | 3 | /* { dg-options "-O2 -msse4.1" } */ | ||
4220 | 4 | |||
4221 | 5 | #ifndef CHECK_H | ||
4222 | 6 | #define CHECK_H "sse4_1-check.h" | ||
4223 | 7 | #endif | ||
4224 | 8 | |||
4225 | 9 | #ifndef TEST | ||
4226 | 10 | #define TEST sse4_1_test | ||
4227 | 11 | #endif | ||
4228 | 12 | |||
4229 | 13 | #include CHECK_H | ||
4230 | 14 | |||
4231 | 15 | #include <smmintrin.h> | ||
4232 | 16 | #include <string.h> | ||
4233 | 17 | |||
4234 | 18 | #define msk0 0x41 | ||
4235 | 19 | #define msk1 0x90 | ||
4236 | 20 | #define msk2 0xe9 | ||
4237 | 21 | #define msk3 0x70 | ||
4238 | 22 | |||
4239 | 23 | #define msk4 0xFC | ||
4240 | 24 | #define msk5 0x05 | ||
4241 | 25 | #define msk6 0x0A | ||
4242 | 26 | #define msk7 0x0F | ||
4243 | 27 | |||
4244 | 28 | union | ||
4245 | 29 | { | ||
4246 | 30 | __m128 x; | ||
4247 | 31 | float f[4]; | ||
4248 | 32 | } val1; | ||
4249 | 33 | |||
4250 | 34 | static void | ||
4251 | 35 | TEST (void) | ||
4252 | 36 | { | ||
4253 | 37 | union | ||
4254 | 38 | { | ||
4255 | 39 | __m128 x; | ||
4256 | 40 | float f[4]; | ||
4257 | 41 | } res[8], val2, tmp; | ||
4258 | 42 | int masks[8]; | ||
4259 | 43 | int i, j; | ||
4260 | 44 | |||
4261 | 45 | val2.f[0] = 55.0; | ||
4262 | 46 | val2.f[1] = 55.0; | ||
4263 | 47 | val2.f[2] = 55.0; | ||
4264 | 48 | val2.f[3] = 55.0; | ||
4265 | 49 | |||
4266 | 50 | val1.f[0] = 1.; | ||
4267 | 51 | val1.f[1] = 2.; | ||
4268 | 52 | val1.f[2] = 3.; | ||
4269 | 53 | val1.f[3] = 4.; | ||
4270 | 54 | |||
4271 | 55 | asm volatile ("" : "+m" (val1)); | ||
4272 | 56 | res[0].x = _mm_insert_ps (val2.x, val1.x, msk0); | ||
4273 | 57 | asm volatile ("" : "+m" (val1)); | ||
4274 | 58 | res[1].x = _mm_insert_ps (val2.x, val1.x, msk1); | ||
4275 | 59 | asm volatile ("" : "+m" (val1)); | ||
4276 | 60 | res[2].x = _mm_insert_ps (val2.x, val1.x, msk2); | ||
4277 | 61 | asm volatile ("" : "+m" (val1)); | ||
4278 | 62 | res[3].x = _mm_insert_ps (val2.x, val1.x, msk3); | ||
4279 | 63 | |||
4280 | 64 | masks[0] = msk0; | ||
4281 | 65 | masks[1] = msk1; | ||
4282 | 66 | masks[2] = msk2; | ||
4283 | 67 | masks[3] = msk3; | ||
4284 | 68 | |||
4285 | 69 | for (i = 0; i < 4; i++) | ||
4286 | 70 | { | ||
4287 | 71 | asm volatile ("" : "+m" (val1)); | ||
4288 | 72 | res[i + 4].x = _mm_insert_ps (val2.x, val1.x, msk4); | ||
4289 | 73 | } | ||
4290 | 74 | |||
4291 | 75 | masks[4] = msk4; | ||
4292 | 76 | masks[5] = msk4; | ||
4293 | 77 | masks[6] = msk4; | ||
4294 | 78 | masks[7] = msk4; | ||
4295 | 79 | |||
4296 | 80 | for (i=0; i < 8; i++) | ||
4297 | 81 | { | ||
4298 | 82 | tmp = val2; | ||
4299 | 83 | tmp.f[(masks[i] & 0x30) >> 4] = val1.f[(masks[i] & 0xC0) >> 6]; | ||
4300 | 84 | |||
4301 | 85 | for (j = 0; j < 4; j++) | ||
4302 | 86 | if (masks[i] & (0x1 << j)) | ||
4303 | 87 | tmp.f[j] = 0.f; | ||
4304 | 88 | |||
4305 | 89 | if (memcmp (&res[i], &tmp, sizeof (tmp))) | ||
4306 | 90 | abort (); | ||
4307 | 91 | } | ||
4308 | 92 | } | ||
4309 | 0 | 93 | ||
4310 | === added file 'gcc/testsuite/gcc.target/ia64/pr43603.c' | |||
4311 | --- gcc/testsuite/gcc.target/ia64/pr43603.c 1970-01-01 00:00:00 +0000 | |||
4312 | +++ gcc/testsuite/gcc.target/ia64/pr43603.c 2011-04-28 16:44:05 +0000 | |||
4313 | @@ -0,0 +1,39 @@ | |||
4314 | 1 | /* { dg-do compile } */ | ||
4315 | 2 | /* { dg-options "-O3" } */ | ||
4316 | 3 | |||
4317 | 4 | int | ||
4318 | 5 | foo( long * np, int * dp, int qn) | ||
4319 | 6 | { | ||
4320 | 7 | int i; | ||
4321 | 8 | int n0; | ||
4322 | 9 | int d0; | ||
4323 | 10 | int a; | ||
4324 | 11 | int b; | ||
4325 | 12 | int c; | ||
4326 | 13 | int d; | ||
4327 | 14 | |||
4328 | 15 | a = 1; | ||
4329 | 16 | b = 0; | ||
4330 | 17 | c = 1; | ||
4331 | 18 | d = 1; | ||
4332 | 19 | |||
4333 | 20 | d0 = dp[0]; | ||
4334 | 21 | |||
4335 | 22 | for (i = qn; i >= 0; i--) { | ||
4336 | 23 | if (bar((c == 0)) && (np[1] == d0)) { | ||
4337 | 24 | car(np - 3, dp, 3); | ||
4338 | 25 | } else { | ||
4339 | 26 | __asm__ ("xma.hu %0 = %2, %3, f0\n\txma.l %1 = %2, %3, f0" : "=&f" ((a)), | ||
4340 | 27 | "=f" (b) : "f" ((c)), "f" ((d))); | ||
4341 | 28 | n0 = np[0]; | ||
4342 | 29 | if (n0 < d0) | ||
4343 | 30 | c = 1; | ||
4344 | 31 | else | ||
4345 | 32 | c = 0; | ||
4346 | 33 | |||
4347 | 34 | } | ||
4348 | 35 | *--np = a; | ||
4349 | 36 | } | ||
4350 | 37 | |||
4351 | 38 | return 0; | ||
4352 | 39 | } | ||
4353 | 0 | 40 | ||
4354 | === added file 'gcc/testsuite/gfortran.dg/gomp/pr48117.f90' | |||
4355 | --- gcc/testsuite/gfortran.dg/gomp/pr48117.f90 1970-01-01 00:00:00 +0000 | |||
4356 | +++ gcc/testsuite/gfortran.dg/gomp/pr48117.f90 2011-04-28 16:44:05 +0000 | |||
4357 | @@ -0,0 +1,11 @@ | |||
4358 | 1 | ! PR fortran/48117 | ||
4359 | 2 | ! { dg-do compile } | ||
4360 | 3 | ! { dg-options "-O2 -fopenmp" } | ||
4361 | 4 | |||
4362 | 5 | subroutine foo(x) | ||
4363 | 6 | character(len=*), optional :: x | ||
4364 | 7 | character(len=80) :: v | ||
4365 | 8 | !$omp master | ||
4366 | 9 | if (present(x)) v = adjustl(x) | ||
4367 | 10 | !$omp end master | ||
4368 | 11 | end subroutine foo | ||
4369 | 0 | 12 | ||
4370 | === modified file 'gcc/testsuite/lib/target-supports-dg.exp' | |||
4371 | --- gcc/testsuite/lib/target-supports-dg.exp 2010-05-19 15:52:49 +0000 | |||
4372 | +++ gcc/testsuite/lib/target-supports-dg.exp 2011-04-28 16:44:05 +0000 | |||
4373 | @@ -1,5 +1,5 @@ | |||
4376 | 1 | # Copyright (C) 1997, 1999, 2000, 2003, 2004, 2005, 2007, 2008, 2009, 2010 | 1 | # Copyright (C) 1997, 1999, 2000, 2003, 2004, 2005, 2007, 2008, 2009, 2010, |
4377 | 2 | # Free Software Foundation, Inc. | 2 | # 2011 Free Software Foundation, Inc. |
4378 | 3 | 3 | ||
4379 | 4 | # This program is free software; you can redistribute it and/or modify | 4 | # This program is free software; you can redistribute it and/or modify |
4380 | 5 | # it under the terms of the GNU General Public License as published by | 5 | # it under the terms of the GNU General Public License as published by |
4381 | @@ -128,6 +128,15 @@ | |||
4382 | 128 | set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"] | 128 | set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"] |
4383 | 129 | } | 129 | } |
4384 | 130 | 130 | ||
4385 | 131 | # If this host does not support an ASCII locale, skip this test. | ||
4386 | 132 | |||
4387 | 133 | proc dg-require-ascii-locale { args } { | ||
4388 | 134 | if { ![ check_ascii_locale_available] } { | ||
4389 | 135 | upvar dg-do-what dg-do-what | ||
4390 | 136 | set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"] | ||
4391 | 137 | } | ||
4392 | 138 | } | ||
4393 | 139 | |||
4394 | 131 | proc dg-require-iconv { args } { | 140 | proc dg-require-iconv { args } { |
4395 | 132 | if { ![ check_iconv_available ${args} ] } { | 141 | if { ![ check_iconv_available ${args} ] } { |
4396 | 133 | upvar dg-do-what dg-do-what | 142 | upvar dg-do-what dg-do-what |
4397 | 134 | 143 | ||
4398 | === modified file 'gcc/testsuite/lib/target-supports.exp' | |||
4399 | --- gcc/testsuite/lib/target-supports.exp 2011-02-22 11:38:56 +0000 | |||
4400 | +++ gcc/testsuite/lib/target-supports.exp 2011-04-28 16:44:05 +0000 | |||
4401 | @@ -850,6 +850,17 @@ | |||
4402 | 850 | }] $libiconv] | 850 | }] $libiconv] |
4403 | 851 | } | 851 | } |
4404 | 852 | 852 | ||
4405 | 853 | # Return 1 if an ASCII locale is supported on this host, 0 otherwise. | ||
4406 | 854 | |||
4407 | 855 | proc check_ascii_locale_available { } { | ||
4408 | 856 | if { ([ishost alpha*-dec-osf*] || [ishost mips-sgi-irix*]) } { | ||
4409 | 857 | # Neither Tru64 UNIX nor IRIX support an ASCII locale. | ||
4410 | 858 | return 0 | ||
4411 | 859 | } else { | ||
4412 | 860 | return 1 | ||
4413 | 861 | } | ||
4414 | 862 | } | ||
4415 | 863 | |||
4416 | 853 | # Return true if named sections are supported on this target. | 864 | # Return true if named sections are supported on this target. |
4417 | 854 | 865 | ||
4418 | 855 | proc check_named_sections_available { } { | 866 | proc check_named_sections_available { } { |
4419 | 856 | 867 | ||
4420 | === modified file 'gcc/tree-eh.c' | |||
4421 | --- gcc/tree-eh.c 2010-10-07 13:36:18 +0000 | |||
4422 | +++ gcc/tree-eh.c 2011-04-28 16:44:05 +0000 | |||
4423 | @@ -1,5 +1,5 @@ | |||
4424 | 1 | /* Exception handling semantics and decomposition for trees. | 1 | /* Exception handling semantics and decomposition for trees. |
4426 | 2 | Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 | 2 | Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
4427 | 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
4428 | 4 | 4 | ||
4429 | 5 | This file is part of GCC. | 5 | This file is part of GCC. |
4430 | @@ -3688,6 +3688,42 @@ | |||
4431 | 3688 | return false; | 3688 | return false; |
4432 | 3689 | } | 3689 | } |
4433 | 3690 | 3690 | ||
4434 | 3691 | /* Return true if edge E_FIRST is part of an empty infinite loop | ||
4435 | 3692 | or leads to such a loop through a series of single successor | ||
4436 | 3693 | empty bbs. */ | ||
4437 | 3694 | |||
4438 | 3695 | static bool | ||
4439 | 3696 | infinite_empty_loop_p (edge e_first) | ||
4440 | 3697 | { | ||
4441 | 3698 | bool inf_loop = false; | ||
4442 | 3699 | edge e; | ||
4443 | 3700 | |||
4444 | 3701 | if (e_first->dest == e_first->src) | ||
4445 | 3702 | return true; | ||
4446 | 3703 | |||
4447 | 3704 | e_first->src->aux = (void *) 1; | ||
4448 | 3705 | for (e = e_first; single_succ_p (e->dest); e = single_succ_edge (e->dest)) | ||
4449 | 3706 | { | ||
4450 | 3707 | gimple_stmt_iterator gsi; | ||
4451 | 3708 | if (e->dest->aux) | ||
4452 | 3709 | { | ||
4453 | 3710 | inf_loop = true; | ||
4454 | 3711 | break; | ||
4455 | 3712 | } | ||
4456 | 3713 | e->dest->aux = (void *) 1; | ||
4457 | 3714 | gsi = gsi_after_labels (e->dest); | ||
4458 | 3715 | if (!gsi_end_p (gsi) && is_gimple_debug (gsi_stmt (gsi))) | ||
4459 | 3716 | gsi_next_nondebug (&gsi); | ||
4460 | 3717 | if (!gsi_end_p (gsi)) | ||
4461 | 3718 | break; | ||
4462 | 3719 | } | ||
4463 | 3720 | e_first->src->aux = NULL; | ||
4464 | 3721 | for (e = e_first; e->dest->aux; e = single_succ_edge (e->dest)) | ||
4465 | 3722 | e->dest->aux = NULL; | ||
4466 | 3723 | |||
4467 | 3724 | return inf_loop; | ||
4468 | 3725 | } | ||
4469 | 3726 | |||
4470 | 3691 | /* Examine the block associated with LP to determine if it's an empty | 3727 | /* Examine the block associated with LP to determine if it's an empty |
4471 | 3692 | handler for its EH region. If so, attempt to redirect EH edges to | 3728 | handler for its EH region. If so, attempt to redirect EH edges to |
4472 | 3693 | an outer region. Return true the CFG was updated in any way. This | 3729 | an outer region. Return true the CFG was updated in any way. This |
4473 | @@ -3727,7 +3763,7 @@ | |||
4474 | 3727 | if (gsi_end_p (gsi)) | 3763 | if (gsi_end_p (gsi)) |
4475 | 3728 | { | 3764 | { |
4476 | 3729 | /* For the degenerate case of an infinite loop bail out. */ | 3765 | /* For the degenerate case of an infinite loop bail out. */ |
4478 | 3730 | if (e_out->dest == bb) | 3766 | if (infinite_empty_loop_p (e_out)) |
4479 | 3731 | return false; | 3767 | return false; |
4480 | 3732 | 3768 | ||
4481 | 3733 | return cleanup_empty_eh_unsplit (bb, e_out, lp); | 3769 | return cleanup_empty_eh_unsplit (bb, e_out, lp); |
4482 | 3734 | 3770 | ||
4483 | === modified file 'gcc/tree-ssa-ccp.c' | |||
4484 | --- gcc/tree-ssa-ccp.c 2011-02-22 11:38:56 +0000 | |||
4485 | +++ gcc/tree-ssa-ccp.c 2011-04-28 16:44:05 +0000 | |||
4486 | @@ -277,7 +277,7 @@ | |||
4487 | 277 | get_symbol_constant_value (tree sym) | 277 | get_symbol_constant_value (tree sym) |
4488 | 278 | { | 278 | { |
4489 | 279 | if (TREE_STATIC (sym) | 279 | if (TREE_STATIC (sym) |
4491 | 280 | && (TREE_READONLY (sym) | 280 | && ((TREE_READONLY (sym) && !TREE_THIS_VOLATILE (sym)) |
4492 | 281 | || TREE_CODE (sym) == CONST_DECL)) | 281 | || TREE_CODE (sym) == CONST_DECL)) |
4493 | 282 | { | 282 | { |
4494 | 283 | tree val = DECL_INITIAL (sym); | 283 | tree val = DECL_INITIAL (sym); |
4495 | 284 | 284 | ||
4496 | === modified file 'gcc/tree.c' | |||
4497 | --- gcc/tree.c 2011-04-06 12:29:08 +0000 | |||
4498 | +++ gcc/tree.c 2011-04-28 16:44:05 +0000 | |||
4499 | @@ -2337,6 +2337,10 @@ | |||
4500 | 2337 | min = TYPE_MIN_VALUE (index_type); | 2337 | min = TYPE_MIN_VALUE (index_type); |
4501 | 2338 | max = TYPE_MAX_VALUE (index_type); | 2338 | max = TYPE_MAX_VALUE (index_type); |
4502 | 2339 | 2339 | ||
4503 | 2340 | /* TYPE_MAX_VALUE may not be set if the array has unknown length. */ | ||
4504 | 2341 | if (!max) | ||
4505 | 2342 | return error_mark_node; | ||
4506 | 2343 | |||
4507 | 2340 | return (integer_zerop (min) | 2344 | return (integer_zerop (min) |
4508 | 2341 | ? max | 2345 | ? max |
4509 | 2342 | : fold_build2 (MINUS_EXPR, TREE_TYPE (max), max, min)); | 2346 | : fold_build2 (MINUS_EXPR, TREE_TYPE (max), max, min)); |
4510 | 2343 | 2347 | ||
4511 | === modified file 'gnattools/ChangeLog' | |||
4512 | --- gnattools/ChangeLog 2010-12-16 12:30:12 +0000 | |||
4513 | +++ gnattools/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4514 | @@ -1,3 +1,7 @@ | |||
4515 | 1 | 2011-04-28 Release Manager | ||
4516 | 2 | |||
4517 | 3 | * GCC 4.5.3 released. | ||
4518 | 4 | |||
4519 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4520 | 2 | 6 | ||
4521 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4522 | 4 | 8 | ||
4523 | === modified file 'include/ChangeLog' | |||
4524 | --- include/ChangeLog 2010-12-16 12:30:40 +0000 | |||
4525 | +++ include/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4526 | @@ -1,3 +1,7 @@ | |||
4527 | 1 | 2011-04-28 Release Manager | ||
4528 | 2 | |||
4529 | 3 | * GCC 4.5.3 released. | ||
4530 | 4 | |||
4531 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4532 | 2 | 6 | ||
4533 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4534 | 4 | 8 | ||
4535 | === modified file 'intl/ChangeLog' | |||
4536 | --- intl/ChangeLog 2010-12-16 12:30:17 +0000 | |||
4537 | +++ intl/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4538 | @@ -1,3 +1,7 @@ | |||
4539 | 1 | 2011-04-28 Release Manager | ||
4540 | 2 | |||
4541 | 3 | * GCC 4.5.3 released. | ||
4542 | 4 | |||
4543 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4544 | 2 | 6 | ||
4545 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4546 | 4 | 8 | ||
4547 | === modified file 'libada/ChangeLog' | |||
4548 | --- libada/ChangeLog 2010-12-16 12:31:11 +0000 | |||
4549 | +++ libada/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4550 | @@ -1,3 +1,7 @@ | |||
4551 | 1 | 2011-04-28 Release Manager | ||
4552 | 2 | |||
4553 | 3 | * GCC 4.5.3 released. | ||
4554 | 4 | |||
4555 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4556 | 2 | 6 | ||
4557 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4558 | 4 | 8 | ||
4559 | === modified file 'libcpp/ChangeLog' | |||
4560 | --- libcpp/ChangeLog 2011-03-21 20:59:02 +0000 | |||
4561 | +++ libcpp/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4562 | @@ -1,3 +1,17 @@ | |||
4563 | 1 | 2011-04-28 Release Manager | ||
4564 | 2 | |||
4565 | 3 | * GCC 4.5.3 released. | ||
4566 | 4 | |||
4567 | 5 | 2011-04-26 Jakub Jelinek <jakub@redhat.com> | ||
4568 | 6 | |||
4569 | 7 | Backported from mainline | ||
4570 | 8 | 2011-04-24 Jakub Jelinek <jakub@redhat.com> | ||
4571 | 9 | |||
4572 | 10 | PR preprocessor/48740 | ||
4573 | 11 | * lex.c (lex_raw_string): When raw string ends with | ||
4574 | 12 | ??) followed by raw prefix and ", ensure it is preprocessed | ||
4575 | 13 | with ??) rather than ??]. | ||
4576 | 14 | |||
4577 | 1 | 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com> | 15 | 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com> |
4578 | 2 | 16 | ||
4579 | 3 | PR preprocessor/48192 | 17 | PR preprocessor/48192 |
4580 | 4 | 18 | ||
4581 | === modified file 'libcpp/lex.c' | |||
4582 | --- libcpp/lex.c 2010-04-06 06:02:40 +0000 | |||
4583 | +++ libcpp/lex.c 2011-04-28 16:44:05 +0000 | |||
4584 | @@ -858,7 +858,9 @@ | |||
4585 | 858 | raw_prefix_len) == 0 | 858 | raw_prefix_len) == 0 |
4586 | 859 | && cur[raw_prefix_len+1] == '"') | 859 | && cur[raw_prefix_len+1] == '"') |
4587 | 860 | { | 860 | { |
4589 | 861 | cur += raw_prefix_len+2; | 861 | BUF_APPEND (")", 1); |
4590 | 862 | base++; | ||
4591 | 863 | cur += raw_prefix_len + 2; | ||
4592 | 862 | goto break_outer_loop; | 864 | goto break_outer_loop; |
4593 | 863 | } | 865 | } |
4594 | 864 | else | 866 | else |
4595 | 865 | 867 | ||
4596 | === modified file 'libcpp/po/ChangeLog' | |||
4597 | --- libcpp/po/ChangeLog 2010-12-16 12:31:00 +0000 | |||
4598 | +++ libcpp/po/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4599 | @@ -1,3 +1,7 @@ | |||
4600 | 1 | 2011-04-28 Release Manager | ||
4601 | 2 | |||
4602 | 3 | * GCC 4.5.3 released. | ||
4603 | 4 | |||
4604 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4605 | 2 | 6 | ||
4606 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4607 | 4 | 8 | ||
4608 | === modified file 'libdecnumber/ChangeLog' | |||
4609 | --- libdecnumber/ChangeLog 2010-12-16 12:29:40 +0000 | |||
4610 | +++ libdecnumber/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4611 | @@ -1,3 +1,7 @@ | |||
4612 | 1 | 2011-04-28 Release Manager | ||
4613 | 2 | |||
4614 | 3 | * GCC 4.5.3 released. | ||
4615 | 4 | |||
4616 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4617 | 2 | 6 | ||
4618 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4619 | 4 | 8 | ||
4620 | === modified file 'libffi/ChangeLog' | |||
4621 | --- libffi/ChangeLog 2011-02-09 14:40:15 +0000 | |||
4622 | +++ libffi/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4623 | @@ -1,3 +1,7 @@ | |||
4624 | 1 | 2011-04-28 Release Manager | ||
4625 | 2 | |||
4626 | 3 | * GCC 4.5.3 released. | ||
4627 | 4 | |||
4628 | 1 | 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 5 | 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
4629 | 2 | 6 | ||
4630 | 3 | PR libffi/46661 | 7 | PR libffi/46661 |
4631 | 4 | 8 | ||
4632 | === modified file 'libgcc/ChangeLog' | |||
4633 | --- libgcc/ChangeLog 2011-02-23 18:06:29 +0000 | |||
4634 | +++ libgcc/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4635 | @@ -1,3 +1,7 @@ | |||
4636 | 1 | 2011-04-28 Release Manager | ||
4637 | 2 | |||
4638 | 3 | * GCC 4.5.3 released. | ||
4639 | 4 | |||
4640 | 1 | 2011-02-23 Nathan Froyd <froydnj@codesourcery.com> | 5 | 2011-02-23 Nathan Froyd <froydnj@codesourcery.com> |
4641 | 2 | 6 | ||
4642 | 3 | PR target/43810 | 7 | PR target/43810 |
4643 | 4 | 8 | ||
4644 | === modified file 'libgcc/config/libbid/ChangeLog' | |||
4645 | --- libgcc/config/libbid/ChangeLog 2010-12-16 12:32:07 +0000 | |||
4646 | +++ libgcc/config/libbid/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4647 | @@ -1,3 +1,7 @@ | |||
4648 | 1 | 2011-04-28 Release Manager | ||
4649 | 2 | |||
4650 | 3 | * GCC 4.5.3 released. | ||
4651 | 4 | |||
4652 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4653 | 2 | 6 | ||
4654 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4655 | 4 | 8 | ||
4656 | === modified file 'libgfortran/ChangeLog' | |||
4657 | --- libgfortran/ChangeLog 2011-03-13 20:57:49 +0000 | |||
4658 | +++ libgfortran/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4659 | @@ -1,3 +1,7 @@ | |||
4660 | 1 | 2011-04-28 Release Manager | ||
4661 | 2 | |||
4662 | 3 | * GCC 4.5.3 released. | ||
4663 | 4 | |||
4664 | 1 | 2011-03-13 Thomas Koenig <tkoenig@gcc.gnu.org> | 5 | 2011-03-13 Thomas Koenig <tkoenig@gcc.gnu.org> |
4665 | 2 | 6 | ||
4666 | 3 | PR libfortran/48066 | 7 | PR libfortran/48066 |
4667 | 4 | 8 | ||
4668 | === modified file 'libgomp/ChangeLog' | |||
4669 | --- libgomp/ChangeLog 2011-02-27 18:12:41 +0000 | |||
4670 | +++ libgomp/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4671 | @@ -1,3 +1,7 @@ | |||
4672 | 1 | 2011-04-28 Release Manager | ||
4673 | 2 | |||
4674 | 3 | * GCC 4.5.3 released. | ||
4675 | 4 | |||
4676 | 1 | 2011-02-27 Tobias Burnus <burnus@net-b.de> | 5 | 2011-02-27 Tobias Burnus <burnus@net-b.de> |
4677 | 2 | 6 | ||
4678 | 3 | Backport from mainline | 7 | Backport from mainline |
4679 | 4 | 8 | ||
4680 | === modified file 'libiberty/ChangeLog' | |||
4681 | --- libiberty/ChangeLog 2010-12-16 12:31:47 +0000 | |||
4682 | +++ libiberty/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4683 | @@ -1,3 +1,7 @@ | |||
4684 | 1 | 2011-04-28 Release Manager | ||
4685 | 2 | |||
4686 | 3 | * GCC 4.5.3 released. | ||
4687 | 4 | |||
4688 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4689 | 2 | 6 | ||
4690 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4691 | 4 | 8 | ||
4692 | === modified file 'libjava/ChangeLog' | |||
4693 | --- libjava/ChangeLog 2011-01-07 15:32:24 +0000 | |||
4694 | +++ libjava/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4695 | @@ -1,3 +1,12 @@ | |||
4696 | 1 | 2011-04-28 Release Manager | ||
4697 | 2 | |||
4698 | 3 | * GCC 4.5.3 released. | ||
4699 | 4 | |||
4700 | 5 | 2011-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | ||
4701 | 6 | |||
4702 | 7 | * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): | ||
4703 | 8 | Add $libiconv to cxxflags for alpha*-dec-osf*. | ||
4704 | 9 | |||
4705 | 1 | 2011-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 10 | 2011-01-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
4706 | 2 | 11 | ||
4707 | 3 | Backport from mainline: | 12 | Backport from mainline: |
4708 | 4 | 13 | ||
4709 | === modified file 'libjava/classpath/ChangeLog' | |||
4710 | --- libjava/classpath/ChangeLog 2010-12-16 12:31:21 +0000 | |||
4711 | +++ libjava/classpath/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4712 | @@ -1,3 +1,7 @@ | |||
4713 | 1 | 2011-04-28 Release Manager | ||
4714 | 2 | |||
4715 | 3 | * GCC 4.5.3 released. | ||
4716 | 4 | |||
4717 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4718 | 2 | 6 | ||
4719 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4720 | 4 | 8 | ||
4721 | === modified file 'libjava/libltdl/ChangeLog' | |||
4722 | --- libjava/libltdl/ChangeLog 2010-12-16 12:31:26 +0000 | |||
4723 | +++ libjava/libltdl/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4724 | @@ -1,3 +1,7 @@ | |||
4725 | 1 | 2011-04-28 Release Manager | ||
4726 | 2 | |||
4727 | 3 | * GCC 4.5.3 released. | ||
4728 | 4 | |||
4729 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4730 | 2 | 6 | ||
4731 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4732 | 4 | 8 | ||
4733 | === modified file 'libjava/testsuite/libjava.jni/jni.exp' | |||
4734 | --- libjava/testsuite/libjava.jni/jni.exp 2011-01-07 15:32:24 +0000 | |||
4735 | +++ libjava/testsuite/libjava.jni/jni.exp 2011-04-28 16:44:05 +0000 | |||
4736 | @@ -280,6 +280,11 @@ | |||
4737 | 280 | lappend cxxflags "-shared-libgcc" | 280 | lappend cxxflags "-shared-libgcc" |
4738 | 281 | } | 281 | } |
4739 | 282 | 282 | ||
4740 | 283 | # Tru64 UNIX needs -liconv linked explicitly since gcc does the linking. | ||
4741 | 284 | if { [istarget "alpha*-dec-osf*"] } { | ||
4742 | 285 | lappend cxxflags $libiconv | ||
4743 | 286 | } | ||
4744 | 287 | |||
4745 | 283 | return $cxxflags | 288 | return $cxxflags |
4746 | 284 | } | 289 | } |
4747 | 285 | 290 | ||
4748 | 286 | 291 | ||
4749 | === modified file 'libmudflap/ChangeLog' | |||
4750 | --- libmudflap/ChangeLog 2010-12-16 12:31:51 +0000 | |||
4751 | +++ libmudflap/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4752 | @@ -1,3 +1,7 @@ | |||
4753 | 1 | 2011-04-28 Release Manager | ||
4754 | 2 | |||
4755 | 3 | * GCC 4.5.3 released. | ||
4756 | 4 | |||
4757 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4758 | 2 | 6 | ||
4759 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4760 | 4 | 8 | ||
4761 | === modified file 'libobjc/ChangeLog' | |||
4762 | --- libobjc/ChangeLog 2010-12-16 12:30:34 +0000 | |||
4763 | +++ libobjc/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4764 | @@ -1,3 +1,7 @@ | |||
4765 | 1 | 2011-04-28 Release Manager | ||
4766 | 2 | |||
4767 | 3 | * GCC 4.5.3 released. | ||
4768 | 4 | |||
4769 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4770 | 2 | 6 | ||
4771 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4772 | 4 | 8 | ||
4773 | === modified file 'libssp/ChangeLog' | |||
4774 | --- libssp/ChangeLog 2010-12-16 12:31:57 +0000 | |||
4775 | +++ libssp/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4776 | @@ -1,3 +1,7 @@ | |||
4777 | 1 | 2011-04-28 Release Manager | ||
4778 | 2 | |||
4779 | 3 | * GCC 4.5.3 released. | ||
4780 | 4 | |||
4781 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4782 | 2 | 6 | ||
4783 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4784 | 4 | 8 | ||
4785 | === modified file 'libstdc++-v3/ChangeLog' | |||
4786 | --- libstdc++-v3/ChangeLog 2011-03-21 13:41:37 +0000 | |||
4787 | +++ libstdc++-v3/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4788 | @@ -1,3 +1,7 @@ | |||
4789 | 1 | 2011-04-28 Release Manager | ||
4790 | 2 | |||
4791 | 3 | * GCC 4.5.3 released. | ||
4792 | 4 | |||
4793 | 1 | 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 5 | 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
4794 | 2 | 6 | ||
4795 | 3 | * testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on | 7 | * testsuite/22_locale/num_put/put/char/14220.cc: Don't xfail on |
4796 | 4 | 8 | ||
4797 | === modified file 'lto-plugin/ChangeLog' | |||
4798 | --- lto-plugin/ChangeLog 2010-12-16 12:31:31 +0000 | |||
4799 | +++ lto-plugin/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4800 | @@ -1,3 +1,7 @@ | |||
4801 | 1 | 2011-04-28 Release Manager | ||
4802 | 2 | |||
4803 | 3 | * GCC 4.5.3 released. | ||
4804 | 4 | |||
4805 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4806 | 2 | 6 | ||
4807 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4808 | 4 | 8 | ||
4809 | === modified file 'maintainer-scripts/ChangeLog' | |||
4810 | --- maintainer-scripts/ChangeLog 2010-12-16 12:30:27 +0000 | |||
4811 | +++ maintainer-scripts/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4812 | @@ -1,3 +1,7 @@ | |||
4813 | 1 | 2011-04-28 Release Manager | ||
4814 | 2 | |||
4815 | 3 | * GCC 4.5.3 released. | ||
4816 | 4 | |||
4817 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4818 | 2 | 6 | ||
4819 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
4820 | 4 | 8 | ||
4821 | === modified file 'zlib/ChangeLog' | |||
4822 | --- zlib/ChangeLog 2010-12-16 12:31:36 +0000 | |||
4823 | +++ zlib/ChangeLog 2011-04-28 16:44:05 +0000 | |||
4824 | @@ -1,3 +1,7 @@ | |||
4825 | 1 | 2011-04-28 Release Manager | ||
4826 | 2 | |||
4827 | 3 | * GCC 4.5.3 released. | ||
4828 | 4 | |||
4829 | 1 | 2010-12-16 Release Manager | 5 | 2010-12-16 Release Manager |
4830 | 2 | 6 | ||
4831 | 3 | * GCC 4.5.2 released. | 7 | * GCC 4.5.2 released. |
cbuild has taken a snapshot of this branch at r99503 and queued it for build.
The snapshot is available at: ex.seabright. co.nz/snapshots /gcc-linaro- 4.5+bzr99503~ ams-codesourcer y~merge- fsf-4.5. 3.tar.xdelta3. xz
http://
and will be built on the following builders:
a9-builder i686 x86_64
You can track the build queue at: ex.seabright. co.nz/helpers/ scheduler
http://
cbuild-snapshot: gcc-linaro- 4.5+bzr99503~ ams-codesourcer y~merge- fsf-4.5. 3
cbuild-ancestor: lp:gcc-linaro+bzr99502
cbuild-state: check