* testsuite/27_io/basic_ios/conv/bool_neg.cc: New.
[official-gcc.git] / gcc / ChangeLog
blob06c4f0a451999369ecee16ace4bc693ec4d2ad9d
1 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3             Anna Tikhonova  <anna.tikhonova@intel.com>
4             Ilya Tocar  <ilya.tocar@intel.com>
5             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6             Ilya Verbin  <ilya.verbin@intel.com>
7             Kirill Yukhin  <kirill.yukhin@intel.com>
8             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10         * config/i386/sse.md
11         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
12         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
13         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
14         (define_expand "<avx512>_perm<mode>_mask"): ... this.
15         Use VI8F_256_512 mode iterator.
16         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
17         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
19 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
20             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
21             Anna Tikhonova  <anna.tikhonova@intel.com>
22             Ilya Tocar  <ilya.tocar@intel.com>
23             Andrey Turetskiy  <andrey.turetskiy@intel.com>
24             Ilya Verbin  <ilya.verbin@intel.com>
25             Kirill Yukhin  <kirill.yukhin@intel.com>
26             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
28         * config/i386/sse.md
29         (define_insn "avx_movshdup256<mask_name>"): Add masking.
30         (define_insn "sse3_movshdup<mask_name>"): Ditto.
31         (define_insn "avx_movsldup256<mask_name>"): Ditto.
32         (define_insn "sse3_movsldup<mask_name>"): Ditto.
33         (define_insn "vec_dupv2df<mask_name>"): Ditto.
34         (define_insn "*vec_concatv2df"): Add EVEX version.
36 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
37             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
38             Anna Tikhonova  <anna.tikhonova@intel.com>
39             Ilya Tocar  <ilya.tocar@intel.com>
40             Andrey Turetskiy  <andrey.turetskiy@intel.com>
41             Ilya Verbin  <ilya.verbin@intel.com>
42             Kirill Yukhin  <kirill.yukhin@intel.com>
43             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
45         * config/i386/sse.md
46         (define_insn "vec_set<mode>_0"): Add EVEX version.
48 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
49             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
50             Anna Tikhonova  <anna.tikhonova@intel.com>
51             Ilya Tocar  <ilya.tocar@intel.com>
52             Andrey Turetskiy  <andrey.turetskiy@intel.com>
53             Ilya Verbin  <ilya.verbin@intel.com>
54             Kirill Yukhin  <kirill.yukhin@intel.com>
55             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
57         * config/i386/sse.md
58         (define_insn
59         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
60         New.
61         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
62         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
63         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
64         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
65         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
66         (define_expand "sse2_cvtpd2ps_mask): New.
67         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
68         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
70 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
71             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
72             Anna Tikhonova  <anna.tikhonova@intel.com>
73             Ilya Tocar  <ilya.tocar@intel.com>
74             Andrey Turetskiy  <andrey.turetskiy@intel.com>
75             Ilya Verbin  <ilya.verbin@intel.com>
76             Kirill Yukhin  <kirill.yukhin@intel.com>
77             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
79         * config/i386/i386.c
80         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
81         (ufix_notruncv8dfv8si2_mask_round): ... this.
82         * config/i386/sse.md
83         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
84         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
85         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
86         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
87         (define_expand "sse2_cvtpd2dq"): Delete.
88         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
89         make 2nd operand const0 vector.
90         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
91         Delete.
92         (define_mode_attr pd2udqsuff): New.
93         (define_insn
94         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
95         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
96         (define_insn "*avx_cvttpd2dq256_2"): Delete.
97         (define_expand "sse2_cvttpd2dq"): Ditto.
98         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
99         make 2nd operand const0 vector.
101 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
103         PR tree-optimization/63341
104         * tree-vectorizer.h (vect_create_data_ref_ptr,
105         vect_create_addr_base_for_vector_ref): Add another tree argument
106         defaulting to NULL_TREE.
107         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
108         argument, pass it down to vect_create_addr_base_for_vector_ref.
109         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
110         add that to base_offset too if non-NULL.
111         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
112         for dr_explicit_realign_optimized set it to vector byte size
113         - 1 instead of setting offset, pass byte_offset down to
114         vect_create_data_ref_ptr.
116 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
118         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
119         forgotten debug output; canonicalize querries more wtih LTO.
121 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
123         * cgraph.h (class ipa_polymorphic_call_context): Move here from
124         ipa-utils.h; add stream_int and stream_out methods.
125         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
126         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
127         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
128         add CONTEXT.
129         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
130         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
131         ipa_polymorphic_call_context::clear_speculation,
132         ipa_polymorphic_call_context::clear_outer_type): Move here from
133         ipa-utils.h
134         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
135         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
136         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
137         ipa_polymorphic_call_context::clear_speculation,
138         ipa_polymorphic_call_context::clear_outer_type): Likewise.
139         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
140         streamer-hooks.h
141         (ipa_polymorphic_call_context::stream_out): New method.
142         (ipa_polymorphic_call_context::stream_in): New method.
143         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
144         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
145         OUTER_TYPE.
146         (ipa_analyze_call_uses): Simplify.
147         (update_indirect_edges_after_inlining): Do not care about outer_type.
148         (ipa_write_indirect_edge_info): Update.
149         (ipa_write_indirect_edge_info): Likewise.
150         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
151         (dump_edge_flags): Break out from ...
152         (cgraph_node::dump): ... here; dump indirect edges.
154 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
156         * ipa-utils.h (polymorphic_call_context): Add
157         metdhos dump, debug and clear_outer_type.
158         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
159         (ipa_polymorphic_call_context::clear_outer_type): New method.
160         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
161         * ipa-devirt.c (types_odr_comparable): New function.
162         (types_must_be_same_for_odr): New function.
163         (odr_subtypes_equivalent_p): Simplify.
164         (possible_placement_new): Break out from ...
165         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
166         be more cuatious about returning false in cases the context may be
167         valid in derived type or via placement new.
168         (contains_type_p): Clear maybe_derived_type
169         (ipa_polymorphic_call_context::dump): New method.
170         (ipa_polymorphic_call_context::debug): New method.
171         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
172         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
173         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
174         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
175         to suceed on all valid cases; remove confused sanity check.
176         (dump_possible_polymorphic_call_targets): Simplify.
178 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
180         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
181         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
182         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
183         varpool.c: Rename all instances of DECL_ABSTRACT to
184         DECL_ABSTRACT_P.
186 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
188         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
189         special handling for stores whose SET_SRC is an UNSPEC (such as
190         UNSPEC_STVE).
192 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
194         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
195         !REG_P (src) to release more instruction sink opportunities.
197 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
199         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
200         move costs for 128-bit types.
202 2014-09-24  Martin Jambor  <mjambor@suse.cz>
204         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
205         when duplicating a PASS_THROUGH jump function when creating a
206         speculative edge.
208 2014-09-24  Marek Polacek  <polacek@redhat.com>
210         PR c/61405
211         PR c/53874
212         * asan.c (maybe_instrument_call): Add default case.
213         * ipa-pure-const.c (special_builtin_state): Likewise.
214         * predict.c (expr_expected_value_1): Likewise.
215         * lto-streamer-out.c (write_symbol): Initialize variable.
217 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
219         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
220         the lane.
221         (vmuld_laneq_f64): Likewise.
222         (vmuls_lane_f32): Likewise.
223         (vmuls_laneq_f32): Likewise.
225 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
227         PR bootstrap/63235
228         * varpool.c (varpool_node::add): Pass decl attributes
229         to lookup_attribute.
231 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
233         PR sanitizer/63316
234         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
236 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
238         PR tree-optimization/63266
239         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
240         marker for unknown byte value.
241         (MARKER_MASK): New macro.
242         (MARKER_BYTE_UNKNOWN): New macro.
243         (HEAD_MARKER): New macro.
244         (do_shift_rotate): Mark bytes with unknown values due to sign
245         extension when doing an arithmetic right shift. Replace hardcoded
246         mask for marker by new MARKER_MASK macro.
247         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
248         numbers accordingly.
250 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
251             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
252             Anna Tikhonova  <anna.tikhonova@intel.com>
253             Ilya Tocar  <ilya.tocar@intel.com>
254             Andrey Turetskiy  <andrey.turetskiy@intel.com>
255             Ilya Verbin  <ilya.verbin@intel.com>
256             Kirill Yukhin  <kirill.yukhin@intel.com>
257             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
259         * config/i386/sse.md
260         (define_insn
261         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
262         Add masking.
263         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
264         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
266 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
267             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
268             Anna Tikhonova  <anna.tikhonova@intel.com>
269             Ilya Tocar  <ilya.tocar@intel.com>
270             Andrey Turetskiy  <andrey.turetskiy@intel.com>
271             Ilya Verbin  <ilya.verbin@intel.com>
272             Kirill Yukhin  <kirill.yukhin@intel.com>
273             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
275         * config/i386/sse.md
276         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
277         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
278         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
279         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
280         (define_expand "avx512vl_pshuflw_mask"): New.
281         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
282         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
283         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
284         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
285         (define_expand "avx512vl_pshufhw_mask"): New.
286         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
288 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
289             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
290             Anna Tikhonova  <anna.tikhonova@intel.com>
291             Ilya Tocar  <ilya.tocar@intel.com>
292             Andrey Turetskiy  <andrey.turetskiy@intel.com>
293             Ilya Verbin  <ilya.verbin@intel.com>
294             Kirill Yukhin  <kirill.yukhin@intel.com>
295             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
297         * config/i386/i386.c
298         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
299         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
300         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
301         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
302         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
303         * config/i386/sse.md
304         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
305         (define_insn
306         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
307         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
308         (define_insn
309         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
310         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
311         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
312         (define_expand "avx512vl_pshufd_mask"): New.
313         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
315 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
316             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
317             Anna Tikhonova  <anna.tikhonova@intel.com>
318             Ilya Tocar  <ilya.tocar@intel.com>
319             Andrey Turetskiy  <andrey.turetskiy@intel.com>
320             Ilya Verbin  <ilya.verbin@intel.com>
321             Kirill Yukhin  <kirill.yukhin@intel.com>
322             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
324         * config/i386/i386.c
325         (CODE_FOR_avx2_extracti128): Rename to ...
326         (CODE_FOR_avx_vextractf128v4di): this.
327         (CODE_FOR_avx2_inserti128): Rename to ...
328         (CODE_FOR_avx_vinsertf128v4di): this.
329         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
330         CODE_FOR_avx_vextractf128v4di.
331         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
332         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
333         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
334         CODE_FOR_avx512vl_vinsertv8si.
335         * config/i386/sse.md
336         (define_expand
337         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
338         AVX512_VEC mode iterator.
339         (define_insn
340         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
341         Ditto.
342         (define_expand
343         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
344         AVX512_VEC_2 mode iterator.
345         (define_insn "vec_set_lo_<mode><mask_name>"): New.
346         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
347         (define_expand "avx512vl_vinsert<mode>"): Ditto.
348         (define_insn "avx2_vec_set_lo_v4di"): Delete.
349         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
350         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
351         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
352         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
353         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
354         (define_expand "avx2_extracti128"): Delete.
355         (define_expand "avx2_inserti128"): Ditto.
357 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
358             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
359             Anna Tikhonova  <anna.tikhonova@intel.com>
360             Ilya Tocar  <ilya.tocar@intel.com>
361             Andrey Turetskiy  <andrey.turetskiy@intel.com>
362             Ilya Verbin  <ilya.verbin@intel.com>
363             Kirill Yukhin  <kirill.yukhin@intel.com>
364             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
366         * config/i386/sse.md
367         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
368         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
369         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
370         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
371         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
372         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
373         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
374         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
375         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
376         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
377         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
378         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
379         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
381 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
383         PR rtl-optimization/63210
384         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
385         HARD_REGNO is not available for CONFLICT_A.
387 2014-09-23  Andi Kleen  <ak@linux.intel.com>
389         * cgraph.h (symtab_node): Add no_reorder attribute.
390         (symbol_table::output_asm_statements): Remove.
391         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
392         (cgraph_node::create_version_clone): Dito.
393         (symbol_table::output_asm_statements): Remove.
394         * trans-mem.c (ipa_tm_create_version_alias): Dito.
395         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
396         (output_in_order): Add no_reorder flag. Only handle no_reorder
397         nodes when set.
398         (symbol_table::compile): Add separate pass for no_reorder nodes.
399         (process_common_attributes): Set no_reorder flag in symtab node.
400         Add node argument.
401         (process_function_and_variable_attributes): Pass symtab nodes to
402         process_common_attributes.
403         * doc/extend.texi (no_reorder): Document no_reorder attribute.
404         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
405         (lto_output_varpool_node): Dito.
406         (input_overwrite_node): Dito.
407         (input_varpool_node): Dito.
408         * varpool.c (varpool_node::add): Set no_reorder attribute.
409         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
410         (symbol_table::output_variables): Dito.
411         * symtab.c (symtab_node::dump_base): Print no_reorder.
413 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
415         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
416         be INVALID_REGNUM.
418 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
420         * configure: Regenerate.
422 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
424         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
425         when result_mode == shift_mode.
427 2014-09-23  Kostya Serebryany  <kcc@google.com>
429         Update to match the changed asan API.
430         * asan.c (asan_global_struct): Update the __asan_global definition
431         to match the new API.
432         (asan_add_global): Ditto.
433         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
434         to __asan_init_v4.
436 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
438         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
439         refine the constraints used on 32/64-bit floating point moves.
440         (f32_av): Likewise.
441         (f64_vsx): Likewise.
442         (f64_dm): Likewise.
443         (f64_av): Likewise.
444         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
445         (BOOL_REGS_OP1): Likewise.
446         (BOOL_REGS_OP2): Likewise.
447         (BOOL_REGS_UNARY): Likewise.
448         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
449         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
450         for moves involving VSX registers.  Do not use constraints that
451         target VSX registers for decimal types.
452         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
453         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
455 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
457         * tree.h (int_bit_position): Turn into inline function;
458         implement using wide int.
459         * tree.c (int_bit_position): Remove.
461 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
463         PR bootstrap/63280
464         * target-globals.c (target_globals::~target_globals): Fix location
465         of ira_int destruction.
467 2014-09-23  Renlin Li  <renlin.li@arm.com>
469         * config/aarch64/aarch64.md (return): New.
470         (simple_return): Likewise.
471         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
472         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
474 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
476         * common/config/aarch64/aarch64-common.c:
477         (default_options aarch_option_optimization_table):
478         Default to -fsched-pressure.
480 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
482         * cfgcleanup.c (try_optimize_cfg): Do not remove label
483         with LABEL_PRESERVE_P flag set.
485 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
486             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
487             Anna Tikhonova  <anna.tikhonova@intel.com>
488             Ilya Tocar  <ilya.tocar@intel.com>
489             Andrey Turetskiy  <andrey.turetskiy@intel.com>
490             Ilya Verbin  <ilya.verbin@intel.com>
491             Kirill Yukhin  <kirill.yukhin@intel.com>
492             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
494         * config/i386/sse.md
495         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
496         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
497         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
498         (define_insn "sse2_shufpd_v2df_mask"): New.
500 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
501             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
502             Anna Tikhonova  <anna.tikhonova@intel.com>
503             Ilya Tocar  <ilya.tocar@intel.com>
504             Andrey Turetskiy  <andrey.turetskiy@intel.com>
505             Ilya Verbin  <ilya.verbin@intel.com>
506             Kirill Yukhin  <kirill.yukhin@intel.com>
507             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
509         * config/i386/sse.md
510         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
511         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
512         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
513         (define_insn "sse_shufps_v4sf_mask"): New.
515 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
516             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
517             Anna Tikhonova  <anna.tikhonova@intel.com>
518             Ilya Tocar  <ilya.tocar@intel.com>
519             Andrey Turetskiy  <andrey.turetskiy@intel.com>
520             Ilya Verbin  <ilya.verbin@intel.com>
521             Kirill Yukhin  <kirill.yukhin@intel.com>
522             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
524         * config/i386/sse.md
525         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
526         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
527         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
528         (define_insn "unpcklps128_mask"): New.
530 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
531             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
532             Anna Tikhonova  <anna.tikhonova@intel.com>
533             Ilya Tocar  <ilya.tocar@intel.com>
534             Andrey Turetskiy  <andrey.turetskiy@intel.com>
535             Ilya Verbin  <ilya.verbin@intel.com>
536             Kirill Yukhin  <kirill.yukhin@intel.com>
537             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
539         * config/i386/sse.md
540         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
541         (define_insn "avx512vl_unpckhpd128_mask"): New.
542         (define_expand "avx_movddup256<mask_name>"): Add masking.
543         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
544         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
545         (define_insn "avx512vl_unpcklpd128_mask"): New.
547 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
549         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
550         * doc/tm.texi: Regenerate.
551         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
552         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
553         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
554         Remove.
555         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
556         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
557         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
558         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
559         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
560         Remove.
561         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
562         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
563         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
564         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
565         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
566         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
567         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
568         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
569         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
570         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
571         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
572         Remove.
574 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
576         * tree-ssa-ccp.c (prop_value_d): Rename to ...
577         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
578         * ipa-prop.c (struct type_change_info): Rename to ...
579         (prop_type_change_info): ... this; update uses.
580         * ggc-page.c (globals): Rename to ...
581         (static struct ggc_globals): ... this; update uses.
582         * tree-ssa-loop-im.c (mem_ref): Rename to ...
583         (im_mem_ref): ... this; update uses.
584         * ggc-common.c (loc_descriptor): Rename to ...
585         (ggc_loc_descriptor): ... this; update uses.
586         * lra-eliminations.c (elim_table): Rename to ...
587         (lra_elim_table): ... this; update uses.
588         * bitmap.c (output_info): Rename to ...
589         (bitmap_output_info): ... this; update uses.
590         * gcse.c (expr): Rename to ...
591         (gcse_expr) ... this; update uses.
592         (occr): Rename to ...
593         (gcse_occr): .. this; update uses.
594         * tree-ssa-copy.c (prop_value_d): Rename to ...
595         (prop_value_t): ... this.
596         * predict.c (block_info_def): Rename to ...
597         (block_info): ... this; update uses.
598         (edge_info_def): Rename to ...
599         (edge_info): ... this; update uses.
600         * profile.c (bb_info): Rename to ...
601         (bb_profile_info): ... this; update uses.
602         * alloc-pool.c (output_info): Rename to ...
603         (pool_output_info): ... this; update uses.
604         * ipa-cp.c (topo_info): Rename to ..
605         (ipa_topo_info): ... this; update uses.
606         * tree-nrv.c (nrv_data): Rename to ...
607         (nrv_data_t): ... this; update uses.
608         * ipa-split.c (bb_info): Rename to ...
609         (split_bb_info): ... this one.
610         * profile.h (edge_info): Rename to ...
611         (edge_profile_info): ... this one; update uses.
612         * dse.c (bb_info): Rename to ...
613         (dse_bb_info): ... this one; update uses.
614         * cprop.c (occr): Rename to ...
615         (cprop_occr): ... this one; update uses.
616         (expr): Rename to ...
617         (cprop_expr): ... this one; update uses.
619 2014-09-22  Jason Merrill  <jason@redhat.com>
621         * Makefile.in (check-parallel-%): Add @.
623 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
625         * config/aarch64/geniterators.sh: New.
626         * config/aarch64/iterators.md (VDQF_DF): New.
627         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
628         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
630 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
632         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
633         -lnosys when -msim absent.
635 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
637         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
639 2014-09-22  Richard Biener  <rguenther@suse.de>
641         * gimplify.c (gimplify_init_constructor): Do not leave
642         non-GIMPLE vector constructors around.
643         * tree-cfg.c (verify_gimple_assign_single): Verify that
644         CONSTRUCTORs have gimple elements.
646 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
648         PR debug/63328
649         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
650         insert a debug source bind stmt setting DEBUG_EXPR_DECL
651         instead of a normal gimple assignment stmt.
653 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
655         * config/bfin/bfin.md: Fix use of constraints in define_split.
657 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
659         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
660         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
662 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
664         * hard-reg-set.h: Include hash-table.h.
665         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
666         field.
667         * target-globals.c (target_globals::~target_globals): Call
668         hard_regs->finalize.
669         * rtl.h (subreg_shape): New structure.
670         (shape_of_subreg): New function.
671         (simplifiable_subregs): Declare.
672         * reginfo.c (simplifiable_subreg): New structure.
673         (simplifiable_subregs_hasher): Likewise.
674         (simplifiable_subregs): New function.
675         (invalid_mode_changes): Delete.
676         (alid_mode_changes, valid_mode_changes_obstack): New variables.
677         (record_subregs_of_mode): Remove subregs_of_mode parameter.
678         Record valid mode changes in valid_mode_changes.
679         (find_subregs_of_mode): Remove subregs_of_mode parameter.
680         Update calls to record_subregs_of_mode.
681         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
682         handling.  Initialize new variables.  Update call to
683         find_subregs_of_mode.
684         (invalid_mode_change_p): Check new variables instead of
685         invalid_mode_changes.
686         (finish_subregs_of_mode): Finalize new variables instead of
687         invalid_mode_changes.
688         (target_hard_regs::finalize): New function.
689         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
690         even when CLASS_CANNOT_CHANGE_MODE is undefined.
692 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
694         * combine.c (subst): Use simplify_subreg_regno rather than
695         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
697 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
699         * rtl.h (subreg_info): Expand commentary
700         * rtlanal.c (subreg_get_info): Likewise.
702 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
704         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
705         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
706         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
708 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
710         * config/arm/arm.c: #include "tm-constrs.h"
711         (thumb1_size_rtx_costs): Adjust rtx costs.
713 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
715         * configure.ac (target_header_dir): Move block defining
716         this to before the block setting inhibit_libc.
717         (inhibit_libc): When considering $with_headers, just
718         check it it's explicitly "no".  If not, also check if
719         $target_header_dir/stdio.h is present.  If not, set
720         inhibit_libc=true.
721         * configure: Regenerate.
723 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
725         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
726         
727 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
729         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
730         insn for divides by integer powers of two.
731         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
732         (mod<mode>3): Fix formatting.
733         (three anonymous define_insn and two define_split): Delete.
735 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
737         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
738         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
739         (floatdisf2_internal2): Ditto.
740         (ashrdi3_no_power): Ditto.  Fix formatting.
742 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
744         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
745         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
746         Tidy.
748 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
750         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
751         constant, use addsi3 directly.
752         (three anonymous define_insn, two define_split): Delete.
753         (sub<mode>3): Move.  Do not allow constant second operand.
754         Generate different insn for constant first operand.
755         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
756         (subf<mode>3_imm): New.
757         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
758         (*plus_ltu<mode>): Only handle registers.
759         (*plus_ltu<mode>_1): New.  Handle integer third operand.
760         (*plus_gtu<mode>): Only handle registers.
761         (*plus_gtu<mode>_1): New.  Handle integer third operand.
763 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
765         * config/rs6000/rs6000.md (iorxor): New code_iterator.
766         (iorxor): New code_attr.
767         (IORXOR): New code_attr.
768         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
769         (ior<mode>3, xor<mode>3): Delete.
770         (<iorxor><mode>3): New.
771         (splitter for "big" integer ior, xor): New.
772         (*bool<mode>3): Move.  Also handle AND.
773         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
774         (splitter for "big" integer ior, xor): Delete.
776 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
778         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
779         (two anonymous define_insn and two define_split): Delete.
780         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
782 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
784         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
785         (two anonymous define_insn and two define_split): Delete.
786         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
788 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
790         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
792 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
794         * config/rs6000/predicates.md (ca_operand): Allow subregs.
795         (input_operand): Do not allow ca_operand.
796         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
797         carry bit, allow SImode and Pmode.
798         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
800 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
802         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
803         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
804         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
805         (*call_rex64_ms_sysv): Remove.
806         (*call_value_rex64_ms_sysv): Ditto.
807         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
809 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
811         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
812         operand 3 to "CnL".
814 2014-09-20  Andreas Schwab  <schwab@suse.de>
816         * config/ia64/ia64.md: Remove constraints from define_split
817         patterns.
819 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
821         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
822         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
823         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
824         (get_dynamic_type): Remove.
825         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
826         (clear_speculation): Bring to ipa-deivrt.h
827         (get_class_context): Rename to ...
828         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
829         (contains_type_p): Update.
830         (get_dynamic_type): Rename to ...
831         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
832         (possible_polymorphic_call_targets): UPdate.
833         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
834         * ipa-prop.c (ipa_analyze_call_uses): Update.
836 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
838         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
839         privatize dynamic TLS variables.
841 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
843         * diagnostic.c (warning_n): New function.
844         * diagnostic-core.h (warning_n): Declare.
845         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
846         output dynamic counts when available.
848 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
850         PR tree-optimization/63255
851         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
852         issue in setting body_removed flag.
854 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
856         PR c++/61825
857         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
858         that visibility change is possible
859         (handle_weakref_attribute): Likewise.
860         * cgraph.h (symtab_node): Add method get_create and
861         field refuse_visibility_changes.
862         (symtab_node::get_create): New method.
863         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
864         * varasm.c (mark_weak): Verify that visibility change is
865         possible.
867 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
869         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
870         for base_reg_operand to be common between LO_SUM and PLUS.
871         (fusion_gpr_mem_combo): New predicate to match a fused address
872         that combines the addis and memory offset address.
874         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
875         calling signature.
876         (emit_fusion_gpr_load): Likewise.
878         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
879         signature to pass each argument separately, rather than
880         using an operands array.  Rewrite the insns found by peephole2 to
881         be a single insn, rather than hoping the insns will still be
882         together when the peephole pass is done.  Drop being called via a
883         normal peephole.
884         (emit_fusion_gpr_load): Change calling signature to be called from
885         the fusion_gpr_load_<mode> insns with a combined memory address
886         instead of the peephole pass passing the addis and offset
887         separately.
889         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
890         fusion.
891         (power8 fusion peephole): Drop support for doing power8 via a
892         normal peephole that was created by the peephole2 pass.
893         (power8 fusion peephole2): Create a new insn with the fused
894         address, so that the fused operation is kept together after
895         register allocation is done.
896         (fusion_gpr_load_<mode>): Likewise.
898 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
900         PR lto/63286
901         * tree.c (need_assembler_name_p): Do not mangle variadic types.
903 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
905         * recog.c (scratch_operand): Do not simply allow all hard registers:
906         only allow those that are allocatable.
908 2014-09-19  Felix Yang  <felix.yang@huawei.com>
910         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
911         comments and fix spacing to conform to coding style.
913 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
915         * genrecog.c (validate_pattern): Allow empty constraints in
916         a match_scratch.
918 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
920         * dwarf2out.c (decl_ultimate_origin): Update comment.
921         * tree.c (block_ultimate_origin): Same.
923 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
925         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
926         Update GCC version name to GCC 5.
927         (rs6000_function_arg_boundary): Likewise.
928         (rs6000_function_arg): Likewise.
930 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
932         * config/sh/sh.md: Fix use of constraints in define_split.
934 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
936         PR ipa/61998
937         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
939 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
941         * doc/md.texi (Modifiers): Consistently use "read/write"
942         nomenclature rather than "input/output".
943         * genrecog.c (constraints_supported_in_insn_p): New.
944         (validate_pattern): If needed, also check constraints on
945         MATCH_SCRATCH operands.
946         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
947         operands with no '=' or '+' modifier.
949 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
951         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
952         scratch register as written.
954 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
956         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
957         assignment.
959 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
961         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
962         expanders.
964 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
966         PR target/62662
967         * config/s390/s390.c (s390_emit_epilogue): When doing the return
968         address load optimization force s390_optimize_prologue to leave it
969         that way.  Only do the optimization if we already decided to push
970         r14 into a stack slot.
972 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
974         * asan.c (build_check_stmt): Alignment arg was added.
975         (asan_expand_check_ifn): Optimization for alignment >= 8.
977 2014-09-19  Olivier Hainque  <hainque@adacore.com>
979         * config/i386/vxworksae.h: Remove obsolete definitions.
980         (STACK_CHECK_PROTECT): Define.
981         * config/i386/vx-common.h: Remove.  Merge contents within
982         config/i386/vxworks.h.
983         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
984         i386/vx-common.h.
986 2014-09-19  Olivier Hainque  <hainque@adacore.com>
988         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
989         * config/rs6000/t-vxworksmils: New file.
990         * config/rs6000/vxworksmils.h: New file.
992 2014-09-19  Olivier Hainque  <hainque@adacore.com>
994         * varasm.c (default_section_type_flags): Flag .persistent.bss
995         sections as SECTION_BSS.
997 2014-09-19  Nick Clifton  <nickc@redhat.com>
999         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
1000         pop'ed registers so that DCE does not eliminate them.
1002 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
1004         PR lto/63298
1005         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
1007 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
1009         * system.h (LIBGCC2_TF_CEXT): Poison.
1010         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
1011         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
1012         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
1013         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
1014         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
1015         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
1016         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
1017         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
1018         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
1020 2014-09-19  Kito Cheng  <kito@0xlab.org>
1022         * except.h: Fix header guard.
1023         * addresses.h: Add missing header guard.
1024         * cfghooks.h: Likewise.
1025         * collect-utils.h: Likewise.
1026         * collect2-aix.h: Likewise.
1027         * conditions.h: Likewise.
1028         * cselib.h: Likewise.
1029         * dwarf2asm.h: Likewise.
1030         * graphds.h: Likewise.
1031         * graphite-scop-detection.h: Likewise.
1032         * gsyms.h: Likewise.
1033         * hw-doloop.h: Likewise.
1034         * incpath.h: Likewise.
1035         * ipa-inline.h: Likewise.
1036         * ipa-ref.h: Likewise.
1037         * ira-int.h: Likewise.
1038         * ira.h: Likewise.
1039         * lra-int.h: Likewise.
1040         * lra.h: Likewise.
1041         * lto-section-names.h: Likewise.
1042         * read-md.h: Likewise.
1043         * reload.h: Likewise.
1044         * rtl-error.h: Likewise.
1045         * sdbout.h: Likewise.
1046         * targhooks.h: Likewise.
1047         * tree-affine.h: Likewise.
1048         * xcoff.h: Likewise.
1049         * xcoffout.h: Likewise.
1051 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
1053         PR debug/63285
1054         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
1055         if advance != 0.
1057 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
1059         PR target/61360
1060         * lra.c (lra): Call recog_init.
1062 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
1064         PR c++/62017
1065         * asan.c (transform_statements): Don't instrument clobber statements.
1067 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1069         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
1070         to neon_load1_1reg<q>.
1072 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
1074         PR debug/63284
1075         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
1076         if there are only debug stmts after the noreturn call, instead
1077         remove the debug stmts.
1079 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
1081         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
1082         (odr_types_equivalent_p): Use pair hash.
1083         (odr_subtypes_equivalent_p): Likewise, do structural compare
1084         on ODR types that may be mismatched.
1085         (warn_odr): Support warning when only one field is given.
1086         (odr_types_equivalent_p): Strenghten comparsions made;
1087         support VOIDtype.
1088         (add_type_duplicate): Update VISITED hash set.
1090 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1092         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
1093         Enable selection of 'posix' or no thread model.
1095 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
1097         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
1098         when architecture is older than ARMv7.
1100 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
1102         PR target/61853
1103         * config/pa/pa.c (pa_function_value): Directly handle aggregates
1104         that fit exactly in a word or double word.
1106 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
1108         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
1109         zmm/k regs support.
1111 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1112             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1113             Anna Tikhonova  <anna.tikhonova@intel.com>
1114             Ilya Tocar  <ilya.tocar@intel.com>
1115             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1116             Ilya Verbin  <ilya.verbin@intel.com>
1117             Kirill Yukhin  <kirill.yukhin@intel.com>
1118             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1120         * config/i386/i386.c
1121         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
1122         * config/i386/sse.md
1123         (define_mode_iterator VI48F_256): New.
1124         (define_mode_attr extract_type): Ditto.
1125         (define_mode_attr extract_suf): Ditto.
1126         (define_mode_iterator AVX512_VEC): Ditto.
1127         (define_expand
1128         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
1129         AVX512_VEC.
1130         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
1131         (define_insn
1132         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
1133         Ditto.
1134         (define_mode_attr extract_type_2): Ditto.
1135         (define_mode_attr extract_suf_2): Ditto.
1136         (define_mode_iterator AVX512_VEC_2): Ditto.
1137         (define_expand
1138         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
1139         AVX512_VEC_2 mode iterator.
1140         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1141         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
1142         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1143         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1144         (define_split for V16FI mode): Ditto.
1145         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1146         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1147         (define_split for VI8F_256 mode): Ditto.
1148         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1149         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
1150         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
1151         (define_split for VI4F_256 mode): Ditto.
1152         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
1153         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
1154         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
1155         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
1156         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
1157         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
1158         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
1159         Update `type' attribute, remove explicit `memory' attribute calculation.
1161 2014-09-16  Kito Cheng  <kito@0xlab.org>
1163         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
1164         ira_spilled_reg_stack_slots_num if using lra.
1165         (do_reload): Remove release ira_spilled_reg_stack_slots part.
1166         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
1167         make sure not using lra.
1168         (ira_reuse_stack_slot): Likewise.
1169         (ira_mark_new_stack_slot): Likewise.
1171 2014-09-15  Andi Kleen  <ak@linux.intel.com>
1173         * function.c (allocate_struct_function): Force
1174         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
1175         profiling is disabled.
1177 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
1178     
1179         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
1180         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
1181         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
1182         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
1183         macro with statically checked member functions.
1184         * rtl.h (rtx_insn::deleted): New method.
1185         (rtx_insn::set_deleted): Likewise.
1186         (rtx_insn::set_undeleted): Likewise.
1187         (INSN_DELETED_P): Remove.
1189 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
1191         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
1192         result of emit_jump_insn_before to a new variable.
1193         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
1194         (mark_jump_label_1): Likewise.
1195         (mark_jump_label_asm): Likewise.
1196         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
1197         * rtl.h (mark_jump_label): Adjust.
1199 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
1201         * Makefile.in (dg_target_exps): Remove.
1202         (check_gcc_parallelize): Change to just an upper bound number.
1203         (check-%-subtargets): Always print the non-parallelized goals.
1204         (check_p_vars, check_p_comma, check_p_subwork): Remove.
1205         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
1206         check_p_numbers3, check_p_numbers4, check_p_numbers5,
1207         check_p_numbers6): New variables.
1208         (check_p_numbers): Set to sequence from 1 to 9999.
1209         (check_p_subdirs): Set to sequence from 1 to minimum of
1210         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
1211         or 128.
1212         (check-%, check-parallel-%): Rewritten so that for parallelized
1213         testing each job runs all the *.exp files, with
1214         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
1216 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1218         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
1219         rtx to rtx_insn *.
1220         (arc_sets_cc_p): Likewise.
1221         * config/arc/arc.c (arc_print_operand): Use methods of
1222         "final_sequence" for clarity, and to enable strengthening of
1223         locals "jump" and "delay" from rtx to rtx_insn *.
1224         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
1225         rtx_insn *; use method of rtx_sequence for typesafety.
1226         (arc_get_insn_variants): Use insn method of rtx_sequence for
1227         typesafety.
1228         (arc_pad_return): Likewise.
1229         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
1230         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
1231         dyn_cast to rtx_sequence *, using insn method for typesafety.
1232         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
1233         rtx_sequence * and use insn method when invoking get_attr_length.
1234         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
1235         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
1236         rtx_sequence *, introducing a local "seq", using its insn method
1237         from typesafety and clarity.
1238         (add_sched_insns_for_speculation): Strengthen local "next" from
1239         rtx to rtx_insn *.
1240         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
1241         (predicate_insn): Likewise.
1242         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
1243         second param.
1244         * config/cris/cris.c (cris_notice_update_cc): Likewise.
1245         * config/epiphany/epiphany-protos.h
1246         (extern void epiphany_insert_mode_switch_use): Likewise for param
1247         "insn".
1248         (get_attr_sched_use_fpu): Likewise for param.
1249         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
1250         Likewise for param "insn".
1251         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
1252         param "insn" of "target_insert_mode_switch_use" callback.
1253         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
1254         (frv_issues_to_branch_unit_p): Likewise.
1255         (frv_pack_insn_p): Likewise.
1256         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
1257         const rtx * (i.e. mutable rtx_def * const *) to
1258         rtx_insn * const *.
1259         * config/i386/i386-protos.h (standard_sse_constant_opcode):
1260         Strengthen first param from rtx to rtx_insn *.
1261         (output_fix_trunc): Likewise.
1262         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
1263         (output_fix_trunc): Likewise.
1264         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
1265         local "insn".
1266         (min_insn_size): Likewise for param "insn".
1267         (get_mem_group): Likewise.
1268         (is_cmp): Likewise.
1269         (get_insn_path): Likewise.
1270         (get_insn_group): Likewise.
1271         (count_num_restricted): Likewise.
1272         (fits_dispatch_window): Likewise.
1273         (add_insn_window): Likewise.
1274         (add_to_dispatch_window): Likewise.
1275         (debug_insn_dispatch_info_file): Likewise.
1276         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
1277         first param.
1278         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
1279         "cmp" and local "prev".
1280         (m32c_output_compare): Likewise for param "insn".
1281         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
1282         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
1283         (define_predicate "large_insn_p"): Likewise.
1284         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
1285         param from rtx to rtx_insn *.
1286         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
1287         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
1288         (m68k_sched_attr_size): Likewise.
1289         (sched_get_opxy_mem_type): Likewise for param "insn".
1290         (m68k_sched_attr_op_mem): Likewise.
1291         (sched_mem_operand_p): Likewise.
1292         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
1293         * config/mep/mep.c (mep_multi_slot): Likewise.
1294         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
1295         first param.
1296         (mips_sync_loop_insns): Likewise.
1297         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
1298         method of "final_sequence" for typesafety.
1299         (mips_process_sync_loop): Strengthen param "insn" from rtx to
1300         rtx_insn *.
1301         (mips_output_sync_loop): Likewise.
1302         (mips_sync_loop_insns): Likewise.
1303         (mips_74k_agen_init): Likewise.
1304         (mips_sched_init): Use NULL rather than NULL_RTX when working with
1305         insns.
1306         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
1307         Strengthen param "insn" from rtx to rtx_insn *.
1308         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
1309         local "insn".
1310         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
1311         param.
1312         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
1313         "insn".  Use method of rtx_sequence for typesafety.
1314         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
1315         rtx_insn *.
1316         (branch_needs_nop_p): Likewise.
1317         (use_skip_p): Likewise.
1318         (pa_insn_refs_are_delayed): Likewise.
1319         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
1320         for locals "insn", "ninsn".
1321         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
1322         "insn".
1323         (is_cracked_insn): Likewise.
1324         (is_branch_slot_insn): Likewise.
1325         (is_nonpipeline_insn): Likewise.
1326         (insn_terminates_group_p): Likewise.
1327         (insn_must_be_first_in_group): Likewise.
1328         (insn_must_be_last_in_group): Likewise.
1329         (force_new_group): Likewise for param "next_insn".
1330         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
1331         "insn".
1332         (s390_sched_score): Likewise.
1333         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
1334         (rtx sfunc_uses_reg): Likewise for sole param.
1335         * config/sh/sh.c (sh_print_operand): Use insn method of
1336         final_sequence for typesafety.
1337         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
1338         Use insn method of final_sequence for typesafety.
1339         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
1340         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
1341         for param.
1342         (eligible_for_return_delay): Likewise.
1343         (eligible_for_sibcall_delay): Likewise.
1344         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
1345         (eligible_for_return_delay): Likewise.
1346         (eligible_for_sibcall_delay): Likewise.
1347         * config/stormy16/stormy16-protos.h
1348         (xstormy16_output_cbranch_hi): Likewise for final param.
1349         (xstormy16_output_cbranch_si): Likewise.
1350         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
1351         (xstormy16_output_cbranch_si): Likewise.
1352         * config/v850/v850-protos.h (notice_update_cc): Likewise.
1353         * config/v850/v850.c (notice_update_cc): Likewise.
1355         * final.c (get_attr_length_1): Strengthen param "insn" and param
1356         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
1357         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
1358         (get_attr_min_length): Likewise.
1359         (shorten_branches): Likewise for signature of locals "length_fun"
1360         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
1361         from a checked cast and use its methods for clarity and to enable
1362         strengthening local "inner_insn" from rtx to rtx_insn *.
1363         * genattr.c (gen_attr): When writing out the prototypes of the
1364         various generated "get_attr_" functions, strengthen the params of
1365         the non-const functions from rtx to rtx_insn *.
1366         Similarly, strengthen the params of insn_default_length,
1367         insn_min_length, insn_variable_length_p, insn_current_length.
1368         (main): Similarly, strengthen the param of num_delay_slots,
1369         internal_dfa_insn_code, insn_default_latency, bypass_p,
1370         insn_latency, min_issue_delay, print_reservation,
1371         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
1372         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
1373         to hook_int_rtx_insn_unreachable.
1374         * genattrtab.c (write_attr_get): When writing out the generated
1375         "get_attr_" functions, strengthen the param "insn" from rtx to
1376         rtx_insn *, eliminating a checked cast.
1377         (make_automaton_attrs): When writing out prototypes of
1378         "internal_dfa_insn_code_", "insn_default_latency_" functions
1379         and the "internal_dfa_insn_code" and "insn_default_latency"
1380         callbacks, strengthen their params from rtx to rtx_insn *
1381         * genautomata.c (output_internal_insn_code_evaluation): When
1382         writing out code, add a checked cast from rtx to rtx_insn * when
1383         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
1384         (output_dfa_insn_code_func): Strengthen param of generated
1385         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
1386         (output_trans_func): Likewise for generated function
1387         "state_transition".
1388         (output_internal_insn_latency_func): When writing out generated
1389         function "internal_insn_latency", rename params from "insn" and
1390         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
1391         locals "insn" and "insn2" as rtx_insn * with checked casts once
1392         we've proven that we're not dealing with const0_rtx.
1393         (output_insn_latency_func):  Strengthen param of generated
1394         function "insn_latency" from rtx to rtx_insn *.
1395         (output_print_reservation_func): Likewise for generated function
1396         "print_reservation".
1397         (output_insn_has_dfa_reservation_p): Likewise for generated
1398         function "insn_has_dfa_reservation_p".
1399         * hooks.c (hook_int_rtx_unreachable): Rename to...
1400         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
1401         from rtx to rtx_insn *.
1402         * hooks.h (hook_int_rtx_unreachable): Likewise.
1403         (extern int hook_int_rtx_insn_unreachable): Likewise.
1404         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
1405         (get_attr_min_length): Likewise.
1406         * recog.c (get_enabled_alternatives): Likewise.
1407         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
1408         * reorg.c (find_end_label): Introduce local rtx "pat" and
1409         strengthen local "insn" from rtx to rtx_insn *.
1410         (redundant_insn): Use insn method of "seq" rather than element for
1411         typesafety; strengthen local "control" from rtx to rtx_insn *.
1412         * resource.c (mark_referenced_resources): Add checked cast to
1413         rtx_insn * within INSN/JUMP_INSN case.
1414         (mark_set_resources): Likewise.
1415         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
1416         rtx to rtx_insn *.
1418 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1420         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
1421         param "label" from rtx to rtx_insn *.
1422         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
1423         and local "op".
1424         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
1425         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
1426         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
1427         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
1428         * final.c (default_label_align_after_barrier_max_skip): Strengthen
1429         param from rtx to rtx_insn *.
1430         (default_loop_align_max_skip): Likewise.
1431         (default_label_align_max_skip): Likewise.
1432         (default_jump_align_max_skip): Likewise.
1433         * target.def (label_align_after_barrier_max_skip): Likewise.
1434         (loop_align_max_skip): Likewise.
1435         (label_align_max_skip): Likewise.
1436         (jump_align_max_skip): Likewise.
1437         * targhooks.h (default_label_align_after_barrier_max_skip):
1438         Likewise.
1439         (default_loop_align_max_skip): Likewise.
1440         (default_label_align_max_skip): Likewise.
1441         (default_jump_align_max_skip): Likewise.
1443 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1445         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
1446         from const_rtx to const rtx_insn *.  Update union members from rtx
1447         to rtx_insn *.
1448         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
1449         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
1450         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
1451         strengthen both params from const_rtx to const rtx_insn *.
1452         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
1453         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
1454         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
1455         rtx_insn *.
1456         * target.def (can_follow_jump): Strengthen both params from
1457         const_rtx to const rtx_insn *, and update default implementation
1458         from hook_bool_const_rtx_const_rtx_true to
1459         hook_bool_const_rtx_insn_const_rtx_insn_true.
1461 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
1463         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
1464         "insn" from rtx to rtx_insn *.
1465         * sched-int.h (deps_start_bb): Likewise for 2nd param.
1467 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1468             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1469             Anna Tikhonova  <anna.tikhonova@intel.com>
1470             Ilya Tocar  <ilya.tocar@intel.com>
1471             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1472             Ilya Verbin  <ilya.verbin@intel.com>
1473             Kirill Yukhin  <kirill.yukhin@intel.com>
1474             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1476         * config/i386/sse.md
1477         (define_insn "vcvtph2ps<mask_name>"): Add masking.
1478         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
1479         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
1480         (define_expand "vcvtps2ph_mask"): New.
1481         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
1482         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
1483         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
1485 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1486             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1487             Anna Tikhonova  <anna.tikhonova@intel.com>
1488             Ilya Tocar  <ilya.tocar@intel.com>
1489             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1490             Ilya Verbin  <ilya.verbin@intel.com>
1491             Kirill Yukhin  <kirill.yukhin@intel.com>
1492             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1494         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
1495         New.
1496         (define_mode_iterator VI24_AVX512BW_1): Ditto.
1497         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
1498         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
1499         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
1500         also for TARGET_AVX512VL.
1501         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
1503 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
1505         * doc/install.texi (Options specification): add 
1506         --disable-libsanitizer item.
1508 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
1509             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1511         PR target/61407
1512         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
1513         and above.
1514         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
1515         kernel version check to avoid incrementing it after every major OS X
1516         release.
1517         (darwin_default_min_version): Avoid static memory buffer.
1519 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
1521         * tree.c (need_assembler_name_p): Store C++ type mangling only
1522         for aggregates.
1524 2014-09-13  Marek Polacek  <polacek@redhat.com>
1526         * tree.c (protected_set_expr_location): Don't check whether T is
1527         non-null here.
1529 2014-09-12  DJ Delorie  <dj@redhat.com>
1531         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
1532         (extend_and_shift1_hipsi2): Likewise.
1533         (extend_and_shift2_hipsi2): Likewise.
1535 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
1537         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
1538         with NULL when dealing with an insn.
1539         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
1540         from rtx to rtx_insn *.
1541         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
1542         const_rtx to const rtx_insn *.
1543         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
1545 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
1547         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
1548         assert.
1550 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
1552         * target.def (libgcc_floating_mode_supported_p): New hook.
1553         * targhooks.c (default_libgcc_floating_mode_supported_p): New
1554         function.
1555         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
1556         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
1557         (LIBGCC2_HAS_TF_MODE): Remove.
1558         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
1559         * doc/tm.texi: Regenerate.
1560         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
1561         machine mode.
1562         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
1563         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
1564         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
1565         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
1566         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1567         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
1568         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
1569         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
1570         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
1571         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
1572         function.
1573         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
1574         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1575         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1576         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1577         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1578         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1579         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1580         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
1581         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
1582         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
1583         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
1584         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
1585         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
1586         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
1587         Remove.
1588         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
1589         New macro.
1590         (ia64_libgcc_floating_mode_supported_p): New function.
1591         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
1592         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1593         (IA64_NO_LIBGCC_TFMODE): Define.
1594         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
1595         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
1596         macro.
1597         (pdp11_scalar_mode_supported_p): New function.
1598         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
1599         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
1601 2014-09-12  Richard Biener  <rguenther@suse.de>
1603         PR middle-end/63237
1604         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
1606 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
1608         * tree.c (integer_each_onep): New function.
1609         * tree.h (integer_each_onep): Declare it.
1610         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
1611         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
1612         (X & 1) == 0 for vector and complex.
1614 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
1616         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
1617         for A57.
1618         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
1619         cost to spilling from integer to FP registers.
1621 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
1623         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
1624         move handling.
1625         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
1626         are now handled correctly.
1628 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
1630         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
1631         handling of CALLER_SAVE_REGS and POINTER_REGS.
1633 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
1635         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
1636         the number of hard registers.
1638 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1639             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1640             Anna Tikhonova  <anna.tikhonova@intel.com>
1641             Ilya Tocar  <ilya.tocar@intel.com>
1642             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1643             Ilya Verbin  <ilya.verbin@intel.com>
1644             Kirill Yukhin  <kirill.yukhin@intel.com>
1645             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1647         * config/i386/sse.md
1648         (define_mode_iterator VI48_AVX512VL): New.
1649         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
1650         "avx512f_vternlog<mode>_maskz" and update mode iterator.
1651         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
1652         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
1653         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
1654         "avx512f_vternlog<mode>_mask" and update mode iterator.
1655         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
1656         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
1657         iterator.
1658         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
1659         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
1660         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
1661         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
1662         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
1663         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
1665 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1666             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1667             Anna Tikhonova  <anna.tikhonova@intel.com>
1668             Ilya Tocar  <ilya.tocar@intel.com>
1669             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1670             Ilya Verbin  <ilya.verbin@intel.com>
1671             Kirill Yukhin  <kirill.yukhin@intel.com>
1672             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1674         * config/i386/sse.md (VI128_256): Delete.
1675         (define_mode_iterator VI124_256): New.
1676         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
1677         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
1678         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
1679         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
1680         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
1681         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
1682         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1683         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
1684         iterator.
1685         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
1686         in presence of AVX-512.
1688 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1689             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1690             Anna Tikhonova  <anna.tikhonova@intel.com>
1691             Ilya Tocar  <ilya.tocar@intel.com>
1692             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1693             Ilya Verbin  <ilya.verbin@intel.com>
1694             Kirill Yukhin  <kirill.yukhin@intel.com>
1695             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1697         * config/i386/sse.md
1698         (define_expand "<avx512>_gathersi<mode>"): Rename from
1699         "avx512f_gathersi<mode>".
1700         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
1701         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
1702         (define_expand "<avx512>_gatherdi<mode>"): Rename from
1703         "avx512f_gatherdi<mode>".
1704         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
1705         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
1706         wide versions.
1707         (define_expand "<avx512>_scattersi<mode>"): Rename from
1708         "avx512f_scattersi<mode>".
1709         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
1710         (define_expand "<avx512>_scatterdi<mode>"): Rename from
1711         "avx512f_scatterdi<mode>".
1712         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
1714 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
1716         * ira.h (ira_finish_once): Delete.
1717         * ira-int.h (target_ira_int::~target_ira_int): Declare.
1718         (target_ira_int::free_ira_costs): Likewise.
1719         (target_ira_int::free_register_move_costs): Likewise.
1720         (ira_finish_costs_once): Delete.
1721         * ira.c (free_register_move_costs): Replace with...
1722         (target_ira_int::free_register_move_costs): ...this new function.
1723         (target_ira_int::~target_ira_int): Define.
1724         (ira_init): Call free_register_move_costs as a member function rather
1725         than a global function.
1726         (ira_finish_once): Delete.
1727         * ira-costs.c (free_ira_costs): Replace with...
1728         (target_ira_int::free_ira_costs): ...this new function.
1729         (ira_init_costs): Call free_ira_costs as a member function rather
1730         than a global function.
1731         (ira_finish_costs_once): Delete.
1732         * target-globals.c (target_globals::~target_globals): Call the
1733         target_ira_int destructor.
1734         * toplev.c: Include lra.h.
1735         (finalize): Call lra_finish_once rather than ira_finish_once.
1737 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
1739         * common.opt (flto-odr-type-merging): New flag.
1740         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
1741         (types_same_for_odr): Likewise.
1742         (odr_subtypes_equivalent_p): Likewise.
1743         (add_type_duplicate): Do not walk type variants.
1744         (register_odr_type): New function.
1745         * ipa-utils.h (register_odr_type): Declare.
1746         (odr_type_p): New function.
1747         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
1748         TYPE_DECLs
1749         * doc/invoke.texi (-flto-odr-type-merging): Document.
1750         * tree.c (need_assembler_name_p): Compute ODR names when asked
1751         for it.
1752         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
1754 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1756         PR target/63228
1757         * config/i386/i386.c (ix86_option_override_internal): Also turn
1758         off OPTION_MASK_ABI_X32 for -m16.
1760 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
1762         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
1763         GPR instead of P.
1765 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
1767         PR target/58757
1768         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
1769         Directly forward to __*_DENORM_MIN__.
1771 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
1773         * rtl.h (LABEL_REF_LABEL): New macro.
1775         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
1776         of XEXP (, 0), where we know that we have a LABEL_REF.
1777         * cfgbuild.c (make_edges): Likewise.
1778         (purge_dead_tablejump_edges): Likewise.
1779         * cfgexpand.c (convert_debug_memory_address): Likewise.
1780         * cfgrtl.c (patch_jump_insn): Likewise.
1781         * combine.c (distribute_notes): Likewise.
1782         * cse.c (hash_rtx_cb): Likewise.
1783         (exp_equiv_p): Likewise.
1784         (fold_rtx): Likewise.
1785         (check_for_label_ref): Likewise.
1786         * cselib.c (rtx_equal_for_cselib_1): Likewise.
1787         (cselib_hash_rtx): Likewise.
1788         * emit-rtl.c (mark_label_nuses): Likewise.
1789         * explow.c (convert_memory_address_addr_space): Likewise.
1790         * final.c (output_asm_label): Likewise.
1791         (output_addr_const): Likewise.
1792         * gcse.c (add_label_notes): Likewise.
1793         * genconfig.c (walk_insn_part): Likewise.
1794         * genrecog.c (validate_pattern): Likewise.
1795         * ifcvt.c (cond_exec_get_condition): Likewise.
1796         (noce_emit_store_flag): Likewise.
1797         (noce_get_alt_condition): Likewise.
1798         (noce_get_condition): Likewise.
1799         * jump.c (maybe_propagate_label_ref): Likewise.
1800         (mark_jump_label_1): Likewise.
1801         (redirect_exp_1): Likewise.
1802         (rtx_renumbered_equal_p): Likewise.
1803         * lra-constraints.c (operands_match_p): Likewise.
1804         * reload.c (operands_match_p): Likewise.
1805         (find_reloads): Likewise.
1806         * reload1.c (set_label_offsets): Likewise.
1807         * reorg.c (get_branch_condition): Likewise.
1808         * rtl.c (rtx_equal_p_cb): Likewise.
1809         (rtx_equal_p): Likewise.
1810         * rtlanal.c (reg_mentioned_p): Likewise.
1811         (rtx_referenced_p): Likewise.
1812         (get_condition): Likewise.
1813         * sched-vis.c (print_value): Likewise.
1814         * varasm.c (const_hash_1): Likewise.
1815         (compare_constant): Likewise.
1816         (const_rtx_hash_1): Likewise.
1817         (output_constant_pool_1): Likewise.
1819 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
1821         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
1822         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
1823         instead of minus.
1824         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
1825         cr6_test_for_lt_reverse): Ditto.
1827 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
1829         PR c++/61489
1830         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
1832 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
1834         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
1835         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
1836         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
1837         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
1838         Delete.
1840         (aarch64_fold_builtin): Remove all reinterpret cases.
1842         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
1844         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
1846         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
1847         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
1848         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
1849         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
1850         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
1851         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
1852         aarch64_reinterpretv2df<mode>): Delete.
1854         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
1856         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
1857         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
1858         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
1859         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
1860         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
1861         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
1862         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
1863         vreinterpret_u32_f64): Use cast.
1865         * config/aarch64/iterators.md (VD_RE): Delete.
1867 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
1869         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
1870         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
1871         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
1872         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
1873         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
1874         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
1875         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
1876         Replace inline assembler with __aarch64_vset_lane_any.
1878 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
1880         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
1881         types.
1882         (vmull_high_lane_s32): Likewise.
1883         (vmull_high_lane_u16): Likewise.
1884         (vmull_high_lane_u32): Likewise.
1886 2014-09-11  Jason Merrill  <jason@redhat.com>
1888         PR c++/58678
1889         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
1891 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
1893         PR target/63223
1894         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
1895         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
1896         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
1898 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1899             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1900             Anna Tikhonova  <anna.tikhonova@intel.com>
1901             Ilya Tocar  <ilya.tocar@intel.com>
1902             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1903             Ilya Verbin  <ilya.verbin@intel.com>
1904             Kirill Yukhin  <kirill.yukhin@intel.com>
1905             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1907         * config/i386/sse.md
1908         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
1909         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
1910         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
1911         New.
1912         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
1913         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
1914         iterator.
1915         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
1916         New.
1917         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
1918         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
1919         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
1920         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
1921         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
1922         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
1923         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
1924         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
1925         iterator.
1926         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
1927         New.
1928         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
1929         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
1930         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
1932 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
1934         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
1935         to access removed nodes.
1937 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
1939         PR tree-optimization/63186
1940         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
1941         (mark_nonssa_use): Likewise.
1942         (verify_non_ssa_vars): Verify all header blocks for label
1943         definitions.
1945 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1946             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1947             Anna Tikhonova  <anna.tikhonova@intel.com>
1948             Ilya Tocar  <ilya.tocar@intel.com>
1949             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1950             Ilya Verbin  <ilya.verbin@intel.com>
1951             Kirill Yukhin  <kirill.yukhin@intel.com>
1952             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1954         * config/i386/sse.md
1955         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
1956         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
1957         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
1958         "<avx2_avx512f>_permvar<mode><mask_name>".
1959         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
1960         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
1961         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
1962         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
1963         Ditto.
1964         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
1965         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
1966         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
1967         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
1969 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1971         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
1972         V2DF, V4SF, DF, and DI modes.
1973         (vsx_fmav2df2): Likewise.
1974         (vsx_float_fix_<mode>2): Likewise.
1975         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
1977 2014-09-10  Xinliang David Li  <davidxl@google.com>
1979         PR target/63209
1980         * config/arm/arm.md (movcond_addsi): Handle case where source
1981         and target operands are the same.
1983 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
1985         * final.c (this_is_asm_operands): Strengthen this variable from
1986         rtx to const rtx_insn *.
1987         * output.h (this_is_asm_operands): Likewise.
1988         * rtl-error.c (location_for_asm): Strengthen param "insn" from
1989         const_rtx to const rtx_insn *.
1990         (diagnostic_for_asm): Likewise.
1991         * rtl-error.h (error_for_asm): Likewise.
1992         (warning_for_asm): Likewise.
1994 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
1996         * genextract.c (print_header): When writing out insn_extract to
1997         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
1998         * recog.h (insn_extract): Strengthen the param from rtx to
1999         rtx_insn *.
2001 2014-09-10  Mike Stump  <mikestump@comcast.net>
2003         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
2004         8.6.1.
2006 2014-09-10  Martin Jambor  <mjambor@suse.cz>
2008         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
2009         (analyze): Do not set analyze flag if expand_thunk returns false;.
2010         (create_wrapper): Likewise.
2011         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
2013 2014-09-10  Martin Jambor  <mjambor@suse.cz>
2015         PR ipa/61654
2016         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
2017         new decl properly.  Analyze the new thunk if it is expanded.
2019 2014-09-10  Andreas Schwab  <schwab@suse.de>
2021         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
2022         [USED_FOR_TARGET]: Define.
2024 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
2026         * config/mips/mips.c (mips_secondary_reload_class): Handle
2027         regno < 0 case.
2029 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
2031         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
2032         assignment.
2034 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
2036         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
2037         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
2038         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
2039         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
2040         flag_delete_null_pointer_checks for them.
2041         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2042         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
2043         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
2044         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
2045         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
2046         stmt's iterator.
2047         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
2048         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
2049         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
2050         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
2051         * doc/invoke.texi (-fsanitize=nonnull-attribute,
2052         -fsanitize=returns-nonnull-attribute): Document.
2054         * ubsan.h (struct ubsan_mismatch_data): Removed.
2055         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2056         * ubsan.c (ubsan_source_location): For unknown locations,
2057         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
2058         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
2059         Allow more than one location and arbitrary extra arguments passed
2060         in ... instead of through MISMATCH pointer.
2061         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
2062         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
2063         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
2064         callers.
2066 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2067             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2068             Anna Tikhonova  <anna.tikhonova@intel.com>
2069             Ilya Tocar  <ilya.tocar@intel.com>
2070             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2071             Ilya Verbin  <ilya.verbin@intel.com>
2072             Kirill Yukhin  <kirill.yukhin@intel.com>
2073             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2075         * config/i386/sse.md
2076         (define_mode_iterator VI48F): New.
2077         (define_insn "<avx512>_compress<mode>_mask"): Rename from
2078         "avx512f_compress<mode>_mask" and update mode iterator.
2079         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
2080         "avx512f_compressstore<mode>_mask" and update mode iterator.
2081         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
2082         "avx512f_expand<mode>_maskz" and update mode iterator.
2083         (define_insn "<avx512>_expand<mode>_mask"): Rename from
2084         "avx512f_expand<mode>_mask" and update mode iterator.
2086 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2087             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2088             Anna Tikhonova  <anna.tikhonova@intel.com>
2089             Ilya Tocar  <ilya.tocar@intel.com>
2090             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2091             Ilya Verbin  <ilya.verbin@intel.com>
2092             Kirill Yukhin  <kirill.yukhin@intel.com>
2093             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2095         * config/i386/i386.c
2096         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
2097         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
2098         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
2099         avx512dq_rangepv4sf_mask.
2100         * config/i386/sse.md
2101         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
2102         UNSPEC_RANGE.
2103         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
2104         (define_insn "reduces<mode>"): Ditto.
2105         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2106         Ditto.
2107         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
2108         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
2109         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
2111 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2112             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2113             Anna Tikhonova  <anna.tikhonova@intel.com>
2114             Ilya Tocar  <ilya.tocar@intel.com>
2115             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2116             Ilya Verbin  <ilya.verbin@intel.com>
2117             Kirill Yukhin  <kirill.yukhin@intel.com>
2118             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2120         * config/i386/i386.c
2121         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
2122         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
2123         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
2124         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
2125         avx512vl_getmantv2df_mask.
2126         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
2127         avx512f_vgetmantv4sf_round.
2128         * config/i386/sse.md
2129         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
2130         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
2131         mode iterator.
2132         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
2133         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
2134         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
2135         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
2136         iterator..
2137         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
2138         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
2139         update mode iterator.
2140         (define_expand
2141         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
2142         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
2143         mode iterator.
2144         (define_insn
2145         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
2146         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
2147         update mode iterator.
2148         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
2149         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
2150         iterator..
2151         (define_insn
2152         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
2153         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
2154         mode iterator..
2155         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
2156         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
2157         update mode iterator.
2158         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
2159         "avx512f_getmant<mode><round_saeonly_name>".
2161 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
2163         PR ipa/63166
2164         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
2166 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2167             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2168             Anna Tikhonova  <anna.tikhonova@intel.com>
2169             Ilya Tocar  <ilya.tocar@intel.com>
2170             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2171             Ilya Verbin  <ilya.verbin@intel.com>
2172             Kirill Yukhin  <kirill.yukhin@intel.com>
2173             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2175         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
2176         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
2177         (define_mode_iterator FMAMODE_AVX512): New.
2178         (define_mode_iterator FMAMODE): Remove conditions.
2179         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
2180         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
2181         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
2182         mode iterator.
2183         (define_mode_iterator FMAMODE_NOVF512): Remove.
2184         (define_insn "*fma_fmadd_<mode>"): Rename from
2185         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
2186         FMAMODE mode iterator.
2187         (define_mode_iterator VF_SF_AVX512VL): New.
2188         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
2189         Use VF_SF_AVX512VL mode iterator.
2190         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
2191         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2192         iterator.
2193         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
2194         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2195         iterator.
2196         (define_insn "*fma_fmsub_<mode>"): Rename from
2197         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
2198         FMAMODE mode iterator.
2199         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
2200         Use VF_SF_AVX512VL mode iterator.
2201         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
2202         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2203         iterator.
2204         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
2205         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2206         iterator.
2207         (define_insn "*fma_fnmadd_<mode>"): Rename from
2208         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
2209         use FMAMODE mode iterator.
2210         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
2211         Use VF_SF_AVX512VL mode iterator.
2212         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
2213         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2214         iterator.
2215         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
2216         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2217         iterator.
2218         (define_insn "*fma_fnmsub_<mode>"): Rename from
2219         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
2220         FMAMODE mode iterator.
2221         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
2222         Use VF_SF_AVX512VL mode iterator.
2223         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
2224         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2225         iterator.
2226         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
2227         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2228         iterator.
2229         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
2230         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
2231         use VF_AVX512VL mode iterator.
2232         (define_insn "*fma_fmaddsub_<mode>"): Rename from
2233         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
2234         remove subst usage.
2235         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
2236         Use VF_SF_AVX512VL mode iterator.
2237         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
2238         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
2239         iterator.
2240         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
2241         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2242         iterator.
2243         (define_insn "*fma_fmsubadd_<mode>"): Rename from
2244         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
2245         remove usage of subst.
2246         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
2247         Use VF_SF_AVX512VL mode iterator.
2248         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
2249         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
2250         iterator.
2251         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
2252         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
2253         iterator.
2255 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
2257         Revert r213751:
2258         * calls.c (precompute_arguments): Check
2259          promoted_for_signed_and_unsigned_p and set the promoted mode.
2260         (promoted_for_signed_and_unsigned_p): New function.
2261         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2262         and set the promoted mode.
2263         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2264         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2265         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2267 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2269         * opth-gen.awk: Generate mapping from cpp message reasons to the
2270         options that enable them.
2271         * doc/options.texi (CppReason): Document.
2273 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2275         * doc/invoke.texi (Wnormalized=): Update.
2277 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
2279         PR target/63195
2280         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
2281         operands.  Split off the constant operand alternative to ...
2282         (*bool<mode>3_imm): New.
2284 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
2286         * rtl.h (single_set_2): Strengthen first param from const_rtx to
2287         const rtx_insn *, and move prototype to above...
2288         (single_set): ...this.  Convert this from a macro to an inline
2289         function, enforcing the requirement that the param is a const
2290         rtx_insn *.
2291         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
2293         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
2294         Strengthen both params from rtx to rtx_insn *.
2295         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2296         Likewise; introduce locals "producer_set", "consumer_set", using
2297         them in place of "producer" and "consumer" when dealing with SET
2298         rather than insn.
2299         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
2300         when invoking single_set in region guarded by INSN_P.
2301         (avr_out_bitop): Likewise.
2302         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
2303         region guarded by GET_CODE check, using methods to strengthen
2304         local "this_insn" from rtx to rtx_insn *, and for clarity.
2305         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
2306         Strengthen local "insn" from rtx to rtx_insn *.
2307         (define_insn_and_split "xload<mode>_A"): Likewise.
2308         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
2309         "insn".
2310         (find_load): Likewise for return type.
2311         (workaround_speculation): Likewise for both locals named
2312         "load_insn".
2313         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
2314         local "cc0_user".
2315         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
2316         for local "prev".
2317         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
2318         param 2.
2319         * config/h8300/h8300.c (notice_update_cc): Likewise.
2320         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
2321         "insn" and "dep_insn".
2322         (exact_store_load_dependency): Likewise for both params.
2323         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
2324         since this now clashes with inline function.  Instead, delay
2325         calling single_set until the point where its needed, and then
2326         assign the result to "compare_set" and rework the conditional that
2327         follows.
2328         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
2329         local "last" from rtx to rtx_insn *.
2330         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
2331         second param.
2332         (mips_store_data_bypass_p): Likewise for both params.
2333         * config/mips/mips.c (mips_load_store_insns): Likewise for second
2334         param.
2335         (mips_store_data_bypass_p): Likewise for both params.
2336         (mips_orphaned_high_part_p): Likewise for param "insn".
2337         * config/mn10300/mn10300.c (extract_bundle): Likewise.
2338         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
2339         Introduce local rtx "insn2_pat".
2340         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
2341         "ninsn".
2342         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
2343         Introduce local rtx "set", using it in place of "insn" for the
2344         result of single_set.  This appears to fix a bug, since the call
2345         to find_regno_note on a SET does nothing.
2346         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
2347         params from rtx to rtx_insn *.
2348         (set_to_load_agen): Likewise.
2349         * config/s390/s390.c (s390_label_align): Likewise for local
2350         "prev_insn".  Introduce new rtx locals "set" and "src", using
2351         them in place of "prev_insn" for the results of single_set
2352         and SET_SRC respectively.
2353         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
2354         Introduce new rtx local "set" using in place of "jump" for the
2355         result of single_set.  Use SET_SRC (set) rather than plain
2356         XEXP (set, 1).
2357         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
2358         rtx to rtx_insn *.
2359         (noncall_uses_reg): Likewise.
2360         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
2361         guarded by GET_CODE check, using its methods for clarity, and to
2362         enable strengthening local "this_insn" from rtx to rtx_insn *.
2363         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
2364         "insn" from rtx to rtx_insn *.
2365         (define_expand "umulhisi3"): Likewise.
2366         (define_expand "smulsi3_highpart"): Likewise.
2367         (define_expand "umulsi3_highpart"): Likewise.
2368         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
2369         local "after".  Replace GET_CODE check with a dyn_cast,
2370         introducing new local rtx_sequence * "seq", using insn method for
2371         typesafety.
2373         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
2374         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
2375         place of "insn" once we're dealing with patterns rather than the
2376         input insn.
2377         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
2378         (scan_trace): Likewise for local "elt", updating lookups within
2379         sequence to use insn method rather than element method.
2380         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
2381         to rtx_insn *.
2382         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
2383         * ifcvt.c (noce_try_abs): Likewise for local "insn".
2384         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
2385         invoking single_set.
2386         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
2387         "insn" from rtx to rtx_insn *.
2388         (skip_usage_debug_insns): Likewise for return type, adding a
2389         checked cast.
2390         (check_secondary_memory_needed_p): Likewise for local "insn".
2391         (inherit_reload_reg): Likewise.
2392         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
2393         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
2394         checked casts.
2395         (store_data_bypass_p): Likewise for both params.
2396         (if_test_bypass_p): Likewise.
2397         * recog.h (store_data_bypass_p): Likewise for both params.
2398         (if_test_bypass_p): Likewise.
2399         * reload.c (find_equiv_reg): Likewise for local "where".
2400         * reorg.c (delete_jump): Likewise for param "insn".
2401         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
2402         to const rtx_insn *.
2403         * store-motion.c (replace_store_insn): Likewise for param "del".
2404         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
2405         and use its methods for clarity, and to strengthen local "del"
2406         from rtx to rtx_insn *.
2407         (build_store_vectors): Use insn method of "st" when calling
2408         replace_store_insn for typesafety and clarity.
2410 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2412         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
2413         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
2414         on how to make it legal in future.
2416 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
2418         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
2419         to rtx_insn *.
2420         (restinsn): Likewise.
2421         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2422         Likewise for param.
2423         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
2424         Likewise.
2425         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
2426         first param.
2427         (arc_hazard): Likewise for both params.
2428         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
2429         checked casts to rtx_sequence * and uses of the insn method for
2430         type-safety.
2431         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
2432         (arc_adjust_insn_length): Likewise for param "insn".
2433         (struct insn_length_parameters_s): Likewise for first param of
2434         "get_variants" callback field.
2435         (arc_get_insn_variants): Likewise for first param and local
2436         "inner".  Replace a check of GET_CODE with a dyn_cast to
2437         rtx_sequence *, using methods for type-safety and clarity.
2438         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
2439         rtx_sequence * and uses of the insn method for type-safety when
2440         invoking arc_adjust_insn_length.
2441         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
2442         for param.
2443         (arm_address_offset_is_imm): Likewise.
2444         (struct tune_params): Likewise for params 1 and 3 of the
2445         "sched_adjust_cost" callback field.
2446         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
2447         params 1 and 3 ("insn" and "dep").
2448         (xscale_sched_adjust_cost): Likewise.
2449         (fa726te_sched_adjust_cost): Likewise.
2450         (cortexa7_older_only): Likewise for param "insn".
2451         (cortexa7_younger): Likewise.
2452         (arm_attr_length_move_neon): Likewise.
2453         (arm_address_offset_is_imm): Likewise.
2454         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
2455         * config/avr/avr.c (avr_notice_update_cc): Likewise.
2456         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
2457         (workaround_speculation): Likewise for local "last_condjump".
2458         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
2459         (shadow_or_blockage_p): Likewise.
2460         (get_unit_reqs): Likewise.
2461         (get_unit_operand_masks): Likewise.
2462         (c6x_registers_update): Likewise.
2463         (returning_call_p): Likewise.
2464         (can_use_callp): Likewise.
2465         (convert_to_callp): Likewise.
2466         (find_last_same_clock): Likwise for local "t".
2467         (reorg_split_calls): Likewise for local "shadow".
2468         (hwloop_pattern_reg): Likewise for param "insn".
2469         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
2470         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
2471         (frv_extract_membar): Likewise.
2472         (frv_optimize_membar_local): Strengthen param "last_membar" from
2473         rtx * to rtx_insn **.
2474         (frv_optimize_membar_global): Strengthen param "membar" from rtx
2475         to rtx_insn *.
2476         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
2477         to rtx_insn **.
2478         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
2479         both params from rtx to rtx_insn *.
2480         (ia64_ld_address_bypass_p): Likewise.
2481         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
2482         "insn".
2483         (ia64_safe_type): Likewise.
2484         (group_barrier_needed): Likewise.
2485         (safe_group_barrier_needed): Likewise.
2486         (ia64_single_set): Likewise.
2487         (is_load_p): Likewise.
2488         (record_memory_reference): Likewise.
2489         (get_mode_no_for_insn): Likewise.
2490         (important_for_bundling_p): Likewise.
2491         (unknown_for_bundling_p): Likewise.
2492         (ia64_st_address_bypass_p): Likewise for both params.
2493         (ia64_ld_address_bypass_p): Likewise.
2494         (expand_vselect): Introduce new local rtx_insn * "insn", using it
2495         in place of rtx "x" after the emit_insn call.
2496         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
2497         Strengthen param from rtx to rtx_insn *.
2498         (ix86_agi_dependent): Likewise for both params.
2499         (ix86_attr_length_immediate_default): Likewise for param 1.
2500         (ix86_attr_length_address_default): Likewise for param.
2501         (ix86_attr_length_vex_default): Likewise for param 1.
2502         * config/i386/i386.c (ix86_attr_length_immediate_default):
2503         Likewise for param "insn".
2504         (ix86_attr_length_address_default): Likewise.
2505         (ix86_attr_length_vex_default): Likewise.
2506         (ix86_agi_dependent): Likewise for both params.
2507         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
2508         (vselect_insn): Likewise for this variable.
2509         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
2510         for param 1.
2511         (m68k_sched_attr_opy_type): Likewise.
2512         * config/m68k/m68k.c (sched_get_operand): Likewise.
2513         (sched_attr_op_type): Likewise.
2514         (m68k_sched_attr_opx_type): Likewise.
2515         (m68k_sched_attr_opy_type): Likewise.
2516         (sched_get_reg_operand): Likewise.
2517         (sched_get_mem_operand): Likewise.
2518         (m68k_sched_address_bypass_p): Likewise for both params.
2519         (sched_get_indexed_address_scale): Likewise.
2520         (m68k_sched_indexed_address_bypass_p): Likewise.
2521         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
2522         (m68k_sched_indexed_address_bypass_p): Likewise.
2523         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
2524         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
2525         removing another.
2526         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
2527         params from rtx to rtx_insn *.
2528         (mips_fmadd_bypass): Likewise.
2529         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
2530         (mips_linked_madd_p): Likewise.
2531         (mips_macc_chains_last_hilo): Likewise for this variable.
2532         (mips_macc_chains_record): Likewise for param.
2533         (vr4130_last_insn): Likewise for this variable.
2534         (vr4130_swap_insns_p): Likewise for both params.
2535         (mips_ls2_variable_issue): Likewise for param.
2536         (mips_need_noat_wrapper_p): Likewise for param "insn".
2537         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
2538         in place of "x" after the emit_insn.
2539         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
2540         params from rtx to rtx_insn *.
2541         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
2542         (pa_combine_instructions): Introduce local "par" for result of
2543         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
2544         to make_insn_raw.
2545         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
2546         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
2547         (rl78_alloc_physical_registers_op1): Likewise.
2548         (rl78_alloc_physical_registers_op2): Likewise.
2549         (rl78_alloc_physical_registers_ro1): Likewise.
2550         (rl78_alloc_physical_registers_cmp): Likewise.
2551         (rl78_alloc_physical_registers_umul): Likewise.
2552         (rl78_alloc_address_registers_macax): Likewise.
2553         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
2554         * config/s390/predicates.md (execute_operation): Likewise for
2555         local "insn".
2556         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
2557         params.
2558         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
2559         (addr_generation_dependency_p): Likewise for param "insn".
2560         (s390_agen_dep_p): Likewise for both params.
2561         (s390_fpload_toreg): Likewise for param "insn".
2562         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
2563         * config/sh/sh.c (sh_loop_align): Likewise for param and local
2564         "next".
2565         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
2566         * config/sh/sh_treg_combine.cc
2567         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
2568         and local "i".
2569         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
2570         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
2571         "and_insn", "load", "shift".
2572         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
2573         "insn".
2574         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
2575         for XEXP (note, 0) of the REG_CC_SETTER note.
2576         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
2577         rtx_insn *, eliminating a checked cast made redundant by this.
2578         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
2579         to rtx_insn *.
2580         * genattr.c (main): When writing out the prototype to
2581         const_num_delay_slots, strengthen the param from rtx to
2582         rtx_insn *.
2583         * genattrtab.c (write_const_num_delay_slots): Likewise when
2584         writing out the implementation of const_num_delay_slots.
2585         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
2586         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
2587         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
2588         favor of new rtx locals "src" and "set" and new local rtx_insn *
2589         "insn" and "seq".
2590         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
2591         to rtx_insn *.
2592         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
2593         locals "cond", "if_then_else", "set" and new rtx_insn * locals
2594         "insn" and "seq".
2595         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
2596         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
2597         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
2598         the top-level scope, replacing with new more tightly-scoped rtx
2599         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
2600         "new_insn", "copy_of_insn_b", and make local rtx "set" more
2601         tightly-scoped.
2602         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
2603         rtx_insn *.
2604         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
2605         "move_insn".
2606         (ira_setup_alts): Likewise for param "insn".
2607         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
2608         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
2609         and an rtx_insn *.
2610         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
2611         new more-tightly scoped rtx locals "add3_insn", "insn",
2612         "add2_insn" and rtx_insn * "move_insn".
2613         * postreload-gcse.c (eliminate_partially_redundant_load): Add
2614         checked cast on result of gen_move_insn when invoking
2615         extract_insn.
2616         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
2617         rtx_insn *.
2618         (verify_changes): Add a checked cast on "object" when invoking
2619         insn_invalid_p.
2620         (extract_insn_cached): Strengthen param "insn" from rtx to
2621         rtx_insn *.
2622         (extract_constrain_insn_cached): Likewise.
2623         (extract_insn): Likewise.
2624         * recog.h (insn_invalid_p): Likewise for param 1.
2625         (recog_memoized): Likewise for param.
2626         (extract_insn): Likewise.
2627         (extract_constrain_insn_cached): Likewise.
2628         (extract_insn_cached): Likewise.
2629         * reload.c (can_reload_into): Likewise for local "test_insn".
2630         * reload.h (cleanup_subreg_operands): Likewise for param.
2631         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
2632         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
2633         result of emit_insn.  Remove a checked cast made redundant by this
2634         change.
2635         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
2636         rtx to rtx_insn *.
2637         * sel-sched.c (get_reg_class): Likewise.
2639 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2640         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2642          * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
2643          * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
2644         Define.
2645         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
2647 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
2649         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
2650         const rtx_insn *, and from rtx to rtx_insn * for the other
2651         overloaded variant.
2652         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
2653         INSN_LOCATION, since we know INSN_P holds.
2654         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
2655         (insn_file): Likewise.
2656         (insn_scope): Likewise.
2657         (insn_location): Likewise.
2659         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
2660         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
2661         for the result of gen_load_const_gp.
2662         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
2663         param from rtx to rtx_insn *.
2664         * config/rs6000/rs6000.c (output_call): Likewise.
2665         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
2666         introducing a checked cast to rtx_sequence * and use of the insn
2667         method.
2668         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
2669         from rtx to rtx_insn *.
2670         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
2671         (insn_line): Likewise.
2672         (insn_file): Likewise.
2673         (insn_location): Likewise.
2674         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
2675         from rtx to rtx_insn *.
2676         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
2677         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
2678         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
2679         via a checked cast.
2680         * reorg.c (relax_delay_slots): Strengthen locals named "after"
2681         from rtx to rtx_insn *; use methods of "pat" for type-safety.
2683 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
2685         * combine.c (try_combine): Eliminate checked cast on result of
2686         gen_rtx_INSN.
2687         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
2688         autogenerated one by strengthening the return type and params 2 and 3
2689         from rtx to rtx_insn *, and by naming the params.
2690         * gengenrtl.c (special_rtx): Add INSN to those that are
2691         special-cased.
2692         * rtl.h (gen_rtx_INSN): New prototype.
2694 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
2696         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
2697         than NULL_RTX.
2698         (no_equiv): Likewise.
2699         (update_equiv_regs): Likewise.
2700         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
2701         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
2702         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
2703         clarity.
2704         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
2705         from rtx to rtx_insn_list *.
2706         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
2707         rtx_insn_list * and use methods for clarity and typesafety.
2708         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
2709         "list".
2710         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
2711         redundant check on INSN_P (insns): this cannot hold, as "insns" is
2712         an INSN_LIST, not an insn.
2713         (reverse_equiv_p): Strengthen local "insns" from rtx to
2714         rtx_insn_list * and use methods for clarity and typesafety.
2715         (contains_reloaded_insn_p): Likewise for local "list".
2717 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
2719         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
2720         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
2721         (arm_builtin_vectorized_function): Likewise.
2722         * config/arm/arm_neon_builtins.def: New macro for copysignf.
2723         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
2725 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
2727         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
2728         * builtins.h (default_target_builtins): Likewise.
2729         * gcse.h (default_target_gcse): Likewise.
2730         * target-globals.h (target_globals): Add a destructor.  Convert
2731         void-pointer fields back to their real type and change from
2732         GTY((atomic)) to GTY((skip)).
2733         (restore_target_globals): Remove casts accordingly.
2734         * target-globals.c (save_target_globals): Use XCNEW rather than
2735         ggc_internal_cleared_alloc to allocate non-GC structures.
2736         Use ggc_cleared_alloc to allocate the target_globals structure
2737         itself.
2738         (target_globals::~target_globals): Define.
2740 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2742         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
2743         mnemonic instead of fldmfdd.
2744         * config/arm/arm.c (vfp_output_fstmd): Rename to...
2745         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
2746         Output vpush when address register is SP.
2747         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
2748         (vfp_output_vstmd): ... This.
2749         * config/arm/vfp.md (push_multi_vfp): Update call to
2750         vfp_output_vstmd.
2752 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2754         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
2756 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2758         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
2759         (*sqrtdf2_vfp): Likewise.
2760         (*cmpsf_vfp): Likewise.
2761         (*cmpsf_trap_vfp): Likewise.
2762         (*cmpdf_vfp): Likewise.
2763         (*cmpdf_trap_vfp): Likewise.
2765 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2767         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
2768         (*truncdfsf2_vfp): Likewise.
2769         (*truncsisf2_vfp): Likewise.
2770         (*truncsidf2_vfp): Likewise.
2771         (fixuns_truncsfsi2): Likewise.
2772         (fixuns_truncdfsi2): Likewise.
2773         (*floatsisf2_vfp): Likewise.
2774         (*floatsidf2_vfp): Likewise.
2775         (floatunssisf2): Likewise.
2776         (floatunssidf2): Likewise.
2778 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2780         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
2781         (*muldf3_vfp): Likewise.
2782         (*mulsf3negsf_vfp): Likewise.
2783         (*muldf3negdf_vfp): Likewise.
2784         (*mulsf3addsf_vfp): Likewise.
2785         (*muldf3adddf_vfp): Likewise.
2786         (*mulsf3subsf_vfp): Likewise.
2787         (*muldf3subdf_vfp): Likewise.
2788         (*mulsf3negsfaddsf_vfp): Likewise.
2789         (*fmuldf3negdfadddf_vfp): Likewise.
2790         (*mulsf3negsfsubsf_vfp): Likewise.
2791         (*muldf3negdfsubdf_vfp): Likewise.
2793 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2795         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
2796         (*absdf2_vfp): Likewise.
2797         (*negsf2_vfp): Likewise.
2798         (*negdf2_vfp): Likewise.
2799         (*addsf3_vfp): Likewise.
2800         (*adddf3_vfp): Likewise.
2801         (*subsf3_vfp): Likewise.
2802         (*subdf3_vfp): Likewise.
2803         (*divsf3_vfp): Likewise.
2804         (*divdf3_vfp): Likewise.
2806 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2808         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
2809         multiple.
2810         (arm_print_operand): Don't convert real values to decimal
2811         representation in default case.
2812         (fp_immediate_constant): Delete.
2813         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
2814         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
2815         syntax.
2816         (*thumb2_movsi_vfp): Likewise.
2817         (*movdi_vfp): Likewise.
2818         (*movdi_vfp_cortexa8): Likewise.
2819         (*movhf_vfp_neon): Likewise.
2820         (*movhf_vfp): Likewise.
2821         (*movsf_vfp): Likewise.
2822         (*thumb2_movsf_vfp): Likewise.
2823         (*movdf_vfp): Likewise.
2824         (*thumb2_movdf_vfp): Likewise.
2825         (*movsfcc_vfp): Likewise.
2826         (*thumb2_movsfcc_vfp): Likewise.
2827         (*movdfcc_vfp): Likewise.
2828         (*thumb2_movdfcc_vfp): Likewise.
2830 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
2832         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
2833         (-mtune): Likewise.
2834         (-mcpu): Likewise.
2836 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2838         PR target/61749
2839         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
2840         Use qualifier_immediate for last operand.  Rename to...
2841         (aarch64_types_ternop_lane_qualifiers): ... This.
2842         (TYPES_QUADOP): Rename to...
2843         (TYPES_TERNOP_LANE): ... This.
2844         (aarch64_simd_expand_args): Return const0_rtx when encountering user
2845         error.  Change return of 0 to return of NULL_RTX.
2846         (aarch64_crc32_expand_builtin): Likewise.
2847         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
2848         ICE when expanding unknown builtin.
2849         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
2850         TERNOP_LANE qualifiers.
2851         (sqdmlsl_lane): Likewise.
2852         (sqdmlal_laneq): Likewise.
2853         (sqdmlsl_laneq): Likewise.
2854         (sqdmlal2_lane): Likewise.
2855         (sqdmlsl2_lane): Likewise.
2856         (sqdmlal2_laneq): Likewise.
2857         (sqdmlsl2_laneq): Likewise.
2859 2014-09-09  Nick Clifton  <nickc@redhat.com>
2861         * doc/invoke.texi (Optimization Options): Add missing @gol to the
2862         end of a line.
2863         (S/390 and zSeries Options): Remove superfluous word from the
2864         description of the -mhotpatch option.
2866 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
2868         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
2869         * ira.c: #include "shrink-wrap.h"
2870         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
2871         * ifcvt.c: #include "shrink-wrap.h"
2872         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
2874 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
2876         * common/config/picochip/picochip-common.c: Remove.
2877         * config.gcc: Remove support for picochip.
2878         * config/picochip/constraints.md: Remove.
2879         * config/picochip/dfa_space.md: Remove.
2880         * config/picochip/dfa_speed.md: Remove.
2881         * config/picochip/picochip-protos.h: Remove.
2882         * config/picochip/picochip.c: Remove.
2883         * config/picochip/picochip.h: Remove.
2884         * config/picochip/picochip.md: Remove.
2885         * config/picochip/picochip.opt: Remove.
2886         * config/picochip/predicates.md: Remove.
2887         * config/picochip/t-picochip: Remove.
2888         * doc/md.texi: Don't document picochi.
2890 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
2892         * basic-block.h (control_flow_insn_p): Strengthen param from
2893         const_rtx to const rtx_insn *.
2894         * cfgbuild.c (control_flow_insn_p): Likewise.
2896 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
2898         * gcse.c (modify_mem_list): Strengthen this variable from
2899         vec<rtx> * to vec<rtx_insn *> *.
2900         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
2901         vec<rtx_insn *>.
2902         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
2903         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
2904         (record_last_mem_set_info): Strengthen param "insn" from rtx to
2905         rtx_insn *.
2906         (record_last_set_info): Likewise for local "last_set_insn".
2908 2014-09-08  DJ Delorie  <dj@redhat.com>
2910         * doc/invoke.texi (MSP430 Options): Add -minrt.
2912 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2914         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
2915         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
2916         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
2917         handling SH_SPLAT.
2918         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
2919         of extracted lane.
2920         (adjust_splat): New function.
2921         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
2922         (dump_swap_insn_table): Add case for SH_SPLAT.
2924 2014-09-08  Richard Biener  <rguenther@suse.de>
2926         PR ipa/63196
2927         * tree-inline.c (copy_loops): The source loop header should
2928         always be non-NULL.
2929         (tree_function_versioning): If loops need fixup after removing
2930         unreachable blocks fix them.
2931         * omp-low.c (simd_clone_adjust): Do not add incr block to
2932         loop under construction.
2934 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
2936         * config/aarch64/aarch64-builtins.c
2937         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
2939 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
2941         * config/i386/cygming.h (TF_SIZE): Remove.
2942         * config/i386/darwin.h (TF_SIZE): Remove.
2943         * config/i386/dragonfly.h (TF_SIZE): Remove.
2944         * config/i386/freebsd.h (TF_SIZE): Remove.
2945         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
2946         * config/i386/openbsdelf.h (TF_SIZE): Remove.
2947         * config/i386/sol2.h (TF_SIZE): Remove.
2948         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
2949         * config/ia64/linux.h (TF_SIZE): Remove.
2950         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
2951         * doc/tm.texi: Regenerate.
2952         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
2954 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
2956         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
2957         Remove.
2958         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
2959         Remove.
2960         * doc/tm.texi: Regenerate.
2961         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
2962         Poison.
2963         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
2964         * config/cris/cris.h (__make_dp): Remove.
2966 2014-09-08  Richard Biener  <rguenther@suse.de>
2968         PR bootstrap/63204
2969         * cfgloop.c (mark_loop_for_removal): Track former header
2970         unconditionally.
2971         * cfgloop.h (struct loop): Add former_header member unconditionally.
2972         * loop-init.c (fix_loop_structure): Enable bogus loop removal
2973         diagnostic unconditionally.
2975 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
2977         PR target/63190
2978         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
2979         constraint for operand0 and remove write only modifier from operand3.
2981 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
2983         PR rtl-optimization/62208
2984         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
2985         rather than const0_rtx in eq/ne-xor simplifications.
2987 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
2989         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
2990         (arc_output_mi_thunk): Likewise.
2992         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
2993         arguments to silence bogus warning.
2995 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
2997         PR middle-end/63171
2998         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
3000 2014-09-06  Tom de Vries  <tom@codesourcery.com>
3002         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
3003         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
3004         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3006 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
3008         PR target/63188
3009         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
3010         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
3012 2014-09-05  Easwaran Raman  <eraman@google.com>
3014         PR rtl-optimization/62146
3015         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
3016         hoisted instruction unconditional.
3018 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
3020         PR target/63187
3021         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
3022         Do not allow any_mask_operand for operands[2].
3023         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
3025 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3027         * config/arc/arc.c (arc_print_operand): Use insn method of
3028         final_sequence for type-safety.
3029         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
3030         "insn" from rtx to rtx_insn *.
3031         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
3032         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3033         Likewise for locals "branch", "label".
3034         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
3035         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
3036         (same_cmp_following_p): Likewise for locals "i2", "i3".
3037         * config/sh/sh_optimize_sett_clrt.cc
3038         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
3039         param "cbranch_insn".
3040         * function.c (convert_jumps_to_returns): Likewis for local "jump".
3041         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
3042         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
3043         const rtx_insn *.
3044         (condjump_p): Likewise.
3045         (condjump_in_parallel_p): Likewise.
3046         (pc_set): Likewise.
3047         (any_uncondjump_p): Likewise.
3048         (any_condjump_p): Likewise.
3049         (condjump_label): Likewise.
3050         (returnjump_p): Strengthen param "insn" from rtx to
3051         const rtx_insn *.
3052         (onlyjump_p): Strengthen param "insn" from const_rtx to
3053         const rtx_insn *.
3054         (jump_to_label_p): Likewise.
3055         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
3056         (invert_jump): Likewise.
3057         * reorg.c (simplejump_or_return_p): Add checked cast when calling
3058         simplejump_p.
3059         (get_jump_flags): Strengthen param "insn" from rtx to
3060         const rtx_insn *.
3061         (get_branch_condition): Likewise.
3062         (condition_dominates_p): Likewise.
3063         (make_return_insns): Move declaration of local "pat" earlier, to
3064         after we've handled NONJUMP_INSN_P and non-sequences, using its
3065         methods to simplify the code and for type-safety.
3066         * rtl.h (find_constant_src): Strengthen param from const_rtx to
3067         const rtx_insn *.
3068         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
3069         (condjump_p): Strengthen param from const_rtx to
3070         const rtx_insn *.
3071         (any_condjump_p): Likewise.
3072         (any_uncondjump_p): Likewise.
3073         (pc_set): Likewise.
3074         (condjump_label): Likewise.
3075         (simplejump_p): Likewise.
3076         (returnjump_p): Likewise.
3077         (onlyjump_p): Likewise.
3078         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
3079         (invert_jump): Likewise.
3080         (condjump_in_parallel_p): Strengthen param from const_rtx to
3081         const rtx_insn *.
3082         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
3083         to const rtx_insn *.
3084         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
3085         to const rtx_insn *.
3086         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
3088 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3090         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
3091         above the conditional, and convert the check on GET_CODE to a
3092         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
3093         the conditional.  Simplify the conditional by using methods of
3094         "trial_seq".
3096 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3098         * haifa-sched.c (check_clobbered_conditions): Strengthen local
3099         "link" from rtx to rtx_insn_list *, and use its methods for
3100         clarity and type-safety.
3101         (toggle_cancelled_flags): Likewise.
3102         (restore_last_backtrack_point): Likewise.
3103         (queue_to_ready): Use insn method of "link" in one place.
3104         (schedule_block): Strengthen local "link" from rtx to
3105         rtx_insn_list *, and use its methods for clarity and type-safety.
3107 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3109         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
3110         param "insn" from const_rtx to const rtx_insn *.
3111         (sched_get_reverse_condition_uncached): Likewise.
3112         (sched_get_condition_with_rev): Likewise.
3113         (sched_has_condition_p): Likewise.
3114         (sched_insns_conditions_mutex_p): Likewise for both params.
3115         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
3116         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
3117         (setup_insn_reg_uses): Move local "list" to be more tightly
3118         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
3119         its methods for clarity and type-safety.
3120         (sched_analyze_1): Strengthen local "pending" from rtx to
3121         rtx_insn_list *, and local "pending_mem" from rtx to
3122         rtx_expr_list *.  Use methods of each for clarity and type-safety.
3123         (sched_analyze_2): Likewise.
3124         (sched_analyze_insn): Likewise.
3126         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
3127         param from const_rtx to const rtx_insn *.
3128         (sched_insns_conditions_mutex_p): Likewise for both params.
3129         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
3130         param.
3132         * system.h (CONST_CAST_RTX_INSN): New macro.
3134 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3136         * recog.c (peep2_attempt): Strengthen return type from rtx to
3137         rtx_insn *.
3138         (peep2_update_life): Likewise for params "last", "prev", removing
3139         a checked cast made redundant by this.
3140         (peephole2_optimize): Likewise for local "last".
3142 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3144         * basic-block.h (set_block_for_insn): Eliminate this macro in
3145         favor of...
3146         * rtl.h (set_block_for_insn): New inline function, imposing the
3147         requirement that the "insn" param is an rtx_insn *.
3149 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3151         * caller-save.c (setup_save_areas): Strengthen local "insn" from
3152         rtx to rtx_insn *.
3153         * final.c (get_call_reg_set_usage): Likewise for first param,
3154         eliminating a checked cast.
3155         * regs.h (get_call_reg_set_usage): Likewise for first param.
3156         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
3157         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
3158         cast, replacing references to "x" with "call_insn" where
3159         appropriate.
3160         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
3161         rtx_insn *, adding a checked cast.
3163 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3165         * output.h (final_scan_insn): Strengthen first param from rtx to
3166         rtx_insn *.
3168         * final.c (final_scan_insn): Likewise, renaming it back from
3169         "uncast_insn" to "insn", eliminating the checked cast.
3171         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
3172         "vec" with an rtx_sequence * "seq", taking a copy of
3173         "final_sequence", and using methods of "seq" for clarity, and for
3174         type-safety in the calls to final_scan_insn.
3175         * config/mips/mips.c (mips_output_conditional_branch): Use methods
3176         of "final_sequence" for clarity, and for type-safety in the call to
3177         final_scan_insn.
3178         * config/sh/sh.c (print_slot): Strengthen param from rtx to
3179         rtx_sequence * and rename from "insn" to "seq".
3181 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3183         * jump.c (delete_related_insns): Introduce a new local "table" by
3184         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
3185         get_labels method of "table" to simplify access to the labels in
3186         the jump table.
3188 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3190         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
3191         f_minmaxs, f_minmaxd types.
3193 2014-09-05  Richard Biener  <rguenther@suse.de>
3195         * cfgloop.c (mark_loop_for_removal): Record former header
3196         when ENABLE_CHECKING.
3197         * cfgloop.h (strut loop): Add former_header member when
3198         ENABLE_CHECKING.
3199         * loop-init.c (fix_loop_structure): Sanity check loops
3200         marked for removal if they re-appeared.
3202 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3204         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
3205         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
3207         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
3208         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
3209         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
3210         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
3211         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
3212         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
3213         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
3214         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
3215         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
3216         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
3217         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
3218         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
3219         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
3220         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
3221         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
3222         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
3223         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
3224         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
3225         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
3226         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
3227         with int{32,16,8}_t.
3229 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3231         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
3232         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
3233         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
3234         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
3235         Remove temporary __asm__ and reimplement.
3237 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3239         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
3240         handling cmge, cmgt, cmeq, cmtst.
3242         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
3243         cmlt, cmgeu, cmgtu, cmtst): Remove.
3245         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
3246         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
3247         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
3248         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
3250 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3252         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
3253         TYPES_TST): Define.
3254         (aarch64_fold_builtin): Update pattern for cmtst.
3256         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
3257         Declare.
3259         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
3261         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
3262         Switch operands, separate out more cases, refactor.
3264         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
3266         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
3267         argument; rename old version to...
3268         (aarch64_const_vec_all_same_in_range_p): ...this.
3269         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
3271         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
3273 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3275         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3276         Remove qualifier_const_pointer, update comment.
3278 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3280         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
3282 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3284         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
3285         varargs with pointer parameter.
3286         (aarch64_simd_expand_builtin): pass pointer into previous.
3288 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3290         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
3291         alus_ext.
3293 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3295         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
3296         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
3297         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
3298         Replace temporary asm with call to builtin.
3299         (vrbit_p8, vrbitq_p8): New functions.
3301 2014-09-05  Richard Biener  <rguenther@suse.de>
3303         * cfgloop.c (mark_loop_for_removal): New function.
3304         * cfgloop.h (mark_loop_for_removal): Declare.
3305         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
3306         (merge_blocks): Likewise.
3307         (duplicate_block): Likewise.
3308         * except.c (sjlj_emit_dispatch_table): Likewise.
3309         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
3310         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
3311         (thread_through_loop_header): Likewise.
3313 2014-09-05  Richard Biener  <rguenther@suse.de>
3315         PR middle-end/63148
3316         * fold-const.c (try_move_mult_to_index): Remove.
3317         (fold_binary_loc): Do not call it.
3318         * tree-data-ref.c (dr_analyze_indices): Strip conversions
3319         from the base object again.
3321 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
3323         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
3324         DImode.
3326 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
3328         PR target/55701
3329         * config/arm/arm.md (setmem): New pattern.
3330         * config/arm/arm-protos.h (struct tune_params): New fields.
3331         (arm_gen_setmem): New prototype.
3332         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
3333         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3334         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3335         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
3336         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
3337         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
3338         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
3339         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3340         (arm_const_inline_cost): New function.
3341         (arm_block_set_max_insns): New function.
3342         (arm_block_set_non_vect_profit_p): New function.
3343         (arm_block_set_vect_profit_p): New function.
3344         (arm_block_set_unaligned_vect): New function.
3345         (arm_block_set_aligned_vect): New function.
3346         (arm_block_set_unaligned_non_vect): New function.
3347         (arm_block_set_aligned_non_vect): New function.
3348         (arm_block_set_vect, arm_gen_setmem): New functions.
3350 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
3352         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
3354 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
3356         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
3358 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3360         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
3361         an rtx.
3362         * valtrack.h: Adjust.
3364 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3366         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
3367         an rtx.
3368         (emit_jump_insn_before_noloc): Likewise.
3369         (emit_call_insn_before_noloc): Likewise.
3370         (emit_label_before): Likewise.
3371         (emit_label_after): Likewise.
3372         (emit_insn_before_setloc): Likewise.
3373         (emit_jump_insn_before_setloc): Likewise.
3374         (emit_call_insn_before_setloc): Likewise.
3375         (emit_call_insn_before): Likewise.
3376         * rtl.h: Adjust.
3378 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3380         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
3381         rtx_insn *, eliminating a checked cast.
3383 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3385         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
3386         const_rtx to const rtx_insn *.
3387         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
3388         cast.
3390 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3392         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
3393         fixup_args_size_notes.
3394         * expr.c (fixup_args_size_notes): Strengthen first two params from
3395         rtx to rtx_insn *, eliminating a checked cast.
3396         * rtl.h (fixup_args_size_notes): Strengthen first two params from
3397         rtx to rtx_insn *.
3399 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
3401         * haifa-sched.c (get_ready_element): Strengthen return type from
3402         rtx to rtx_insn *.
3403         * sched-int.h (get_ready_element): Likewise.
3405 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
3407         PR target/63165
3408         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
3409         indexed_or_indirect_operand instead of memory_operand.
3410         (floatsi<mode>2_lfiwzx_mem): Ditto.
3412 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3414         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
3415         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
3416         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
3418 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
3420         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
3421         rtx.
3422         (get_last_nonnote_insn): Likewise.
3423         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
3424         * resource.c (find_basic_block): Likewise.
3425         * rtl.h: Adjust.
3426         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
3427         const_rtx.
3429 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
3431         * genattr.c (main): Within the prototype of insn_latency written
3432         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
3433         * genautomata.c (output_internal_maximal_insn_latency_func):
3434         Within the implementation of insn_latency written out to
3435         insn-automata.c, strengthen both params from rtx to rtx_insn *,
3436         eliminating a pair of checked casts.
3438 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
3440         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
3441         rtx_insn *.
3443         * rtl.h (eh_returnjump_p): Likewise.
3445 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
3447         * Makefile.in (TAGS): Handle constructs in timevar.def.
3449 2014-09-04  Guozhi Wei  <carrot@google.com>
3451         PR target/62040
3452         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
3453         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
3454         it into two patterns.
3455         (move_lo_quad_internal_be_<mode>): Likewise.
3457 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3459         * doc/options.texi: Document that Var and Init are required if CPP
3460         is given.
3461         * optc-gen.awk: Require Var and Init if CPP is given.
3462         * common.opt (Wpedantic): Use Init.
3464 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3466         * config/rs6000/rs6000.c (special_handling_values): Add
3467         SH_EXTRACT.
3468         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
3469         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
3470         as swappable with special handling SH_EXTRACT.  Remove
3471         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
3472         optimization.
3473         (adjust_extract): New function.
3474         (handle_special_swappables): Add default to case statement; add
3475         case for SH_EXTRACT that calls adjust_extract.
3476         (dump_swap_insn_table): Handle SH_EXTRACT.
3478 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3480         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
3481         selection of 0th memory doubleword, regardless of endianness.
3483 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3485         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
3487 2014-09-04  Alan Modra  <amodra@gmail.com>
3489         PR debug/60655
3490         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
3491         can't be output.
3493 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
3495         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
3496         * targhooks.c (default_dwarf_frame_reg_mode): New function.
3497         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
3498         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
3499         * doc/tm.texi: Regenerate.
3500         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
3501         selection logic to default_dwarf_frame_reg_mode.
3503 2014-09-03  Marek Polacek  <polacek@redhat.com>
3505         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
3506         by -Wall.
3508 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
3510         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
3511         the automodified register.
3513 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
3515         * output.h (get_some_local_dynamic_name): Declare.
3516         * final.c (some_local_dynamic_name): New variable.
3517         (get_some_local_dynamic_name): New function.
3518         (final_end_function): Clear some_local_dynamic_name.
3519         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
3520         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3521         (print_operand): Report an error if '%&' is used inappropriately.
3522         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
3523         (get_some_local_dynamic_name_1): Delete.
3524         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
3525         (rs6000_get_some_local_dynamic_name): Delete.
3526         (rs6000_get_some_local_dynamic_name_1): Delete.
3527         (print_operand): Report an error if '%&' is used inappropriately.
3528         * config/s390/s390.c (machine_function): Remove some_ld_name.
3529         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3530         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
3531         * config/sparc/sparc.c: Include rtl-iter.h.
3532         (machine_function): Remove some_ld_name.
3533         (sparc_print_operand): Report an error if '%&' is used inappropriately.
3534         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
3536 2014-09-03  Richard Henderson  <rth@redhat.com>
3538         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
3539         (aarch64_popwb_pair_reg): Remove.
3540         (aarch64_set_frame_expr): Remove.
3541         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
3542         the restore ops performed by the insns generated.
3543         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
3544         insn.  Perform the calls_eh_return addition later; do not attempt to
3545         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
3546         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
3547         special markup at all.  Load cfun->machine->frame.hard_fp_offset
3548         into a local variable.
3549         (aarch64_frame_pointer_required): Don't check calls_alloca.
3551 2014-09-03  Richard Biener  <rguenther@suse.de>
3553         * opts.c (default_options_optimization): Adjust
3554         max-combine-insns to 2 for -Og.
3556 2014-09-03  Martin Jambor  <mjambor@suse.cz>
3558         PR ipa/62015
3559         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
3560         pass-trough jump functions correctly.
3562 2014-09-03  Martin Jambor  <mjambor@suse.cz>
3564         PR ipa/61986
3565         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
3566         created replacements in ascending order of offsets.
3567         (known_aggs_to_agg_replacement_list): Likewise.
3569 2014-09-03  Martin Liska  <mliska@suse.cz>
3571         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
3572         is set to set uninitialized value for vnresult.
3574 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3576         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
3577         for TARGET_MUST_PASS_IN_STACK.
3579 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3581         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
3582         for TARGET_ARG_PARTIAL_BYTES.
3584 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3586         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
3587         instructions for varargs implementation.
3588         (nds32_expand_epilogue): Emit stack adjustment instructions for
3589         varargs implementation.
3591 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3593         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
3594         optimization detection.
3596 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3598         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
3599         arguments.
3600         (nds32_function_arg_advance): Deal with nameless arguments.
3601         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
3602         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
3603         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
3605 2014-09-03  Richard Biener  <rguenther@suse.de>
3607         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
3608         (struct bb_bitmap_sets): Remove deferred member.
3609         (BB_DEFERRED): Remove.
3610         (defer_or_phi_translate_block): Remove.
3611         (compute_antic_aux): Remove deferring of blocks, assert
3612         proper iteration order.
3613         (compute_antic): Do not set BB_DEFERRED.
3614         (eliminate): Allocate el_avail of proper size initially.
3616 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3618         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
3619         according to the value of crtl->args.pretend_args_size.
3621 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3623         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
3624         varargs information.
3626 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3628         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
3629         implementation for TARGET_SETUP_INCOMING_VARARGS.
3630         (nds32_strict_argument_naming): Refine comment.
3631         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
3632         Define for future implementation.
3634 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
3636         * config/i386/adxintrin.h (_subborrow_u32): New.
3637         (_addcarry_u32): Ditto.
3638         (_subborrow_u64): Ditto.
3639         (_addcarry_u64): Ditto.
3640         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
3641         IX86_BUILTIN_SBB64.
3642         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
3643         __builtin_ia32_sbb_u64
3645 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3647         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
3648         GPR-specific stuff.
3649         (nds32_function_arg_advance): Likewise.
3650         (nds32_init_cumulative_args): Likewise.
3651         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
3652         (NDS32_FIRST_GPR_REGNUM): Define.
3653         (NDS32_LAST_GPR_REGNUM): Define.
3654         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
3655         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
3656         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
3657         (machine_function): Use GRP-specific stuff.
3659 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3661         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
3662         (nds32_expand_epilogue): Likewise.
3663         (nds32_expand_prologue_v3push): Likewise.
3664         (nds32_expand_epilogue_v3pop): Likewise.
3666 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3668         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
3669         v3push/v3pop for variadic function.
3670         * config/nds32/nds32.md (prologue, epilogue): Likewise.
3672 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3674         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
3675         Check rtx for varargs implementation.
3676         (nds32_output_stack_pop): Likewise.
3677         * config/nds32/nds32-protos.h: Have a rtx argument for
3678         nds32_output_stack_push and nds32_output_stack_pop.
3679         * config/nds32/nds32.md: Likewise.
3681 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3683         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
3684         to check if FUNC is an interrupt service routine.
3685         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
3687 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3689         * config/nds32/nds32.h (machine_function): Add some fields for variadic
3690         arguments implementation.
3692 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3694         * config/nds32/nds32-predicates.c
3695         (nds32_valid_stack_push_pop): Rename to ...
3696         (nds32_valid_stack_push_pop_p): ... this.
3697         * config/nds32/nds32-protos.h: Likewise.
3698         * config/nds32/predicates.md: Likewise.
3700 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3702         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
3703         (nds32_emit_stack_v3push): ... this.
3704         (nds32_gen_stack_v3pop): Rename to ...
3705         (nds32_emit_stack_v3pop): ... this and consider CFA restore
3706         information.
3708 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3710         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
3711         (nds32_emit_stack_push_multiple): ... this.
3712         (nds32_gen_stack_pop_multiple): Rename to ...
3713         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
3714         information.
3716 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3718         PR target/61078
3719         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
3720         and add a second splitter to handle the remaining cases.
3722 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
3724         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
3726 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
3728         * cfgexpand.c (label_rtx_for_bb): Change type to
3729         hash_map<basic_block, rtx_code_label *> *.
3730         (expand_gimple_basic_block): Adjust.
3731         (pass_expand::execute): Likewise.
3733 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
3735         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
3736         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
3737         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
3738         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
3739         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
3740         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
3741         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
3742         of rtx.
3744 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
3746         * alloc-pool.c: Include coretypes.h.
3747         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
3748         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
3749         hash_set instead of htab.
3750         * ggc-page.c (in_gc): New variable.
3751         (ggc_free): Do nothing if a collection is taking place.
3752         (ggc_collect): Set in_gc appropriately.
3753         * ggc.h (gt_ggc_mx(const char *)): New function.
3754         (gt_pch_nx(const char *)): Likewise.
3755         (gt_ggc_mx(int)): Likewise.
3756         (gt_pch_nx(int)): Likewise.
3757         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
3758         (hash_map::hash_entry::pch_nx): Likewise.
3759         (hash_map::hash_entry::pch_nx_helper): Likewise.
3760 (hash_map::hash_map): Adjust.
3761 (hash_map::create_ggc): New function.
3762 (gt_ggc_mx): Likewise.
3763 (gt_pch_nx): Likewise.
3764         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
3765 (default_hashset_traits::pch_nx): Likewise.
3766 (hash_set::hash_entry::ggc_mx): Likewise.
3767 (hash_set::hash_entry::pch_nx): Likewise.
3768 (hash_set::hash_entry::pch_nx_helper): Likewise.
3769 (hash_set::hash_set): Adjust.
3770 (hash_set::create_ggc): New function.
3771 (hash_set::elements): Likewise.
3772 (gt_ggc_mx): Likewise.
3773 (gt_pch_nx): Likewise.
3774         * hash-table.h (hash_table::hash_table): Adjust.
3775 (hash_table::m_ggc): New member.
3776         (hash_table::~hash_table): Adjust.
3777         (hash_table::expand): Likewise.
3778         (hash_table::empty): Likewise.
3779 (gt_ggc_mx): New function.
3780         (hashtab_entry_note_pointers): Likewise.
3781 (gt_pch_nx): Likewise.
3783 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3785         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
3786         built-in definition.
3787         (XVCVUXDDP_SCALE): Likewise.
3788         (XVCVDPSXDS_SCALE): Likewise.
3789         (XVCVDPUXDS_SCALE): Likewise.
3790         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
3791         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
3792         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
3793         VSX_BUILTIN_XVCVDPUXDS_SCALE.
3794         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
3795         prototype.
3796         * config/rs6000/rs6000.c (real.h): New include.
3797         (rs6000_scale_v2df): New function.
3798         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
3799         (UNSPEC_VSX_XVCVUXDDP): Likewise.
3800         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
3801         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
3802         (vsx_xvcvsxddp_scale): New define_expand.
3803         (vsx_xvcvsxddp): New define_insn.
3804         (vsx_xvcvuxddp_scale): New define_expand.
3805         (vsx_xvcvuxddp): New define_insn.
3806         (vsx_xvcvdpsxds_scale): New define_expand.
3807         (vsx_xvcvdpsxds): New define_insn.
3808         (vsx_xvcvdpuxds_scale): New define_expand.
3809         (vsx_xvcvdpuxds): New define_insn.
3810         * doc/extend.texi (vec_ctf): Add new prototypes.
3811         (vec_cts): Likewise.
3812         (vec_ctu): Likewise.
3813         (vec_splat): Likewise.
3814         (vec_div): Likewise.
3815         (vec_mul): Likewise.
3817 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3819         PR target/62275
3820         * config/arm/neon.md
3821         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
3822         <v_cmp_result>): New pattern.
3823         * config/arm/iterators.md (NEON_VCVT): New int iterator.
3824         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
3825         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
3826         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
3827         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
3828         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
3830 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3832         PR target/62275
3833         * config/arm/iterators.md (FIXUORS): New code iterator.
3834         (VCVT): New int iterator.
3835         (su_optab): New code attribute.
3836         (su): Likewise.
3837         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
3839 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3841         * config/aarch64/predicates.md (aarch64_comparison_operation):
3842         New special predicate.
3843         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
3844         aarch64_comparison_operation instead of matching an operator.
3845         Update operand numbers.
3846         (csinc3<mode>_insn): Likewise.
3847         (*csinv3<mode>_insn): Likewise.
3848         (*csneg3<mode>_insn): Likewise.
3849         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
3850         * config/aarch64/aarch64.c (aarch64_get_condition_code):
3851         Return -1 instead of aborting on invalid condition codes.
3852         (aarch64_print_operand): Update aarch64_get_condition_code callsites
3853         to assert that the returned condition code is valid.
3854         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
3856 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
3858         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
3859         tree.def, and gimple.def
3861 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
3862             Balaji V. Iyer  <balaji.v.iyer@intel.com>
3863             Igor Zamyatin  <igor.zamyatin@intel.com>
3865         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
3866         (__cilkrts_cilk_for_64): Likewise.
3867         * cilk-common.c (declare_cilk_for_builtin): New function.
3868         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
3869         __cilkrts_cilk_for_64 bultins.
3870         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
3871         CILK_TI_F_LOOP_64.
3872         (cilk_for_32_fndecl): New define.
3873         (cilk_for_64_fndecl): Likewise.
3874         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
3875         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
3876         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
3877         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
3878         GF_OMP_FOR_COMBINED_INTO.
3879         * gimplify.c (gimplify_scan_omp_clauses): Added
3880         OMP_CLAUSE__CILK_FOR_COUNT_ case.
3881         (gimplify_adjust_omp_clauses): Ditto.
3882         (gimplify_omp_for): Added CILK_FOR case.
3883         (gimplify_expr): Ditto.
3884         * omp-low.c: Include cilk.h.
3885         (extract_omp_for_data): Set appropriate kind for
3886         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
3887         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
3888         (create_omp_child_function_name): Added second argument to handle
3889         cilk_for case.
3890         (cilk_for_check_loop_diff_type): New function.
3891         (expand_cilk_for_call): Likewise.
3892         (expand_cilk_for): Likewise.
3893         (create_omp_child_function): Set cilk_for_count; handle the cases when
3894         it is true; call create_omp_child_function_name with second argument.
3895         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
3896         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
3897         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
3898         * tree-nested.c (convert_nonlocal_omp_clauses): Added
3899         OMP_CLAUSE__CILK_FOR_COUNT_ case.
3900         (convert_local_omp_clauses): Ditto.
3901         * tree-pretty-print.c (dump_omp_clause): Added
3902         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
3903         (dump_generic_node): Added CILK_FOR case.
3904         * tree.c (omp_clause_num_ops): New element
3905         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
3906         (omp_clause_code_name): New element _Cilk_for_count_.
3907         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
3908         * tree.def: Add tree code for CILK_FOR.
3910 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3912         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
3913         (ppc403-compare): Add "exts with dot" case.
3914         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
3915         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
3916         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
3917         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
3918         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
3919         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
3920         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
3921         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
3922         cell-cmp-microcoded): Similarly.
3923         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
3924         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
3925         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
3926         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
3927         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
3928         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
3929         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
3930         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
3931         (power6-compare): Add "exts with dot" case.
3932         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
3933         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
3934         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
3936         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
3937         if avoiding Cell microcode.
3938         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
3939         (is_cracked_insn): Ditto.
3940         (insn_must_be_first_in_group): Ditto.
3941         * config/rs6000/rs6000.md (dot): Adjust comment.
3942         (cell_micro): Handle exts+dot.
3943         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
3944         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
3945         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
3946         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
3947         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
3948         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
3949         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
3951 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3953         * config/rs6000/rs6000.md (QHSI): Delete.
3954         (EXTQI, EXTHI, EXTSI): New mode iterators.
3955         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
3956         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
3957         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
3958         9 anonymous instructions, and 8 splitters): Delete.
3959         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
3960         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
3961         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
3962         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
3963         *zero_extendsi<mode>2_dot2): New.
3965 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3967         * config/rs6000/rs6000.md (any_extend): New code iterator.
3968         (u, su): New code attributes.
3969         (dmode, DMODE): New mode attributes.
3970         (<su>mul<mode>3_highpart): New.
3971         (*<su>mul<mode>3_highpart): New.
3972         (<su>mulsi3_highpart_le): New.
3973         (<su>muldi3_highpart_le): New.
3974         (<su>mulsi3_highpart_64): New.
3975         (<u>mul<mode><dmode>3): New.
3976         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
3977         splitters): Delete.
3978         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
3979         splitters): Delete.
3981 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
3983         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
3984         *mulsi3_internal2, and two splitters): Delete.
3985         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
3986         Delete.
3987         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
3989 2014-09-02  Richard Biener  <rguenther@suse.de>
3991         PR tree-optimization/62695
3992         * tree-ssa-structalias.c (find_func_clobbers): Add missing
3993         vector truncate.
3995 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
3997         PR target/62312
3998         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
4000 2014-09-01  Andi Kleen  <ak@linux.intel.com>
4002         * file-find.c (add_prefix_begin): Add.
4003         (do_add_prefix): Rename from add_prefix with first argument.
4004         (add_prefix): Add new wrapper.
4005         * file-find.h (add_prefix_begin): Add.
4006         * gcc-ar.c (main): Support -B option.
4008 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4010         * genemit.c: Include dumpfile.h.
4011         (gen_split): Print name of splitter function to dump file.
4013 2014-09-01  Richard Biener  <rguenther@suse.de>
4015         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
4016         Use stack auto_vecs for constraint expressions.
4017         (find_func_aliases_for_call): Likewise.
4018         (find_func_aliases): Likewise.
4019         (find_func_clobbers): Likewise.
4021 2014-09-01  Richard Biener  <rguenther@suse.de>
4023         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
4024         operands vector in most cases.  Remove redundant code.
4026 2014-09-01  Olivier Hainque  <hainque@adacore.com>
4028         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
4029         $WIND_BASE instead of designating a harcoded arbitrary home dir.
4030         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
4032 2014-09-01  Richard Biener  <rguenther@suse.de>
4034         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
4035         copy_reference_ops_from_call, vn_nary_op_compute_hash,
4036         vn_reference_compute_hash, vn_reference_insert): Remove.
4037         (vn_reference_lookup_call): New function.
4038         * tree-ssa-sccvn.c (vn_reference_compute_hash,
4039         copy_reference_ops_from_ref, copy_reference_ops_from_call,
4040         vn_reference_insert, vn_nary_op_compute_hash): Make static.
4041         (create_reference_ops_from_call): Remove.
4042         (vn_reference_lookup_3): Properly update shared_lookup_references.
4043         (vn_reference_lookup_pieces): Assert that we updated
4044         shared_lookup_references properly.
4045         (vn_reference_lookup): Likewise.
4046         (vn_reference_lookup_call): New function.
4047         (visit_reference_op_call): Use it.  Avoid re-building the
4048         reference ops.
4049         (visit_reference_op_load): Remove redundant lookup.
4050         (visit_reference_op_store): Perform special tail-merging work
4051         only when possibly doing tail-merging.
4052         (visit_use): Likewise.
4053         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
4055 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
4057         PR target/62025
4058         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
4059         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
4060         (find_inc): Revert 2014-08-13 change.
4062 2014-09-01  Marek Polacek  <polacek@redhat.com>
4064         PR middle-end/61903
4065         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
4066         Change the type of V to unsigned HOST_WIDE_INT.
4068 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4070         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
4071         the size of byte markers.
4072         (do_shift_rotate): Fix confusion between host, target and marker byte
4073         size.
4074         (verify_symbolic_number_p): Likewise.
4075         (find_bswap_or_nop_1): Likewise.
4076         (find_bswap_or_nop): Likewise.
4078 2014-09-01  Olivier Hainque  <hainque@adacore.com>
4080         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
4081         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
4083 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
4085         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
4086         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
4087         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
4089 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
4091         PR sanitizer/61897
4092         PR sanitizer/62140
4093         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
4094         (build_check_stmt): Likewise.
4095         (instrument_strlen_call): Likewise.
4096         (asan_expand_check_ifn): Likewise and fix types.
4097         (maybe_cast_to_ptrmode): New function.
4099 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4101         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
4103 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
4105         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
4107 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
4109         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
4110         prefix to function labels when generating fast indirect calls.
4112 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
4114         PR bootstrap/62304
4116         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
4117         param back from rtx_insn * to rtx.  Rename param from "label" to
4118         "label_or_return", reintroducing "label" as an rtx_insn * after
4119         we've ensured it's not a RETURN.
4120         (first_active_target_insn): Likewise for return type and param;
4121         add a checked cast to rtx_insn * once we've ensured "insn" is not
4122         a RETURN.
4123         (steal_delay_list_from_target): Convert param "pnew_thread" back
4124         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
4125         with JUMP_LABEL.
4126         (own_thread_p): Convert param "thread" back from an rtx_insn * to
4127         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
4128         cast once we've established we're not dealing with a RETURN,
4129         renaming subsequent uses of "thread" to "thread_insn".
4130         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
4131         to JUMP_LABEL.
4132         (follow_jumps): Convert return type and param "label" from
4133         rtx_insn * back to rtx.  Move initialization of "value" to after
4134         the handling for ANY_RETURN_P, adding a checked cast there to
4135         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
4136         rename to "this_label_or_return", reintroducing "this_label" as
4137         an rtx_insn * once we've handled the case where it could be an
4138         ANY_RETURN_P.
4139         (fill_slots_from_thread): Rename param "thread" to
4140         "thread_or_return", converting from an rtx_insn * back to an rtx.
4141         Reintroduce name "thread" as an rtx_insn * local with a checked
4142         cast once we've handled the case of it being an ANY_RETURN_P.
4143         Convert local "new_thread" from an rtx_insn * back to an rtx.
4144         Add a checked cast when assigning to "trial" from "new_thread".
4145         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
4146         checked cast to rtx_insn * from "new_thread" when invoking
4147         get_label_before.
4148         (fill_eager_delay_slots): Convert locals "target_label",
4149         "insn_at_target" from rtx_insn * back to rtx.
4150         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
4151         (relax_delay_slots): Convert locals "trial", "target_label" from
4152         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
4153         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
4154         invoking update_block.
4155         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
4156         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
4158         * resource.h (mark_target_live_regs): Undo erroneous conversion
4159         of second param of r214693, converting it back from rtx_insn * to
4160         rtx, since it could be a RETURN.
4162         * resource.c (find_dead_or_set_registers): Similarly, convert
4163         param "jump_target" back from an rtx_insn ** to an rtx *, as we
4164         could be writing back a RETURN.  Rename local rtx_insn * "next" to
4165         "next_insn", and introduce "lab_or_return" as a local rtx,
4166         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
4167         (mark_target_live_regs): Undo erroneous conversion
4168         of second param of r214693, converting it back from rtx_insn * to
4169         rtx, since it could be a RETURN.  Rename it from "target" to
4170         "target_maybe_return", reintroducing the name "target" as a local
4171         rtx_insn * with a checked cast, after we've handled the case of
4172         ANY_RETURN_P.
4174 2014-08-29  DJ Delorie  <dj@redhat.com>
4176         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
4177         pointer size up to a power of two.
4178         * defaults.h (DWARF2_ADDR_SIZE): Round up.
4179         (POINTER_SIZE_UNITS): New, rounded up value.
4180         * dwarf2asm.c (size_of_encoded_value): Use it.
4181         (dw2_output_indirect_constant_1): Likewise.
4182         * expmed.c (init_expmed_one_conv): We now know the sizes of
4183         partial int modes.
4184         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
4185         * optabs.c (expand_float): Use precision, not size.
4186         (expand_fix): Likewise.
4187         * simplify-rtx (simplify_unary_operation_1): Likewise.
4188         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4189         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
4190         (default_assemble_integer) Likewise.
4191         (dump_tm_clone_pairs): Likewise.
4192         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
4193         * var-tracking.c (adjust_mems): Allow partial-int modes also.
4194         (prepare_call_arguments): Likewise.
4195         * stor-layout.c (finalize_type_size): Preserve precision.
4196         (layout_type): Use precision, not size.
4198         * expr.c (convert_move): If the target has an explicit converter,
4199         use it.
4201 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
4203         * gdbinit.in: Skip various inline functions in rtl.h when
4204         stepping.
4206 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
4208         PR bootstrap/62301
4209         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
4211 2014-08-29  Richard Biener  <rguenther@suse.de>
4213         PR tree-optimization/62291
4214         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
4215         exactly the vector size needed and use quick_push.
4216         (phi_translate_1): Adjust comment.
4217         (valid_in_sets): Remove block argument and remove pointless
4218         checking of NAMEs.
4219         (dependent_clean): Adjust for removal of block argument.
4220         (clean): Likewise.
4221         (compute_antic_aux): Likewise.
4222         (compute_partial_antic_aux): Likewise.
4224 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4225             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4226             Anna Tikhonova  <anna.tikhonova@intel.com>
4227             Ilya Tocar  <ilya.tocar@intel.com>
4228             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4229             Ilya Verbin  <ilya.verbin@intel.com>
4230             Kirill Yukhin  <kirill.yukhin@intel.com>
4231             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4233         * config/i386/sse.md
4234         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
4235         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
4236         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
4237         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
4239 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4240             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4241             Anna Tikhonova  <anna.tikhonova@intel.com>
4242             Ilya Tocar  <ilya.tocar@intel.com>
4243             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4244             Ilya Verbin  <ilya.verbin@intel.com>
4245             Kirill Yukhin  <kirill.yukhin@intel.com>
4246             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4248         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
4249         * config/i386/sse.md
4250         (define_mode_iterator VI4_128_8_256): New.
4251         (define_mode_iterator VI2_128_4_256): Ditto.
4252         (define_mode_iterator PMOV_DST_MODE): Rename into
4253         (define_mode_iterator PMOV_DST_MODE_1): this.
4254         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
4255         Use PMOV_DST_MODE_1 mode iterator.
4256         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4257         Ditto.
4258         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
4259         Ditto.
4260         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
4261         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
4262         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
4263         (define_mode_iterator PMOV_DST_MODE_2): New.
4264         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
4265         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
4266         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
4267         Ditto.
4268         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
4269         (define_mode_attr pmov_dst_3): Ditto.
4270         (define_mode_attr pmov_dst_zeroed_3): Ditto.
4271         (define_mode_attr pmov_suff_3): Ditto.
4272         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
4273         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
4274         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
4275         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
4276         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
4277         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
4278         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
4279         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
4280         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
4281         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
4282         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
4283         (define_mode_attr pmov_dst_4): Ditto.
4284         (define_mode_attr pmov_dst_zeroed_4): Ditto.
4285         (define_mode_attr pmov_suff_4): Ditto.
4286         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
4287         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
4288         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
4289         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
4290         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
4291         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
4292         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
4293         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
4294         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
4295         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
4296         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
4298 2014-08-29  Richard Biener  <rguenther@suse.de>
4300         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
4301         NON_LVALUE_EXPR in gimple.
4303 2014-08-29  Richard Biener  <rguenther@suse.de>
4305         PR middle-end/62292
4306         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
4307         from previous refactoring.
4308         (gimple_fold_builtin_strncpy): Likewise.
4310 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
4312         PR bootstrap/62300
4313         * function.c (assign_parm_setup_reg): Remove erroneous checked
4314         cast to rtx_insn * on result of gen_extend_insn in favor of
4315         introducing a new local rtx "pat".
4317 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4319         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
4320         to silence warning.
4321         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
4323 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4325         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
4326         (next_insn): Likewise.
4327         * emit-rtl.c (next_insn): Likewise.
4328         (previous_insn): Likewise.
4329         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
4330         "insn" and "next" from rtx to rtx_insn *.
4331         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
4332         "insn", "insn1", "vliw_start",  "prologue_end_note",
4333         "last_insn_in_packet".
4335 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4337         * shrink-wrap.h (active_insn_between): Strengthen both params from
4338         rtx to rtx_insn *.
4339         * function.c (active_insn_between): Likewise.
4341 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4343         * genattr.c (main): When writing out insn-attr.h, strengthen param
4344         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
4345         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
4346         writing out the definition of dfa_clear_single_insn_cache to the
4347         generated insn-automata.c
4349 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4351         * resource.h (clear_hashed_info_for_insn): Strengthen param from
4352         rtx to rtx_insn *.
4353         (incr_ticks_for_insn): Likewise.
4354         (init_resource_info): Likewise.
4356         * resource.c (init_resource_info): Likewise.
4357         (clear_hashed_info_for_insn): Likewise.
4358         (incr_ticks_for_insn): Likewise.
4360         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
4361         rtx to rtx_insn *.
4362         (steal_delay_list_from_target): Use methods of "seq".
4363         (try_merge_delay_insns): Use methods of "merged_insns".
4364         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
4365         (reorg_redirect_jump): Likewise for param "jump".
4367 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4369         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
4370         rtx to rtx_insn *.
4371         * config/s390/s390.c (s390_split_branches): Eliminate top-level
4372         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
4373         "set_insn".
4374         (s390_mainpool_finish): In three places, split out a local rtx
4375         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
4376         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
4377          and split another local rtx "insn" out into rtx "pat" and
4378         rtx_insn * "insn".
4379         * config/sh/sh.c (output_branchy_insn): Rather than working
4380         directly on operands[9], introduce local rtx_code_label *
4381         variables named "lab" in two places, working on them, and then
4382         assigning them to operands[9], so that the intervening operations
4383         are known by the type system to be on insns.
4385 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4387         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
4388         const rtx_insn *.
4390         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
4391         in invocation of INSN_HAS_LOCATION.
4393 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4395         * config/rs6000/altivec.h (vec_xl): New #define.
4396         (vec_xst): Likewise.
4397         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
4398         (XXSPLTD_V2DI): Likewise.
4399         (DIV_V2DI): Likewise.
4400         (UDIV_V2DI): Likewise.
4401         (MUL_V2DI): Likewise.
4402         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4403         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
4404         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
4405         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
4406         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
4407         (UNSPEC_VSX_DIVSD): Likewise.
4408         (UNSPEC_VSX_DIVUD): Likewise.
4409         (UNSPEC_VSX_MULSD): Likewise.
4410         (vsx_mul_v2di): New insn-and-split.
4411         (vsx_div_v2di): Likewise.
4412         (vsx_udiv_v2di): Likewise.
4413         (vsx_xxspltd_<mode>): New insn.
4415 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4417         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
4418         NEXT_INSN.
4419         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
4420         (NEXT_INSN): Likewise.
4421         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
4422         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
4423         const rtx_insn *.
4424         (no_labels_between_p): Likewise for both params.
4426         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
4427         cast when using NEXT_INSN on operands[2].
4428         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
4429         "insn" from rtx to rtx_insn *, adding a checked cast.
4430         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
4431         rtx_insn *.
4432         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
4433         for third param.
4434         (arc_text_label): Likewise for param "insn".
4435         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
4436         "insn".
4437         (arc_ccfsm_record_condition): Likewise for param "jump".
4438         (arc_text_label): Likewise for local "label".
4439         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
4440         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
4441         a method for typesafety.  Add a checked cast.
4442         * config/arc/constraints.md (Clb): Add a checked cast when getting
4443         the CODE_LABEL from a LABEL_REF.
4444         * config/arm/arm.c (require_pic_register): Strengthen locals
4445         "seq", "insn" from rtx to rtx_insn *.
4446         (create_fix_barrier): Likewise for locals "selected", "next".
4447         (thumb1_reorg): Likewise for locals "prev", "insn".
4448         (arm_expand_prologue): Likewise for local "last".
4449         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
4450         operands[0].
4451         (thumb2_output_casesi): Likewise for operands[2].
4452         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
4453         strengthen local "insn" from rtx to rtx_insn *.
4454         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
4455         type and param "insn".
4456         (find_prev_insn_start): Likewise.
4457         (hwloop_optimize): Likewise for locals "insn", "last_insn",
4458         "prev".
4459         (gen_one_bundle): Likewise for loal "t".
4460         (find_load): Likewise for param "insn".
4461         (workaround_speculation): Likewise for locals "insn", "next",
4462         "target", "next_tgt".
4463         * config/c6x/c6x.c (assign_reservations): Likewise for both params
4464         and for locals "insn", "within", "last".
4465         (count_unit_reqs): Likewise for params "head", "tail" and local
4466         "insn".
4467         (try_rename_operands): Likewise for params "head", "tail".
4468         (reshuffle_units): Likewise for locals "head", "tail", "insn".
4469         (struct c6x_sched_context): Likewise for fields
4470         "last_scheduled_insn", "last_scheduled_iter0".
4471         (init_sched_state): Replace NULL_RTX with NULL.
4472         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
4473         to rtx_insn *.
4474         (undo_split_delayed_nonbranch): Likewise for param and for local
4475         "prev".
4476         (conditionalize_after_sched): Likewise for local "insn".
4477         (bb_earliest_end_cycle): Likewise.
4478         (filter_insns_above): Likewise for locals "insn", "next".
4479         (hwloop_optimize): Remove redundant checked cast.
4480         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
4481         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
4482         NULL_RTX with NULL.
4483         (cris_simple_epilogue): Likewise.
4484         (cris_expand_prologue): Likewise.
4485         (cris_expand_epilogue): Likewise.
4486         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
4487         local "insn" from rtx to rtx_insn *.
4488         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
4489         (struct frv_packet_group): Likewise for the elements within array
4490         fields "insns", "sorted", and for field "nop".
4491         (frv_packet): Likewise for the elements within array field
4492         "insns".
4493         (frv_add_insn_to_packet): Likewise for param "insn".
4494         (frv_insert_nop_in_packet): Likewise for param "insn" and local
4495         "last".
4496         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
4497         (frv_sort_insn_group_1): Likewise for local "insn".
4498         (frv_optimize_membar_local): Likewise.
4499         (frv_align_label): Likewise for locals "x", "last", "barrier",
4500         "label".
4501         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
4502         local.
4503         (ia64_sched_init): Likewise for local "insn".
4504         (scheduled_good_insn): Likewise for param "last".
4505         (struct _ia64_sched_context): Likewise for field
4506         "last_scheduled_insn".
4507         (ia64_init_sched_context): Replace NULL_RTX with NULL.
4508         (struct bundle_state): Likewise for field "insn".
4509         (issue_nops_and_insn): Likewise for param "insn".
4510         (get_next_important_insn): Likewise for return type and both
4511         params.
4512         (ia64_add_bundle_selector_before): Likewise for param "insn".
4513         (bundling): Likewise for params "prev_head_insn", "tail" and
4514         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
4515         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
4516         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
4517         Strengthen final param from rtx to rtx_insn *.
4518         (iq2000_move_1word): Likewise for second param.
4519         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
4520         param "cur_insn" and local "next_insn".
4521         (iq2000_move_1word): Likewise for param "insn".
4522         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
4523         casts when using NEXT_INSN on operands[1].
4524         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
4525         "insn" from rtx to rtx_insn *.
4526         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
4527         "x", introducing local rtx_insn * "insn" for when working with the
4528         CODE_LABEL of the LABEL_REF.
4529         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
4530         rtx_insn *.
4531         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
4532         param.
4533         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
4534         type.
4535         (conditionalize_block): Likewise for return type and param.
4536         (mcore_is_dead): Likewise for param "first" and local "insn".
4537         (emit_new_cond_insn): Likewise for return type.
4538         (conditionalize_block): Likewise for return type, param, and
4539         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
4540         "newinsn".
4541         (conditionalize_optimization): Likewise for local "insn".
4542         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
4543         using NEXT_INSN.
4544         * config/microblaze/microblaze.md: Add checked casts when using
4545         NEXT_INSN.
4546         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
4547         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
4548         and rtx_insn * "insn".
4549         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
4550         checked cast when using NEXT_INSN on operands[2].
4551         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
4552         local "insn" from rtx to rtx_insn *.
4553         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
4554         Likewise.
4555         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
4556         Add a checked cast when using NEXT_INSN on operands[1].
4557         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
4558         rtx to rtx_insn *.
4559         (pa_output_cbranch): Likewise for final param.
4560         (pa_output_lbranch): Likewise for second param.
4561         (pa_output_bb): Likewise for third param.
4562         (pa_output_bvb): Likewise.
4563         (pa_output_dbra): Likewise for second param.
4564         (pa_output_movb): Likewise.
4565         (pa_output_parallel_movb): Likewise.
4566         (pa_output_parallel_addb): Likewise.
4567         (pa_output_millicode_call): Likewise for first param.
4568         (pa_output_mul_insn): Likewise for second param.
4569         (pa_output_div_insn): Likewise for third param.
4570         (pa_output_mod_insn): Likewise for second param.
4571         (pa_jump_in_call_delay): Likewise for param.
4572         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
4573         (pa_output_div_insn): Likewise.
4574         (pa_output_mod_insn): Likewise.
4575         (pa_output_cbranch): Likewise.
4576         (pa_output_lbranch): Likewise.
4577         (pa_output_bb): Likewise.
4578         (pa_output_bvb): Likewise.
4579         (pa_output_dbra): Likewise.
4580         (pa_output_movb): Likewise.
4581         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
4582         to simplify and for typesafety.
4583         (pa_output_call): Use method of rtx_sequence *.
4584         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
4585         (pa_jump_in_call_delay): Likewise.
4586         (pa_output_parallel_movb): Likewise.
4587         (pa_output_parallel_addb): Likewise.
4588         (pa_following_call): Likewise.
4589         (pa_combine_instructions): Likewise for locals "anchor",
4590         "floater".
4591         (pa_can_combine_p): Likewise for params "anchor", "floater" and
4592         locals "start", "end".
4593         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
4594         param "insn" and local "local_insn".
4595         (picochip_final_prescan_insn): Likewise for local "local_insn".
4596         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
4597         local "insn".
4598         (uses_TOC): Likewise.
4599         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
4600         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
4601         splitting out to more tightly-scoped locals, 3 as rtx and one as
4602         rtx_insn *.
4603         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
4604         to rtx_insn *.
4605         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
4606         where needed.
4607         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
4608         to rtx_insn *.
4609         (fixup_addr_diff_vecs): Likewise.
4610         (reg_unused_after): Likewise for param 2.
4611         (sh_can_redirect_branch): Likewise for both params.
4612         (check_use_sfunc_addr): Likewise for param 1.
4613         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
4614         (find_barrier): Likewise for local "last_got".
4615         (gen_block_redirect): Likewise for return type, param "jump" and
4616         locals "prev", "scan", "next", "insn".
4617         (struct far_branch): Likewise for fields "near_label",
4618         "insert_place", "far_label".
4619         (gen_far_branch): Likewise for local "jump".
4620         (fixup_addr_diff_vecs): Likewise for param "first" and locals
4621         "insn", "prev".
4622         (barrier_align): Likewise for param and for locals "prev", "x".
4623         Introduce local rtx_sequence * "prev_seq" and use insn method for
4624         typesafety and clarity.
4625         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
4626         (get_dest_uid): Likewise for local "dest".
4627         (split_branches): Likewise for locals "next", "beyond", "label",
4628         "block", "far_label".  Add checked casts when assigning to
4629         bp->far_label and "far_label".
4630         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
4631         (sequence_insn_p): Likewise.
4632         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
4633         more loop-scoped rtx "insn" when walking LABEL_REFS.
4634         (sh_can_redirect_branch): Strengthen both params from rtx to
4635         rtx_insn *.
4636         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
4637         new local rtx_sequence * "seq" via a dyn_cast, and use a method
4638         for clarity and typesafety.
4639         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
4640         "insn" from rtx to rtx_insn *.
4641         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
4642         when using NEXT_INSN on the CODE_LABEL in operands[2].
4643         (define_insn "casesi_worker_2"): Likewise.
4644         (define_insn "casesi_shift_media"): Likewise.
4645         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
4646         operands[3].
4647         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
4648         Strengthen field "insn" from rtx to rtx_insn *.
4649         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
4650         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
4651         param "start_insn" and local "start_insn".
4652         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
4653         field "insn".
4654         (find_set_of_reg_bb): Likewise for param "insn".
4655         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
4656         (trace_reg_uses): Likewise for param "start_insn".
4657         (sh_treg_combine::cbranch_trace): Likewise for field
4658         "cbranch_insn".
4659         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
4660         param "insn".
4661         (sh_treg_combine::record_set_of_reg): Likewise for param
4662         "start_insn" and local "i".
4663         (sh_treg_combine::can_remove_cstore): Likewise for local
4664         "prev_insn".
4665         (sh_treg_combine::try_optimize_cbranch): Likewise for param
4666         "insn".
4667         (sh_treg_combine::execute): Likewise for local "i".
4668         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
4669         param.
4670         (sparc_check_64): Likewise for second param.
4671         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
4672         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
4673         dyn_cast, using its insn method for typesafety and clarity.
4674         (empty_delay_slot): Strengthen param "insn" from rtx to
4675         rtx_insn *.
4676         (set_extends): Likewise.
4677         (sparc_check_64): Likewise.
4678         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
4679         for locals "seq", "last_insn".
4680         (combine_bnp): Likewise for param "insn".
4681         (xstormy16_reorg): Likewise for local "insn".
4682         * config/v850/v850.c (substitute_ep_register): Likewise for params
4683         "first_insn", "last_insn" and local "insn".
4684         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
4685         elements of "regs" array, and local "insn".
4686         * except.c (emit_note_eh_region_end): Likewise for param "insn".
4687         * final.c (final_sequence): Strengthen this global from rtx to
4688         rtx_sequence *.
4689         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
4690         rtx_insn *.
4691         (final_scan_insn): Update assignment to "final_sequence" to be
4692         from "seq", the cast version of "body", for type-safety.
4693         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
4694         "insns" from rtx to rtx_insn *.
4695         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
4696         * genattr.c (main): When writing out generated insn-attr.h,
4697         strengthen params 1 and 3 of eligible_for_delay,
4698         eligible_for_annul_true, eligible_for_annul_false from rtx to
4699         rtx_insn *.
4700         * genattrtab.c (write_eligible_delay): Likewise when writing out
4701         generated insn-attrtab.c; also local "insn" the generated
4702         functions.
4703         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
4704         to rtx_insn *.
4705         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
4706         "start_label" from rtx to rtx_insn *.
4707         * ira.c (decrease_live_ranges_number): Likewise for local "p".
4708         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
4709         "insns" and local "insn".
4710         (validate_equiv_mem): Likewise for param "start" and local "insn".
4711         (memref_used_between_p): Likewise for params "start", "end" and
4712         local "insn".
4713         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
4714         final param.
4715         * loop-doloop.c (doloop_optimize): Within region guarded by
4716         INSN_P (doloop_pat), introduce a new local rtx_insn *
4717         "doloop_insn" via a checked cast, and use it for typesafety,
4718         eventually writing the value back into doloop_pat.
4719         * output.h (final_sequence): Strengthen this global from rtx to
4720         rtx_sequence *.
4721         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
4722         reintroducing "insn" as an rtx_insn * via a checked cast.
4723         Strengthen param "attempt" and local "new_insn"from rtx to
4724         rtx_insn *.
4725         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
4726         to rtx_insn *.
4727         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
4728         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
4729         "p" in favor of more tightly-scoped replacements, sometimes rtx
4730         and sometimes rtx_insn *, as appropriate.
4731         (delete_output_reload): Eliminate top-level rtx "i1", splitting
4732         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
4733         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
4734         local "trial" from rtx to rtx_insn *.
4735         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
4736         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
4737         rtx_sequence * and use methods for clarity and typesafety.
4738         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
4739         rtx to rtx_insn *.  Strenghten local "li" from rtx to
4740         rtx_insn_list * and use its methods for clarity and typesafety.
4741         (steal_delay_list_from_target): Strengthen param "insn" from rtx
4742         to rtx_insn *.
4743         (steal_delay_list_from_fallthrough): Likewise.
4744         (try_merge_delay_insns): Likewise for param "thread" and locals
4745         "trial", "next_trial", "delay_insn".
4746         (redundant_insn): Likewise for param "target" and local "trial".
4747         (own_thread_p): Likewise for param "thread" and locals
4748         "active_insn", "insn".
4749         (get_label_before): Likewise for param "insn".
4750         (fill_simple_delay_slots): Likewise for local "new_label"; use
4751         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
4752         (label_before_next_insn): Strengthen return type and local "insn"
4753         from rtx to rtx_insn *.
4754         (relax_delay_slots): Likewise for locals "other", "tmp".
4755         (make_return_insns): Likewise for param "first" and locals "insn",
4756         "jump_insn", "prev".  Move declaration of "pat" to its assignment
4757         and strengthen from rtx to rtx_sequence *.  Use its methods for
4758         clarity and typesafety.
4759         * rtlanal.c (no_labels_between_p): Strengthen params from
4760         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
4761         rtx_insn *.
4762         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
4763         from const_rtx to const rtx_insn *.
4764         (reg_set_between_p): Rename param "from_insn" to
4765         "uncast_from_insn", and reintroduce "from_insn" as a
4766         const rtx_insn * via a checked cast.
4767         (modified_between_p): Likewise for param "start" as "uncast_start".
4768         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
4769         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
4770         "tmp", head" from rtx to rtx_insn *.
4771         (recompute_rev_top_order): Likewise for local "insn".
4772         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
4773         * store-motion.c (build_store_vectors): Likewise for local "insn".
4774         Strengthen local "st" from rtx to rtx_insn_list * and use methods
4775         for clarity and typesafety.
4776         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
4777         rtx to rtx_insn *.
4778         (computation_cost): Likewise for local "seq".
4779         (get_address_cost): Likewise.
4781 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4783         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
4784         const rtx_insn *.
4785         (label_is_jump_target_p): Likewise for second param.
4787         * rtlanal.c (tablejump_p): Likewise for param "insn".
4788         (label_is_jump_target_p): Likewise for param "jump_insn".
4790 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4792         * rtl.h (find_first_parameter_load): Strengthen return type and
4793         both params from rtx to rtx_insn *.
4794         * rtlanal.c (find_first_parameter_load): Strengthen return type,
4795         both params and locals "before", "first_set" from rtx to
4796         rtx_insn *.  Remove now-redundant cast.
4797         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
4799 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4801         * rtl.h (find_last_value): Delete.
4802         * rtlanal.c (find_last_value): Delete.
4804 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4806         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
4807         from rtx to rtx_insn *.
4808         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
4809         rtx "note" with new local rtx_insn * "new_head" when calculating
4810         head insn of new basic block.
4811         * combine.c (combine_split_insns): Strengthen return type and local
4812         "ret" from rtx to rtx_insn *.
4813         (likely_spilled_retval_p): Likewise for locals "use" and "p".
4814         (try_combine): Eliminate local "m_split", splitting into new
4815         locals "m_split_insn" and "m_split_pat".
4816         (find_split_point): Strengthen local "seq" from rtx into
4817         rtx_insn *.
4818         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
4819         locals "label", "branch".
4820         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
4821         for local "insn".
4822         (define_expand "umulsi3_highpart"): Likewise for local "insn".
4823         * dse.c (note_add_store_info): Likewise for fields "first",
4824         "current".
4825         (note_add_store): Likewise for local "insn".
4826         (emit_inc_dec_insn_before): Likewise for locals "insn",
4827         "new_insn", "cur".
4828         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
4829         (replace_read): Likewise for locals "insns", "this_insn".
4830         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
4831         (notice_eh_throw): Likewise for param "insn".
4832         (before_next_cfi_note): Likewise for return type, param, and local
4833         "prev".
4834         (connect_traces): Likewise for local "note".
4835         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
4836         (verify_rtl_sharing): Likewise.
4837         (unshare_all_rtl_in_chain): Likewise for param "insn".
4838         (get_first_nonnote_insn): Likewise for local "insn".
4839         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
4840         "seq" and use its methods to clarify things.
4841         (next_insn): Strengthen return type from rtx to rtx_insn *.
4842         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
4843         local rtx_insn * using a checked cast, dropping a checked cast
4844         made redundant by this change.  Use a cast to and method of
4845         rtx_sequence to clarify the code.
4846         (previous_insn): Rename param "insn" to "uncast_insn" and
4847         reintroduce "insn" as a local rtx_insn * using a checked cast,
4848         dropping a checked cast made redundant by this change.  Use a cast
4849         to and method of rtx_sequence to clarify the code.
4850         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
4851         reintroduce "insn" as a local rtx_insn * using a checked cast,
4852         dropping a checked cast made redundant by this change.
4853         (next_nonnote_insn_bb): Likewise.
4854         (prev_nonnote_insn): Likewise.
4855         (prev_nonnote_insn_bb): Likewise.
4856         (next_nondebug_insn): Likewise.
4857         (prev_nondebug_insn): Likewise.
4858         (next_nonnote_nondebug_insn): Likewise.
4859         (prev_nonnote_nondebug_insn): Likewise.
4860         (next_real_insn): Likewise.
4861         (prev_real_insn): Likewise.
4862         (next_active_insn): Likewise.
4863         (prev_active_insn): Likewise.
4864         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
4865         clarity.
4866         (prev_cc0_setter): Likewise.
4867         (try_split): Rename param "trial" to "uncast_trial" and
4868         reintroduce "insn" as a local rtx_insn * using a checked cast,
4869         dropping checked casts made redundant by this change.
4870         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
4871         rtx to rtx_insn *.
4872         (remove_insn): Rename param "insn" to "uncast_insn" and
4873         reintroduce "insn" as a local rtx_insn * using a checked cast.
4874         (emit_pattern_after_setloc): Likewise for param "after", as
4875         "uncast_after".
4876         (emit_pattern_after): Likewise.  Strengthen local "prev" from
4877         rtx to rtx_insn *.
4878         (emit_pattern_before_setloc): Rename param "before" to
4879         "uncast_before" and reintroduce "before" as a local rtx_insn *
4880         using a checked cast.  Strengthen locals "first", "last" from
4881         rtx to rtx_insn *.
4882         (emit_pattern_before): Likewise rename/cast param "before" to
4883         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
4884         * except.c (copy_reg_eh_region_note_forward): Strengthen param
4885         "first" and local "insn" from rtx to rtx_insn *.
4886         (copy_reg_eh_region_note_backward): Likewise for param "last"
4887         and local "insn".
4888         * expr.c (fixup_args_size_notes): Rename param "last" to
4889         "uncast_last" and reintroduce "last" as a local rtx_insn *
4890         using a checked cast.  Strengthen local "insn" from rtx to
4891         rtx_insn *.
4892         * function.c (set_insn_locations): Strengthen param "insn" from
4893         rtx to rtx_insn *.
4894         (record_insns): Likewise for param "insns" and local "tmp".
4895         (active_insn_between): Rename param "tail" to
4896         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
4897         using a checked cast.
4898         (thread_prologue_and_epilogue_insns): Split out top-level local
4899         rtx "seq" into three different rtx_insn * locals.  Strengthen
4900         local "prologue_seq" from rtx to rtx_insn *.
4901         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
4902         from rtx to rtx_insn *.
4903         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
4904         (priority): Likewise for locals "prev_first", "twin".
4905         (setup_insn_max_reg_pressure): Likewise for param "after".
4906         (sched_setup_bb_reg_pressure_info): Likewise.
4907         (no_real_insns_p): Strengthen params from const_rtx to
4908         const rtx_insn *.
4909         (schedule_block): Strengthen local "next_tail" from rtx to
4910         rtx_insn *.
4911         * ifcvt.c (find_active_insn_before): Strengthen return type and
4912         param "insn" from rtx to rtx_insn *.
4913         (find_active_insn_after): Likewise.
4914         (cond_exec_process_insns): Likewise for param "start" and local "insn".
4915         (cond_exec_process_if_block): Likewise for locals "then_start",
4916         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
4917         (noce_process_if_block): Likewise for local "jump".
4918         (merge_if_block): Likewise for two locals named "end".
4919         (cond_exec_find_if_block): Likewise for local "last_insn".
4920         * jump.c (delete_related_insns): Rename param "insn" to
4921         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
4922         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
4923         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
4924         NULL.
4925         (split_reg): Likewise.
4926         * lra.c (lra_process_new_insns): Likewise.
4927         * modulo-sched.c (permute_partial_schedule): Strengthen param
4928         "last" from rtx to rtx_insn *.
4929         * optabs.c (add_equal_note): Likewise for param "insns" and local
4930         "last_insn".
4931         (expand_binop_directly): Add checked casts to rtx_insn * within
4932         NEXT_INSN (pat) uses.
4933         (expand_unop_direct): Likewise.
4934         (maybe_emit_unop_insn): Likewise.
4935         * recog.c (peep2_attempt): Strengthen locals "last",
4936         "before_try", "x" from rtx to rtx_insn *.
4937         * reorg.c (optimize_skip): Strengthen return type and local
4938         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
4939         and locals "trial", "next_trial" from rtx to rtx_insn *.
4940         * resource.c (next_insn_no_annul): Strengthen return type and
4941         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
4942         rtx_sequence to clarify the code.
4943         (mark_referenced_resources): Add a checked cast to rtx_insn *
4944         within PREV_INSN (x).
4945         (find_dead_or_set_registers): Strengthen return type, param
4946         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
4947         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
4948         to rtx_insn **.
4949         (mark_target_live_regs): Strengthen params "insns" and "target",
4950         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
4951         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
4952         the code.
4953         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
4954         from rtx to rtx_insn *.
4955         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
4956         from rtx to rtx_insn *.
4957         (copy_reg_eh_region_note_backward): Likewise.
4958         (unshare_all_rtl_in_chain): Likewise for sole param.
4959         (dump_rtl_slim): Strengthen second and third params from const_rtx
4960         to const rtx_insn *.
4961         * sched-deps.c (sched_free_deps): Strengthen params "head" and
4962         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
4963         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
4964         "next_tail" from rtx to rtx_insn *.
4965         (begin_move_insn): Likewise for local "next".
4966         * sched-int.h (sched_free_deps): Likewise for first and second
4967         params.
4968         (no_real_insns_p): Strengthen both params from const_rtx to
4969         const rtx_insn *.
4970         (sched_setup_bb_reg_pressure_info): Strengthen second params from
4971         rtx to rtx_insn *.
4972         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
4973         "next_tail".
4974         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
4975         and locals "insn", "tail" from const_rtx to const rtx_insn *.
4976         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
4977         rtx_insn *.
4978         (debug_rtl_slim): Strengthen params "first" and "last" from
4979         const_rtx to const rtx_insn *.
4980         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
4981         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
4982         (convert_to_simple_return): Likewise for param "returnjump".
4983         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
4984         "prologue_seq".
4985         (convert_to_simple_return): Likewise for param "returnjump".
4986         * valtrack.c (propagate_for_debug): Likewise for params
4987         "insn", "last".
4988         * valtrack.h (propagate_for_debug): Likewise for second param.
4990 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4992         * output.h (insn_current_reference_address): Strengthen param
4993         from rtx to rtx_insn *.
4994         * final.c (insn_current_reference_address): Likewise.
4996 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
4998         * basic-block.h (inside_basic_block_p): Strengthen param from
4999         const_rtx to const rtx_insn *.
5000         * cfgbuild.c (inside_basic_block_p): Likewise.
5002 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5004         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
5005         rtx_insn *.
5006         (get_trace_info): Likewise for param "insn".
5007         (save_point_p): Likewise.
5008         (maybe_record_trace_start): Likewise for both params.
5009         (maybe_record_trace_start_abnormal): Likewise.
5010         (create_trace_edges): Likewise for sole param and for three of the
5011         locals named "lab".
5012         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
5013         to rtx_insn *, and update a call to pat->element to pat->insn.
5015 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5017         * function.h (struct expr_status): Convert field "x_forced_labels"
5018         from rtx_expr_list * to rtx_insn_list *.
5020         * cfgbuild.c (make_edges): Convert local "x" from an
5021         rtx_expr_list * to an rtx_insn_list *, replacing use of
5022         "element" method with "insn" method.
5023         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5024         * except.c (sjlj_emit_dispatch_table): Replace use of
5025         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
5026         forced_labels.
5027         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
5028         rtx_expr_list * to an rtx_insn_list *, replacing use of
5029         "element" method with "insn" method.
5030         * reload1.c (set_initial_label_offsets): Likewise for local "x".
5031         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
5032         rtx_insn *, adding a checked cast.  Replace use of
5033         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
5034         forced_labels.
5035         (expand_label): Likewise for local "label_r".
5037 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5039         * function.h (struct rtl_data): Convert field
5040         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
5041         rtx_insn_list *.
5042         * rtl.h (remove_node_from_insn_list): New prototype.
5044         * builtins.c (expand_builtin): When prepending to
5045         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5046         gen_rtx_EXPR_LIST.
5047         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
5048         to rtx_insn_list *, and use its "insn" method rather than
5049         "element" method.
5050         * cfgrtl.c (delete_insn): Use new function
5051         remove_node_from_insn_list rather than
5052         remove_node_from_expr_list.
5053         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
5054         to rtx_insn_list *, and use its "insn" method rather than
5055         "element" method.
5056         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5057         * reload1.c (set_initial_label_offsets): Likewise for local "x".
5058         * rtlanal.c (remove_node_from_insn_list): New function, adapted
5059         from remove_node_from_expr_list.
5060         * stmt.c (expand_label): When prepending to
5061         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
5062         gen_rtx_EXPR_LIST.
5064 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5066         * function.h (struct rtl_data): Strengthen fields "x_return_label"
5067         and "x_naked_return_label" from rtx to rtx_code_label *.
5069 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5071         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
5072         (SET_NEXT_INSN): Likewise.
5073         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
5075         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
5076         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
5077         to split out the SEQUENCE from local "bundle", strengthening the
5078         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
5079         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
5080         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
5081         and the type of the elements of the "slot" array from rtx to
5082         rtx_insn *.
5083         (reorg_split_calls): Likewise for locals "insn" and "next", and
5084         the type of the elements of the "slot" array.
5086         * config/frv/frv.c (frv_nops): Likewise for the elements of this
5087         array.
5088         (frv_function_prologue): Likewise for locals "insn", "next",
5089         "last_call".
5090         (frv_register_nop): Introduce a local "nop_insn" to be the
5091         rtx_insn * containing rtx "nop".
5093         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
5094         used as an insn and sometimes as a pattern, so rename it to
5095         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
5096         using it where dealing with the core insn.
5098         * config/picochip/picochip.c (reorder_var_tracking_notes):
5099         Strengthen locals "insn", "next", "last_insn", "queue",
5100         "next_queue", "prev" from rtx to rtx_insn *.
5102         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
5103         the second param is an rtx_insn ** rather than an rtx **.
5104         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
5105         from rtx to rtx_sequence *, and introduce local named "sequence",
5106         using methods of rtx_sequence to clarify the code.
5107         (remove_insn): Introduce local rtx_sequence * named "sequence" and
5108         use its methods.
5109         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
5110         Rename param "after" to "uncast_after", reintroducing "after" as a
5111         local rtx_insn * with a checked cast.
5112         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
5113         reintroducing "after" as a local rtx_insn * with a checked cast.
5114         Strengthen local "last" from rtx to rtx_insn * and remove the
5115         now-redundant checked casts.
5116         (copy_delay_slot_insn): Strengthen return type and param from rtx
5117         to rtx_insn *.
5119         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
5120         "last" from rtx to rtx_insn *.
5122 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
5124         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
5125         param from rtx to rtx_insn *.
5127         * emit-rtl.c (copy_delay_slot_insn): Likewise.
5129         * reorg.c (skip_consecutive_labels): Strengthen return type, param
5130         and local "insn" from rtx to rtx_insn *.
5131         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
5132         (unfilled_slots_next): Likewise.
5133         (function_return_label): Strengthen from rtx to rtx_code_label *.
5134         (function_simple_return_label): Likewise.
5135         (first_active_target_insn): Strengthen return type and param from
5136         rtx to rtx_insn *.
5137         (find_end_label): Strengthen return type from rtx to
5138         rtx_code_label *; strengthen locals as appropriate.
5139         (emit_delay_sequence): Strengthen return type, param "insn" and
5140         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
5141         and local "li" from rtx to rtx_insn_list *, using methods of
5142         rtx_insn_list for clarity and typesafety.
5143         (add_to_delay_list): Strengthen return type and param "insn" from
5144         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
5145         rtx_insn_list * and use methods of rtx_insn_list.
5146         (delete_from_delay_slot): Strengthen return type, param "insn",
5147         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
5148         Strengthen local "seq" from rtx to rtx_sequence *, and local
5149         "delay_list" from rtx to rtx_insn_list *, using methods of
5150         rtx_sequence for clarity and type-safety.
5151         (delete_scheduled_jump): Add checked cast when invoking
5152         delete_from_delay_slot.  Strengthen local "trial" from rtx to
5153         rtx_insn *.
5154         (optimize_skip): Strengthen return type and local "delay_list"
5155         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
5156         rtx_insn *.
5157         (steal_delay_list_from_target): Strengthen return type, param
5158         "delay_list" and local "new_delay_list" from rtx to
5159         rtx_insn_list *.  Strengthen param "seq" from rtx to
5160         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
5161         rtx_insn **.
5162         Split out local "temp" into multiple more-tightly scoped locals:
5163         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
5164         of rtx_insn_list and rtx_sequence for clarity and typesafety.
5165         Strengthen locals named "trial" from rtx to rtx_insn *.
5166         (steal_delay_list_from_fallthrough): Strengthen return type and
5167         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
5168         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
5169         Strengthen local "trial" from rtx to rtx_insn *.
5170         (try_merge_delay_insns): Strength local "merged_insns" from rtx
5171         to rtx_insn_list * and use its methods.  Strengthen local "pat"
5172         from rtx to rtx_sequence * and use its methods.  Strengthen locals
5173         "dtrial" and "new_rtx" from rtx to rtx_insn *.
5174         (get_label_before): Strengthen return type and local "label" from
5175         rtx to rtx_insn *.
5176         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
5177         "next_trial", "next", prev".  Strengthen local "delay_list" from
5178         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
5179         rtx_insn **.
5180         (follow_jumps): Strengthen return type, param "label" and locals
5181         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
5182         (fill_slots_from_thread): Strengthen return type, param
5183         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
5184         "insn", "thread", "opposite_thread" and locals "new_thread",
5185         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
5186         "sequence" from a checked cast to rtx_sequence so that we can call
5187         steal_delay_list_from_target and steal_delay_list_from_fallthrough
5188         with an rtx_sequence *.
5189         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
5190         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
5191         Strengthen local "delay_list" from rtx to rtx_insn_list *.
5192         (relax_delay_slots): Strengthen param "first" and locals "insn",
5193         "next", "trial", "delay_insn", "target_label" from rtx to
5194         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
5195         Introduce a local "trial_seq" for PATTERN (trial) of type
5196         rtx_sequence *, in both cases using methods of rtx_sequence.
5197         (dbr_schedule): Strengthen param "first" and locals "insn",
5198         "next", "epilogue_insn" from rtx to rtx_insn *.
5200 2014-08-28  Richard Biener  <rguenther@suse.de>
5202         PR tree-optimization/62283
5203         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5204         Do not peel loops for alignment where the vector loop likely
5205         doesn't run at least VF times.
5207 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
5209         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
5210         important_candidates.  Consider all important candidates if
5211         IVS doesn't give any result.  Remove check on ivs->upto.
5212         (try_add_cand_for): Call iv_ca_add_use only once.
5214 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5215             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5216             Anna Tikhonova  <anna.tikhonova@intel.com>
5217             Ilya Tocar  <ilya.tocar@intel.com>
5218             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5219             Ilya Verbin  <ilya.verbin@intel.com>
5220             Kirill Yukhin  <kirill.yukhin@intel.com>
5221             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5223         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
5224         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
5225         masking.
5226         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
5227         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5228         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
5229         (define_insn "*mul<mode>3"): Add EVEX version.
5231 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5232             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5233             Anna Tikhonova  <anna.tikhonova@intel.com>
5234             Ilya Tocar  <ilya.tocar@intel.com>
5235             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5236             Ilya Verbin  <ilya.verbin@intel.com>
5237             Kirill Yukhin  <kirill.yukhin@intel.com>
5238             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5240         * config/i386/sse.md
5241         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
5242         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
5243         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
5244         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
5245         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
5246         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
5247         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
5248         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
5249         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
5250         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
5251         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
5252         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
5253         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
5254         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
5255         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
5256         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
5258 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5259             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5260             Anna Tikhonova  <anna.tikhonova@intel.com>
5261             Ilya Tocar  <ilya.tocar@intel.com>
5262             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5263             Ilya Verbin  <ilya.verbin@intel.com>
5264             Kirill Yukhin  <kirill.yukhin@intel.com>
5265             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5267         * config/i386/sse.md
5268         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
5269         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
5270         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
5272 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5273             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5274             Anna Tikhonova  <anna.tikhonova@intel.com>
5275             Ilya Tocar  <ilya.tocar@intel.com>
5276             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5277             Ilya Verbin  <ilya.verbin@intel.com>
5278             Kirill Yukhin  <kirill.yukhin@intel.com>
5279             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5281         * config/i386/sse.md
5282         (define_mode_iterator VI128_256): New.
5283         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
5285 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5286             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5287             Anna Tikhonova  <anna.tikhonova@intel.com>
5288             Ilya Tocar  <ilya.tocar@intel.com>
5289             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5290             Ilya Verbin  <ilya.verbin@intel.com>
5291             Kirill Yukhin  <kirill.yukhin@intel.com>
5292             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5294         * config/i386/sse.md
5295         (define_mode_iterator VI8_256_512): New.
5296         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
5297         Ditto.
5298         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5299         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
5300         Ditto.
5301         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
5303 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5305         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
5306         pointer to the cumulative reloc value and return the value for
5307         this reloc instead.
5308         (compute_reloc_for_rtx): Take a const_rtx.  Call
5309         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
5310         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
5311         for_each_rtx for the CONST case.
5313 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5315         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
5316         (mark_constants_in_pattern): ...this new function to iterate over
5317         all the subrtxes.
5318         (mark_constants): Update accordingly.
5320 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5322         * varasm.c: Include rtl-iter.h.
5323         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
5324         Remove the pointer to the cumulative hashval_t and just return
5325         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
5326         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5327         Accumulate the hashval_ts here instead of const_rtx_hash_1.
5329 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5331         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
5332         Give real type of data parameter.  Remove return value.
5333         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
5334         to iterate over subrtxes.
5336 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5338         * var-tracking.c (use_narrower_mode_test): Turn from being a
5339         for_each_rtx callback to being a function that examines each
5340         subrtx itself.
5341         (adjust_mems): Update accordingly.
5343 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5345         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
5346         callback to being a function that examines each subrtx itself.
5347         Remove handling of null rtxes.
5348         (add_uses): Update accordingly.
5350 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5352         * var-tracking.c: Include rtl-iter.h.
5353         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
5354         to being a function that examines each subrtx itself.
5355         (use_type): Update accordingly.
5357 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5359         * store-motion.c: Include rtl-iter.h.
5360         (extract_mentioned_regs_1): Delete.
5361         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
5362         for_each_rtx to iterate over subrtxes.
5364 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5366         * sel-sched.c: Include rtl-iter.h
5367         (count_occurrences_1): Delete.
5368         (count_occurrences_equiv): Turn rtxes into const_rtxes.
5369         Use FOR_EACH_SUBRTX rather than for_each_rtx.
5371 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5373         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
5374         * rtlanal.c (tls_referenced_p_1): Delete.
5375         (tls_referenced_p): Take a const_rtx rather than an rtx.
5376         Use FOR_EACH_SUBRTX rather than for_each_rtx.
5378 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5380         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
5381         (for_each_inc_dec): Take an rtx rather than an rtx *.
5382         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
5383         (cselib_record_sets): Likewise.
5384         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
5385         (check_for_inc_dec): Likewise.
5386         * rtlanal.c (for_each_inc_dec_ops): Delete.
5387         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
5388         rather than a pointer to the memory address.  Replace
5389         for_each_inc_dec_ops argument with separate function and data
5390         arguments.  Abort on non-autoinc addresses.
5391         (for_each_inc_dec_find_mem): Delete.
5392         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
5393         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
5395 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5397         * rtl.h (find_all_hard_regs): Declare.
5398         * rtlanal.c (find_all_hard_regs): New function.
5399         (record_hard_reg_uses_1): Delete.
5400         (record_hard_reg_uses): Use find_all_hard_regs.
5402 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5404         * rtl.h (replace_label_data): Delete.
5405         (replace_label): Take the old label, new label and update-nuses flag
5406         as direct arguments.  Return void.
5407         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
5408         * rtlanal.c (replace_label): Update interface as above.  Handle
5409         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
5410         iterator.  Use FOR_EACH_SUBRTX_PTR.
5412 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5414         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
5415         with const_rtx parameters.
5416         * varasm.c (get_pool_constant): Likewise.
5417         * rtlanal.c (rtx_referenced_p_1): Delete.
5418         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5419         Assert that the rtx we're looking for is nonnull.  Allow searches
5420         for constant pool SYMBOL_REFs.
5422 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5424         * reload1.c: Include rtl-iter.h.
5425         (note_reg_elim_costly): Turn from being a for_each_rtx callback
5426         to being a function that examines each subrtx itself.
5427         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
5429 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5431         * regcprop.c (cprop_find_used_regs_1): Delete.
5432         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5434 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5436         * regcprop.c: Include rtl-iter.h.
5437         (kill_value): Take a const_rtx.
5438         (kill_autoinc_value): Turn from being a for_each_rtx callback
5439         to being a function that examines each subrtx itself.
5440         (copyprop_hardreg_forward_1): Update accordingly.
5442 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5444         * reg-stack.c: Include rtl-iter.h.
5445         (subst_stack_regs_in_debug_insn): Delete.
5446         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
5447         instead of for_each_rtx.
5449 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5451         * lower-subreg.c (find_decomposable_subregs): Turn from being
5452         a for_each_rtx callback to being a function that examines each
5453         subrtx itself.  Remove handling of null rtxes.
5454         (decompose_multiword_subregs): Update accordingly.
5456 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5458         * lower-subreg.c (adjust_decomposed_uses): Delete.
5459         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
5460         Remove handling of null rtxes.
5462 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5464         * lower-subreg.c: Include rtl-iter.h.
5465         (resolve_subreg_use): Turn from being a for_each_rtx callback
5466         to being a function that examines each subrtx itself.  Remove
5467         handling of null rtxes.
5468         (resolve_reg_notes, resolve_simple_move): Update accordingly.
5469         (decompose_multiword_subregs): Likewise.
5471 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5473         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
5474         to being a function that examines each subrtx itself.
5475         (simplify_using_condition, simplify_using_initial_values): Update
5476         accordingly.
5478 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5480         * loop-iv.c: Include rtl-iter.h.
5481         (find_single_def_src): New function.
5482         (replace_single_def_regs): Turn from being a for_each_rtx callback
5483         to being a function that examines each subrtx itself.
5484         (replace_in_expr, simplify_using_initial_values): Update accordingly.
5486 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5488         * jump.c (eh_returnjump_p_1): Delete.
5489         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5490         Remove handling of null rtxes.
5492 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5494         * jump.c: Include rtl-iter.h.
5495         (returnjump_p_1): Delete.
5496         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5497         Remove handling of null rtxes.
5499 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5501         * ira.c: Include rtl-iter.h.
5502         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
5503         to being a function that examines each subrtx itself.  Remove
5504         handling of null rtxes.
5505         (update_equiv_regs): Update call accordingly.
5507 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5509         * fwprop.c: Include rtl-iter.h.
5510         (varying_mem_p): Turn from being a for_each_rtx callback to being
5511         a function that examines each subrtx itself.
5512         (propagate_rtx): Update accordingly.
5514 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5516         * function.c: Include rtl-iter.h
5517         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
5518         callback to being a function that examines each subrtx itself.
5519         Return the changed flag.
5520         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
5521         (instantiate_virtual_regs): Update calls accordingly.
5523 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5525         * final.c: Include rtl-iter.h.
5526         (mark_symbol_ref_as_used): Delete.
5527         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
5528         for_each_rtx.
5530 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5532         * emit-rtl.c: Include rtl-iter.h.
5533         (find_auto_inc): Turn from being a for_each_rtx callback to being
5534         a function that examines each subrtx itself.  Assume the first operand
5535         to an RTX_AUTOINC is the automodified register.
5536         (try_split): Update call accordingly.
5538 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5540         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
5541         Return a bool, inverting the result so that 0/false means "not ok".
5542         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
5543         subrtxes of a CONST.
5544         (mem_loc_descriptor, add_const_value_attribute)
5545         (resolve_addr_in_expr): Update calls accordingly.
5547 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5549         * dwarf2out.c: Include rtl-iter.h.
5550         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
5551         Remove unused data parameter.  Return a bool, inverting the result
5552         so that 0/false means "not ok".
5553         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
5554         instead of for_each_rtx.
5556 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5558         * dse.c: Include rtl-iter.h.
5559         (check_mem_read_rtx): Change void * parameter to real type.
5560         Remove return value.
5561         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
5562         for_each_rtx.  Don't handle null rtxes.
5564 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5566         * df-problems.c: Include rtl-iter.h.
5567         (find_memory): Turn from being a for_each_rtx callback to being
5568         a function that examines each subrtx itself.  Continue to look for
5569         volatile references even after a nonvolatile one has been found.
5570         (can_move_insns_across): Update calls accordingly.
5572 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5574         * ddg.c (walk_mems_2, walk_mems_1): Delete.
5575         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
5576         to iterate over subrtxes.  Return a bool rather than an int.
5578 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5580         * ddg.c: Include rtl-iter.h.
5581         (mark_mem_use_1): Rename to...
5582         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
5583         instead of for_each_rtx.
5584         (mem_read_insn_p): Update accordingly.
5586 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5588         * cse.c (change_cc_mode_args): Delete.
5589         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
5590         a function that examines each subrtx itself.  Take the fields of
5591         change_cc_mode_args as argument and return void.
5592         (cse_change_cc_mode_insn): Update calls accordingly.
5594 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5596         * cse.c (is_dead_reg): Change argument to const_rtx.
5597         (dead_debug_insn_data): Delete.
5598         (is_dead_debug_insn): Expand commentary.  Turn from being a
5599         for_each_rtx callback to being a function that examines
5600         each subrtx itself.  Take the fields of dead_debug_insn_data
5601         as argument.
5602         (delete_trivially_dead_insns): Update call accordingly.
5604 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5606         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
5607         being a for_each_rtx callback to being a function that examines
5608         each subrtx itself.
5609         (cse_extended_basic_block): Update call accordingly.
5611 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5613         * cse.c (check_dependence_data): Delete.
5614         (check_dependence): Change from being a for_each_rtx callback to being
5615         a function that examines all subrtxes itself.  Don't handle null rtxes.
5616         (invalidate): Update call accordingly.
5618 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5620         * cse.c: Include rtl-iter.h.
5621         (approx_reg_cost_1): Delete.
5622         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5623         Don't handle null rtxes.
5625 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5627         * cfgcleanup.c: Include rtl-iter.h.
5628         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
5629         to being a function that examines each subrtx itself.
5630         (thread_jump): Update accordingly.
5632 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5634         * combine-stack-adj.c: Include rtl-iter.h.
5635         (record_stack_refs_data): Delete.
5636         (record_stack_refs): Turn from being a for_each_rtx callback
5637         to being a function that examines each subrtx itself.
5638         Take a pointer to the reflist.  Invert sense of return value
5639         so that true means success and false means failure.  Don't
5640         handle null rtxes.
5641         (combine_stack_adjustments_for_block): Update accordingly.
5643 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5645         * combine.c (record_truncated_value): Turn from being a for_each_rtx
5646         callback to a function that takes an rtx and returns a bool
5647         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
5648         for_each_rtx.
5650 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5652         * combine.c: Include rtl-iter.h.
5653         (unmentioned_reg_p_1): Delete.
5654         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
5655         Don't handle null rtxes.
5657 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5659         * calls.c: Include rtl-iter.h.
5660         (internal_arg_pointer_based_exp_1): Delete.
5661         (internal_arg_pointer_based_exp): Take a const_rtx.
5662         Use FOR_EACH_SUBRTX to iterate over subrtxes.
5664 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5666         * caller-save.c: Include rtl-iter.h.
5667         (add_used_regs_1): Delete.
5668         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
5669         to iterate over subrtxes.  Assert that any remaining pseudos
5670         have been spilled.
5672 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5674         * bt-load.c: Include rtl-iter.h.
5675         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
5676         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
5677         to iterate over subrtxes.
5678         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
5679         find_btr_use rather than btr_referenced_p.
5681 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5683         * alias.c: Include rtl-iter.h.
5684         (refs_newer_value_cb): Delete.
5685         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
5687 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
5689         * rtl-iter.h: New file.
5690         * rtlanal.c: Include it.
5691         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
5692         (generic_subrtx_iterator <T>::add_single_to_queue)
5693         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
5694         (generic_subrtx_iterator <T>::free_array): New functions.
5695         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
5696         (generic_subrtx_iterator <const_rtx_accessor>)
5697         (generic_subrtx_iterator <rtx_var_accessor>
5698         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
5699         (setup_reg_subrtx_bounds): New function.
5700         (init_rtlanal): Call it.
5702 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
5704         PR target/62261
5705         * config/sh/sh.md (ashlsi3): Handle negative shift count for
5706         TARGET_SHMEDIA.
5707         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
5709 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
5711         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
5713 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5715         * rtl.h (JUMP_LABEL_AS_INSN): New.
5717 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5719         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
5720         rtx_expr_list **.
5721         (alloc_EXPR_LIST): Strengthen return type from rtx to
5722         rtx_expr_list *.
5723         (remove_free_EXPR_LIST_node): Likewise for param.
5724         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
5725         from rtx to rtx_expr_list *.
5726         * sched-int.h (struct deps_desc): Strengthen fields
5727         "pending_read_mems" and "pending_write_mems" from rtx to
5728         rtx_expr_list *.
5730         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
5731         rtx to rtx_expr_list *.
5732         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
5733         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
5734         rtx_expr_list **.
5735         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
5736         from rtx to rtx_expr_list *.
5737         * loop-iv.c (simplify_using_initial_values): Strengthen local
5738         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
5739         "pnote_next" from rtx * to rtx_expr_list **.
5740         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
5741         param "exprp" from rtx * to rtx_expr_list **.
5742         (add_insn_mem_dependence): Strengthen local "mem_list" from
5743         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
5744         to rtx_expr_list *.
5745         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
5746         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
5747         param "old_mems_p" from rtx * to rtx_expr_list **.
5748         * var-tracking.c (struct adjust_mem_data): Strengthen field
5749         "side_effects" from rtx to rtx_expr_list *.
5750         (adjust_insn): Replace NULL_RTX with NULL when assigning to
5751         rtx_expr_list *.
5752         (prepare_call_arguments): Likewise.
5754 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5756         * function.h (struct rtl_data): Strengthen field
5757         "x_stack_slot_list" from rtx to rtx_expr_list *.
5759         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
5760         when assigning to stack_slot_list.
5762 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5764         * function.h (struct rtl_data): Strengthen field
5765         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
5766         * rtl.h (remove_node_from_expr_list): Strengthen second param from
5767         rtx * to rtx_expr_list **.
5769         * cfgbuild.c (make_edges): In loop over
5770         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
5771         rtx_expr_list *, and use methods of the latter class to clarify
5772         the code.
5773         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
5774         rtx_expr_list *, and use methods of the latter class to clarify
5775         the code.
5776         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
5777         * reload1.c (set_initial_label_offsets): Likewise for local "x".
5778         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
5779         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
5780         to rtx_expr_list *.  Use methods of the latter class to clarify
5781         the code.
5783 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5785         * function.h (struct expr_status): Strengthen field
5786         "x_forced_labels" from rtx to rtx_expr_list *.
5788         * cfgbuild.c (make_edges): Split local "x" into two locals,
5789         strengthening one from rtx to rtx_expr_list *, and using methods
5790         of said class.
5791         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
5792         loop over forced_labels, introduce strengthen it from rtx to
5793         rtx_expr_list *, using methods to clarify the code.
5794         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
5795         to rtx_expr_list *, using methods of said class to clarify the
5796         code.
5797         * reload1.c (set_initial_label_offsets): Split local "x" into two
5798         per-loop variables, strengthening the first from rtx to
5799         rtx_expr_list * and using methods.
5801 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5803         * coretypes.h (class rtx_expr_list): Add forward declaration.
5804         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
5805         * gengenrtl.c (special_rtx): Add EXPR_LIST.
5806         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
5807         invariant: GET_CODE (X) == EXPR_LIST.
5808         (is_a_helper <rtx_expr_list *>::test): New.
5809         (rtx_expr_list::next): New.
5810         (rtx_expr_list::element): New.
5811         (gen_rtx_EXPR_LIST): New.
5813 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5815         * varasm.c (mark_constants): Convert a GET_CODE check into a
5816         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
5817         Use methods of rtx_sequence to clarify the code.
5819 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5821         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
5822         local "seq" via a checked cast, and use methods of rtx_sequence
5823         to simplify the code.
5825 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5827         * resource.c (mark_referenced_resources): Strengthen local
5828         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
5829         using methods of rtx_sequence to clarify the code.
5830         (find_dead_or_set_registers): Within the switch statement, convert
5831         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
5832         the JUMP_P handling, introduce another local "seq", adding a
5833         checked cast to rtx_sequence *.  In both cases, use methods of
5834         rtx_sequence to clarify the code.
5835         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
5836         via a checked cast, and use methods of rtx_sequence to simplify
5837         the code.
5839 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5841         * reorg.c (redundant_insn): In two places in the function, replace
5842         a check of GET_CODE with a dyn_cast, introducing local "seq", and
5843         usings methods of rtx_sequence to clarify the code.
5845 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5847         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
5848         local "seq" with a checked cast, and use methods of rtx_sequence
5849         to clarify the code.
5851 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5853         * function.c (contains): Introduce local "seq" for PATTERN (insn),
5854         with a checked cast, in the region for where we know it's a
5855         SEQUENCE.  Use methods of rtx_sequence.
5857 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5859         * final.c (get_attr_length_1): Replace GET_CODE check with a
5860         dyn_cast, introducing local "seq" and the use of methods of
5861         rtx_sequence.
5862         (shorten_branches): Likewise, introducing local "body_seq".
5863         Strengthen local "inner_insn" from rtx to rtx_insn *.
5864         (reemit_insn_block_notes): Replace GET_CODE check with a
5865         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
5866         Use methods of rtx_sequence.
5867         (final_scan_insn): Likewise, introducing local "seq" for when
5868         "body" is known to be a SEQUENCE, using its methods.
5870 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5872         * except.c (can_throw_external): Strengthen local "seq" from rtx
5873         to rtx_sequence *.  Use methods of rtx_sequence.
5874         (insn_nothrow_p): Likewise.
5876 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5878         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
5879         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
5880         Use methods of rtx_sequence.
5881         (scan_trace): Likewise for local "pat".
5883 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5885         * coretypes.h (class rtx_sequence): Add forward declaration.
5886         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
5887         invariant: GET_CODE (X) == SEQUENCE.
5888         (is_a_helper <rtx_sequence *>::test): New.
5889         (is_a_helper <const rtx_sequence *>::test): New.
5890         (rtx_sequence::len): New.
5891         (rtx_sequence::element): New.
5892         (rtx_sequence::insn): New.
5894 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5896         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
5897         rtx_insn_list **.
5898         (alloc_INSN_LIST): Strengthen return type from rtx to
5899         rtx_insn_list *.
5900         (copy_INSN_LIST): Likewise for return type and param.
5901         (concat_INSN_LIST): Likewise for both params and return type.
5902         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
5903         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
5904         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
5905         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
5907         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
5908         "implicit_sets", "control_uses", "clobbers" from rtx to
5909         rtx_insn_list *.
5910         (struct deps_desc): Likewise for fields "pending_read_insns",
5911         "pending_write_insns", "pending_jump_insns",
5912         "last_pending_memory_flush", "last_function_call",
5913         "last_function_call_may_noreturn", "sched_before_next_call",
5914         "sched_before_next_jump".
5915         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
5916         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
5918         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
5919         from rtx to rtx_insn_list *.
5920         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
5921         rtx_insn_list *.
5923         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
5924         to rtx_insn_list **.
5925         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
5926         rtx_insn_list *.
5927         (queue_insn): Likewise for local "link".
5928         (struct haifa_saved_data): Strengthen field "insn_queue" from
5929         rtx * to rtx_insn_list **.
5930         (save_backtrack_point): Update allocation of save->insn_queue to
5931         reflect the strengthening of elements from rtx to rtx_insn_list *.
5932         (queue_to_ready): Strengthen local "link" from rtx to
5933         rtx_insn_list *; use methods "next" and "insn" when traversing the
5934         list.
5935         (early_queue_to_ready): Likewise for locals "link", "next_link",
5936         "prev_link".
5937         (schedule_block): Update allocation of insn_queue to reflect the
5938         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
5939         local "link" from rtx to rtx_insn_list *, and use methods when
5940         working it.
5941         (add_to_speculative_block): Strengthen locals "twins" and
5942         "next_node" from rtx to rtx_insn_list *, and use methods when
5943         working with them.  Strengthen local "twin" from rtx to
5944         rtx_insn *, eliminating a checked cast.
5945         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
5946         from rtx to rtx_insn_list *, and use methods when working with
5947         them.
5949         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
5950         from rtx to rtx_insn_list *, adding a checked cast.
5951         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
5952         rtx_insn_list **.
5953         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
5954         "newlink" from rtx to rtx_insn_list *.  Strengthen local
5955         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
5956         from rtx to rtx_insn *.
5957         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
5958         from rtx to rtx_insn_list *.  Use methods of the latter class.
5959         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
5960         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
5961         (remove_free_INSN_LIST_node): Strengthen return type and local
5962         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
5963         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
5964         rtx_insn_list *, using "insn" method.
5966         * sched-deps.c (add_dependence_list):  Strengthen param "list"
5967         from rtx to rtx_insn_list *, and use methods when working with it.
5968         (add_dependence_list_and_free):  Strengthen param "listp" from
5969         rtx * to rtx_insn_list **.
5970         (remove_from_dependence_list): Strenghten param "listp" from rtx *
5971         to rtx_insn_list **, and use methods when working with *listp.
5972         (remove_from_both_dependence_lists): Strengthen param "listp" from
5973         rtx * to rtx_insn_list **
5974         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
5975         to rtx_insn_list **.  Eliminate local "link", in favor of two new
5976         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
5977         respectively.
5978         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
5979         by introducing local "cond_deps".
5980         (remove_from_deps): Strengthen param "insn" from rtx to
5981         rtx_insn *.
5983         * sched-rgn.c (concat_insn_mem_list): Strengthen param
5984         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
5985         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
5986         Use methods of rtx_insn_list.
5988         * store-motion.c (struct st_expr): Strengthen fields
5989         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
5990         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
5991         rtx_insn_list *.
5992         (find_moveable_store): Split out "tmp" into multiple more-tightly
5993         scoped locals.  Use methods of rtx_insn_list *.
5994         (compute_store_table): Strengthen local "tmp" from rtx to
5995         rtx_insn *.  Use methods of rtx_insn_list *.
5997 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
5999         * coretypes.h (class rtx_insn_list): Add forward declaration.
6000         * rtl.h (class rtx_insn_list): New subclass of rtx_def
6001         (is_a_helper <rtx_insn_list *>::test): New.
6002         (rtx_insn_list::next): New.
6003         (rtx_insn_list::insn): New.
6004         (gen_rtx_INSN_LIST): Add prototype.
6005         * emit-rtl.c (gen_rtx_INSN_LIST): New.
6006         * gengenrtl.c (special_rtx): Add INSN_LIST.
6008 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6010         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
6011         "prev" from rtx to rtx_insn *.
6013 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6015         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
6016         functions.  Require merely an rtx for now, not an rtx_insn *.
6017         (BLOCK_FOR_INSN): Likewise.
6018         (INSN_LOCATION): Likewise.
6019         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
6021 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6023         * rtl.h (PATTERN): Convert this macro into a pair of inline
6024         functions, for now, requiring const_rtx and rtx.
6026 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6028         * target.def (unwind_emit): Strengthen param "insn" from rtx to
6029         rtx_insn *.
6030         (final_postscan_insn): Likewise.
6031         (adjust_cost): Likewise.
6032         (adjust_priority): Likewise.
6033         (variable_issue): Likewise.
6034         (macro_fusion_pair_p): Likewise.
6035         (dfa_post_cycle_insn): Likewise.
6036         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
6037         (first_cycle_multipass_issue): Likewise.
6038         (dfa_new_cycle): Likewise.
6039         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
6040         (speculate_insn): Likewise for param "insn".
6041         (gen_spec_check): Likewise for params "insn" and "label".
6042         (get_insn_spec_ds): Likewise for param "insn".
6043         (get_insn_checked_ds): Likewise.
6044         (dispatch_do): Likewise.
6045         (dispatch): Likewise.
6046         (cannot_copy_insn_p): Likewise.
6047         (invalid_within_doloop): Likewise.
6048         (legitimate_combined_insn): Likewise.
6049         (needed): Likewise.
6050         (after): Likewise.
6052         * doc/tm.texi: Automatically updated to reflect changes to
6053         target.def.
6055         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
6056         working with insn.
6057         (schedule_block): Likewise.
6058         (sched_init): Likewise.
6059         (sched_speculate_insn): Strengthen param "insn" from rtx to
6060         rtx_insn *.
6061         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
6062         working with insn.
6063         * hooks.c (hook_bool_rtx_true): Rename to...
6064         hook_bool_rtx_insn_true): ...this, and strengthen first param from
6065         rtx to rtx_insn *.
6066         (hook_constcharptr_const_rtx_null): Rename to...
6067         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6068         first param from const_rtx to const rtx_insn *.
6069         (hook_bool_rtx_int_false): Rename to...
6070         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6071         param from rtx to rtx_insn *.
6072         (hook_void_rtx_int): Rename to...
6073         (hook_void_rtx_insn_int): ...this, and strengthen first param from
6074         rtx to rtx_insn *.
6076         * hooks.h (hook_bool_rtx_true): Rename to...
6077         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
6078         rtx to rtx_insn *.
6079         (hook_bool_rtx_int_false): Rename to...
6080         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
6081         param from rtx to rtx_insn *.
6082         (hook_void_rtx_int): Rename to...
6083         (hook_void_rtx_insn_int): ...this, and strengthen first param from
6084         rtx to rtx_insn *.
6085         (hook_constcharptr_const_rtx_null): Rename to...
6086         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
6087         first param from const_rtx to const rtx_insn *.
6089         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
6090         and local "prev" from rtx to rtx_insn *.
6092         * sched-int.h (sched_speculate_insn): Strengthen first param from
6093         rtx to rtx_insn *.
6095         * sel-sched.c (create_speculation_check): Likewise for local "label".
6096         * targhooks.c (default_invalid_within_doloop): Strengthen param
6097         "insn" from const_rtx to const rtx_insn *.
6098         * targhooks.h (default_invalid_within_doloop): Strengthen param
6099         from const_rtx to const rtx_insn *.
6101         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
6102         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
6104         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
6105         "insn".
6106         (arc_invalid_within_doloop): Likewise, with const.
6108         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
6109         (arm_cannot_copy_insn_p): Likewise for param "insn".
6110         (arm_unwind_emit): Likewise.
6112         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
6113         "dep_insn".
6115         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
6116         (c6x_variable_issue): Likewise.  Removed now-redundant checked
6117         cast.
6118         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
6120         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
6121         Likewise for param "insn".
6122         (epiphany_mode_after): Likewise.
6123         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
6124         params "insn", "dep_insn".
6125         (epiphany_mode_needed): Likewise for param "insn".
6126         (epiphany_mode_after): Likewise.
6128         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
6129         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
6130         (ix86_avx_u128_mode_needed): Likewise.
6131         (ix86_i387_mode_needed): Likewise.
6132         (ix86_mode_needed): Likewise.
6133         (ix86_avx_u128_mode_after): Likewise.
6134         (ix86_mode_after): Likewise.
6135         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
6136         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
6137         (ix86_adjust_priority): Likewise for param "insn".
6138         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
6139         (do_dispatch): Likewise.
6140         (has_dispatch): Likewise.
6141         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
6143         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
6144         reflect renaming of default hook implementation from
6145         hook_constcharptr_const_rtx_null to
6146         hook_constcharptr_const_rtx_insn_null.
6147         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
6148         rtx to rtx_insn *.
6149         (ia64_variable_issue): Likewise for param "insn".
6150         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
6151         (ia64_dfa_new_cycle): Likewise.
6152         (ia64_get_insn_spec_ds): Likewise.
6153         (ia64_get_insn_checked_ds): Likewise.
6154         (ia64_speculate_insn): Likewise.
6155         (ia64_gen_spec_check): Likewise for params "insn", "label".
6156         (ia64_asm_unwind_emit): Likewise for param "insn".
6158         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
6160         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
6161         "insn", "def_insn".
6162         (m68k_sched_variable_issue): Likewise for param "insn".
6164         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
6165         "def_insn".
6167         * config/microblaze/microblaze.c (microblaze_adjust_cost):
6168         Likewise for params "insn", "dep".
6170         * config/mips/mips.c (mips_adjust_cost): Likewise.
6171         (mips_variable_issue): Likewise for param "insn".
6172         (mips_final_postscan_insn): Likewise.
6174         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
6175         for params "insn", "dep".
6177         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
6178         "dep_insn".
6179         (pa_adjust_priority): Likewise for param "insn".
6181         * config/picochip/picochip.c (picochip_sched_adjust_cost):
6182         Likewise for params "insn", "dep_insn".
6184         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
6185         param "insn".
6186         (rs6000_variable_issue): Likewise.
6187         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
6188         (rs6000_debug_adjust_cost): Likewise.
6189         (rs6000_adjust_priority): Likewise for param "insn".
6190         (rs6000_use_sched_lookahead_guard): Likewise.
6191         (get_next_active_insn): Likewise for return type and both params.
6192         (redefine_groups): Likewise for params "prev_head_insn", "tail"
6193         and locals "insn", "next_insn".
6194         (pad_groups): Likewise.
6196         * config/s390/s390.c (s390_adjust_priority): Likewise for param
6197         "insn".
6198         (s390_cannot_copy_insn_p): Likewise.
6199         (s390_sched_variable_issue): Likewise for third param, eliminating
6200         checked cast.
6201         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
6202         default hook implementation from hook_constcharptr_const_rtx_null
6203         to hook_constcharptr_const_rtx_insn_null.
6205         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
6206         from rtx to rtx_insn *.
6207         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
6208         (sh_variable_issue): Likewise for param "insn".
6209         (sh_dfa_new_cycle): Likewise.
6210         (sh_mode_needed): Likewise.
6211         (sh_mode_after): Likewise.
6213         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
6214         params "insn", "dep_insn".
6215         (hypersparc_adjust_cost): Likewise.
6216         (sparc_adjust_cost): Likewise.
6218         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
6219         param, eliminated checked cast.
6220         (spu_sched_adjust_cost): Likewise for first and third params.
6222         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
6223         params "insn" and "dep_insn" from rtx to rtx_insn *.
6225         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
6227 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
6229         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
6230         (set_is_load_p): ...this, updating to work on a SET pattern rather
6231         than an insn.
6232         (is_store_insn): Rename to...
6233         (set_is_store_p): ...this, updating to work on a SET pattern
6234         rather than an insn.
6235         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
6236         top of function to where it is needed.  Rewrite the bogus
6237         condition that checks for "insn" and "dep" being PARALLEL to
6238         instead use single_set, introducing locals "insn_set" and
6239         "dep_set".  Given that we only ever returned "cost" for a non-pair
6240         of SETs, bail out early if we don't have a pair of SET.
6241         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
6242         use the new locals "insn_set" and "dep_set", and update calls to
6243         is_load_insn and is_store_insn to be calls to set_is_load_p and
6244         set_is_store_p.
6246 2014-08-27  Guozhi Wei  <carrot@google.com>
6248         PR target/62262
6249         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
6250         amount before using it.
6252 2014-08-27  Richard Biener  <rguenther@suse.de>
6254         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
6255         get_maxval_strlen inside a more useful API.
6256         (gimple_fold_builtin_with_strlen): Remove and fold into ...
6257         (gimple_fold_builtin): ... caller.
6258         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
6259         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
6260         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
6261         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
6262         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
6263         gimple_fold_builtin_sprintf): Adjust to compute maxval
6264         themselves.
6266 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
6268         PR other/62248
6269         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
6271 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6272             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6273             Anna Tikhonova  <anna.tikhonova@intel.com>
6274             Ilya Tocar  <ilya.tocar@intel.com>
6275             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6276             Ilya Verbin  <ilya.verbin@intel.com>
6277             Kirill Yukhin  <kirill.yukhin@intel.com>
6278             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6280         * config/i386/sse.md
6281         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
6282         Use `concat_tg_mode' attribute to determine asm register size.
6284 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6285             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6286             Anna Tikhonova  <anna.tikhonova@intel.com>
6287             Ilya Tocar  <ilya.tocar@intel.com>
6288             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6289             Ilya Verbin  <ilya.verbin@intel.com>
6290             Kirill Yukhin  <kirill.yukhin@intel.com>
6291             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6293         * config/i386/sse.md
6294         (define_mode_iterator VI48_AVX512VL): New.
6295         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
6296         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
6297         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
6298         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6299         with VI1): Change mode iterator.
6300         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6301         with VI_ULOADSTORE_BW_AVX512VL): New.
6302         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6303         with VI_ULOADSTORE_F_AVX512VL): Ditto.
6304         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6305         with VI1): Change mode iterator.
6306         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6307         with VI_ULOADSTORE_BW_AVX512VL): New.
6308         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
6309         with VI_ULOADSTORE_F_AVX512VL): Ditto.
6310         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6311         with VI1): Change mode iterator.
6312         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6313         with VI_ULOADSTORE_BW_AVX512VL): New.
6314         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
6315         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
6316         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
6317         (define_insn "<avx512>_storedqu<mode>_mask" with
6318         VI48_AVX512VL): New.
6319         (define_insn "<avx512>_storedqu<mode>_mask" with
6320         VI12_AVX512VL): Ditto.
6322 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6323             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6324             Anna Tikhonova  <anna.tikhonova@intel.com>
6325             Ilya Tocar  <ilya.tocar@intel.com>
6326             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6327             Ilya Verbin  <ilya.verbin@intel.com>
6328             Kirill Yukhin  <kirill.yukhin@intel.com>
6329             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6331         * config/i386/sse.md
6332         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
6333         (define_mode_iterator VI48_AVX512BW): New.
6334         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
6335         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6336         with VI48_AVX2_48_AVX512F): New.
6337         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
6338         with VI2_AVX512VL): Ditto.
6340 2014-08-27  Richard Biener  <rguenther@suse.de>
6342         PR middle-end/62239
6343         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
6344         (fold_builtin_3): Do not fold strcat_chk here.
6345         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
6346         from builtins.c.
6347         (gimple_fold_builtin): Fold strcat_chk here.
6349 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
6351         * dwarf2out.h (dwarf2out_decl): Remove prototype.
6352         * dwarf2out.c (dwarf2out_decl): Make static.
6354 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
6356         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
6358 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6360         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
6361         from rtx to rtx_insn *.
6362         (cselib_lookup_from_insn): Likewise for final param.
6363         (cselib_subst_to_values_from_insn): Likewise.
6364         (cselib_add_permanent_equiv): Likewise.
6366         * cselib.c (cselib_current_insn): Likewise for this variable.
6367         (cselib_subst_to_values_from_insn): Likewise for param "insn".
6368         (cselib_lookup_from_insn): Likewise.
6369         (cselib_add_permanent_equiv): Likewise for param "insn" and local
6370         "save_cselib_current_insn".
6371         (cselib_process_insn): Replace use of NULL_RTX with NULL.
6373         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
6374         from rtx to rtx_insn *.
6376 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6378         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
6379         rtx_insn *.
6381 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6383         * df.h (df_dump_insn_problem_function): Strengthen first param of
6384         this callback from const_rtx to const rtx_insn *.
6385         (struct df_insn_info): Strengthen field "insn" from rtx to
6386         rtx_insn *.
6387         (DF_REF_INSN): Eliminate this function, reinstating the older
6388         macro definition.
6389         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
6390         (df_reg_defined): Likewise.
6391         (df_find_use): Likewise.
6392         (df_reg_used): Likewise.
6393         (df_dump_insn_top): Strengthen param 1 from const_rtx to
6394         const rtx_insn *.
6395         (df_dump_insn_bottom): Likewise.
6396         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
6397         (df_insn_debug_regno): Likewise.
6398         (debug_df_insn): Likewise.
6399         (df_rd_simulate_one_insn): Likewise for param 2.
6400         (df_word_lr_simulate_defs): Likewise for param 1.
6401         (df_word_lr_simulate_uses): Likewise.
6402         (df_md_simulate_one_insn): Likewise for param 2.
6403         (df_simulate_find_noclobber_defs): Likewise for param 1.
6404         (df_simulate_find_defs): Likewise.
6405         (df_simulate_defs): Likewise.
6406         (df_simulate_uses): Likewise.
6407         (df_simulate_one_insn_backwards): Likewise for param 2.
6408         (df_simulate_one_insn_forwards): Likewise.
6409         (df_uses_create): Likewise for param 2.
6410         (df_insn_create_insn_record): Likewise for param 1.
6411         (df_insn_delete): Likewise.
6412         (df_insn_rescan): Likewise.
6413         (df_insn_rescan_debug_internal): Likewise.
6414         (df_insn_change_bb): Likewise.
6415         (df_notes_rescan): Likewise.
6416         * rtl.h (remove_death): Likewise for param 2.
6417         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
6418         const rtx_insn *.
6419         * sched-int.h (reemit_notes): Strengthen param from rtx to
6420         rtx_insn *.
6421         * valtrack.h (propagate_for_debug): Likewise for param 1.
6423         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
6424         local "tmp_rtx" from const_rtx to const rtx_insn *.
6425         * combine.c (remove_death): Strengthen param "insn" from rtx to
6426         rtx_insn *.
6427         (move_deaths): Likewise for local "where_dead".
6428         * cse.c (delete_trivially_dead_insns): Introduce local
6429         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
6430         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
6431         rtx_insn *.
6432         (df_reg_defined): Likewise.
6433         (df_find_use): Likewise.
6434         (df_reg_used): Likewise.
6435         (df_dump_insn_problem_data): Strengthen param "insn" from
6436         const_rtx to const rtx_insn *.
6437         (df_dump_insn_top): Likewise.
6438         (df_dump_insn_bottom): Likewise.
6439         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
6440         (df_insn_debug_regno): Likewise.
6441         (debug_df_insn): Likewise.
6442         (DF_REF_INSN): Delete.
6443         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
6444         from rtx to rtx_insn *.
6445         (df_chain_insn_top_dump): Strengthen param "insn" from
6446         const_rtx to const rtx_insn *.
6447         (df_chain_insn_bottom_dump): Likewise.
6448         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
6449         rtx_insn *.
6450         (df_word_lr_simulate_uses): Likewise.
6451         (df_print_note): Likewise.
6452         (df_remove_dead_and_unused_notes): Likewise.
6453         (df_set_unused_notes_for_mw): Likewise.
6454         (df_set_dead_notes_for_mw): Likewise.
6455         (df_create_unused_note): Likewise.
6456         (df_simulate_find_defs): Likewise.
6457         (df_simulate_find_uses): Likewise.
6458         (df_simulate_find_noclobber_defs): Likewise.
6459         (df_simulate_defs): Likewise.
6460         (df_simulate_uses): Likewise.
6461         (df_simulate_one_insn_backwards): Likewise.
6462         (df_simulate_one_insn_forwards): Likewise.
6463         (df_md_simulate_one_insn): Likewise.
6464         * df-scan.c (df_uses_create): Likewise.
6465         (df_insn_create_insn_record): Likewise.
6466         (df_insn_delete): Likewise.
6467         (df_insn_rescan): Likewise.
6468         (df_insn_rescan_debug_internal): Likewise.
6469         (df_insn_change_bb): Likewise.
6470         (df_notes_rescan): Likewise.
6471         (df_refs_add_to_chains): Likewise.
6472         (df_insn_refs_verify): Likewise.
6473         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
6474         when invoking df_insn_delete.
6475         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
6476         (set_unique_reg_note): Add checked cast.
6477         * final.c (cleanup_subreg_operands): Likewise.
6478         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
6479         "insn" from rtx to rtx_insn *.
6480         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
6481         "last" from rtx to rtx_insn *.
6482         * ira-emit.c (change_regs_in_insn): New function.
6483         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
6484         Invoke change_regs_in_insn rather than change_regs.
6485         * ira.c (update_equiv_regs): Strengthen locals "insn",
6486         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
6487         for_each_rtx_in_insn rather than for_each_rtx.
6488         * recog.c (confirm_change_group): Add checked casts.
6489         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
6490         Add checked cast.
6491         (peep2_fill_buffer): Add checked cast.
6492         * rtlanal.c (remove_note): Likewise.
6493         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
6494         locals "next" "end" from rtx to rtx_insn *.
6496 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6498         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
6499         to rtx_insn *.
6500         (struct reg_use_data): Likewise for field "insn".
6501         (insn_cost): Likewise for param.
6502         (real_insn_for_shadow): Likewise for return type and param.
6503         (increase_insn_priority): Likewise for param 1.
6504         (debug_dependencies): Likewise for both params.
6506         * haifa-sched.c (insn_delay): Likewise for param "insn".
6507         (real_insn_for_shadow): Likewise for return type and param "insn".
6508         (update_insn_after_change): Likewise for param "insn".
6509         (recompute_todo_spec): Likewise for param "next" and locals "pro",
6510         "other".
6511         (insn_cost): Likewise for param "insn".
6512         (increase_insn_priority): Likewise.
6513         (calculate_reg_deaths): Likewise.
6514         (setup_insn_reg_pressure_info): Likewise.
6515         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
6516         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
6517         (model_recompute): Likewise.
6518         (must_restore_pattern_p): Likewise for param "next".
6519         (model_excess_cost): Likewise for param "insn".
6520         (queue_remove): Likewise.
6521         (adjust_priority): Likewise for param "prev".
6522         (update_register_pressure): Likewise for param "insn".
6523         (setup_insn_max_reg_pressure): Likewise for local "insn".
6524         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
6525         (model_add_to_schedule): Likewise.
6526         (model_reset_queue_indices): Likewise for local "insn".
6527         (unschedule_insns_until): Strengthen local "recompute_vec" from
6528         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
6529         "con" from rtx to rtx_insn *.
6530         (restore_last_backtrack_point): Likewise for both locals "x". Add
6531         checked casts.
6532         (estimate_insn_tick): Likewise for param "insn".
6533         (commit_schedule): Likewise for params "prev_head", "tail" and
6534         local "x".
6535         (verify_shadows): Likewise for locals "i1", "i2".
6536         (dump_insn_stream): Likewise for params "head", "tail" and locals
6537         "next_tail", "insn".
6538         (schedule_block): Likewise for locals "insn", "x".  Add a checked
6539         cast.
6540         (fix_inter_tick): Likewise for params "head", "tail".
6541         (create_check_block_twin): Likewise for local "jump".
6542         (haifa_change_pattern): Likewise for param "insn".
6543         (haifa_speculate_insn): Likewise.
6544         (dump_new_block_header): Likewise for params "head", "tail".
6545         (fix_jump_move): Likewise for param "jump".
6546         (move_block_after_check): Likewise.
6547         (sched_init_insn_luid): Likewise for param "insn".
6548         (sched_init_luids): Likewise for local "insn".
6549         (insn_luid): Likewise for param "insn".
6550         (init_h_i_d): Likewise.
6551         (haifa_init_h_i_d): Likewise for local "insn".
6552         (haifa_init_insn): Likewise for param "insn".
6553         * sched-deps.c (add_dependence): Likewise for local "real_pro",
6554         "other".
6555         (create_insn_reg_use): Likewise for param "insn".
6556         (setup_insn_reg_uses): Likewise.  Add a checked cast.
6557         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
6558         "tail" from rtx to rtx_insn *.
6559         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
6560         "insn", "next_tail".
6562 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6564         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
6565         from rtx to rtx_insn *.
6566         (model_add_to_schedule): Likewise for locals "start", "end",
6567         "iter".
6569 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6571         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
6572         rtx_insn *.
6573         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
6574         "to" and locals "insn", "next", "copy".  Remove now-redundant
6575         checked cast.
6577 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6579         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
6580         rtx_insn * and param 4 from rtx * to rtx_insn **.
6581         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
6582         param 2 from rtx * to rtx_insn **.
6584         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
6585         rtx_insn * and final param from rtx * to rtx_insn **.
6587         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
6588         from rtx to rtx_insn *.
6589         (try_head_merge_bb): Likewise for both locals named "move_upto".
6590         * df-problems.c (can_move_insns_across): Likewise for params
6591         "from", "to", "across_from", "across_to" and locals "insn",
6592         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
6593         rtx_insn **.
6594         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
6595         from rtx to rtx_insn *.
6596         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
6597         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
6598         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
6599         rtx_insn *.
6600         (noce_try_abs): Likewise.
6601         (noce_get_condition): Likewise for param "jump".  Strengthen param
6602         "earliest" from rtx * to rtx_insn **.
6603         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
6604         rtx_insn *.
6605         (find_cond_trap): Likewise.
6606         (dead_or_predicable): Likewise for local "earliest".
6607         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
6608         checked cast.
6609         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
6610         and local "prev".  Strengthen param "earliest" from rtx * to
6611         rtx_insn **.
6612         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
6613         Strengthen param "earliest" from rtx * to rtx_insn **.
6615 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6617         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
6618         "to" and local "insn" from rtx to rtx_insn *.
6620 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6622         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
6623         from rtx to rtx_insn *.
6624         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
6625         (code_motion_path_driver): Likewise for local "last_insn".
6626         (simplify_changed_insns): Likewise for local "insn".
6628 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6630         * rtl.h (push_to_sequence): Strengthen param from rtx to
6631         rtx_insn *.
6632         (push_to_sequence2): Likewise for both params.
6633         (delete_insns_since): Likewise for param.
6634         (reorder_insns_nobb): Likewise for all three params.
6635         (set_new_first_and_last_insn): Likewise for both params.
6637         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
6638         rtx_insn *.  Remove now-redundant cast.
6639         (set_last_insn): Likewise.
6641         * builtins.c (expand_builtin_return): Strengthen local
6642         "call_fusage" from rtx to rtx_insn *.
6643         * cfgrtl.c (create_basic_block_structure): Likewise for local
6644         "after".
6645         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
6646         "first", "last" and local "insn".
6647         (delete_insns_since): Likewise for param "from".
6648         (reorder_insns_nobb): Likewise for params "from", "to", "after"
6649         and local "x".
6650         (push_to_sequence): Likewise for param "first" and local "last".
6651         (push_to_sequence2): Likewise for params "first" and "last".
6652         * lra.c (emit_add3_insn): Likewise for local "last".
6653         (lra_emit_add): Likewise.
6654         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
6655         "last_insn".
6656         (process_address_1): Likewise for locals "insn", last".
6657         * modulo-sched.c (ps_first_note): Likewise for return type.
6658         * optabs.c (expand_binop_directly): Likewise for param "last".
6660 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6662         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
6663         to rtx_insn*.
6664         * emit-rtl.c (get_last_insn_anywhere): Likewise.
6666 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6668         * function.h (struct sequence_stack): Strengthen fields "first"
6669         and "last" from rtx to rtx_insn *.
6670         (struct emit_status): Likewise for fields "x_first_insn" and
6671         "x_last_insn".
6673         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
6674         (set_first_insn): Add checked cast.
6675         (get_last_insn): Remove now-redundant checked cast.
6676         (set_last_insn): Add checked cast.
6678         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
6679         "saved_first" and "saved_last" from rtx to rtx_insn *.
6681 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6683         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
6684         (unlink_insn_chain): Strengthen both params from rtx to
6685         rtx_insn *.
6687         * cfgrtl.c (cfg_layout_function_header): Likewise for this
6688         variable.
6689         (unlink_insn_chain): Likewise for params "first" and "last".
6690         Remove now-redundant checked cast.
6691         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
6692         (fixup_reorder_chain): Strengthen local "insn" from rtx to
6693         rtx_insn *.
6694         * emit-rtl.c (link_insn_into_chain): Likewise for all three
6695         params.
6696         (add_insn): Likewise for param "insn" and local "prev".
6697         (add_insn_after_nobb): Likewise for both params and local "next".
6698         (add_insn_before_nobb): Likewise for both params and local "prev".
6699         (add_insn_after): Rename param "after" to "uncast_after",
6700         introducing local "after" with another checked cast.
6701         (add_insn_before): Rename params "insn" and "before", giving them
6702         "uncast_" prefixes, adding the old names back using checked casts.
6703         (emit_note_after): Likewise for param "after".
6704         (emit_note_before): Likewise for param "before".
6705         (emit_label): Add a checked cast.
6707 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6709         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
6710         "insn" from rtx to rtx_insn *.
6712         * cselib.c (cselib_record_sets_hook): Likewise.
6714         * var-tracking.c (add_with_sets): Likewise, renaming back from
6715         "uncast_insn" to "insn" and eliminating the checked cast from rtx
6716         to rtx_insn *.
6718 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6720         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
6721         and "header_" from rtx to rtx_insn *.
6722         (struct basic_block_d): Likewise for field "head_" within "x"
6723         field of union basic_block_il_dependent.
6724         (BB_HEAD): Drop function...
6725         (SET_BB_HEAD): ...and this function in favor of...
6726         (BB_HEAD): ...reinstate macro.
6727         (BB_END): Drop function...
6728         (SET_BB_END): ...and this function in favor of...
6729         (BB_END): ...reinstate macro.
6730         (BB_HEADER): Drop function...
6731         (SET_BB_HEADER): ...and this function in favor of...
6732         (BB_HEADER): ...reinstate macro.
6734         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
6735         (fix_crossing_unconditional_branches): Likewise.
6736         * caller-save.c (save_call_clobbered_regs): Likewise.
6737         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
6738         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
6739         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6740         (merge_blocks_move_successor_nojumps): Likewise.
6741         (outgoing_edges_match): Update use of for_each_rtx to
6742         for_each_rtx_in_insn.
6743         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
6744         (expand_gimple_cond): Likewise.
6745         (expand_gimple_tailcall): Likewise.
6746         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
6747         SET_BB_END.
6748         (construct_exit_block): Drop use of SET_BB_END.
6749         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
6750         rtx_insn *.
6751         (delete_insn): Rename param "insn" to "uncast_insn", introducing
6752         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
6753         SET_BB_HEAD and SET_BB_END.
6754         (create_basic_block_structure): Drop use of SET_BB_HEAD and
6755         SET_BB_END.
6756         (rtl_delete_block): Drop use of SET_BB_HEAD.
6757         (rtl_split_block): Drop use of SET_BB_END.
6758         (emit_nop_for_unique_locus_between): Likewise.
6759         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
6760         (block_label): Drop use of SET_BB_HEAD.
6761         (fixup_abnormal_edges): Drop use of SET_BB_END.
6762         (record_effective_endpoints): Drop use of SET_BB_HEADER.
6763         (relink_block_chain): Likewise.
6764         (fixup_reorder_chain): Drop use of SET_BB_END.
6765         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
6766         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
6767         rtx_insn **.  Drop use of SET_BB_HEADER.
6768         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
6769         SET_BB_HEAD.
6770         (BB_HEAD): Delete this function.
6771         (SET_BB_HEAD): Likewise.
6772         (BB_END): Likewise.
6773         (SET_BB_END): Likewise.
6774         (BB_HEADER): Likewise.
6775         (SET_BB_HEADER): Likewise.
6776         * emit-rtl.c (add_insn_after):  Rename param "insn" to
6777         "uncast_insn", adding a new local "insn" and a checked cast to
6778         rtx_insn *.  Drop use of SET_BB_END.
6779         (remove_insn): Strengthen locals "next" and "prev" from rtx to
6780         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
6781         (reorder_insns): Drop use of SET_BB_END.
6782         (emit_insn_after_1): Strengthen param "first" and locals "last",
6783         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
6784         (emit_pattern_after_noloc): Add checked cast.
6785         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
6786         (restore_other_notes): Likewise.
6787         (move_insn): Likewise.
6788         (sched_extend_bb): Likewise.
6789         (fix_jump_move): Likewise.
6790         * ifcvt.c (noce_process_if_block): Likewise.
6791         (dead_or_predicable): Likewise.
6792         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
6793         * reg-stack.c (change_stack): Drop use of SET_BB_END.
6794         * sel-sched-ir.c (sel_move_insn): Likewise.
6795         * sel-sched.c (move_nop_to_previous_block): Likewise.
6797         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
6798         SET_BB_END.
6799         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6801 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6803         * basic-block.h (create_basic_block_structure): Strengthen params
6804         1 "head" and 2 "end" from rtx to rtx_insn *.
6805         * cfgrtl.c (create_basic_block_structure): Likewise.
6806         (rtl_create_basic_block): Update casts from void * to rtx to
6807         rtx_insn *, so that we can pass them as rtx_insn * to
6808         create_basic_block_structure.
6809         * sel-sched-ir.c (sel_create_basic_block): Likewise.
6811 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6813         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
6814         rtx_insn **.
6815         (check_for_inc_dec): Strengthen param "insn" from rtx to
6816         rtx_insn *.
6818         * cselib.h (cselib_process_insn): Likewise.
6820         * cselib.c (cselib_record_sets): Likewise.
6821         (cselib_process_insn): Likewise.
6823         * dse.c (struct insn_info): Likewise for field "insn".
6824         (check_for_inc_dec_1): Likewise for local "insn".
6825         (check_for_inc_dec): Likewise for param "insn".
6826         (scan_insn): Likewise.
6827         (dse_step1): Likewise for local "insn".
6829         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
6830         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
6832 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6834         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
6835         from rtx to rtx_insn *.
6836         (DEP_PRO): Delete this function and...
6837         (SET_DEP_PRO): ...this function in favor of...
6838         (DEP_PRO): ...reinstate this macro.
6839         (DEP_CON): Delete this function and...
6840         (SET_DEP_CON): ...this function in favor of...
6841         (DEP_CON): ...reinstate this old macro.
6842         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
6843         (init_dep): Likewise.
6844         (set_priorities): Likewise for both params.
6845         (sd_copy_back_deps): Likewise for params 1 and 2.
6847         * haifa-sched.c (priority): Likewise for param "insn" and local
6848         "next".
6849         (set_priorities): Likewise for params "head" and "tail" and local
6850         "insn".
6851         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
6852         local "consumer".
6853         (add_to_speculative_block): Add a checked cast.
6854         (create_check_block_twin): Drop use of SET_DEP_CON.
6855         (add_jump_dependencies): Strengthen params "insn" and "jump" from
6856         rtx to rtx_insn *.
6858         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
6859         Drop use of SET_DEP_PRO
6860         (init_dep): Strengthen params "pro" and "con" from rtx to
6861         rtx_insn *.
6862         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
6863         use of SET_DEP_CON.
6864         (DEP_PRO): Delete.
6865         (DEP_CON): Delete.
6866         (SET_DEP_PRO): Delete.
6867         (SET_DEP_CON): Delete.
6869 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6871         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
6872         from rtx to rtx_insn *.
6873         (VINSN_INSN_RTX): Eliminate rvalue function and...
6874         (SET_VINSN_INSN): ...lvalue function in favor of...
6875         (VINSN_INSN_RTX): reinstate this old macro.
6877         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
6878         in favor of VINSN_INSN_RTX.
6879         (VINSN_INSN_RTX): Delete this function.
6880         (SET_VINSN_INSN_RTX): Likewise.
6882 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6884         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
6885         (BND_TO): Delete this function and...
6886         (SET_BND_TO): ...this functions in favor of...
6887         (BND_TO): ...reinstating this macro.
6888         (struct _fence): Strengthen field "executing_insns" from
6889         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
6890         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
6891         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
6892         and param "insn" from rtx to insn_t.
6893         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
6894         rtx_insn *.
6896         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
6897         vec<rtx_insn *> .
6898         (rtx_vec_t): Likewise.
6899         (struct sched_deps_info_def): Strengthen param of "start_insn"
6900         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
6901         "note_mem_dep" callback and first param of "note_dep" callback.
6903         * haifa-sched.c (add_to_speculative_block): Strengthen param
6904         "insn" from rtx to rtx_insn *.
6905         (clear_priorities): Likewise.
6906         (calc_priorities): Likewise for local "insn".
6908         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
6909         Remove redundant checked cast.
6910         (haifa_note_mem_dep): Likewise for param "pending_insn".
6911         (haifa_note_dep): Likewise for param "elem".
6912         (note_mem_dep): Likewise for param "e".
6913         (sched_analyze_1): Add checked casts.
6914         (sched_analyze_2): Likewise.
6916         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
6917         from rtx to rtx_insn *.
6918         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
6919         from vec<rtx> * to vec<rtx_insn *> *.
6921         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
6922         scaffolding.
6923         (flist_add): Strengthen param "executing_insns" from
6924         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
6925         (advance_deps_context): Remove now-redundant checked cast.
6926         (init_fences): Replace uses of NULL_RTX with NULL.
6927         (merge_fences): Strengthen params "last_scheduled_insn" and
6928         "sched_next" from rtx to rtx_insn * and "executing_insns" from
6929         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
6930         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
6931         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
6932         an instruction, rather than doing double-duty as a pattern.
6933         (return_nop_to_pool): Update for change of insn_t.
6934         (deps_init_id): Remove now-redundant checked cast.
6935         (struct sched_scan_info_def): Strengthen param of "init_insn"
6936         callback from rtx to insn_t.
6937         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
6938         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
6939         NULL.
6940         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
6941         "end" from rtx to rtx_insn *.
6942         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
6943         (rtx insn_rtx, bool force_unique_p)
6944         (BND_TO): Delete function.
6945         (SET_BND_TO): Delete function.
6947         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
6948         rtx to rtx_insn *.
6949         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
6950         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
6951         rtx to rtx_insn *.
6952         (undo_transformations): Likewise for param "insn".
6953         (update_liveness_on_insn): Likewise.
6954         (compute_live_below_insn): Likewise for param "insn" and local
6955         "succ".
6956         (update_data_sets): Likewise for param "insn".
6957         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
6958         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
6959         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
6960         rtx_insn *.
6961         (move_cond_jump): Likewise for param "insn".
6962         (move_cond_jump): Drop use of SET_BND_TO.
6963         (compute_av_set_on_boundaries): Likewise.
6964         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
6965         (update_and_record_unavailable_insns): Strengthen local "bb_end"
6966         from rtx to rtx_insn *.
6967         (maybe_emit_renaming_copy): Likewise for param "insn".
6968         (maybe_emit_speculative_check): Likewise.
6969         (handle_emitting_transformations): Likewise.
6970         (remove_insn_from_stream): Likewise.
6971         (code_motion_process_successors): Strengthen local "succ" from rtx
6972         to insn_t.
6974 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
6976         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
6977         ilist_t, not _xlist_t;
6978         (ILIST_INSN): Define in terms of new union field "insn".
6979         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
6980         _XLIST_NEXT.
6981         (struct _list_node): Add new field "insn" to the union, of type
6982         insn_t.
6983         (ilist_add): Replace macro with an inline function, requiring an
6984         insn_t.
6985         (ilist_remove): Define this macro directly in terms of
6986         _list_remove, rather than indirectly via _xlist_remove.
6987         (ilist_clear): Likewise, in terms of _list_clear rather than
6988         _xlist_clear.
6989         (ilist_is_in_p): Replace macro with an inline function, requiring
6990         an insn_t.
6991         (_list_iter_cond_insn): New function.
6992         (ilist_iter_remove): Define this macro directly in terms of
6993         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
6994         (ilist_iterator): Define directly in terms of _list_iterator
6995         rather than indirectly through _xlist_iterator.
6996         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
6997         than in terms of _FOR_EACH_X.
6998         (FOR_EACH_INSN_1): Likewise.
7000 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
7002         PR target/60606
7003         PR target/61330
7004         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
7005         DECL_HARD_REGISTER and return for invalid register specifications.
7006         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
7007         DECL_HARD_REGISTER, call expand_one_error_var.
7008         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
7009         CC_REGNUM with non-MODE_CC modes.
7010         (arm_regno_class): Return NO_REGS for PC_REGNUM.
7012 2014-08-26  Marek Polacek  <polacek@redhat.com>
7014         PR c/61271
7015         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
7017 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
7019         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
7020         qi cost; add di cost.
7021         (cortexa57_addrcost_table): Likewise.
7023 2014-08-26  Marek Polacek  <polacek@redhat.com>
7025         PR c/61271
7026         * expr.c (is_aligning_offset): Remove logical not.
7028 2014-08-26  Marek Polacek  <polacek@redhat.com>
7030         PR c/61271
7031         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
7032         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
7034 2014-08-26  Richard Biener  <rguenther@suse.de>
7036         PR tree-optimization/62175
7037         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7038         expand possibly trapping operations.
7040 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
7042         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
7043         "insn" from rtx to rtx_insn *.
7044         (permute_load): Likewise for param "insn".
7045         (permute_store): Likewise.
7046         (handle_special_swappables): Likewise for local "insn".
7047         (replace_swap_with_copy): Likewise for locals "insn" and
7048         "new_insn".
7049         (rs6000_analyze_swaps): Likewise for local "insn".
7051 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7053         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
7054         to rtx_insn *.
7056 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7058         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
7059         "note_list" from rtx to rtx_insn *.
7060         (BB_NOTE_LIST): Replace this function and...
7061         (SET_BB_NOTE_LIST): ...this function with...
7062         (BB_NOTE_LIST): ...the former macro implementation.
7064         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
7065         local "from_start" from rtx to rtx_insn *.  Strengthen param
7066         "to_endp" from rtx * to rtx_insn **.
7068         * haifa-sched.c (concat_note_lists): Likewise.
7069         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
7070         BB_NOTE_LIST.
7071         (sel_restore_notes): Likewise.
7072         (move_bb_info): Likewise.
7073         (BB_NOTE_LIST): Delete this function.
7074         (SET_BB_NOTE_LIST): Delete this function.
7075         * sel-sched.c (create_block_for_bookkeeping): Eliminate
7076         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
7078 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7080         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
7081         from rtx * to rtx_insn **.
7082         (reorder2): Likewise.
7083         (dependencies_evaluation_hook): Strengthen params "head", "tail"
7084         from rtx to rtx_insn *.
7086         * doc/tm.texi: Update mechanically for above change to target.def.
7088         * sched-int.h (note_list): Strengthen this variable from rtx to
7089         rtx_insn *.
7090         (remove_notes): Likewise for both params.
7091         (restore_other_notes): Likewise for return type and first param.
7092         (struct ready_list): Strengthen field "vec" from rtx * to
7093         rtx_insn **.
7094         (struct dep_replacement): Strenghten field "insn" from rtx to
7095         rtx_insn *.
7096         (struct deps_desc): Likewise for fields "last_debug_insn",
7097         "last_args_size".
7098         (struct haifa_sched_info): Likewise for callback field
7099         "can_schedule_ready_p"'s param, for first param of "new_ready"
7100         callback field, for both params of "rank" callback field, for
7101         first field of "print_insn" callback field (with a const), for
7102         both params of "contributes_to_priority" callback, for param
7103         of "insn_finishes_block_p" callback, for fields "prev_head",
7104         "next_tail", "head", "tail", for first param of "add_remove_insn"
7105         callback, for first param of "begin_schedule_ready" callback, for
7106         both params of "begin_move_insn" callback, and for second param
7107         of "advance_target_bb" callback.
7108         (add_dependence): Likewise for params 1 and 2.
7109         (sched_analyze): Likewise for params 2 and 3.
7110         (deps_analyze_insn): Likewise for param 2.
7111         (ready_element): Likewise for return type.
7112         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7113         (try_ready): Strenghten param from rtx to rtx_insn *.
7114         (sched_emit_insn): Likewise for return type.
7115         (record_delay_slot_pair): Likewise for params 1 and 2.
7116         (add_delay_dependencies): Likewise for param.
7117         (contributes_to_priority): Likewise for both params.
7118         (find_modifiable_mems): Likewise.
7120         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
7121         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
7122         "first_older_only_insn" from rtx to rtx_insn *.
7123         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
7124         rtx_insn **.
7126         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
7127         "last_scheduled_iter0" from rtx to rtx_insn *.
7128         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
7129         (c6x_sched_reorder_1): Strengthen param "ready" and locals
7130         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
7131         "insn" from rtx to rtx_insn *.
7132         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
7133         rtx_insn **.
7134         (c6x_sched_reorder2): Strengthen param "ready" and locals
7135         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
7136         "insn" from rtx to rtx_insn *.
7137         (c6x_variable_issue):  Add a checked cast when assigning from insn
7138         to ss.last_scheduled_iter0.
7139         (split_delayed_branch): Strengthen param "insn" and local "i1"
7140         from rtx to rtx_insn *.
7141         (split_delayed_nonbranch): Likewise.
7142         (undo_split_delayed_nonbranch): Likewise for local "insn".
7143         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
7144         "entry_after", "end_packet", "head_insn", "tail_insn",
7145         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
7146         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
7147         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
7148         but add a checked cast on loop->start_label.  Consolidate calls to
7149         avoid assigning result of gen_spkernel to "insn", now an
7150         rtx_insn *.
7152         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
7153         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
7154         rtx to rtx_insn *.
7155         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
7156         rtx_insn **.  Strengthen locals "top", "next" from rtx to
7157         rtx_insn *.
7158         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
7159         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
7160         (add_parameter_dependencies): Strengthen params "call", "head" and
7161         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
7162         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
7163         (add_dependee_for_func_arg): Likewise for param "arg" and local
7164         "insn".
7165         (ix86_dependencies_evaluation_hook): Likewise for params "head",
7166         "tail" and locals "insn", "first_arg".
7168         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
7169         for params "head", "tail" and locals "insn", "next", "next_tail".
7170         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
7171         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
7172         "insn", "lowest", "highest" from rtx to rtx_insn *.
7173         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
7174         rtx_insn **.
7175         (ia64_sched_reorder2): Likewise.
7177         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
7178         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
7179         from rtx * to rtx_insn **.
7180         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
7181         rtx_insn **.
7182         (mep_print_sched_insn): Strengthen param "insn" from rtx to
7183         rtx_insn *.
7184         (mep_sched_reorder): Strengthen param "ready" from rtx * to
7185         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
7186         to rtx_insn *.
7188         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
7189         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
7190         to rtx_insn *.
7191         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
7192         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
7193         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
7194         rtx_insn **.
7195         (vr4130_reorder): Likewise.
7196         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
7197         rtx to rtx_insn *.
7198         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
7199         rtx_insn **.
7200         (mips_sched_reorder): Likewise.
7201         (mips_sched_reorder2): Likewise.
7203         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
7205         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
7206         Strengthen local "tmp" from rtx to rtx_insn *.
7207         (rs6000_sched_reorder2): Likewise.
7209         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
7210         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
7211         (s390_sched_reorder): Strengthen param "ready" from rtx * to
7212         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
7214         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
7215         "tmp2" from rtx to rtx_insn *.
7216         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
7217         Strengthen local "insn" from rtx to rtx_insn *.
7218         (ready_reorder): Strengthen param "ready" from rtx * to
7219         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
7220         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
7221         (sh_reorder2): Likewise.
7223         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
7224         local "insn" from rtx to rtx_insn *.
7226         * haifa-sched.c (note_list): Strengthen this variable from rtx to
7227         rtx_insn *.
7228         (scheduled_insns): Strengthen this variable from vec<rtx> to
7229         vec<rtx_insn *>.
7230         (set_modulo_params): Likewise for locals "i1", "i2".
7231         (record_delay_slot_pair): Likewise for params "i1", "i2".
7232         (add_delay_dependencies): Likewise for param "insn".
7233         (cond_clobbered_p): Likewise.
7234         (recompute_todo_spec): Likewise for local "prev".
7235         (last_scheduled_insn): Likewise for this variable.
7236         (nonscheduled_insns_begin): Likewise.
7237         (model_set_excess_costs): Strengthen param "insns" from rtx * to
7238         rtx_insn **.
7239         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
7240         rtx_insn *.
7241         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
7242         Strengthen local "insn" from rtx to rtx_insn *.
7243         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
7244         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
7245         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
7246         (ready_remove_first): Likewise for return type and local "t".
7247         (ready_element): Likewise for return type.
7248         (ready_remove): Likewise for return type and local "t".
7249         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
7250         (check_clobbered_conditions): Strengthen local "x" from rtx to
7251         rtx_insn *, adding a checked cast.
7252         (schedule_insn): Likewise for param "insn".
7253         (remove_notes): Likewise for params "head", "tail" and locals
7254         "next_tail", "insn", "next".
7255         (struct haifa_saved_data): Likewise for fields
7256         "last_scheduled_insn", "nonscheduled_insns_begin".
7257         (save_backtrack_point): Update for change to field "vec" of
7258         struct ready_list.
7259         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
7260         rtx_insn **.
7261         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
7262         from rtx to rtx_insn *
7263         (resolve_dependencies): Strengthen param "insn" from rtx to
7264         rtx_insn *
7265         (restore_other_notes): Likewise for return type, for param "head"
7266         and local "note_head".
7267         (undo_all_replacements): Likewise for local "insn".
7268         (first_nonscheduled_insn): Likewise for return type and local "insn".
7269         (queue_to_ready): Likewise for local "insn", adding checked casts.
7270         (early_queue_to_ready): Likewise for local "insn".
7271         (debug_ready_list_1): Strengthen local "p" from rtx * to
7272         rtx_insn **.
7273         (move_insn): Strengthen param "insn" and local "note" from rtx to
7274         rtx_insn *
7275         (insn_finishes_cycle_p): Likewise for param "insn".
7276         (max_issue): Likewise for local "insn".
7277         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
7278         to rtx_insn **.
7279         (commit_schedule): Strengthen param "prev_head" and local "insn"
7280         from rtx to rtx_insn *
7281         (prune_ready_list): Likewise for local "insn".
7282         (schedule_block): Likewise for locals "prev_head", "head", "tail",
7283         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
7284         (set_priorities): Likewise for local "prev_head".
7285         (try_ready): Likewise for param "next".
7286         (fix_tick_ready): Likewise.
7287         (change_queue_index): Likewise.
7288         (sched_extend_ready_list): Update for change to field "vec" of
7289         struct ready_list.
7290         (generate_recovery_code): Strengthen param "insn" from rtx to
7291         rtx_insn *.
7292         (begin_speculative_block): Likewise.
7293         (create_check_block_twin): Likewise for param "insn" and locals
7294         "label", "check", "twin".  Introduce local "check_pat" to avoid
7295         "check" being used as a plain rtx before being used as an insn.
7296         (fix_recovery_deps): Add a checked cast to rtx_insn * when
7297         extracting elements from ready_list.
7298         (sched_remove_insn): Strengthen param "insn" from rtx to
7299         rtx_insn *.
7300         (sched_emit_insn): Likewise for return type.
7301         (ready_remove_first_dispatch): Likewise for return type and local
7302         "insn".
7304         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
7306         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
7307         const rtx_insn *.
7309         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
7310         from rtx to rtx_insn *.
7311         (add_dependence_list): Likewise for param "insn".  Add a checked
7312         cast.
7313         (add_dependence_list_and_free): Strengthen param "insn" from rtx
7314         to rtx_insn *.  Strengthen param "list_p" from rtx * to
7315         rtx_insn **.
7316         (chain_to_prev_insn): Strengthen param "insn" and locals
7317         "prec_nonnote", "i" from rtx to rtx_insn *.
7318         (flush_pending_lists): Likewise for param "insn".
7319         (cur_insn): Likewise for this variable.
7320         (haifa_start_insn): Add a checked cast.
7321         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
7322         (sched_analyze_reg): Likewise for param "insn".
7323         (sched_analyze_1): Likewise.
7324         (sched_analyze_2): Likewise.  Add checked casts.
7325         (sched_analyze_insn): Likewise.  Also for local "prev".
7326         (deps_analyze_insn): Likewise for param "insn".
7327         (sched_analyze): Likewise for params "head", "tail" and local "insn".
7328         (add_dependence_1): Likewise for params "insn", "elem".
7329         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
7330         (parse_add_or_inc): Likewise for param "insn".
7331         (find_inc): Likewise for local "inc_cand".
7332         (find_modifiable_mems): Likewise for params "head", "tail" and
7333         locals "insn", "next_tail".
7335         * sched-ebb.c (init_ready_list): Likewise for local "insn".
7336         (begin_schedule_ready): Likewise for param "insn".
7337         (begin_move_insn): Likewise for params "insn" and "last".
7338         (ebb_print_insn): Strengthen param "insn" from const_rtx to
7339         const rtx_insn *.
7340         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
7341         (ebb_contributes_to_priority): Likewise for params "next", "insn".
7342         (ebb_add_remove_insn): Likewise for param "insn".
7343         (advance_target_bb): Likewise.
7345         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
7346         "insn".
7347         (check_live): Likewise for param "insn".
7348         (init_ready_list): Likewise for local "insn".
7349         (can_schedule_ready_p): Likewise for param "insn".
7350         (begin_schedule_ready): Likewise.
7351         (new_ready): Likewise for param "next".
7352         (rgn_print_insn): Likewise for param "insn".
7353         (rgn_rank): Likewise for params "insn1", "insn2".
7354         (contributes_to_priority): Likewise for params "next", "insn".
7355         (rgn_insn_finishes_block_p): Likewise for param "insn".
7356         (add_branch_dependences): Likewise for params "head", "tail" and
7357         locals "insn", "last".
7358         (rgn_add_remove_insn): Likewise for param "insn".
7359         (advance_target_bb): Likewise.
7361         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
7362         const_rtx to const rtx_insn *.
7364         * sel-sched-dump.h (sel_print_insn): Likewise.
7366         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
7367         (deps_init_id): Likewise.
7369         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
7370         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
7371         rtx_insn **.
7373 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7375         * output.h (final_start_function): Strengthen param 1 from rtx to
7376         rtx_insn *.
7378         * final.c (final_start_function): Likewise, renaming back from
7379         "uncast_first" to "first", and dropping the checked cast from rtx
7380         to rtx_insn *.
7382 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7384         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
7385         * final.c (final): Likewise.  Rename param back from
7386         "uncast_first" to "first" and eliminate the checked cast from rtx
7387         to rtx_insn *.
7389 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7391         * output.h (shorten_branches): Strengthen param from rtx to
7392         rtx_insn *.
7394         * final.c (shorten_branches): Likewise, renaming param back from
7395         "uncast_first" to "first", and dropping the checked cast from rtx
7396         to rtx_insn *.
7398         * genattr.c (gen_attr): Likewise when writing out the prototype of
7399         shorten_branches.
7401 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7403         * sched-int.h (struct haifa_sched_info): Strengthen fields
7404         "prev_head" and "next_tail" from rtx to rtx_insn *.
7406 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7408         * rtl.h (rtx_jump_table_data::get_labels): New method.
7409         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
7410         with use of the new rtx_jump_table_data::get_labels method.
7411         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
7412         to rtx_jump_table_data *.  Simplify by using get_labels method.
7413         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
7414         a dyn_cast, introducing local "table", using it to replace
7415         label-lookup logic with a get_labels method call.
7416         (patch_jump_insn): Simplify using get_labels method.
7417         * dwarf2cfi.c (create_trace_edges): Likewise.
7418         * rtlanal.c (label_is_jump_target_p): Likewise.
7420 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7422         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
7423         to rtx_insn *.
7425         * emit-rtl.c (unshare_all_rtl_1): Likewise.
7426         (unshare_all_rtl_again): Likewise, also for local "p".
7428 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7430         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
7431         to rtx_insn *.
7432         * cfgrtl.c (delete_insn_and_edges): Likewise.
7434 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7436         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
7437         from rtx to rtx_insn *.
7439         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
7441 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7443         * function.c (thread_prologue_and_epilogue_insns): Likewise for
7444         locals "returnjump", "epilogue_end", "insn", "next".
7446         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
7447         "returnjump" from rtx * to rtx_insn **.
7448         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
7450 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7452         * basic-block.h (struct edge_def). Strengthen "r" within
7453         union edge_def_insns from rtx to rtx_insn *.
7455         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
7456         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
7457         rtx_insn *.
7458         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
7459         from rtx to rtx_insn *.
7460         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
7461         rtx_insn *.
7462         * postreload-gcse.c (reg_killed_on_edge): Likewise.
7463         (reg_used_on_edge): Likewise.
7464         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
7465         (gt_pch_nx): New overload for rtx_insn *&.
7466         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
7467         from rtx to rtx_insn *.
7469 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7471         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
7472         from rtx to rtx_insn *.
7473         (BB_FOOTER): Replace function with access macro.
7474         (SET_BB_FOOTER): Delete.
7476         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
7477         with BB_FOOTER.
7478         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7479         (emit_barrier_after_bb): Likewise.
7480         (record_effective_endpoints): Likewise.
7481         (relink_block_chain): Likewise.
7482         (fixup_fallthru_exit_predecessor): Likewise.
7483         (cfg_layout_duplicate_bb): Likewise.
7484         (cfg_layout_split_block): Likewise.
7485         (cfg_layout_delete_block): Likewise.
7486         (cfg_layout_merge_blocks): Likewise.
7487         (BB_FOOTER): Delete function.
7488         (SET_BB_FOOTER): Delete function.
7489         * combine.c (update_cfg_for_uncondjump): Replace uses of
7490         SET_BB_FOOTER with BB_FOOTER.
7492 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7494         * except.h (struct eh_landing_pad_d): Strengthen field
7495         "landing_pad" from rtx to rtx_code_label *.
7497         * except.c (sjlj_emit_dispatch_table): Likewise for param
7498         "dispatch_label"
7499         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
7501 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7503         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
7504         first param from rtx to rtx_insn *.
7505         * config/xtensa/xtensa.c (struct machine_function): Likewise for
7506         field "set_frame_ptr_insn".
7507         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
7508         "csend" from rtx to rtx_code_label *.
7509         (xtensa_expand_atomic): Likewise for local "csloop".
7510         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
7511         rtx_insn *.
7512         (xtensa_call_tls_desc): Likewise for return type and locals
7513         "call_insn", "insns".
7514         (xtensa_legitimize_tls_address): Likewise for local "insns".
7515         (xtensa_expand_prologue): Likewise for locals "insn", "first".
7517 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7519         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
7520         first param from rtx to rtx_insn *.
7521         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
7522         "insn".
7524 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7526         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
7527         Strengthen param 1 from rtx to rtx_insn *.
7528         (tilepro_output_cbranch): Likewise.
7529         (tilepro_adjust_insn_length): Likewise.
7530         (tilepro_final_prescan_insn): Likewise for sole param.
7532         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
7533         Likewise for local "last".
7534         (cbranch_predicted_p): Likewise for param "insn".
7535         (tilepro_output_simple_cbranch_with_opcode): Likewise.
7536         (tilepro_output_cbranch_with_opcode): Likewise.
7537         (tilepro_output_cbranch): Likewise.
7538         (frame_emit_load): Likewise for return type and locals "seq",
7539         "insn".
7540         (emit_sp_adjust): Likewise for return type and local "insn".
7541         (tilepro_expand_epilogue): Likewise for locals "last_insn",
7542         "insn".
7543         (tilepro_adjust_insn_length): Likewise for param "insn".
7544         (next_insn_to_bundle): Likewise for return type and params
7545         "r", "end".
7546         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
7547         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
7548         local "new_insns".
7549         (match_addli_pcrel): Likewise for param "insn".
7550         (replace_addli_pcrel): Likewise.
7551         (match_auli_pcrel): Likewise.
7552         (replace_auli_pcrel): Likewise.
7553         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
7554         "next_insn".
7555         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7556         "queue", "next_queue", "prev".
7557         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
7558         (tilepro_final_prescan_insn): Likewise for param "insn".
7560 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7562         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
7563         Strengthen param 1 from rtx to rtx_insn *.
7564         (tilegx_output_cbranch): Likewise.
7565         (tilegx_adjust_insn_length): Likewise.
7566         (tilegx_final_prescan_insn): Likewise for sole param.
7568         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
7569         or local "last".
7570         (cbranch_predicted_p): Likewise for param "insn".
7571         (tilegx_output_simple_cbranch_with_opcode): Likewise.
7572         (tilegx_output_cbranch_with_opcode): Likewise.
7573         (tilegx_output_cbranch): Likewise.
7574         (frame_emit_load): Likewise for return type.
7575         (set_frame_related_p): Likewise for locals "seq", "insn".
7576         (emit_sp_adjust): Likewise for return type, and for local "insn".
7577         Introduce local "pat" for use in place of "insn" where the latter
7578         isn't an instruction.
7579         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
7580         from rtx to rtx_insn *.
7581         (tilegx_adjust_insn_length): Likewise for param "insn".
7582         (next_insn_to_bundle): Likewise for return type and params "r" and
7583         "end".
7584         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
7585         "end".
7586         (replace_insns): Likewise for params "old_insn", "new_insns".
7587         (replace_mov_pcrel_step1): Likewise for param "insn" and local
7588         "new_insns".
7589         (replace_mov_pcrel_step2): Likewise.
7590         (replace_mov_pcrel_step3): Likewise.
7591         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
7592         "next_insn".
7593         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
7594         "queue", "next_queue", "prev".
7595         (tilegx_output_mi_thunk): Likewise for local "insn".
7596         (tilegx_final_prescan_insn): Likewise for param "insn".
7598 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7600         * config/spu/spu.c (frame_emit_store): Strengthen return type from
7601         rtx to rtx_insn *.
7602         (frame_emit_load): Likewise.
7603         (frame_emit_add_imm): Likewise, also for local "insn".
7604         (spu_expand_prologue): Likewise for local "insn".
7605         (struct spu_bb_info): Likewise for field "prop_jump".
7606         (emit_nop_for_insn): Likewise for param "insn" and local
7607         "new_insn".
7608         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
7609         "hbr_insn".
7610         (spu_emit_branch_hint): Likewise for params "before", "branch" and
7611         locals "hint", "insn".
7612         (get_branch_target): Likewise for param "branch".
7613         (insn_clobbers_hbr): Likewise for param "insn".
7614         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
7615         locals "insn", "before_4", "before_16".
7616         (insert_hbrp): Likewise for local "insn".
7617         (spu_machine_dependent_reorg): Likewise for locals "branch",
7618         "insn", "next", "bbend".
7619         (uses_ls_unit): Likewise for param "insn".
7620         (get_pipe): Likewise.
7621         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
7622         introducing a checked cast.
7623         (spu_sched_adjust_cost): Likewise for params "insn" and
7624         "dep_insn".
7625         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
7626         (spu_sms_res_mii): Likewise.
7628 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7630         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
7631         from rtx to rtx_insn *.
7632         (output_cbranch): Likewise for param 6.
7633         (output_return): Likewise for param 1.
7634         (output_sibcall): Likewise.
7635         (output_v8plus_shift): Likewise.
7636         (output_v8plus_mult): Likewise.
7637         (output_v9branch): Likewise for param 7.
7638         (output_cbcond):  Likewise for param 3.
7640         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
7641         for local "insn".
7642         (sparc_legitimize_pic_address): Likewise.
7643         (sparc_emit_call_insn): Likewise.
7644         (emit_save_or_restore_regs): Likewise.
7645         (emit_window_save): Likewise for return type and local "insn".
7646         (sparc_expand_prologue): Likewise for local "insn".
7647         (sparc_flat_expand_prologue): Likewise.
7648         (output_return): Likewise for param "insn".
7649         (output_sibcall): Likewise for param "insn" and local "delay".
7650         (output_ubranch): Likewise for param "insn".
7651         (output_cbranch): Likewise.
7652         (output_cbcond): Likewise.
7653         (output_v9branch): Likewise.
7654         (output_v8plus_shift): Likewise.
7655         (sparc_output_mi_thunk): Likewise for local "insn".
7656         (get_some_local_dynamic_name): Likewise.
7657         (output_v8plus_mult): Likewise for param "insn".
7659 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7661         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
7662         from rtx to rtx_insn *.
7663         (output_branchy_insn): Likewise for param 3.
7664         (output_far_jump): Likewise for param 1.
7665         (final_prescan_insn): Likewise.
7666         (sh_insn_length_adjustment): Likewise for sole param.
7668         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
7669         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
7670         rtx_code_label *.
7671         (sh_emit_compare_and_set): Likewise for local "lab".
7672         (output_far_jump): Strengthen param "insn" and local "prev" from
7673         rtx to rtx_insn *.
7674         (output_branchy_insn): Likewise for param "insn" and local
7675         "next_insn".
7676         (output_ieee_ccmpeq): Likewise for param "insn".
7677         (struct label_ref_list_d): Strengthen field "label" from rtx to
7678         rtx_code_label *.
7679         (pool_node): Likewise.
7680         (pool_window_label): Likewise for this global.
7681         (add_constant): Likewise for return type and locals "lab", "new_rtx".
7682         (dump_table): Strengthen params "start", "barrier" and local
7683         "scan" from rtx to rtx_insn *.
7684         (broken_move): Likewise for param "insn".
7685         (untangle_mova): Likewise for params "first_mova" and "new_mova".
7686         Strengthen param "first_mova" from rtx * to rtx_insn **.
7687         (mova_p): Likewise for param "insn".
7688         (fixup_mova): Likewise for param "mova".
7689         (find_barrier): Likewise for return type, params "mova" and
7690         "from", and locals "barrier_before_mova", "found_barrier",
7691         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
7692         "label" from rtx to rtx_code_label *.
7693         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
7694         rtx to rtx_insn *.
7695         (sh_reorg): Likewise for locals "link", "scan", "barrier".
7696         (split_branches): Likewise for param "first" and local "insn".
7697         (final_prescan_insn): Likewise for param "insn".
7698         (sequence_insn_p): Likewise for locals "prev", "next".
7699         (sh_insn_length_adjustment): Likewise for param "insn".
7700         (sh_can_redirect_branch): Likewise for local "insn".
7701         (find_r0_life_regions): Likewise for locals "end", "insn".
7702         (sh_output_mi_thunk): Likewise for local "insns".
7704 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7706         * config/score/score.c (score_output_mi_thunk): Strengthen local
7707         "insn" from rtx to rtx_insn *.
7708         (score_prologue): Likewise.
7710 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7712         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
7713         1 from rtx to rtx_insn *.
7714         (s390_emit_jump): Likewise for return type.
7715         (s390_emit_call): Likewise.
7716         (s390_load_got): Likewise.
7718         * config/s390/s390.c (last_scheduled_insn): Likewise for this
7719         variable.
7720         (s390_match_ccmode): Likewise for param "insn".
7721         (s390_emit_jump): Likewise for return type.
7722         (s390_split_branches): Likewise for local "label".
7723         (struct constant): Strengthen field "label" from rtx to
7724         rtx_code_label *.
7725         (struct constant_pool): Likewise for field "label".  Strengthen
7726         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
7727         rtx_insn *.
7728         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
7729         insns.
7730         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
7731         (s390_end_pool): Likewise.
7732         (s390_dump_pool): Likewise for local "insn".
7733         (s390_mainpool_start): Likewise.
7734         (s390_chunkify_start): Likewise.
7735         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
7736         with insns.  Strengthen locals "label", "jump", "barrier", "next",
7737         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
7738         (s390_chunkify_finish): Strengthen local "insn" from rtx to
7739         rtx_insn *.
7740         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
7741         "jump", "label", "next_insn".
7742         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
7743         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
7744         "tbegin_insn".
7745         (s390_load_got): Likewise for return type and local "insns".
7746         (s390_save_gprs_to_fprs): Likewise for local "insn".
7747         (s390_restore_gprs_from_fprs): Likewise.
7748         (pass_s390_early_mach::execute): Likewise.
7749         (s390_emit_prologue): Likewise for local "insns".
7750         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
7751         rtx_code_label *.
7752         (s390_emit_call): Strengthen return type and local "insn" from
7753         rtx to rtx_insn *.
7754         (s390_emit_tpf_eh_return): Likewise for local "insn".
7755         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
7756         "next_insn", introducing locals "s_pat", "rpat" to allow this.
7757         (s390_fix_long_loop_prediction): Likewise for param "insn" and
7758         local "cur_insn".
7759         (s390_non_addr_reg_read_p): Likewise for param "insn".
7760         (find_cond_jump): Likewise for return type and param "insn".
7761         (s390_swap_cmp): Likewise for param "insn".
7762         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
7763         "prev_insn", "next_insn".
7764         (s390_reorg): Likewise for locals "insn", "target".
7765         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
7766         (s390_sched_variable_issue): For now, rename param "insn" to
7767         "uncast_insn", introducing a checked cast.
7768         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
7769         insn.
7770         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
7771         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
7773 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7775         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
7776         param from rtx to rtx_insn *.
7777         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
7779 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7781         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
7782         4 from rtx to rtx_insn *.
7783         (rs6000_final_prescan_insn): Likewise for first param.
7784         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
7785         local "insn".
7786         (rs6000_get_some_local_dynamic_name): Likewise.
7787         (output_cbranch): Likewise for param "insn".
7788         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
7789         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
7790         (rs6000_emit_allocate_stack): Likewise for local "insn".
7791         (load_cr_save): Likewise.
7792         (restore_saved_cr): Likewise.
7793         (restore_saved_lr): Likewise.
7794         (emit_cfa_restores): Likewise.
7795         (rs6000_output_function_epilogue): Likewise for locals "insn" and
7796         "deleted_debug_label".
7797         (rs6000_output_mi_thunk): Likewise for local "insn".
7798         (rs6000_final_prescan_insn): Likewise for param "insn".
7800 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7802         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
7803         Strengthen param "insn" from rtx to rtx_insn *.
7804         * config/picochip/picochip.c (picochip_current_prescan_insn):
7805         Likewise for this variable.
7806         (picochip_final_prescan_insn): Likewise for param "insn".
7808 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7810         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
7811         from rtx to rtx_insn *.
7812         (pa_output_indirect_call): Likewise.
7813         (pa_adjust_insn_length): Likewise.
7814         (pa_attr_length_millicode_call): Likewise.
7815         (pa_attr_length_call): Likewise.
7816         (pa_attr_length_indirect_call): Likewise.
7818         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
7819         "insn".
7820         (pa_attr_length_millicode_call): Likewise.
7821         (pa_attr_length_call): Likewise.
7822         (pa_output_call): Likewise.
7823         (pa_attr_length_indirect_call): Likewise.
7824         (pa_output_indirect_call): Likewise.
7826 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7828         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
7829         Strengthen first param from rtx to rtx_insn *.
7830         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
7831         param "insn".
7833 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7835         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
7836         type from rtx to rtx_insn *.
7837         (mips_expand_call): Likewise.
7838         (mips_adjust_insn_length): Likewise for first param.
7839         (mips_output_conditional_branch): Likewise.
7840         (mips_output_order_conditional_branch): Likewise.
7841         (mips_final_prescan_insn): Likewise.
7843         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
7844         rtx_insn * for the SEQUENCE case.
7845         (SEQ_END): Likewise.
7846         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
7847         (mips_emit_call_insn): Likewise, also for local "insn".
7848         (mips16_gp_pseudo_reg): Likewise for local "scan".
7849         (mips16_build_call_stub): Likewise for return type and for local
7850         "insn".  Introduce a new local "pattern" so that "insn" can indeed
7851         be an insn.
7852         (mips_expand_call): Strengthen return type and local "insn" from
7853         rtx to rtx_insn *.
7854         (mips_block_move_loop): Strengthen local "label" from rtx to
7855         rtx_code_label *.
7856         (mips_expand_synci_loop): Likewise for locals "label",
7857         "end_label".
7858         (mips_set_frame_expr): Strengthen local "insn" from rtx to
7859         rtx_insn *.
7860         (mips16e_collect_argument_saves): Likewise for locals "insn",
7861         "next".
7862         (mips_find_gp_ref): Likewise for param of callback for "pred"
7863         param, and for local "insn".
7864         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
7865         (mips_insn_has_flexible_gp_ref_p): Likewise.
7866         (mips_epilogue_emit_cfa_restores): Likewise for return type and
7867         local "insn".
7868         (mips_epilogue_set_cfa): Likewise for local "insn".
7869         (mips_expand_epilogue): Likewise.
7870         (mips_adjust_insn_length): Likewise for param "insn".
7871         (mips_output_conditional_branch): Likewise.
7872         (mips_output_order_conditional_branch): Likewise.
7873         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
7874         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
7875         "falu2_turn_enabled_insn".
7876         (mips_builtin_branch_and_move): Strengthen locals "true_label",
7877         "done_label" from rtx to rtx_code_label *.
7878         (struct mips16_constant): Likewise for field "label".
7879         (mips16_add_constant): Likewise for return type.
7880         (mips16_emit_constants_1): Strengthen return type and param "insn"
7881         from rtx to rtx_insn *.
7882         (mips16_emit_constants): Likewise for param "insn".
7883         (mips16_insn_length): Likewise.
7884         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
7885         to rtx_code_label *.
7886         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
7887         from rtx to rtx_insn *.
7888         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
7889         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
7890         (r10k_simplify_address): Strengthen param "insn" and local
7891         "def_insn" from rtx to rtx_insn *.
7892         (r10k_safe_address_p): Strengthen param "insn" from rtx to
7893         rtx_insn *.
7894         (r10k_needs_protection_p_1): Update target type of cast of data
7895         from to rtx to rtx_insn *.
7896         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
7897         rtx * to rtx_insn **.
7898         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
7899         rtx_insn *.
7900         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
7901         (mips_call_expr_from_insn): Likewise for param "insn".
7902         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
7903         (mips_find_pic_call_symbol): Likewise for param "insn".
7904         (mips_annotate_pic_calls): Likewise for local "insn".
7905         (mips_sim_insn): Likewise for this variable.
7906         (struct mips_sim): Likewise for field "insn" within elements of
7907         last_set array.
7908         (mips_sim_wait_reg): Likewise for param "insn".
7909         (mips_sim_wait_regs): Likewise.
7910         (mips_sim_wait_units): Likewise.
7911         (mips_sim_wait_insn): Likewise.
7912         (mips_sim_issue_insn): Likewise.
7913         (mips_sim_finish_insn): Likewise.
7914         (mips_seq_time): Likewise for param "seq" and local "insn".
7915         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
7916         locals "first", "second".
7917         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
7918         "last", "last2", "next".
7919         (mips_avoid_hazard): Likewise for params "after", "insn".
7920         (mips_reorg_process_insns): Likewise for locals "insn",
7921         "last_insn", "subinsn", "next_insn".
7922         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
7923         (mips16_split_long_branches): Likewise for locals "insn" "jump",
7924         "jump_sequence".
7925         (mips_output_mi_thunk): Likewise for local "insn".
7926         (mips_final_prescan_insn): Likewise for param "insn".
7928 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7930         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
7931         Strengthen return type and local "insns" from rtx to rtx_insn *.
7932         (microblaze_legitimize_tls_address): Likewise for local "insns".
7933         (microblaze_block_move_loop): Strengthen local "label" from rtx
7934         to rtx_code_label *.
7935         (microblaze_expand_prologue): Strengthen two locals named "insn"
7936         from rtx to rtx_insn *.
7937         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
7938         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
7939         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
7940         to rtx_code_label *.
7942 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
7944         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
7945         param from rtx to rtx_insn *.
7946         (mep_reuse_lo): Likewise for third param.
7947         (mep_use_post_modify_p): Likewise for first param.
7948         (mep_core_address_length): Likewise.
7949         (mep_cop_address_length): Likewise.
7950         (mep_final_prescan_insn): Likewise.
7951         (mep_store_data_bypass_p): Likewise for both params.
7952         (mep_mul_hilo_bypass_p): Likewise.
7953         (mep_ipipe_ldc_p): Likewise for param.
7955         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
7956         (mep_rewrite_mult): Likewise.
7957         (mep_rewrite_mulsi3): Likewise.
7958         (mep_rewrite_maddsi3): Likewise.
7959         (mep_reuse_lo_p_1): Likewise.
7960         (mep_reuse_lo_p): Likewise.
7961         (mep_frame_expr): Likewise.
7962         (mep_make_parallel): Likewise for both params.
7963         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
7964         local "insn".
7965         (mep_use_post_modify_p): Likewise for param "insn".
7966         (mep_core_address_length): Likewise.
7967         (mep_cop_address_length): Likewise.
7968         (mep_reg_set_in_function): Likewise for local "insn".
7969         (mep_asm_without_operands_p): Likewise.
7970         (F): Likewise for return type and param "x".
7971         (add_constant): Likewise for local "insn".
7972         (maybe_dead_move): Likewise for return type and local "insn".
7973         (mep_expand_prologue): Likewise for local "insn".
7974         (mep_final_prescan_insn): Likewise for param "insn".
7975         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
7976         "next", "follow", "x".
7977         (mep_insert_repeat_label_last): Likewise for return type, param
7978         "last_insn", and locals "next", "prev".  Strengthen param "label"
7979         from rtx to rtx_code_label *.
7980         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
7981         rtx_insn *.
7982         (struct mep_doloop_end): Likewise for fields "insn" and
7983         "fallthrough".
7984         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
7985         Strengthen local "repeat_label" from rtx to rtx_code_label *.
7986         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
7987         rtx_insn *.
7988         (mep_invert_branch): Likewise for params "insn" and "after".
7989         (mep_reorg_erepeat): Likewise for param "insns" and locals
7990         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
7991         "l" from rtx to rtx_code_label *.
7992         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
7993         from rtx to rtx_insn *.
7994         (mep_reorg_addcombine): Likewise for param "insns" and locals
7995         "i", "n".
7996         (add_sp_insn_p): Likewise for param "insn".
7997         (mep_reorg_noframe): Likewise for param "insns" and locals
7998         "start_frame_insn", "end_frame_insn", "next".
7999         (mep_reorg): Likewise for local "insns".
8000         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
8001         cast.
8002         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
8003         (mep_mul_hilo_bypass_p): Likewise.
8004         (mep_ipipe_ldc_p): Likewise for param "insn".
8005         (mep_make_bundle): Likewise for return type, param "cop" and local
8006         "insn", splitting out the latter into a new local "seq" for when it
8007         is a SEQUENCE rather than an insn.
8008         (core_insn_p): Likewise for param "insn".
8009         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
8010         "last", "first", "note", "prev", "core_insn".
8012 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8014         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
8015         rtx to rtx_insn *.
8016         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
8017         (m68k_final_prescan_insn): Likewise for first param.
8019         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
8020         (m68k_set_frame_related): Likewise for param "insn".
8021         (output_btst): Likewise for param "insn".
8022         (m68k_final_prescan_insn): Likewise.
8023         (m68k_move_to_reg): Likewise for local "insn".
8024         (m68k_call_tls_get_addr): Likewise for local "insns".
8025         (m68k_call_m68k_read_tp): Likewise.
8026         (strict_low_part_peephole_ok): Likewise for param "first_insn".
8027         (m68k_output_mi_thunk): Likewise for local "insn".
8029 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8031         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
8032         first param from rtx to rtx_insn *.
8033         (iq2000_adjust_insn_length): Likewise.
8034         (iq2000_output_conditional_branch): Likewise.
8035         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
8036         "insn" and local "nop_insn".
8037         (iq2000_annotate_frame_insn): Likewise for param "insn".
8038         (iq2000_expand_prologue): Likewise for both locals "insn".
8039         (iq2000_adjust_insn_length): Likewise for param "insn".
8040         (iq2000_output_conditional_branch): Likewise.
8042 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8044         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
8045         "insns" from rtx to rtx_insn *.
8046         (ia64_emit_cond_move): Likewise for locals "insn", "first".
8047         (struct spill_fill_data): Likewise for field "init_after" and for
8048         elements of array field "prev_insn".
8049         (spill_restore_mem): Likewise for locals "insn", "first".
8050         (do_spill): Likewise for local "insn".
8051         (do_restore): Likewise.
8052         (ia64_expand_prologue): Likewise.
8053         (ia64_expand_epilogue): Likewise.
8054         (emit_insn_group_barriers): Likewise for locals "insn",
8055         "last_label".
8056         (emit_all_insn_group_barriers): Likewise for locals "insn",
8057         "last".
8058         (dfa_stop_insn): Likewise for this global.
8059         (dfa_pre_cycle_insn): Likewise.
8060         (ia64_nop): Likewise.
8061         (final_emit_insn_group_barriers): Likewise for locals "insn",
8062         "last".
8063         (emit_predicate_relation_info): Likewise for locals "head", "n",
8064         "insn", "b", "a".
8065         (ia64_reorg): Likewise for local "insn".
8066         (ia64_output_mi_thunk): Likewise.
8067         (expand_vec_perm_interleave_2): Likewise for local "seq".
8069 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8071         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
8072         param 1 "insn" from rtx to rtx_insn *.
8073         (ix86_use_lea_for_mov): Likewise.
8074         (ix86_avoid_lea_for_addr): Likewise.
8075         (ix86_split_lea_for_addr): Likewise.
8076         (ix86_lea_for_add_ok): Likewise.
8077         (ix86_output_call_insn): Likewise.
8079         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
8080         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
8081         (ix86_output_function_epilogue): Likewise for locals "insn",
8082         "deleted_debug_label".
8083         (legitimize_tls_address): Likewise for local "insn".
8084         (get_some_local_dynamic_name): Likewise.
8085         (increase_distance): Likewise for params "prev", "next".
8086         (distance_non_agu_define_in_bb): Likewise for params "insn",
8087         "start" and locals "prev", "next".
8088         (distance_non_agu_define): Likewise for param "insn".
8089         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
8090         locals "next", "prev".
8091         (distance_agu_use): Likewise for param "insn".
8092         (ix86_lea_outperforms): Likewise.
8093         (ix86_ok_to_clobber_flags): Likewise.
8094         (ix86_avoid_lea_for_add): Likewise.
8095         (ix86_use_lea_for_mov): Likewise.
8096         (ix86_avoid_lea_for_addr): Likewise.
8097         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
8098         (ix86_split_lea_for_addr): Likewise for param "insn".
8099         (ix86_lea_for_add_ok): Likewise for param "insn".
8100         (ix86_expand_carry_flag_compare): Likewise for local
8101         "compare_seq".
8102         (ix86_expand_int_movcc): Likewise.
8103         (ix86_output_call_insn): Likewise for param "insn".
8104         (ix86_output_call_insn): Likewise for local "i".
8105         (x86_output_mi_thunk): Introduce local "insn", using it in place
8106         of "tmp" when dealing with insns.
8107         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
8108         "start".
8109         (ix86_pad_returns): Likewise for locals "ret", "prev".
8110         (ix86_count_insn_bb): Likewise for local "insn".
8111         (ix86_pad_short_function): Likewise for locals "ret", "insn".
8112         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
8113         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
8114         (expand_vec_perm_interleave2): Likewise for local "seq".
8115         (expand_vec_perm_vperm2f128_vblend): Likewise.
8116         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
8117         call to for_each_rtx with for_each_rtx_in_insn.
8119 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8121         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
8122         "label" from rtx to rtx_code_label *.
8123         (ix86_expand_prologue): Likewise.
8124         (ix86_expand_split_stack_prologue): Likewise for locals "label",
8125         "varargs_label".
8126         (ix86_split_idivmod): Likewise for locals "end_label" and
8127         "qimode_label".
8128         (ix86_expand_branch): Likewise for local "label2".
8129         (ix86_expand_aligntest): Likewise for return type and local "label".
8130         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
8131         "top_label".
8132         (expand_movmem_epilogue): Likewise for the various locals named
8133         "label".
8134         (expand_setmem_epilogue): Likewise.
8135         (expand_small_movmem_or_setmem): Likewise for local "label".
8136         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8137         Strengthen param "done_label" from rtx * to rtx_code_label **.
8138         Strengthen locals "loop_label" and "label" from rtx to
8139         rtx_code_label *.
8140         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
8141         Likewise for locals "loop_label", "label".
8142         (ix86_expand_set_or_movmem): Likewise for locals "label",
8143         "jump_around_label", "hot_label".
8144         (ix86_expand_strlensi_unroll_1): Likewise for locals
8145         "align_2_label", align_3_label", "align_4_label", "end_0_label",
8146         "end_2_label".
8147         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
8148         (void ix86_emit_i387_log1p): Likewise for locals "label1",
8149         "label2", "jump_label".
8150         (ix86_expand_sse_compare_and_jump): Likewise for return type and
8151         local "label".
8152         (ix86_expand_lfloorceil): Likewise for local "label".
8153         (ix86_expand_rint): Likewise.
8154         (ix86_expand_floorceildf_32): Likewise.
8155         (ix86_expand_floorceil): Likewise.
8156         (ix86_expand_rounddf_32): Likewise.
8157         (ix86_expand_trunc): Likewise.
8158         (ix86_expand_truncdf_32): Likewise.
8159         (ix86_expand_round): Likewise.
8161 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8163         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
8164         first param from rtx to rtx_insn *.
8165         (h8300_insn_length_from_table): Likewise.
8166         * config/h8300/h8300.c (F): Likewise for return type and param
8167         "x".
8168         (Fpa): Add a checked cast to rtx_insn *.
8169         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
8170         rtx_insn *.
8171         (final_prescan_insn): Likewise for param "insn".
8172         (h8300_binary_length): Likewise.
8173         (h8300_insn_length_from_table): Likewise.
8175 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8177         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
8178         Strengthen first param "insn" from rtx to rtx_insn *.
8180         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
8181         Likewise.
8182         (frame_insn): Likewise for return type.  Introduce local "insn"
8183         for use in place of local "x" for use as an rtx_insn *.
8184         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
8185         (epiphany_expand_prologue): Likewise for local "insn".
8186         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
8187         * config/epiphany/resolve-sw-modes.c
8188         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
8189         "seq".
8191 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8193         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
8194         param from rtx to rtx_insn *.
8195         (c6x_final_prescan_insn): Likewise for first param.
8197         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
8198         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
8199         (c6x_expand_compare): Strengthen local "insns" from rtx to
8200         rtx_insn *.
8201         (c6x_get_unit_specifier): Likewise for param "insn".
8202         (c6x_print_unit_specifier_field): Likewise.
8203         (c6x_final_prescan_insn): Likewise.
8204         (emit_add_sp_const): Likewise for local "insn".
8205         (c6x_expand_prologue): Likewise.
8207 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8209         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
8210         param 1 from rtx to rtx_insn *.
8211         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
8212         the various locals named "insn".
8213         (expand_epilogue_reg_restore): Likewise.
8214         (frame_related_constant_load): Likewise.
8215         (add_to_reg): Likewise.
8216         (emit_link_insn): Likewise.
8217         (do_link): Likewise.
8218         (expand_interrupt_handler_prologue): Likewise.
8219         (branch_dest): Likewise for param "branch".
8220         (asm_conditional_branch): Likewise for param "insn".
8221         (gen_one_bundle): Likewise for elements of param "slot" and local
8222         "t".
8223         (bfin_gen_bundles): Likewise for locals "insn", "next" and
8224         elements of local "slot".
8225         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
8226         "queue", "next_queue", "prev".
8227         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
8228         (add_sched_insns_for_speculation): Likewise for local "insn".
8230 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8232         * config/avr/avr-protos.h (output_movqi): Strengthen first param
8233         from rtx to rtx_insn *.
8234         (output_movhi): Likewise.
8235         (output_movsisf): Likewise.
8236         (avr_out_tstsi): Likewise.
8237         (avr_out_tsthi): Likewise.
8238         (avr_out_tstpsi): Likewise.
8239         (avr_out_compare): Likewise.
8240         (avr_out_compare64): Likewise.
8241         (avr_out_movpsi): Likewise.
8242         (ashlqi3_out): Likewise.
8243         (ashlhi3_out): Likewise.
8244         (ashlsi3_out): Likewise.
8245         (ashrqi3_out): Likewise.
8246         (ashrhi3_out): Likewise.
8247         (ashrsi3_out): Likewise.
8248         (lshrqi3_out): Likewise.
8249         (lshrhi3_out): Likewise.
8250         (lshrsi3_out): Likewise.
8251         (avr_out_ashlpsi3): Likewise.
8252         (avr_out_ashrpsi3): Likewise.
8253         (avr_out_lshrpsi3): Likewise.
8254         (avr_out_fract): Likewise.
8255         (avr_out_sbxx_branch): Likewise.
8256         (avr_out_round): Likewise.
8257         (avr_out_xload): Likewise.
8258         (avr_out_movmem): Likewise.
8259         (adjust_insn_length): Likewise.
8260         (avr_out_lpm): Likewise.
8261         (reg_unused_after): Likewise.
8262         (_reg_unused_after): Likewise.
8263         (avr_jump_mode): Likewise for second param.
8264         (jump_over_one_insn): Likewise for first param.
8265         (avr_final_prescan_insn): Likewise.
8266         (out_shift_with_cnt): Likewise for second param.
8268         * config/avr/avr.c (get_sequence_length): Likewise for param
8269         "insns" and local "insn".
8270         (emit_push_byte): Likewise for local "insn".
8271         (emit_push_sfr): Likewise.
8272         (avr_prologue_setup_frame): Likewise for locals "insn",
8273         "fp_plus_insns", "sp_plus_insns".
8274         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
8275         "sp_plus_insns".
8276         (avr_jump_mode): Likewise for param "insn".
8277         (avr_final_prescan_insn): Likewise.
8278         (avr_find_unused_d_reg): Likewise.
8279         (avr_out_lpm_no_lpmx): Likewise.
8280         (avr_out_lpm): Likewise.
8281         (avr_out_xload): Likewise.
8282         (output_movqi): Likewise.
8283         (output_movhi): Likewise.
8284         (out_movqi_r_mr): Likewise.
8285         (out_movhi_r_mr): Likewise.
8286         (out_movsi_r_mr): Likewise.
8287         (out_movsi_mr_r): Likewise.
8288         (output_movsisf): Likewise.
8289         (avr_out_load_psi): Likewise.
8290         (avr_out_store_psi): Likewise.
8291         (avr_out_movpsi): Likewise.
8292         (out_movqi_mr_r): Likewise.
8293         (avr_out_movhi_mr_r_xmega): Likewise.
8294         (out_movhi_mr_r): Likewise.
8295         (compare_condition): Likewise for param "insn" and local "next".
8296         (compare_sign_p): Likewise for param "insn".
8297         (compare_diff_p): Likewise.
8298         (compare_eq_p): Likewise.
8299         (avr_out_compare): Likewise.
8300         (avr_out_compare64): Likewise.
8301         (avr_out_tsthi): Likewise.
8302         (avr_out_tstpsi): Likewise.
8303         (avr_out_tstsi): Likewise.
8304         (out_shift_with_cnt): Likewise.
8305         (ashlqi3_out): Likewise.
8306         (ashlhi3_out): Likewise.
8307         (avr_out_ashlpsi3): Likewise.
8308         (ashlsi3_out): Likewise.
8309         (ashrqi3_out): Likewise.
8310         (ashrhi3_out): Likewise.
8311         (avr_out_ashrpsi3): Likewise.
8312         (ashrsi3_out): Likewise.
8313         (lshrqi3_out): Likewise.
8314         (lshrhi3_out): Likewise.
8315         (avr_out_lshrpsi3): Likewise.
8316         (lshrsi3_out): Likewise.
8317         (avr_out_fract): Likewise.
8318         (avr_out_round): Likewise.
8319         (avr_adjust_insn_length): Likewise.
8320         (reg_unused_after): Likewise.
8321         (_reg_unused_after): Likewise.
8322         (avr_compare_pattern): Likewise.
8323         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
8324         and locals "branch1", "branch2", "insn2", "jump".
8325         (avr_reorg): Likewise for local "insn".
8326         (avr_2word_insn_p): Likewise for param "insn".
8327         (jump_over_one_insn_p): Likewise.
8328         (avr_out_sbxx_branch): Likewise.
8329         (avr_out_movmem): Likewise.
8331 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8333         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
8334         param from rtx to rtx_insn *.
8335         (thumb1_final_prescan_insn): Likewise.
8336         (thumb2_final_prescan_insn): Likewise.
8338         * config/arm/arm.c (emit_set_insn): Strengthen return type from
8339         rtx to rtx_insn *.
8340         (struct minipool_node): Likewise for field "insn".
8341         (dump_minipool): Likewise for param "scan".
8342         (create_fix_barrier): Likewise for local "from".  Strengthen local
8343         "label" from rtx to rtx_code_label *.
8344         (push_minipool_barrier): Strengthen param "insn" from rtx to
8345         rtx_insn *.
8346         (push_minipool_fix): Likewise.
8347         (note_invalid_constants): Likewise.
8348         (thumb2_reorg): Likewise for local "insn".
8349         (arm_reorg): Likewise.
8350         (thumb2_final_prescan_insn): Likewise for param
8351         "insn" and local "first_insn".
8352         (arm_final_prescan_insn): Likewise for param "insn" and locals
8353         "start_insn", "this_insn".
8354         (arm_debugger_arg_offset): Likewise for param "insn".
8355         (thumb1_emit_multi_reg_push): Likewise for return type and local
8356         "insn".
8357         (thumb1_final_prescan_insn): Likewise for param "insn".
8358         (thumb_far_jump_used_p): Likewise for local "insn".
8359         (thumb1_expand_prologue): Likewise.
8360         (arm_expand_epilogue_apcs_frame): Likewise.
8361         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
8362         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
8363         from rtx to rtx_code_label *.
8364         (arm_split_atomic_op): Likewise for local "label".
8365         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
8367 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8369         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
8370         first param from rtx to rtx_insn *.
8371         (arc_verify_short): Likewise.
8372         (arc_short_long): Likewise.
8373         (arc_need_delay): Likewise.
8375         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
8376         "target_insn".
8377         (arc_ccfsm_advance): Likewise for param "insn" and locals
8378         "start_insn", "this_insn".
8379         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
8380         (arc_ccfsm_post_advance): Likewise for param "insn".
8381         (arc_next_active_insn): Likewise for return type and param "insn".
8382         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
8383         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
8384         (output_short_suffix): Likewise for local "insn".
8385         (arc_final_prescan_insn): Likewise for param "insn".  Remove
8386         now-redundant checked cast.
8387         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
8388         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
8389         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
8390         for use where lc_set became an insn.
8391         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
8392         rtx to rtx_insn *.
8393         (arc_get_insn_variants): Likewise for local "prev".
8394         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
8395         "next".
8396         (arc_predicate_delay_insns): Likewise for local "insn".
8397         (arc_pad_return): Likewise for local "prev".  For now, add a
8398         checked cast when extracting the insn from "final_sequence".
8399         (arc_short_long): Likewise for param "insn".
8400         (arc_need_delay): Likewise for param "insn" and local "next".
8401         (arc_label_align): Likewise for locals "prev", "next".
8403 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8405         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
8406         "insn" from rtx to rtx_insn *.
8407         (alpha_gp_save_rtx): Likewise for local "seq".
8408         (alpha_instantiate_decls): Likewise for local "top".
8409         (get_some_local_dynamic_name): Likewise for local "insn".
8410         (alpha_does_function_need_gp): Likewise.
8411         (set_frame_related_p): Likewise for return type and for locals
8412         "seq" and "insn".
8413         (emit_frame_store_1): Likewise for local "insn".
8414         (alpha_expand_prologue): Likewise for locals "insn", "seq".
8415         (alpha_end_function): Likewise for local "insn".
8416         (alpha_output_mi_thunk_osf): Likewise.
8417         (alphaev4_insn_pipe): Likewise for param "insn".
8418         (alphaev5_insn_pipe): Likewise.
8419         (alphaev4_next_group): Likewise for return type and param 1
8420         "insn".
8421         (alphaev5_next_group): Likewise.
8422         (alpha_align_insns_1): Likewise for return type and param 1 of
8423         callback param "next_group", and for locals "i", "next", "prev",
8424         "where", "where2", "insn".
8426 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
8428         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
8429         rather than modifying the stmt.
8431 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8433         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
8434         cgraph_state conversion.
8436 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
8438         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8439         Strengthen local "insns" from rtx to rtx_insn *.
8440         (aarch64_set_frame_expr): Likewise for local "insn".
8441         (aarch64_save_or_restore_fprs): Likewise.
8442         (aarch64_save_or_restore_callee_save_registers): Likewise.
8443         (aarch64_expand_prologue): Likewise.
8444         (aarch64_expand_epilogue): Likewise.
8445         (aarch64_output_mi_thunk): Likewise.
8446         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
8447         "label2" from rtx to rtx_code_label *.
8448         (aarch64_split_atomic_op): Likewise for local "label".
8450 2014-08-25  Martin Liska  <mliska@suse.cz>
8452         * cgraph.h (symtab_node):
8453         (bool needed_p (void)): created from decide_is_symbol_needed
8454         (bool referred_to_p (void)): created from referred_to_p
8455         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
8456         * cgraph.h (cgraph_node):
8457         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
8458         (void expand (void)): created from expand_function
8459         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
8460         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
8461         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
8462         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
8463         * cgraph.h (varpool_node):
8464         (static void add (tree decl): created from varpool_add_new_variable
8465         * cgraph.h (cgraph_edge):
8466         void remove (void);
8467         (void remove_caller (void)): created from cgraph_edge_remove_caller
8468         (void remove_callee (void)): created from cgraph_edge_remove_callee
8469         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
8470           created from cgraph_set_call_stmt
8471         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
8472         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
8473         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
8474           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
8475         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
8476           created from cgraph_speculative_call_info
8477         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
8478           int freq_scale, bool update_original)): created from cgraph_clone_edge
8479         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
8480         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
8481         (bool recursive_p (void)): created from cgraph_edge_recursive_p
8482         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
8483         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
8484         (static void rebuild_references (void)): created from cgraph_rebuild_references
8485         * cgraph.h (symbol_table):
8486         (create_reference): renamed from add_reference
8487         (maybe_create_reference): renamed from maybe_add_reference
8488         (void register_symbol (symtab_node *node)): new function
8489         (void clear_asm_symbols (void)): new function
8490         (void unregister (symtab_node *node)): new function
8491         (void release_symbol (cgraph_node *node, int uid)): new function
8492         (cgraph_node * allocate_cgraph_symbol (void)): new function
8493         (void initialize (void)): created from cgraph_init
8494         (symtab_node *first_symbol (void)):new function
8495         (asm_node *first_asm_symbol (void)):new function
8496         (symtab_node *first_defined_symbol (void)):new function
8497         (varpool_node *first_variable (void)):new function
8498         (varpool_node *next_variable (varpool_node *node)):new function
8499         (varpool_node *first_static_initializer (void)):new function
8500         (varpool_node *next_static_initializer (varpool_node *node)):new function
8501         (varpool_node *first_defined_variable (void)):new function
8502         (varpool_node *next_defined_variable (varpool_node *node)):new function
8503         (cgraph_node *first_defined_function (void)):new function
8504         (cgraph_node *next_defined_function (cgraph_node *node)):new function
8505         (cgraph_node *first_function (void)):new function
8506         (cgraph_node *next_function (cgraph_node *node)):new function
8507         (cgraph_node *first_function_with_gimple_body (void)):new function
8508         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
8509         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
8510           created from symtab_remove_unreachable_nodes
8511         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
8512         (void process_new_functions (void)): created from cgraph_process_new_functions
8513         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
8514         (bool output_variables (void)): created from varpool_node::output_variables
8515         (void output_asm_statements (void)): created from output_asm_statements
8516         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
8517         (void compile (void)): created from compile
8518         (void output_weakrefs (void)): created from output_weakrefs
8519         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
8520         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
8521           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
8522         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
8523         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
8524           created from cgraph_next_function_with_gimple_body
8525         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
8526           created from cgraph_remove_edge_removal_hook
8527         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
8528           created from cgraph_add_node_removal_hook
8529         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
8530           created from cgraph_remove_node_removal_hook
8531         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
8532           created from varpool_add_node_removal_hook
8533         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
8534           created from varpool_remove_node_removal_hook
8535         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
8536           created from cgraph_add_function_insertion_hook
8537         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
8538           created from cgraph_remove_function_insertion_hook
8539         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
8540           created from varpool_add_variable_insertion_hook
8541         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
8542           created from varpool_remove_variable_insertion_hook
8543         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
8544           created from cgraph_add_edge_duplication_hook
8545         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
8546           created from cgraph_remove_edge_duplication_hook
8547         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
8548           created from cgraph_add_node_duplication_hook
8549         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
8550           created from cgraph_remove_node_duplication_hook
8551         (void call_edge_removal_hooks (cgraph_edge *e)):
8552           created from cgraph_call_edge_removal_hooks
8553         (void call_cgraph_insertion_hooks (cgraph_node *node)):
8554           created from call_function_insertion_hooks 
8555         (void call_cgraph_removal_hooks (cgraph_node *node)):
8556           created from cgraph_call_node_removal_hooks 
8557         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
8558           created from cgraph_node::call_duplication_hooks 
8559         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
8560           created from cgraph_call_edge_duplication_hooks
8561         (void call_varpool_removal_hooks (varpool_node *node)):
8562           created from varpool_call_node_removal_hooks
8563         (void call_varpool_insertion_hooks (varpool_node *node)):
8564           created from varpool_call_variable_insertion_hooks
8565         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
8566           created from insert_to_assembler_name_hash
8567         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
8568           created from unlink_from_assembler_name_hash
8569         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
8570           created from symtab_prevail_in_asm_name_hash
8571         (void symtab_initialize_asm_name_hash (void)):
8572           created from symtab_initialize_asm_name_hash
8573         (void change_decl_assembler_name (tree decl, tree name)):
8574           created from change_decl_assembler_name
8575         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
8576         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
8577           created from decl_assembler_name_hash
8578         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
8579           created from decl_assembler_name_equal
8580         (static hashval_t hash_node_by_assembler_name (const void *p)):
8581           created from hash_node_by_assembler_name
8582         (static int eq_assembler_name (const void *p1, const void *p2)):
8583           created from eq_assembler_name
8585 2014-08-25  Marek Polacek  <polacek@redhat.com>
8587         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
8589 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
8591         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
8592         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
8593         SWI1248_AVX512BW mode iterator.
8595 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
8597         PR target/62111
8598         * config/sh/predicates.md (general_extend_operand): Disable
8599         TRUNCATE before reload completes.
8601 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
8603         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
8605 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
8607         PR target/61996
8608         * config/sh/sh.opt (musermode): Allow negative form.
8609         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
8610         targets that don't support it.
8611         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
8612         Document -mno-usermode option.
8614 2014-08-24  Kito Cheng  <kito@0xlab.org>
8616         * system.h (CALLER_SAVE_PROFITABLE): Poison.
8617         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
8618         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
8619         * doc/tm.texi: Regenerate.
8621 2014-08-24  Kito Cheng  <kito@0xlab.org>
8623         * ira.c: Fix typo in comment.
8625 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
8627         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
8628         Deprecate c++1y. Change language to reflect greater confidence in C++14.
8630 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
8632         PR target/62038
8633         * config/pa/pa.c (pa_output_function_epilogue): Don't set
8634         last_address when the current function is a thunk.
8635         (pa_asm_output_mi_thunk): When we don't have named sections or they
8636         are not being used, check that thunk can reach the stub table with a
8637         short branch.
8639 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
8641         * web.c (union_match_dups): Strengthen param "insn" from rtx to
8642         rtx_insn *.
8643         (pass_web::execute): Likewise for local "insn".
8645 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
8647         * var-tracking.c (struct micro_operation_def): Strengthen field
8648         "insn" from rtx to rtx_insn *.
8649         (struct emit_note_data_def): Likewise.
8650         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
8651         (vt_stack_adjustments): Likewise for local "insn".
8652         (adjust_insn): Likewise for param "insn".
8653         (val_store): Likewise.
8654         (val_resolve): Likewise.
8655         (struct count_use_info): Likewise for field "insn".
8656         (log_op_type): Likewise for param "insn".
8657         (reverse_op): Likewise.
8658         (prepare_call_arguments): Likewise.
8659         (add_with_sets):  The initial param takes an insn, but we can't
8660         yet strengthen it from rtx to rtx_insn * since it's used as a
8661         cselib_record_sets_hook callback.  For now rename initial param
8662         from "insn" to "uncast_insn", and introduce a local "insn" of
8663         the stronger rtx_insn * type, with a checked cast.
8664         (compute_bb_dataflow): Strengthen local "insn" from rtx to
8665         rtx_insn *.
8666         (emit_note_insn_var_location): Likewise.
8667         (emit_notes_for_changes): Likewise.
8668         (emit_notes_for_differences): Likewise.
8669         (next_non_note_insn_var_location): Likewise for return type and
8670         for param "insn".
8671         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
8672         (vt_initialize): Likewise for local "insn".
8673         (delete_debug_insns): Likewise for locals "insn" and "next".
8675 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
8677         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
8678         rtx_insn *.
8679         (mark_constant_pool): Likewise for local "insn".
8681 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
8683         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
8684         rtx to rtx_insn *.
8685         (dead_debug_promote_uses): Likewise.
8686         (dead_debug_insert_temp): Likewise.
8688 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
8690         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
8691         from const_rtx to const rtx_insn *.
8692         (store_killed_after): Likewise.  Strengthen locals "last", "act"
8693         from rtx to rtx_insn *.
8694         (store_killed_before): Strengthen param "insn" from const_rtx to
8695         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
8696         (find_moveable_store): Strengthen param "insn" from rtx to
8697         rtx_insn *.
8698         (compute_store_table): Likewise for local "insn".
8699         (insert_insn_start_basic_block): Likewise for param "insn" and
8700         locals "prev", "before", "insn".
8701         (insert_store): For now, add a checked cast to rtx_insn * on the
8702         result of gen_move_insn.
8703         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
8704         to rtx_insn *.
8705         (replace_store_insn): Likewise.  For now, add a checked cast to
8706         rtx_insn * on the result of gen_move_insn.
8708 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8710         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
8711         rtx_insn *.
8712         (expand_sjlj_dispatch_table): Likewise.
8714 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8716         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
8717         "insn" from rtx to rtx_insn *.
8719 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8721         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
8722         "insn" from rtx to rtx_insn *.
8723         (dup_block_and_redirect): Likewise for param 3 "before".
8725         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
8726         from rtx to rtx_insn *.
8727         (move_insn_for_shrink_wrap): Likewise.
8728         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
8729         (dup_block_and_redirect): Likewise for param "before" and local
8730         "insn".
8731         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
8732         "end".
8733         (convert_to_simple_return): Likewise for local "start".
8735         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
8736         Strengthen local "insn" from rtx to rtx_insn *, for use when
8737         invoking requires_stack_frame_p.
8739 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8741         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
8742         rtx_insn *.
8743         (speculate_expr): Likewise for locals "orig_insn_rtx",
8744         "spec_insn_rtx".
8745         (eq_transformed_insns): Likewise for locals "i1", "i2".
8746         (check_for_new_jump): Likewise for return type and local "end".
8747         (find_new_jump): Likewise for return type and local "jump".
8748         (sel_split_edge): Likewise for local "jump".
8749         (sel_create_recovery_block): Likewise.
8750         (sel_redirect_edge_and_branch_force): Likewise.
8751         (sel_redirect_edge_and_branch): Likewise.
8753 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8755         * sel-sched.c (substitute_reg_in_expr): Strengthen local
8756         "new_insn" from rtx to rtx_insn *.
8757         (create_insn_rtx_with_rhs): Likewise for return type and for local
8758         "insn_rtx".
8759         (create_insn_rtx_with_lhs): Likewise.
8760         (create_speculation_check): Likewise for local "insn_rtx".
8761         (implicit_clobber_conflict_p): Likewise for local "insn".
8762         (get_expr_cost): Likewise.
8763         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
8764         (move_cond_jump): Likewise for locals "next", "prev", "link",
8765         "head", "from", "to".
8767 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8769         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
8770         "next" from rtx to rtx_insn *.
8771         (find_conditional_protection): Likewise for local "next".
8772         (is_conditionally_protected): Likewise for local "insn1".
8773         (is_pfree): Likewise for locals "insn1", "insn2".
8775 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8777         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
8778         from rtx to rtx_insn *.
8780         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
8781         locals "insn1", "insn2" from rtx to rtx_insn *.
8782         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
8783         locals "insn", "prev", "last_jump", "next_tail".
8784         (schedule_ebb): Likewise for params "head", "tail".
8785         (schedule_ebbs): Likewise for locals "tail", "head".
8787         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
8788         to rtx_insn on "last_insn" in one of the invocations of
8789         schedule_ebb.
8791 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8793         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
8794         "elem", "insn" from rtx to rtx_insn *.
8795         (change_spec_dep_to_hard): Likewise.
8796         (get_back_and_forw_lists): Likewise for local "con".
8797         (sd_add_dep): Likewise for locals "elem", "insn".
8798         (sd_resolve_dep): Likewise for locals "pro", "con".
8799         (sd_unresolve_dep): Likewise.
8800         (sd_delete_dep): Likewise.
8801         (chain_to_prev_insn): Likewise for local "pro".
8802         (find_inc): Likewise for locals "pro", "con".
8804 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8806         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
8807         to rtx_insn *.
8808         (reg_set_between_p): Strengthen local "insn" from const_rtx to
8809         const rtx_insn *.
8810         (modified_between_p): Strengthen local "insn" from rtx to
8811         rtx_insn *.
8812         (remove_reg_equal_equiv_notes_for_regno): Likewise.
8813         (keep_with_call_p): Strengthen local "i2" from const_rtx to
8814         const rtx_insn *.
8816 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8818         * resource.c (next_insn_no_annul): Strengthen local "next" from
8819         rtx to rtx_insn *.
8820         (mark_referenced_resources): Likewise for local "insn".
8822 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8824         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
8825         to rtx_insn *.
8826         (find_reloads): Likewise for param 1.
8827         (subst_reloads): Likewise for sole param.
8828         (find_equiv_reg): Likwise for param 2.
8829         (regno_clobbered_p): Likwise for param 2.
8830         (reload): Likewise for param 1.
8832         * caller-save.c (save_call_clobbered_regs): Strengthen local
8833         "insn" from rtx to rtx_insn *.
8834         (insert_one_insn): Likewise for local "insn".
8836         * reload.c (this_insn): Likewise for this global.
8837         (find_reloads): Likewise for param "insn".
8838         (find_reloads_toplev): Likewise.
8839         (find_reloads_address): Likewise.
8840         (subst_reg_equivs): Likewise.
8841         (update_auto_inc_notes): Likewise.
8842         (find_reloads_address_1): Likewise.
8843         (find_reloads_subreg_address): Likewise.
8844         (subst_reloads): Likewise.
8845         (find_equiv_reg): Likewise, also for local "p".
8846         (regno_clobbered_p): Likewise for param "insn".
8848         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
8849         array.
8850         (spill_reg_store): Likewise for the elements of this array.
8851         (remove_init_insns): Likewise for local "equiv_insn".
8852         (will_delete_init_insn_p): Likewise for param "insn".
8853         (reload): Likewise for param ""first" and local "insn".
8854         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
8855         rtx_insn *.
8856         (calculate_elim_costs_all_insns): Likewise.
8857         (delete_caller_save_insns): Likewise.
8858         (spill_failure): Likewise for param "insn".
8859         (delete_dead_insn): Likewise.
8860         (set_label_offsets): Likewise.
8861         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
8862         "prev_insn".
8863         (elimination_costs_in_insn): Likewise for param "insn".
8864         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
8865         when referring to an insn.
8866         (set_initial_label_offsets): Likewise.
8867         (set_offsets_for_label): Strengthen param "insn" from rtx to
8868         rtx_insn *.
8869         (init_eliminable_invariants): Likewise for param "first" and local
8870         "insn".
8871         (fixup_eh_region_note): Likewise for param "insn".
8872         (reload_as_needed): Likewise for locals "prev", "insn",
8873         "old_next", "old_prev", "next".
8874         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
8875         "last".
8876         (reload_inheritance_insn): Strengthen elements of this array from
8877         rtx to rtx_insn *.
8878         (failed_reload): Likewise for param "insn".
8879         (choose_reload_regs): Likewise for local "insn".  Replace use of
8880         NULL_RTX with NULL when referring to an insn.
8881         (input_reload_insns): Strengthen elements of this array from rtx
8882         to rtx_insn *.
8883         (other_input_address_reload_insns): Likewise for this global.
8884         (other_input_reload_insns): Likewise for this global.
8885         (input_address_reload_insns): Likwise for the elements of this
8886         array.
8887         (inpaddr_address_reload_insns): Likwise for the elements of this
8888         array.
8889         (output_reload_insns): Likewise for the elements of this array.
8890         (output_address_reload_insns): Likewise for the elements of this
8891         array.
8892         (outaddr_address_reload_insns): Likewise for the elements of this
8893         array.
8894         (operand_reload_insns): Likewise for this global.
8895         (other_operand_reload_insns): Likewise for this global.
8896         (other_output_reload_insns): Likewise for the elements of this
8897         array.
8898         (new_spill_reg_store): Likewise for the elements of this
8899         array.
8900         (emit_input_reload_insns): Likewise for locals "insn", "temp".
8901         Strengthen local "where" from rtx * to rtx_insn **.
8902         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
8903         from rtx to rtx_insn *.
8904         (do_input_reload): Likewise for local "insn".
8905         (do_output_reload): Likewise for local "insn".
8906         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
8907         (emit_insn_if_valid_for_reload): Likewise for return type and local
8908         "last".  Add checked cast to rtx_insn when returning "insn" since
8909         this has been through emit_insn.
8910         (gen_reload): Strengthen return type and locals "last", "insn", "set"
8911         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
8912         returning "insn" since it's been through
8913         emit_insn_if_valid_for_reload at this point.
8914         (delete_output_reload): Strengthen param "insn" and locals
8915         "output_reload_insn", "i2" from rtx to rtx_insn *.
8916         (delete_address_reloads): Likewise for params "dead_insn",
8917         "current_insn" and locals "prev", "next".
8918         (delete_address_reloads_1): Likewise for params "dead_insn",
8919         "current_insn" and locals "prev", "i2".
8920         (inc_for_reload): Likewise for locals "last", "add_insn".
8921         (add_auto_inc_notes): Strengthen param "insn" from rtx to
8922         rtx_insn *.
8924         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
8925         param of this duplicate of the prototype from reload.h
8927 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8929         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
8930         rtx to rtx_insn *.
8931         (regstat_bb_compute_calls_crossed): Likewise.
8933 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8935         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
8936         to rtx_insn *.
8937         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
8938         with an insn.
8939         (regrename_analyze): Strengthen local "insn" from rtx to
8940         rtx_insn *.
8941         (scan_rtx_reg): Likewise for param "insn".
8942         (scan_rtx_address): Likewise.
8943         (scan_rtx): Likewise.
8944         (restore_operands): Likewise.
8945         (record_out_operands): Likewise.
8946         (build_def_use): Likewise for local "insn".  Replace use of
8947         NULL_RTX with NULL when dealing with an insn.
8949 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8951         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
8952         * reginfo.c (reg_scan): Likewise, also for local "insn".
8953         (reg_scan_mark_refs): Likewise for param "insn".
8954         (init_subregs_of_mode): Likewise for local "insn".
8956 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8958         * regcprop.c (struct queued_debug_insn_change): Strengthen field
8959         "insn" from rtx to rtx_insn *.
8960         (replace_oldest_value_reg): Likewise for param "insn".
8961         (replace_oldest_value_addr): Likewise.
8962         (replace_oldest_value_mem): Likewise.
8963         (apply_debug_insn_changes): Likewise for local "last_insn".
8964         (copyprop_hardreg_forward_1): Likewise for local "insn".
8966 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8968         * reg-stack.c (next_flags_user): Strengthen return type and param
8969         "insn" from rtx to rtx_insn *.
8970         (straighten_stack): Likewise for param "insn".
8971         (check_asm_stack_operands): Likewise.
8972         (remove_regno_note): Likewise.
8973         (emit_pop_insn): Likewise for return type, param "insn", local
8974         "pop_insn".
8975         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
8976         "limit" from rtx to rtx_insn *.
8977         (swap_to_top): Likewise for param "insn".
8978         (move_for_stack_reg): Likewise.
8979         (move_nan_for_stack_reg): Likewise.
8980         (swap_rtx_condition): Likewise.
8981         (compare_for_stack_reg): Likewise.
8982         (subst_all_stack_regs_in_debug_insn): Likewise.
8983         (subst_stack_regs_pat): Likewise, and local "insn2".
8984         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
8985         rtx_insn *.
8986         (subst_stack_regs): Likewise.
8987         (change_stack): Likewise.
8988         (convert_regs_1): Likewise for locals "insn", "next".
8990 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
8992         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
8993         rtx_insn *.
8994         (combine_set_extension): Likewise for param "curr_insn".
8995         (transform_ifelse): Likewise for param "def_insn".
8996         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
8997         from vec<rtx> * to vec<rtx_insn *> *.
8998         (is_cond_copy_insn): Likewise for param "insn".
8999         (struct ext_state): Strengthen the four vec fields from vec<rtx>
9000         to vec<rtx_insn *>.
9001         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
9002         local "def_insn" from rtx to rtx_insn *.
9003         (get_sub_rtx): Likewise for param "def_insn".
9004         (merge_def_and_ext): Likewise.
9005         (combine_reaching_defs): Likewise.
9006         (add_removable_extension): Likewise for param "insn".
9007         (find_removable_extensions): Likewise for local "insn".
9008         (find_and_remove_re): Likewise for locals "curr_insn" and
9009         "def_insn".  Strengthen locals "reinsn_del_list" and
9010         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
9012 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9014         * recog.c (split_insn): Strengthen param "insn" and locals
9015         "first", "last" from rtx to rtx_insn *.
9016         (split_all_insns): Likewise for locals "insn", "next".
9017         (split_all_insns_noflow): Likewise.
9019 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9021         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
9022         const rtx_insn *.
9023         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9024         (debug_rtx_find): Likewise for param 1 "x".
9026         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
9027         const_rtx to const rtx_insn *.  Likewise for local "insn".
9028         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
9029         (debug_rtx_find): Likewise for param 1 "x".
9030         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
9031         from const_rtx to const rtx_insn * within the appropriate cases of
9032         the switch statement.
9034         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
9035         Strengthen local "insns" from rtx to rtx_insn * since this is
9036         passed to a call to debug_rtx_list.
9038 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9040         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
9041         to rtx_insn *.
9043         * function.c (stack_protect_epilogue): Add checked cast to
9044         rtx_insn for now when invoking predict_insn_def.
9046         * predict.c (predict_insn): Strengthen param "insn" from rtx to
9047         rtx_insn *.
9048         (predict_insn_def): Likewise.
9049         (rtl_predict_edge): Likewise for local "last_insn".
9050         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
9051         const rtx_insn *.
9052         (combine_predictions_for_insn): Strengthen param "insn" from rtx
9053         to rtx_insn *.
9054         (bb_estimate_probability_locally): Likewise for local "last_insn".
9055         (expensive_function_p): Likewise for local "insn".
9057         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
9058         local "jmp", since this is used when invoking predict_insn_def.
9060 2014-08-22  Marek Polacek  <polacek@redhat.com>
9062         PR c++/62199
9063         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
9065 2014-08-22  Marek Polacek  <polacek@redhat.com>
9067         PR c/61271
9068         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
9069         a comparison in parens.
9070         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
9071         in parens.
9073 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9075         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
9076         rtx_insn *.
9078         * cprop.c (fis_get_condition): Likewise.
9080         * postreload.c (reload_cse_regs): Likewise for param "first".
9081         (reload_cse_simplify): Likewise for param "insn".
9082         (reload_cse_regs_1): Likewise for local "insn".
9083         (reload_cse_simplify_set): Likewise for param "insn".
9084         (reload_cse_simplify_operands): Likewise.
9085         (struct reg_use): Likewise for field "insn".
9086         (reload_combine_purge_insn_uses): Likewise for param "insn".
9087         (fixup_debug_insns): Likewise for params "from", "to" and local
9088         "insn".
9089         (try_replace_in_use): Likewise for local "use_insn".
9090         (reload_combine_recognize_const_pattern): Likewise for param
9091         "insn" and locals "add_moved_after_insn", "use_insn".
9092         (reload_combine_recognize_pattern): Likewise for param "insn" and
9093         local "prev".
9094         (reload_combine): Likewise for locals "insn", "prev".
9095         (reload_combine_note_use): Likewise for param "insn".
9096         (move2add_use_add2_insn): Likewise.
9097         (move2add_use_add3_insn): Likewise.
9098         (reload_cse_move2add): Likewise, also for local "next".
9099         (move2add_note_store): Likewise for local "insn".
9101 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9103         * postreload-gcse.c (struct occr): Strengthen field "insn" from
9104         rtx to rtx_insn *.
9105         (struct unoccr): Likewise.
9106         (struct modifies_mem): Likewise.
9107         (alloc_mem): Likewise for local "insn".
9108         (insert_expr_in_table): Likewise for param "insn".
9109         (dump_expr_hash_table_entry): Likewise for local "insn".
9110         (oprs_unchanged_p): Likewise for param "insn".
9111         (load_killed_in_block_p): Likewise for local "setter".
9112         (record_last_reg_set_info): Likewise for param "insn".
9113         (record_last_reg_set_info_regno): Likewise.
9114         (record_last_mem_set_info): Likewise.
9115         (record_last_set_info): Likewise for local "last_set_insn".
9116         (record_opr_changes): Likewise for param "insn".
9117         (hash_scan_set): Likewise.
9118         (compute_hash_table): Likewise for local "insn".
9119         (get_avail_load_store_reg): Likewise for param "insn".
9120         (eliminate_partially_redundant_load): Likewise, also for locals
9121         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
9122         RTX for insns.
9123         (eliminate_partially_redundant_loads): Likewise for local "insn".
9125 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9127         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
9128         rtx to rtx_insn *.
9129         (expand_binop): Likewise for locals "entry_last", "last", "insns"
9130         (expand_twoval_unop): Likewise for locals entry_last", "last".
9131         (expand_twoval_binop): Likewise.
9132         (expand_twoval_binop_libfunc): Likewise for local "insns".
9133         (widen_leading): Likewise for local "last".
9134         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
9135         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
9136         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
9137         (expand_parity): Likewise for locals "last" and "seq".
9138         (expand_ffs): Likewise for local "seq".  Strengthen local
9139         "nonzero_label" from rtx to rtx_code_label *.
9140         (expand_absneg_bit): Strengthen local "insns" from rtx to
9141         rtx_insn *.
9142         (expand_unop_direct): Likewise for local "last".
9143         (expand_unop): Likewise for locals "last", "insns".
9144         (expand_abs_nojump): Likewise for local "last".
9145         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
9146         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
9147         rtx_insn *.
9148         (expand_copysign_absneg): Strengthen local "label" from rtx to
9149         rtx_code_label *.
9150         (expand_copysign_bit): Strengthen local "insns" from rtx to
9151         rtx_insn *.
9152         (struct no_conflict_data): Likewise for fields "first", "insn".
9153         (emit_libcall_block_1): Likewise for param "insns" and locals
9154         "next", "last", "insn".
9155         (emit_libcall_block): For now, add a checked cast to rtx_insn *
9156         on "insns" when invoking emit_libcall_block_1.  Ultimately we
9157         want to strengthen insns itself.
9158         (prepare_cmp_insn): Strengthen local "last" from rtx to
9159         rtx_insn *.
9160         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
9161         (prepare_float_lib_cmp): Likewise for local "insns".
9162         (emit_conditional_move): Likewise for local "last".
9163         (emit_conditional_add): Likewise.
9164         (have_sub2_insn): Likewise for local "seq".
9165         (expand_float): Likewise for local "insns".  Strengthen locals
9166         "label", "neglabel" from rtx to rtx_code_label *.
9167         (expand_fix): Likewise for locals "last", "insn", "insns" (to
9168         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
9169         (expand_fixed_convert): Likewise for local "insns" (to
9170         rtx_insn *).
9171         (expand_sfix_optab): Likewise for local "last".
9172         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
9173         to rtx_code_label *.
9174         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
9175         from rtx to rtx_insn *.
9176         (expand_atomic_fetch_op): Likewise for local "insn".
9177         (maybe_legitimize_operand_same_code): Likewise for local "last".
9178         (maybe_legitimize_operands): Likewise.
9180 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9182         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
9183         "insn" from rtx to rtx_insn *.
9184         (ps_rtl_insn): Likewise for return type.
9185         (doloop_register_get): Likewise for params "head", "tail" and
9186         locals "insn", "first_insn_not_to_check".
9187         (schedule_reg_move): Likewise for local "this_insn".
9188         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
9189         of gen_move_insn for now.
9190         (reset_sched_times): Strengthen local "insn" from rtx to
9191         rtx_insn *.
9192         (permute_partial_schedule): Likewise.
9193         (duplicate_insns_of_cycles): Likewise for local "u_insn".
9194         (dump_insn_location): Likewise for param "insn".
9195         (loop_canon_p): Likewise for local "insn".
9196         (sms_schedule): Likewise.
9197         (print_partial_schedule): Likewise.
9198         (ps_has_conflicts): Likewise.
9200 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9202         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
9203         "tailp" from rtx * to rtx_insn **.
9205         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
9206         from rtx to rtx_insn *.
9207         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
9208         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
9209         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
9210         rtx to rtx_insn *.
9211         * modulo-sched.c (const_iteration_count): Strengthen return type
9212         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
9213         use of NULL_RTX with NULL when working with insns.
9214         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
9215         to rtx_insn *.
9216         (sms_schedule): Likewise.
9217         * sched-rgn.c (init_ready_list): Likewise, also for locals
9218         "src_head" and "src_next_tail".
9219         (compute_block_dependences): Likewise.
9220         (free_block_dependencies): Likewise.
9221         (debug_rgn_dependencies): Likewise.
9222         (free_rgn_deps): Likewise.
9223         (compute_priorities): Likewise.
9224         (schedule_region): Likewise.
9225         * sel-sched.c (find_ebb_boundaries): Likewise.
9227         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
9228         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
9230 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9232         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
9233         from rtx to rtx_insn *.
9234         (new_seginfo): Likewise for param "insn".
9235         (create_pre_exit): Likewise for locals "last_insn",
9236         "before_return_copy", "return_copy".
9237         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
9238         "mode_set".
9240 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9242         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
9243         from rtx to rtx_insn *.
9244         (lra_push_insn): Likewise for 1st param.
9245         (lra_push_insn_and_update_insn_regno_info): Likewise.
9246         (lra_pop_insn): Likewise for return type.
9247         (lra_invalidate_insn_data): Likewise for 1st param.
9248         (lra_set_insn_deleted): Likewise.
9249         (lra_delete_dead_insn): Likewise.
9250         (lra_process_new_insns): Likewise for first 3 params.
9251         (lra_set_insn_recog_data): Likewise for 1st param.
9252         (lra_update_insn_recog_data): Likewise.
9253         (lra_set_used_insn_alternative): Likewise.
9254         (lra_invalidate_insn_regno_info): Likewise.
9255         (lra_update_insn_regno_info): Likewise.
9256         (lra_former_scratch_operand_p): Likewise.
9257         (lra_eliminate_regs_1): Likewise.
9258         (lra_get_insn_recog_data): Likewise.
9260         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
9261         rtx to rtx_insn *.
9263         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
9264         "mv1" and "mv2".
9265         (substitute_within_insn): New.
9266         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
9267         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
9268         Replace call to "substitute" with call to substitute_within_insn.
9270         * lra-constraints.c (curr_insn): Strengthen from rtx to
9271         rtx_insn *.
9272         (get_equiv_with_elimination): Likewise for param "insn".
9273         (match_reload): Strengthen params "before" and "after" from rtx *
9274         to rtx_insn **.
9275         (emit_spill_move): Likewise for return type.  Add a checked cast
9276         to rtx_insn * on result of gen_move_insn for now.
9277         (check_and_process_move): Likewise for local "before".  Replace
9278         NULL_RTX with NULL when referring to insns.
9279         (process_addr_reg): Strengthen params "before" and "after" from
9280         rtx * to rtx_insn **.
9281         (insert_move_for_subreg): Likewise.
9282         (simplify_operand_subreg): Strengthen locals "before" and "after"
9283         from rtx to rtx_insn *.
9284         (process_address_1): Strengthen params "before" and "after" from
9285         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
9286         rtx to rtx_insn *.
9287         (process_address): Strengthen params "before" and "after" from
9288         rtx * to rtx_insn **.
9289         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
9290         (curr_insn_transform): Strengthen locals "before" and "after"
9291         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
9292         to insns.
9293         (loc_equivalence_callback): Update cast of "data", changing
9294         resulting type from rtx to rtx_insn *.
9295         (substitute_pseudo_within_insn): New.
9296         (inherit_reload_reg): Strengthen param "insn" from rtx to
9297         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
9298         NULL when referring to insns.  Add a checked cast to rtx_insn *
9299         when using usage_insn to invoke lra_update_insn_regno_info.
9300         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
9301         likewise for locals "restore", "save".  Add checked casts to
9302         rtx_insn * when using usage_insn to invoke
9303         lra_update_insn_regno_info and lra_process_new_insns.  Replace
9304         NULL_RTX with NULL when referring to insns.
9305         (split_if_necessary): Strengthen param "insn" from rtx to
9306         rtx_insn *.
9307         (update_ebb_live_info): Likewise for params "head", "tail" and local
9308         "prev_insn".
9309         (get_last_insertion_point): Likewise for return type and local "insn".
9310         (get_live_on_other_edges): Likewise for local "last".
9311         (inherit_in_ebb): Likewise for params "head", "tail" and locals
9312         "prev_insn", "next_insn", "restore".
9313         (remove_inheritance_pseudos): Likewise for local "prev_insn".
9314         (undo_optional_reloads): Likewise for local "insn".
9316         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
9317         "insn".
9318         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
9319         insns.
9320         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
9321         rtx_insn *.
9322         (spill_pseudos): Likewise for local "insn".
9323         (init_elimination): Likewise.
9324         (process_insn_for_elimination): Likewise for param "insn".
9326         * lra-lives.c (curr_insn): Likewise.;
9328         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
9329         (remove_pseudos): Likewise for param "insn".
9330         (spill_pseudos): Likewise for local "insn".
9331         (lra_final_code_change): Likewise for locals "insn", "curr".
9333         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
9334         (lra_set_insn_deleted): Likewise.
9335         (lra_delete_dead_insn): Likewise, and for local "prev".
9336         (new_insn_reg): Likewise for param "insn".
9337         (lra_set_insn_recog_data): Likewise.
9338         (lra_update_insn_recog_data): Likewise.
9339         (lra_set_used_insn_alternative): Likewise.
9340         (get_insn_freq): Likewise.
9341         (invalidate_insn_data_regno_info): Likewise.
9342         (lra_invalidate_insn_regno_info): Likewise.
9343         (lra_update_insn_regno_info): Likewise.
9344         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
9345         vec<rtx_insn *>.
9346         (lra_push_insn_1): Strengthen param "insn" from rtx to
9347         rtx_insn *.
9348         (lra_push_insn): Likewise.
9349         (lra_push_insn_and_update_insn_regno_info): Likewise.
9350         (lra_pop_insn): Likewise for return type and local "insn".
9351         (push_insns): Likewise for params "from", "to", and local "insn".
9352         (setup_sp_offset): Likewise for params "from", "last" and locals
9353         "before", "insn".
9354         (lra_process_new_insns): Likewise for params "insn", "before",
9355         "after" and local "last".
9356         (struct sloc): Likewise for field "insn".
9357         (lra_former_scratch_operand_p): Likewise for param "insn".
9358         (remove_scratches): Likewise for locals "insn", "last".
9359         (check_rtl): Likewise for local "insn".
9360         (add_auto_inc_notes): Likewise for param "insn".
9361         (update_inc_notes): Likewise for local "insn".
9362         (lra): Replace NULL_RTX with NULL when referring to insn.
9364 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9366         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
9367         to rtx_insn *.
9368         (resolve_reg_notes): Likewise.
9369         (resolve_simple_move): Likewise for return type, param "insn", and
9370         locals "insns", "minsn".
9371         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
9372         (resolve_use): Likewise.
9373         (resolve_debug): Likewise.
9374         (find_decomposable_shift_zext): Likewise.
9375         (resolve_shift_zext): Likewise for return type, param "insn", and
9376         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
9377         (decompose_multiword_subregs): Likewise for local "insn",
9378         "orig_insn", "decomposed_shift", "end".
9380 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9382         * basic-block.h (basic_block split_edge_and_insert): Strengthen
9383         param "insns" from rtx to rtx_insn *.
9385         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
9386         rtx to rtx_insn *.
9387         (struct iv_to_split): Likewise.
9388         (loop_exit_at_end_p): Likewise for local "insn".
9389         (split_edge_and_insert): Likewise for param "insns".
9390         (compare_and_jump_seq): Likewise for return type, param "cinsn",
9391         and locals "seq", "jump".
9392         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
9393         "branch_code"; update invocations of compare_and_jump_seq to
9394         eliminate NULL_RTX in favor of NULL.
9395         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
9396         rtx to rtx_insn *.
9397         (reset_debug_uses_in_loop): Likewise.
9398         (analyze_insn_to_expand_var): Likewise for param "insn".
9399         (analyze_iv_to_split_insn): Likewise.
9400         (analyze_insns_in_loop): Likewise for local "insn".
9401         (insert_base_initialization): Likewise for param
9402         "insn" and local "seq".
9403         (split_iv): Likewise for param "insn" and local "seq".
9404         (expand_var_during_unrolling): Likewise for param "insn".
9405         (insert_var_expansion_initialization): Likewise for local "seq".
9406         (combine_var_copies_in_loop_exit): Likewise.
9407         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
9408         "insn".
9409         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
9410         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
9411         "next".
9413 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9415         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
9416         rtx_insn *.
9417         (iv_analyze_result): Likewise.
9418         (iv_analyze_expr): Likewise.
9419         (biv_p): Likewise.
9421         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
9422         local "def_insn" from rtx to rtx_insn *.
9423         (get_biv_step_1): Likewise for local "insn".
9424         (iv_analyze_expr): Likewise for param "insn".
9425         (iv_analyze_def): Likewise for local "insn".
9426         (iv_analyze_op): Likewise for param "insn".
9427         (iv_analyze): Likewise.
9428         (iv_analyze_result): Likewise.
9429         (biv_p): Likewise.
9430         (suitable_set_for_replacement): Likewise.
9431         (simplify_using_initial_values): Likewise for local "insn".
9432         (iv_number_of_iterations): Likewise for param "insn".
9433         (check_simple_exit): Add checked cast to rtx_insn when invoking
9434         iv_number_of_iterations for now (until get_condition is
9435         strengthened).
9437         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
9438         "insn" from rtx to rtx_insn *.
9439         (analyze_insns_in_loop): Likewise for local "insn".
9441 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9443         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
9444         to rtx_insn *.
9445         (struct invariant): Likewise.
9446         (hash_invariant_expr_1): Likewise for param "insn".
9447         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
9448         (find_exits): Likewise for local "insn".
9449         (create_new_invariant): Likewise for param "insn".
9450         (check_dependencies): Likewise.
9451         (find_invariant_insn): Likewise.
9452         (record_uses): Likewise.
9453         (find_invariants_insn): Likewise.
9454         (find_invariants_bb): Likewise for local "insn".
9455         (get_pressure_class_and_nregs): Likewise for param "insn".
9456         (calculate_loop_reg_pressure): Likewise for local "insn".
9458 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9460         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
9461         to rtx_insn *.
9462         (add_test): Likewise for locals "seq", "jump".
9463         (doloop_modify): Likewise for locals "sequence", "jump_insn".
9465 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9467         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
9468         rtx_insn *.
9469         (rebuild_jump_labels_chain): Likewise for param "chain".
9471         * cfgexpand.c (pass_expand::execute): Add checked cast to
9472         rtx_insn * when calling rebuild_jump_labels_chain in region where
9473         we know e->insns.r is non-NULL.
9475         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
9476         rtx_insn *.
9477         (rebuild_jump_labels): Likewise.
9478         (rebuild_jump_labels_chain): Likewise for param "chain".
9479         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
9480         (init_label_info): Likewise for param "f".
9481         (maybe_propagate_label_ref): Likewise for params "jump_insn",
9482         "prev_nonjump_insn".
9483         (mark_all_labels): Likewise for param "f" and locals "insn",
9484         "prev_nonjump_insn".
9486 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9488         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
9489         from rtx to rtx_insn *insn.
9490         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
9491         (ira_add_allocno_copy): Likewise.
9492         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
9493         rtx to rtx_insn *.
9494         (ira_create_copy): Likewise.
9495         (ira_add_allocno_copy): Likewise.
9496         (create_bb_allocnos): Likewise for local "insn".
9497         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
9498         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
9499         process_regs_for_copy for rtx_insn * param.
9500         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
9501         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
9502         process_regs_for_copy for rtx_insn * param.
9503         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
9504         * ira-costs.c (record_reg_classes): Likewise for param "insn".
9505         (record_operand_costs): Likewise.
9506         (scan_one_insn): Likewise for return type, and for param "insn".
9507         (process_bb_for_costs): Likewise for local "insn".
9508         (process_bb_node_for_hard_reg_moves): Likewise.
9509         * ira-emit.c (struct move): Likewise for field "insn".
9510         (create_move): Eliminate use of NULL_RTX when dealing with an
9511         rtx_insn *.
9512         (emit_move_list): Strengthen return type and locals "result",
9513         "insn" from rtx to rtx_insn *insn.
9514         (emit_moves): Likewise for locals "insns", "tmp".
9515         (ira_emit): Likewise for local "insn".
9516         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
9517         "insn".
9518         (find_call_crossed_cheap_reg): Likewise.
9519         (process_bb_node_lives): Likewise for local "insn".
9520         * ira.c (decrease_live_ranges_number): Likewise.
9521         (compute_regs_asm_clobbered): Likewise.
9522         (build_insn_chain): Likewise.
9523         (find_moveable_pseudos): Likewise, also locals "def_insn",
9524         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
9525         to rtx_insn **.  Add a checked cast when assigning from
9526         "closest_use" into closest_uses array in a region where we know
9527         it's a non-NULL insn.
9528         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
9529         to rtx_insn *.
9530         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
9531         "last_interesting_insn", "uin".
9532         (move_unallocated_pseudos): Likewise for locals "def_insn",
9533         "move_insn", "newinsn".
9535 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9537         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
9538         Strengthen locals "done_label", "do_error" from rtx to
9539         rtx_code_label *.
9540         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
9541         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
9542         rtx_code_label *.
9543         (ubsan_expand_si_overflow_neg_check): Likewise for locals
9544         "done_label", "do_error" to rtx_code_label * and local  "last" to
9545         rtx_insn *.
9546         (ubsan_expand_si_overflow_mul_check): Likewise for locals
9547         "done_label", "do_error", "large_op0", "small_op0_large_op1",
9548         "one_small_one_large", "both_ops_large", "after_hipart_neg",
9549         "after_lopart_neg", "do_overflow", "hipart_different"  to
9550         rtx_code_label * and local  "last" to rtx_insn *.
9552 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9554         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
9555         "insn" and "move_insn" from rtx to rtx_insn *.
9557 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9559         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
9560         rtx_insn *.
9561         (cheap_bb_rtx_cost_p): Likewise.
9562         (first_active_insn): Likewise for return type and local "insn".
9563         (last_active_insn):  Likewise for return type and locals "insn",
9564         "head".
9565         (struct noce_if_info): Likewise for fields "jump", "insn_a",
9566         "insn_b".
9567         (end_ifcvt_sequence): Likewise for return type and locals "insn",
9568         "seq".
9569         (noce_try_move): Likewise for local "seq".
9570         (noce_try_store_flag): Likewise.
9571         (noce_try_store_flag_constants): Likewise.
9572         (noce_try_addcc): Likewise.
9573         (noce_try_store_flag_mask): Likewise.
9574         (noce_try_cmove): Likewise.
9575         (noce_try_minmax): Likewise.
9576         (noce_try_abs): Likewise.
9577         (noce_try_sign_mask): Likewise.
9578         (noce_try_bitop): Likewise.
9579         (noce_can_store_speculate_p): Likewise for local "insn".
9580         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
9581         seq".
9582         (check_cond_move_block): Likewise for local "insn".
9583         (cond_move_convert_if_block): Likewise.
9584         (cond_move_process_if_block): Likewise for locals "seq",
9585         "loc_insn".
9586         (noce_find_if_block): Likewise for local "jump".
9587         (merge_if_block): Likewise for local "last".
9588         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
9589         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
9590         (block_has_only_trap): Likewise for return type and local "trap".
9591         (find_if_case_1): Likewise for local "jump".
9592         (dead_or_predicable): Likewise for locals "head", "end", "jump",
9593         "insn".
9595 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9597         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
9598         "last_insn", "loop_end" from rtx to rtx_insn *.
9600         * hw-doloop.c (scan_loop): Likewise for local "insn".
9601         (discover_loop): Likewise for param "tail_insn".
9602         (discover_loops): Likewise for local "tail".
9604         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
9605         cast to rtx_insn * when assigning from an rtx local to a
9606         hwloop_info's "last_insn" field.
9608 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9610         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
9611         (add_delay_dependencies): Strengthen local "pro" from rtx to
9612         rtx_insn *.
9613         (recompute_todo_spec): Likewise.
9614         (dep_cost_1): Likewise for locals "insn", "used".
9615         (schedule_insn): Likewise for local "dbg".
9616         (schedule_insn): Likewise for locals "pro", "next".
9617         (unschedule_insns_until): Likewise for local "con".
9618         (restore_pattern): Likewise for local "next".
9619         (estimate_insn_tick): Likewise for local "pro".
9620         (resolve_dependencies): Likewise for local "next".
9621         (fix_inter_tick): Likewise.
9622         (fix_tick_ready): Likewise for local "pro".
9623         (add_to_speculative_block): Likewise for locals "check", "twin",
9624         "pro".
9625         (sched_extend_bb): Likewise for locals "end", "insn".
9626         (init_before_recovery): Likewise for local "x".
9627         (sched_create_recovery_block): Likewise for local "barrier".
9628         (create_check_block_twin): Likewise for local "pro".
9629         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
9630         "consumer".
9631         (unlink_bb_notes): Update for change to type of bb_header.
9632         Strengthen locals "prev", "label", "note", "next" from rtx to
9633         rtx_insn *.
9634         (clear_priorities): Likewise for local "pro".
9636 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9638         * gcse.c (struct occr): Strengthen field "insn" from rtx to
9639         rtx_insn *.
9640         (test_insn): Likewise for this global.
9641         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
9642         const rtx_insn *.
9643         (oprs_anticipatable_p): Likewise.
9644         (oprs_available_p): Likewise.
9645         (insert_expr_in_table): Strengthen param "insn" from  rtx to
9646         rtx_insn *.
9647         (hash_scan_set): Likewise.
9648         (hash_scan_clobber): Likewise.
9649         (hash_scan_call): Likewise.
9650         (hash_scan_insn): Likewise.
9651         (compute_hash_table_work): Likewise for local "insn".
9652         (process_insert_insn): Likewise for return type and local "pat".
9653         (insert_insn_end_basic_block): Likewise for locals "new_insn",
9654         "pat", "pat_end", "maybe_cc0_setter".
9655         (pre_edge_insert): Likewise for local "insn".
9656         (pre_insert_copy_insn): Likewise for param "insn".
9657         (pre_insert_copies): Likewise for local "insn".
9658         (struct set_data): Likewise for field "insn".
9659         (single_set_gcse): Likewise for param "insn".
9660         (gcse_emit_move_after): Likewise.
9661         (pre_delete): Likewise for local "insn".
9662         (update_bb_reg_pressure): Likewise for param "from" and local
9663         "insn".
9664         (should_hoist_expr_to_dom): Likewise for param "from".
9665         (hoist_code): Likewise for local "insn".
9666         (get_pressure_class_and_nregs): Likewise for param "insn".
9667         (calculate_bb_reg_pressure): Likewise for local "insn".
9668         (compute_ld_motion_mems): Likewise.
9670 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9672         * genpeep.c (main): Rename param back from "uncast_ins1" to
9673         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
9674         checked cast.
9676         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
9678 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
9680         PR target/62195
9681         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
9682         documentation to state it is only for VSX operations.
9684         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
9685         constraint only active if VSX.
9687         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
9688         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
9689         (lfiwzx): Likewise.
9691 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9693         * fwprop.c (single_def_use_dom_walker::before_dom_children):
9694         Strengthen local "insn" from rtx to rtx_insn *.
9695         (use_killed_between): Likewise for param "target_insn".
9696         (all_uses_available_at): Likewise for param "target_insn" and
9697         local "next".
9698         (update_df_init): Likewise for params "def_insn", "insn".
9699         (update_df): Likewise for param "insn".
9700         (try_fwprop_subst): Likewise for param "def_insn" and local
9701         "insn".
9702         (free_load_extend): Likewise for param "insn".
9703         (forward_propagate_subreg): Likewise for param "def_insn" and
9704         local "use_insn".
9705         (forward_propagate_asm): Likewise for param "def_insn" and local
9706         "use_insn".
9707         (forward_propagate_and_simplify): Likewise for param "def_insn"
9708         and local "use_insn".
9709         (forward_propagate_into): Likewise for locals "def_insn" and
9710         "use_insn".
9712 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9714         * function.c (emit_initial_value_sets): Strengthen local "seq"
9715         from rtx to rtx_insn *.
9716         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
9717         local "seq".
9718         (instantiate_virtual_regs): Likewise for local "insn".
9719         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
9720         (reorder_blocks_1): Likewise for param "insns" and local "insn".
9721         (expand_function_end): Likewise for locals "insn" and "seq".
9722         (epilogue_done): Likewise for local "insn".
9723         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
9724         "last", "trial".
9725         (reposition_prologue_and_epilogue_notes): Likewise for locals
9726         "insn", "last", "note", "first".
9727         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
9728         (pass_match_asm_constraints::execute): Likewise for local "insn".
9730 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9732         * output.h (final_scan_insn): Strengthen return type from rtx to
9733         rtx_insn *.
9734         (final_forward_branch_p): Likewise for param.
9735         (current_output_insn): Likewise for this global.
9737         * final.c (rtx debug_insn): Likewise for this variable.
9738         (current_output_insn): Likewise.
9739         (get_attr_length_1): Rename param "insn" to "uncast_insn",
9740         adding "insn" back in as an rtx_insn * with a checked cast, so
9741         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
9742         first param.
9743         (compute_alignments): Strengthen local "label" from rtx to
9744         rtx_insn *.
9745         (shorten_branches): Rename param from "first" to "uncast_first",
9746         introducing a new local rtx_insn * "first" using a checked cast to
9747         effectively strengthen "first" from rtx to rtx_insn * without
9748         affecting the type signature.  Strengthen locals "insn", "seq",
9749         "next", "label" from rtx to rtx_insn *.
9750         (change_scope): Strengthen param "orig_insn" and local "insn" from
9751         rtx to rtx_insn *.
9752         (final_start_function): Rename param from "first" to "uncast_first",
9753         introducing a new local rtx_insn * "first" using a checked cast to
9754         effectively strengthen "first" from rtx to rtx_insn * without
9755         affecting the type signature.  Strengthen local "insn" from rtx to
9756         rtx_insn *.
9757         (dump_basic_block_info): Strengthen param "insn" from rtx to
9758         rtx_insn *.
9759         (final): Rename param from "first" to "uncast_first",
9760         introducing a new local rtx_insn * "first" using a checked cast to
9761         effectively strengthen "first" from rtx to rtx_insn * without
9762         affecting the type signature.  Strengthen locals "insn", "next"
9763         from rtx to rtx_insn *.
9764         (output_alternate_entry_point): Strengthen param "insn" from rtx to
9765         rtx_insn *.
9766         (call_from_call_insn): Strengthen param "insn" from rtx to
9767         rtx_call_insn *.
9768         (final_scan_insn): Rename param from "insn" to "uncast_insn",
9769         introducing a new local rtx_insn * "insn" using a checked cast to
9770         effectively strengthen "insn" from rtx to rtx_insn * without
9771         affecting the type signature.  Strengthen return type and locals
9772         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
9773         now-redundant checked cast to rtx_insn * from both invocations of
9774         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
9775         introducing a local "call_insn" for use when invoking
9776         call_from_call_insn.
9777         (notice_source_line): Strengthen param "insn" from rtx to
9778         rtx_insn *.
9779         (leaf_function_p): Likewise for local "insn".
9780         (final_forward_branch_p): Likewise.
9781         (leaf_renumber_regs): Likewise for param "first".
9782         (rest_of_clean_state): Likewise for locals "insn" and "next".
9783         (self_recursive_call_p): Likewise for param "insn".
9784         (collect_fn_hard_reg_usage): Likewise for local "insn".
9785         (get_call_fndecl): Likewise for param "insn".
9786         (get_call_cgraph_rtl_info): Likewise.
9787         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
9788         introducing a new local rtx_insn * "insn" using a checked cast to
9789         effectively strengthen "insn" from rtx to rtx_insn * without
9790         affecting the type signature.
9792         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
9793         cast when assigning from param "insn" to current_output_insn.
9794         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
9795         so that we can assign it back to current_output_insn.
9797 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9799         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
9800         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
9801         atmxt540s and atmxt540sreva devices.
9802         * config/avr/avr-tables.opt: Regenerate.
9803         * config/avr/t-multilib: Regenerate.
9804         * doc/avr-mmcu.texi: Regenerate.
9806 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9808         * expr.c (convert_move): Strengthen local "insns" from rtx to
9809         rtx_insn *.
9810         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
9811         "top_label" from rtx to rtx_code_label *.
9812         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
9813         rtx_insn *.
9814         (emit_single_push_insn): Likewise for locals "prev", "last".
9815         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
9816         to rtx_code_label *.
9817         (store_constructor): Likewise for locals "loop_start", "loop_end".
9818         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
9819         rtx_insn *.
9820         (expand_expr_real_2): Likewise.
9821         (expand_expr_real_1): Strengthen local "label" from rtx to
9822         rtx_code_label *.
9824 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9826         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
9827         from rtx to rtx_insn *.
9828         (store_bit_field_1): Likewise.
9829         (extract_bit_field_1): Likewise.
9830         (expand_mult_const): Likewise for local "insns".
9831         (expmed_mult_highpart): Strengthen local "label" from rtx to
9832         rtx_code_label *.
9833         (expand_smod_pow2): Likewise.
9834         (expand_sdiv_pow2): Likewise.
9835         (expand_divmod): Strengthen locals "last", "insn" from rtx to
9836         rtx_insn *.  Strengthen locals "label", "label1", "label2",
9837         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
9838         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
9839         (emit_store_flag): Likewise.
9840         (emit_store_flag_force): Strengthen local "label" from rtx to
9841         rtx_code_label *.
9842         (do_cmp_and_jump): Likewise for param "label".
9844 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9846         * explow.c (force_reg): Strengthen local "insn" from rtx to
9847         rtx_insn *.
9848         (adjust_stack_1): Likewise.
9849         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
9850         "final_label", "available_label", "space_available" from rtx to
9851         rtx_code_label *.
9852         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
9853         (anti_adjust_stack_and_probe): Likewise.
9855 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9857         * except.h (sjlj_emit_function_exit_after): Strengthen param
9858         "after" from rtx to rtx_insn *.  This is only called with
9859         result of get_last_insn (in function.c) so type-change should be
9860         self-contained.
9862         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
9863         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
9864         to rtx_insn *.  These fields are only used from except.c so this
9865         type-change should be self-contained to this patch.
9867         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
9868         local "last" from rtx to rtx_insn *.
9869         (dw2_build_landing_pads): Likewise for local "seq".
9870         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
9871         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
9872         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
9873         rtx to rtx_insn *.
9874         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
9875         to rtx_insn *.
9876         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
9877         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
9878         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
9879         referring to an insn.  Strengthen local "dispatch_label" from
9880         rtx to rtx_code_label *.
9881         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
9882         rtx_insn *.
9883         (expand_eh_return): Strengthen local "around_label" from
9884         rtx to rtx_code_label *.
9885         (convert_to_eh_region_ranges): Strengthen locals "iter",
9886         "last_action_insn", "first_no_action_insn",
9887         "first_no_action_insn_before_switch",
9888         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
9890 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9892         * dwarf2out.c (last_var_location_insn): Strengthen this variable
9893         from rtx to rtx_insn *.
9894         (cached_next_real_insn): Likewise.
9895         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
9896         working with insns.
9897         (dwarf2out_var_location): Strengthen locals "next_real",
9898         "next_note", "expected_next_loc_note", "last_start", "insn" from
9899         rtx to rtx_insn *.
9901 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9903         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
9904         from rtx to rtx_insn *.
9905         (create_pseudo_cfg): Likewise for local "insn".
9907 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9909         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
9910         from rtx to rtx_insn *.
9911         (df_bb_regno_last_def_find): Likewise.
9913         * df-problems.c (df_rd_bb_local_compute): Likewise.
9914         (df_lr_bb_local_compute): Likewise.
9915         (df_live_bb_local_compute): Likewise.
9916         (df_chain_remove_problem): Likewise.
9917         (df_chain_create_bb): Likewise.
9918         (df_word_lr_bb_local_compute): Likewise.
9919         (df_remove_dead_eq_notes): Likewise for param "insn".
9920         (df_note_bb_compute): Likewise for local "insn".
9921         (simulate_backwards_to_point): Likewise.
9922         (df_md_bb_local_compute): Likewise.
9924         * df-scan.c (df_scan_free_bb_info): Likewise.
9925         (df_scan_start_dump): Likewise.
9926         (df_scan_start_block): Likewise.
9927         (df_install_ref_incremental): Likewise for local "insn".
9928         (df_insn_rescan_all): Likewise.
9929         (df_reorganize_refs_by_reg_by_insn): Likewise.
9930         (df_reorganize_refs_by_insn_bb): Likewise.
9931         (df_recompute_luids): Likewise.
9932         (df_bb_refs_record): Likewise.
9933         (df_update_entry_exit_and_calls): Likewise.
9934         (df_bb_verify): Likewise.
9936 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9938         * ddg.h (struct ddg_node): Strengthen fields "insn" and
9939         "first_note" from rtx to rtx_insn *.
9940         (get_node_of_insn): Likewise for param 2 "insn".
9941         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
9943         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
9944         rtx_insn *.
9945         (mem_write_insn_p): Likewise.
9946         (mem_access_insn_p): Likewise.
9947         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
9948         (def_has_ccmode_p): Likewise for param "insn".
9949         (add_cross_iteration_register_deps): Likewise for locals
9950         "def_insn" and "use_insn".
9951         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
9952         (build_intra_loop_deps): Likewise for local "src_insn".
9953         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
9954         to rtx_insn *.
9955         (get_node_of_insn): Likewise for param "insn".
9957 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9959         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
9960         (deletable_insn_p): Strengthen param "insn" from rtx to
9961         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
9962         find_call_stack_args, since this is guarded by CALL_P (insn).
9963         (marked_insn_p): Strengthen param "insn" from rtx to
9964         rtx_insn *.
9965         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
9966         invoking find_call_stack_args, since this is guarded by
9967         CALL_P (insn).
9968         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
9969         rtx_insn *; we know this is an insn since this was called by
9970         mark_nonreg_stores.
9971         (mark_nonreg_stores_2): Likewise.
9972         (mark_nonreg_stores): Strengthen param "insn" from rtx to
9973         rtx_insn *.
9974         (find_call_stack_args): Strengthen param "call_insn" from rtx to
9975         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
9976         to rtx_insn *.
9977         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
9978         from rtx to rtx_insn *.
9979         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
9980         "next", "ref_insn".
9981         (delete_unmarked_insns): Likewise for locals "insn", "next".
9982         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
9983         (mark_reg_dependencies): Likewise for param "insn".
9984         (rest_of_handle_ud_dce): Likewise for local "insn".
9985         (word_dce_process_block): Likewise.
9986         (dce_process_block): Likewise.
9988 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
9990         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
9991         from rtx to rtx_insn *.
9992         (struct change_cc_mode_args): Likewise for field "insn".
9993         (this_insn): Strengthen from rtx to rtx_insn *.
9994         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
9995         with insn.
9996         (validate_canon_reg): Strengthen param "insn" from rtx to
9997         rtx_insn *.
9998         (canon_reg): Likewise.
9999         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
10000         dealing with insn.
10001         (record_jump_equiv): Strengthen param "insn" from rtx to
10002         rtx_insn *.
10003         (try_back_substitute_reg): Likewise, also for locals "prev",
10004         "bb_head".
10005         (find_sets_in_insn): Likewise for param "insn".
10006         (canonicalize_insn): Likewise.
10007         (cse_insn): Likewise.  Add a checked cast.
10008         (invalidate_from_clobbers): Likewise for param "insn".
10009         (invalidate_from_sets_and_clobbers): Likewise.
10010         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
10011         dealing with insn.
10012         (cse_prescan_path): Strengthen local "insn" from rtx to
10013         rtx_insn *.
10014         (cse_extended_basic_block): Likewise for locals "insn" and
10015         "prev_insn".
10016         (cse_main): Likewise for param "f".
10017         (check_for_label_ref): Likewise for local "insn".
10018         (set_live_p): Likewise for second param ("insn").
10019         (insn_live_p): Likewise for first param ("insn") and for local
10020         "next".
10021         (cse_change_cc_mode_insn): Likewise for first param "insn".
10022         (cse_change_cc_mode_insns): Likewise for first and second params
10023         "start" and "end".
10024         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
10025         and "end".
10026         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
10027         "cc_src_insn".
10029 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10030             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10031             Anna Tikhonova  <anna.tikhonova@intel.com>
10032             Ilya Tocar  <ilya.tocar@intel.com>
10033             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10034             Ilya Verbin  <ilya.verbin@intel.com>
10035             Kirill Yukhin  <kirill.yukhin@intel.com>
10036             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10038         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
10039         New.
10040         * config/i386/sse.md
10041         (define_mode_iterator VI248_AVX2): Delete.
10042         (define_mode_iterator VI2_AVX2_AVX512BW): New.
10043         (define_mode_iterator VI48_AVX2): Ditto.
10044         (define_insn <shift_insn><mode>3): Delete.
10045         (define_insn "<shift_insn><mode>3<mask_name>" with
10046         VI2_AVX2_AVX512BW): New.
10047         (define_insn "<shift_insn><mode>3<mask_name>" with
10048         VI48_AVX2): Ditto.
10050 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10051             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10052             Anna Tikhonova  <anna.tikhonova@intel.com>
10053             Ilya Tocar  <ilya.tocar@intel.com>
10054             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10055             Ilya Verbin  <ilya.verbin@intel.com>
10056             Kirill Yukhin  <kirill.yukhin@intel.com>
10057             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10059         * config/i386/sse.md
10060         (define_mode_iterator VI4F_BRCST32x2): New.
10061         (define_mode_attr 64x2_mode): Ditto.
10062         (define_mode_attr 32x2mode): Ditto.
10063         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
10064         with VI4F_BRCST32x2): Ditto.
10065         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
10066         with V16FI mode iterator): Ditto.
10067         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10068         with V16FI): Ditto.
10069         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
10070         with VI8F_BRCST64x2): Ditto.
10072 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10073             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10074             Anna Tikhonova  <anna.tikhonova@intel.com>
10075             Ilya Tocar  <ilya.tocar@intel.com>
10076             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10077             Ilya Verbin  <ilya.verbin@intel.com>
10078             Kirill Yukhin  <kirill.yukhin@intel.com>
10079             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10081         * config/i386/sse.md
10082         (define_mode_iterator VI8_AVX512VL): New.
10083         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
10085 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10087         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
10088         (define_mode_iterator V48_AVX512VL): New.
10089         (define_mode_iterator V12_AVX512VL): Ditto.
10090         (define_insn <avx512>_load<mode>_mask): Split into two similar
10091         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
10092         Refactor output template.
10093         (define_insn "<avx512>_store<mode>_mask"): Ditto.
10095 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10097         * cprop.c (struct occr): Strengthen field "insn" from rtx to
10098         rtx_insn *.
10099         (reg_available_p): Likewise for param "insn".
10100         (insert_set_in_table): Likewise.
10101         (hash_scan_set): Likewise.
10102         (hash_scan_insn): Likewise.
10103         (make_set_regs_unavailable): Likewise.
10104         (compute_hash_table_work): Likewise for local "insn".
10105         (reg_not_set_p): Strengthen param "insn" from const_rtx to
10106         const rtx_insn *.
10107         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
10108         (try_replace_reg): Likewise.
10109         (find_avail_set): Likewise.
10110         (cprop_jump): Likewise for params "setcc", "jump".
10111         (constprop_register): Likewise for param "insn".
10112         (cprop_insn): Likewise.
10113         (do_local_cprop): Likewise.
10114         (local_cprop_pass): Likewise for local "insn".
10115         (bypass_block): Likewise for params "setcc" and "jump".
10116         (bypass_conditional_jumps): Likewise for locals "setcc" and
10117         "insn".
10118         (one_cprop_pass): Likewise for local "insn".
10120 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10122         * compare-elim.c (struct comparison_use): Strengthen field "insn"
10123         from rtx to rtx_insn *.
10124         (struct comparison): Likewise, also for field "prev_clobber".
10125         (conforming_compare): Likewise for param "insn".
10126         (arithmetic_flags_clobber_p): Likewise.
10127         (find_flags_uses_in_insn): Likewise.
10128         (find_comparison_dom_walker::before_dom_children): Likewise for
10129         locals "insn", "next", "last_clobber".
10130         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
10132 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
10134         * combine-stack-adj.c (struct csa_reflist): Strengthen field
10135         "insn" from rtx to rtx_insn *.
10136         (single_set_for_csa): Likewise for param "insn".
10137         (record_one_stack_ref): Likewise.
10138         (try_apply_stack_adjustment): Likewise.
10139         (struct record_stack_refs_data): Likewise for field "insn".
10140         (maybe_move_args_size_note): Likewise for params "last" and "insn".
10141         (prev_active_insn_bb): Likewise for return type and param "insn".
10142         (next_active_insn_bb): Likewise.
10143         (force_move_args_size_note): Likewise for params "prev" and "last"
10144         and locals "test", "next_candidate", "prev_candidate".
10145         (combine_stack_adjustments_for_block): Strengthen locals
10146         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
10147         rtx_insn *.
10149 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10151         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
10152         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
10153         (subst_insn): Likewise for this variable.
10154         (added_links_insn): Likewise.
10155         (struct insn_link): Likewise for field "insn".
10156         (alloc_insn_link): Likewise for param "insn".
10157         (struct undobuf): Likewise for field "other_insn".
10158         (find_single_use): Likewise for param "insn" and local "next".
10159         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
10160         (delete_noop_moves): Likewise for locals "insn", "next".
10161         (create_log_links): Likewise for locals "insn", "use_insn".
10162         Strengthen local "next_use" from rtx * to rtx_insn **.
10163         (insn_a_feeds_b): Likewise for params "a", "b".
10164         (combine_instructions): Likewise for param "f" and locals "insn",
10165         "next", "prev", "first", "last_combined_insn", "link", "link1",
10166         "temp".  Replace use of NULL_RTX with NULL when referring to
10167         insns.
10168         (setup_incoming_promotions): Likewise for param "first"
10169         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
10170         (can_combine_p): Likewise for params "insn", "i3", "pred",
10171         "pred2", "succ", "succ2" and for local "p".
10172         (combinable_i3pat): Likewise for param "i3".
10173         (cant_combine_insn_p): Likewise for param "insn".
10174         (likely_spilled_retval_p): Likewise.
10175         (adjust_for_new_dest): Likewise.
10176         (update_cfg_for_uncondjump): Likewise, also for local "insn".
10177         (try_combine): Likewise for return type and for params "i3", "i2",
10178         "i1", "i0", "last_combined_insn", and for locals "insn",
10179         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
10180         "i0_insn".  Eliminate local "tem" in favor of new locals
10181         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
10182         checked cast for now to rtx_insn * on the return type of
10183         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
10184         insns.
10185         (find_split_point): Strengthen param "insn" from rtx to
10186         rtx_insn *.
10187         (simplify_set): Likewise for local "other_insn".
10188         (recog_for_combine): Likewise for param "insn".
10189         (record_value_for_reg): Likewise.
10190         (record_dead_and_set_regs_1): Likewise for local
10191         "record_dead_insn".
10192         (record_dead_and_set_regs): Likewise for param "insn".
10193         (record_promoted_value): Likewise.
10194         (check_promoted_subreg): Likewise.
10195         (get_last_value_validate): Likewise.
10196         (reg_dead_at_p): Likewise.
10197         (move_deaths): Likewise for param "to_insn".
10198         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
10199         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
10200         in favor of new locals "tem_note" and "tem_insn", the latter being
10201         an rtx_insn *.
10202         (distribute_links): Strengthen locals "place", "insn" from rtx to
10203         rtx_insn *.
10205 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10207         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
10208         than a const_rtx.
10209         (can_delete_label_p): Require a const rtx_code_label * rather than
10210         a const_rtx.
10211         (delete_insn): Add checked cast to rtx_code_label * when we know
10212         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
10213         rtx to rtx_insn *.
10214         (delete_insn_chain): Strengthen locals "prev" and "current" from
10215         rtx to rtx_insn *.  Add a checked cast when assigning from
10216         "finish" (strengthening the params will come later).  Add a
10217         checked cast to rtx_note * in region where we know
10218         NOTE_P (current).
10219         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
10220         rtx_insn *.
10221         (compute_bb_for_insn): Likewise.
10222         (free_bb_for_insn): Likewise for local "insn".
10223         (compute_bb_for_insn): Likewise.
10224         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
10225         local "insn" from rtx to rtx_insn *
10226         (flow_active_insn_p): Require a const rtx_insn * rather than a
10227         const_rtx.
10228         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
10229         rtx_insn *.
10230         (can_fallthru): Likewise for locals "insn" and "insn2".
10231         (bb_note): Likewise for local "note".
10232         (first_insn_after_basic_block_note): Likewise for local "note" and
10233         for return type.
10234         (rtl_split_block): Likewise for locals "insn" and "next".
10235         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
10236         "end".
10237         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
10238         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
10239         "prev", "tmp".
10240         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
10241         them), "kill_from", "barrier", "new_insn".
10242         (patch_jump_insn): Likewise for params "insn", "old_label".
10243         (redirect_branch_edge): Likewise for locals "old_label", "insn".
10244         (force_nonfallthru_and_redirect): Likewise for locals "insn",
10245         "old_label", "new_label".
10246         (rtl_tidy_fallthru_edge): Likewise for local "q".
10247         (rtl_split_edge): Likewise for locals "before", "last".
10248         (commit_one_edge_insertion): Likewise for locals "before",
10249         "after", "insns", "tmp", "last", adding a checked cast where
10250         currently necessary.
10251         (commit_edge_insertions): Likewise.
10252         (rtl_dump_bb): Likewise for locals "insn", "last".
10253         (print_rtl_with_bb): Likewise for local "x".
10254         (rtl_verify_bb_insns): Likewise for local "x".
10255         (rtl_verify_bb_pointers): Likewise for local "insn".
10256         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
10257         "head", "end".
10258         (rtl_verify_fallthru): Likewise for local "insn".
10259         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
10260         (purge_dead_edges): Likewise for local "insn".
10261         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
10262         (skip_insns_after_block): Likewise for return type and for locals
10263         "insn", "last_insn", "next_head", "prev".
10264         (record_effective_endpoints): Likewise for locals "next_insn",
10265         "insn", "end".
10266         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
10267         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
10268         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
10269         (duplicate_insn_chain): For now, add checked cast from rtx to
10270         rtx_insn * when returning insn.
10271         (cfg_layout_duplicate_bb): Likewise for local "insn".
10272         (cfg_layout_delete_block): Likewise for locals "insn", "next",
10273         "prev", "remaints".
10274         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
10275         (rtl_block_empty_p): Likewise.
10276         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
10277         "split_point", "last".
10278         (rtl_block_ends_with_call_p): Likewise for local "insn".
10279         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
10280         const rtx_insn *.
10281         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
10282         "split_at_insn" from rtx to rtx_insn *.
10283         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
10284         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
10285         to const rtx_insn *.
10286         (rtl_account_profile_record): Likewise.
10288 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10290         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
10291         rtx to rtx_insn *.
10292         (average_num_loop_insns): Likewise.
10293         (init_set_costs): Likewise for local "seq".
10294         (seq_cost): Likewise for param "seq", from const_rtx to const
10295         rtx_insn *.
10297 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10299         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
10300         rtx to rtx_insn *.
10302 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10304         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
10305         "f1" and "f2" from rtx * to rtx_insn **.
10306         (flow_find_head_matching_sequence): Likewise.
10308         * cfgcleanup.c (try_simplify_condjump): Strengthen local
10309         "cbranch_insn" from rtx to rtx_insn *.
10310         (thread_jump): Likewise for local "insn".
10311         (try_forward_edges): Likewise for local "last".
10312         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
10313         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
10314         "real_b_end".
10315         (can_replace_by): Likewise for params "i1", "i2".
10316         (old_insns_match_p): Likewise.
10317         (merge_notes): Likewise.
10318         (walk_to_nondebug_insn): Likewise for param "i1".
10319         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
10320         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
10321         "afterlast1", "afterlast2" from rtx to rtx_insn *.
10322         (flow_find_head_matching_sequence): Strengthen params "f1" and
10323         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
10324         "last1", "last2", "beforelast1", "beforelast2" from rtx to
10325         rtx_insn *.
10326         (outgoing_edges_match): Likewise for locals "last1", "last2".
10327         (try_crossjump_to_edge): Likewise for local "insn".
10328         Replace call to for_each_rtx with for_each_rtx_in_insn.
10330         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
10331         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
10332         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
10333         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
10334         (try_optimize_cfg): Strengthen local "last" from rtx to
10335         rtx_insn *.
10336         (delete_dead_jumptables): Likewise for locals "insn", "next",
10337         "label".
10339         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
10340         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
10341         "rtx else_first_tail", to reflect the basic-block.h changes above.
10343 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10345         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
10346         rtx_insn *.
10347         (purge_dead_tablejump_edges): Likewise.
10348         (find_bb_boundaries): Likewise for locals "insn", "end",
10349         "flow_transfer_insn".
10351 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10353         * caller-save.c (save_call_clobbered_regs): Strengthen locals
10354         "ins" and "prev" from rtx to rtx_insn *.
10356 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10358         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
10359         rtx_insn *.
10360         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
10361         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
10362         "scan_start".
10363         (load_register_parameters): Likewise for local "before_arg".
10364         (check_sibcall_argument_overlap): Likewise for param "insn".
10365         (expand_call): Likewise for locals "normal_call_insns",
10366         "tail_call_insns", "insns", "before_call", "after_args",
10367         "before_arg", "last", "prev".  Strengthen one of the "last" from
10368         rtx to rtx_call_insn *.
10369         (fixup_tail_calls): Strengthen local "insn" from rtx to
10370         rtx_insn *.
10371         (emit_library_call_value_1): Likewise for locals "before_call" and
10372         "last".
10374 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10376         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
10377         and "last" from rtx to rtx_insn *.
10378         (expand_builtin_nonlocal_goto): Likewise for local "insn".
10379         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
10380         rtx_call_insn *.
10381         (expand_errno_check): Strengthen local "lab" from rtx to
10382         rtx_code_label *.
10383         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
10384         rtx_insn *.
10385         (expand_builtin_mathfn_2): Likewise.
10386         (expand_builtin_mathfn_ternary): Likewise.
10387         (expand_builtin_mathfn_3): Likewise.
10388         (expand_builtin_interclass_mathfn): Likewise for local "last".
10389         (expand_builtin_int_roundingfn): Likewise for local "insns".
10390         (expand_builtin_int_roundingfn_2): Likewise.
10391         (expand_builtin_strlen): Likewise for local "before_strlen".
10392         (expand_builtin_strncmp): Likewise for local "seq".
10393         (expand_builtin_signbit): Likewise for local "last".
10394         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
10395         from rtx to rtx_code_label *.
10396         (expand_stack_restore):  Strengthen local "prev" from rtx to
10397         rtx_insn *.
10399 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10401         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
10402         to rtx_insn *.
10403         (struct btr_def_s): Likewise.
10404         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
10405         const rtx_insn *.
10406         (add_btr_def): Likewise.
10407         (new_btr_user): Likewise.
10408         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
10409         rtx to rtx_insn *.
10410         (link_btr_uses): Likewise.
10411         (move_btr_def): Likewise for locals "insp", "old_insn",
10412         "new_insn".  Add checked cast to rtx_insn * for now on result of
10413         gen_move_insn.
10414         (can_move_up): Strengthen param "insn" from const_rtx to
10415         const rtx_insn *.
10417 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10419         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
10420         rtx_insn *.
10421         (get_uncond_jump_length): Likewise for locals "label", "jump".
10422         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
10423         "jump", "insn".
10424         (add_labels_and_missing_jumps): Likewise for local "new_jump".
10425         (fix_up_fall_thru_edges): Likewise for local "old_jump".
10426         (find_jump_block): Likewise for local "insn".
10427         (fix_crossing_conditional_branches): Likewise for locals
10428         "old_jump", "new_jump".
10429         (fix_crossing_unconditional_branches): Likewise for locals
10430         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
10431         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
10433 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10435         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
10436         rtx to rtx_insn *.
10437         (struct mem_insn): Likewise for field "insn".
10438         (reg_next_use): Strengthen from rtx * to rtx_insn **.
10439         (reg_next_inc_use): Likewise.
10440         (reg_next_def): Likewise.
10441         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
10442         from rtx to rtx_insn *.
10443         (move_insn_before): Likewise for param "next_insn" and local "insns".
10444         (attempt_change): Likewise for local "mov_insn".
10445         (try_merge): Likewise for param "last_insn".
10446         (get_next_ref): Likewise for return type and local "insn".
10447         Strengthen param "next_array" from rtx * to rtx_insn **.
10448         (parse_add_or_inc): Strengthen param "insn" from rtx to
10449         rtx_insn *.
10450         (find_inc): Likewise for locals "insn" and "other_insn" (three of
10451         the latter).
10452         (merge_in_block): Likewise for locals "insn", "curr",
10453         "other_insn".
10454         (pass_inc_dec::execute): Update allocations of the arrays to
10455         reflect the stronger types.
10457 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10459         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
10460         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
10461         from rtx to rtx_code_label *.
10463 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10465         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
10466         to rtx_insn *.
10468 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10470         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
10471         generated a warning and prevented bootstrapping the compiler.
10473 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10475         * rtl.h (delete_related_insns): Strengthen return type from rtx to
10476         rtx_insn *.
10478         * jump.c (delete_related_insns): Likewise, also for locals "next"
10479         and "prev".
10481 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10483         * genautomata.c (output_internal_insn_latency_func): When writing
10484         the function "internal_insn_latency" to insn-automata.c,
10485         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
10486         allowing the optional guard function of (define_bypass) clauses to
10487         expect a pair of rtx_insn *, rather than a pair of rtx.
10488         (output_insn_latency_func): When writing the function
10489         "insn_latency", add an "uncast_" prefix to params "insn" and
10490         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
10491         using checked casts from the params, thus enabling the above
10492         change to the generated "internal_insn_latency" function.
10494 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
10496         PR tree-optimization/62091
10497         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
10498         handle correctly arrays.
10499         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
10500         inheritance binfos.
10501         (record_known_type): Walk into inner type.
10502         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
10503         condition on no type changes.
10505 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10507         * genattrtab.c (write_attr_get): Within the generated get_attr_
10508         functions, rename param "insn" to "uncast_insn" and reintroduce
10509         "insn" as an local rtx_insn * using a checked cast, so that "insn"
10510         is an rtx_insn * within insn-attrtab.c
10512 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10514         * output.h (peephole): Strengthen return type from rtx to
10515         rtx_insn *.
10516         * rtl.h (delete_for_peephole): Likewise for both params.
10517         * genpeep.c (main): In generated "peephole" function, strengthen
10518         return type and local "insn" from rtx to rtx_insn *.  For now,
10519         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
10520         rtx_insn *, with a checked cast.
10521         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
10522         locals "insn", "next", "prev" from rtx to rtx_insn *.
10524 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
10526         PR tree-optimization/62112
10527         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
10528         * gimple-iterator.h (gsi_replace): Return bool.
10529         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
10530         moved from ref_may_alias_global_p.
10531         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
10532         New overloads.
10533         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
10534         (stmt_kills_ref_p_1): Rename...
10535         (stmt_kills_ref_p): ... to this.
10536         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
10537         stmt_kills_ref_p): Declare.
10538         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
10539         Move the self-assignment case...
10540         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
10542 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10544         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
10546         * emit-rtl.c (try_split): Likewise, also for locals "before" and
10547         "after".  For now, don't strengthen param "trial", which requires
10548         adding checked casts when returning it.
10550 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10552         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
10553         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
10554         "var_location" hook from rtx to rtx_insn *.
10555         (debug_nothing_rtx): Delete in favor of...
10556         (debug_nothing_rtx_code_label): New prototype.
10557         (debug_nothing_rtx_rtx): Delete unused prototype.
10558         (debug_nothing_rtx_insn): New prototype.
10560         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
10561         invoking debug_hooks->var_location (in two places, one in a NOTE
10562         case of a switch statement, the other guarded by a CALL_P
10563         conditional.  Add checked cast to rtx_code_label * when invoking
10564         debug_hooks->label (within CODE_LABEL case of switch statement).
10566         * dbxout.c (dbx_debug_hooks): Update "label" hook from
10567         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
10568         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
10569         (xcoff_debug_hooks): Likewise.
10570         * debug.c (do_nothing_debug_hooks): Likewise.
10571         (debug_nothing_rtx): Delete in favor of...
10572         (debug_nothing_rtx_insn): New function.
10573         (debug_nothing_rtx_rtx): Delete unused function.
10574         (debug_nothing_rtx_code_label): New function.
10575         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
10576         debug_nothing_rtx to debug_nothing_rtx_code_label.
10577         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
10578         to rtx_insn *.
10579         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
10580         debug_nothing_rtx to debug_nothing_rtx_insn.
10581         (sdbout_label): Strengthen param "insn" from rtx to
10582         rtx_code_label *.
10583         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
10584         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
10585         "var_location" hook from debug_nothing_rtx to
10586         debug_nothing_rtx_insn.
10588 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10590         * recog.h (insn_output_fn): Update this function typedef to match
10591         the changes below to the generated output functions, strengthening
10592         the 2nd param from rtx to rtx_insn *.
10594         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
10595         insn when invoking an output function, to match the new signature
10596         of insn_output_fn with a stronger second param.
10598         * genconditions.c (write_header): In the generated code for
10599         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
10600         to match the other changes in this patch.
10602         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
10603         the generated "gen_" functions from rtx to rtx_insn * within their
10604         implementations.
10606         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
10607         the subfunctions within the generated "recog_", "split", "peephole2"
10608         function trees from rtx to rtx_insn *.  For now, the top-level
10609         generated functions ("recog", "split", "peephole2") continue to
10610         take a plain rtx for "insn", to avoid introducing dependencies on
10611         other patches.  Rename this 2nd param from "insn" to
10612         "uncast_insn", and reintroduce "insn" as a local variable of type
10613         rtx_insn *, initialized at the top of the generated function with
10614         a checked cast on "uncast_insn".
10615         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
10616         the generated "gen_" functions from rtx to rtx_insn * within their
10617         prototypes.
10619         * genoutput.c (process_template): Strengthen the 2nd param within
10620         the generated "output_" functions "insn" from rtx to rtx_insn *.
10622 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
10624         * tree-profile.c (tree_profiling): Skip external functions
10625         when doing coverage instrumentation.
10626         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
10628 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10630         * config/rs6000/altivec.h (vec_cpsgn): New #define.
10631         (vec_mergee): Likewise.
10632         (vec_mergeo): Likewise.
10633         (vec_cntlz): Likewise.
10634         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
10635         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
10636         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
10637         VMRGEW, and VMRGOW.
10638         * doc/extend.texi: Document various forms of vec_cpsgn,
10639         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
10640         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
10641         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
10642         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
10643         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
10645 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10647         * config/rs6000/rs6000.c (context.h): New include.
10648         (tree-pass.h): Likewise.
10649         (make_pass_analyze_swaps): New decl.
10650         (rs6000_option_override): Register pass_analyze_swaps.
10651         (swap_web_entry): New subsclass of web_entry_base (df.h).
10652         (special_handling_values): New enum.
10653         (union_defs): New function.
10654         (union_uses): Likewise.
10655         (insn_is_load_p): Likewise.
10656         (insn_is_store_p): Likewise.
10657         (insn_is_swap_p): Likewise.
10658         (rtx_is_swappable_p): Likewise.
10659         (insn_is_swappable_p): Likewise.
10660         (chain_purpose): New enum.
10661         (chain_contains_only_swaps): New function.
10662         (mark_swaps_for_removal): Likewise.
10663         (swap_const_vector_halves): Likewise.
10664         (adjust_subreg_index): Likewise.
10665         (permute_load): Likewise.
10666         (permute_store): Likewise.
10667         (handle_special_swappables): Likewise.
10668         (replace_swap_with_copy): Likewise.
10669         (dump_swap_insn_table): Likewise.
10670         (rs6000_analyze_swaps): Likewise.
10671         (pass_data_analyze_swaps): New pass_data.
10672         (pass_analyze_swaps): New rtl_opt_pass.
10673         (make_pass_analyze_swaps): New function.
10674         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
10676 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10678         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
10679         type from rtx to rtx_insn *.
10680         (create_copy_of_insn_rtx): Likewise.
10681         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
10682         (create_copy_of_insn_rtx): Likewise, also for local "res".
10684 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10686         * rtl.h (find_first_parameter_load): Strengthen return type from
10687         rtx to rtx_insn *.
10688         * rtlanal.c (find_first_parameter_load): Strengthen return type
10689         from rtx to rtx_insn *.  Add checked cast for now, to postpone
10690         strengthening the params.
10692 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10694         PR fortran/44054
10695         * diagnostic.c: Set default caret.
10696         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
10697         line is needed.
10698         * diagnostic.h (struct diagnostic_context):
10700 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10702         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
10703         (sel_bb_head): Strengthen return type insn_t (currently just an
10704         rtx) to rtx_insn *.
10705         (sel_bb_end): Likewise.
10707         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
10708         (sel_bb_head): Strengthen return type and local "head" from
10709         insn_t (currently just an rtx) to rtx_insn *.
10710         (sel_bb_end): Likewise for return type.
10711         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
10712         working with insn.
10714 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
10716         * basic-block.h (get_last_bb_insn): Strengthen return type from
10717         rtx to rtx_insn *.
10718         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
10719         end".
10721 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10723         PR fortran/44054
10724         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
10725          to here ...
10726         (diagnostic_report_diagnostic): ... from here.
10727         * toplev.c (general_init): Move code to c-family.
10729 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10731         * df.h (web_entry_base): Replace existing struct web_entry with a
10732         new class web_entry_base with only the predecessor member.
10733         (unionfind_root): Remove declaration and move to class member.
10734         (unionfind_union): Remove declaration and move to friend
10735         function.
10736         (union_defs): Remove declaration.
10737         * web.c (web_entry_base::unionfind_root): Modify to be member
10738         function and adjust accessors.
10739         (unionfind_union): Modify to be friend function and adjust
10740         accessors.
10741         (web_entry): New subclass of web_entry_base containing the reg
10742         member.
10743         (union_match_dups): Modify for struct -> class changes.
10744         (union_defs): Likewise.
10745         (entry_register): Likewise.
10746         (pass_web::execute): Likewise.
10748 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
10750         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
10751         builtin define __VEC_ELEMENT_REG_ORDER__.
10753 2014-08-20  Martin Jambor  <mjambor@suse.cz>
10754             Wei Mi  <wmi@google.com>
10756         PR ipa/60449
10757         PR middle-end/61776
10758         * tree-ssa-operands.c (update_stmt_operands): Remove
10759         MODIFIED_NORETURN_CALLS.
10760         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
10761         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
10762         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
10763         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
10764         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
10765         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
10766         (gimple_call_set_ctrl_altering): New func.
10767         (gimple_call_ctrl_altering_p): Ditto.
10768         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
10769         (make_blocks): Use gimple_call_initialize_ctrl_altering.
10770         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
10771         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
10772         remove MODIFIED_NORETURN_CALLS.
10774 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
10776         * coverage.c (coverage_compute_profile_id): Return non-0;
10777         also handle symbols with unique name.
10778         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
10780 2014-08-20  Steve Ellcey  <sellcey@mips.com>
10782         PR middle-end/49191
10783         * doc/sourcebuild.texi (non_strict_align): New.
10785 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
10787         * cgraphunit.c (ipa_passes, compile): Reshedule
10788         symtab_remove_unreachable_nodes passes; update comments.
10789         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
10790         TODO_remove_functions before the pass; the functions ought to be
10791         already removed.
10792         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
10793         TODO_remove_functions.
10794         * passes.c (pass_data_early_local_passes): Do not schedule function
10795         removal.
10796         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
10798 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10800         PR c/59304
10801         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
10802         before setting the option.
10803         * diagnostic.c (diagnostic_classify_diagnostic): Record
10804         command-line status.
10806 2014-08-20  Richard Biener  <rguenther@suse.de>
10808         PR lto/62190
10809         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
10810         to build uint{16,32,64}_type_node.
10812 2014-08-20  Terry Guo  <terry.guo@arm.com>
10814         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
10815         with immediate_operand.
10817 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
10819         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
10820         "insn" from an as_a to a safe_as_a, for the case when "insn" is
10821         NULL.
10823 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10825         PR preprocessor/51303
10826         * incpath.c (remove_duplicates): Use cpp_warning.
10828 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10830         PR c/60975
10831         PR c/53063
10832         * doc/options.texi (CPP): Document it.
10833         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
10834         * optc-gen.awk: Handle CPP.
10835         * opth-gen.awk: Likewise.
10837 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10839         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
10840         rtx_insn *.
10841         (duplicate_insn_chain): Likewise.
10842         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
10843         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
10844         checked cast for now (until we can strengthen the params in the
10845         same way).
10846         (duplicate_insn_chain): Likewise.
10848 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10850         * rtl.h (next_cc0_user): Strengthen return type from rtx to
10851         rtx_insn *.
10852         (prev_cc0_setter): Likewise.
10854         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
10855         rtx_insn *, adding checked casts for now as necessary.
10856         (prev_cc0_setter): Likewise.
10858 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10860         * expr.h (emit_move_insn): Strengthen return type from rtx to
10861         rtx_insn *.
10862         (emit_move_insn_1): Likewise.
10863         (emit_move_complex_push): Likewise.
10864         (emit_move_complex_parts): Likewise.
10866         * expr.c (emit_move_via_integer): Strengthen return type from rtx
10867         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
10868         with insns.
10869         (emit_move_complex_push): Strengthen return type from rtx to
10870         rtx_insn *.
10871         (emit_move_complex): Likewise, also for local "ret".
10872         (emit_move_ccmode): Likewise.
10873         (emit_move_multi_word): Likewise for return type and locals
10874         "last_insn", "seq".
10875         (emit_move_insn_1): Likewise for return type and locals "result",
10876         "ret".
10877         (emit_move_insn): Likewise for return type and local "last_insn".
10878         (compress_float_constant): Likewise.
10880 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
10882         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
10883         from rtx to rtx_insn *.
10885         * rtl.h (emit_insn_before): Likewise.
10886         (emit_insn_before_noloc): Likewise.
10887         (emit_insn_before_setloc): Likewise.
10888         (emit_jump_insn_before): Likewise.
10889         (emit_jump_insn_before_noloc): Likewise.
10890         (emit_jump_insn_before_setloc): Likewise.
10891         (emit_call_insn_before): Likewise.
10892         (emit_call_insn_before_noloc): Likewise.
10893         (emit_call_insn_before_setloc): Likewise.
10894         (emit_debug_insn_before): Likewise.
10895         (emit_debug_insn_before_noloc): Likewise.
10896         (emit_debug_insn_before_setloc): Likewise.
10897         (emit_label_before): Likewise.
10898         (emit_insn_after): Likewise.
10899         (emit_insn_after_noloc): Likewise.
10900         (emit_insn_after_setloc): Likewise.
10901         (emit_jump_insn_after): Likewise.
10902         (emit_jump_insn_after_noloc): Likewise.
10903         (emit_jump_insn_after_setloc): Likewise.
10904         (emit_call_insn_after): Likewise.
10905         (emit_call_insn_after_noloc): Likewise.
10906         (emit_call_insn_after_setloc): Likewise.
10907         (emit_debug_insn_after): Likewise.
10908         (emit_debug_insn_after_noloc): Likewise.
10909         (emit_debug_insn_after_setloc): Likewise.
10910         (emit_label_after): Likewise.
10911         (emit_insn): Likewise.
10912         (emit_debug_insn): Likewise.
10913         (emit_jump_insn): Likewise.
10914         (emit_call_insn): Likewise.
10915         (emit_label): Likewise.
10916         (gen_clobber): Likewise.
10917         (emit_clobber): Likewise.
10918         (gen_use): Likewise.
10919         (emit_use): Likewise.
10920         (emit): Likewise.
10922         (emit_barrier_before): Strengthen return type from rtx to
10923         rtx_barrier *.
10924         (emit_barrier_after): Likewise.
10925         (emit_barrier): Likewise.
10927         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
10928         from rtx to rtx_insn *.  Add checked casts for now when converting
10929         "last" from rtx to rtx_insn *.
10930         (emit_insn_before_noloc): Likewise for return type.
10931         (emit_jump_insn_before_noloc): Likewise.
10932         (emit_call_insn_before_noloc): Likewise.
10933         (emit_debug_insn_before_noloc): Likewise.
10934         (emit_barrier_before): Strengthen return type and local "insn"
10935         from rtx to rtx_barrier *.
10936         (emit_label_before): Strengthen return type from rtx to
10937         rtx_insn *.  Add checked cast for now when returning param
10938         (emit_pattern_after_noloc): Strengthen return type from rtx to
10939         rtx_insn *.  Add checked casts for now when converting "last" from
10940         rtx to rtx_insn *.
10941         (emit_insn_after_noloc): Strengthen return type from rtx to
10942         rtx_insn *.
10943         (emit_jump_insn_after_noloc): Likewise.
10944         (emit_call_insn_after_noloc): Likewise.
10945         (emit_debug_insn_after_noloc): Likewise.
10946         (emit_barrier_after): Strengthen return type from rtx to
10947         rtx_barrier *.
10948         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
10949         Add checked cast for now when converting "label" from rtx to
10950         rtx_insn *.
10951         (emit_pattern_after_setloc): Strengthen return type from rtx to
10952         rtx_insn *.  Add checked casts for now when converting "last" from
10953         rtx to rtx_insn *.
10954         (emit_pattern_after): Strengthen return type from rtx to
10955         rtx_insn *.
10956         (emit_insn_after_setloc): Likewise.
10957         (emit_insn_after): Likewise.
10958         (emit_jump_insn_after_setloc): Likewise.
10959         (emit_jump_insn_after): Likewise.
10960         (emit_call_insn_after_setloc): Likewise.
10961         (emit_call_insn_after): Likewise.
10962         (emit_debug_insn_after_setloc): Likewise.
10963         (emit_debug_insn_after): Likewise.
10964         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
10965         when converting "last" from rtx to rtx_insn *.
10966         (emit_pattern_before): Strengthen return type from rtx to
10967         rtx_insn *.
10968         (emit_insn_before_setloc): Likewise.
10969         (emit_insn_before): Likewise.
10970         (emit_jump_insn_before_setloc): Likewise.
10971         (emit_jump_insn_before): Likewise.
10972         (emit_call_insn_before_setloc): Likewise.
10973         (emit_call_insn_before): Likewise.
10974         (emit_debug_insn_before_setloc): Likewise.
10975         (emit_debug_insn_before): Likewise.
10976         (emit_insn): Strengthen return type and locals "last", "insn",
10977         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
10978         within cases where we know we have an insn.
10979         (emit_debug_insn): Likewise.
10980         (emit_jump_insn): Likewise.
10981         (emit_call_insn): Strengthen return type and local "insn" from rtx
10982         to rtx_insn *.
10983         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
10984         a checked cast to rtx_insn * for now on "label".
10985         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
10986         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
10987         (emit_use): Likewise.
10988         (gen_use): Likewise, also for local "seq".
10989         (emit): Likewise for return type and local "insn".
10990         (rtx_insn): Likewise for return type and local "new_rtx".
10992         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
10993         from rtx to rtx_barrier *.
10995         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
10996         changed return type from rtx to rtx_insn *, we must update
10997         "emit_fn" type, and this in turn means updating...
10998         (frame_insn): ...this.  Strengthen return type from rtx to
10999         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
11001 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11003         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
11004         rtx to rtx_jump_table_data *.  Also for local.
11005         * rtl.h (emit_jump_table_data): Likewise.
11007 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11009         * basic-block.h (create_basic_block_structure): Strengthen third
11010         param "bb_note" from rtx to rtx_note *.
11011         * rtl.h (emit_note_before): Strengthen return type from rtx to
11012         rtx_note *.
11013         (emit_note_after): Likewise.
11014         (emit_note): Likewise.
11015         (emit_note_copy): Likewise.  Also, strengthen param similarly.
11016         * function.h (struct rtl_data): Strengthen field
11017         "x_stack_check_probe_note" from rtx to rtx_note *.
11019         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
11020         from rtx to rtx_note *.
11021         * cfgrtl.c (create_basic_block_structure): Strengthen third param
11022         "bb_note" from rtx to rtx_note *.
11023         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
11024         when calling emit_note_copy.
11025         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
11026         rtx_note *.
11027         (emit_note_after): Likewise.
11028         (emit_note_before): Likewise.
11029         (emit_note_copy): Likewise.  Also, strengthen param similarly.
11030         (emit_note): Likewise.
11031         * except.c (emit_note_eh_region_end): Likewise for return type.
11032         Strengthen local "next" from rtx to rtx_insn *.
11033         (convert_to_eh_region_ranges): Strengthen local "note"
11034         from rtx to rtx_note *.
11035         * final.c (change_scope): Likewise.
11036         (reemit_insn_block_notes): Likewise, for both locals named "note".
11037         Also, strengthen local "insn" from rtx to rtx_insn *.
11038         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
11039         rtx to rtx_note *.
11040         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
11041         strengthen local "seq" from rtx to rtx_insn *.
11042         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
11043         to rtx_note *.
11044         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
11045         vec<rtx_note *>.
11046         (get_bb_note_from_pool): Strengthen return type from rtx to
11047         rtx_note *.
11048         (sel_create_basic_block): Strengthen local "new_bb_note" from
11049         insn_t to rtx_note *.
11050         * var-tracking.c (emit_note_insn_var_location): Strengthen local
11051         "note" from rtx to rtx_note *.
11052         (emit_notes_in_bb): Likewise.
11054 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11056         * function.h (struct rtl_data): Strengthen field
11057         "x_parm_birth_insn" from rtx to rtx_insn *.
11058         * function.c (struct assign_parm_data_all): Strengthen fields
11059         "first_conversion_insn" and "last_conversion_insn" from rtx to
11060         rtx_insn *.
11062 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11064         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
11065         to rtx_insn *; also for local "var_end_seq".
11066         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
11067         (maybe_cleanup_end_of_block): Likewise for param "last" and local
11068         "insn".
11069         (expand_gimple_cond): Likewise for locals "last2" and "last".
11070         (mark_transaction_restart_calls): Likewise for local "insn".
11071         (expand_gimple_stmt): Likewise for return type and locals "last"
11072         and "insn".
11073         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
11074         (avoid_complex_debug_insns): Likewise for param "insn".
11075         (expand_debug_locations): Likewise for locals "insn", "last",
11076         "prev_insn" and "insn2".
11077         (expand_gimple_basic_block): Likewise for local "last".
11078         (construct_exit_block): Likewise for locals "head", "end",
11079         "orig_end".
11080         (pass_expand::execute): Likewise for locals "var_seq",
11081         "var_ret_seq", "next".
11083 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11085         * asan.h (asan_emit_stack_protection): Strengthen return type from
11086         rtx to rtx_insn *.
11087         * asan.c (asan_emit_stack_protection): Likewise.  Add local
11088         "insns" to hold the return value.
11090 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11092         * basic-block.h (bb_note): Strengthen return type from rtx to
11093         rtx_note *.
11094         * sched-int.h (bb_note): Likewise.
11095         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
11097 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11099         * rtl.h (make_insn_raw): Strengthen return type from rtx to
11100         rtx_insn *.
11102         * emit-rtl.c (make_insn_raw): Strengthen return type and local
11103         "insn" from rtx to rtx_insn *.
11104         (make_debug_insn_raw): Strengthen return type from rtx to
11105         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
11106         (make_jump_insn_raw):  Strengthen return type from rtx to
11107         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
11108         (make_call_insn_raw):  Strengthen return type from rtx to
11109         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
11110         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
11111         callback from rtx to rtx_insn *; likewise for local "insn" and
11112         "next", adding a checked cast to rtx_insn in the relevant cases of
11113         the switch statement.
11114         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
11115         callback from rtx to rtx_insn *.
11116         (emit_pattern_after_setloc): Likewise.
11117         (emit_pattern_after): Likewise.
11118         (emit_pattern_before_setloc): Likewise.
11119         (emit_pattern_before): Likewise.
11121 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11123         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
11124         rtx_call_insn *.
11125         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
11126         accepting an rtx_insn *.
11127         (last_call_insn): Strengthen return type from rtx to
11128         rtx_call_insn *.
11130 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11132         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
11133         "insns" from rtx to rtx_insn *.
11134         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
11135         locals "insn" and "prev".
11137 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11139         * rtl.h (tablejump_p): Strengthen third param from rtx * to
11140         rtx_jump_table_data **.
11142         * cfgbuild.c (make_edges): Introduce local "table", using it in
11143         place of "tmp" for jump table data.
11144         (find_bb_boundaries): Strengthen local "table" from rtx to
11145         rtx_jump_table_data *.
11146         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11147         (outgoing_edges_match): Likewise for locals "table1" and "table2".
11148         (try_crossjump_to_edge): Likewise.
11149         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
11150         "table".
11151         (patch_jump_insn): Introduce local "table", using it in place of
11152         "tmp" for jump table data.
11153         (force_nonfallthru_and_redirect): Introduce local "table", so that
11154         call to tablejump_p can receive an rtx_jump_table_data **.  Update
11155         logic around the call to overwrite "note" appropriately if
11156         tablejump_p returns non-zero.
11157         (get_last_bb_insn): Introduce local "table", using it in place of
11158         "tmp" for jump table data.
11159         * dwarf2cfi.c (create_trace_edges): Likewise.
11161         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
11162         from rtx to rtx_jump_table_data *.
11163         (create_fix_barrier): Strengthen local "tmp" from rtx to
11164         rtx_jump_table_data *.
11165         (arm_reorg): Likewise for local "table".
11167         * config/s390/s390.c (s390_chunkify_start): Likewise.
11169         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
11171         * jump.c (delete_related_insns): Strengthen local "lab_next" from
11172         rtx to rtx_jump_table_data *.
11174         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
11175         rtx_jump_table_data **.  Add a checked cast when writing through
11176         the pointer: we know there that local "table" is non-NULL and that
11177         JUMP_TABLE_DATA_P (table) holds.
11178         (label_is_jump_target_p): Introduce local "table", using it in
11179         place of "tmp" for jump table data.
11181 2014-08-19  Marek Polacek  <polacek@redhat.com>
11183         PR c++/62153
11184         * doc/invoke.texi: Document -Wbool-compare.
11186 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11188         * rtl.h (entry_of_function): Strengthen return type from rtx to
11189         rtx_insn *.
11190         * cfgrtl.c (entry_of_function): Likewise.
11192 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11194         * emit-rtl.h (get_insns): Strengthen return type from rtx to
11195         rtx_insn *, adding a checked cast for now.
11196         (get_last_insn): Likewise.
11198 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11200         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
11201         rtx_code_label *.
11203         * emit-rtl.c (gen_label_rtx): Likewise.
11205 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11207         * rtl.h (previous_insn): Strengthen return type from rtx to
11208         rtx_insn *.
11209         (next_insn): Likewise.
11210         (prev_nonnote_insn): Likewise.
11211         (prev_nonnote_insn_bb): Likewise.
11212         (next_nonnote_insn): Likewise.
11213         (next_nonnote_insn_bb): Likewise.
11214         (prev_nondebug_insn): Likewise.
11215         (next_nondebug_insn): Likewise.
11216         (prev_nonnote_nondebug_insn): Likewise.
11217         (next_nonnote_nondebug_insn): Likewise.
11218         (prev_real_insn): Likewise.
11219         (next_real_insn): Likewise.
11220         (prev_active_insn): Likewise.
11221         (next_active_insn): Likewise.
11223         * emit-rtl.c (next_insn): Strengthen return type from rtx to
11224         rtx_insn *, adding a checked cast.
11225         (previous_insn): Likewise.
11226         (next_nonnote_insn): Likewise.
11227         (next_nonnote_insn_bb): Likewise.
11228         (prev_nonnote_insn): Likewise.
11229         (prev_nonnote_insn_bb): Likewise.
11230         (next_nondebug_insn): Likewise.
11231         (prev_nondebug_insn): Likewise.
11232         (next_nonnote_nondebug_insn): Likewise.
11233         (prev_nonnote_nondebug_insn): Likewise.
11234         (next_real_insn): Likewise.
11235         (prev_real_insn): Likewise.
11236         (next_active_insn): Likewise.
11237         (prev_active_insn): Likewise.
11239         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
11240         param "stepfunc" so that it returns an rtx_insn * rather than an
11241         rtx, to track the change to prev_nonnote_insn_bb, which is the
11242         only function this is called with.
11243         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
11245 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
11247         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
11248         assert.
11250 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11252         * coretypes.h (class rtx_debug_insn): Add forward declaration.
11253         (class rtx_nonjump_insn): Likewise.
11254         (class rtx_jump_insn): Likewise.
11255         (class rtx_call_insn): Likewise.
11256         (class rtx_jump_table_data): Likewise.
11257         (class rtx_barrier): Likewise.
11258         (class rtx_code_label): Likewise.
11259         (class rtx_note): Likewise.
11261         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
11262         adding the invariant DEBUG_INSN_P (X).
11263         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
11264         the invariant NONJUMP_INSN_P (X).
11265         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
11266         the invariant JUMP_P (X).
11267         (class rtx_call_insn): New, a subclass of rtx_insn, adding
11268         the invariant CALL_P (X).
11269         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
11270         invariant JUMP_TABLE_DATA_P (X).
11271         (class rtx_barrier): New, a subclass of rtx_insn, adding the
11272         invariant BARRIER_P (X).
11273         (class rtx_code_label): New, a subclass of rtx_insn, adding
11274         the invariant LABEL_P (X).
11275         (class rtx_note): New, a subclass of rtx_insn, adding
11276         the invariant NOTE_P(X).
11277         (is_a_helper <rtx_debug_insn *>::test): New.
11278         (is_a_helper <rtx_nonjump_insn *>::test): New.
11279         (is_a_helper <rtx_jump_insn *>::test): New.
11280         (is_a_helper <rtx_call_insn *>::test): New.
11281         (is_a_helper <rtx_jump_table_data *>::test): New functions,
11282         overloaded for both rtx and rtx_insn *.
11283         (is_a_helper <rtx_barrier *>::test): New.
11284         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
11285         for both rtx and rtx_insn *.
11286         (is_a_helper <rtx_note *>::test): New.
11288 2014-08-19  Marek Polacek  <polacek@redhat.com>
11290         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
11291         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11292         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
11293         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
11295 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11297         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
11298         rtx_insn *.  To help with transition, for now, convert from an
11299         access macro into a pair of functions: BND_TO, returning an
11300         rtx_insn *, and...
11301         (SET_BND_TO): New function, for use where BND_TO is used as an
11302         lvalue.
11304         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
11305         SET_BND_TO.
11306         (BND_TO): New function, adding a checked cast.
11307         (SET_BND_TO): New function.
11309         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
11310         SET_BND_TO.
11311         (compute_av_set_on_boundaries): Likewise.
11313 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11315         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
11316         destination if it is used in source.
11317         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
11318         (*popcount<mode>2_falsedep_1): Likewise.
11320 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
11322         PR other/62168
11323         * configure.ac: Set install_gold_as_default to no first.
11324         * configure: Regenerated.
11326 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11328         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
11329         "note_list" field will eventually be an rtx_insn *.  To help with
11330         transition, for now, convert from an access macro into a pair of
11331         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
11332         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
11333         used as an lvalue.
11335         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
11336         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
11338         * sel-sched-ir.c (init_bb): Likewise.
11339         (sel_restore_notes): Likewise.
11340         (move_bb_info): Likewise.
11341         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
11342         (SET_BB_NOTE_LIST): New function.
11344 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11346         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
11347         field will eventually be an rtx_insn *.  To help with transition,
11348         for now, convert from an access macro into a pair of functions:
11349         VINSN_INSN_RTX, returning an rtx_insn *, and...
11350         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
11351         is used as an lvalue.
11353         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
11354         SET_VINSN_INSN_RTX where it's used as an lvalue.
11355         (VINSN_INSN_RTX): New function.
11356         (SET_VINSN_INSN_RTX): New function.
11358 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11360         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
11361         eventually be rtx_insn *, but to help with transition, for now,
11362         convert from an access macro into a pair of functions: DEP_PRO
11363         returning an rtx_insn * and...
11364         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
11365         lvalue, returning an rtx&.
11366         (DEP_CON): Analogous changes to DEP_PRO above.
11367         (SET_DEP_CON): Likewise.
11369         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
11370         an lvalue to SET_DEP_CON.
11371         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
11372         (sd_copy_back_deps): Likewise for DEP_CON.
11373         (DEP_PRO): New function, adding a checked cast for now.
11374         (DEP_CON): Likewise.
11375         (SET_DEP_PRO): New function.
11376         (SET_DEP_CON): Likewise.
11378 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
11380         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
11381         (extra_options): Add i386/cygwin.opt.
11382         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
11383         (CPP_SPEC): Accept -pthread.
11384         (LINK_SPEC): Ditto.
11385         (GOMP_SELF_SPECS): Update comment.
11386         * config/i386/cygwin.opt: New file for -pthread flag.
11388 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11390         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
11391         * df.h (DF_REF_INSN): Convert from a macro to a function, so
11392         that we can return an rtx_insn *.
11394 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
11396         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
11397         when building executables, not DLLs.  Add --large-address-aware
11398         under the same conditions.
11399         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
11400         when building executables, not DLLs.  Add --large-address-aware
11401         under the same conditions when using -m32.
11403         * config/i386/cygwin-stdint.h: Throughout, make type
11404         definitions dependent on target architecture, not host.
11406 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11408         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
11409         the return type from rtx to rtx_insn *,  which will enable various
11410         conversions in followup patches.  For now this is is done by a
11411         checked cast.
11412         (NEXT_INSN): Likewise.
11413         (SET_PREV_INSN): Convert to an inline function.  This is intended
11414         for use as an lvalue, and so returns an rtx& to allow in-place
11415         modification.
11416         (SET_NEXT_INSN): Likewise.
11418 2014-07-08  Mark Wielaard  <mjw@redhat.com>
11420         PR debug/59051
11421         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
11423 2014-08-19  Marek Polacek  <polacek@redhat.com>
11425         PR c/61271
11426         * cgraphunit.c (handle_alias_pairs): Fix condition.
11428 2014-08-19  Richard Biener  <rguenther@suse.de>
11430         * gimple-fold.c (fold_gimple_assign): Properly build a
11431         null-pointer constant when devirtualizing addresses.
11433 2014-07-07  Mark Wielaard  <mjw@redhat.com>
11435         * dwarf2out.c (decl_quals): New function.
11436         (modified_type_die): Take one cv_quals argument instead of two,
11437         one for const and one for volatile.
11438         (add_type_attribute): Likewise.
11439         (generic_parameter_die): Call add_type_attribute with one modifier
11440         argument.
11441         (base_type_for_mode): Likewise.
11442         (add_bounds_info): Likewise.
11443         (add_subscript_info): Likewise.
11444         (gen_array_type_die): Likewise.
11445         (gen_descr_array_type_die): Likewise.
11446         (gen_entry_point_die): Likewise.
11447         (gen_enumeration_type_die): Likewise.
11448         (gen_formal_parameter_die): Likewise.
11449         (gen_subprogram_die): Likewise.
11450         (gen_variable_die): Likewise.
11451         (gen_const_die): Likewise.
11452         (gen_field_die): Likewise.
11453         (gen_pointer_type_die): Likewise.
11454         (gen_reference_type_die): Likewise.
11455         (gen_ptr_to_mbr_type_die): Likewise.
11456         (gen_inheritance_die): Likewise.
11457         (gen_subroutine_type_die): Likewise.
11458         (gen_typedef_die): Likewise.
11459         (force_type_die): Likewise.
11461 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11463         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
11464         if unset.
11465         * configure: Regenerate.
11467 2014-08-19  Richard Biener  <rguenther@suse.de>
11469         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
11470         DECL_EXTERNALs in BLOCKs as non-references.
11471         * tree-streamer-out.c (streamer_write_chain): Likewise.
11473 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11474             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11475             Anna Tikhonova  <anna.tikhonova@intel.com>
11476             Ilya Tocar  <ilya.tocar@intel.com>
11477             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11478             Ilya Verbin  <ilya.verbin@intel.com>
11479             Kirill Yukhin  <kirill.yukhin@intel.com>
11480             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11482         * config/i386/sse.md
11483         (define_mode_iterator VI48_AVX512F): Delete.
11484         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
11485         (define_mode_iterator VI2_AVX512VL): Ditto.
11486         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
11487         Delete.
11488         (define_insn
11489         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
11490         New.
11491         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
11492         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
11493         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11494         with VI48_AVX512F_AVX512VL): New.
11495         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
11496         with VI2_AVX512VL): Ditto.
11498 2014-08-19  Marek Polacek  <polacek@redhat.com>
11500         * doc/invoke.texi: Document -Wc99-c11-compat.
11502 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11504         * rtl.h (PREV_INSN): Split macro in two: the existing one,
11505         for rvalues, and...
11506         (SET_PREV_INSN): New macro, for use as an lvalue.
11507         (NEXT_INSN, SET_NEXT_INSN): Likewise.
11509         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
11510         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
11511         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11512         (fixup_abnormal_edges): Likewise.
11513         (unlink_insn_chain): Likewise.
11514         (fixup_reorder_chain): Likewise.
11515         (cfg_layout_delete_block): Likewise.
11516         (cfg_layout_merge_blocks): Likewise.
11517         * combine.c (update_cfg_for_uncondjump): Likewise.
11518         * emit-rtl.c (link_insn_into_chain): Likewise.
11519         (remove_insn): Likewise.
11520         (delete_insns_since): Likewise.
11521         (reorder_insns_nobb): Likewise.
11522         (emit_insn_after_1): Likewise.
11523         * final.c (rest_of_clean_state): Likewise.
11524         (final_scan_insn): Likewise.
11525         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
11526         * haifa-sched.c (concat_note_lists): Likewise.
11527         (remove_notes): Likewise.
11528         (restore_other_notes): Likewise.
11529         (move_insn): Likewise.
11530         (unlink_bb_notes): Likewise.
11531         (restore_bb_notes): Likewise.
11532         * jump.c (delete_for_peephole): Likewise.
11533         * optabs.c (emit_libcall_block_1): Likewise.
11534         * reorg.c (emit_delay_sequence): Likewise.
11535         (fill_simple_delay_slots): Likewise.
11536         * sel-sched-ir.c (sel_move_insn): Likewise.
11537         (sel_remove_insn): Likewise.
11538         (get_bb_note_from_pool): Likewise.
11539         * sel-sched.c (move_nop_to_previous_block): Likewise.
11541         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
11542         * config/c6x/c6x.c (gen_one_bundle): Likewise.
11543         (c6x_gen_bundles): Likewise.
11544         (hwloop_optimize): Likewise.
11545         * config/frv/frv.c (frv_function_prologue): Likewise.
11546         (frv_register_nop): Likewise.
11547         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
11548         (ia64_reorg): Likewise.
11549         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
11550         (mep_make_bundle): Likewise.
11551         (mep_bundle_insns): Likewise.
11552         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
11553         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
11554         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
11556 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
11558         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
11559         return type from rtx to rtx_insn *.
11560         (BB_END): Likewise.
11561         (BB_HEADER): Likewise.
11562         (BB_FOOTER): Likewise.
11563         (SET_BB_HEAD): Convert to a function.
11564         (SET_BB_END): Likewise.
11565         (SET_BB_HEADER): Likewise.
11566         (SET_BB_FOOTER): Likewise.
11568         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
11569         Strengthen the return type from rtx to rtx_insn *.  For now, this
11570         is done by adding a checked cast, but this will eventually
11571         become a field lookup.
11572         (BB_END): Likewise.
11573         (BB_HEADER): Likewise.
11574         (BB_FOOTER): Likewise.
11575         (SET_BB_HEAD): New function, from macro of same name.  This is
11576         intended for use as an lvalue, and so returns an rtx& to allow
11577         in-place modification.
11578         (SET_BB_END): Likewise.
11579         (SET_BB_HEADER): Likewise.
11580         (SET_BB_FOOTER): Likewise.
11582 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
11584         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
11585         for rvalues, and...
11586         (SET_BB_HEAD): New macro, for use as a lvalue.
11587         (BB_END, SET_BB_END): Likewise.
11588         (BB_HEADER, SET_BB_HEADER): Likewise.
11589         (BB_FOOTER, SET_BB_FOOTER): Likewise.
11591         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
11592         of BB_* macros into SET_BB_* macros.
11593         (fix_crossing_unconditional_branches): Likewise.
11594         * caller-save.c (save_call_clobbered_regs): Likewise.
11595         (insert_one_insn): Likewise.
11596         * cfgbuild.c (find_bb_boundaries): Likewise.
11597         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
11598         (outgoing_edges_match): Likewise.
11599         (try_optimize_cfg): Likewise.
11600         * cfgexpand.c (expand_gimple_cond): Likewise.
11601         (expand_gimple_tailcall): Likewise.
11602         (expand_gimple_basic_block): Likewise.
11603         (construct_exit_block): Likewise.
11604         * cfgrtl.c (delete_insn): Likewise.
11605         (create_basic_block_structure): Likewise.
11606         (rtl_delete_block): Likewise.
11607         (rtl_split_block): Likewise.
11608         (emit_nop_for_unique_locus_between): Likewise.
11609         (rtl_merge_blocks): Likewise.
11610         (block_label): Likewise.
11611         (try_redirect_by_replacing_jump): Likewise.
11612         (emit_barrier_after_bb): Likewise.
11613         (fixup_abnormal_edges): Likewise.
11614         (record_effective_endpoints): Likewise.
11615         (relink_block_chain): Likewise.
11616         (fixup_reorder_chain): Likewise.
11617         (fixup_fallthru_exit_predecessor): Likewise.
11618         (cfg_layout_duplicate_bb): Likewise.
11619         (cfg_layout_split_block): Likewise.
11620         (cfg_layout_delete_block): Likewise.
11621         (cfg_layout_merge_blocks): Likewise.
11622         * combine.c (update_cfg_for_uncondjump): Likewise.
11623         * emit-rtl.c (add_insn_after): Likewise.
11624         (remove_insn): Likewise.
11625         (reorder_insns): Likewise.
11626         (emit_insn_after_1): Likewise.
11627         * haifa-sched.c (get_ebb_head_tail): Likewise.
11628         (restore_other_notes): Likewise.
11629         (move_insn): Likewise.
11630         (sched_extend_bb): Likewise.
11631         (fix_jump_move): Likewise.
11632         * ifcvt.c (noce_process_if_block): Likewise.
11633         (dead_or_predicable): Likewise.
11634         * ira.c (update_equiv_regs): Likewise.
11635         * reg-stack.c (change_stack): Likewise.
11636         * sel-sched-ir.c (sel_move_insn): Likewise.
11637         * sel-sched.c (move_nop_to_previous_block): Likewise.
11639         * config/c6x/c6x.c (hwloop_optimize): Likewise.
11640         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
11642 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
11644         * rtl.h (for_each_rtx_in_insn): New function.
11645         * rtlanal.c (for_each_rtx_in_insn): Likewise.
11647 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
11649         * coretypes.h (class rtx_insn): Add forward declaration.
11651         * rtl.h: Include is-a.h.
11652         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
11653         workaround to ensure gengtype knows inheritance is occurring,
11654         whilst continuing to use the pre-existing special-casing for
11655         rtx_def.
11656         (class rtx_insn): New subclass of rtx_def, adding the
11657         invariant that we're dealing with something we can sanely use
11658         INSN_UID, NEXT_INSN, PREV_INSN on.
11659         (is_a_helper <rtx_insn *>::test): New.
11660         (is_a_helper <const rtx_insn *>::test): New.
11662 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
11664         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
11666 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
11668         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
11669         comdats as extern.
11671 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
11673         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
11674         to BUILT_IN_UNREACHABLE.
11676 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
11678         PR target/62011
11679         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
11680         New tune flag.
11681         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
11682         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
11683         (ffs<mode>2): Do not expand with tzcnt for
11684         TARGET_AVOID_FALSE_DEP_FOR_BMI.
11685         (ffssi2_no_cmove): Ditto.
11686         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
11687         (ctz<mode>2): New expander.
11688         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
11689         (*ctz<mode>2_falsedep): New insn.
11690         (*ctz<mode>2): Rename from ctz<mode>2.
11691         (clz<mode>2_lzcnt): New expander.
11692         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
11693         (*clz<mode>2_lzcnt_falsedep): New insn.
11694         (*clz<mode>2): Rename from ctz<mode>2.
11695         (popcount<mode>2): New expander.
11696         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
11697         (*popcount<mode>2_falsedep): New insn.
11698         (*popcount<mode>2): Rename from ctz<mode>2.
11699         (*popcount<mode>2_cmp): Remove.
11700         (*popcountsi2_cmp_zext): Ditto.
11702 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
11704         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
11705         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
11706         * config/microblaze/microblaze.h
11707         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
11709 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
11711         PR other/62168
11712         * configure.ac: Set install_gold_as_default to no for
11713          --enable-gold=no.
11714          * configure: Regenerated.
11716 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
11718         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
11719         * config.in: Add undef of HAVE_isl.
11720         * configure: Regenerate.
11721         * configure.ac: Add definition of HAVE_isl.
11722         * graphite-blocking.c: Add checking of HAVE_isl.
11723         * graphite-dependences.c: Likewise.
11724         * graphite-interchange.c: Likewise.
11725         * graphite-isl-ast-to-gimple.c: Likewise.
11726         * graphite-optimize-isl.c: Likewise.
11727         * graphite-poly.c: Likewise.
11728         * graphite-scop-detection.c: Likewise.
11729         * graphite-sese-to-poly.c: Likewise.
11730         * graphite.c: Likewise.
11731         * toplev.c: Replace the checking of HAVE_cloog with the checking
11732         of HAVE_isl.
11734 2014-08-18  Richard Biener  <rguenther@suse.de>
11736         PR tree-optimization/62090
11737         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
11738         (fold_builtin_3): Do not fold snprintf.
11739         (fold_builtin_4): Likewise.
11740         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
11741         moved from builtins.c.
11742         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
11743         (gimple_fold_builtin): Do not fold sprintf here.
11745 2014-08-18  Richard Biener  <rguenther@suse.de>
11747         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
11748         code to ...
11749         (maybe_canonicalize_mem_ref_addr): ... this function.
11750         (fold_stmt_1): Apply it here before all simplification.
11752 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
11754         PR ipa/61800
11755         * cgraph.h (cgraph_node::create_indirect_edge): Add
11756         compute_indirect_info param.
11757         * cgraph.c (cgraph_node::create_indirect_edge): Compute
11758         indirect_info only when it is required.
11759         * cgraphclones.c (cgraph_clone_edge): Do not recompute
11760         indirect_info fore cloned indirect edge.
11762 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11763             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11764             Anna Tikhonova  <anna.tikhonova@intel.com>
11765             Ilya Tocar  <ilya.tocar@intel.com>
11766             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11767             Ilya Verbin  <ilya.verbin@intel.com>
11768             Kirill Yukhin  <kirill.yukhin@intel.com>
11769             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11771         * config/i386/sse.md
11772         (define_mode_iterator VI8_AVX2_AVX512BW): New.
11773         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
11775 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11776             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11777             Anna Tikhonova  <anna.tikhonova@intel.com>
11778             Ilya Tocar  <ilya.tocar@intel.com>
11779             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11780             Ilya Verbin  <ilya.verbin@intel.com>
11781             Kirill Yukhin  <kirill.yukhin@intel.com>
11782             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11784         * config/i386/sse.md
11785         (define_mode_iterator VF1_AVX512VL): New.
11786         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
11787         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
11788         New.
11790 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11791             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11792             Anna Tikhonova  <anna.tikhonova@intel.com>
11793             Ilya Tocar  <ilya.tocar@intel.com>
11794             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11795             Ilya Verbin  <ilya.verbin@intel.com>
11796             Kirill Yukhin  <kirill.yukhin@intel.com>
11797             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11799         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
11800         * config/i386/i386.md
11801         (define_code_iterator any_float): New.
11802         (define_code_attr floatsuffix): New.
11803         * config/i386/sse.md
11804         (define_mode_iterator VF1_128_256VL): New.
11805         (define_mode_iterator VF2_512_256VL): New.
11806         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
11807         TARGET check.
11808         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
11809         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
11810         New.
11811         (define_mode_attr qq2pssuff): New.
11812         (define_mode_attr sselongvecmode): New.
11813         (define_mode_attr sselongvecmodelower): New.
11814         (define_mode_attr sseintvecmode3): New.
11815         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
11816         New.
11817         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
11818         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
11819         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
11820         (define_insn "ufloatv2siv2df2<mask_name>"): New.
11822 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11823             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11824             Anna Tikhonova  <anna.tikhonova@intel.com>
11825             Ilya Tocar  <ilya.tocar@intel.com>
11826             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11827             Ilya Verbin  <ilya.verbin@intel.com>
11828             Kirill Yukhin  <kirill.yukhin@intel.com>
11829             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11831         * config/i386/sse.md
11832         (define_mode_iterator VF2_AVX512VL): New.
11833         (define_mode_attr sseintvecmode2): New.
11834         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
11835         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
11836         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
11837         (define_insn
11838         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
11839         Ditto.
11840         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
11841         Ditto.
11842         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
11843         Ditto.
11845 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11846             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11847             Anna Tikhonova  <anna.tikhonova@intel.com>
11848             Ilya Tocar  <ilya.tocar@intel.com>
11849             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11850             Ilya Verbin  <ilya.verbin@intel.com>
11851             Kirill Yukhin  <kirill.yukhin@intel.com>
11852             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11854         * config/i386/i386.md
11855         (define_insn "*movoi_internal_avx"): Add evex version.
11856         (define_insn "*movti_internal"): Ditto.
11858 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11859             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11860             Anna Tikhonova  <anna.tikhonova@intel.com>
11861             Ilya Tocar  <ilya.tocar@intel.com>
11862             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11863             Ilya Verbin  <ilya.verbin@intel.com>
11864             Kirill Yukhin  <kirill.yukhin@intel.com>
11865             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11867         * config/i386/i386.md
11868         (define_attr "isa"): Add avx512dq, noavx512dq.
11869         (define_attr "enabled"): Ditto.
11870         * config/i386/sse.md
11871         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
11873 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11874             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11875             Anna Tikhonova  <anna.tikhonova@intel.com>
11876             Ilya Tocar  <ilya.tocar@intel.com>
11877             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11878             Ilya Verbin  <ilya.verbin@intel.com>
11879             Kirill Yukhin  <kirill.yukhin@intel.com>
11880             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11882         * config/i386/i386.c
11883         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
11884         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
11885         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
11886         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
11887         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
11888         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
11889         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
11890         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
11891         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
11892         * config/i386/sse.md
11893         (define_mode_iterator VMOVE): Allow V4TI mode.
11894         (define_mode_iterator V_AVX512VL): New.
11895         (define_mode_iterator V): New handling for AVX512VL.
11896         (define_insn "avx512f_load<mode>_mask"): Delete.
11897         (define_insn "<avx512>_load<mode>_mask"): New.
11898         (define_insn "avx512f_store<mode>_mask"): Delete.
11899         (define_insn "<avx512>_store<mode>_mask"): New.
11902 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
11904         PR sanitizer/62089
11905         * asan.c (instrument_derefs): Fix bitfield check.
11907 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11909         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
11910         * config/rs6000/htm.md (ttest): Remove clobber.
11911         * config/rs6000/predicates.md (any_mask_operand): New predicate.
11912         (and_operand): Reformat.
11913         (and_2rld_operand): New predicate.
11914         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
11915         parameter.
11916         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
11917         parameter.  Handle AND directly.
11918         (rs6000_split_logical_di): Remove last parameter.
11919         (rs6000_split_logical): Remove last parameter.  Remove obsolete
11920         comment.
11921         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
11922         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
11923         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
11924         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
11925         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
11926         and 5 anonymous splitters):  Delete.
11927         (and<mode>3): New expander.
11928         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
11929         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
11930         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
11931         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
11932         (floatdisf2_internal1): Remove clobbers.
11933         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
11934         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
11935         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
11936         (and<mode>3 for BOOL_128): Remove clobber.
11937         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
11938         rs6000_split_logical.
11939         (*bool<mode>3_internal for BOOL_128): Adjust call of
11940         rs6000_split_logical.
11941         (*boolc<mode>3_internal1 for BOOL_128,
11942         *boolc<mode>3_internal2 for BOOL_128,
11943         *boolcc<mode>3_internal1 for BOOL_128,
11944         *boolcc<mode>3_internal2 for BOOL_128,
11945         *eqv<mode>3_internal1 for BOOL_128,
11946         *eqv<mode>3_internal2 for BOOL_128,
11947         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
11948         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
11949         clobber.
11950         (*vec_reload_and_reg_<mptrsize>): Delete.
11952 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11954         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
11955         and split, *boolccsi3_internal3 and split): Delete.
11956         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
11957         *boolccdi3_internal3 and split): Delete.
11958         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
11959         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
11961 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11963         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
11964         and split, *boolcsi3_internal3 and split): Delete.
11965         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
11966         *boolcdi3_internal3 and split): Delete.
11967         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
11969 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
11971         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
11972         <'u'>: Also support printing the low-order 16 bits.
11973         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
11974         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
11975         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
11976         *booldi3_internal3 and split): Delete.
11977         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
11978         *bool<mode>3_dot2): New.
11979         (two anonymous define_splits for non_logical_cint_operand): Merge.
11981 2014-08-17  Marek Polacek  <polacek@redhat.com>
11982             Manuel López-Ibáñez  <manu@gcc.gnu.org>
11984         PR c/62059
11985         * diagnostic.c (adjust_line): Add gcc_checking_assert.
11986         (diagnostic_show_locus): Don't print caret diagnostic
11987         if a column is larger than the line_width.
11989 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
11991         * common.opt: Make the ISL AST generator to be the main code generator
11992         of Graphite.
11994 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
11996         * wide-int.h (generic_wide_int): Declare as class instead of struct.
11998 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
12000         PR target/61641
12001         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
12002         Declare.
12003         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
12004         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
12005         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
12006         Define.
12007         * config/pa/pa.md (begin_brtab): Delete insn.
12008         (end_brtab): Likewise.
12010 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12012         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
12014 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
12016         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
12017         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
12018         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
12019         (get_dynamic_type): Remove.
12020         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
12021         (clear_speculation): Bring to ipa-deivrt.h
12022         (get_class_context): Rename to ...
12023         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
12024         (contains_type_p): Update.
12025         (get_dynamic_type): Rename to ...
12026         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
12027         (possible_polymorphic_call_targets): UPdate.
12028         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
12029         * ipa-prop.c (ipa_analyze_call_uses): Update.
12031 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
12033         * doc/invoke.texi (SH options): Document missing processor variant
12034         options.  Remove references to Hitachi.  Undocument deprecated mspace
12035         option.
12037 2014-08-15  Jason Merrill  <jason@redhat.com>
12039         * tree.c (type_hash_canon): Uncomment assert.
12041 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12043         * input.h (in_system_header_at): Add comment.
12045 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12047         PR fortran/44054
12048         * diagnostic.c (build_message_string): Make it extern.
12049         * diagnostic.h (build_message_string): Make it extern.
12051 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
12053         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
12054         load/store from/to non-floating class pseudo.
12056 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12058         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
12060 2014-08-15  Richard Biener  <rguenther@suse.de>
12062         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
12063         (get_constraint_for_ssa_var): Remove dead code.
12064         (get_constraint_for_1): Adjust.
12065         (find_what_var_points_to): Likewise.
12066         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
12068 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
12070         PR target/61878
12071         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
12072         (_mm512_mask_cmpge_epu32_mask): Ditto.
12073         (_mm512_cmpge_epu32_mask): Ditto.
12074         (_mm512_mask_cmpge_epi64_mask): Ditto.
12075         (_mm512_cmpge_epi64_mask): Ditto.
12076         (_mm512_mask_cmpge_epu64_mask): Ditto.
12077         (_mm512_cmpge_epu64_mask): Ditto.
12078         (_mm512_mask_cmple_epi32_mask): Ditto.
12079         (_mm512_cmple_epi32_mask): Ditto.
12080         (_mm512_mask_cmple_epu32_mask): Ditto.
12081         (_mm512_cmple_epu32_mask): Ditto.
12082         (_mm512_mask_cmple_epi64_mask): Ditto.
12083         (_mm512_cmple_epi64_mask): Ditto.
12084         (_mm512_mask_cmple_epu64_mask): Ditto.
12085         (_mm512_cmple_epu64_mask): Ditto.
12086         (_mm512_mask_cmplt_epi32_mask): Ditto.
12087         (_mm512_cmplt_epi32_mask): Ditto.
12088         (_mm512_mask_cmplt_epu32_mask): Ditto.
12089         (_mm512_cmplt_epu32_mask): Ditto.
12090         (_mm512_mask_cmplt_epi64_mask): Ditto.
12091         (_mm512_cmplt_epi64_mask): Ditto.
12092         (_mm512_mask_cmplt_epu64_mask): Ditto.
12093         (_mm512_cmplt_epu64_mask): Ditto.
12094         (_mm512_mask_cmpneq_epi32_mask): Ditto.
12095         (_mm512_mask_cmpneq_epu32_mask): Ditto.
12096         (_mm512_cmpneq_epu32_mask): Ditto.
12097         (_mm512_mask_cmpneq_epi64_mask): Ditto.
12098         (_mm512_cmpneq_epi64_mask): Ditto.
12099         (_mm512_mask_cmpneq_epu64_mask): Ditto.
12100         (_mm512_cmpneq_epu64_mask): Ditto.
12101         (_mm512_castpd_ps): Ditto.
12102         (_mm512_castpd_si512): Ditto.
12103         (_mm512_castps_pd): Ditto.
12104         (_mm512_castps_si512): Ditto.
12105         (_mm512_castsi512_ps): Ditto.
12106         (_mm512_castsi512_pd): Ditto.
12107         (_mm512_castpd512_pd128): Ditto.
12108         (_mm512_castps512_ps128): Ditto.
12109         (_mm512_castsi512_si128): Ditto.
12110         (_mm512_castpd512_pd256): Ditto.
12111         (_mm512_castps512_ps256): Ditto.
12112         (_mm512_castsi512_si256): Ditto.
12113         (_mm512_castpd128_pd512): Ditto.
12114         (_mm512_castps128_ps512): Ditto.
12115         (_mm512_castsi128_si512): Ditto.
12116         (_mm512_castpd256_pd512): Ditto.
12117         (_mm512_castps256_ps512): Ditto.
12118         (_mm512_castsi256_si512): Ditto.
12119         (_mm512_cmpeq_epu32_mask): Ditto.
12120         (_mm512_mask_cmpeq_epu32_mask): Ditto.
12121         (_mm512_mask_cmpeq_epu64_mask): Ditto.
12122         (_mm512_cmpeq_epu64_mask): Ditto.
12123         (_mm512_cmpgt_epu32_mask): Ditto.
12124         (_mm512_mask_cmpgt_epu32_mask): Ditto.
12125         (_mm512_mask_cmpgt_epu64_mask): Ditto.
12126         (_mm512_cmpgt_epu64_mask): Ditto.
12127         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
12128         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
12129         * config/i386/i386.c (enum ix86_builtins): Add
12130         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
12131         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
12132         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
12133         (bdesc_args): Add __builtin_ia32_si512_256si,
12134         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
12135         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
12136         __builtin_ia32_pd512_pd.
12137         (ix86_expand_args_builtin): Handle new FTYPEs.
12138         * config/i386/sse.md (castmode): Add 512-bit modes.
12139         (AVX512MODE2P): New.
12140         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
12141         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
12143 2014-08-15  Richard Biener  <rguenther@suse.de>
12145         * fold-const.c (tree_swap_operands_p): Put all constants
12146         last, also strip sign-changing NOPs when considering further
12147         canonicalization.  Canonicalize also when optimizing for size.
12149 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12151         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
12152         one_match > zero_match case to just before simple_sequence.
12154 2014-08-15  Richard Biener  <rguenther@suse.de>
12156         * data-streamer.h (streamer_string_index, string_for_index):
12157         Remove.
12158         * data-streamer-out.c (streamer_string_index): Make static.
12159         * data-streamer-in.c (string_for_index): Likewise.
12160         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
12161         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
12163 2014-08-15  Richard Biener  <rguenther@suse.de>
12165         PR tree-optimization/62031
12166         * tree-data-ref.c (dr_analyze_indices): Do not set
12167         DR_UNCONSTRAINED_BASE.
12168         (dr_may_alias_p): All indirect accesses have to go the
12169         formerly DR_UNCONSTRAINED_BASE path.
12170         * tree-data-ref.h (struct indices): Remove
12171         unconstrained_base member.
12172         (DR_UNCONSTRAINED_BASE): Remove.
12174 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
12176         PR middle-end/62092
12177         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
12178         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
12179         in OMP_CLAUSE_MAP in some outer target region.
12181 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
12183         * tree-ssa-loop-ivopts.c (ivopts_data): New field
12184         name_expansion_cache.
12185         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
12186         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
12187         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
12188         (difference_cannot_overflow_p): New parameter.  Use affine
12189         expansion for equality check.
12190         (iv_elimination_compare_lt): Pass new argument.
12192 2014-08-14  DJ Delorie  <dj@redhat.com>
12194         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
12195         variables to the accumulator.
12197         * config/rl78/predicates.md (rl78_near_mem_operand): New.
12198         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
12199         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
12200         with far-far moves.
12202         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
12203         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
12204         (umulqihi3_virt): Likewise.
12205         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
12206         (umulqihi3_real): Likewise.
12208         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
12210 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
12212         PR tree-optimization/62091
12213         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
12214         function_entry_reached.
12215         (walk_aliased_vdefs): Clear it here.
12216         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
12218 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
12220         * ipa-utils.h (compare_virtual_tables): Declare.
12221         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
12223 2014-08-14  Marek Polacek  <polacek@redhat.com>
12225         DR 458
12226         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
12227         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
12229 2014-08-14  Tom de Vries  <tom@codesourcery.com>
12231         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
12233 2014-08-14  Tom de Vries  <tom@codesourcery.com>
12235         PR rtl-optimization/62004
12236         PR rtl-optimization/62030
12237         * ifcvt.c (rtx_interchangeable_p): New function.
12238         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
12239         * emit-rtl.h (mem_attrs_eq_p): Declare.
12241 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
12243         * graphite-scop-detection.c:
12244         Add inclusion of cp-tree.h.
12245         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
12246         in case they are pointers to object types
12248 2014-08-14  Richard Biener  <rguenther@suse.de>
12250         * BASE-VER: Change to 5.0.0
12252 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12253             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12254             Anna Tikhonova  <anna.tikhonova@intel.com>
12255             Ilya Tocar  <ilya.tocar@intel.com>
12256             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12257             Ilya Verbin  <ilya.verbin@intel.com>
12258             Kirill Yukhin  <kirill.yukhin@intel.com>
12259             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12261         * config/i386/sse.md (define_mode_attr avx512): New.
12262         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
12263         V4DI modes.
12264         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
12265         (define_mode_attr ssse3_avx2): Ditto.
12266         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
12267         (define_mode_attr avx2_avx512bw): New.
12268         (define_mode_attr ssedoublemodelower): New.
12269         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
12270         V32HI, V64QI modes.
12271         (define_mode_attr ssebytemode): Allow V8DI modes.
12272         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
12273         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
12274         (define_mode_attr ssePSmode2): New.
12275         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
12276         V16HI, V32HI modes.
12277         (define_mode_attr dbpsadbwmode): New.
12278         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
12279         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
12280         (vi8_sse4_1_avx2_avx512): New.
12281         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
12282         mode attribute.
12283         (define_mode_attr blendbits): Move before its immediate use.
12285 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12286             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12287             Anna Tikhonova  <anna.tikhonova@intel.com>
12288             Ilya Tocar  <ilya.tocar@intel.com>
12289             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12290             Ilya Verbin  <ilya.verbin@intel.com>
12291             Kirill Yukhin  <kirill.yukhin@intel.com>
12292             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12294         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
12295         * config/i386/subst.md
12296         (define_mode_iterator SUBST_V): Update.
12297         (define_mode_iterator SUBST_A): Ditto.
12298         (define_subst_attr "mask_operand7"): New.
12299         (define_subst_attr "mask_operand10"): New.
12300         (define_subst_attr "mask_operand_arg34") : New.
12301         (define_subst_attr "mask_expand_op3"): New.
12302         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
12303         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
12304         (define_subst_attr "mask_avx512vl_condition"): New.
12305         (define_subst_attr "round_mask_operand4"): Ditto.
12306         (define_subst_attr "round_mask_scalar_op3"): Delete.
12307         (define_subst_attr "round_mask_op4"): New.
12308         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
12309         V16SImode.
12310         (define_subst_attr "round_modev8sf_condition"): New.
12311         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
12312         <MODE>mode.
12313         (define_subst_attr "round_saeonly_mask_operand4"): New.
12314         (define_subst_attr "round_saeonly_mask_op4"): New.
12315         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
12316         V8DImode, V16SImode.
12317         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
12318         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
12319         (define_subst_attr "mask_expand4_args"): New.
12320         (define_subst "mask_expand4"): New.
12322 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12323             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12324             Anna Tikhonova  <anna.tikhonova@intel.com>
12325             Ilya Tocar  <ilya.tocar@intel.com>
12326             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12327             Ilya Verbin  <ilya.verbin@intel.com>
12328             Kirill Yukhin  <kirill.yukhin@intel.com>
12329             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12331         * config/i386/i386.md
12332         (define_attr "isa"): Add avx512bw,noavx512bw.
12333         (define_attr "enabled"): Ditto.
12334         (define_split): Add 32/64-bit mask logic.
12335         (define_insn "*k<logic>qi"): New.
12336         (define_insn "*k<logic>hi"): New.
12337         (define_insn "*anddi_1"): Add mask version.
12338         (define_insn "*andsi_1"): Ditto.
12339         (define_insn "*<code><mode>_1"): Ditto.
12340         (define_insn "*<code>hi_1"): Ditto.
12341         (define_insn "kxnor<mode>"): New.
12342         (define_insn "kunpcksi"): New.
12343         (define_insn "kunpckdi"): New.
12344         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
12345         (define_insn "*one_cmplhi2_1"): Ditto.
12347 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12348             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12349             Anna Tikhonova  <anna.tikhonova@intel.com>
12350             Ilya Tocar  <ilya.tocar@intel.com>
12351             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12352             Ilya Verbin  <ilya.verbin@intel.com>
12353             Kirill Yukhin  <kirill.yukhin@intel.com>
12354             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12356         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
12357         V32HImode.
12359 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12360             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12361             Anna Tikhonova  <anna.tikhonova@intel.com>
12362             Ilya Tocar  <ilya.tocar@intel.com>
12363             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12364             Ilya Verbin  <ilya.verbin@intel.com>
12365             Kirill Yukhin  <kirill.yukhin@intel.com>
12366             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12368         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
12369         registers.
12370         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
12371         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
12372         xmm/ymm16+ when availble.
12373         * config/i386/i386.h
12374         (HARD_REGNO_NREGS): Add mask regs.
12375         (VALID_AVX512F_REG_MODE): Ditto.
12376         (VALID_AVX512F_REG_MODE) : Define.
12377         (VALID_MASK_AVX512BW_MODE): Ditto.
12378         (reg_class) (MASK_REG_P(X)): Define.
12379         * config/i386/i386.md: Do not split long moves with mask register,
12380         use kmovb if avx512bw is availible.
12381         (movdi_internal): Handle mask registers.
12383 2014-08-14  Richard Biener  <rguenther@suse.de>
12385         PR tree-optimization/62081
12386         * tree-ssa-loop.c (pass_fix_loops): New pass.
12387         (pass_tree_loop::gate):  Do not fixup loops here.
12388         * tree-pass.h (make_pass_fix_loops): Declare.
12389         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
12391 2014-08-14  Richard Biener  <rguenther@suse.de>
12393         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
12394         (type_hash_canon): ... this and avoid 2nd lookup for the add.
12396 2014-08-14  Richard Biener  <rguenther@suse.de>
12398         PR tree-optimization/62090
12399         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
12400         (fold_builtin_2): Do not fold sprintf.
12401         (fold_builtin_3): Likewise.
12402         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
12403         moved from builtins.c.
12404         (gimple_fold_builtin): Fold sprintf.
12406 2014-08-14  Richard Biener  <rguenther@suse.de>
12408         PR rtl-optimization/62079
12409         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
12410         run cleanup_cfg.
12412 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
12414         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
12415         current_function_decl.
12417 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
12419         * cgraph.c (cgraph_node::function_symbol): Fix wrong
12420         cgraph_function_node to cgraph_node::function_symbol
12421         refactoring.
12423 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12425         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
12426         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
12428 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
12430         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
12431         warning.
12433 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
12435         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
12436         generator.
12438 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
12440         PR target/62025
12441         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
12442         any registers that are used in mem_insn.
12444 2014-08-12  Steve Ellcey  <sellcey@mips.com>
12446         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
12448 2014-08-12  Steve Ellcey  <sellcey@mips.com>
12450         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
12451         (MULTILIB_DIRNAMES): Ditto.
12452         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
12453         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
12454         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
12455         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
12456         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
12457         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
12459 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12461         PR target/61413
12462         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
12463         of __ARM_SIZEOF_WCHAR_T.
12465 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12467         PR target/62098
12468         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
12469         Remove unnecessary attributes.
12471 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
12473         * internal-fn.c (init_internal_fns): Fix off-by-one.
12475 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12476             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12477             Anna Tikhonova  <anna.tikhonova@intel.com>
12478             Ilya Tocar  <ilya.tocar@intel.com>
12479             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12480             Ilya Verbin  <ilya.verbin@intel.com>
12481             Kirill Yukhin  <kirill.yukhin@intel.com>
12482             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12484         * config/i386/i386.c (standard_sse_constant_opcode): Use
12485         vpxord/vpternlog if avx512 is availible.
12487 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12489         PR middle-end/62103
12490         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
12491         bitfields, that is when size doesn't match the size of type or the
12492         size of the constructor.
12494 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12496         * config/rs6000/constraints.md (wh constraint): New constraint,
12497         for FP registers if direct move is available.
12498         (wi constraint): New constraint, for VSX/FP registers that can
12499         handle 64-bit integers.
12500         (wj constraint): New constraint for VSX/FP registers that can
12501         handle 64-bit integers for direct moves.
12502         (wk constraint): New constraint for VSX/FP registers that can
12503         handle 64-bit doubles for direct moves.
12504         (wy constraint): Make documentation match implementation.
12506         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
12507         scalar_in_vmx_p field to simplify tests of whether SFmode or
12508         DFmode can go in the Altivec registers.
12509         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
12510         (rs6000_setup_reg_addr_masks): Likewise.
12511         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
12512         field, and wh/wi/wj/wk constraints.
12513         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
12514         the wh/wi/wj/wk constraints.
12515         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
12516         upper registers, prefer VSX registers unless the operation is a
12517         memory operation with REG+OFFSET addressing.
12519         * config/rs6000/vsx.md (VSr mode attribute): Add support for
12520         DImode.  Change SFmode to use ww constraint instead of d to allow
12521         SF registers in the upper registers.
12522         (VSr2): Likewise.
12523         (VSr3): Likewise.
12524         (VSr5): Fix thinko in comment.
12525         (VSa): New mode attribute that is an alternative to wa, that
12526         returns the VSX register class that a mode can go in, but may not
12527         be the preferred register class.
12528         (VS_64dm): New mode attribute for appropriate register classes for
12529         referencing 64-bit elements of vectors for direct moves and normal
12530         moves.
12531         (VS_64reg): Likewise.
12532         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
12533         register allocator to only registers the data type can handle.
12534         (vsx_le_perm_load_<mode>): Likewise.
12535         (vsx_le_perm_store_<mode>): Likewise.
12536         (vsx_xxpermdi2_le_<mode>): Likewise.
12537         (vsx_xxpermdi4_le_<mode>): Likewise.
12538         (vsx_lxvd2x2_le_<mode>): Likewise.
12539         (vsx_lxvd2x4_le_<mode>): Likewise.
12540         (vsx_stxvd2x2_le_<mode>): Likewise.
12541         (vsx_add<mode>3): Likewise.
12542         (vsx_sub<mode>3): Likewise.
12543         (vsx_mul<mode>3): Likewise.
12544         (vsx_div<mode>3): Likewise.
12545         (vsx_tdiv<mode>3_internal): Likewise.
12546         (vsx_fre<mode>2): Likewise.
12547         (vsx_neg<mode>2): Likewise.
12548         (vsx_abs<mode>2): Likewise.
12549         (vsx_nabs<mode>2): Likewise.
12550         (vsx_smax<mode>3): Likewise.
12551         (vsx_smin<mode>3): Likewise.
12552         (vsx_sqrt<mode>2): Likewise.
12553         (vsx_rsqrte<mode>2): Likewise.
12554         (vsx_tsqrt<mode>2_internal): Likewise.
12555         (vsx_fms<mode>4): Likewise.
12556         (vsx_nfma<mode>4): Likewise.
12557         (vsx_eq<mode>): Likewise.
12558         (vsx_gt<mode>): Likewise.
12559         (vsx_ge<mode>): Likewise.
12560         (vsx_eq<mode>_p): Likewise.
12561         (vsx_gt<mode>_p): Likewise.
12562         (vsx_ge<mode>_p): Likewise.
12563         (vsx_xxsel<mode>): Likewise.
12564         (vsx_xxsel<mode>_uns): Likewise.
12565         (vsx_copysign<mode>3): Likewise.
12566         (vsx_float<VSi><mode>2): Likewise.
12567         (vsx_floatuns<VSi><mode>2): Likewise.
12568         (vsx_fix_trunc<mode><VSi>2): Likewise.
12569         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
12570         (vsx_x<VSv>r<VSs>i): Likewise.
12571         (vsx_x<VSv>r<VSs>ic): Likewise.
12572         (vsx_btrunc<mode>2): Likewise.
12573         (vsx_b2trunc<mode>2): Likewise.
12574         (vsx_floor<mode>2): Likewise.
12575         (vsx_ceil<mode>2): Likewise.
12576         (vsx_<VS_spdp_insn>): Likewise.
12577         (vsx_xscvspdp): Likewise.
12578         (vsx_xvcvspuxds): Likewise.
12579         (vsx_float_fix_<mode>2): Likewise.
12580         (vsx_set_<mode>): Likewise.
12581         (vsx_extract_<mode>_internal1): Likewise.
12582         (vsx_extract_<mode>_internal2): Likewise.
12583         (vsx_extract_<mode>_load): Likewise.
12584         (vsx_extract_<mode>_store): Likewise.
12585         (vsx_splat_<mode>): Likewise.
12586         (vsx_xxspltw_<mode>): Likewise.
12587         (vsx_xxspltw_<mode>_direct): Likewise.
12588         (vsx_xxmrghw_<mode>): Likewise.
12589         (vsx_xxmrglw_<mode>): Likewise.
12590         (vsx_xxsldwi_<mode>): Likewise.
12591         (vsx_xscvdpspn): Tighten constraints to only use register classes
12592         the types use.
12593         (vsx_xscvspdpn): Likewise.
12594         (vsx_xscvdpspn_scalar): Likewise.
12596         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
12597         wj, and wk constraints.
12598         (GPR_REG_CLASS_P): New helper macro for register classes targeting
12599         general purpose registers.
12601         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
12602         direct moves.
12603         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
12604         DImode instead of wm.  Use wk constraint for direct move of DFmode
12605         instead of wm.
12606         (extendsidi2_lfiwax): Likewise.
12607         (lfiwax): Likewise.
12608         (lfiwzx): Likewise.
12609         (movdi_internal64): Likewise.
12611         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
12612         wk constraints. Make the wy constraint documentation match them
12613         implementation.
12615 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
12617         Replacement of isl_int by isl_val
12618         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
12619         (compute_bounds_for_param): use isl_val instead of isl_int
12620         (compute_bounds_for_loop): likewise
12621         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
12622         (build_linearized_memory_access): use isl_val instead of isl_int
12623         (pdr_stride_in_loop): likewise
12624         * graphite-optimize-isl.c:
12625         (getPrevectorMap): use isl_val instead of isl_int
12626         * graphite-poly.c:
12627         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
12628         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
12629         (extern the_isl_ctx): declare
12630         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
12631         (extract_affine_gmp): likewise
12632         (wrap): likewise
12633         (build_loop_iteration_domains): likewise
12634         (add_param_constraints): likewise
12636 2014-08-11  Richard Biener  <rguenther@suse.de>
12638         PR tree-optimization/62075
12639         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
12640         handle uses in patterns.
12642 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12643             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12644             Anna Tikhonova  <anna.tikhonova@intel.com>
12645             Ilya Tocar  <ilya.tocar@intel.com>
12646             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12647             Ilya Verbin  <ilya.verbin@intel.com>
12648             Kirill Yukhin  <kirill.yukhin@intel.com>
12649             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12651         * common/config/i386/i386-common.c
12652         (OPTION_MASK_ISA_AVX512VL_SET): Define.
12653         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
12654         (ix86_handle_option): Handle OPT_mavx512vl.
12655         * config/i386/cpuid.h (bit_AVX512VL): Define.
12656         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
12657         set -mavx512vl accordingly.
12658         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12659         OPTION_MASK_ISA_AVX512VL.
12660         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
12661         (ix86_option_override_internal): Define PTA_AVX512VL, handle
12662         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
12663         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
12664         * config/i386/i386.h (TARGET_AVX512VL): Define.
12665         (TARGET_AVX512VL_P(x)): Ditto.
12666         * config/i386/i386.opt: Add mavx512vl.
12668 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
12670         PR tree-optimization/62073
12671         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
12672         a basic block.
12674 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12675             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12676             Anna Tikhonova  <anna.tikhonova@intel.com>
12677             Ilya Tocar  <ilya.tocar@intel.com>
12678             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12679             Ilya Verbin  <ilya.verbin@intel.com>
12680             Kirill Yukhin  <kirill.yukhin@intel.com>
12681             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12683         * common/config/i386/i386-common.c
12684         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
12685         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
12686         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
12687         (ix86_handle_option): Handle OPT_mavx512bw.
12688         * config/i386/cpuid.h (bit_AVX512BW): Define.
12689         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
12690         set -mavx512bw accordingly.
12691         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12692         OPTION_MASK_ISA_AVX512BW.
12693         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
12694         (ix86_option_override_internal): Define PTA_AVX512BW, handle
12695         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
12696         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
12697         * config/i386/i386.h (TARGET_AVX512BW): Define.
12698         (TARGET_AVX512BW_P(x)): Ditto.
12699         * config/i386/i386.opt: Add mavx512bw.
12701 2014-08-11  Richard Biener  <rguenther@suse.de>
12703         PR tree-optimization/62070
12704         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
12705         Remove SSA checking.
12707 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
12709         * asan.c (asan_check_flags): New enum.
12710         (build_check_stmt_with_calls): Removed function.
12711         (build_check_stmt): Split inlining logic to
12712         asan_expand_check_ifn.
12713         (instrument_derefs): Rename parameter.
12714         (instrument_mem_region_access): Rename parameter.
12715         (instrument_strlen_call): Likewise.
12716         (asan_expand_check_ifn): New function.
12717         (asan_instrument): Remove old code.
12718         (pass_sanopt::execute): Change handling of
12719         asan-instrumentation-with-call-threshold.
12720         (asan_clear_shadow): Fix formatting.
12721         (asan_function_start): Likewise.
12722         (asan_emit_stack_protection): Likewise.
12723         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
12724         Update description.
12725         * internal-fn.c (expand_ASAN_CHECK): New function.
12726         * internal-fn.def (ASAN_CHECK): New internal function.
12727         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
12728         Update description.
12729         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
12730         * tree.c: Small comment fix.
12732 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
12734         * gimple.c (gimple_call_fnspec): Support internal functions.
12735         (gimple_call_return_flags): Use const.
12736         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
12737         * internal-fn.def: Add fnspec information.
12738         * internal-fn.h (internal_fn_fnspec): New function.
12739         (init_internal_fns): Declare new function.
12740         * internal-fn.c (internal_fn_fnspec_array): New global variable.
12741         (init_internal_fns): New function.
12742         * tree-core.h: Update macro call.
12743         * tree.c (build_common_builtin_nodes): Initialize internal fns.
12745 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
12747         * lto-streamer.h (struct output_block::symbol): Change from
12748         struct symtab_node to plain symtab_node.
12749         (referenced_from_this_partition_p): Change first parameter
12750         from struct symtab_node to plain symtab_node.
12752 2014-08-10  Marek Polacek  <polacek@redhat.com>
12754         PR c/51849
12755         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
12757 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
12759         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
12760         DECL correctly; do not give up on types in static storage.
12762 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
12764         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
12766 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
12768         * graphite-isl-ast-to-gimple.c:
12769         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
12771         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
12773 2014-08-08  Guozhi Wei  <carrot@google.com>
12775         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
12777 2014-08-08  Cary Coutant  <ccoutant@google.com>
12779         * dwarf2out.c (get_skeleton_type_unit): Remove.
12780         (output_skeleton_debug_sections): Remove skeleton type units.
12781         (output_comdat_type_unit): Likewise.
12782         (dwarf2out_finish): Likewise.
12784 2014-08-07  Yi Yang  <ahyangyi@google.com>
12786         * predict.c (expr_expected_value_1): Remove the redundant assignment.
12788 2014-08-08  Richard Biener  <rguenther@suse.de>
12790         * lto-streamer.h (struct lto_input_block): Make it a class
12791         with a constructor.
12792         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
12793         (struct lto_function_header, struct lto_simple_header,
12794         struct lto_simple_header_with_strings,
12795         struct lto_decl_header, struct lto_function_header): Make
12796         a simple inheritance hieararchy.  Remove unused fields.
12797         (struct lto_asm_header): Remove.
12798         * lto-streamer-out.c (produce_asm): Adjust.
12799         (lto_output_toplevel_asms): Likewise.
12800         (produce_asm_for_decls): Likewise.
12801         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
12802         * data-streamer-in.c (string_for_index): Likewise.
12803         * ipa-inline-analysis.c (inline_read_section): Likewise.
12804         * ipa-prop.c (ipa_prop_read_section): Likewise.
12805         (read_replacements_section): Likewise.
12806         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
12807         * lto-section-in.c (lto_create_simple_input_block): Likewise.
12808         (lto_destroy_simple_input_block): Likewise.
12809         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
12810         (lto_input_toplevel_asms): Likewise.
12812 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12813             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12814             Anna Tikhonova  <anna.tikhonova@intel.com>
12815             Ilya Tocar  <ilya.tocar@intel.com>
12816             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12817             Ilya Verbin  <ilya.verbin@intel.com>
12818             Kirill Yukhin  <kirill.yukhin@intel.com>
12819             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12821         * common/config/i386/i386-common.c
12822         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
12823         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
12824         (ix86_handle_option): Handle OPT_mavx512dq.
12825         * config/i386/cpuid.h (bit_AVX512DQ): Define.
12826         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
12827         set -mavx512dq accordingly.
12828         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12829         OPTION_MASK_ISA_AVX512DQ.
12830         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
12831         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
12832         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
12833         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
12834         * config/i386/i386.h (TARGET_AVX512DQ): Define.
12835         (TARGET_AVX512DQ_P(x)): Ditto.
12836         * config/i386/i386.opt: Add mavx512dq.
12838 2014-08-08  Richard Biener  <rguenther@suse.de>
12840         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
12841         target_percent, target_percent_s): Export.
12842         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
12843         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
12844         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
12845         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
12846         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
12847         Move to gimple-fold.c.
12848         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
12849         strcat and strcpy.
12850         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
12851         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
12852         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
12853         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
12854         (rewrite_call_expr_array): Remove.
12855         (fold_builtin_sprintf_chk): Likewise.
12856         (fold_builtin_snprintf_chk): Likewise.
12857         (fold_builtin_varargs): Remove handling of sprintf_chk,
12858         vsprintf_chk, snprintf_chk and vsnprintf_chk.
12859         (gimple_fold_builtin_sprintf_chk): Remove.
12860         (gimple_fold_builtin_snprintf_chk): Likewise.
12861         (gimple_fold_builtin_varargs): Likewise.
12862         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
12863         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
12864         * gimple.c (gimple_seq_add_seq_without_update): New function.
12865         * gimple.h (gimple_seq_add_seq_without_update): Declare.
12866         * gimple-fold.c: Include output.h.
12867         (gsi_replace_with_seq_vops): New function, split out from ...
12868         (gimplify_and_update_call_from_tree): ... here.
12869         (replace_call_with_value): New function.
12870         (replace_call_with_call_and_fold): Likewise.
12871         (var_decl_component_p): Moved from builtins.c.
12872         (gimple_fold_builtin_memory_op): Moved from builtins.c
12873         fold_builtin_memory_op and rewritten to GIMPLE.
12874         (gimple_fold_builtin_memset): Likewise.
12875         (gimple_fold_builtin_strcpy): Likewise.
12876         (gimple_fold_builtin_strncpy): Likewise.
12877         (gimple_fold_builtin_strcat): Likewise.
12878         (gimple_fold_builtin_fputs): Likewise.
12879         (gimple_fold_builtin_memory_chk): Likewise.
12880         (gimple_fold_builtin_stxcpy_chk): Likewise.
12881         (gimple_fold_builtin_stxncpy_chk): Likewise.
12882         (gimple_fold_builtin_snprintf_chk): Likewise.
12883         (gimple_fold_builtin_sprintf_chk): Likewise.
12884         (gimple_fold_builtin_strlen): New function.
12885         (gimple_fold_builtin_with_strlen): New function split out from
12886         gimple_fold_builtin.
12887         (gimple_fold_builtin): Change signature and handle
12888         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
12889         here.  Call gimple_fold_builtin_with_strlen.
12890         (gimple_fold_call): Adjust.
12892 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
12894         * calls.c (precompute_arguments): Check
12895          promoted_for_signed_and_unsigned_p and set the promoted mode.
12896         (promoted_for_signed_and_unsigned_p): New function.
12897         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
12898         and set the promoted mode.
12899         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
12900         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
12901         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
12904 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
12906         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
12907         instead of SUBREG_PROMOTED_UNSIGNED_SET.
12908         (expand_call): Likewise.
12909         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
12910         to get promoted mode.
12911         * combine.c (record_promoted_value): Skip > 0 comparison with
12912         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
12913         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
12914         of SUBREG_PROMOTED_UNSIGNED_P.
12915         (convert_modes): Likewise.
12916         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
12917         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
12918         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
12919         SUBREG_PROMOTED_UNSIGNED_SET.
12920         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
12921         instead of SUBREG_PROMOTED_UNSIGNED_SET.
12922         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
12923         SUBREG_PROMOTED_SET.
12924         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
12925         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
12926         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
12927         of SUBREG_PROMOTED_UNSIGNED_P.
12928         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
12929         (SUBREG_PROMOTED_SET): New define.
12930         (SUBREG_PROMOTED_GET): Likewise.
12931         (SUBREG_PROMOTED_SIGN): Likewise.
12932         (SUBREG_PROMOTED_SIGNED_P): Likewise.
12933         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
12934         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
12935         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
12936         instead of SUBREG_PROMOTED_UNSIGNED_GET.
12937         (nonzero_bits1): Skip > 0 comparison with the results as
12938         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
12939         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
12940         of !SUBREG_PROMOTED_UNSIGNED_P.
12941         * simplify-rtx.c (simplify_unary_operation_1): Use new
12942         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
12943         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
12944         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
12945         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
12947 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
12949         * ipa-devirt.c: Include gimple-pretty-print.h
12950         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
12951         further tests.
12952         (decl_maybe_in_construction_p): Fix conditional on cdtor check
12953         (get_polymorphic_call_info): Fix return value
12954         (type_change_info): New sturcture based on ipa-prop
12955         variant.
12956         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
12957         based on ipa-prop variant.
12958         (extr_type_from_vtbl_ptr_store): New function
12959         based on ipa-prop variant.
12960         (record_known_type): New function.
12961         (check_stmt_for_type_change): New function.
12962         (get_dynamic_type): New function.
12963         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
12964         * tree-ssa-pre.c: ipa-utils.h
12965         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
12966         machinery; sanity check with ipa-prop devirtualization.
12967         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
12968         polymorphic flag.
12970 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
12972         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
12973         * alias.c, cfgexpand.c, cgraphbuild.c,
12974         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
12975         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
12976         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
12977         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
12978         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
12979         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
12980         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
12981         dse.c, except.c, gengtype.c, gimple-expr.c,
12982         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
12983         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
12984         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
12985         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
12986         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
12987         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
12988         pointer-set.h.
12989         * pointer-set.c: Remove file.
12990         * pointer-set.h: Remove file.
12992 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12994         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
12995         * config/arm/types.md (f_sels, f_seld): Delete.
12997 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12999         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
13000         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
13001         (aarch64_movdi_<mode>high): Likewise.
13002         (aarch64_mov<mode>high_di): Likewise.
13003         (aarch64_movdi_<mode>low): Likewise.
13004         (aarch64_mov<mode>low_di): Likewise.
13005         (aarch64_movtilow_tilow): Likewise.
13006         Add comment explaining usage of fp,simd attributes and of
13007         TARGET_FLOAT and TARGET_SIMD.
13009 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
13010             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13012         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
13013         Use MOVN when one of the half-words is 0xffff.
13015 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
13017         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
13019 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13021         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
13022         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
13023         (rfs_str): String corresponding to RFS_* constants.
13024         (rank_for_schedule_stats_t): New typedef.
13025         (rank_for_schedule_stats): New static variable.
13026         (rfs_result): New static function.
13027         (rank_for_schedule): Track statistics for deciding heuristics.
13028         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
13029         static functions.
13030         (ready_sort): Use them for debug printouts.
13031         (schedule_block): Init statistics state.  Print statistics on
13032         rank_for_schedule decisions.
13034 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13036         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
13038 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
13040         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
13041         constraint.
13043 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
13045         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
13046         function to not conflict.
13047         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
13048         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
13049         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
13050         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
13051         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
13052         of pointer_map.
13054 2014-08-07  Marek Polacek  <polacek@redhat.com>
13056         * fold-const.c (fold_binary_loc): Add folding of
13057         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
13059 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
13061         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
13062         instead of type size.
13063         (ASM_FINISH_DECLARE_OBJECT): Likewise.
13065 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
13067         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
13068         (*thumb1_movqi_insn): Likewise.
13069         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
13071 2014-08-07  Tom de Vries  <tom@codesourcery.com>
13073         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13074         (glibc_2_11_or_earlier): Remove effective-target keywords.
13076 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
13078         * config/arm/arm.c (bdesc_2arg): Fix typo.
13079         (arm_atomic_assign_expand_fenv): Remove The default implementation.
13081 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
13083         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
13085 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
13087         PR debug/61923
13088         * haifa-sched.c (advance_one_cycle): Fix dump.
13089         (schedule_block): Don't advance cycle if we are already at the
13090         beginning of the cycle.
13092 2014-08-06  Martin Jambor  <mjambor@suse.cz>
13094         PR ipa/61393
13095         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
13097 2014-08-06  Richard Biener  <rguenther@suse.de>
13099         PR lto/62034
13100         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
13101         SCCs here.
13102         (lto_input_tree): Pop SCCs here.
13104 2014-08-06  Richard Biener  <rguenther@suse.de>
13106         PR tree-optimization/61320
13107         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
13108         handle misaligned loads.
13110 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
13112         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
13113         (aarch64_expand_vec_perm_const): Check for dup before zip.
13115 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13117         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
13118         CONST_INT_P instead of GET_CODE and compare.
13119         (aarch64_select_cc_mode): Likewise.
13120         (aarch64_print_operand): Likewise.
13121         (aarch64_rtx_costs): Likewise.
13122         (aarch64_simd_valid_immediate): Likewise.
13123         (aarch64_simd_check_vect_par_cnst_half): Likewise.
13124         (aarch64_simd_emit_pair_result_insn): Likewise.
13126 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
13128         * gdbhooks.py (find_gcc_source_dir): New helper function.
13129         (class PassNames): New class, locating and parsing passes.def.
13130         (class BreakOnPass): New command "break-on-pass".
13132 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
13134         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
13135         getting olde.
13137 2014-08-05  Richard Biener  <rguenther@suse.de>
13139         PR rtl-optimization/61672
13140         * emit-rtl.h (mem_attrs_eq_p): Declare.
13141         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
13142         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
13143         * cfgcleanup.c (merge_memattrs): Likewise.
13144         Include emit-rtl.h.
13146 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13148         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
13149         rather than singleton vectors.
13150         (vqdmlsls_lane_s32): Likewise.
13152 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13154         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
13155         Use VSDQ_HSI mode iterator.
13156         (aarch64_sqrdmulh_laneq<mode>): Likewise.
13157         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
13158         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
13159         Use BUILTIN_VDQHS macro.
13160         (sqrdmulh_laneq): Likewise.
13161         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
13162         (vqdmlals_laneq_s32): Likewise.
13163         (vqdmlslh_laneq_s16): Likewise.
13164         (vqdmlsls_laneq_s32): Likewise.
13165         (vqdmulhh_laneq_s16): Likewise.
13166         (vqdmulhs_laneq_s32): Likewise.
13167         (vqrdmulhh_laneq_s16): Likewise.
13168         (vqrdmulhs_laneq_s32): Likewise.
13170 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13172         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
13173         (vmuld_laneq_f64): Likewise.
13174         (vmuls_laneq_f32): Likewise.
13175         (vmul_n_f64): Likewise.
13176         (vmuld_lane_f64): Reimplement in C.
13177         (vmuls_lane_f32): Likewise.
13179 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13181         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
13182         to reservation.
13183         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
13185 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13187         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
13188         (rbitsi2): Likewise.
13189         (*arm_rev): Set predicable and predicable_short_it attributes.
13191 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13193         * convert.c (convert_to_integer): Guard transformation to lrint by
13194         -fno-math-errno.
13196 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
13198         * config/aarch64/aarch64-builtins.c
13199         (aarch64_simd_builtin_type_mode): Delete.
13200         (v8qi_UP): Remap to V8QImode.
13201         (v4hi_UP): Remap to V4HImode.
13202         (v2si_UP): Remap to V2SImode.
13203         (v2sf_UP): Remap to V2SFmode.
13204         (v1df_UP): Remap to V1DFmode.
13205         (di_UP): Remap to DImode.
13206         (df_UP): Remap to DFmode.
13207         (v16qi_UP):V16QImode.
13208         (v8hi_UP): Remap to V8HImode.
13209         (v4si_UP): Remap to V4SImode.
13210         (v4sf_UP): Remap to V4SFmode.
13211         (v2di_UP): Remap to V2DImode.
13212         (v2df_UP): Remap to V2DFmode.
13213         (ti_UP): Remap to TImode.
13214         (ei_UP): Remap to EImode.
13215         (oi_UP): Remap to OImode.
13216         (ci_UP): Map to CImode.
13217         (xi_UP): Remap to XImode.
13218         (si_UP): Remap to SImode.
13219         (sf_UP): Remap to SFmode.
13220         (hi_UP): Remap to HImode.
13221         (qi_UP): Remap to QImode.
13222         (aarch64_simd_builtin_datum): Make mode a machine_mode.
13223         (VAR1): Build builtin name.
13224         (aarch64_init_simd_builtins): Remove dead code.
13226 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
13228         * graphite-isl-ast-to-gimple.c:
13229         (set_options): New function.
13230         (scop_to_isl_ast): Add calling of set_options.
13232 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
13234         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
13235         (analyze_iv_to_split_insn): Don't initialize them.
13236         (get_ivts_expr): Removed.
13237         (allocate_basic_variable, insert_base_initialization): Use
13238         SET_SRC instead of *get_ivts_expr.
13239         (split_iv): Use &SET_SRC instead of get_ivts_expr.
13241 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
13243         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
13244         (translate_isl_ast_for_loop): Add checking of the
13245         flag_loop_parallelize_all.
13246         (ast_build_before_for): New function.
13247         (scop_to_isl_ast): Add checking of the
13248         flag_loop_parallelize_all.
13249         * graphite-dependences.c: Move the defenition of the
13250         scop_get_dependences from graphite-optimize-isl.c to this file.
13251         (apply_schedule_on_deps): Add checking of the ux's emptiness.
13252         (carries_deps): Add checking of the x's value.
13253         * graphite-optimize-isl.c: Move the defenition of the
13254         scop_get_dependences to graphite-dependences.c.
13255         * graphite-poly.h: Add declarations of scop_get_dependences
13256         and carries_deps.
13258 2014-08-04  Rohit  <rohitarulraj@freescale.com>
13260         PR target/60102
13261         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
13262         names.
13263         (alt_reg_names): Likewise.
13264         (rs6000_dwarf_register_span): For SPE high registers, replace
13265         dwarf register numbers with GCC hard register numbers.
13266         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
13267         (rs6000_dbx_register_number): For SPE high registers, return dwarf
13268         register number for the corresponding GCC hard register number.
13269         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
13270         newly added GCC hard register numbers for SPE high registers.
13271         (DWARF_FRAME_REGISTERS):  Likewise.
13272         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
13273         (DWARF_FRAME_REGNUM): Likewise.
13274         (FIXED_REGISTERS): Likewise.
13275         (CALL_USED_REGISTERS): Likewise.
13276         (CALL_REALLY_USED_REGISTERS): Likewise.
13277         (REG_ALLOC_ORDER): Likewise.
13278         (enum reg_class): Likewise.
13279         (REG_CLASS_NAMES): Likewise.
13280         (REG_CLASS_CONTENTS): Likewise.
13281         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
13283 2014-08-04  Richard Biener  <rguenther@suse.de>
13285         * gimple-fold.h (gimple_fold_builtin): Remove.
13286         * gimple-fold.c (gimple_fold_builtin): Make static.
13287         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
13288         fold_stmt, not gimple_fold_builtin.
13290 2014-08-04  Martin Liska <mliska@suse.cz>
13292         * cgraph.h (csi_end_p): Removed.
13293         (csi_next): Likewise.
13294         (csi_node): Likewise.
13295         (csi_start): Likewise.
13296         (cgraph_node_in_set_p): Likewise.
13297         (cgraph_node_set_size): Likewise.
13298         (vsi_end_p): Likewise.
13299         (vsi_next): Likewise.
13300         (vsi_node): Likewise.
13301         (vsi_start): Likewise.
13302         (varpool_node_set_size): Likewise.
13303         (cgraph_node_set_nonempty_p): Likewise.
13304         (varpool_node_set_nonempty_p): Likewise.
13305         * cgraphunit.c (cgraph_process_new_functions): vec replaces
13306         cgraph_node_set.
13307         * ipa-inline-transform.c: Likewise.
13308         * ipa-utils.c (cgraph_node_set_new): Removed.
13309         (cgraph_node_set_add): Likewise.
13310         (cgraph_node_set_remove): Likewise.
13311         (cgraph_node_set_find): Likewise.
13312         (dump_cgraph_node_set): Likewise.
13313         (debug_cgraph_node_set): Likewise.
13314         (free_cgraph_node_set): Likewise.
13315         (varpool_node_set_new): Likewise.
13316         (varpool_node_set_add): Likewise.
13317         (varpool_node_set_remove): Likewise.
13318         (varpool_node_set_find): Likewise.
13319         (dump_varpool_node_set): Likewise.
13320         (free_varpool_node_set): Likewise.
13321         (debug_varpool_node_set): Likewise.
13322         * tree-emutls.c (struct tls_var_data):
13323         (emutls_index): Removed.
13324         (emutls_decl): Likewise.
13325         (gen_emutls_addr): Function implementation uses newly added
13326         hash_map<varpool_node *, tls_var_data>.
13327         (clear_access_vars): Likewise.
13328         (create_emultls_var): Likewise.
13329         (ipa_lower_emutls): Likewise.
13330         (reset_access): New function.
13332 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
13334         * config/i386/i386.c (ix86_option_override_internal): Add
13335         PTA_RDRND and PTA_MOVBE for bdver4.
13337 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13338             James Greenhalgh  <james.greenhalgh@arm.com>
13340         * doc/md.texi (clrsb): Document.
13341         (clz): Change reference to x into operand 1.
13342         (ctz): Likewise.
13343         (popcount): Likewise.
13345 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13347         PR target/61713
13348         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
13349         move to subtarget in serial version if result is ignored.
13351 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13352             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13354         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
13355         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
13356         (sched_analyze_insn): Update use of try_group_insn to
13357         sched_macro_fuse_insns.
13358         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
13359         arguments that are not conditional jumps.
13361 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
13363         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
13364         family information. Handle BTVER2 cpu with cpuid family value.
13366 2014-08-04  Tom de Vries  <tom@codesourcery.com>
13368         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
13369         (glibc_2_11_or_earlier): Document effective-target keywords.
13371 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
13373         * ipa-devirt.c (odr_type_warn_count): Add type.
13374         (possible_polymorphic_call_targets): Set it.
13375         (ipa_devirt): Use it.
13377 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
13379         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
13380         Document.
13381         * ipa-devirt.c: Include hash-map.h
13382         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
13383         (clear_speculation): Break out of ...
13384         (get_class_context): ... here; speed up handling obviously useless
13385         speculations.
13386         (odr_type_warn_count, decl_warn_count): New structures.
13387         (final_warning_record): New structure.
13388         (final_warning_records): New static variable.
13389         (possible_polymorphic_call_targets): Cleanup handling of
13390         speculative info; do not build speculation when user do not care;
13391         record info about warnings when asked for.
13392         (add_decl_warning): New function.
13393         (type_warning_cmp): New function.
13394         (decl_warning_cmp): New function.
13395         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
13396         (gate): Enable pass when warnings are requested.
13397         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
13398         options.
13400 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
13402         * hash-map.h (default_hashmap_traits::mark_key_deleted):
13403         Fix cast.
13404         (hash_map::remove): New method.
13405         (hash_map::traverse): New method.
13406         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
13407         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
13408         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
13409         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
13410         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
13411         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
13412         pointer_map.
13414 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
13416         * hash-set.h: new File.
13417         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
13418         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
13419         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
13420         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
13421         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
13422         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
13423         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
13424         varpool.c: Use hash_set instead of pointer_set.
13426 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
13428         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
13430 2014-08-01  Jiong Wang <jiong.wang@arm.com>
13432         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
13433         for frame access when strict_p is false.
13435 2014-08-01  Renlin Li <renlin.li@arm.com>
13436 2014-08-01  Jiong Wang <jiong.wang@arm.com>
13438         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
13439         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
13440         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
13441         Declaration.
13442         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
13443         predicate.
13444         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
13445         aarch64_mem_pair_offset.
13447 2014-08-01  Jiong Wang <jiong.wang@arm.com>
13449         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
13450         offset.
13451         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
13452         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
13454 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
13456         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
13458 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
13460         PR regression/61510
13461         * cgraphunit.c (analyze_functions): Use get_create rather than get
13462         for decls which are clones of abstract functions.
13464 2014-08-01  Martin Liska  <mliska@suse.cz>
13466         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
13467         * ipa-prop.h (count_formal_params): Global function created from static.
13468         * ipa-prop.c (count_formal_params): Likewise.
13469         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
13470         profiles for semantically equivalent functions.
13471         * passes.c (do_per_function): If we load body of a function
13472         during WPA, this condition should behave same.
13473         * varpool.c (ctor_for_folding): More tolerant assert for variable
13474         aliases created during WPA.
13476 2014-08-01  Martin Liska  <mliska@suse.cz>
13478         * doc/invoke.texi (Options That Control Optimization): Documentation
13479         for -foptimize-strlen introduced. Optimization levels default options
13480         fixed.
13482 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
13484         * opts.c (common_handle_option): Handle -fsanitize=alignment.
13485         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
13486         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
13487         type to bool.
13488         * stor-layout.h (min_align_of_type): New prototype.
13489         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
13490         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
13491         check.
13492         * ubsan.c: Include builtins.h.
13493         (ubsan_expand_bounds_ifn): Change return type to bool,
13494         always return true.
13495         (ubsan_expand_null_ifn): Change return type to bool, change
13496         argument to gimple_stmt_iterator *.  Handle both null and alignment
13497         sanitization, take type from ckind argument's type rather than
13498         first argument.
13499         (instrument_member_call): Removed.
13500         (instrument_mem_ref): Remove t argument, add mem and base arguments.
13501         Handle both null and alignment sanitization, don't say whole
13502         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
13503         call instead of 2 argument.
13504         (instrument_null): Adjust instrument_mem_ref caller.  Don't
13505         instrument calls here.
13506         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
13507         like SANITIZE_NULL.
13508         * stor-layout.c (min_align_of_type): New function.
13509         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
13510         Or it into SANITIZE_UNDEFINED.
13511         * doc/invoke.texi (-fsanitize=alignment): Document.
13513 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13515         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
13517 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13519         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
13520         inchash.
13521         (vn_reference_compute_hash): Dito.
13522         (vn_nary_op_compute_hash): Dito.
13523         (vn_phi_compute_hash): Dito.
13524         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
13526 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13528         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
13529         Rename to inchash:add_expr_commutative. Convert to inchash.
13530         (iterative_hash_hashable_expr): Rename to
13531         inchash:add_hashable_expr. Convert to inchash.
13532         (avail_expr_hash): Dito.
13534 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13536         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
13537         Convert to inchash.
13539 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13541         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
13543 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13545         * Makefile.in (OBJS): Add rtlhash.o
13546         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
13547         (loc_checksum): Dito.
13548         (loc_checksum_ordered): Dito.
13549         (hash_loc_operands): Dito.
13550         (hash_locs): Dito.
13551         (hash_loc_list): Dito.
13552         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
13553         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
13554         * rtlhash.c: New file.
13555         * rtlhash.h: New file.
13557 2014-07-31  Andi Kleen  <ak@linux.intel.com>
13559         * inchash.h (inchash): Change inchash class to namespace.
13560         (class hash): ... Rename from inchash.
13561         (add_object): Move from macro to class template.
13562         * lto-streamer-out.c (hash_tree): Change inchash
13563         to inchash::hash.
13564         * tree.c (build_type_attribute_qual_variant): Dito.
13565         (type_hash_list): Dito.
13566         (attribute_hash_list): Dito.
13567         (iterative_hstate_expr): Rename to inchash::add_expr
13568         (build_range_type_1): Change inchash to inchash::hash
13569         and use hash::add_expr.
13570         (build_array_type_1): Dito.
13571         (build_function_type): Dito
13572         (build_method_type_directly): Dito.
13573         (build_offset_type): Dito.
13574         (build_complex_type): Dito.
13575         (make_vector_type): Dito.
13576         * tree.h (iterative_hash_expr): Dito.
13578 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
13580         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
13582 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
13584         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
13585         correct alphabetical position.
13586         (vpaddd_f64): Rewrite using builtins.
13587         (vpaddd_s64): Move to correct alphabetical position.
13588         (vpaddd_u64): New.
13590 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
13592         PR target/61844
13593         * config/sh/sh.c (sh_legitimate_address_p,
13594         sh_legitimize_reload_address): Handle reg+reg address modes when
13595         ALLOW_INDEXED_ADDRESS is false.
13596         * config/sh/predicates.md (general_movsrc_operand,
13597         general_movdst_operand): Likewise.
13599 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
13601         * config/aarch64/aarch64-builtins.c
13602         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
13603         BYTES_BIG_ENDIAN.
13605 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
13607         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
13608         the generated mask based on BYTES_BIG_ENDIAN.
13609         (aarch64_simd_check_vect_par_cnst_half): New.
13610         * config/aarch64/aarch64-protos.h
13611         (aarch64_simd_check_vect_par_cnst_half): New.
13612         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
13613         the check out to aarch64_simd_check_vect_par_cnst_half.
13614         (vect_par_cnst_lo_half): Likewise.
13615         * config/aarch64/aarch64-simd.md
13616         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
13617         (move_hi_quad_<mode>): Always generate a low mask.
13619 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13621         * doc/invoke.texi (AVR Options): Add documentation about
13622         __AVR_DEVICE_NAME__ built-in macro.
13624 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
13626         PR target/61948
13627         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
13628         constraints are satisfied.
13629         (<shift>di3_neon): Likewise.
13631 2014-07-31  Richard Biener  <rguenther@suse.de>
13633         PR tree-optimization/61964
13634         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
13635         by structural equality.
13637 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
13639         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
13640         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
13641         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
13642         New enums.
13643         * gcc.c (sanitize_spec_function): Support new option.
13644         (SANITIZER_SPEC): Remove now redundant check.
13645         * opts.c (common_handle_option): Support new option.
13646         (finish_options): Check for incompatibilities.
13647         * toplev.c (process_options): Split userspace-specific checks.
13649 2014-07-31  Richard Biener  <rguenther@suse.de>
13651         * lto-streamer.h (struct output_block): Remove global.
13652         (struct data_in): Remove labels, num_named_labels and
13653         num_unnamed_labels.
13654         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
13655         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
13657 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
13659         PR c++/60517
13660         * common.opt (-Wreturn-local-addr): Moved from c.opt.
13661         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
13662         (isolate_path): New argument to avoid inserting a trap.
13663         (find_implicit_erroneous_behaviour): Handle returning the address
13664         of a local variable.
13665         (find_explicit_erroneous_behaviour): Likewise.
13667 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
13669         PR lto/61868
13670         * toplev.c (init_random_seed): Move piece of code never called to
13671         set_random_seed.
13672         (set_random_seed): see above.
13674 2014-07-31  Tom de Vries  <tom@codesourcery.com>
13676         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
13678 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
13680         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
13681         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
13683 2014-07-31  Richard Biener  <rguenther@suse.de>
13685         * data-streamer.h (streamer_write_data_stream): Declare here,
13686         renamed from ...
13687         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
13688         * lto-cgraph.c (lto_output_node): Adjust.
13689         (lto_output_varpool_node): Likewise.
13690         * data-streamer-out.c (streamer_string_index): Likewise.
13691         (streamer_write_data_stream, lto_append_block): Move from ...
13692         * lto-section-out.c (lto_output_data_stream,
13693         lto_append_block): ... here.
13695 2014-07-30  Mike Stump  <mikestump@comcast.net>
13697         * configure.ac: Also check for popen.
13698         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
13699         * configure: Regenerate.
13700         * config.in:  Regenerate.
13702 2014-07-30  Martin Jambor  <mjambor@suse.cz>
13704         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
13705         parameter to gimple.
13707 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13709         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
13710         address as second parameter to __tpf_eh_return routine.
13712 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
13714         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
13715         Thumb2.
13717 2014-07-30  Tom Tromey  <tromey@redhat.com>
13719         PR c/59855
13720         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
13721         * doc/extend.texi (Type Attributes): Document designated_init
13722         attribute.
13724 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
13726         * graphite-isl-ast-to-gimple.c:
13727         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
13728         (gcc_expression_from_isl_expression): Pass type to
13729         gcc_expression_from_isl_ast_expr_id.
13731 2014-07-30  Richard Biener  <rguenther@suse.de>
13733         * lto-streamer.h (lto_write_data): New function.
13734         * langhooks.c (lhd_append_data): Do not free block.
13735         * lto-section-out.c (lto_write_data): New function writing
13736         raw data to the current section.
13737         (lto_write_stream): Adjust for langhook semantic change.
13738         (lto_destroy_simple_output_block): Write header directly.
13739         * lto-opts.c (lto_write_options): Write options directly.
13740         * lto-streamer-out.c (produce_asm): Write heaeder directly.
13741         (lto_output_toplevel_asms): Likewise.
13742         (copy_function_or_variable): Copy data directly.
13743         (write_global_references): Output index table directly.
13744         (lto_output_decl_state_refs): Likewise.
13745         (write_symbol): Write data directly.
13746         (produce_symtab): Adjust.
13747         (produce_asm_for_decls): Output header and refs directly.
13749 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
13751         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
13752         to speculative_targets
13753         (get_class_context): Fix handling of contextes without outer type;
13754         avoid matching non-polymorphic types in LTO.
13755         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
13756         parameter to speculative_targetsp; handle speculation.
13757         (dump_possible_polymorphic_call_targets): Update dumping.
13759 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
13761         * common.opt (Wodr): Enable by default.
13763 2014-07-29  Olivier Hainque  <hainque@adacore.com>
13765         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
13767 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
13769         PR bootstrap/61914
13770         * gengtype.c (strtoken): New function.
13771         (create_user_defined_type): Replace strtok with strtoken.
13773 2014-07-29  Nathan Sidwell  <nathan@acm.org>
13775         * gcov-io.c (gcov_var): Make hidden.
13776         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
13777         (gcov_do_dump): Declare.
13778         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
13780 2014-07-29  Martin Jambor  <mjambor@suse.cz>
13782         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
13783         parameter to gimple.
13784         (sra_modify_assign): Likewise.
13786 2014-07-29  Richard Biener  <rguenther@suse.de>
13788         PR middle-end/52478
13789         * expr.c (expand_expr_real_2): Revert last change.
13791 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
13793         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
13794         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
13795         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
13796         call.
13797         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
13798         (contains_type_p): Forward declare.
13799         (polymorphic_call_target_hasher::hash): Hash speculative info.
13800         (polymorphic_call_target_hasher::equal): Compare speculative info.
13801         (get_class_context): Handle speuclation.
13802         (contains_type_p): Update.
13803         (get_polymorphic_call_info_for_decl): Update.
13804         (walk_ssa_copies): Break out from ...
13805         (get_polymorphic_call_info): ... here; set speculative context
13806         before giving up.
13807         * ipa-prop.c (ipa_write_indirect_edge_info,
13808         ipa_read_indirect_edge_info): Stream speculative context.
13809         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
13810         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
13811         SPECULATIVE_MAYBE_DERIVED_TYPE).
13812         (possible_polymorphic_call_targets overriders): Update.
13813         (dump_possible_polymorphic_call_targets overriders): Update.
13814         (dump_possible_polymorphic_call_target_p overriders): Update.
13816 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
13818         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
13819         ipa-devirt path; fix thinko there.
13821 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
13823         * config/i386/i386.c (ix86_return_in_memory): Replace one
13824         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
13826 2014-07-28  Marek Polacek  <polacek@redhat.com>
13828         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
13830 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
13832         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
13833         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
13834         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
13835         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
13836         (USE_LD_AS_NEEDED): Likewise.
13837         (ASM_APP_ON): Likewise.
13838         (ASM_APP_OFF): Likewise.
13839         (TARGET_POSIX_IO): Likewise.
13840         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
13841         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
13842         (USE_LD_AS_NEEDED): Likewise.
13843         (ASM_APP_ON): Likewise.
13844         (ASM_APP_OFF): Likewise.
13845         (TARGET_POSIX_IO): Likewise.
13847 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
13849         PR middle-end/61734
13850         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
13851         operators other than the equality operators.
13853 2014-07-28  Richard Biener  <rguenther@suse.de>
13855         PR middle-end/52478
13856         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
13857         sure to register SImode ones, not only >= word_mode ones.
13858         * expr.c (expand_expr_real_2): When expanding -ftrapv
13859         binops do not use OPTAB_LIB_WIDEN.
13861 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
13863         PR middle-end/61919
13864         * tree-outof-ssa.c (insert_partition_copy_on_edge)
13865         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
13866         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
13867         inserting them in the insn stream.
13869 2014-07-28  Marek Polacek  <polacek@redhat.com>
13871         PR middle-end/61913
13872         * common.opt (Wodr): Add Var.
13874 2014-07-28  Richard Biener  <rguenther@suse.de>
13876         PR tree-optimization/61921
13877         * tree-ssa-structalias.c (create_variable_info_for_1): Check
13878         if there is a varpool node before dereferencing it.
13880 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
13882         * graphite-sese-to-poly.c:
13883         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
13884         id of the pbb), which contains pointer to the pbb1.
13886         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
13888 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
13890         * graphite-isl-ast-to-gimple.c:
13891         (graphite_create_new_guard): New function.
13892         (translate_isl_ast_node_if): New function.
13893         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
13895         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
13897 2014-07-27  Anthony Green  <green@moxielogic.com>
13899         * config.gcc: Add moxie-*-moxiebox* configuration.
13900         * config/moxie/moxiebox.h: New file.
13902 2014-07-26  Andrew Pinski  <apinski@cavium.com>
13904         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
13905         from the read only register.
13907 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
13909         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
13910         as the allocation class if it isn't likely to be spilled.
13912 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
13914         * rtl.h (tls_referenced_p): Declare.
13915         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
13916         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
13917         (mips_cannot_force_const_mem): Use tls_referenced_p.
13918         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
13919         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
13920         instead of pa_tls_referenced_p.
13921         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
13922         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
13923         (pa_legitimate_constant_p): Likewise.
13924         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
13925         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
13926         (rs6000_cannot_force_const_mem, rs6000_emit_move)
13927         (rs6000_address_for_altivec): Use tls_referenced_p instead of
13928         rs6000_tls_referenced_p.
13929         (rs6000_tls_symbol_ref_1): Delete.
13931 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
13933         PR target/44551
13934         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
13935         Optimize inverse of a VEC_CONCAT.
13937 2014-07-25  Xinliang David Li  <davidxl@google.com>
13939         * params.def: New parameter.
13940         * coverage.c (get_coverage_counts): Check new flag.
13941         (coverage_compute_profile_id): Check new flag.
13942         (coverage_begin_function): Check new flag.
13943         (coverage_end_function): Check new flag.
13944         * value-prof.c (coverage_node_map_initialized_p): New function.
13945         (init_node_map): Populate map with all functions.
13946         * doc/invoke.texi: Document new parameter.
13948 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
13949             Richard Biener <rguenther@suse.de>
13951         * lto-streamer-out.c (struct sccs): Turn to ...
13952         (class DFS): ... this one; refactor the DFS walk so it can
13953         be re-done on per-SCC basis.
13954         (DFS::DFS): New constructor.
13955         (DFS::~DFS): New destructor.
13956         (hash_tree): Add new MAP argument holding in-SCC hash values;
13957         remove POINTER_TYPE hashing hack.
13958         (scc_entry_compare): Rename to ...
13959         (DFS::scc_entry_compare): ... this one.
13960         (hash_scc): Rename to ...
13961         (DFS::hash_scc): ... this one; pass output_block instead
13962         of streamer_cache; work harder to get unique and stable SCC
13963         hashes.
13964         (DFS_write_tree): Rename to ...
13965         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
13966         (lto_output_tree): Update.
13968 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13970         * lto-streamer-out.c (hash_tree): Convert to inchash.
13972 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13974         * tree.c (build_type_attribute_qual_variant): Use inchash.
13975         (type_hash_list): Dito.
13976         (attribute_hash_list): Dito
13977         (iterative_hstate_expr): Dito.
13978         (iterative_hash_expr): Dito.
13979         (build_range_type_1): Dito.
13980         (build_array_type_1): Dito.
13981         (build_function_type): Dito.
13982         (build_method_type_directly): Dito.
13983         (build_offset_type): Dito.
13984         (build_complex_type): Dito.
13985         (make_vector_type): Dito.
13986         * tree.h (iterative_hash_expr): Add compat wrapper.
13987         (iterative_hstate_expr): Add.
13989 2014-07-25  Andi Kleen  <ak@linux.intel.com>
13991         * Makefile.in (OBJS): Add inchash.o.
13992         (PLUGIN_HEADERS): Add inchash.h.
13993         * ipa-devirt.c: Include inchash.h.
13994         * lto-streamer-out.c: Dito.
13995         * tree-ssa-dom.c: Dito.
13996         * tree-ssa-pre.c: Dito.
13997         * tree-ssa-sccvn.c: Dito.
13998         * tree-ssa-tail-merge.c: Dito.
13999         * asan.c: Dito.
14000         * tree.c (iterative_hash_hashval_t): Move to ...
14001         (iterative_hash_host_wide_int): Move to ...
14002         * inchash.c: Here. New file.
14003         * tree.h (iterative_hash_hashval_t): Move to ...
14004         (iterative_hash_host_wide_int): Move to ...
14005         * inchash.h: Here. New file.
14007 2014-07-25  Richard Biener  <rguenther@suse.de>
14009         PR middle-end/61762
14010         PR middle-end/61894
14011         * fold-const.c (native_encode_int): Add and handle offset
14012         parameter to do partial encodings of expr.
14013         (native_encode_fixed): Likewise.
14014         (native_encode_real): Likewise.
14015         (native_encode_complex): Likewise.
14016         (native_encode_vector): Likewise.
14017         (native_encode_string): Likewise.
14018         (native_encode_expr): Likewise.
14019         * fold-const.c (native_encode_expr): Add offset parameter
14020         defaulting to -1.
14021         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
14022         (fold_ctor_reference): Handle all reads from tcc_constant
14023         ctors.
14025 2014-07-25  Richard Biener  <rguenther@suse.de>
14027         * tree-inline.c (estimate_move_cost): Mark speed_p argument
14028         as possibly unused.
14030 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14032         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
14034 2014-07-24  Kyle McMartin  <kyle@redhat.com>
14036         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
14038 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14040         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
14041         Add prototype.
14042         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
14043         function.
14044         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
14045         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14046         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
14048 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14050         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
14051         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
14052         aggregate types.  Instead, *all* aggregate types, except for single-
14053         element or homogeneous float/vector aggregates, are quadword-aligned
14054         if required by their type alignment.  Issue -Wpsabi note when a type
14055         is now treated differently than before.
14057 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14059         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
14060         does not fit fully into floating-point registers, and there is still
14061         space in the register parameter area, use GPRs to pass those parts
14062         of the argument.  Issue -Wpsabi note if any parameter is now treated
14063         differently than before.
14064         (rs6000_arg_partial_bytes): Update.
14066 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
14068         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
14070 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14072         * rtl.h (target_rtl): Remove lang_dependent_initialized.
14073         * toplev.c (initialize_rtl): Don't use it.  Move previously
14074         "language-dependent" calls to...
14075         (backend_init): ...here.
14076         (lang_dependent_init_target): Don't set lang_dependent_initialized.
14077         Assert that RTL initialization hasn't happend yet.
14079 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14081         PR rtl-optimization/61629
14082         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
14083         they have already been initialized.
14085 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
14087         PR middle-end/61268
14088         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
14089         DECL_INCOMING_RTL and entry_parm.
14090         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
14091         * calls.c (load_register_parameters): Likewise argument values.
14092         (emit_library_call_value_1, store_one_arg): Likewise argument
14093         save areas.
14094         * config/i386/i386.c (assign_386_stack_local): Likewise the local
14095         stack slot.
14096         * explow.c (validize_mem): Modify the argument in-place.
14098 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14100         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
14101         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
14103 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14105         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
14106         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
14108 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14110         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
14111         (aarch64_save_callee_saves): New parameter "skip_wb".
14112         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
14114 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14116         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
14117         "wb_candidate2".
14118         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
14120 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
14122         * graphite-isl-ast-to-gimple.c:
14123         (graphite_create_new_loop): Add calling of isl_id_free to properly
14124         decrement reference counts.
14126         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
14128 2014-07-24  Martin Liska  <mliska@suse.cz>
14129         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
14130         function used.
14131         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
14132         (rs6000_code_end): Likewise.
14134 2014-07-24  Martin Liska  <mliska@suse.cz>
14136         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
14137         symtab_node funtion used.
14138         (rs6000_xcoff_declare_object_name): Likewise.
14140 2014-07-24  Martin Liska  <mliska@suse.cz>
14142         * cgraphunit.c (compile): Correct function used.
14144 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
14146         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
14147         as non-indexable.
14149 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
14151         PR lto/61802
14152         * varasm.c (bss_initializer_p): Handle offlined ctors.
14153         (align_variable, get_variable_align): Likewise.
14154         (make_decl_one_only): Likewise.
14155         (default_binds_local_p_1): Likewise.
14156         (decl_binds_to_current_def_p): Likewise.
14157         (get_variable_section): Get constructor if it is offlined.
14158         (assemble_variable_contents): Sanity check that the caller
14159         streamed in the ctor in LTO.
14161 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
14163         * graphite-isl-ast-to-gimple.c:
14164         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
14165         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
14166         isl_ast_op_pdiv_r to the different case.
14168         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
14170 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14172         PR middle-end/61876
14173         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
14174         when flag_errno_math is on.
14176 2014-07-24  Martin Liska  <mliska@suse.cz>
14178         * cgraph.h (varpool_node):
14179         (availability get_availability (void)):
14180         created from cgraph_variable_initializer_availability
14181         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
14182         created from: cgraph_variable_initializer_availability
14183         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
14184         (void finalize_named_section_flags (void)):
14185         created from varpool_finalize_named_section_flags
14186         (bool assemble_decl (void)): created from varpool_assemble_decl
14187         (void analyze (void)): created from varpool_analyze_node
14188         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
14189         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
14190         (void remove_initializer (void)): created from varpool_remove_initializer
14191         (tree get_constructor (void)): created from varpool_get_constructor
14192         (bool externally_visible_p (void)): created from varpool_externally_visible_p
14193         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
14194         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
14195         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
14196         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
14197         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
14198         (static bool output_variables (void)): created from varpool_output_variables
14199         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
14200         created from varpool_extra_name_alias
14201         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
14202         (static void dump_varpool (FILE *f)): created from dump_varpool
14203         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
14204         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
14205         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
14206         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
14207         (void assemble_aliases (void)): created from assemble_aliases
14209 2014-07-24  Martin Liska  <mliska@suse.cz>
14211         * cgraph.h (symtab_node):
14212         (void register_symbol (void)): created from symtab_register_node
14213         (void remove (void)): created from symtab_remove_node
14214         (void dump (FILE *f)): created from dump_symtab_node
14215         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
14216         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
14217         (struct ipa_ref *add_reference (symtab_node *referred_node,
14218         enum ipa_ref_use use_type)): created from add_reference 
14219         (struct ipa_ref *add_reference (symtab_node *referred_node,
14220         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
14221         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
14222         gimple stmt)): created from maybe_add_reference
14223         (bool semantically_equivalent_p (symtab_node *target)): created from
14224         symtab_semantically_equivalent_p
14225         (void remove_from_same_comdat_group (void)): created from
14226         remove_from_same_comdat_group
14227         (void add_to_same_comdat_group (symtab_node *old_node)): created from
14228         symtab_add_to_same_comdat_group
14229         (void dissolve_same_comdat_group_list (void)): created from
14230         symtab_dissolve_same_comdat_group_list
14231         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
14232         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
14233         created from symtab_alias_ultimate_target
14234         (inline symtab_node *next_defined_symbol (void)): created from
14235         symtab_next_defined_symbol
14236         (bool resolve_alias (symtab_node *target)): created from
14237         symtab_resolve_alias
14238         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
14239         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
14240         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
14241         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
14242         (void set_section (const char *section)): created from set_section_1 
14243         (enum availability get_availability (void)): created from symtab_node_availability
14244         (void make_decl_local (void)): created from symtab_make_decl_local
14245         (bool real_symbol_p (void)): created from symtab_read_node
14246         (can_be_discarded_p (void)): created from symtab_can_be_discarded
14247         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
14248         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
14249         symtab_in_same_comdat_p;
14250         (bool address_taken_from_non_vtable_p (void)): created from
14251         address_taken_from_non_vtable_p
14252         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
14253         (static void dump_table (FILE *)): created from dump_symtab
14254         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
14255         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
14256         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
14257         symtab_used_from_object_file_p 
14258         (void dump_base (FILE *)): created from dump_symtab_base
14259         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
14260         (void unregister (void)): created from symtab_unregister_node
14261         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
14262         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
14263         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
14264         symtab_nonoverwritable_alias_1
14265         * cgraph.h (cgraph_node):
14266         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
14267         created from cgraph_remove_node_and_inline_clones
14268         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
14269         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
14270         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
14271         (cgraph_node *function_symbol (enum availability *avail = NULL)):
14272         created from cgraph_function_node
14273         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
14274         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
14275         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
14276         created from cgraph_create_clone 
14277         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
14278         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
14279         created from cgraph_create_virtual_clone
14280         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
14281         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
14282         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
14283         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
14284         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
14285         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
14286         created from cgraph_function_version_info
14287         (struct cgraph_function_version_info *insert_new_function_version (void)):
14288         created from insert_new_cgraph_node_version
14289         (struct cgraph_function_version_info *function_version (void)): created from
14290         get_cgraph_node_version
14291         (void analyze (void)): created from analyze_function
14292         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
14293         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
14294         tree real_alias) cgraph_add_thunk
14295         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
14296         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
14297         created from cgraph_function_or_thunk_node
14298         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
14299         created from expand_thunk
14300         (void reset (void)): created from cgraph_reset_node
14301         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
14302         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
14303         (void remove (void)): created from cgraph_remove_node
14304         (void dump (FILE *f)): created from dump_cgraph_node
14305         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
14306         (bool get_body (void)): created from cgraph_get_body
14307         (void release_body (void)): created from cgraph_release_function_body
14308         (void unnest (void)): created from cgraph_unnest_node
14309         (void make_local (void)): created from cgraph_make_node_local
14310         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
14311         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
14312         gcov_type count, int freq)): created from cgraph_create_edge
14313         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
14314         gcov_type count, int freq)): created from cgraph_create_indirect_edge
14315         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
14316         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
14317         created from cgraph_create_edge_including_clones
14318         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
14319         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
14320         (void remove_callers (void)): created from cgraph_node_remove_callers
14321         (void remove_callees (void)): created from cgraph_node_remove_callees
14322         (enum availability get_availability (void)): created from cgraph_function_body_availability
14323         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
14324         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
14325         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
14326         (void call_duplication_hooks (cgraph_node *node2)): created from
14327         cgraph_call_node_duplication_hooks
14328         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
14329         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
14330         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
14331         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
14332         (void call_function_insertion_hooks (void)):
14333         created from cgraph_call_function_insertion_hooks
14334         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
14335         (bool local_p (void)): created from cgraph_local_node
14336         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
14337         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
14338         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
14339         (inline bool only_called_directly_or_aliased_p (void)):
14340         created from cgraph_only_called_directly_or_aliased_p
14341         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
14342         created from cgraph_will_be_removed_from_program_if_no_direct_calls
14343         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
14344         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
14345         (bool can_remove_if_no_direct_calls_p (void)):
14346         created from cgraph_can_remove_if_no_direct_calls_p
14347         (inline bool has_gimple_body_p (void)):
14348         created from cgraph_function_with_gimple_body_p
14349         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
14350         (static void dump_cgraph (FILE *f)): created from dump_cgraph
14351         (static inline void debug_cgraph (void)): created from debug_cgraph
14352         (static void record_function_versions (tree decl1, tree decl2)):
14353         created from record_function_versions
14354         (static void delete_function_version (tree decl)):
14355         created from delete_function_version
14356         (static void add_new_function (tree fndecl, bool lowered)):
14357         created from cgraph_add_new_function
14358         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
14359         (static cgraph_node * create (tree decl)): created from cgraph_create_node
14360         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
14361         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
14362         (static cgraph_node *get_for_asmname (tree asmname)):
14363         created from cgraph_node_for_asm
14364         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
14365         created from cgraph_same_body_alias 
14366         (static bool used_from_object_file_p_worker (cgraph_node *node,
14367         void *): new function
14368         (static bool non_local_p (cgraph_node *node, void *)):
14369         created from cgraph_non_local_node_p_1
14370         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
14371         created from verify_cgraph
14372         (static bool make_local (cgraph_node *node, void *)):
14373         created from cgraph_make_node_local
14374         (static cgraph_node *create_alias (tree alias, tree target)):
14375         created from cgraph_create_function_alias
14376         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
14377         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
14378         created from cgraph_create_edge_1
14379         * cgraph.h (varpool_node):
14380         (void remove (void)): created from varpool_remove_node
14381         (void dump (FILE *f)): created from dump_varpool_node
14383 2014-07-24  Richard Biener  <rguenther@suse.de>
14385         PR ipa/61823
14386         * tree-ssa-structalias.c (create_variable_info_for_1):
14387         Use varpool_get_constructor.
14388         (create_variable_info_for): Likewise.
14390 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
14392         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
14393         subtract outgoing area size when restoring stack_pointer_rtx.
14395 2014-07-24  Nick Clifton  <nickc@redhat.com>
14397         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
14398         that operations are taking place in parallel.
14399         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
14401 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
14403         * omp-low.c (extract_omp_for_data): Add missing break statement.
14405 2014-07-24  Richard Biener  <rguenther@suse.de>
14407         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
14408         * tree-inline.c (estimate_move_cost): Add speed_p parameter
14409         and adjust MOVE_RATIO query accordingly.
14410         (estimate_num_insns): Adjust callers.
14411         * ipa-prop.c (ipa_populate_param_decls): Likewise.
14412         * ipa-cp.c (gather_context_independent_values,
14413         estimate_local_effects): Likewise.
14414         * ipa-split.c (consider_split): Likewise.
14416 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
14418         * config/i386/driver-i386.c: Remove names of unused arguments and
14419         unnecessary unused attributes.
14420         * config/i386/host-mingw32.c: Likewise.
14421         * config/i386/i386.c: Likewise.
14422         * config/i386/winnt-stubs.c: Likewise.
14423         * config/i386/winnt.c: Likewise.
14425 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14427         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
14428         (aarch64_gen_loadwb_pair): New helper function.
14429         (aarch64_expand_epilogue): Simplify code using new helper functions.
14430         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
14432 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14434         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
14435         (aarch64_gen_storewb_pair): New helper function.
14436         (aarch64_expand_prologue): Simplify code using new helper functions.
14437         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
14439 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14441         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
14442         Rename to aarch64_save_callee_saves, remove restore code.
14443         (aarch64_restore_callee_saves): New function.
14445 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14447         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
14448         (aarch64_save_callee_saves): New function to handle reg save
14449         for both core and vectore regs.
14451 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14453         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
14454         (aarch64_gen_store_pair): New helper function.
14455         (aarch64_save_or_restore_callee_save_registers)
14456         (aarch64_save_or_restore_fprs): Use new helper functions.
14458 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14460         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
14461         (aarch64_save_or_restore_callee_save_registers)
14462         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
14464 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14466         * config/aarch64/aarch64.c
14467         (aarch64_save_or_restore_callee_save_registers)
14468         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
14470 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14472         * config/aarch64/aarch64.c
14473         (aarch64_save_or_restore_callee_save_registers)
14474         (aarch64_save_or_restore_fprs): Remove 'increment'.
14476 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14478         * config/aarch64/aarch64.c
14479         (aarch64_save_or_restore_callee_save_registers)
14480         (aarch64_save_or_restore_fprs): Use register offset in
14481         cfun->machine->frame.reg_offset.
14483 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14485         * config/aarch64/aarch64.c
14486         (aarch64_save_or_restore_callee_save_registers)
14487         (aarch64_save_or_restore_fprs): Remove base_rtx.
14489 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14491         * config/aarch64/aarch64.c
14492         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
14493         to 'start_offset'.  Remove local variable 'start_offset'.
14495 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14497         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
14498         type to HOST_WIDE_INT.
14500 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14502         * config/aarch64/aarch64.c (aarch64_expand_prologue)
14503         (aarch64_save_or_restore_fprs)
14504         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
14506 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14508         * config/arm/t-rtems-eabi: Add
14509         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
14510         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
14511         mbig-endian/mthumb/march=armv7-r, and
14512         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
14513         multilibs.
14515 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14516             Chris Johns <chrisj@rtems.org>
14517             Joel Sherrill <joel.sherrill@oarcorp.com>
14519         * config.gcc: Add nios2-*-rtems*.
14520         * config/nios2/rtems.h: New file.
14521         * gcc/config/nios2/t-rtems: New file.
14523 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
14525         PR target/61396
14526         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
14527         constant numbers, not general constants.
14528         (rs6000_expand_vector_init): Ditto.
14530 2014-07-23  Nathan Sidwell  <nathan@acm.org>
14532         * gcov-tool.c (gcov_list): Declare here.
14533         (set_gcov_list): Remove.
14534         (gcov_output_files): Set gcov_list directly.
14536 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
14538         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
14540 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
14542         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
14543         callee-saved registers are available for padding purpose
14544         and r3 is not mandatory, then prefer use those callee-saved
14545         instead of r3.
14547 2014-07-23  Richard Biener  <rguenther@suse.de>
14549         * params.def (PARAM_MAX_COMBINE_INSNS): New.
14550         * combine.c: Include statistics.h and params.h.
14551         (combine_instructions): Guard three and four insn combines
14552         with max-combine-insns value.  Record statistics for combines
14553         performed.
14554         * doc/invoke.texi (max-combine-insns): Document new param.
14556 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
14558         * graphite-isl-ast-to-gimple.c:
14559         (translate_isl_ast_node_block): New function.
14560         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
14562         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
14563         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
14565 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
14567         * graphite-isl-ast-to-gimple.c:
14568         (get_max_schedule_dimensions): New function.
14569         (extend_schedule): Likewise.
14570         (generate_isl_schedule): Add calling of extend_schedule and
14571         get_max_schedule_dimensions.
14573 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14575         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
14576         (case UNSPEC): Handle UNSPEC_RBIT.
14578 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14580         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
14581         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
14583 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14585         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
14587 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
14589         * graphite-isl-ast-to-gimple.c:
14590         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
14591         (ivs_params_clear):
14592         (build_iv_mapping): New function.
14593         (translate_isl_ast_node_user): Likewise.
14594         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
14596         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
14597         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
14598         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
14600 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
14602         PR target/55701
14603         * config/arm/arm.md (setmem): New pattern.
14604         * config/arm/arm-protos.h (struct tune_params): New fields.
14605         (arm_gen_setmem): New prototype.
14606         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
14607         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
14608         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
14609         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
14610         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
14611         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
14612         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
14613         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
14614         (arm_const_inline_cost): New function.
14615         (arm_block_set_max_insns): New function.
14616         (arm_block_set_non_vect_profit_p): New function.
14617         (arm_block_set_vect_profit_p): New function.
14618         (arm_block_set_unaligned_vect): New function.
14619         (arm_block_set_aligned_vect): New function.
14620         (arm_block_set_unaligned_non_vect): New function.
14621         (arm_block_set_aligned_non_vect): New function.
14622         (arm_block_set_vect, arm_gen_setmem): New functions.
14624 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
14626         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
14628 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
14630         PR target/61855
14631         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
14632         out of #ifdef __OPTIMIZE__.
14634 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
14636         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
14637         different trapping status if -fnon-call-exceptions is enabled.
14639 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
14641         * expr.c (store_field): Handle VOIDmode for calls that return values
14642         in multiple locations.
14644 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14646         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
14647         (altivec_vsldoi_<mode>): Likewise.
14649 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
14651         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
14652         to the number of characters in the line.
14654 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
14656         * graphite-isl-ast-to-gimple.c: Add using of
14657         build_nonstandard_integer_type instead of int128_integer_type_node.
14659 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
14661         * toplev.c (output_stack_usage): Adjust the location of the warning.
14663 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
14665         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
14666         (*membar_storeload): Disable for LEON3.
14668 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14670         PR rtl-optimization/61461
14671         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
14673 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
14675         PR target/61794
14676         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
14677         Fix instruction constraint.
14678         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
14680 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
14682         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
14684 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
14686         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
14687         GNU coding standards.
14688         (nds32_register_move_cost): Likewise.
14689         (nds32_memory_move_cost): Likewise.
14690         (nds32_address_cost): Likewise.
14692 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14694         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
14696 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
14698         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
14699         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
14700         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14701         (HAVE_sync_compare_and_swapqi): Define.
14702         (HAVE_sync_compare_and_swaphi): Likewise.
14703         (HAVE_sync_compare_and_swapsi): Likewise.
14705 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
14707         * config/mips/p5600.md: Add missing cpu tests.
14709 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14711         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
14712         (vmla_f64): Likewise.
14713         (vfms_f64): Likewise.
14714         (vmls_f64): Likewise.
14716 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14718         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
14719         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
14721 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14723         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
14724         (vmlal_high_lane_s32): Likewise.
14725         (vmlal_high_lane_u16): Likewise.
14726         (vmlal_high_lane_u32): Likewise.
14727         (vmlsl_high_lane_s16): Likewise.
14728         (vmlsl_high_lane_s32): Likewise.
14729         (vmlsl_high_lane_u16): Likewise.
14730         (vmlsl_high_lane_u32): Likewise.
14732 2014-07-17  Terry Guo  <terry.guo@arm.com>
14734         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
14735         (alus_reg): Renamed to alus_sreg.
14736         * config/arm/arm-fixed.md: Change type of non-dsp instructions
14737         from alu_reg to alu_sreg.  Change type of dsp instructions from
14738         alu_reg to alu_dsp_reg.
14739         * config/arm/thumb1.md: Likewise.
14740         * config/arm/thumb2.md: Likewise.
14741         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
14742         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
14743         with alu_sreg and alus_sreg.
14744         * config/arm/arm1026ejs.md (alu_op): Likewise.
14745         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
14746         * config/arm/arm926ejs.md (9_alu_op): Likewise.
14747         * config/arm/fa526.md (526_alu_op): Likewise.
14748         * config/arm/fa606te.md (606te_alu_op): Likewise.
14749         * config/arm/fa626te.md (626te_alu_op): Likewise.
14750         * config/arm/fa726te.md (726te_alu_op): Likewise.
14751         * config/arm/fmp626.md (mp626_alu_op): Likewise.
14752         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
14753         alu_sreg, alu_dsp_reg and alus_sreg.
14754         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
14755         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
14756         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
14757         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
14758         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
14759         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
14760         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
14761         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
14762         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
14763         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
14764         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
14765         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
14766         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
14767         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
14768         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
14769         alus_reg to alus_sreg.
14771 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
14773         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
14774         infinity format.
14776 2014-07-17  Richard Biener  <rguenther@suse.de>
14778         PR rtl-optimization/61801
14779         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
14780         don't set reg_pending_barrier if it appears in a debug-insn.
14782 2014-07-16  DJ Delorie  <dj@redhat.com>
14784         * config/rx/rx.c (rx_option_override): Fix alignment values.
14785         (rx_align_for_label): Likewise.
14787 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
14789         PR target/61737.
14790         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
14791         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
14792         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
14793         functions.
14794         (cris_print_index, cris_print_operand, cris_constant_index_p)
14795         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
14796         (cris_address_cost): Ditto last CONSTANT_P.
14797         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
14798         callers changed.  Yield cris_offsettable_symbol for non-PIC
14799         constant symbolic expressions including labels.  Yield cris_unspec
14800         for all unspecs.
14801         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
14802         target to pic_offset_table_rtx for calls that will likely go
14803         through PLT, const0_rtx when they can't.  All callers changed.
14804         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
14805         symbolic expressions to be PICified.  Remove second, redundant,
14806         assert on can_create_pseudo_p returning non-zero.  Use
14807         replace_equiv_address_nv, not replace_equiv_address, for final
14808         operand update.
14809         * config/cris/cris.md ("movsi"): Move variable t to pattern
14810         toplevel. Adjust assert for new cris_symbol_type member.  Use
14811         CONSTANT_P instead of CONSTANT_ADDRESS_P.
14812         ("*movsi_internal") <case 9>: Make check for valid unspec operands
14813         for lapc stricter.
14814         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
14815         ("call", "call_value"): Use second incoming operand as a marker
14816         for pic-offset-table-register being used.
14817         ("*expanded_call_non_v32", "*expanded_call_v32")
14818         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
14819         second incoming operand to CALL, match cris_call_type_marker.
14820         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
14821         ("*expanded_call_side"): Ditto.  Fix typo in comment.
14822         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
14823         CONSTANT_P.
14824         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
14825         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
14826         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
14827         users changed.  Add members cris_offsettable_symbol and cris_unspec.
14828         (cris_symbol_type): Rename from cris_pic_symbol_type.
14829         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
14830         just CONSTANT_P.
14831         * config/cris/cris-protos.h (cris_symbol_type_of,
14832         cris_expand_pic_call_address): Adjust prototypes.
14833         (cris_legitimate_constant_p): New prototype.
14835         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
14836         an existing tmake_file.  Don't add t-slibgcc and t-linux.
14838 2014-07-17  Jason Merrill  <jason@redhat.com>
14840         PR c++/61623
14841         * symtab.c (symtab_remove_from_same_comdat_group): Also
14842         set_comdat_group to NULL_TREE.
14843         (verify_symtab): Fix diagnostic.
14845 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
14847         PR target/61662
14848         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
14850 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
14852         Support location tracking for built-in macro tokens
14853         * input.h (is_location_from_builtin_token): New function declaration.
14854         * input.c (is_location_from_builtin_token): New function definition.
14855         * toplev.c (general_init): Tell libcpp what the pre-defined
14856         spelling location for built-in tokens is.
14858 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
14860         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
14861         on the FUNCTION_DECL.
14863 2014-07-16  Richard Biener  <rguenther@suse.de>
14865         PR other/61782
14866         * doc/extend.texi (always_inline): Clarify.
14868 2014-07-15  Eric Christopher  <echristo@gmail.com>
14870         * doc/invoke.texi (Link Options): Document -z option.
14872 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
14874         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
14875         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14877 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
14879         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
14881 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
14883         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
14884         varpool_assemble_decl.
14885         * varpool.c (varpool_assemble_decl): Assert that node->definition is
14886         true.
14888 2014-07-15  Michael Matz  <matz@suse.de>
14890         PR rtl-optimization/61772
14891         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
14893 2014-07-15  Richard Biener  <rguenther@suse.de>
14895         * opts.c (default_options_table): Disable bit-ccp at -Og.
14897 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
14899         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
14901 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
14903         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
14904         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
14905         call langhook for unknown declaration.
14906         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
14907         * tree.h (DECL_ARGUMENTS): Update.
14908         * print-tree.c (print_node): Update.
14909         * tree-core.h (tree_decl_non_common): Remove arguments.
14910         (tree_function_decl): Add arguments.
14912 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
14914         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
14916 2014-07-14  Richard Biener  <rguenther@suse.de>
14918         PR tree-optimization/61779
14919         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
14920         simplifying a condition.
14922 2014-07-14  Richard Biener  <rguenther@suse.de>
14924         * builtins.c (c_strlen): Make only_value == 2 really only
14925         affect warning generation.
14927 2014-07-14  Richard Biener  <rguenther@suse.de>
14929         PR tree-optimization/61757
14930         PR tree-optimization/61783
14931         PR tree-optimization/61787
14932         * tree-ssa-dom.c (record_equality): Revert canonicalization
14933         change and add comment.
14934         (propagate_rhs_into_lhs): Revert previous fix, removing
14935         loop depth restriction again.
14937 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14939         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
14940         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
14941         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
14942         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
14943         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
14944         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
14945         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
14947 2014-07-14  Richard Biener  <rguenther@suse.de>
14949         * cgraph.h (decl_in_symtab_p): Make inline.
14951 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
14953         PR middle-end/61294
14954         * doc/invoke.texi (-Wmemset-transposed-args): Document.
14956         PR target/61656
14957         * config/i386/i386.c (classify_argument): Don't merge classes above
14958         number of words.
14960 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
14962         * cgraph.h (symtab_node): Add nonzero_address.
14963         (decl_in_symtab_p): Break out from ...
14964         (symtab_get_node): ... here.
14965         * fold-const.c: Include cgraph.h
14966         (tree_single_nonzero_warnv_p): Use symtab to determine
14967         if symbol is non-zero.
14968         * symtab.c (symtab_node::nonzero_address): New method.
14970 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14972         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
14973         forgotten in previous commit.
14975 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14977         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
14978         on builtin types.
14979         * ipa-devirt.c: Include stor-layout.h and intl.h
14980         (odr_subtypes_equivalent_p): New function.
14981         (warn_odr): New function.
14982         (warn_type_mismatch): New function.
14983         (odr_types_equivalent_p): New function.
14984         (add_type_duplicate): Use it.
14985         * common.opt (Wodr): New flag.
14986         * doc/invoke.texi (Wodr): Document new warning.
14988 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
14990         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
14991         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
14992         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
14993         (varpool_get_constructor): Push CTORS_IN timevar.
14994         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
14996 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
14998         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
14999         Remove VOID_FTYPE_PUSHORT.
15000         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
15001         Change code to USHORT_FTYPE_VOID.
15002         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
15003         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
15004         (ix86_atomic_assign_expand_fenv): Update for
15005         __builtin_ia32_fnstsw changes.
15006         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
15007         (fnstsw): Change operand 0 to nonimmediate operand.
15009 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15011         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
15012         (varpool_get_constructor): New function.
15013         (varpool_ctor_useable_for_folding_p): Break out from ...
15014         (ctor_for_folding): ... here; use varpool_get_constructor.
15015         (varpool_assemble_decl): Likewise.
15016         * lto-streamer.h (struct output_block): Turn cgraph_node
15017         to symbol filed.
15018         (lto_input_variable_constructor): Declare.
15019         * ipa-visibility.c (function_and_variable_visibility): Use
15020         varpool_get_constructor.
15021         * cgraph.h (varpool_get_constructor): Declare.
15022         (varpool_ctor_useable_for_folding_p): New function.
15023         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
15024         parameter; return error_mark_node for non-trivial constructors.
15025         (lto_write_tree_1, DFS_write_tree): Update use of
15026         get_symbol_initial_value.
15027         (output_function): Update initialization of symbol.
15028         (output_constructor): New function.
15029         (copy_function): Rename to ..
15030         (copy_function_or_variable): ... this one; handle vars too.
15031         (lto_output): Output variable sections.
15032         * lto-streamer-in.c (input_constructor): New function.
15033         (lto_read_body): Rename from ...
15034         (lto_read_body_or_constructor): ... this one; handle vars too.
15035         (lto_input_variable_constructor): New function.
15036         * ipa-prop.c (ipa_prop_write_jump_functions,
15037         ipa_prop_write_all_agg_replacement): Update.
15038         * lto-cgraph.c (compute_ltrans_boundary): Use it.
15039         (output_cgraph_opt_summary): Set symbol to NULL.
15041 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15043         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
15044         non-polymorphic types.
15045         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
15046         * ipa-devirt.c (types_same_for_odr): Do not explode when one
15047         of types is not polymorphic.
15049 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
15051         * lra-constraints.c (remove_inheritance_pseudos): Process
15052         destination pseudo too.
15054 2014-07-11  Rong Xu  <xur@google.com>
15056         * gcov-tool.c (gcov_output_files): Fix build error introduced in
15057         commit r212448.
15059 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15061         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
15062         * config/avr/avr-devices.c (AVR_MCU): Same.
15063         (avr_mcu_types): add text start value to end of device list.
15064         * config/avr/avr-mcus.def: Add text section start for all devices.
15065         (ata5782): Add new avr5 device.
15066         (ata5831): Same.
15067         * config/avr/avr-tables.opt: Regenerate.
15068         * config/avr/avr.h: Add declaration for text section start handler.
15069         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
15070         SPEC functions.
15071         (LINK_SPEC): Include text section start handler to linker spec.
15072         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
15073         pass -Ttext option to linker if the text section start for the device
15074         is not zero.
15075         * config/avr/t-multilib: Regenerate.
15076         * doc/avr-mmcu.texi: Regenerate.
15078 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
15080         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
15081         * config/rs6000/aix52.h (LINK_SPEC): Same.
15082         * config/rs6000/aix53.h (LINK_SPEC): Same.
15083         * config/rs6000/aix61.h (LINK_SPEC): Same.
15084         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
15086 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
15088         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
15089         (graphite_verify): New function.
15090         (ivs_params_clear): New function.
15091         (gcc_expression_from_isl_ast_expr_id): New function.
15092         (gcc_expression_from_isl_expr_int): New function.
15093         (binary_op_to_tree): New function.
15094         (ternary_op_to_tree): New function.
15095         (unary_op_to_tree): New function.
15096         (nary_op_to_tree): New function.
15097         (gcc_expression_from_isl_expr_op): New function.
15098         (gcc_expression_from_isl_expression): New function.
15099         (graphite_create_new_loop): New function.
15100         (translate_isl_ast_for_loop): New function.
15101         (get_upper_bound): New function.
15102         (graphite_create_new_loop_guard): New function.
15103         (translate_isl_ast_node_for): New function.
15104         (translate_isl_ast): New function.
15105         (add_parameters_to_ivs_params): New function.
15106         (scop_to_isl_ast): New parameter ip.
15107         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
15109 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
15111         * config/xtensa/predicates.md (call expander): Update for
15112         DECL_SECTION_NAME being string.
15114 2014-07-11  Richard Biener  <rguenther@suse.de>
15116         PR middle-end/61473
15117         * builtins.c (fold_builtin_memory_op): Inline memory moves that
15118         can be implemented with a single load followed by a single store.
15119         (c_strlen): Only warn when only_value is not 2.
15121 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
15123         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
15125 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
15127         PR target/61561
15128         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
15129         (*movhi_bytes): Likewise.
15130         (*arm_movqi_insn): Likewise.
15132 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
15134         PR target/56858
15135         * config/alpha/alpha.c: Include tree-pass.h, context.h
15136         and pass_manager.h.
15137         (pass_data_handle_trap_shadows): New pass.
15138         (pass_handle_trap_shadows::gate): New pass gate function.
15139         (make_pass_handle_trap_shadows): New function.
15140         (rest_of_handle_trap_shadows): Ditto.
15142         (alpha_align_insns_1): Rename from alpha_align_insns.
15143         (pass_data_align_insns): New pass.
15144         (pass_align_insns::gate): New pass gate function.
15145         (make_pass_aling_insns): New function.
15146         (rest_of_align_insns): Ditto.
15147         (alpha_align_insns): Ditto.
15149         (alpha_option_override): Declare handle_trap_shadows info
15150         and align_insns_info.  Register handle_trap_shadows and align_insns
15151         passes here.
15152         (alpha_reorg): Do not call alpha_trap_shadows and
15153         alpha_align_insn from here.
15155         (alpha_pad_function_end): Do not skip BARRIERs.
15157 2014-07-10  Rong Xu  <xur@google.com>
15159         Add gcov-tool: an offline gcda profile processing tool support.
15160         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
15161         (gcov_is_error): Ditto.
15162         (gcov_read_string): Ditto.
15163         (gcov_read_sync): Ditto.
15164         * gcov-io.h: Move counter defines to gcov-counter.def.
15165         * gcov-dump.c (tag_counters): Use gcov-counter.def.
15166         * coverage.c: Ditto.
15167         * gcov-tool.c: Offline gcda profile processing tool.
15168         (unlink_gcda_file): Remove one gcda file.
15169         (unlink_profile_dir): Remove gcda files from the profile path.
15170         (gcov_output_files): Output gcda files to an output dir.
15171         (profile_merge): Merge two profiles in directory.
15172         (print_merge_usage_message): Print merge usage.
15173         (merge_usage): Print merge usage and exit.
15174         (do_merge): Driver for profile merge sub-command.
15175         (profile_rewrite): Rewrite profile.
15176         (print_rewrite_usage_message): Print rewrite usage.
15177         (rewrite_usage): Print rewrite usage and exit.
15178         (do_rewrite): Driver for profile rewrite sub-command.
15179         (print_usage): Print gcov-info usage and exit.
15180         (print_version): Print gcov-info version.
15181         (process_args): Process arguments.
15182         (main): Main routine for gcov-tool.
15183         * Makefile.in: Build and install gcov-tool.
15184         * gcov-counter.def: New file split from gcov-io.h.
15185         * doc/gcc.texi: Include gcov-tool.texi.
15186         * doc/gcov-tool.texi: Document for gcov-tool.
15188 2014-07-10  Richard Biener  <rguenther@suse.de>
15190         PR tree-optimization/61757
15191         * tree-ssa-dom.c (loop_depth_of_name): Restore.
15192         (propagate_rhs_into_lhs): Revert part of last change.
15194 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
15196         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
15197         FUNCTION_DECLs.
15199 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
15201         PR middle-end/53590
15202         * function.c (allocate_struct_function): Revert r188667 change.
15204         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
15206 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
15208         * doc/install.texi: Remove links to defunct package providers for
15209         Solaris.
15211 2014-07-09  Tom de Vries  <tom@codesourcery.com>
15213         * final.c (get_call_fndecl): Declare.
15214         (self_recursive_call_p): New function.
15215         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
15217 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15219         * ipa-devirt.c (record_node): Walk through aliases.
15221 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15223         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
15225 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15227         Revert:
15228         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
15230 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15232         * ipa-visibility.c (function_and_variable_visibility): Remove
15233         temporary hack disabling local aliases on AIX.
15235 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15237         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
15238         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
15240 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15242         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
15243         * rs6000/rs6000.c: Inline output of .set instruction.
15244         (declare_alias_data): New struct.
15245         (rs6000_declare_alias): New function.
15246         (rs6000_xcoff_declare_function_name): Use it.
15247         (rs6000_xcoff_declare_object_name): New function.
15248         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
15249         (ASM_OUTPUT_DEF): Turn to empty definition.
15251 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
15253         PR bootstrap/61679
15254         * hash-table.h: use hash_table::value_type instead of
15255         Descriptor::value_type in the return types of several methods.
15257 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
15259         * tree-pass.h (pass_data): Remove has_execute member.
15260         * passes.c (execute_one_pass): Don't check pass->has_execute.
15261         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15262         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15263         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15264         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15265         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15266         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15267         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15268         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15269         gimple-low.c, gimple-ssa-isolate-paths.c,
15270         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15271         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
15272         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
15273         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
15274         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
15275         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15276         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
15277         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
15278         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
15279         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
15280         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
15281         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15282         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15283         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15284         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15285         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15286         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15287         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15288         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15289         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15290         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15291         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15292         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
15293         web.c: Remove initializer for pass_data::has_execute.
15295 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
15297         * graphite-htab.h: Use hash_map instead of hash_table.
15298         * graphite-clast-to-gimple.c: Adjust.
15299         * passes.c: Use hash_map instead of hash_table.
15300         * sese.c: Likewise.
15301         * sese.h: Remove now unused code.
15303 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
15305         PR target/61599
15306         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
15307         than zero.
15309 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
15311         PR rtl-optimization/61673
15312         * combine.c (simplify_comparison): Test just mode's sign bit
15313         in tmode rather than the sign bit and any bits above it.
15315 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
15317         * graphite-isl-ast-to-gimple.c (generate_isl_context):
15318         Add __isl_give to the declaration.
15319         (generate_isl_schedule): Likewise.
15320         (scop_to_isl_ast): Likewise.
15322 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15324         * config/arm/arm.c (cortexa5_extra_costs): New table.
15325         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
15327 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
15329         PR tree-optimization/61725
15330         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
15331         range, use range_includes_zerop_p instead of integer_zerop on
15332         vr0->min, only use log2 of max if min is not negative.
15334 2014-07-08  Richard Biener  <rguenther@suse.de>
15336         * tree-ssa-dom.h (loop_depth_of_name): Remove.
15337         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
15338         restriction on loop depth difference.
15339         (record_equality): Likewise.
15340         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
15341         (loop_depth_of_name): Remove.
15342         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
15343         restriction on loop depth difference.
15344         (init_copy_prop): Likewise.
15346 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
15348         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
15349         parameter.
15350         (walk_aliased_vdefs): Likewise.
15351         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
15352         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
15353         (detect_type_change_from_memory_writes): Check if entry was reached.
15355 2014-07-08  Richard Biener  <rguenther@suse.de>
15357         PR tree-optimization/61681
15358         * tree-ssa-structalias.c (find_what_var_points_to): Expand
15359         NONLOCAL inside ESCAPED.
15361 2014-07-08  Richard Biener  <rguenther@suse.de>
15363         PR tree-optimization/61680
15364         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15365         Handle properly all read-write dependences with group accesses.
15367 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
15369         PR tree-optimization/61576
15370         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
15371         block containing reduction statement is predecessor of phi basi block.
15373 2014-07-08  Marek Polacek  <polacek@redhat.com>
15375         PR c/60226
15376         * fold-const.c (round_up_loc): Change the parameter type.
15377         Remove assert.
15378         * fold-const.h (round_up_loc): Adjust declaration.
15379         * stor-layout.c (finalize_record_size): Check for too large types.
15381 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
15383         * symtab.c: Include calls.h.
15384         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
15386 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
15388         * config/rs6000/rs6000.c (output_vec_const_move): Handle
15389         little-endian code generation.
15390         * config/rs6000/spe.md (spe_evmergehi): Rename to...
15391         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
15392         (spe_evmergehilo): Rename to...
15393         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
15394         (spe_evmergelo): Rename to...
15395         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
15396         (spe_evmergelohi): Rename to...
15397         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
15398         (spe_evmergehi, spe_evmergehilo): New expanders.
15399         (spe_evmergelo, spe_evmergelohi): Likewise.
15400         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
15401         (*frob_tf_ti): Likewise.
15402         (*frob_<mode>_di_2): Likewise.
15403         (*frob_tf_di_8_2): Likewise.
15404         (*frob_di_<mode>): Likewise.
15405         (*frob_ti_tf): Likewise.
15406         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
15407         (*frob_ti_<mode>_8_2): Likewise.
15408         (*frob_ti_tf_2): Likewise.
15409         (mov_si<mode>_e500_subreg0): Rename to...
15410         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
15411         endianness only.
15412         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
15413         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
15414         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
15415         the big endianness only.
15416         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
15417         (*mov_si<mode>_e500_subreg0_2): Rename to...
15418         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
15419         big big endianness only.
15420         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
15421         (*mov_si<mode>_e500_subreg4): Rename to...
15422         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
15423         endianness only.
15424         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
15425         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
15426         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
15427         the big endianness only.
15428         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
15429         pattern.
15430         (*mov_si<mode>_e500_subreg4_2): Rename to...
15431         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
15432         endianness only.
15433         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
15434         (*mov_sitf_e500_subreg8): Rename to...
15435         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
15436         endianness only.
15437         (*mov_sitf_e500_subreg8_le): New instruction pattern.
15438         (*mov_sitf_e500_subreg8_2): Rename to...
15439         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
15440         endianness only.
15441         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
15442         (*mov_sitf_e500_subreg12): Rename to...
15443         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
15444         endianness only.
15445         (*mov_sitf_e500_subreg12_le): New instruction pattern.
15446         (*mov_sitf_e500_subreg12_2): Rename to...
15447         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
15448         endianness only.
15449         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
15451 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
15453         * asan.c (instrument_strlen_call): Do not instrument first byte
15454         in strlen if already instrumented.
15456 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15458         * config/arm/arm.opt (mwords-little-endian): Delete.
15459         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
15460         of TARGET_LITTLE_WORDS.
15461         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
15462         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
15463         warning.
15464         * doc/invoke.texi: Remove references to -mwords-little-endian.
15466 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
15468         * expmed.c (struct init_expmed_rtl): Change all fields but
15469         pow2 and cint from struct rtx_def to rtx.
15470         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
15471         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
15472         at the end again.
15474 2014-07-06  Marek Polacek  <polacek@redhat.com>
15476         PR c/6940
15477         * doc/invoke.texi: Document -Wsizeof-array-argument.
15479 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
15481         * wide-int.h (wide_int_storage): Change declaration from struct
15482         to class.
15484 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
15486         * cgraph.c (cgraph_create_indirect_edge): Update call of
15487         get_polymorphic_call_info.
15488         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
15489         (possible_polymorphic_call_targets): Add parameter call.
15490         (decl_maybe_in_construction_p): New predicate.
15491         (get_polymorphic_call_info): Add parameter call;
15492         use decl_maybe_in_construction_p.
15493         * gimple-fold.c (fold_gimple_assign): Update use of
15494         possible_polymorphic_call_targets.
15495         (gimple_fold_call): Likewise.
15496         * ipa-prop.c: Inlcude calls.h
15497         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
15498         (param_type_may_change_p): New predicate.
15499         (detect_type_change_from_memory_writes): Break out from ...
15500         (detect_type_change): ... this one; use param_type_may_change_p.
15501         (detect_type_change_ssa): Use param_type_may_change_p.
15502         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
15504 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
15506         PR target/49423
15507         * config/arm/arm-protos.h (arm_legitimate_address_p,
15508         arm_is_constant_pool_ref): Add prototypes.
15509         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
15510         (arm_is_constant_pool_ref) New function.
15511         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
15512         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
15513         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
15514         operand. Remove pool_range and neg_pool_range attributes.
15515         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
15516         pool_range and neg_pool_range attributes.
15517         * config/arm/constraints.md (Uh): New constraint.
15518         (Uq): Don't allow constant pool references.
15520 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
15522         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
15523         (move_lo_quad_internal_be_<mode>): Likewise.
15524         (move_lo_quad_<mode>): Convert to define_expand.
15525         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
15526         (aarch64_simd_move_hi_quad_be_<mode>): New.
15527         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
15528         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
15529         (aarch64_combinez_be<mode>): New.
15530         (aarch64_combine<mode>): Convert to define_expand.
15531         (aarch64_combine_internal<mode>): New.
15532         (aarch64_simd_combine<mode>): Remove bogus RTL description.
15534 2014-07-04  Tom de Vries  <tom@codesourcery.com>
15536         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
15537         combination of earlyclobber and read/write modifiers.
15539 2014-07-04  Tom de Vries  <tom@codesourcery.com>
15541         * config/aarch64/aarch64-simd.md
15542         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
15544 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
15546         PR target/61714
15547         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
15549 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
15551         PR middle-end/61654
15552         * cgraphunit.c (expand_thunk): Call free_dominance_info.
15554         PR tree-optimization/61684
15555         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
15556         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
15558 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15559             Kito Cheng  <kito@0xlab.org>
15560             Monk Chiang  <sh.chiang04@gmail.com>
15562         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
15563         (nds32_symbol_load_store_p): Move to ...
15564         (nds32_fp_as_gp_check_available): Move to ...
15565         * config/nds32/nds32-fp-as-gp.c: ... here.
15566         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
15567         extern declaration.
15569 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15570             Kito Cheng  <kito@0xlab.org>
15571             Monk Chiang  <sh.chiang04@gmail.com>
15573         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
15574         (nds32_expand_store_multiple): Move to ...
15575         (nds32_expand_movmemqi): Move to ...
15576         * config/nds32/nds32-memory-manipulation.c: ... here.
15578 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15579             Kito Cheng  <kito@0xlab.org>
15580             Monk Chiang  <sh.chiang04@gmail.com>
15582         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
15583         (nds32_output_casesi_pc_relative): Move to ...
15584         (nds32_output_casesi): Move to ...
15585         (nds32_mem_format): Move to ...
15586         (nds32_output_16bit_store): Move to ...
15587         (nds32_output_16bit_load): Move to ...
15588         (nds32_output_32bit_store): Move to ...
15589         (nds32_output_32bit_load): Move to ...
15590         (nds32_output_32bit_load_s): Move to ...
15591         (nds32_output_stack_push): Move to ...
15592         (nds32_output_stack_pop): Move to ...
15593         * config/nds32/nds32-md-auxiliary.c: ... here.
15595 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15596             Ling-Hua Tseng  <uranus@tinlans.org>
15598         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
15599         the purpose of this file.
15601 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15602             Kito Cheng  <kito@0xlab.org>
15603             Monk Chiang  <sh.chiang04@gmail.com>
15605         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
15606         (nds32_address_cost): Move implementation to ...
15607         * config/nds32/nds32-cost.c: ... here.
15608         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
15609         (nds32_address_cost_impl): Declare.
15611 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15612             Kito Cheng  <kito@0xlab.org>
15613             Monk Chiang  <sh.chiang04@gmail.com>
15615         * config/nds32/nds32.c
15616         (nds32_consecutive_registers_load_store_p): Move to ...
15617         (nds32_valid_multiple_load_store): Move to ...
15618         (nds32_valid_stack_push_pop): Move to ...
15619         (nds32_can_use_bclr_p): Move to ...
15620         (nds32_can_use_bset_p): Move to ...
15621         (nds32_can_use_btgl_p): Move to ...
15622         (nds32_can_use_bitci_p): Move to ...
15623         * config/nds32/nds32-predicates.c: ... here.
15625 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15626             Kito Cheng  <kito@0xlab.org>
15627             Monk Chiang  <sh.chiang04@gmail.com>
15629         * config/nds32/nds32.c
15630         (nds32_expand_builtin_null_ftype_reg): Move to ...
15631         (nds32_expand_builtin_reg_ftype_imm): Move to ...
15632         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
15633         (nds32_init_builtins): Move implementation to ...
15634         (nds32_expand_builtin): Move implementation to ...
15635         * config/nds32/nds32-intrinsic.c: ... here.
15636         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
15637         (nds32_expand_builtin_impl): Declare.
15639 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15640             Kito Cheng  <kito@0xlab.org>
15641             Monk Chiang  <sh.chiang04@gmail.com>
15643         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
15644         (nds32_emit_section_tail_template): Move to ...
15645         (nds32_emit_isr_jmptbl_section): Move to ...
15646         (nds32_emit_isr_vector_section): Move to ...
15647         (nds32_emit_isr_reset_conten): Move to ...
15648         (nds32_check_isr_attrs_conflict): Move to ...
15649         (nds32_construct_isr_vectors_information): Move to ...
15650         (nds32_asm_file_start): Move implementation to ...
15651         (nds32_asm_file_end): Move implementation to ...
15652         * config/nds32/nds32-isr.c: ... here.
15653         * config/nds32/nds32-protos.h
15654         (nds32_check_isr_attrs_conflict): Declare.
15655         (nds32_construct_isr_vectors_information): Declare.
15656         (nds32_asm_file_start_for_isr): Declare.
15657         (nds32_asm_file_end_for_isr): Declare.
15659 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
15660             Kito Cheng  <kito@0xlab.org>
15661             Monk Chiang  <sh.chiang04@gmail.com>
15663         * config.gcc (nds32*): Add new modules to extra_objs.
15664         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
15665         (nds32be-*-*): Likewise.
15666         * config/nds32/nds32-cost.c: New file.
15667         * config/nds32/nds32-fp-as-gp.c: New file.
15668         * config/nds32/nds32-intrinsic.c: New file.
15669         * config/nds32/nds32-isr.c: New file.
15670         * config/nds32/nds32-md-auxiliary.c: New file.
15671         * config/nds32/nds32-memory-manipulation.c: New file.
15672         * config/nds32/nds32-pipelines-auxiliary.c: New file.
15673         * config/nds32/nds32-predicates.c: New file.
15674         * config/nds32/t-nds32: New file.
15676 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
15678         PR tree-optimization/61682
15679         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
15680         using cases and when one of the operands is equal to 1.
15682 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
15684         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
15685         ashr<mode>3): Correct mode of operands[2].
15686         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
15687         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
15688         Correct mode of operands[2].  Fix split condition.
15690 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
15692         * arm.md (arch): Add armv6_or_vfpv3.
15693         (arch_enabled): Add test for the above.
15694         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
15695         on VFP9.
15696         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
15698 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
15700         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
15701         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
15702         HWI 1 and negate the unsigned value.
15703         * expmed.c (expand_sdiv_pow2): For modes wider than word always
15704         use AND instead of shift.
15705         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
15707 2014-07-03  Marek Polacek  <polacek@redhat.com>
15709         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
15710         (-fsanitize=float-divide-by-zero): Move to the table with
15711         -fsanitize=undefined suboptions.
15712         (-fsanitize=float-cast-overflow): Likewise.
15714 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
15716         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
15717         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
15718         endianness.
15720 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15722         * loop-invariant.c (struct invariant): Add a new member: eqno;
15723         (find_identical_invariants): Update eqno;
15724         (create_new_invariant): Init eqno;
15725         (get_inv_cost): Compute comp_cost with eqno;
15727 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
15729         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
15730         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
15731         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
15732         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
15733         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
15735 2014-07-02  Christian Bruel  <christian.bruel@st.com>
15737         PR target/29349
15738         PR target/53513
15739         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
15740         (make_preds_opaque): Delete.
15741         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
15742         (commit_mode_sets): New function.
15743         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
15744         Process all modes at once.
15745         * basic-block.h (pre_edge_lcm_avs): Declare.
15746         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
15747         Call clear_aux_for_edges. Fix comments.
15748         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
15749         (pre_edge_rev_lcm): Idem.
15750         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
15751         parameter.
15752         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
15753         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
15754         Idem.
15755         * config/i386/i386.c (x96_emit_mode_set): Idem.
15756         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
15757         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
15758         (fpscr_toggle) Disallow from delay slot.
15759         * target.def (emit_mode_set): Add prev_mode parameter.
15760         * doc/tm.texi: Regenerate.
15762 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15764         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
15765         variable i.
15767 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
15769         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
15770         vtable_pointer_value_to_vtable): Constify.
15771         (contains_polymorphic_type_p): Declare.
15772         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
15773         vtable_pointer_value_to_vtable): Constify.
15774         (contains_polymorphic_type_p): New predicate.
15775         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
15776         polymorphic types.
15777         (ipa_set_ancestor_jf): Likewise.
15778         (detect_type_change): Return false in easy cases.
15779         (compute_complex_assign_jump_func): Require type to contain
15780         polymorphic type.
15781         (compute_known_type_jump_func): Likewise.
15783 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
15785         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
15786         Remove.
15787         (type_in_anonymous_namespace_p): Constify argument.
15788         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
15789         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
15790         (main_odr_variant): New function.
15791         (hash_type_name): Make static; update assert; do not ICE on
15792         non-records.
15793         (types_same_for_odr): Bring here from tree.c; simplify and remove
15794         old structural comparing code that doesn't work for templates.
15795         (odr_hasher::equal): Update assert.
15796         (add_type_duplicate): Return true when bases should be computed;
15797         replace incomplete loader by complete; do not output duplicated
15798         warnings; do not ICE on non-records; set odr_violated flag.
15799         (get_odr_type): Be ready to replace incomplete type by complete
15800         one; work on ODR variants instead of main variants; reorder item
15801         in array so bases have still smaller indexes.
15802         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
15803         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
15805 2014-07-01  Cary Coutant  <ccoutant@google.com>
15807         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
15808         lookup.
15809         (resolve_addr_in_expr): When replacing the rtx in a location list
15810         entry, get a new address table entry.
15811         (dwarf2out_finish): Call index_location_lists even if there are no
15812         addr_index_table entries yet.
15814 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
15816         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
15817         change for not being obvious.
15819 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
15821         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
15822         unused argument.
15824 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15826         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
15827         (vcagt_f64): Likewise.
15828         (vcale_f64): Likewise.
15829         (vcaled_f64): Likewise.
15830         (vcales_f32): Likewise.
15831         (vcalt_f64): Likewise.
15832         (vcaltd_f64): Likewise.
15833         (vcalts_f32): Likewise.
15835 2014-07-01  Marek Polacek  <polacek@redhat.com>
15837         * doc/invoke.texi: Document -Wint-conversion.
15839 2014-07-01  Marek Polacek  <polacek@redhat.com>
15841         PR c/58286
15842         * doc/invoke.texi: Document -Wincompatible-pointer-types.
15844 2014-07-01  Martin Liska  <mliska@suse.cz>
15846         IPA REF alias refactoring
15847         * cgraph.h (iterate_direct_aliases): New function.
15848         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
15849         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
15850         FOR_EACH_ALIAS added.
15851         (cgraph_for_node_and_aliases): Likewise.
15852         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
15853         * ipa-inline.c (reset_edge_caches): Likewise.
15854         (update_caller_keys): Likewise.
15855         * trans-mem.c (ipa_tm_execute): Likewise.
15856         *varpool.c (varpool_analyze_node): Likewise.
15857         (varpool_for_node_and_aliases): Likewise.
15858         * ipa-ref.h (first_alias): New function.
15859         (last_alias): Likewise.
15860         (has_aliases_p): Likewise.
15861         * ipa-ref.c (ipa_ref::remove_reference): Removal function
15862         is sensitive to IPA_REF_ALIASes.
15863         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
15864         are put at the beginning of the list.
15865         (symtab_node::iterate_direct_aliases): New function.
15867 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15869         Revert:
15870         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
15871         type is complete.
15872         (write_ts_type_common_tree_pointers): Do not stream fields not set
15873         for incomplete types; do not stream duplicated fields for variants;
15874         sanity check that variant and type match.
15875         (write_ts_type_non_common_tree_pointers): Likewise.
15876         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
15877         TYPE_SIZE whether type is complete.
15878         (lto_input_ts_type_common_tree_pointers): Do same changes as in
15879         write_ts_type_common_tree_pointers
15880         (lto_input_ts_type_non_common_tree_pointers): Likewise.
15882 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
15884         * var-tracking.c (add_stores): Return instead of asserting if old
15885         and new values for conditional store are the same.
15887 2014-06-30  Richard Henderson  <rth@redhat.com>
15889         PR rtl-opt/61608
15890         PR target/39284
15891         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
15892         the cfg if there were any changes.
15893         * passes.def: Revert move of peephole2 after reorder_blocks;
15894         move duplicate_computed_gotos before peephole2.
15896 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
15898         * except.c (emit_note_eh_region_end): New helper function.
15899         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
15900         emit EH_REGION_END note.
15901         * jump.c (cleanup_barriers): Do not split a call and its
15902         corresponding CALL_ARG_LOCATION note.
15904 2014-06-30  Jeff Law  <law@redhat.com>
15906         PR tree-optimization/61607
15907         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
15908         deeper into the SSA_NAME_VALUE chain.
15910 2014-06-30  Marek Polacek  <polacek@redhat.com>
15912         * convert.c (convert_to_integer): Don't instrument conversions if the
15913         function has no_sanitize_undefined attribute.
15914         * ubsan.c: Don't run the ubsan pass if the function has
15915         no_sanitize_undefined attribute.
15917 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
15919         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
15920         -fsanitize=undefined suboptions.
15922 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
15924         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
15925         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
15926         against bigendian and adjust indices.
15928 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
15930         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
15932 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15934         PR target/61633
15935         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
15936         Add alternative; make early clobber.  Adjust both split patterns
15937         to use operand 0 as the working register.
15939 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
15941         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
15942         as ira_object_id_map might be NULL, or 1.
15944 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
15946         * loop-invariant.c (get_inv_cost): Handle register class.
15947         (gain_for_invariant): Check the register pressure of the inv
15948         and its overlapped register class, other than all.
15950 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
15952         * doc/invoke.texi (Optimize Options): Fix descriptions of
15953         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
15955 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
15957         * doc/extend.texi (Function Attributes): Update 'naked' attribute
15958         documentation.
15960 2014-06-29  Tobias Grosser <tobias@grosser.es>
15962         PR bootstrap/61650
15963         * graphite-isl-ast-to-gimple.c: Add missing guards.
15965 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15967         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
15968         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
15969         * flag-types.h: Add new enum fgraphite_generator.
15970         * graphite-isl-ast-to-gimple.c: New.
15971         * graphite-isl-ast-to-gimple.h: New.
15972         * graphite.c (graphite_transform_loops): Add choice of Graphite
15973         code generator, which depends on flag_graphite_code_gen.
15975 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15977         * graphite-dependences.c (subtract_commutative_associative_deps):
15978         Add NULL checking of the following variables: must_raw_no_source,
15979         may_raw_no_source, must_war_no_source, may_war_no_source,
15980         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
15981         must_war, may_war, must_waw, may_waw.
15983 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
15985         * graphite-clast-to-gimple.c: gloog is renamed to
15986         graphite_regenerate_ast_cloog.  gloog_error is renamed to
15987         graphite_regenerate_error.
15988         * graphite-clast-to-gimple.h: The definition of the struct
15989         bb_pbb_def is moved to graphite-htab.h.
15990         Add inclusion of the hash-table.h.
15991         * graphite-htab.h: The declaration of the function gloog is moved
15992         to graphite-clast-to-gimple.h and renamed to
15993         graphite_regenerate_ast_cloog.
15994         * graphite.c (graphite_transform_loops): gloog is renamed
15995         to graphite_regenerate_ast_cloog.
15997 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
15999         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
16000         type is complete.
16001         (write_ts_type_common_tree_pointers): Do not stream fields not set
16002         for incomplete types; do not stream duplicated fields for variants;
16003         sanity check that variant and type match.
16004         (write_ts_type_non_common_tree_pointers): Likewise.
16005         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
16006         TYPE_SIZE whether type is complete.
16007         (lto_input_ts_type_common_tree_pointers): Do same changes as in
16008         write_ts_type_common_tree_pointers
16009         (lto_input_ts_type_non_common_tree_pointers): Likewise.
16011 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16013         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
16015 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16017         * tree-inline.c (remap_type_1): Do not duplicate fields
16018         that are shared in between type and its main variant.
16020 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16022         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
16023         of the type.
16024         (ipa_set_ancestor_jf) Likewise.
16025         (check_stmt_for_type_change): Check that we work on main variant.
16026         (detect_type_change): Look into main variant.
16027         (compute_known_type_jump_func): Check that main variant has BINFO.
16029 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16031         * ipa-devirt.c (set_type_binfo): New function.
16032         (add_type_duplicate): Use it.
16033         (get_odr_type): Sanity check that binfos points to main variants.
16034         (get_class_context): Be sure the context's outer_type is main variant.
16035         (contains_type_p): Walk main variant.
16036         (get_polymorphic_call_info_for_decl): Set outer_type to be
16037         main variant.
16038         (get_polymorphic_call_info): Likewise.
16039         (possible_polymorphic_call_targets): Sanity check that we operate
16040         on main variant.
16042 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
16044         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
16046 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16048         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
16049         accidental change due to wide-int branch merge.
16051 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16053         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
16054         compressed debug support.
16055         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
16056         * configure: Regenerate.
16057         * config.in: Regenerate.
16058         * common.opt (compressed_debug_sections): New enum.
16059         (gz, gz=): New options.
16060         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
16061         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
16062         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
16063         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
16064         LINK_COMPRESS_DEBUG_SPEC.
16065         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
16066         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
16067         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
16068         (Debugging Options): Document -gz[=type].
16070 2014-06-27  Martin Jambor  <mjambor@suse.cz>
16072         PR ipa/61160
16073         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
16074         args_to_skip, use those from node instead.  Copy args_to_skip and
16075         combined_args_to_skip from node to the new thunk.
16076         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
16077         (cgraph_create_virtual_clone): Moved computation of
16078         combined_args_to_skip...
16079         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
16081 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
16083         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
16084         redundant diagnostic machinary.
16086 2014-06-27  Richard Biener  <rguenther@suse.de>
16088         * tree-ssa-math-opts.c (bswap_replace): Fix
16089         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
16091 2014-06-27  Martin Liska  <mliska@suse.cz>
16093         * gimple.h (gimple_location_safe): New function introduced.
16094         * cgraphunit.c (walk_polymorphic_call_targets): Usage
16095         of gimple_location_safe replaces gimple_location.
16096         (gimple_fold_call): Likewise.
16097         * ipa-devirt.c (ipa_devirt): Likewise.
16098         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16099         * ipa.c (walk_polymorphic_call_targets): Likewise.
16100         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
16102 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
16104         PR tree-optimization/57233
16105         PR tree-optimization/61299
16106         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
16107         functions.
16108         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
16109         would be lowered to scalar shifts, check if corresponding
16110         shifts and vector BIT_IOR_EXPR are supported and don't lower
16111         or lower just to narrower vector type in that case.
16112         * expmed.c (expand_shift_1): Fix up handling of vector
16113         shifts and rotates.
16115 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
16117         PR target/61586
16118         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
16120 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
16122         * doc/invoke.texi (-fsemantic-interposition): Document.
16123         * common.opt (fsemantic-interposition): New flag.
16124         * varasm.c (decl_replaceable_p): Use it.
16126 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16128         PR target/61542
16129         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
16130         extraction other than index 3.
16132 2014-06-26  Teresa Johnson  <tejohnson@google.com>
16134         * doc/invoke.texi: Fix typo.
16135         * dumpfile.c: Add support for documented -fdump-* options
16136         optimized/missed/note/optall.
16138 2014-06-26  Martin Jambor  <mjambor@suse.cz>
16140         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
16141         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
16142         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
16143         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
16144         * opts.c (default_options_optimization): Set
16145         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
16146         * doc/invoke.texi (allow-load-data-races)
16147         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
16148         (allow-store-data-races): Document the new default.
16150 2014-06-26  Martin Jambor  <mjambor@suse.cz>
16152         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
16153         renamed to ipa_impossible_devirt_target.  Fix typo.
16154         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
16155         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
16156         ipa_impossible_devirt_target.
16158 2014-06-26  Richard Biener  <rguenther@suse.de>
16160         PR tree-optimization/61607
16161         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
16162         explaining why we restrict copies on loop depth.
16163         * tree-ssa-dom.c (cprop_operand): Remove restriction on
16164         on loop depth.
16165         (record_equivalences_from_phis): Instead add it here.
16167 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
16169         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
16170         (LTO_WRAPPER_OBJS): New variable.
16171         (lto-wrapper$(exeext)): Use it.
16172         * collect2.c: Include "collect-utils.h".
16173         (verbose, debug): Remove variables.
16174         (at_file_supplied): No longer static.
16175         (tool_name): New variable.
16176         (do_wait, fork_execute, maybe_unlink): Don't declare.
16177         (tool_cleanup): No longer static.
16178         (notice): Remove function.
16179         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
16180         fork_execute calls.
16181         (collect_wait, do_wait, collect_execute): Remove functions.
16182         (maybe_unlink): No longer static.
16183         * collect2.h (verbose, debug): Don't declare.
16184         (at_file_supplied): Declare.
16185         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
16186         changed.
16187         (collect_execute): Replace with implementation from collect2, plus a
16188         new arg use_atfile.  All callers changed.
16189         (collect_wait): Replace with implementation from collect2.
16190         (maybe_unlink_file): Remove function.
16191         (fork_execute): Replace with implementation from collect2, plus a
16192         new arg use_atfile.  All callers changed.
16193         (do_wait): Add call to utils_cleanup to the error path.
16194         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
16195         (tool_cleanup): Adjust declarations.
16196         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
16197         * tlink.c: Include "collect-utils.h".
16198         (tlink_execute): New arg use_atfile.  All callers changed.
16199         (tlink_init, tlink_execute): Remove declarations.
16201         * collect-utils.c (save_temps): New variable.
16202         (do_wait): Use it instead of debug.  Use fatal_error.
16203         * collect-utils.h (save_temps): Declare.
16204         * collect2.c (verbose): Rename from vflag.  All uses changed.
16205         (tool_cleanup): New function, copied from collect_atexit.
16206         (collect_atexit, handler): Just call it.
16207         * collect2.h (verbose): Declaration renamed from vflag.
16208         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
16209         debug.
16211         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
16212         (lto-wrapper$(exeext)): Link with collect-utils.o.
16213         * collect-utils.c: New file.
16214         * collect-utils.h: New file.
16215         * lto-wrapper.c: Include "collect-utils.h".
16216         (args_name): Delete variable.
16217         (tool_name): New variable.
16218         (tool_cleanup): New function.
16219         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
16220         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
16221         (fork_execute): Remove functions.
16223 2014-06-26  Nick Clifton  <nickc@redhat.com>
16225         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
16227         * doc/extend.texi (Function Attributes): Fix typo in description
16228         of RX vector attribute.
16230 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
16232         * config.gcc (supported_defaults): Error when passing either
16233         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
16235 2014-06-26  Richard Biener  <rguenther@suse.de>
16237         * tree-ssa-dom.c (cprop_operand): Remove restriction on
16238         propagating volatile pointers.
16240 2014-06-26  Richard Biener  <rguenther@suse.de>
16242         PR tree-optimization/61607
16243         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
16244         loop if we redirected its latch edge.
16245         (thread_block_1): Do not cancel loops prematurely.
16247 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
16249         * toplev.c (backend_init_target): Move init_emit_regs and
16250         init_regs to...
16251         (backend_init) ... here; skip ira_init_once and backend_init_target.
16252         (target_reinit) ... and here; clear
16253         this_target_rtl->lang_dependent_initialized.
16254         (lang_dependent_init_target): Clear
16255         this_target_rtl->lang_dependent_initialized;
16256         break out rtl initialization to ...
16257         (initialize_rtl): ... here; call also backend_init_target
16258         and ira_init_once.
16259         * toplev.h (initialize_rtl): New function.
16260         * function.c: Include toplev.h
16261         (init_function_start): Call initialize_rtl.
16262         * rtl.h (target_rtl): Add target_specific_initialized,
16263         lang_dependent_initialized.
16265 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
16266             Jakub Jelinek  <jakub@redhat.com>
16268         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
16270 2014-06-25  Tom de Vries  <tom@codesourcery.com>
16272         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
16274 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16276         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
16277         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
16278         Issue a strict overflow warning if appropriate.
16280 2014-06-25  Martin Liska  <mliska@suse.cz>
16282         IPA REF refactoring
16283         * Makefile.in: Removed header file (ipa-ref-inline.h).
16284         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
16285         called.
16286         (cgraph_speculative_call_info): Likewise.
16287         (cgraph_for_node_thunks_and_aliases): Likewise.
16288         (cgraph_for_node_and_aliases): Likewise.
16289         (verify_cgraph_node): Likewise.
16290         * cgraph.h: Batch of IPA REF functions become member functions of
16291         symtab_node: add_reference, maybe_add_reference, clone_references,
16292         clone_referring, clone_reference, find_reference,
16293         remove_stmt_references, remove_all_references,
16294         remove_all_referring, dump_references, dump_referring,
16295         has_alias_p, iterate_reference, iterate_referring.
16296         * cgraphbuild.c (record_reference): New IPA REF function used.
16297         (record_type_list): Likewise.
16298         (record_eh_tables): Likewise.
16299         (mark_address): Likewise.
16300         (mark_load): Likewise.
16301         (mark_store): Likewise.
16302         (pass_build_cgraph_edges): Likewise.
16303         (rebuild_cgraph_edge): Likewise.
16304         (cgraph_rebuild_references): Likewise.
16305         (pass_remove_cgraph_callee_edges): Likewise.
16306         * cgraphclones.c (cgraph_clone_node): Likewise.
16307         (cgraph_create_virtual_clone): Likewise.
16308         (cgraph_materialize_clone): Likewise.
16309         (cgraph_materialize_all_clones): Likewise.
16310         * cgraphunit.c (cgraph_reset_node): Likewise.
16311         (cgraph_reset_node): Likewise.
16312         (analyze_function): Likewise.
16313         (assemble_thunks_and_aliases): Likewise.
16314         (expand_function): Likewise.
16315         * ipa-comdats.c (propagate_comdat_group): Likewise.
16316         (enqueue_references): Likewise.
16317         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
16318         (create_specialized_node): Likewise.
16319         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
16320         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
16321         * ipa-inline.c (reset_edge_caches): Likewise.
16322         (update_caller_keys): Likewise.
16323         (execute): Likewise.
16324         * ipa-prop.c (remove_described_reference): Likewise.
16325         (propagate_controlled_uses): Likewise.
16326         (ipa_edge_duplication_hook): Likewise.
16327         (ipa_modify_call_arguments): Likewise.
16328         * ipa-pure-const.c (propagate_pure_const): Likewise.
16329         * ipa-ref-inline.h: Header file removed, functions moved
16330         to symtab_node class.
16331         * ipa-ref.c (remove_reference): New class member function.
16332         (cannot_lead_to_return): New class member function.
16333         (referring_ref_list): Likewise.
16334         (referred_ref_list): Likewise.
16335         Rest of functions moved to symtab_node class.
16336         * ipa-ref.h: New member functions remove_reference,
16337         cannot_lead_to_return, referring_ref_list, referred_ref_list added
16338         to ipa_ref class.
16339         ipa_ref_list class has new member functions: first_reference,
16340         first_referring, clear, nreferences.
16341         * ipa-reference.c (analyze_function): New IPA REF function used.
16342         (write_node_summary_p): Likewise.
16343         (ipa_reference_write_optimization_summary): Likewise.
16344         * ipa-split.c (split_function): Likewise.
16345         * ipa-utils.c (ipa_reverse_postorder): Likewise.
16346         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
16347         (function_and_variable_visibility): Likewise.
16348         * ipa.c (has_addr_references_p): Likewise.
16349         (process_references): Argument type changed.
16350         (symtab_remove_unreachable_nodes): New IPA REF function used.
16351         (process_references): Likewise.
16352         (set_writeonly_bit): Likewise.
16353         * lto-cgraph.c: Implementation of new symtab_node member functions
16354         that uses new IPA REF functions.
16355         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
16356         function used.
16357         * lto-streamer-out.c (output_symbol_p): Likewise.
16358         * lto-streamer.h (referenced_from_this_partition_p): Argument type
16359         changed.
16360         * symtab.c: Implementation of new IPA REF API.
16361         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
16362         (ipa_tm_create_version): Likewise.
16363         (ipa_tm_execute): Likewise.
16364         * tree-emutls.c (gen_emutls_addr): Likewise.
16365         * tree-inline.c (copy_bb): Likewise.
16366         (delete_unreachable_blocks_update_callgraph): Likewise.
16367         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
16368         (varpool_for_node_and_aliases): Likewise.
16370 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
16372         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
16374 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
16376         PR bootstrap/61598
16377         * fold-const.c (fold_checksum_tree): Use a hash_table of const
16378         tree_node * instead of tree_node *.
16379         (fold): Adjust.
16380         (print_fold_checksum): Likewise.
16381         (fold_check_failed): Likewise.
16382         (debug_fold_checksum): Likewise.
16383         (fold_build1_stat_loc): Likewise.
16384         (fold_build2_stat_loc): Likewise.
16385         (fold_build3_stat_loc): Likewise.
16386         (fold_build_call_array_loc): Likewise.
16388 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
16390         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
16391         implementation with call to...
16392         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
16393         function.
16394         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
16395         Declare.
16397 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
16399         PR tree-optimization/57742
16400         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
16401         after replacing the statement.
16403 2014-06-25  Nick Clifton  <nickc@redhat.com>
16405         * config/v850/v850.c (GHS_default_section_names): Change to const
16406         char * type.
16407         (GHS_current_section_names): Likewise.
16408         (v850_insert_attributes): Do not build strings, just assign the
16409         names directly.  Change the type of 'chosen_section' to const
16410         char*.
16411         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
16412         directly to the array entry.
16413         * config/v850/v850.h (GHS_default_section_names): Change to const
16414         char * type.
16415         (GHS_current_section_names): Likewise.
16417 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16419         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
16420         (LANG_HOOKS_DECLS): Add it.
16421         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
16422         has correct type.
16423         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
16424         * langhooks.h (struct lang_hooks_for_decls): Add
16425         omp_clause_linear_ctor hook.
16426         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
16427         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
16428         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
16429         combined simd loop use omp_clause_linear_ctor hook.
16431 2014-06-24  Cong Hou  <congh@google.com>
16433         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
16434         pattern recognition.
16435         (type_conversion_p): PROMOTION is true if it's a type promotion
16436         conversion, and false otherwise.  Return true if the given expression
16437         is a type conversion one.
16438         * tree-vectorizer.h: Adjust the number of patterns.
16439         * tree.def: Add SAD_EXPR.
16440         * optabs.def: Add sad_optab.
16441         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
16442         * expr.c (expand_expr_real_2): Likewise.
16443         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
16444         * gimple.c (get_gimple_rhs_num_ops): Likewise.
16445         * optabs.c (optab_for_tree_code): Likewise.
16446         * tree-cfg.c (estimate_operator_cost): Likewise.
16447         * tree-ssa-operands.c (get_expr_operands): Likewise.
16448         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
16449         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
16450         * doc/generic.texi: Add document for SAD_EXPR.
16451         * doc/md.texi: Add document for ssad and usad.
16453 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16455         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
16456         qualification in cast.
16458 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
16460         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
16461         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
16462         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
16463         (tree_function_decl): ... here.
16464         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
16465         streaming of vindex to ...
16466         (write_ts_function_decl_tree_pointers): ... here.
16467         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
16468         Do not stream DECL_VINDEX.
16469         (lto_input_ts_function_decl_tree_pointers): Stream it here.
16471 2014-06-24  Catherine Moore  <clm@codesourcery.com>
16472             Sandra Loosemore  <sandra@codesourcery.com>
16474         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
16475         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
16476         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
16478 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
16480         * doc/invoke.texi (Warning Options): Remove duplicated
16481         -Wmaybe-uninitialized.
16483 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
16485         PR tree-optimization/57742
16486         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
16487         (handle_builtin_malloc, handle_builtin_memset): New functions.
16488         (strlen_optimize_stmt): Call them.
16489         * passes.def: Move strlen after loop+dom but before vrp.
16491 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16493         PR target/61570
16494         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
16495         model family 6 CPU with has_longmode never use a CPU without
16496         64-bit support.
16498 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16500         PR target/61570
16501         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
16502         the last change.
16504 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16506         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
16507         * dominance.c (iterate_fix_dominators): Use hash_map instead of
16508         pointer_map.
16509         * hash-map.h: New file.
16510         * ipa-comdats.c: Use hash_map instead of pointer_map.
16511         * ipa.c: Likewise.
16512         * lto-section-out.c: Adjust.
16513         * lto-streamer.h: Replace pointer_map with hash_map.
16514         * symtab.c (verify_symtab): Likewise.
16515         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
16516         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
16517         * tree-streamer.h: Likewise.
16518         * tree-streamer.c: Adjust.
16519         * pointer-set.h: Remove pointer_map.
16521 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16523         * hash-table.h: Add a template arg to choose between storing values
16524         and storing pointers to values, and then provide partial
16525         specializations for both.
16526         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
16527         should store, not the type values should point to.
16528         * tree-into-ssa.c (var_info_hasher): Likewise.
16529         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
16530         * tree-complex.c: Adjust.
16531         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
16532         table instead of int_tree_map *.
16533         * tree-parloops.c: Adjust.
16534         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
16535         type is being stored.
16536         * tree-vectorizer.c: Adjust.
16538 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
16540         * hash-table.h: Remove a layer of indirection from hash_table so that
16541         it contains the hash table's data instead of a pointer to the data.
16542         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
16543         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
16544         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
16545         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
16546         fold-const.c, gcse.c, ggc-common.c,
16547         gimple-ssa-strength-reduction.c, gimplify.c,
16548         graphite-clast-to-gimple.c, graphite-dependences.c,
16549         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
16550         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16551         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
16552         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
16553         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
16554         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
16555         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
16556         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
16557         tree-ssa-live.c, tree-ssa-loop-im.c,
16558         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
16559         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
16560         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16561         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
16562         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
16563         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
16564         vtable-verify.c, vtable-verify.h: Adjust.
16566 2014-06-24  Richard Biener  <rguenther@suse.de>
16568         PR tree-optimization/61572
16569         * tree-ssa-sink.c (statement_sink_location): Do not sink
16570         loads from hard registers.
16572 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16574         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
16575         not mentioned in clauses use private clause if the iterator is
16576         declared in #pragma omp for simd, and when adding lastprivate
16577         instead, add it to the outer #pragma omp for too.  Diagnose
16578         if the variable is private in outer context.  For simd collapse > 1
16579         loops, replace all iterators with temporaries.
16580         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
16581         same even in collapse > 1 loops.
16583         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
16584         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
16585         non-NULL.
16586         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
16587         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
16588         non-NULL.
16589         (gimplify_adjust_omp_clauses): Likewise.
16590         * omp-low.c (lower_rec_simd_input_clauses,
16591         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
16592         safelen the same as safelen(1).
16593         * tree-nested.c (convert_nonlocal_omp_clauses,
16594         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
16595         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
16596         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
16597         Fixup handling of GIMPLE_OMP_TARGET.
16598         (convert_tramp_reference_stmt, convert_gimple_call): Handle
16599         GIMPLE_OMP_TARGET.
16601 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
16603         PR tree-optimization/61554
16604         * tree-ssa-propagate.c: Include "bitmap.h".
16605         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
16606         properly update constructor/destructor.
16607         (substitute_and_fold_dom_walker::before_dom_children):
16608         Remove call to gimple_purge_dead_eh_edges, add bb->index to
16609         need_eh_cleaup instead.
16610         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
16611         need_eh_cleanup.
16613 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
16615         * varpool.c (dump_varpool_node): Dump used_by_single_function.
16616         * tree-pass.h (make_pass_ipa_single_use): New pass.
16617         * cgraph.h (used_by_single_function): New flag.
16618         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
16619         Stream it.
16620         * passes.def (pass_ipa_single_use): Scedule.
16621         * ipa.c (BOTTOM): New macro.
16622         (meet): New function
16623         (propagate_single_user): New function.
16624         (ipa_single_use): New function.
16625         (pass_data_ipa_single_use): New pass.
16626         (pass_ipa_single_use): New pass.
16627         (pass_ipa_single_use::gate): New gate.
16628         (make_pass_ipa_single_use): New function.
16630 2014-06-23  Kai Tietz  <ktietz@redhat.com>
16632         PR target/39284
16633         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
16634         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
16636 2014-06-23  Richard Biener  <rguenther@suse.de>
16638         * tree-ssa-loop.c (gate_loop): New function.
16639         (pass_tree_loop::gate): Call it.
16640         (pass_data_tree_no_loop, pass_tree_no_loop,
16641         make_pass_tree_no_loop): New.
16642         * tree-vectorizer.c: Include tree-scalar-evolution.c
16643         (pass_slp_vectorize::execute): Initialize loops and SCEV if
16644         required.
16645         (pass_slp_vectorize::clone): New method.
16646         * timevar.def (TV_TREE_NOLOOP): New.
16647         * tree-pass.h (make_pass_tree_no_loop): Declare.
16648         * passes.def (pass_tree_no_loop): New pass group with
16649         SLP vectorizer.
16651 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16653         PR target/61570
16654         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
16655         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
16657 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
16659         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
16660         "yes" where needed.
16662 2014-06-23  Alan Modra  <amodra@gmail.com>
16664         PR bootstrap/61583
16665         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
16666         to zero on debug statements.
16668 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
16670         PR target/60825
16671         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
16672         Ignore third operand if present by marking qualifier_internal.
16674         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
16676         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
16677         vector extension.
16678         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
16679         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
16680         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
16681         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
16682         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
16683         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
16684         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
16685         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
16686         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
16687         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
16688         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
16689         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
16690         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
16691         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
16692         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
16693         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
16694         logic in GCC vector extensions
16696         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
16697         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
16698         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
16699         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
16700         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
16701         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
16702         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
16703         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
16704         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
16705         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
16707         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
16709         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
16710         extensions.
16712         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
16713         (vget_low_s64): Use __GET_LOW macro.
16714         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
16715         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
16716         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
16717         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
16718         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
16720         (vcombine_s64): Use GCC vector extensions; remove cast.
16721         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
16722         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
16723         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
16724         Fix type signature; remove cast.
16726 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
16728         PR target/60825
16729         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
16730         V1DFmode.
16731         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
16732         add V1DFmode
16733         (BUILTIN_VD1): New.
16734         (BUILTIN_VD_RE): Remove.
16735         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
16736         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
16737         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
16738         variant but not df.
16739         (vreinterpretv1df*, vreinterpret*v1df): New.
16740         (vreinterpretdf*, vreinterpret*df): Remove.
16741         * config/aarch64/aarch64-simd.md (aarch64_create,
16742         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
16743         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
16744         (VD1): New.
16745         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
16746         (vcreate_f64): Remove cast, use v1df builtin.
16747         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
16748         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
16749         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
16750         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
16751         vmov_n_f64, vst1_f64): Use gcc vector extensions.
16752         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
16753         add range check using __builtin_aarch64_im_lane_boundsi.
16754         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
16755         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
16756         type signature, use gcc vector extensions.
16757         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
16758         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
16759         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
16760         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
16761         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
16762         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
16763         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
16764         vreinterpret_u64_f64): Use v1df builtin not df.
16766 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
16768         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
16769         vector registers.
16771 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
16773         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
16774         priority directly.
16776 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16778         * loop-invariant.c (pre_check_invariant_p): New function.
16779         (find_invariant_insn): Call pre_check_invariant_p.
16781 2014-06-22  Richard Henderson  <rth@redhat.com>
16783         PR target/61565
16784         * compare-elim.c (struct comparison): Add eh_note.
16785         (find_comparison_dom_walker::before_dom_children): Don't eliminate
16786         a redundant comparison in a different EH region.  Purge EH edges if
16787         necessary.
16789 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
16791         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
16792         (var_shift): Use it.
16793         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
16794         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16795         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16796         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16797         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16798         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
16799         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
16800         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
16801         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
16802         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
16803         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
16804         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
16805         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
16806         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
16807         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
16808         *rotldi3_internal15be): Use the new attribute.  Merge register and
16809         integer alternatives.
16811 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
16813         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
16814         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
16815         split, *ashrdi3_internal3 and split): Delete, merge into...
16816         (ashr<mode>3): New expander.
16817         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
16818         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
16820 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
16822         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
16823         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
16824         *rotldi3_internal3 and split): Delete, merge into...
16825         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
16826         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
16827         Use "rotlw" extended mnemonic.
16829 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
16831         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
16832         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
16833         and split, *ashldi3_internal3 and split): Delete, merge into...
16834         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
16835         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
16837 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
16839         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
16840         (lshrsi3, two anonymous define_insns and define_splits,
16841         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
16842         *lshrdi3_internal3 and split): Delete, merge into...
16843         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
16844         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
16846 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
16848         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
16849         Remove "O" alternative.
16851 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
16853         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
16854         (mips_move_from_gpr_cost): Likewise.
16855         (mips_register_move_cost): Update accordingly.
16856         (mips_secondary_reload_class): Remove name of in_p.
16858 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
16860         PR target/61503
16861         * config/i386/i386.md (x86_64_shrd, x86_shrd,
16862         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
16864 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16866         * config/nios2/nios2.c: Include "builtins.h".
16868 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
16870         * cgraph.h (tls_model_names): New variable.
16871         * print-tree.c (print_node): Simplify.
16872         * varpool.c (tls_model_names): New variable.
16873         (dump_varpool_node): Output tls model.
16875 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
16877         * ipa-visibility.c (function_and_variable_visibility): Disable
16878         temporarily local aliases for some targets.
16880 2014-06-20  Marek Polacek  <polacek@redhat.com>
16882         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
16883         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
16884         into SANITIZE_UNDEFINED.
16885         * doc/invoke.texi: Describe -fsanitize=bounds.
16886         * gimplify.c (gimplify_call_expr): Add gimplification of internal
16887         functions created in the FEs.
16888         * internal-fn.c: Move "internal-fn.h" after "tree.h".
16889         (expand_UBSAN_BOUNDS): New function.
16890         * internal-fn.def (UBSAN_BOUNDS): New internal function.
16891         * internal-fn.h: Don't define internal functions here.
16892         * opts.c (common_handle_option): Add -fsanitize=bounds.
16893         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
16894         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
16895         * tree-core.h: Define internal functions here.
16896         (struct tree_base): Add ifn field.
16897         * tree-pretty-print.c: Include "internal-fn.h".
16898         (dump_generic_node): Handle functions without CALL_EXPR_FN.
16899         * tree.c (get_callee_fndecl): Likewise.
16900         (build_call_expr_internal_loc): New function.
16901         * tree.def (CALL_EXPR): Update description.
16902         * tree.h (CALL_EXPR_IFN): Define.
16903         (build_call_expr_internal_loc): Declare.
16904         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
16905         types.
16906         (ubsan_type_descriptor): Change bool parameter to enum
16907         ubsan_print_style.  Adjust the code.  Add handling of
16908         UBSAN_PRINT_ARRAY.
16909         (ubsan_expand_bounds_ifn): New function.
16910         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
16911         (ubsan_build_overflow_builtin): Likewise.
16912         (instrument_bool_enum_load): Likewise.
16913         (ubsan_instrument_float_cast): Likewise.
16914         * ubsan.h (enum ubsan_print_style): New enum.
16915         (ubsan_expand_bounds_ifn): Declare.
16916         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
16918 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
16920         * config/rs6000/rs6000.md: Append `DONE' to preparation
16921         statements of `bswap' pattern splitters.
16923 2014-06-20  Tom de Vries  <tom@codesourcery.com>
16925         * target.def (call_fusage_contains_non_callee_clobbers): Update
16926         definition.
16927         * doc/tm.texi: Regenerate.
16929 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
16930             Max Ostapenko  <m.ostapenko@partner.samsung.com>
16932         PR sanitizer/61547
16933         * asan.c (instrument_strlen_call): Fixed instrumentation of
16934         trailing byte.
16936 2014-06-20  Martin Jambor  <mjambor@suse.cz>
16938         PR ipa/61540
16939         * ipa-prop.c (impossible_devirt_target): New function.
16940         (try_make_edge_direct_virtual_call): Use it, also instead of
16941         asserting.
16943 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
16944             Max Ostapenko  <m.ostapenko@partner.samsung.com>
16946         PR sanitizer/61530
16947         * asan.c (build_check_stmt): Add condition.
16949 2014-06-20  Martin Jambor  <mjambor@suse.cz>
16951         PR ipa/61211
16952         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
16953         expanded clones.
16955 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16957         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
16958         Update comments.
16959         (VCONQ): Make comment more helpful.
16960         (VCON): Delete.
16961         * config/aarch64/aarch64-simd.md
16962         (aarch64_sqdmulh_lane<mode>):
16963         Use VCOND for operands 2.  Update lane checking and flipping logic.
16964         (aarch64_sqrdmulh_lane<mode>): Likewise.
16965         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
16966         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
16967         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
16968         attribute of operand 3 to VCOND.
16969         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
16970         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
16971         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
16972         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
16973         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
16974         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
16975         define_insn.
16976         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
16977         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
16978         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
16979         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
16980         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
16981         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
16982         operand to VCOND.  Update lane flipping and bounds checking logic.
16983         (aarch64_sqdmlal2_lane<mode>): Likewise.
16984         (aarch64_sqdmlsl_lane<mode>): Likewise.
16985         (aarch64_sqdmull_lane<mode>): Likewise.
16986         (aarch64_sqdmull2_lane<mode>): Likewise.
16987         (aarch64_sqdmlal_laneq<mode>):
16988         Replace VCON usage with VCONQ.
16989         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
16990         (aarch64_sqdmlal2_laneq<mode>): Emit
16991         aarch64_sqdmlal2_laneq<mode>_internal insn.
16992         Replace VCON with VCONQ.
16993         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
16994         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16995         (aarch64_sqdmull_laneq<mode>): Emit
16996         aarch64_sqdmull_laneq<mode>_internal insn.
16997         Replace VCON with VCONQ.
16998         (aarch64_sqdmull2_laneq<mode>): Emit
16999         aarch64_sqdmull2_laneq<mode>_internal insn.
17000         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
17001         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
17002         of 3rd argument to int16x4_t.
17003         (vqdmlalh_lane_s16): Likewise.
17004         (vqdmlslh_lane_s16): Likewise.
17005         (vqdmull_high_lane_s16): Likewise.
17006         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
17007         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
17008         (vqdmlsl_lane_s16): Likewise.
17009         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
17010         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
17011         (vqdmlals_lane_s32): Likewise.
17012         (vqdmlsls_lane_s32): Likewise.
17013         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
17014         (vqdmulls_lane_s32): Likewise.
17015         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
17016         (vqdmlsl_lane_s32): Likewise.
17017         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
17018         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
17019         (vqrdmulhh_lane_s16): Likewise.
17020         (vqdmlsl_high_lane_s16): Likewise.
17021         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
17022         (vqdmlsl_high_lane_s32): Likewise.
17023         (vqrdmulhs_lane_s32): Likewise.
17025 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17027         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
17028         get_call_reg_set_usage.
17030 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17032         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
17033         it contains all call_used_regs.
17035 2014-06-20  Tom de Vries  <tom@codesourcery.com>
17037         * final.c (collect_fn_hard_reg_usage): Add and use variable
17038         function_used_regs.
17040 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
17042         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
17043         (set_init_priority, get_init_priority, set_fini_priority,
17044         get_fini_priority): New methods.
17045         * tree.c (init_priority_for_decl): Remove.
17046         (init_ttree): Do not initialize init priority.
17047         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
17048         (decl_priority_info): Remove.
17049         (decl_init_priority_insert): Rewrite.
17050         (decl_fini_priority_insert): Rewrite.
17051         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
17052         tree_priority_map_marked_p): Remove.
17053         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
17054         * lto-streamer-out.c (hash_tree): Do not hash priorities.
17055         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
17056         not output priorities.
17057         (pack_ts_function_decl_value_fields): Likewise.
17058         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17059         not input priorities.
17060         (unpack_ts_function_decl_value_fields): Likewise.
17061         * symtab.c (symbol_priority_map): Declare.
17062         (init_priority_hash): Declare.
17063         (symtab_unregister_node): Unregister from priority hash, too.
17064         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
17065         New methods.
17066         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
17067         (symbol_priority_info): New function.
17068         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
17069         New methods.
17070         * tree-core.h (tree_priority_map): Remove.
17072 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
17074         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
17075         0xff to uint64_t before shifting it up.
17077 2014-06-20  Julian Brown  <julian@codesourcery.com>
17078             Chung-Lin Tang  <cltang@codesourcery.com>
17080         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
17081         TARGET_THUMB1_ONLY. Add comments.
17083 2014-06-19  Tom de Vries  <tom@codesourcery.com>
17085         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
17086         return type to void.
17087         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
17089 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17091         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
17092         as "move", from depends_on.
17094 2014-06-19  Terry Guo  <terry.guo@arm.com>
17096         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
17097         stage.
17099 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
17101         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
17102         Remove cr5.
17103         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
17105 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17107         PR target/61550
17108         * config/sh/sh.c (prepare_move_operands): Don't process TLS
17109         addresses here if reload in progress or completed.
17111 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17113         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
17114         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
17115         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
17116         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
17117         (mips_register_priority): New function that implements the target
17118         hook TARGET_REGISTER_PRIORITY.
17119         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
17120         (mips_lra_p): Likewise for TARGET_LRA_P.
17121         (TARGET_REGISTER_PRIORITY): Define macro.
17122         (TARGET_SPILL_CLASS): Likewise.
17123         (TARGET_LRA_P): Likewise.
17124         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
17125         classes.
17126         (REG_CLASS_NAMES): Likewise.
17127         (REG_CLASS_CONTENTS): Likewise.
17128         (BASE_REG_CLASS): Use M16_SP_REGS.
17129         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
17130         New set attribute to enable alternatives depending on the register
17131         allocator used.
17132         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
17133         (*lea64): Disable pattern for MIPS16.
17134         * config/mips/mips.opt (mlra): New option.
17136 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17138         * lra-constraints.c (base_to_reg): New function.
17139         (process_address): Use new function.
17141 2014-06-18  Tom de Vries  <tom@codesourcery.com>
17143         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
17144         * config/aarch64/aarch64.c
17145         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
17146         (aarch64_emit_call_insn): New function.
17147         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
17148         of emit_call_insn.
17149         * config/aarch64/aarch64.md (define_expand "call_internal")
17150         (define_expand "call_value_internal", define_expand "sibcall_internal")
17151         (define_expand "sibcall_value_internal"): New.
17152         (define_expand "call", define_expand "call_value")
17153         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
17154         expand variant and aarch64_emit_call_insn.
17156 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
17157             Tom de Vries  <tom@codesourcery.com>
17159         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
17160         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17161         Redefine to true.
17162         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
17163         clobbers to CALL_INSN_FUNCTION_USAGE.
17164         (define_expand "sibcall_internal")
17165         (define_expand "sibcall_value_internal"): New.
17166         (define_expand "call", define_expand "call_value"): Add argument to
17167         arm_emit_call_insn.
17168         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
17169         (define_expand "sibcall_value"): Use sibcall_value_internal and
17170         arm_emit_call_insn.
17172 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17174         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
17176 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17178         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
17179         __udivmoddi4.
17181 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17183         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
17184         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
17185         annotations. Fix DWARF information.
17187 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17189         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
17190         __udivmoddi4, and fixups for negative operands.
17192 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17194         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
17196 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17198         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
17199         to __udivmoddi4.
17201 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17203         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
17204         manipulation.
17206 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17208         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
17209         describing register usage on function entry and exit.
17211 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17213         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
17214         (__aeabi_ldivmod): Fix whitespace.
17216 2014-06-18  Andreas Schwab  <schwab@suse.de>
17218         * doc/md.texi (Standard Names): Use @itemx for grouped items.
17219         Remove blank line after @item.
17221 2014-06-18  Richard Henderson  <rth@redhat.com>
17223         PR target/61545
17224         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
17226 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
17228         * config/arm/arm.c (neon_vector_mem_operand): Allow register
17229         POST_MODIFY for neon loads and stores.
17230         (arm_print_operand): Output post-index register for neon loads and
17231         stores.
17233 2014-06-18  Richard Biener  <rguenther@suse.de>
17235         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
17237 2014-06-18  Richard Biener  <rguenther@suse.de>
17239         * tree-pass.h (make_pass_dce_loop): Remove.
17240         * passes.def: Replace pass_dce_loop with pass_dce.
17241         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
17242         changed free niter estimates and reset the scev cache.
17243         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
17244         make_pass_dce_loop): Remove.
17245         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
17246         (fini_copy_prop): Return whether something changed.  Always
17247         let substitute_and_fold perform DCE and free niter estimates
17248         and reset the scev cache if so.
17249         (execute_copy_prop): If sth changed schedule cleanup-cfg.
17250         (pass_data_copy_prop): Do not unconditionally schedule
17251         cleanup-cfg or update-ssa.
17253 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
17255         PR tree-optimization/61518
17256         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17257         reduction var is used in reduction stmt or phi-function only.
17259 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17261         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
17263 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17265         PR tree-optimization/61517
17266         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
17267         whose rhs's first tree is the source expression instead of the
17268         expression itself.
17269         (find_bswap_or_nop): Likewise.
17270         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
17271         gimple stmt whose rhs's first tree is the source. In the memory source
17272         case, move the stmt to be replaced close to one of the original load to
17273         avoid the problem of a store between the load and the stmt's original
17274         location.
17275         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
17276         signature.
17278 2014-06-18  Andreas Schwab  <schwab@suse.de>
17280         PR rtl-optimization/54555
17281         * postreload.c (move2add_use_add2_insn): Substitute
17282         STRICT_LOW_PART only if it is cheaper.
17284 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
17286         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
17287         Do not use unspec as call operand.  Use memory_operand instead of
17288         memory_nox32_operand and add "m" operand constraint.  Disable
17289         pattern for TARGET_X32.
17290         (*sibcall_pop_memory): Ditto.
17291         (*sibcall_value_memory): Ditto.
17292         (*sibcall_value_pop_memory): Ditto.
17293         (sibcall peepholes): Merge SImode and DImode patterns using
17294         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
17295         Disable pattern for TARGET_X32.  Check if eliminated register is
17296         really dead after call insn.  Generate call RTX without unspec operand.
17297         (sibcall_value peepholes): Ditto.
17298         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
17299         instead of memory_nox32_operand.  Check if eliminated register is
17300         really dead after call insn. Generate call RTX without unspec operand.
17301         (sibcall_value_pop peepholes): Ditto.
17302         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
17304 2014-06-18  Terry Guo  <terry.guo@arm.com>
17306         PR target/61544
17307         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
17308         reach the head.
17310 2014-06-18  Olivier Hainque  <hainque@adacore.com>
17312         * tree-core.h (tree_block): Add an "end_locus" field, allowing
17313         memorization of the end of block source location.
17314         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
17315         * gimplify.c (gimplify_bind_expr): Propagate the block start and
17316         end source location info we have on the block entry/exit code we
17317         generate.
17319 2014-06-18  Richard Biener  <rguenther@suse.de>
17321         * common.opt (fssa-phiopt): New option.
17322         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
17323         but not with -Og.
17324         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
17325         * doc/invoke.texi (-fssa-phiopt): Document.
17327 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17329         * genattrtab.c (n_bypassed): New variable.
17330         (process_bypasses): Initialise n_bypassed.
17331         Count number of bypassed reservations.
17332         (make_automaton_attrs): Allocate space for bypassed reservations
17333         rather than number of bypasses.
17335 2014-06-18  Richard Biener  <rguenther@suse.de>
17337         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
17338         we propagated anything.
17339         (substitute_and_fold_dom_walker::before_dom_children): Something
17340         changed if we propagated into PHI arguments.
17341         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
17342         we removed a stmt.
17344 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
17346         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
17347         vector case.
17348         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
17349         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
17350         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
17351         Introduces alternative way of loads group permutaions.
17352         (vect_transform_grouped_load): Try alternative way of permutations.
17354 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
17356         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
17357         changed in ORT_TARGET region, don't jump to do_outer.
17358         (struct gimplify_adjust_omp_clauses_data): New type.
17359         (gimplify_adjust_omp_clauses_1): Adjust for data being
17360         a struct gimplify_adjust_omp_clauses_data pointer instead
17361         of tree *.  Pass pre_p as a new argument to
17362         lang_hooks.decls.omp_finish_clause hook.
17363         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
17364         splay_tree_foreach to pass both list_p and pre_p.
17365         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
17366         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
17367         gimplify_adjust_omp_clauses callers.
17368         * langhooks.c (lhd_omp_finish_clause): New function.
17369         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
17370         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
17371         * langhooks.h (struct lang_hooks_for_decls): Add a new
17372         gimple_seq * argument to omp_finish_clause hook.
17373         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
17374         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
17375         (scan_omp_parallel, lower_omp_for): When adding
17376         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
17377         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
17378         * tree-nested.c (convert_nonlocal_omp_clauses,
17379         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
17380         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
17382 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
17384         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
17385         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
17387 2014-06-17  Xinliang David Li  <davidxl@google.com>
17389         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
17390         * passes.c (pass_init_dump_file): Do not set initialize
17391         flag to false unconditionally.
17393 2014-06-17  Richard Biener  <rguenther@suse.de>
17395         * genopinit.c (main): Use vec<>::qsort method.
17396         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17397         Likewise.
17398         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
17400 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
17402         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
17403         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
17404         (mips_move_to_gpr_cost): Remove ST_REGS case.
17405         (mips_move_from_gpr_cost): Likewise.
17406         (mips_register_move_cost): Likewise.
17407         (mips_secondary_reload_class): Likewise.
17409 2014-06-17  Richard Biener  <rguenther@suse.de>
17411         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
17412         (pass_all_optimizations): Move 3rd copy-prop pass from after
17413         fre to before ifcombine/phiopt.
17415 2014-06-17  Richard Biener  <rguenther@suse.de>
17417         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
17418         and allow all blocks to be forwarders.
17420 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
17422         PR target/61483
17423         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
17424         variable 'size'; calculate 'size' right in the front; use
17425         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
17426         pcum->aapcs_stack_words.
17428 2014-06-17  Nick Clifton  <nickc@redhat.com>
17430         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
17431         (umulhi3, mulsidi3, umulsidi3): Likewise.
17433 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
17435         PR middle-end/61508
17436         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
17437         check for section name.
17439 2014-06-17  Richard Biener  <rguenther@suse.de>
17441         * tree-ssa-propagate.c: Include domwalk.h.
17442         (substitute_and_fold): Outline main worker into a domwalker ...
17443         (substitute_and_fold_dom_walker::before_dom_children): ... here.
17444         Schedule stmts we can fully propagate for removal.  Remove
17445         poor-mans DCE.
17446         (substitute_and_fold): Apply a dominator walk to perform
17447         substitution.  Process stmts scheduled for removal here.
17449 2014-06-17  Richard Biener  <rguenther@suse.de>
17451         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
17452         of PHI node moving.
17454 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
17456         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
17457         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
17458         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17459         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
17460         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
17461         TARGET_HARD_FLOAT.
17462         (get_fpscr) : Likewise.
17464 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
17466         PR rtl-optimization/61325
17467         * lra-constraints.c (valid_address_p): Add forward declaration.
17468         (simplify_operand_subreg): Check address validity before and after
17469         alter_reg of memory subreg.
17471 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
17473         * config/i386/i386.c (decide_alg): Correctly handle
17474         maximum size of stringop algorithm.
17476 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
17478         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
17480 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
17482         PR rtl-optimization/61522
17483         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
17485 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
17487         Revert:
17488         * symtab.c (symtab_node::reset_section): New method.
17489         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
17490         for localization.
17491         * cgraph.h (reset_section): Declare.
17492         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
17493         do not consider comdat locals.
17494         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
17495         for new symbol.
17496         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
17497         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
17498         reset sections of symbols dragged out of the comdats.
17499         (function_and_variable_visibility): Reset sections of
17500         localized symbols.
17502 2014-06-16  Richard Biener  <rguenther@suse.de>
17504         PR tree-optimization/61482
17505         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
17506         [-INF(OVF), +INF(OVF)] range.
17508 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17510         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
17511         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
17512         handling 32-bit multiplication.
17514 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
17516         PR middle-end/61430
17517         * lra-lives.c (process_bb_lives): Skip creating copy during
17518         insn scan when src/dest has constrained to same regno.
17520 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
17522         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
17523         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
17525 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
17527         * asan.c (check_func): New function.
17528         (maybe_create_ssa_name): Likewise.
17529         (build_check_stmt_with_calls): Likewise.
17530         (use_calls_p): Likewise.
17531         (report_error_func): Change interface.
17532         (build_check_stmt): Allow non-integer lengths; add support
17533         for new parameter.
17534         (asan_instrument): Likewise.
17535         (instrument_mem_region_access): Moved code to build_check_stmt.
17536         (instrument_derefs): Likewise.
17537         (instrument_strlen_call): Likewise.
17538         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
17539         * doc/invoke.texi: Describe new parameter.
17540         * params.def: Define new parameter.
17541         * params.h: Likewise.
17542         * sanitizer.def: Describe new builtins.
17544 2014-06-16  Richard Biener  <rguenther@suse.de>
17546         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17547         Make all defs available at the end.
17548         (eliminate): If we remove a PHI node schedule cfg-cleanup.
17550 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
17552         PR plugins/45078
17553         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
17555 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
17557         PR bootstrap/61516
17558         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
17559         initialization.  Replace remaining use of uid.
17561 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
17563         * c-family/c-common.c (handle_tls_model_attribute): Use
17564         set_decl_tls_model.
17565         * c-family/c-common.c (handle_tls_model_attribute): Use
17566         set_decl_tls_model.
17567         * cgraph.h (struct varpool_node): Add tls_model.
17568         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
17569         * tree.h (DECL_TLS_MODEL): Update.
17570         (DECL_THREAD_LOCAL_P): Check that variable is static.
17571         (decl_tls_model): Declare.
17572         (set_decl_tls_model): Declare.
17573         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
17574         set symbol prorperties.
17575         (get_emutls_init_templ_addr): Cleanup.
17576         (new_emutls_decl): Update.
17577         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
17578         (lto_input_varpool_node): Likewise.
17579         * lto-streamer-out.c (hash_tree): Likewise.
17580         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
17581         not stream DECL_TLS_MODEL.
17582         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
17583         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
17585 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
17587         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
17589 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
17591         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
17592         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
17593         lists.
17594         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
17595         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
17596         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
17597         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
17598         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
17599         (df_get_artificial_defs, df_get_artificial_uses)
17600         (df_single_def, df_single_use): Update accordingly.
17601         (df_refs_chain_dump): Take the first element in a linked list as
17602         parameter, rather than a pointer to an array of pointers.
17603         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
17604         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
17605         (df_chain_create_bb_process_use): Likewise.
17606         (df_md_bb_local_compute_process_def): Likewise.
17607         * fwprop.c (process_defs, process_uses): Likewise.
17608         (register_active_defs, update_uses): Likewise.
17609         (forward_propagate_asm): Update for new df_ref linking.
17610         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
17611         (df_null_ref_rec, df_null_mw_rec): Likewise.
17612         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
17613         explicitly.
17614         (df_scan_free_bb_info): Remove check for null artificial_defs.
17615         (df_install_ref_incremental): Adjust for new df_ref linking.
17616         Use a single-element insertion rather than a full sort.
17617         (df_ref_chain_delete_du_chain): Take the first element
17618         in a linked list as parameter, rather than a pointer to an array of
17619         pointers.
17620         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
17621         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
17622         (df_insn_info_delete): Remove check for null defs and call to
17623         df_scan_free_mws_vec.
17624         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
17625         null rather than df_null_*_rec.
17626         (df_insn_rescan_debug_internal): Likewise, and update null
17627         checks in the same way.  Remove check for null defs.
17628         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
17629         Move a single element rather doing a full sort.
17630         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
17631         linking.
17632         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
17633         Initialize df_ref and df_mw_hardreg lists to null rather than
17634         df_null_*_rec.
17635         (df_ref_compare): Take df_refs as parameter, transferring the
17636         old interface to...
17637         (df_ref_ptr_compare): ...this new function.
17638         (df_sort_and_compress_refs): Update accordingly.
17639         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
17640         old interface to...
17641         (df_mw_ptr_compare): ...this new function.
17642         (df_sort_and_compress_mws): Update accordingly.
17643         (df_install_refs, df_install_mws): Return a linked list rather than
17644         an array of pointers.
17645         (df_refs_add_to_chains): Assert that old lists are empty rather
17646         than freeing them.
17647         (df_insn_refs_verify): Don't handle null defs speciailly.
17648         * web.c (union_match_dups): Update for new df_ref linking.
17650 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
17652         * df.h (df_ref_create, df_ref_remove): Delete.
17653         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
17654         (df_ref_remove): Likewise.
17656 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
17658         * df.h (df_single_def, df_single_use): New functions.
17659         * ira.c (find_moveable_pseudos): Use them.
17661 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
17663         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
17664         * df-problems.c (df_note_bb_compute): Use it.
17665         * regstat.c (regstat_bb_compute_ri): Likewise.
17667 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
17669         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
17670         * cse.c (cse_extended_basic_block): Use them.
17671         * dce.c (mark_artificial_use): Likewise.
17672         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
17673         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
17674         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
17675         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
17676         (df_simulate_initialize_backwards): Likewise.
17677         (df_simulate_finalize_backwards): Likewise.
17678         (df_simulate_initialize_forwards): Likewise.
17679         (df_md_simulate_artificial_defs_at_top): Likewise.
17680         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
17681         * regrename.c (init_rename_info): Likewise.
17682         * regstat.c (regstat_bb_compute_ri): Likewise.
17683         (regstat_bb_compute_calls_crossed): Likewise.
17685 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
17687         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
17688         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
17689         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
17690         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
17691         * combine.c (create_log_links): Likewise.
17692         * compare-elim.c (find_flags_uses_in_insn): Likewise.
17693         (try_eliminate_compare): Likewise.
17694         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
17695         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
17696         (remove_reg_equal_equiv_notes_for_defs): Likewise.
17697         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
17698         (word_dce_process_block, dce_process_block): Likewise.
17699         * ddg.c (def_has_ccmode_p): Likewise.
17700         * df-core.c (df_bb_regno_first_def_find): Likewise.
17701         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
17702         * df-problems.c (df_rd_simulate_one_insn): Likewise.
17703         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
17704         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
17705         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
17706         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
17707         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
17708         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
17709         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
17710         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
17711         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
17712         * fwprop.c (local_ref_killed_between_p): Likewise.
17713         (all_uses_available_at, free_load_extend): Likewise.
17714         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
17715         * hw-doloop.c (scan_loop): Likewise.
17716         * ifcvt.c (dead_or_predicable): Likewise.
17717         * init-regs.c (initialize_uninitialized_regs): Likewise.
17718         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
17719         (process_bb_node_lives): Likewise.
17720         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
17721         (find_moveable_pseudos): Likewise.
17722         * loop-invariant.c (check_dependencies, record_uses): Likewise.
17723         * recog.c (peep2_find_free_register): Likewise.
17724         * ree.c (get_defs): Likewise.
17725         * regstat.c (regstat_bb_compute_ri): Likewise.
17726         (regstat_bb_compute_calls_crossed): Likewise.
17727         * sched-deps.c (find_inc, find_mem): Likewise.
17728         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
17729         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
17730         * shrink-wrap.c (requires_stack_frame_p): Likewise.
17731         (prepare_shrink_wrap): Likewise.
17732         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
17733         * web.c (union_defs, pass_web::execute): Likewise.
17734         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
17735         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
17737 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
17739         * lra-assign.c (assign_by_spills): Add code to assign vector regs
17740         to inheritance pseudos.
17741         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
17743 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
17745         PR target/61415
17746         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
17747         (BU_MISC_2): Rename to ...
17748         (BU_LDBL128_2): ... this.
17749         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
17750         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
17751         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17752         RS6000_BTM_LDBL128.
17753         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
17754         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
17755         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
17756         (unpacktf_1): Likewise.
17757         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
17758         (__builtin_longdouble_dw1): Likewise.
17759         * doc/sourcebuild.texi (longdouble128): Document.
17761 2014-06-13  Jeff Law  <law@redhat.com>
17763         PR rtl-optimization/61094
17764         PR rtl-optimization/61446
17765         * ree.c (combine_reaching_defs): Get the mode for the copy from
17766         the extension insn rather than the defining insn.
17768 2014-06-13  Dehao Chen  <dehao@google.com>
17770         * dwarf2out.c (add_linkage_name): Emit more linkage name.
17772 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
17774         * doc/install.texi (--enable-linker-plugin-configure-flags)
17775         (--enable-linker-plugin-flags): Document new flags.
17777 2014-06-13  Martin Jambor  <mjambor@suse.cz>
17779         PR ipa/61186
17780         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
17781         cache_token if returning early.
17783 2014-06-13  Nick Clifton  <nickc@redhat.com>
17785         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
17786         requested alignment is active.
17787         (LABEL_ALIGN): Likewise.
17788         (LOOP_ALIGN): Likewise.
17790 2014-06-13  Richard Biener  <rguenther@suse.de>
17792         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17793         Rewrite to propagate the VN result into all uses where
17794         possible and to remove stmts becoming dead because of that.
17795         (eliminate): Generalize stmt removal handling, remove in
17796         reverse dominator order to support proper debug stmt
17797         generation.  Update stmts before removing stmts.
17798         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
17800 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17802         PR tree-optimization/61375
17803         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
17804         symbolic number cannot be represented in an uint64_t.
17805         (find_bswap_or_nop_1): Likewise.
17807 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
17809         * symtab.c (symtab_node::reset_section): New method.
17810         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
17811         for localization.
17812         * cgraph.h (reset_section): Declare.
17813         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
17814         do not consider comdat locals.
17815         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
17816         for new symbol.
17817         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
17818         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
17819         reset sections of symbols dragged out of the comdats.
17820         (function_and_variable_visibility): Reset sections of
17821         localized symbols.
17823 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
17825         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
17826         to use symtab and decl_binds_to_current_def_p
17827         * tree-vectorizer.c (increase_alignment): Increase alignment
17828         of alias target, too.
17830 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
17832         PR middle-end/61486
17833         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
17834         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
17835         if outer combined construct is distribute.
17836         (gimplify_omp_for): For OMP_DISTRIBUTE set
17837         gimplify_omp_ctxp->distribute.
17838         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
17839         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
17840         mapping into decl map.
17842 2014-06-12  Jason Merrill  <jason@redhat.com>
17844         * common.opt (fabi-version): Change default to 0.
17846 2014-06-12  Jason Merrill  <jason@redhat.com>
17848         * toplev.c (process_options): Reject -fabi-version=1.
17850 2014-06-12  Jeff Law  <law@redhat.com>
17852         PR tree-optimization/61009
17853         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
17854         value when we stop processing a block due to problematic PHIs.
17856 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
17858         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
17859         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
17860         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
17861         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
17862         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
17863         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
17864         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
17865         are not in the spec.
17867 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
17869         PR target/59843
17870         * config/aarch64/aarch64-modes.def: Add V1DFmode.
17871         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
17872         Support V1DFmode.
17874 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
17876         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
17878 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
17880         PR target/61443
17881         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
17882         loading from address spaces.
17884 2014-06-12  Martin Liska  <mliska@suse.cz>
17886         PR ipa/61462
17887         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
17888         statement is reachable.
17890 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
17892         * symtab.c (section_hash): New hash.
17893         (symtab_unregister_node): Clear section before freeing.
17894         (hash_section_hash_entry): New haser.
17895         (eq_sections): New function.
17896         (symtab_node::set_section_for_node): New method.
17897         (set_section_1): Update.
17898         (symtab_node::set_section): Take string instead of tree as parameter.
17899         (symtab_resolve_alias): Update.
17900         * cgraph.h (section_hash_entry_d): New structure.
17901         (section_hash_entry): New typedef.
17902         (cgraph_node): Change comdat_group_ to x_comdat_group,
17903         change section_ to x_section and turn into section_hash_entry;
17904         update accestors; put set_section_for_node offline.
17905         * tree.c (decl_section_name): Turn into string.
17906         (set_decl_section_name): Change parameter to be string.
17907         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
17908         * sdbout.c (sdbout_one_type): Update.
17909         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
17910         * varasm.c (IN_NAMED_SECTION, get_named_section,
17911         resolve_unique_section, hot_function_section, get_named_text_section,
17912         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
17913         make_decl_rtl, default_unique_section): Update.
17914         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
17915         (c6x_elf_unique_section): Update.
17916         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
17917         * config/pa/pa.c (pa_function_section): Update.
17918         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
17919         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
17920         * config/arc/arc.c (arc_in_small_data_p): Update.
17921         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
17922         * config/mcore/mcore.c (mcore_unique_section): Update.
17923         * config/mips/mips.c (mips16_build_function_stub): Update.
17924         (mips16_build_call_stub): Update.
17925         (mips_function_rodata_section): Update.
17926         (mips_in_small_data_p): Update.
17927         * config/score/score.c (score_in_small_data_p): Update.
17928         * config/rx/rx.c (rx_in_small_data): Update.
17929         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
17930         (rs6000_xcoff_asm_named_section): Update.
17931         (rs6000_xcoff_unique_section): Update.
17932         * config/frv/frv.c (frv_string_begins_with): Update.
17933         (frv_in_small_data_p): Update.
17934         * config/v850/v850.c (v850_encode_data_area): Update.
17935         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
17936         (bfin_handle_l1_data_attribute): Update.
17937         (bfin_handle_l2_attribute): Update.
17938         * config/mep/mep.c (mep_unique_section): Update.
17939         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
17940         Update.
17941         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
17942         (h8300_handle_tiny_data_attribute): Update.
17943         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
17944         (m32r_in_small_data_p): Update.
17945         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
17946         * config/i386/i386.c (ix86_in_large_data_p): Update.
17947         * config/i386/winnt.c (i386_pe_unique_section): Update.
17948         * config/darwin.c (darwin_function_section): Update.
17949         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
17950         * tree-emutls.c (get_emutls_init_templ_addr): Update.
17951         (new_emutls_decl): Update.
17952         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
17953         input_varpool_node): Update.
17954         (ead_string_cst): Turn to ...
17955         (read_string): ... this one.
17956         * dwarf2out.c (secname_for_decl): Update.
17957         * asan.c (asan_protect_global): Update.
17959 2014-06-11  DJ Delorie  <dj@redhat.com>
17961         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
17962         cache lines.
17963         * config/rx/rx.c (rx_option_override): Likewise.
17964         (rx_align_for_label): Likewise.
17966         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
17968 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
17970         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
17971         prototype.
17973 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
17975         * common.md: New file.
17976         * doc/md.texi: Update description of generic, machine-independent
17977         constraints.
17978         * config/s390/constraints.md (e): Delete.
17979         * Makefile.in (md_file): Include common.md.
17980         * config/m32c/t-m32c (md_file): Likewise.
17981         * genpreds.c (general_mem): New array.
17982         (generic_constraint_letters): Remove constraints now defined by
17983         common.md.
17984         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
17985         Allow the first character to be '<' or '>' as well.
17986         * genoutput.c (general_mem): New array.
17987         (indep_constraints): Remove constraints now defined by common.md.
17988         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
17989         Remove special handling of 'm'.
17990         * ira-costs.c (record_reg_classes): Remove special handling of
17991         constraints now defined by common.md.
17992         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
17993         * ira-lives.c (single_reg_class): Likewise.
17994         (ira_implicitly_set_insn_hard_regs): Likewise.
17995         * lra-constraints.c (reg_class_from_constraints): Likewise.
17996         (process_alt_operands, process_address, curr_insn_transform): Likewise.
17997         * postreload.c (reload_cse_simplify_operands): Likewise.
17998         * reload.c (push_secondary_reload, scratch_reload_class)
17999         (find_reloads, alternative_allows_const_pool_ref): Likewise.
18000         * reload1.c (maybe_fix_stack_asms): Likewise.
18001         * targhooks.c (default_secondary_reload): Likewise.
18002         * stmt.c (parse_output_constraint): Likewise.
18003         * recog.c (preprocess_constraints): Likewise.
18004         (constrain_operands, peep2_find_free_register): Likewise.
18005         (asm_operand_ok): Likewise, but add a comment saying why 'o'
18006         must be handled specially.
18008 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18010         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
18011         * genpreds.c (have_const_dbl_constraints): Delete.
18012         (add_constraint): Don't set it.
18013         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
18014         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
18015         constraints using the lookup_constraint logic.
18016         * ira-lives.c (single_reg_class): Likewise.
18017         * ira.c (ira_setup_alts): Likewise.
18018         * lra-constraints.c (process_alt_operands): Likewise.
18019         * recog.c (asm_operand_ok, constrain_operands): Likewise.
18020         * reload.c (find_reloads): Likewise.
18022 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18024         * genpreds.c (const_int_start, const_int_end): New variables.
18025         (choose_enum_order): Output CONST_INT constraints before memory
18026         constraints.
18027         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
18028         Add CT_CONST_INT.
18029         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
18030         * ira.c (ira_setup_alts): Likewise.
18031         * lra-constraints.c (process_alt_operands): Likewise.
18032         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18033         * reload.c (find_reloads): Likewise.
18035 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18037         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
18038         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
18039         * recog.c (preprocess_constraints): Update accordingly.
18041 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18043         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
18044         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
18045         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
18046         * genpreds.c (print_type_tree): New function.
18047         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
18048         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
18049         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
18050         Write out enum constraint_type and get_constraint_type.
18051         * lra-constraints.c (satisfies_memory_constraint_p): Take a
18052         constraint_num rather than a constraint string.
18053         (satisfies_address_constraint_p): Likewise.
18054         (reg_class_from_constraints): Avoid old constraint macros.
18055         (process_alt_operands, process_address_1): Likewise.
18056         (curr_insn_transform): Likewise.
18057         * ira-costs.c (record_reg_classes): Likewise.
18058         (record_operand_costs): Likewise.
18059         * ira-lives.c (single_reg_class): Likewise.
18060         (ira_implicitly_set_insn_hard_regs): Likewise.
18061         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
18062         * postreload.c (reload_cse_simplify_operands): Likewise.
18063         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
18064         (constrain_operands, peep2_find_free_register): Likewise.
18065         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
18066         (find_reloads, alternative_allows_const_pool_ref): Likewise.
18067         * reload1.c (maybe_fix_stack_asms): Likewise.
18068         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18069         * targhooks.c (default_secondary_reload): Likewise.
18070         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
18071         to EXTRA_CONSTRAINT_STR.
18072         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
18074 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18076         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
18077         (write_constraint_satisfied_p_array): ...this new function.
18078         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
18079         an array.
18080         (write_insn_preds_c): Update accordingly.
18082 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18084         * genpreds.c (write_lookup_constraint): Rename to...
18085         (write_lookup_constraint_1): ...this.
18086         (write_lookup_constraint_array): New function.
18087         (write_tm_preds_h): Define lookup_constraint as an inline function
18088         that uses write_lookup_constraint_array where possible.
18089         (write_insn_preds_c): Update for the changes above.
18091 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
18093         * doc/md.texi (regclass_for_constraint): Rename to...
18094         (reg_class_for_constraint): ...this.
18095         * genpreds.c (num_constraints, enum_order, register_start)
18096         (register_end, satisfied_start, memory_start, memory_end)
18097         (address_start, address_end): New variables.
18098         (add_constraint): Count the number of constraints.
18099         (choose_enum_order): New function.
18100         (write_enum_constraint_num): Iterate over enum_order.
18101         (write_regclass_for_constraint): Rename to...
18102         (write_reg_class_for_constraint_1): ...this and update output
18103         accordingly.
18104         (write_constraint_satisfied_p): Rename to...
18105         (write_constraint_satisfied_p_1): ...this and update output
18106         accordingly.  Do nothing if all extra constraints are register
18107         constraints.
18108         (write_insn_extra_memory_constraint): Delete.
18109         (write_insn_extra_address_constraint): Delete.
18110         (write_range_function): New function.
18111         (write_tm_preds_h): Define constraint_satisfied_p and
18112         reg_class_for_constraint as inline functions that do a range check
18113         before calling the out-of-line function.  Use write_range_function
18114         to implement insn_extra_{register,memory,address}_constraint,
18115         the first of which is new.
18116         (write_insn_preds_c): Update after above changes to write_* functions.
18117         (main): Call choose_enum_order.
18119 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18121         PR tree-optimization/61306
18122         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
18123         expression instead of its size.
18124         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
18125         false to prevent optimization when the result is unpredictable due to
18126         arithmetic right shift of signed type with highest byte is set.
18127         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
18128         (init_symbolic_number): Likewise.
18129         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
18130         when the result is unpredictable due to sign extension.
18132 2014-06-11  Terry Guo  <terry.guo@arm.com>
18134         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
18135         (*thumb1_addsi3): Ditto.
18136         (*thumb_subdi3): Ditto.
18137         (thumb1_subsi3_insn): Ditto.
18138         (*thumb_mulsi3): Ditto.
18139         (*thumb_mulsi3_v6): Ditto.
18140         (*thumb1_andsi3_insn): Ditto.
18141         (thumb1_bicsi3): Ditto.
18142         (*thumb1_iorsi3_insn): Ditto.
18143         (*thumb1_xorsi3_insn): Ditto.
18144         (*thumb1_ashlsi3): Ditto.
18145         (*thumb1_ashrsi3): Ditto.
18146         (*thumb1_lshrsi3): Ditto.
18147         (*thumb1_rotrsi3): Ditto.
18148         (*thumb1_negdi2): Ditto.
18149         (*thumb1_negsi2): Ditto.
18150         (*thumb1_abssi2): Ditto.
18151         (*thumb1_neg_abssi2): Ditto.
18152         (*thumb1_one_cmplsi2): Ditto.
18153         (*thumb1_zero_extendhisi2): Ditto.
18154         (*thumb1_zero_extendqisi2): Ditto.
18155         (*thumb1_zero_extendqisi2_v6): Ditto.
18156         (thumb1_extendhisi2): Ditto.
18157         (thumb1_extendqisi2): Ditto.
18158         (*thumb1_movdi_insn): Ditto.
18159         (*thumb1_movsi_insn): Ditto.
18160         (*thumb1_movhi_insn): Ditto.
18161         (thumb_movhi_clobber): Ditto.
18162         (*thumb1_movqi_insn): Ditto.
18163         (*thumb1_movhf): Ditto.
18164         (*thumb1_movsf_insn): Ditto.
18165         (*thumb_movdf_insn): Ditto.
18166         (movmem12b): Ditto.
18167         (movmem8b): Ditto.
18168         (cbranchqi4): Ditto.
18169         (cbranchsi4_insn): Ditto.
18170         (cbranchsi4_scratch): Ditto.
18171         (*negated_cbranchsi4): Ditto.
18172         (*tbit_cbranch): Ditto.
18173         (*tlobits_cbranch): Ditto.
18174         (*tstsi3_cbranch): Ditto.
18175         (*cbranchne_decr1): Ditto.
18176         (*addsi3_cbranch): Ditto.
18177         (*addsi3_cbranch_scratch): Ditto.
18178         (*thumb_cmpdi_zero): Ditto.
18179         (cstoresi_eq0_thumb1): Ditto.
18180         (cstoresi_ne0_thumb1): Ditto.
18181         (*cstoresi_eq0_thumb1_insn): Ditto.
18182         (*cstoresi_ne0_thumb1_insn): Ditto.
18183         (cstoresi_nltu_thumb1): Ditto.
18184         (cstoresi_ltu_thumb1): Ditto.
18185         (thumb1_addsi3_addgeu): Ditto.
18186         (*thumb_jump): Ditto.
18187         (*call_reg_thumb1_v5): Ditto.
18188         (*call_reg_thumb1): Ditto.
18189         (*call_value_reg_thumb1_v5): Ditto.
18190         (*call_value_reg_thumb1): Ditto.
18191         (*call_insn): Ditto.
18192         (*call_value_insn): Ditto.
18193         (thumb1_casesi_internal_pic): Ditto.
18194         (thumb1_casesi_dispatch): Ditto.
18195         (*thumb1_indirect_jump): Ditto.
18196         (prologue_thumb1_interwork): Ditto.
18197         (*epilogue_insns): Ditto.
18198         (consttable_1): Ditto.
18199         (consttable_2): Ditto.
18200         (tablejump): Ditto.
18201         (*thumb1_tablejump): Ditto.
18202         (thumb_eh_return): Ditto.
18203         (define_peephole2): Two of them are thumb1 only and got moved into
18204         new file thumb1.md.
18205         (define_split): Six of them are thumb1 only and got moved into new
18206         file thumb1.md.
18207         * config/arm/thumb1.md: New file comprised of above thumb1 only
18208         patterns.
18210 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18212         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
18213         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
18214         dependencies.
18215         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
18216         (aarch64_crc_builtin_datum): New struct.
18217         (aarch64_crc_builtin_data): New.
18218         (aarch64_init_crc32_builtins): New function.
18219         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
18220         (aarch64_crc32_expand_builtin): New.
18221         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
18222         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18223         __ARM_FEATURE_CRC32 when appropriate.
18224         (TARGET_CRC32): Define.
18225         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
18226         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
18227         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
18228         (aarch64_<crc_variant>): New pattern.
18229         * config/aarch64/arm_acle.h: New file.
18230         * config/aarch64/iterators.md (CRC): New int iterator.
18231         (crc_variant, crc_mode): New int attributes.
18232         * doc/aarch64-acle-intrinsics.texi: New file.
18233         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
18234         Include aarch64-acle-intrinsics.texi.
18236 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
18238         * tree-vect-data-refs.c (vect_grouped_store_supported): New
18239         check for stores group of length 3.
18240         (vect_permute_store_chain): New permutations for stores group of
18241         length 3.
18242         * tree-vect-stmts.c (vect_model_store_cost): Change cost
18243         of vec_perm_shuffle for the new permutations.
18245 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
18247         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
18248         table rewriting temporarily on targets not supporting ONE_ONLY.
18250 2014-06-11  Richard Biener  <rguenther@suse.de>
18252         PR middle-end/61437
18253         Revert
18254         2014-06-04  Richard Biener  <rguenther@suse.de>
18256         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18257         TREE_PUBLIC and DECL_EXTERNAL decls.
18259 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
18261         * varasm.c (set_implicit_section): New function.
18262         (resolve_unique_section): Use it to set implicit section
18263         for aliases, too.
18264         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
18265         (default_function_section): Likewise.
18266         (decl_binds_to_current_def_p): Constify argument.
18267         * varasm.h (decl_binds_to_current_def_p): Update prototype.
18268         * asan.c (asan_protect_global): Use
18269         symtab_get_node (decl)->implicit_section.
18270         * symtab.c (dump_symtab_base): Dump implicit sections.
18271         (verify_symtab_base): Verify sanity of sectoins and comdats.
18272         (symtab_resolve_alias): Alias share the section of its target.
18273         (set_section_1): New function.
18274         (symtab_node::set_section): Move here, recurse to aliases.
18275         (verify_symtab): Check for duplicated symtab lists.
18276         * tree-core.h (implicit_section_name_p): Remove.
18277         * tree-vect-data-refs.c: Include varasm.h.
18278         (vect_can_force_dr_alignment_p): Fix conditional on when
18279         decl bints to current definition; use
18280         symtab_get_node (decl)->implicit_section.
18281         * cgraph.c (cgraph_make_node_local_1): Fix section set.
18282         * cgraph.h (struct symtab_node): Add implicit_section.
18283         (set_section): Rename to ...
18284         (set_section_for_node): ... this one.
18285         (set_section): Declare.
18286         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
18287         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
18288         input_overwrite_node, input_varpool_node): Stream implicit_section.
18289         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
18290         removal; it will fail in LTO.
18292 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18294         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
18295         Change second alternative type to f_mcr.
18296         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
18297         and 12th alternatives' types to f_mcr and f_mrc.
18298         (*movdi_aarch64): Same for 12th and 13th alternatives.
18299         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
18300         (aarch64_movtilow_tilow): Change type to fmov.
18302 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
18304         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
18305         (aarch64_save_or_restore_callee_save_registers): Fix layout.
18307 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18309         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
18310         New expander.
18311         (aarch64_sqrdmulh_lane<mode>): Likewise.
18312         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18313         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18314         (aarch64_sqdmulh_laneq<mode>): New expander.
18315         (aarch64_sqrdmulh_laneq<mode>): Likewise.
18316         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
18317         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
18318         (aarch64_sqdmulh_lane<mode>): New expander.
18319         (aarch64_sqrdmulh_lane<mode>): Likewise.
18320         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
18321         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
18322         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
18323         (aarch64_sqdmlal_laneq<mode>): Likewise.
18324         (aarch64_sqdmlsl_lane<mode>): Likewise.
18325         (aarch64_sqdmlsl_laneq<mode>): Likewise.
18326         (aarch64_sqdmlal2_lane<mode>): Likewise.
18327         (aarch64_sqdmlal2_laneq<mode>): Likewise.
18328         (aarch64_sqdmlsl2_lane<mode>): Likewise.
18329         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
18330         (aarch64_sqdmull_lane<mode>): Likewise.
18331         (aarch64_sqdmull_laneq<mode>): Likewise.
18332         (aarch64_sqdmull2_lane<mode>): Likewise.
18333         (aarch64_sqdmull2_laneq<mode>): Likewise.
18335 2014-06-10  Richard Biener  <rguenther@suse.de>
18337         PR tree-optimization/61438
18338         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
18339         (eliminate_dom_walker::before_dom_children): Only try to inhibit
18340         insertion of IVs if running PRE.
18341         (eliminate): Adjust.
18342         (pass_pre::execute): Likewise.
18343         (pass_fre::execute): Likewise.
18345 2014-06-10  Richard Biener  <rguenther@suse.de>
18347         PR middle-end/61456
18348         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18349         Do not use the main variant for the type comparison.
18350         (ncr_compar): Likewise.
18351         (nonoverlapping_component_refs_p): Likewise.
18353 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18355         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
18356         REG_CFA_RESTORE mode.
18358 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
18360         * config/i386/i386.c (expand_vec_perm_pblendv): New.
18361         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
18362         expand_vec_perm_pblendv.
18364 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18366         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
18367         available.
18368         Simplify description of __crc32d and __crc32cd intrinsics.
18369         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
18370         availability.
18372 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
18374         PR lto/61334
18375         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
18376         * config.in: Regenerate.
18377         * configure: Likewise.
18379 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
18381         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
18382         and public vars.
18383         (intersect_static_var_sets): Remove.
18384         (propagate): Do not prune local statics.
18386 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
18388         PR fortran/60928
18389         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
18390         Set lastprivate_firstprivate even if omp_private_outer_ref
18391         langhook returns true.
18392         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
18393         langhook, call unshare_expr on new_var and call
18394         build_outer_var_ref to get the last argument.
18396 2014-06-10  Marek Polacek  <polacek@redhat.com>
18398         PR c/60988
18399         * doc/extend.texi: Add cindex for transparent_union.
18401 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18403         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
18404         init_symbolic_number ().
18406 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
18408         PR middle-end/61141
18409         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
18410         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
18411         (verify_rtl_sharing): Likewise.
18413 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
18415         PR c++/54442
18416         * tree.c (build_qualified_type): Use a canonical type for
18417         TYPE_CANONICAL.
18419 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18421         * config/arm/arm-modes.def: Remove XFmode.
18423 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
18425         PR target/61062
18426         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
18427         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
18428         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
18429         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
18430         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
18431         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
18432         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
18433         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
18434         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
18436 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
18438         * tree-core.h (tree_decl_with_vis): Remove section_name.
18440 2014-06-09  Kito Cheng  <kito@0xlab.org>
18442         * ira.c (ira): Don't call init_caller_save if LRA enabled
18443         since LRA use its own infrastructure to handle that.
18445 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18447         * symtab.c (dump_symtab_base): Update dumping.
18448         (symtab_make_decl_local): Clear only DECL_COMDAT.
18449         * tree-vect-data-refs.c (Check that variable is static before
18450         tampering with sections.
18451         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
18452         (cgraph_create_virtual_clone): Likewise.
18453         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
18454         (decl_section_name, set_decl_section_name): New accessors.
18455         (find_decls_types_r): Do not walk section name
18456         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
18457         (decl_comdat_group, decl_comdat_group_id): Constify.
18458         (decl_section_name, set_decl_section_name): Update.
18459         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
18460         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
18461         (cgraph_make_node_local_1): Clear section and comdat group.
18462         * cgraph.h (set_comdat_group): Sanity check.
18463         (get_section, set_section): New.
18464         * ipa-comdats.c (ipa_comdats): Use get_section.
18465         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
18466         * lto-streamer-out.c: Do not follow section names.
18467         * c-family/c-common.c (handle_section_attribute): Update.
18468         * lto-cgraph.c (lto_output_node): Output section.
18469         (lto_output_varpool_node): Likewise.
18470         (read_comdat_group): Rename to ...
18471         (read_identifier): ... this one.
18472         (read_string_cst): New function.
18473         (input_node, input_varpool_node): Input section names.
18474         * tree-emutls.c (get_emutls_init_templ_addr): Update.
18475         (new_emutls_decl): Update.
18476         (secname_for_decl): Check section names only of static vars.
18477         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
18478         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
18479         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
18480         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
18481         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
18482         * config/mcore/mcore.c (mcore_unique_section): Likewise.
18483         * config/mips/mips.c (mips16_build_function_stub): Likewise.
18484         * config/v850/v850.c (v850_insert_attributes): Likewise.
18485         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
18486         Likewise.
18487         (h8300_handle_tiny_data_attribute): Likewise.
18488         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
18489         (bfin_handle_l2_attribute): Likewise.
18491 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18493         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
18494         remove static initializer.
18496 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18498         * varasm.c (use_blocks_for_decl_p): Check symbol table
18499         instead of alias attribute.
18500         (place_block_symbol): Recurse on aliases.
18502 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18504         * ipa-visibility.c: Include varasm.h
18505         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
18507 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
18509         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
18510         outputting aliases.
18512 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
18514         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
18515         from test_insn into GGC space escape via SET_SRC.
18517 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
18519         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
18520         call statement, if any.
18521         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
18522         statements, if any.  Tidy up.
18524 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18526         PR target/61431
18527         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
18528         iterators, VSX_D that handles 64-bit types, and VSX_LE that
18529         handles swapping the two 64-bit double words on little endian
18530         systems.  Include V1TImode and optionally TImode in VSX_LE so that
18531         these types are properly swapped.  Change all of the insns and
18532         splits that do the 64-bit swaps to use VSX_LE.
18533         (vsx_le_perm_load_<mode>): Likewise.
18534         (vsx_le_perm_store_<mode>): Likewise.
18535         (splitters for little endian memory operations): Likewise.
18536         (vsx_xxpermdi2_le_<mode>): Likewise.
18537         (vsx_lxvd2x2_le_<mode>): Likewise.
18538         (vsx_stxvd2x2_le_<mode>): Likewise.
18540 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
18542         PR target/61423
18543         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
18544         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
18545         and corresponding splitters.  Zero extend general register
18546         or memory input operand to XMM temporary.  Enable for
18547         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
18548         (floatunssi<mode>2): Update expander predicate.
18550 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
18552         PR rtl-optimization/61325
18553         * lra-constraints.c (process_address_1): Check scale equal to one
18554         to prevent transformation: base + scale * index => base + new_reg.
18556 2014-06-06  Richard Biener  <rguenther@suse.de>
18558         PR tree-optimization/59299
18559         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
18560         a def operand.
18561         (nearest_common_dominator_of_uses): Likewise.
18562         (statement_sink_location): Adjust.  Support sinking loads.
18564 2014-06-06  Martin Jambor  <mjambor@suse.cz>
18566         * ipa-prop.c (get_place_in_agg_contents_list): New function.
18567         (build_agg_jump_func_from_list): Likewise.
18568         (determine_known_aggregate_parts): Renamed to
18569         determine_locally_known_aggregate_parts.  Moved some functionality
18570         to the two functions above, removed bound checks.
18572 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
18574         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
18575         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
18576         (aarch64_progress_pointer): Likewise.
18577         (aarch64_copy_one_part_and_move_pointers): Likewise.
18578         (aarch64_expand_movmen): Likewise.
18579         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
18580         * config/aarch64/aarch64.md (movmem<mode>): New.
18582 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
18584         * targhooks.c (default_add_stmt_cost): Call target specific
18585         hook instead of default one.
18587 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18589         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
18590         endianness instead of host endianness.
18591         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
18592         comments.
18594 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
18596         PR debug/53927
18597         * function.c (instantiate_decls): Process the saved static chain.
18598         (expand_function_start): If not optimizing, save the static chain
18599         onto the stack.
18600         * tree-nested.c (convert_all_function_calls): Always create the static
18601         chain for nested functions if not optimizing.
18603 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
18605         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
18607 2014-06-06  Richard Biener  <rguenther@suse.de>
18609         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
18610         (construct_init_block): Likewise.
18611         (construct_exit_block): Likewise.
18612         (pass_expand::execute): Likewise.
18613         * graphite.c (graphite_transforms): Replace check for current_loops
18614         with a check for > 1 loops.
18615         (pass_graphite_transforms::execute): Adjust.
18616         * ipa-split.c (split_function): Remove check for current_loops.
18617         * omp-low.c (expand_parallel_call): Likewise.
18618         (expand_omp_for_init_counts): Likewise.
18619         (extract_omp_for_update_vars): Likewise.
18620         (expand_omp_for_generic): Likewise.
18621         (expand_omp_sections): Likewise.
18622         (expand_omp_target): Likewise.
18623         * tracer.c (tail_duplicate): Likewise.
18624         (pass_tracer::execute): Likewise.
18625         * trans-mem.c (expand_transaction): Likewise.
18626         * tree-complex.c (expand_complex_div_wide): Likewise.
18627         * tree-eh.c (lower_resx): Likewise.
18628         (cleanup_empty_eh_merge_phis): Likewise.
18629         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
18630         current_loops with a check for > 1 loops.
18631         (pass_predcom::execute): Adjust.
18632         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
18633         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
18634         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
18635         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
18636         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
18637         * tree-switch-conversion.c (process_switch): Likewise.
18638         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
18639         * tree-vrp.c (vrp_visit_phi_node): Likewise.
18640         (execute_vrp): Likewise.
18641         * ubsan.c (ubsan_expand_null_ifn): Likewise.
18643 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
18645         * rtl.h (insn_location): Declare.
18646         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
18647         with UNKNOWN_LOCATION.
18648         * emit-rtl.c (insn_location): New function.
18649         * final.c (notice_source_line): Check that the instruction has a
18650         location before retrieving it and use insn_location.
18651         * modulo-sched.c (loop_single_full_bb_p): Likewise.
18652         * print-rtl.c (print_rtx): Likewise.
18654 2014-06-06  Richard Biener  <rguenther@suse.de>
18656         * passes.def: Move 2nd VRP pass before phi-only-cprop.
18658 2014-06-06  Christian Bruel  <christian.bruel@st.com>
18660         PR tree-optimization/43934
18661         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
18662         cost.
18664 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
18666         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
18667         return NO_REGS for extra address and memory constraints.  Handle
18668         operands that match (or are equivalent to something that matches)
18669         extra constant constraints.  Ignore other non-register operands.
18671 2014-06-06  Alan Modra  <amodra@gmail.com>
18673         PR target/61300
18674         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
18675         * doc/tm.texi: Regenerate.
18676         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
18677         Use throughout in place of REG_PARM_STACK_SPACE.
18678         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
18679         "incoming" param.  Pass to rs6000_function_parms_need_stack.
18680         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
18681         prototype_p when incoming.  Use function decl when incoming
18682         to handle K&R style functions.
18683         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
18684         (INCOMING_REG_PARM_STACK_SPACE): Define.
18686 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18688         PR target/52472
18689         * cfgexpand.c (expand_debug_expr): Use address space of nested
18690         TREE_TYPE for ADDR_EXPR and MEM_REF.
18692 2014-06-05  Jeff Law  <law@redhat.com>
18694         PR tree-optimization/61289
18695         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
18696         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
18697         looking for those which match LHS.  All callers changed.
18698         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
18699         parameters and code which manipulated them.  All callers changed.
18700         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
18701         and DST_MAP parameters.  Simplify invalidation code by just calling
18702         invalidate_equivalences.  All callers changed.
18703         (thread_across_edge): Simplify now that we don't need to maintain
18704         the map of equivalences to invalidate.
18706 2014-06-05  Kai Tietz  <ktietz@redhat.com>
18707             Richard Henderson  <rth@redhat.com>
18709         PR target/46219
18710         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
18711         checking for !TARGET_X32.
18712         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
18713         (sibcall_intern): New define_insn, plus required peepholes.
18714         (sibcall_pop_intern): Likewise.
18715         (sibcall_value_intern): Likewise.
18716         (sibcall_value_pop_intern): Likewise.
18718 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
18720         * tree-inline.c (tree_function_versioning): Check DF info existence
18721         before accessing it.
18723 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18725         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
18726         frame_size.
18727         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
18728         aarch64_frame hard_fp_offset and frame_size.
18729         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
18730         frame_size; remove original_frame_size.
18731         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
18732         (aarch64_initial_elimination_offset): Remove frame_size and
18733         offset.  Use aarch64_frame frame_size.
18735 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18736             Jiong Wang  <jiong.wang@arm.com>
18737             Renlin  <renlin.li@arm.com>
18739         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
18740         initialization of R30 offset.  Update offset.  Iterate core
18741         regisers upto X30.  Remove X29, X30 specific code.
18743 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18744             Jiong Wang  <jiong.wang@arm.com>
18746         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
18747         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
18748         (aarch64_register_saved_on_entry): Adjust test.
18750 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18752         * config/aarch64/aarch64.h (machine_function): Move
18753         saved_varargs_size from here...
18754         (aarch64_frame): ... to here.
18756         * config/aarch64/aarch64.c (aarch64_expand_prologue)
18757         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
18758         (aarch64_initial_elimination_offset)
18759         (aarch64_setup_incoming_varargs): Adjust location of
18760         saved_varargs_size.
18762 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18764         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
18765         layout comment.
18767 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
18768             Prachi Godbole  <Prachi.Godbole@imgtec.com>
18770         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
18771         mips32r5 entry to use PROCESSOR_P5600.
18772         * config/mips/mips-tables.opt: Regenerate.
18773         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
18774         * config/mips/mips.c (mips_fmadd_bypass): New function.
18775         (mips_rtx_cost_data): Add costs for p5600.
18776         (mips_issue_rate): Add support for p5600.
18777         (mips_multipass_dfa_lookahead): Likewise.
18778         * config/mips/mips.h (TUNE_P5600): New define.
18779         (TUNE_MACC_CHAINS): Add TUNE_P5600.
18780         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
18781         * config/mips/mips.md: Include p5600.md.
18782         (processor): Add p5600.
18783         * config/mips/p5600.md: New file.
18785 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
18787         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
18788         * config/i386/predicates.md (palignr_operand): New.
18789         Indicates if permutation is suitable for palignr instruction.
18791 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
18793         PR tree-optimization/61319
18794         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
18795         stmt belongs to loop.
18797 2014-06-05  Richard Biener  <rguenther@suse.de>
18799         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
18800         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
18801         (lookup_tmp_var): Adjust.
18802         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
18804 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18806         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
18808 2014-06-05  Marek Polacek  <polacek@redhat.com>
18810         PR c/49706
18811         * doc/invoke.texi: Document -Wlogical-not-parentheses.
18813 2014-06-04  Tom de Vries  <tom@codesourcery.com>
18815         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
18816         CONST_INT.
18818 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
18820         PR tree-optimization/61385
18821         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
18823 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
18825         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
18826         changed to use fatal_error.
18827         (main): Ensure lto_wrapper_cleanup is run atexit.
18829 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
18831         * lra-constraints.c (valid_address_p): Move earlier in file.
18832         (address_eliminator): New structure.
18833         (satisfies_memory_constraint_p): New function.
18834         (satisfies_address_constraint_p): Likewise.
18835         (process_alt_operands, process_address, curr_insn_transform): Use them.
18837 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
18839         * lra-int.h (lra_static_insn_data): Make operand_alternative a
18840         const pointer.
18841         (target_lra_int, default_target_lra_int, this_target_lra_int)
18842         (op_alt_data): Delete.
18843         * lra.h (lra_init): Delete.
18844         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
18845         (init_insn_code_data_once): Remove op_alt_data handling.
18846         (finish_insn_code_data_once): Likewise.
18847         (init_op_alt_data): Delete.
18848         (get_static_insn_data): Initialize operand_alternative to null.
18849         (free_insn_recog_data): Cast operand_alternative before freeing it.
18850         (setup_operand_alternative): Take the operand_alternative as
18851         parameter and assume it isn't already cached in the static
18852         insn data.
18853         (lra_set_insn_recog_data): Update accordingly.
18854         (lra_init): Delete.
18855         * ira.c (ira_init): Don't call lra_init.
18856         * target-globals.h (this_target_lra_int): Declare.
18857         (target_globals): Remove lra_int.
18858         (restore_target_globals): Update accordingly.
18859         * target-globals.c: Don't include lra-int.h.
18860         (default_target_globals, save_target_globals): Remove lra_int.
18862 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
18864         * recog.h (operand_alternative): Convert reg_class, reject,
18865         matched and matches into bitfields.
18866         (preprocess_constraints): New overload.
18867         (preprocess_insn_constraints): New function.
18868         (preprocess_constraints): Take the insn as parameter.
18869         (recog_op_alt): Change into a pointer.
18870         (target_recog): Add x_op_alt.
18871         * recog.c (asm_op_alt): New variable.
18872         (recog_op_alt): Change into a pointer.
18873         (preprocess_constraints): New overload, replacing the old function
18874         definition with one that doesn't use global state.
18875         (preprocess_insn_constraints): New function.
18876         (preprocess_constraints): Use them.  Take the insn as parameter.
18877         Use asm_op_alt for asms.
18878         (recog_init): Free existing x_op_alt entries.
18879         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
18880         pointer const.
18881         (make_early_clobber_and_input_conflicts): Likewise.
18882         (process_bb_node_lives): Pass the insn to process_constraints.
18883         * reg-stack.c (check_asm_stack_operands): Likewise.
18884         (subst_asm_stack_regs): Likewise.
18885         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
18886         * regrename.c (build_def_use): Likewise.
18887         * sched-deps.c (sched_analyze_insn): Likewise.
18888         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
18889         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
18890         (note_invalid_constants): Likewise.
18891         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
18892         (ix86_legitimate_combined_insn): Make operand_alternative pointer
18893         const.
18895 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
18897         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
18898         * ira-lives.c (check_and_make_def_conflict): Check for disabled
18899         alternatives.
18900         (make_early_clobber_and_input_conflicts): Likewise.
18901         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
18903 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
18905         * recog.h (alternative_class): New function.
18906         (which_op_alt): Return a const recog_op_alt.
18907         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
18908         (subst_asm_stack_regs): Likewise.
18909         * config/arm/arm.c (note_invalid_constants): Likewise.
18910         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
18911         the operand_alternative; use alternative class instead.
18912         * sel-sched.c (get_reg_class): Likewise.
18913         * regrename.c (build_def_use): Likewise.
18914         (hide_operands, restore_operands, record_out_operands): Update type
18915         accordingly.
18917 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
18919         * recog.h (recog_op_alt): Convert to a flat array.
18920         (which_op_alt): New function.
18921         * recog.c (recog_op_alt): Convert to a flat array.
18922         (preprocess_constraints): Update accordingly, grouping all
18923         operands of the same alternative together, rather than the
18924         other way around.
18925         * ira-lives.c (check_and_make_def_conflict): Likewise.
18926         (make_early_clobber_and_input_conflicts): Likewise.
18927         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
18928         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
18929         (subst_asm_stack_regs): Likewise.
18930         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
18931         * regrename.c (hide_operands, record_out_operands): Likewise.
18932         (build_def_use): Likewise.
18933         * sel-sched.c (get_reg_class): Likewise.
18934         * config/arm/arm.c (note_invalid_constants): Likewise.
18936 2014-06-04  Jason Merrill  <jason@redhat.com>
18938         PR c++/51253
18939         PR c++/61382
18940         * gimplify.c (gimplify_arg): Non-static.
18941         * gimplify.h: Declare it.
18943 2014-06-04  Richard Biener  <rguenther@suse.de>
18945         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
18946         TREE_PUBLIC and DECL_EXTERNAL decls.
18948 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
18950         * regcprop.c (copyprop_hardreg_forward_1): Account for
18951         HARD_REGNO_CALL_PART_CLOBBERED.
18953 2014-06-04  Richard Biener  <rguenther@suse.de>
18955         * configure.ac: Check whether the underlying type of int64_t
18956         is long or long long.
18957         * configure: Regenerate.
18958         * config.in: Likewise.
18959         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
18960         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18962 2014-06-04  Richard Biener  <rguenther@suse.de>
18964         PR tree-optimization/60098
18965         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
18966         we hit a kill.
18967         (dse_optimize_stmt): Simplify, now that we found a kill
18968         earlier.
18970 2014-06-04  Richard Biener  <rguenther@suse.de>
18972         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
18973         of accesses with non-invariant address.
18975 2014-06-04  Martin Liska  <mliska@suse.cz>
18977         * cgraph.h (cgraph_make_wrapper): New function introduced.
18978         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
18979         * ipa-inline.h (inline_analyze_function): The function is global.
18980         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
18982 2014-06-04  Martin Liska  <mliska@suse.cz>
18984         * tree.h (private_lookup_attribute_starting): New function.
18985         (lookup_attribute_starting): Likewise.
18986         * tree.c (private_lookup_attribute_starting): Likewise.
18988 2014-06-04  Martin Liska  <mliska@suse.cz>
18990         * cgraph.h (expand_thunk): New argument added.
18991         (address_taken_from_non_vtable_p): New global function.
18992         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
18993         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
18994         * cgraphunit.c (analyze_function): Likewise.
18995         (assemble_thunks_and_aliases): Argument added to call.
18996         (expand_thunk): New argument forces to produce GIMPLE thunk.
18998 2014-06-04  Martin Liska  <mliska@suse.cz>
19000         * coverage.h (coverage_compute_cfg_checksum): Argument added.
19001         * coverage.c (coverage_compute_cfg_checksum): Likewise.
19002         * profile.c (branch_prob): Likewise.
19004 2014-06-04  Martin Jambor  <mjambor@suse.cz>
19006         PR ipa/61340
19007         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
19008         handler for switch on an ipa_ref_use enum.
19009         * ipa-reference.c (analyze_function): Likewise.
19011 2014-06-04  Kai Tietz  <ktietz@redhat.com>
19013         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
19014         from old call-instruction.
19016 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
19018         * config/aarch64/aarch64.c (aarch64_classify_address)
19019         (aarch64_legitimize_reload_address): Support full addressing modes
19020         for vector modes.
19021         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
19022         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
19024 2014-06-03  Andrew Pinski  <apinski@cavium.com>
19026         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
19027         for OP0.
19029 2014-06-03  Andrew Pinski  <apinski@cavium.com>
19031         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
19032         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
19034 2014-06-03  Kai Tietz  <ktietz@redhat.com>
19036         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
19037         for 64-bit ms-abi.
19039 2014-06-03  Dehao Chen  <dehao@google.com>
19041         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
19042         the same loop.
19044 2014-06-03  Marek Polacek  <polacek@redhat.com>
19046         PR c/60439
19047         * doc/invoke.texi: Document -Wswitch-bool.
19048         * function.c (stack_protect_epilogue): Cast controlling expression of
19049         the switch to int.
19050         * gengtype.c (walk_type): Generate switch expression with its
19051         controlling expression cast to int.
19053 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
19055         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
19056         and attiny841.
19057         * config/avr/avr-tables.opt: Regenerate.
19058         * config/avr/t-multilib: Regenerate.
19059         * doc/avr-mmcu.texi: Regenerate.
19061 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
19062             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
19064         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
19065         (ata6617c, ata664251): Add new avr35 devices.
19066         (ata6612c): Add new avr4 device.
19067         (ata6613c, ata6614q): Add new avr5 devices.
19068         * config/avr/avr-tables.opt: Regenerate.
19069         * config/avr/t-multilib: Regenerate.
19070         * doc/avr-mmcu.texi: Regenerate.
19072 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19074         * gcc/config/aarch64/aarch64-builtins.c
19075         (aarch64_types_binop_ssu_qualifiers): New static data.
19076         (TYPES_BINOP_SSU): Define.
19077         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
19078         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
19079         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
19080         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
19081         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
19082         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
19083         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
19084         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
19085         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
19086         suffix to builtin function name, remove cast.
19087         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
19088         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
19089         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
19091 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19093         * gcc/config/aarch64/aarch64-builtins.c
19094         (aarch64_types_binop_uus_qualifiers,
19095         aarch64_types_shift_to_unsigned_qualifiers,
19096         aarch64_types_unsigned_shiftacc_qualifiers): Define.
19097         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
19098         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
19099         sqshlu_n, uqshl_n): Update qualifiers.
19100         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
19101         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
19102         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
19103         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
19104         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
19105         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
19106         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
19107         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
19108         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
19109         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
19110         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
19111         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
19112         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
19113         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
19114         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
19115         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
19116         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
19117         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
19118         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
19119         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
19120         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
19121         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
19122         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
19123         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
19124         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
19125         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
19126         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
19128 2014-06-03  Teresa Johnson  <tejohnson@google.com>
19130         * tree-sra.c (modify_function): Record caller nodes after rebuild.
19132 2014-06-02  Jason Merrill  <jason@redhat.com>
19134         PR c++/61020
19135         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
19137 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19139         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
19140         location == 0.
19142 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
19144         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
19145         New pattern.
19146         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
19147         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
19148         * config/aarch64/iterators.md (REVERSE): New iterator.
19149         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
19150         (rev_op): New int_attribute.
19151         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
19152         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
19153         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
19154         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
19155         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
19156         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
19157         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
19158         Replace temporary __asm__ with __builtin_shuffle.
19160 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19162         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
19163         mips64r5.
19164         * config/mips/mips-tables.opt: Regenerate.
19165         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
19166         to use mips_isa_rev rather than ISA_MIPS32R2.
19167         * config/mips/mips.h (ISA_MIPS32R3): New define.
19168         (ISA_MIPS32R5): New define.
19169         (ISA_MIPS64R3): New define.
19170         (ISA_MIPS64R5): New define.
19171         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
19172         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
19173         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
19174         and mips64r5.
19175         (MIPS_ISA_SYNCI_SPEC): Likewise.
19176         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
19177         (LINK_SPEC): Added mips32r3 and mips32r5.
19178         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
19179         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
19180         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
19181         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
19182         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
19183         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
19184         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
19186 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
19188         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
19189         options.
19190         * config/mips/mips.opt (mxpa): New option.
19191         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
19192         assembler.
19194 2014-06-03  Martin Jambor  <mjambor@suse.cz>
19196         PR ipa/61160
19197         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
19198         thunks.
19200 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19202         PR tree-optimization/61328
19203         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
19204         initialization from find_bswap_or_nop_1.
19205         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
19206         in source_expr2 before using the size value the function sets. Also
19207         make use of init_symbolic_number () in both the old place and
19208         find_bswap_or_nop_load () to avoid reading uninitialized memory when
19209         doing recursion in the GIMPLE_BINARY_RHS case.
19211 2014-06-03  Richard Biener  <rguenther@suse.de>
19213         PR tree-optimization/61383
19214         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
19215         stmts can't trap.
19217 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
19219         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
19220         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
19221         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
19222         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
19223         in this file.
19224         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
19225         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
19226         * system.h: ...here and make it unconditional.
19227         * target.def (conditional_register_usage): Mention
19228         define_register_constraint instead of old-style constraint macros.
19229         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
19230         * doc/tm.texi: Regenerate.
19231         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
19232         protected by !USE_MD_CONSTRAINTS.
19233         * config/frv/frv.md: Remove quote from old version of documentation.
19234         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
19235         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
19236         CONST_DOUBLE_OK_FOR_LETTER.
19237         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
19239 2014-06-02  Andrew Pinski  <apinski@cavium.com>
19241         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
19242         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
19243         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
19244         file whose name depends on -mabi= and -mbig-endian.
19245         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
19246         Handle LP64 better and handle ilp32 too.
19247         (MULTILIB_OPTIONS): Delete.
19248         (MULTILIB_DIRNAMES): Delete.
19250 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
19252         * expr.h: Remove prototypes of functions defined in builtins.c.
19253         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
19254         Remove prototypes of functions defined in builtins.c.
19255         * builtins.h: Update prototype list to include all exported functions.
19256         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
19257         no_c99_libc_has_function): Move to targhooks.c
19258         (build_string_literal, build_call_expr_loc_array,
19259         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
19260         to tree.c.
19261         (expand_builtin_object_size, fold_builtin_object_size): Make static.
19262         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
19263         no_c99_libc_has_function): Relocate from builtins.c.
19264         * tree.c: Include builtins.h.
19265         (build_call_expr_loc_array, build_call_expr_loc_vec,
19266         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
19267         from builtins.c.
19268         * fold-const.h (fold_fma): Move prototype to builtins.h.
19269         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
19270         * asan.c: Include builtins.h.
19271         * cfgexpand.c: Likewise.
19272         * convert.c: Likewise.
19273         * emit-rtl.c: Likewise.
19274         * except.c: Likewise.
19275         * expr.c: Likewise.
19276         * fold-const.c: Likewise.
19277         * gimple-fold.c: Likewise.
19278         * gimple-ssa-strength-reduction.c: Likewise.
19279         * gimplify.c: Likewise.
19280         * ipa-inline.c: Likewise.
19281         * ipa-prop.c: Likewise.
19282         * lto-streamer-out.c: Likewise.
19283         * stmt.c: Likewise.
19284         * tree-inline.c: Likewise.
19285         * tree-object-size.c: Likewise.
19286         * tree-sra.c: Likewise.
19287         * tree-ssa-ccp.c: Likewise.
19288         * tree-ssa-forwprop.c: Likewise.
19289         * tree-ssa-loop-ivcanon.c: Likewise.
19290         * tree-ssa-loop-ivopts.c: Likewise.
19291         * tree-ssa-math-opts.c: Likewise.
19292         * tree-ssa-reassoc.c: Likewise.
19293         * tree-ssa-threadedge.c: Likewise.
19294         * tree-streamer-in.c: Likewise.
19295         * tree-vect-data-refs.c: Likewise.
19296         * tree-vect-patterns.c: Likewise.
19297         * tree-vect-stmts.c: Likewise.
19298         * config/aarch64/aarch64.c: Likewise.
19299         * config/alpha/alpha.c: Likewise.
19300         * config/arc/arc.c: Likewise.
19301         * config/arm/arm.c: Likewise.
19302         * config/avr/avr.c: Likewise.
19303         * config/bfin/bfin.c: Likewise.
19304         * config/c6x/c6x.c: Likewise.
19305         * config/cr16/cr16.c: Likewise.
19306         * config/cris/cris.c: Likewise.
19307         * config/epiphany/epiphany.c: Likewise.
19308         * config/fr30/fr30.c: Likewise.
19309         * config/frv/frv.c: Likewise.
19310         * config/h8300/h8300.c: Likewise.
19311         * config/i386/i386.c: Likewise.
19312         * config/i386/winnt.c: Likewise.
19313         * config/ia64/ia64.c: Likewise.
19314         * config/iq2000/iq2000.c: Likewise.
19315         * config/lm32/lm32.c: Likewise.
19316         * config/m32c/m32c.c: Likewise.
19317         * config/m32r/m32r.c: Likewise.
19318         * config/m68k/m68k.c: Likewise.
19319         * config/mcore/mcore.c: Likewise.
19320         * config/mep/mep.c: Likewise.
19321         * config/microblaze/microblaze.c: Likewise.
19322         * config/mips/mips.c: Likewise.
19323         * config/mmix/mmix.c: Likewise.
19324         * config/mn10300/mn10300.c: Likewise.
19325         * config/moxie/moxie.c: Likewise.
19326         * config/msp430/msp430.c: Likewise.
19327         * config/nds32/nds32.c: Likewise.
19328         * config/pa/pa.c: Likewise.
19329         * config/pdp11/pdp11.c: Likewise.
19330         * config/picochip/picochip.c: Likewise.
19331         * config/rl78/rl78.c: Likewise.
19332         * config/rs6000/rs6000.c: Likewise.
19333         * config/rx/rx.c: Likewise.
19334         * config/s390/s390.c: Likewise.
19335         * config/score/score.c: Likewise.
19336         * config/sh/sh.c: Likewise.
19337         * config/sparc/sparc.c: Likewise.
19338         * config/spu/spu.c: Likewise.
19339         * config/stormy16/stormy16.c: Likewise.
19340         * config/tilegx/tilegx.c: Likewise.
19341         * config/tilepro/tilepro.c: Likewise.
19342         * config/v850/v850.c: Likewise.
19343         * config/vax/vax.c: Likewise.
19344         * config/xtensa/xtensa.c: Likewise.
19346 2014-06-02  Jeff Law  <law@redhat.com>
19348         PR rtl-optimization/61094
19349         * ree.c (combine_reaching_defs): Do not reextend an insn if it
19350         was marked as do_no_reextend.  If a copy is needed to eliminate
19351         an extension, then mark it as do_not_reextend.
19353 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19355         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
19357 2014-06-02  Richard Henderson  <rth@redhat.com>
19359         PR target/61336
19360         * config/alpha/alpha.c (print_operand_address): Allow symbolic
19361         addresses inside asms.  Use output_operand_lossage instead of
19362         gcc_unreachable.
19364 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
19366         PR target/61239
19367         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
19368         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
19370 2014-06-02  Tom de Vries  <tom@codesourcery.com>
19372         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
19373         case that x has VOIDmode.
19375 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
19377         * varasm.c (copy_constant): Delete function.
19378         (build_constant_desc): Don't call it.
19380 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19382         PR target/61154
19383         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
19384         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
19385         with immediate_operand.
19387 2014-06-02  Andreas Schwab  <schwab@suse.de>
19389         * config/ia64/ia64.c
19390         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
19391         pending_data_specs first.
19393 2014-06-02  Richard Biener  <rguenther@suse.de>
19395         PR tree-optimization/61378
19396         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
19397         valueized_anything.
19399 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
19401         * config/i386/constraints.md (Bw): Rename from 'w'.
19402         (Bz): Rename from 'z'.
19403         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
19405 2014-06-01  Kai Tietz  <ktietz@redhat.com>
19407         PR target/61377
19408         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
19409         * config/i386/i386.md (sibcall_insn_operand): Use Bs
19410         instead of m constraint.
19412 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
19414         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
19415         a separate alternative where the scratch operand 2 is marked as
19416         early clobber.
19418 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
19420         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
19421         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
19422         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
19423         and __builtins_arm_get_fpscr.
19424         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
19425         __builtins_arm_get_fpscr.
19426         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
19427         __builtins_arm_ldfpscr.
19428         (arm_atomic_assign_expand_fenv): New function.
19429         * config/arm/vfp.md (set_fpscr): New pattern.
19430         (get_fpscr) : Likewise.
19431         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
19432         VUNSPEC_SET_FPSCR.
19433         * doc/extend.texi (AARCH64 Built-in Functions) : Document
19434         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
19436 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
19438         * asan.c (report_error_func): Add SLOW_P argument, use
19439         BUILT_IN_ASAN_*_N if set.
19440         (build_check_stmt): Likewise.
19441         (instrument_derefs): If T has insufficient alignment,
19442         force same handling as for odd sizes.
19444         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
19445         BUILT_IN_ASAN_REPORT_STORE_N): New.
19446         * asan.c (struct asan_mem_ref): Change access_size type to
19447         HOST_WIDE_INT.
19448         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
19449         update_mem_ref_hash_table): Likewise.
19450         (asan_mem_ref_hasher::hash): Hash in a HWI.
19451         (report_error_func): Change size_in_bytes argument to HWI.
19452         Use *_N builtins if size_in_bytes is larger than 16 or not power of
19453         two.
19454         (build_shadow_mem_access): New function.
19455         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
19456         Handle size_in_bytes not power of two or larger than 16.
19457         (instrument_derefs): Don't give up if size_in_bytes is not
19458         power of two or is larger than 16.
19460 2014-05-30  Kai Tietz  <ktietz@redhat.com>
19462         PR target/60104
19463         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
19464         for sibling-tail-calls.
19465         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
19466         to its use.
19467         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
19468         (sibcall_insn_operand): Add check for sibcall_memory_operand.
19470 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19472         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
19473         * config/avr/avr-tables.opt: Regenerate.
19474         * config/avr/t-multilib: Regenerate.
19475         * doc/avr-mmcu.texi: Regenerate.
19477 2014-05-30  Ian Lance Taylor  <iant@google.com>
19479         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
19480         target("sse").
19482 2014-05-30  Tom de Vries  <tom@codesourcery.com>
19484         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
19485         Redefine as true.
19487 2014-05-30  Tom de Vries  <tom@codesourcery.com>
19489         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19490         * lra.c (initialize_lra_reg_info_element): Add init of
19491         actual_call_used_reg_set field.
19492         (lra): Call lra_create_live_ranges before lra_inheritance for
19493         -fuse-caller-save.
19494         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19495         -fuse-caller-save.
19496         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
19497         instead of call_used_reg_set for -fuse-caller-save.
19498         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19500 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19502         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
19503         to mov_imm.
19504         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
19506 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
19508         * ira.c (ira_get_dup_out_num): Check for output operands at
19509         the start of the loop.  Handle cases where an included alternative
19510         follows an excluded one.
19512 2014-05-29  Mike Stump  <mikestump@comcast.net>
19514         PR debug/61352
19515         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
19516         post ld passes when lto is used.
19518 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
19520         PR rtl-optimization/61325
19521         * lra-constraints.c (process_address): Rename to process_address_1.
19522         (process_address): New function.
19524 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
19526         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
19527         TYPES_BINOPV): New static data.
19528         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
19529         New builtin.
19530         * config/aarch64/aarch64-simd.md (aarch64_ext,
19531         aarch64_im_lane_boundsi): New patterns.
19532         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
19533         patterns for EXT.
19534         (aarch64_evpc_ext): New function.
19536         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
19538         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
19539         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
19540         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
19541         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
19542         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
19544 2014-05-29  Tom de Vries  <tom@codesourcery.com>
19546         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
19548 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
19549             Richard Sandiford  <rdsandiford@googlemail.com>
19551         * arm/iterators.md (shiftable_ops): New code iterator.
19552         (t2_binop0, arith_shift_insn): New code attributes.
19553         * arm/predicates.md (shift_nomul_operator): New predicate.
19554         * arm/arm.md (insn_enabled): Delete.
19555         (enabled): Remove insn_enabled test.
19556         (*arith_shiftsi): Delete.  Replace with ...
19557         (*<arith_shift_insn>_multsi): ... new pattern.
19558         (*<arith_shift_insn>_shiftsi): ... new pattern.
19559         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
19561 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
19562             Tom de Vries  <tom@codesourcery.com>
19564         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
19565         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
19566         clobber.
19567         (mips_split_call): Use POST_CALL_TMP_REG.
19568         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
19570 2014-05-29  Tom de Vries  <tom@codesourcery.com>
19572         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
19573         with #ifdef STACK_REGS.
19575 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
19577         * varasm.c (get_variable_section): Walk aliases.
19578         (place_block_symbol): Walk aliases.
19580 2014-05-28  Tom de Vries  <tom@codesourcery.com>
19582         Revert:
19583         2014-05-28  Tom de Vries  <tom@codesourcery.com>
19585         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19586         * lra.c (initialize_lra_reg_info_element): Add init of
19587         actual_call_used_reg_set field.
19588         (lra): Call lra_create_live_ranges before lra_inheritance for
19589         -fuse-caller-save.
19590         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19591         -fuse-caller-save.
19592         * lra-constraints.c (need_for_call_save_p): Use
19593         actual_call_used_reg_set instead of call_used_reg_set for
19594         -fuse-caller-save.
19595         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19597 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19599         * doc/md.texi: Document that the % constraint character must
19600         be at the beginning of the string.
19601         * genoutput.c (validate_insn_alternatives): Check that '=',
19602         '+' and '%' only appear at the beginning of a constraint.
19603         * ira.c (commutative_constraint_p): Delete.
19604         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
19605         at the start of the string.
19606         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
19607         duplicate '='s.
19608         * config/arm/neon.md (bicdi3_neon): Likewise.
19609         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
19610         (slt_si, sltu_si): Likewise.
19611         * config/vax/vax.md (sbcdi3): Likewise.
19612         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
19613         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
19614         (mul64): Move '%' to beginning of constraint.
19615         * config/arm/arm.md (*xordi3_insn): Likewise.
19616         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
19617         (xorsi3): Likewise.
19619 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19621         * doc/md.texi: Document the restrictions on the "enabled" attribute.
19623 2014-05-28  Jason Merrill  <jason@redhat.com>
19625         PR c++/47202
19626         * cgraph.h (symtab_node::get_comdat_group_id): New.
19627         * cgraphunit.c (analyze_functions): Call it.
19628         * symtab.c (dump_symtab_node): Likewise.
19629         * tree.c (decl_comdat_group_id): New.
19630         * tree.h: Declare it.
19631         * lto-streamer-out.c (write_symbol): Use it.
19632         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
19634 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19636         PR bootstrap/PR61146
19637         * wide-int.cc: Do not include longlong.h when compiling with clang.
19639 2014-05-28  Richard Biener  <rguenther@suse.de>
19641         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
19642         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
19643         (vrp_visit_assignment_or_call): Print less vertical space.
19644         (vrp_visit_stmt): Likewise.
19645         (vrp_visit_phi_node): Likewise.  For a PHI argument with
19646         VR_VARYING range consider recording it as copy.
19648 2014-05-28  Richard Biener  <rguenther@suse.de>
19650         Revert
19651         2014-05-28  Richard Biener  <rguenther@suse.de>
19653         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19655 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19657         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
19658         sufficiently aligned and an offset is used at the same time.
19659         (expand_expr_real_1): Likewise.
19661 2014-05-28  Richard Biener  <rguenther@suse.de>
19663         PR middle-end/61045
19664         * fold-const.c (fold_comparison): When folding
19665         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
19666         the sign of the remaining constant operand stays the same.
19668 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
19670         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
19671         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
19672         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
19673         to the assembler.
19674         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
19675         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
19676         (m32bit-doubles) Likewise.
19677         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
19678         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
19679         option for RL78.
19681 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19683         * configure.ac ($gcc_cv_ld_clearcap): New test.
19684         * configure: Regenerate.
19685         * config.in: Regenerate.
19686         * config/sol2.opt (mclear-hwcap): New option.
19687         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
19688         * config/sol2-clearcap.map: Moved here from
19689         testsuite/gcc.target/i386/clearcap.map.
19690         * config/sol2-clearcapv2.map: Move here from
19691         gcc.target/i386/clearcapv2.map.
19692         * config/t-sol2 (install): Depend on install-clearcap-map.
19693         (install-clearcap-map): New target.
19694         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
19695         -mclear-hwcap.
19697 2014-05-28  Richard Biener  <rguenther@suse.de>
19699         * hwint.h (*_HALF_WIDE_INT*): Move to ...
19700         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
19701         ... here and remove the rest.
19702         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
19704 2014-05-28  Richard Biener  <rguenther@suse.de>
19706         PR tree-optimization/61335
19707         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
19708         new range fails, drop to varying.
19710 2014-05-28  Olivier Hainque  <hainque@adacore.com>
19712         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
19713         (CPP_SPEC): Add entry for -mcpu=8548.
19714         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
19715         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
19717 2014-05-28  Tom de Vries  <tom@codesourcery.com>
19719         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
19720         * lra.c (initialize_lra_reg_info_element): Add init of
19721         actual_call_used_reg_set field.
19722         (lra): Call lra_create_live_ranges before lra_inheritance for
19723         -fuse-caller-save.
19724         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
19725         -fuse-caller-save.
19726         * lra-constraints.c (need_for_call_save_p): Use
19727         actual_call_used_reg_set instead of call_used_reg_set for
19728         -fuse-caller-save.
19729         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
19731 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
19732             Tom de Vries  <tom@codesourcery.com>
19734         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
19735         to gccoptlist.
19736         (@item -fuse-caller-save): New item.
19738 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
19739             Tom de Vries  <tom@codesourcery.com>
19741         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
19742         OPT_fuse_caller_save.
19744 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
19745             Tom de Vries  <tom@codesourcery.com>
19747         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
19748         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
19749         get_call_reg_set_usage.
19750         * resource.c (mark_set_resources, mark_target_live_regs): Use
19751         get_call_reg_set_usage.
19752         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
19753         field.
19754         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
19755         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
19756         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19757         * ira-build.c (ira_create_allocno): Init
19758         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19759         (create_cap_allocno, propagate_allocno_info)
19760         (propagate_some_info_from_allocno)
19761         (copy_info_to_removed_store_destinations): Handle
19762         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
19763         * ira-costs.c (ira_tune_allocno_costs): Use
19764         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
19766 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
19767             Tom de Vries  <tom@codesourcery.com>
19769         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
19770         and function_used_regs_valid fields.
19771         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
19772         find_all_hard_reg_sets.
19773         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
19774         (get_call_reg_set_usage): New function.
19775         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
19776         * regs.h (get_call_reg_set_usage): Declare.
19778 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
19780         PR libgcc/61152
19781         * config/dbx.h (License): Add Runtime Library Exception.
19782         * config/newlib-stdint.h (License): Same.
19783         * config/rtems.h (License): Same
19784         * config/initfini-array.h (License): Same
19785         * config/v850/v850.h (License): Same.
19786         * config/v850/v850-opts.h (License): Same
19787         * config/v850/rtems.h (License): Same.
19789 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
19791         PR target/61044
19792         * doc/extend.texi (Local Labels): Note that label differences are
19793         not supported for AVR.
19795 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
19796             Olivier Hainque  <hainque@adacore.com>
19798         * rtl.h (set_for_reg_notes): Declare.
19799         * emit-rtl.c (set_for_reg_notes): New function.
19800         (set_unique_reg_note): Use it.
19801         * optabs.c (add_equal_note): Likewise
19803 2014-05-27  Andrew Pinski  <apinski@cavium.com>
19805         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
19806         Use <w> for the register in assembly template.
19807         (stack_protect_test): Use the mode of operands[0] for the result.
19808         (stack_protect_test_<mode>): Use <w> for the register
19809         in assembly template.
19811 2014-05-27  DJ Delorie  <dj@redhat.com>
19813         * config/rx/rx.c (add_vector_labels): New.
19814         (rx_output_function_prologue): Call it.
19815         (rx_handle_func_attribute): Don't require empty arguments.
19816         (rx_handle_vector_attribute): New.
19817         (rx_attribute_table): Add "vector" attribute.
19818         * doc/extend.texi (interrupt, vector): Document new/changed
19819         RX-specific attributes.
19821         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
19823 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
19825         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
19826         predicate to detect a negative quotient.
19828 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
19830         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
19831         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
19832         Add X - Y CMP 0 to X CMP Y transformation.
19833         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
19835 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
19837         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
19838         before printing.
19840 2014-05-27  Steve Ellcey  <sellcey@mips.com>
19842         * config/mips/mips.c: Add include of cgraph.h.
19844 2014-05-27  Richard Biener  <rguenther@suse.de>
19846         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
19848 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
19850         PR libgcc/61152
19851         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
19852         * config/arm/arm-cores.def (License): Same.
19853         * config/arm/arm-opts.h (License): Same.
19854         * config/arm/aout.h (License): Same.
19855         * config/arm/bpabi.h (License): Same.
19856         * config/arm/elf.h (License): Same.
19857         * config/arm/linux-elf.h (License): Same.
19858         * config/arm/linux-gas.h (License): Same.
19859         * config/arm/netbsd-elf.h (License): Same.
19860         * config/arm/uclinux-eabi.h (License): Same.
19861         * config/arm/uclinux-elf.h (License): Same.
19862         * config/arm/vxworks.h (License): Same.
19864 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19866         * config/arm/neon.md (neon_bswap<mode>): New pattern.
19867         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
19868         (arm_init_neon_builtins): Handle NEON_BSWAP.
19869         Define required type nodes.
19870         (arm_expand_neon_builtin): Handle NEON_BSWAP.
19871         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
19872         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
19873         * config/arm/iterators.md (VDQHSD): New mode iterator.
19875 2014-05-27  Richard Biener  <rguenther@suse.de>
19877         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
19878         Try using literal operands when comparing value-ranges failed.
19880 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
19882         * ira.c (commutative_operand): Adjust for change to recog_data.
19883         [Missing from previous commit.]
19885 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
19887         * system.h (TEST_BIT): New macro.
19888         * recog.h (alternative_mask): New type.
19889         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
19890         (recog_data_d): Replace alternative_enabled_p array with
19891         enabled_alternatives.
19892         (target_recog): New structure.
19893         (default_target_recog, this_target_recog): Declare.
19894         (get_enabled_alternatives, recog_init): Likewise.
19895         * recog.c (default_target_recog, this_target_recog): New variables.
19896         (get_enabled_alternatives): New function.
19897         (extract_insn): Use it.
19898         (recog_init): New function.
19899         (preprocess_constraints, constrain_operands): Adjust for change to
19900         recog_data.
19901         * postreload.c (reload_cse_simplify_operands): Likewise.
19902         * reload.c (find_reloads): Likewise.
19903         * ira-costs.c (record_reg_classes): Likewise.
19904         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
19905         all alternatives after a disabled one would be skipped.
19906         (ira_implicitly_set_insn_hard_regs): Likewise.
19907         * ira.c (ira_setup_alts): Adjust for change to recog_data.
19908         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
19909         with enabled_alternatives.
19910         * lra.c (free_insn_recog_data): Update accordingly.
19911         (lra_update_insn_recog_data): Likewise.
19912         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
19913         * lra-constraints.c (process_alt_operands): Likewise.  Handle
19914         only_alternative as part of the enabled mask.
19915         * target-globals.h (this_target_recog): Declare.
19916         (target_globals): Add a recog field.
19917         (restore_target_globals): Restore this_target_recog.
19918         * target-globals.c: Include recog.h.
19919         (default_target_globals): Initialize recog field.
19920         (save_target_globals): Likewise.
19921         * reginfo.c (reinit_regs): Call recog_init.
19922         * toplev.c (backend_init_target): Likewise.
19924 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
19926         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
19927         rather than any named insn's code.
19929 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
19931         PR libgcc/61152
19932         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
19933         * config/arm/arm-cores.def (License): Same.
19935 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
19937         * tree.h (decl_comdat_group): Declare.
19938         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
19939         * tree.c (decl_comdat_group): Here.
19941 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
19943         PR rtl-optimization/61222
19944         * combine.c (simplify_shift_const_1): When moving a PLUS outside
19945         the shift, truncate the PLUS operand to the result mode.
19947 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
19949         PR target/61271
19950         * config/i386/i386.c (ix86_rtx_costs)
19951         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
19952         Fix condition.
19954 2014-05-26  Martin Jambor  <mjambor@suse.cz>
19956         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
19957         subreg uses.
19959 2014-05-26  Richard Biener  <rguenther@suse.de>
19961         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
19962         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
19963         Provide specializations.
19964         (wi::int_traits <HOST_WIDE_INT>,
19965         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
19967 2014-05-26  Alan Modra  <amodra@gmail.com>
19969         PR target/61098
19970         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
19971         params and return a bool.  Remove dead code.  Update comment.
19972         Assert we have a const_int source.  Remove bogus code from
19973         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
19974         handling of constants > 2G and reg_equal note, from..
19975         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
19976         return value.  Update comment.  If we can, use a new pseudo
19977         for intermediate calculations.
19978         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
19979         prototype.
19980         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
19981         call to rs6000_emit_set_const in splitter.
19982         (movdi_internal64+2, +3): Likewise.
19984 2014-05-26  Richard Biener  <rguenther@suse.de>
19986         * system.h: Define __STDC_FORMAT_MACROS before
19987         including inttypes.h.
19988         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
19989         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
19990         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
19991         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
19992         HOST_WIDEST_INT_C): Remove.
19993         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
19994         if C99 inttypes.h is not available.
19995         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
19996         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
19997         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
19998         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
19999         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
20000         (struct output_info): Likewise.
20001         (print_statistics): Adjust.
20002         (dump_bitmap_statistics): Likewise.
20003         * bt-load.c (migrate_btr_defs): Print with PRId64.
20004         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
20005         (MAX_SAFE_MULTIPLIER): Adjust.
20006         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
20007         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
20008         dump_cgraph_node): Likewise.
20009         * final.c (dump_basic_block_info): Likewise.
20010         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
20011         * gcov.c (format_gcov): Likewise.
20012         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
20013         for calculation.
20014         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
20015         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
20016         (inline_small_functions, dump_overall_stats, dump_inline_stats):
20017         Use PRId64 for dumping.
20018         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
20019         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
20020         (add_allocno_hard_regs): Adjust.
20021         * loop-doloop.c (doloop_modify): Print using PRId64.
20022         * loop-iv.c (inverse): Compute in uint64_t.
20023         (determine_max_iter, iv_number_of_iterations): Likewise.
20024         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
20025         Print using PRId64.
20026         * lto-streamer-out.c (write_symbol): Use uint64_t.
20027         * mcf.c (CAP_INFINITY): Use int64_t maximum.
20028         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
20029         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
20030         * modulo-sched.c (const_iteration_count): Use int64_t.
20031         (sms_schedule): Dump using PRId64.
20032         * predict.c (dump_prediction): Likewise.
20033         * pretty-print.h (pp_widest_integer): Remove.
20034         * profile.c (get_working_sets, is_edge_inconsistent,
20035         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
20036         * tree-pretty-print.c (pp_double_int): Remove case handling
20037         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
20038         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
20039         and adjust users.
20040         (pass_optimize_bswap::execute): Remove restriction on hosts.
20041         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
20042         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
20043         * tree.c (widest_int_cst_value): Remove.
20044         * tree.h (widest_int_cst_value): Likewise.
20045         * value-prof.c (dump_histogram_value): Print using PRId64.
20046         * gengtype.c (main): Also inject int64_t.
20047         * ggc-page.c (struct max_alignment): Use int64_t.
20048         * alloc-pool.c (struct allocation_object_def): Likewise.
20049         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
20050         for computation.
20051         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
20052         * doc/tm.texi: Regenerated.
20053         * gengtype-lex.l (IWORD): Handle [u]int64_t.
20054         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
20055         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
20056         mmix_output_register_setting): Use [u]int64_t in prototypes.
20057         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
20058         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
20059         mmix_output_octa, mmix_output_shifted_value): Adjust.
20060         (mmix_intval): Adjust.  Remove unreachable case.
20061         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
20063 2014-05-26  Richard Biener  <rguenther@suse.de>
20065         * configure.ac: Drop __int64 type check.  Insist that we
20066         found uint64_t and int64_t.
20067         * hwint.h (HOST_BITS_PER___INT64): Remove.
20068         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
20069         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
20070         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
20071         (HOST_WIDEST_FAST_INT): Remove __int64 case.
20072         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
20073         for dst_q_src_df_rms_cdt.
20074         * configure: Regenerate.
20075         * config.in: Likewise.
20077 2014-05-26  Michael Tautschnig  <mt@debian.org>
20079         PR target/61249
20080         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
20081         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
20083 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20085         PR rtl-optimization/61278
20086         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
20088 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20090         PR rtl-optimization/61220
20091         Part of PR rtl-optimization/61225
20092         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
20093         insn; skip split_edge for a block with only one successor.
20095 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20097         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
20098         for variables.
20100 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20102         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
20103         (update_vtable_references): New function.
20104         (function_and_variable_visibility): Rewrite also vtable initializers.
20105         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
20107 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20109         * ggc.h (ggc_grow): New function.
20110         * ggc-none.c (ggc_grow): New function.
20111         * ggc-page.c (ggc_grow): Likewise.
20113 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20115         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
20116         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
20117         comdat_can_be_unshared_p, cgraph_externally_visible_p,
20118         varpool_externally_visible_p, can_replace_by_local_alias,
20119         update_visibility_by_resolution_info, function_and_variable_visibility,
20120         pass_data_ipa_function_and_variable_visibility,
20121         make_pass_ipa_function_and_variable_visibility,
20122         whole_program_function_and_variable_visibility,
20123         pass_data_ipa_whole_program_visibility,
20124         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
20125         * cgraph.h (cgraph_local_node_p): Declare.
20126         * ipa-visibility.c: New file.
20127         * Makefile.in (OBJS): Add ipa-visiblity.o
20129 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20131         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
20132         that var decl is available.
20134 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20136         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
20137         symtab_node pointer.
20138         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
20139         (find_decls_types_r): Do not walk COMDAT_GROUP.
20140         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
20141         * varasm.c (make_decl_one_only): Use set_comdat_group;
20142         create node if needed.
20143         * ipa-inline-transform.c (save_inline_function_body): Update
20144         way we decl->symtab mapping.
20145         * symtab.c (symtab_hash, hash_node, eq_node
20146         symtab_insert_node_to_hashtable): Remove.
20147         (symtab_register_node): Update.
20148         (symtab_unregister_node): Update.
20149         (symtab_get_node): Reimplement as inline function.
20150         (symtab_add_to_same_comdat_group): Update.
20151         (symtab_dissolve_same_comdat_group_list): Update.
20152         (dump_symtab_base): Update.
20153         (verify_symtab_base): Update.
20154         (symtab_make_decl_local): Update.
20155         (fixup_same_cpp_alias_visibility): Update.
20156         (symtab_nonoverwritable_alias): Update.
20157         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
20158         * ipa.c (update_visibility_by_resolution_info): UPdate.
20159         * bb-reorder.c: Include cgraph.h
20160         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
20161         with comdat groups.
20162         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
20163         * cgraph.c (cgraph_get_create_node): Update.
20164         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
20165         and comdat_group_.
20166         (symtab_get_node): Make inline.
20167         (symtab_insert_node_to_hashtable): Remove.
20168         (symtab_can_be_discarded): Update.
20169         (decl_comdat_group): New function.
20170         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
20171         Update.
20172         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
20173         comdat group name.
20174         (read_comdat_group): New function.
20175         (input_node, input_varpool_node): Use it.
20176         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
20177         comdat groups.
20178         * mips.c (mips_start_unique_function): Likewise.
20179         (ix86_code_end): Likewise.
20180         (rs6000_code_end): Likweise.
20181         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
20183 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20185         * gengtype-state.c (fatal_reading_state): Bring offline.
20186         * optabs.c (widening_optab_handler): Bring offline.
20187         * optabs.h (widening_optab_handler): Likewise.
20188         * final.c (get_attr_length_1): Likewise.
20190 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
20192         * sched-int.h (sd_iterator_cond): Manually tail recurse.
20194 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20196         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
20197         (ppc440-compare): Include shift with dot.
20198         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
20199         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
20200         without dot.
20201         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
20202         without dot.
20203         (e6500_sfx2): Include it.
20204         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
20205         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
20206         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
20207         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
20208         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
20209         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
20210         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
20211         *lshiftrt_internal1le, *lshiftrt_internal1be,
20212         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
20213         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
20214         *rotldi3_internal10le, *rotldi3_internal10be,
20215         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
20216         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
20217         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
20218         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
20219         define_insns): Use type "shift" in the appropriate alternatives.
20221 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20223         * config/rs6000/rs6000.md (type): Add "logical".  Delete
20224         "fast_compare".
20225         (dot): Adjust comment.
20226         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
20227         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
20228         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
20229         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
20230         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
20231         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
20232         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
20233         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20235         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20236         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20237         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20238         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20239         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20240         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20241         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20242         * config/rs6000/8540.md (ppc8540_su): Adjust.
20243         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20244         cell-cmp-microcoded): Adjust.
20245         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20246         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20247         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20248         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20249         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20250         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20251         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20252         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20253         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20254         Adjust.
20255         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20256         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
20257         Adjust.  Adjust comment.
20258         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20259         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20261 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20263         * config/rs6000/rs6000.md (type): Add "add".
20264         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
20265         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
20266         define_insns): Use it.
20267         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
20269         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20270         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
20271         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20272         * config/rs6000/601.md (ppc601-integer): Adjust.
20273         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20274         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20275         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20276         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20277         * config/rs6000/8540.md (ppc8540_su): Adjust.
20278         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20279         cell-cmp-microcoded): Adjust.
20280         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
20281         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20282         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
20283         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
20284         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
20285         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20286         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
20287         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
20288         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
20289         Adjust.
20290         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
20291         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
20292         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20293         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
20295 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20297         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
20298         "delayed_compare", "var_delayed_compare".
20299         (var_shift): New attribute.
20300         (cell_micro): Adjust.
20301         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
20302         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
20303         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
20304         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20305         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20306         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20307         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20308         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
20309         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
20310         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20311         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
20312         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
20313         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
20314         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
20315         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
20316         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
20317         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
20318         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
20319         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
20320         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
20321         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
20322         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
20323         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
20324         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20325         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20327         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
20328         * config/rs6000/440.md (ppc440-integer): Adjust.
20329         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
20330         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
20331         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
20332         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
20333         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
20334         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
20335         * config/rs6000/8540.md (ppc8540_su): Adjust.
20336         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
20337         cell-cmp-microcoded): Adjust.
20338         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
20339         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20340         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
20341         e500mc64_delayed): Adjust.
20342         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
20343         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
20344         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
20345         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
20346         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
20347         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
20348         power6-delayed-compare, power6-var-delayed-compare): Adjust.
20349         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
20350         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
20351         Adjust comment.
20352         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
20353         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20355 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20357         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
20358         (bits): New mode_attr.
20359         (idiv_ldiv): Delete mode_attr.
20360         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
20361         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20362         rs6000_adjust_priority, is_nonpipeline_insn,
20363         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20365         * config/rs6000/40x.md (ppc403-idiv): Adjust.
20366         * config/rs6000/440.md (ppc440-idiv): Adjust.
20367         * config/rs6000/476.md (ppc476-idiv): Adjust.
20368         * config/rs6000/601.md (ppc601-idiv): Adjust.
20369         * config/rs6000/603.md (ppc603-idiv): Adjust.
20370         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
20371         ppc620-ldiv): Adjust.
20372         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
20373         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
20374         * config/rs6000/8540.md (ppc8540_divide): Adjust.
20375         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
20376         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
20377         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
20378         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
20379         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
20380         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
20381         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
20382         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
20383         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
20384         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
20385         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
20386         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
20387         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
20388         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
20389         * config/rs6000/titan.md (titan_fxu_div): Adjust.
20391 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20393         * config/rs6000/rs6000.md (type): Delete "insert_word",
20394         "insert_dword".  Add "insert".
20395         (size): Update comment.
20396         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20397         insn_must_be_first_in_group): Adjust.
20398         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20399         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20400         *insvsi_internal6, insvdi_internal): Adjust.
20402         * config/rs6000/40x.md (ppc403-integer): Adjust.
20403         * config/rs6000/440.md (ppc440-integer): Adjust.
20404         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
20405         * config/rs6000/601.md (ppc601-integer): Adjust.
20406         * config/rs6000/603.md (ppc603-integer): Adjust.
20407         * config/rs6000/6xx.md (ppc604-integer): Adjust.
20408         * config/rs6000/7450.md (ppc7450-integer): Adjust.
20409         * config/rs6000/7xx.md (ppc750-integer): Adjust.
20410         * config/rs6000/8540.md (ppc8540_su): Adjust.
20411         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
20412         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
20413         * config/rs6000/e500mc.md (e500mc_su): Adjust.
20414         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
20415         * config/rs6000/e5500.md (e5500_sfx): Adjust.
20416         * config/rs6000/e6500.md (e6500_sfx): Adjust.
20417         * config/rs6000/mpc.md (mpccore-integer): Adjust.
20418         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
20419         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
20420         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
20421         * config/rs6000/power7.md (power7-integer): Adjust.
20422         * config/rs6000/power8.md (power8-1cyc): Adjust.
20423         * config/rs6000/rs64.md (rs64a-integer): Adjust.
20424         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
20426 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20428         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
20429         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
20430         (size): New attribute.
20431         (dot): New attribute.
20432         (cell_micro): Adjust.
20433         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
20434         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
20435         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
20436         umuldi3_highpart): Adjust.
20437         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
20438         rs6000_adjust_priority, is_nonpipeline_insn,
20439         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
20441         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
20442         ppc405-imul3): Adjust.
20443         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
20444         * config/rs6000/476.md (ppc476-imul): Adjust.
20445         * config/rs6000/601.md (ppc601-imul): Adjust.
20446         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
20447         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
20448         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
20449         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
20450         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
20451         Adjust.
20452         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
20453         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
20454         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
20455         cell-imul): Adjust.
20456         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
20457         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
20458         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
20459         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
20460         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
20461         * config/rs6000/mpc.md (mpccore-imul): Adjust.
20462         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
20463         power4-lmul, power4-imul, power4-imul3): Adjust.
20464         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
20465         power5-lmul, power5-imul, power5-imul3): Adjust.
20466         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
20467         power6-lmul, power6-imul, power6-imul3): Adjust.
20468         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
20469         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
20471         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
20472         rs64a-lmul): Adjust.
20473         * config/rs6000/titan.md (titan_imul): Adjust.
20475 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20477         * config/rs6000/rs6000.md (type): Add new value "halfmul".
20478         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
20479         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
20480         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
20481         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
20482         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
20483         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
20484         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
20485         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
20486         * config/rs6000/titan.md: Delete nonsensical comment.
20487         (titan_imul): Add type imul3.
20488         (titan_mulhw): Remove type imul3; add type halfmul.
20490 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
20492         * config/rs6000/rs6000.md (type): Reorder, reformat.
20494 2014-05-23  Martin Jambor  <mjambor@suse.cz>
20496         PR tree-optimization/53787
20497         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
20498         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
20499         analysis_done, update all uses.
20500         * ipa-prop.c: Include domwalk.h
20501         (param_analysis_info): Removed.
20502         (param_aa_status): New type.
20503         (ipa_bb_info): Likewise.
20504         (func_body_info): Likewise.
20505         (ipa_get_bb_info): New function.
20506         (aa_overwalked): Likewise.
20507         (find_dominating_aa_status): Likewise.
20508         (parm_bb_aa_status_for_bb): Likewise.
20509         (parm_preserved_before_stmt_p): Changed to use new param AA info.
20510         (load_from_unmodified_param): Accept func_body_info as a parameter
20511         instead of parms_ainfo.
20512         (parm_ref_data_preserved_p): Changed to use new param AA info.
20513         (parm_ref_data_pass_through_p): Likewise.
20514         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
20515         (compute_complex_assign_jump_func): Changed to use new param AA info.
20516         (compute_complex_ancestor_jump_func): Likewise.
20517         (ipa_compute_jump_functions_for_edge): Likewise.
20518         (ipa_compute_jump_functions): Removed.
20519         (ipa_compute_jump_functions_for_bb): New function.
20520         (ipa_analyze_indirect_call_uses): Likewise, moved variable
20521         declarations down.
20522         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
20523         and info, moved variable declarations down.
20524         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
20525         node and info.
20526         (ipa_analyze_stmt_uses): Likewise.
20527         (ipa_analyze_params_uses): Removed.
20528         (ipa_analyze_params_uses_in_bb): New function.
20529         (ipa_analyze_controlled_uses): Likewise.
20530         (free_ipa_bb_info): Likewise.
20531         (analysis_dom_walker): New class.
20532         (ipa_analyze_node): Handle node-specific forbidden analysis,
20533         initialize and free func_body_info, use dominator walker.
20534         (ipcp_modif_dom_walker): New class.
20535         (ipcp_transform_function): Create and free func_body_info, use
20536         ipcp_modif_dom_walker, moved a lot of functionality there.
20538 2014-05-23  Marek Polacek  <polacek@redhat.com>
20539             Jakub Jelinek  <jakub@redhat.com>
20541         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
20542         * gcc.c (sanitize_spec_function): Likewise.
20543         * convert.c (convert_to_integer): Include "ubsan.h".  Add
20544         floating-point to integer instrumentation.
20545         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
20546         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
20547         SANITIZE_NONDEFAULT.
20548         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
20549         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
20550         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
20551         * ubsan.c: Include "realmpfr.h" and "dfp.h".
20552         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
20553         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
20554         float/double/long double.
20555         (ubsan_instrument_float_cast): New function.
20556         * ubsan.h (ubsan_instrument_float_cast): Declare.
20558 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
20560         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
20561         predicate.
20562         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
20563         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
20564         Adjust for tailcalling through registers.
20565         * config/aarch64/aarch64.h (enum reg_class): New caller save
20566         register class.
20567         (REG_CLASS_NAMES): Likewise.
20568         (REG_CLASS_CONTENTS): Likewise.
20569         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
20570         Allow tailcalling without decls.
20572 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
20574         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20575         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
20577         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
20578         gsi, and variables v_* to v*.
20580 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
20582         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
20584 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
20586         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
20587         * omp-low.c: Update accordingly.
20589         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
20590         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
20591         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
20592         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
20593         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
20594         GF_OMP_TARGET_KIND_UPDATE.
20596         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
20597         Explicitly enumerate the expected region types.
20599 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20601         PR other/56955
20602         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
20603         documentation; the old documentation didn't clearly state the
20604         constraints on the contents of the pointed-to storage.
20606 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20608         Fix bootstrap error on ia64
20609         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
20610         Return default value.
20612 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20614         PR tree-optimization/54733
20615         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
20616         (CMPNOP): Define.
20617         (find_bswap_or_nop_load): New.
20618         (find_bswap_1): Renamed to ...
20619         (find_bswap_or_nop_1): This. Also add support for memory source.
20620         (find_bswap): Renamed to ...
20621         (find_bswap_or_nop): This. Also add support for memory source and
20622         detection of bitwise operations equivalent to load in target
20623         endianness.
20624         (execute_optimize_bswap): Likewise. Also move its leading comment back
20625         in place and split statement transformation into ...
20626         (bswap_replace): This.
20628 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
20630         PR rtl-optimization/61215
20631         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
20632         simplify_gen_subreg until final substitution.
20634 2014-05-23  Alan Modra  <amodra@gmail.com>
20636         PR target/61231
20637         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
20638         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
20639         Use "Y" constraint rather than "m".
20641 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
20643         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
20644         define.
20645         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
20646         New function declaration.
20647         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
20648         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
20649         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
20650         (aarch64_init_builtins) : Initialize builtins
20651         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
20652         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
20653         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
20654         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
20655         and __builtins_aarch64_set_fpsr.
20656         (aarch64_atomic_assign_expand_fenv): New function.
20657         * config/aarch64/aarch64.md (set_fpcr): New pattern.
20658         (get_fpcr) : Likewise.
20659         (set_fpsr) : Likewise.
20660         (get_fpsr) : Likewise.
20661         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
20662          and UNSPECV_SET_FPSR.
20663         * doc/extend.texi (AARCH64 Built-in Functions) : Document
20664         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
20665         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
20667 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
20669         PR rtl-optimization/60969
20670         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
20671         constraints.  Set up mem cost for NO_REGS case.
20673 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
20675         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
20677 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
20679         * config/darwin.c: Include "lto-section-names.h".
20680         (LTO_SEGMENT_NAME): Don't define.
20681         * config/i386/winnt.c: Include "lto-section-names.h".
20682         * lto-streamer.c: Include "lto-section-names.h".
20683         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
20684         * lto-wrapper.c: Include "lto-section-names.h".
20685         (LTO_SECTION_NAME_PREFIX): Don't define.
20686         * lto-section-names.h: New file.
20687         * cgraphunit.c: Include "lto-section-names.h".
20689 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
20691         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
20693 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
20695         PR target/61208
20696         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
20698 2014-05-22  Nick Clifton  <nickc@redhat.com>
20700         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
20702 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
20704         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
20705         -> (T)A transformation to integer types.
20707 2014-05-22  Teresa Johnson  <tejohnson@google.com>
20709         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
20710         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
20711         (gcov_rewrite): Use gcov_nonruntime_assert.
20712         (gcov_open): Ditto.
20713         (gcov_write_words): Ditto.
20714         (gcov_write_length): Ditto.
20715         (gcov_read_words): Use gcov_nonruntime_assert, and remove
20716         gcc_assert from IN_LIBGCOV code.
20717         (gcov_read_summary): Use gcov_error to flag profile corruption.
20718         (gcov_sync): Use gcov_nonruntime_assert.
20719         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
20720         (gcov_histo_index): Use gcov_nonruntime_assert.
20721         (static void gcov_histogram_merge): Ditto.
20722         (compute_working_sets): Ditto.
20723         * gcov-io.h (gcov_nonruntime_assert): Define.
20724         (gcov_error): Define for !IN_LIBGCOV
20726 2014-05-22  Richard Biener  <rguenther@suse.de>
20728         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20729         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
20730         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
20731         and deallocation site.
20732         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20733         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
20734         passing through the incoming points-to set.
20735         (handle_lhs_call): Use flags argument instead of recomputing it.
20736         (find_func_aliases_for_call): Call handle_lhs_call with proper
20737         call return flags.
20739 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
20741         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
20742         all padding bits in REAL_VALUE_TYPE are cleared.
20744 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20746         Cleanup and improve multipass_dfa_lookahead_guard
20747         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
20748         (core2i7_first_cycle_multipass_begin,)
20749         (core2i7_first_cycle_multipass_issue,)
20750         (core2i7_first_cycle_multipass_backtrack): Update signature.
20751         * config/ia64/ia64.c
20752         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
20753         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
20754         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
20755         hook definition.
20756         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
20757         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
20758         values.
20759         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
20760         return values.
20761         * doc/tm.texi: Regenerate.
20762         * doc/tm.texi.in
20763         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
20764         * haifa-sched.c (ready_try): Make signed to allow negative values.
20765         (rebug_ready_list_1): Update.
20766         (choose_ready): Simplify.
20767         (sched_extend_ready_list): Update.
20769 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20771         Remove IA64 speculation tweaking flags
20772         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
20773         speculation tuning flags.
20774         (msched-prefer-non-data-spec-insns,)
20775         (msched-prefer-non-control-spec-insns): Obsolete options.
20776         * haifa-sched.c (choose_ready): Remove handling of
20777         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
20778         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
20779         and PREFER_NON_DATA_SPEC.
20780         * sel-sched.c (process_spec_exprs): Remove handling of
20781         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
20783 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20785         Improve scheduling debug output
20786         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
20787         (advance_one_cycle): Update.
20788         (schedule_insn, queue_to_ready): Add debug printouts.
20789         (debug_ready_list_1): New static function.
20790         (debug_ready_list): Update.
20791         (max_issue): Add debug printouts.
20792         (dump_insn_stream): New static function.
20793         (schedule_block): Use it.  Also better indent printouts.
20795 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20797         Fix sched_insn debug counter
20798         * haifa-sched.c (schedule_insn): Update.
20799         (struct haifa_saved_data): Add nonscheduled_insns_begin.
20800         (save_backtrack_point, restore_backtrack_point): Update.
20801         (first_nonscheduled_insn): New static function.
20802         (queue_to_ready, choose_ready): Use it.
20803         (schedule_block): Init nonscheduled_insns_begin.
20804         (sched_emit_insn): Update.
20807 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
20809         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
20810         to GENERAL_REGS.
20811         (aarch64_secondary_reload) : LikeWise.
20812         (aarch64_class_max_nregs) : Remove CORE_REGS.
20813         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
20814         (REG_CLASS_NAMES) : Likewise.
20815         (REG_CLASS_CONTENTS) : LikeWise.
20816         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
20818 2014-05-21  Guozhi Wei  <carrot@google.com>
20820         PR target/61202
20821         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
20822         constraint.
20823         (vqdmulhq_n_s16): Likewise.
20825 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
20827         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
20829 2014-05-21  Marek Polacek  <polacek@redhat.com>
20831         PR sanitizer/61272
20832         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
20834 2014-05-21  Martin Jambor  <mjambor@suse.cz>
20836         * doc/invoke.texi (Optimize Options): Document parameters
20837         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
20838         ipa-cp-array-index-hint-bonus.
20840 2014-05-21  Mark Wielaard  <mjw@redhat.com>
20842         PR debug/16063
20843         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
20844         version >= 3 or not strict DWARF.
20845         * langhooks.h (struct lang_hooks_for_types): Add
20846         enum_underlying_base_type.
20847         * langhooks.c (lhd_enum_underlying_base_type): New function.
20848         * gcc/langhooks.h (struct lang_hooks_for_types): Add
20849         enum_underlying_base_type.
20850         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
20851         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
20852         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
20854 2014-05-21  Richard Biener  <rguenther@suse.de>
20856         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
20858 2014-05-21  John Marino  <gnugcc@marino.st>
20860         * config.gcc (*-*-dragonfly*): New target.
20861         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
20862         * configure: Regenerate.
20863         * config/dragonfly-stdint.h: New.
20864         * config/dragonfly.h: New.
20865         * config/dragonfly.opt: New.
20866         * config/i386/dragonfly.h: New.
20867         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
20869 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20871         * tree.def (VOID_CST): New.
20872         * tree-core.h (TI_VOID): New.
20873         * tree.h (void_node): New.
20874         * tree.c (tree_node_structure_for_code, tree_code_size)
20875         (iterative_hash_expr): Handle VOID_CST.
20876         (build_common_tree_nodes): Initialize void_node.
20878 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
20880         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
20881         functions.
20882         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
20884         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
20885         more places.
20887         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
20888         flag_reorder_blocks_and_partition.
20889         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
20891 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
20893         PR target/54236
20894         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
20895         constraints.
20896         (*addc_r_t): Add new insn_and_split.
20898 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
20900         PR middle-end/61252
20901         * omp-low.c (handle_simd_reference): New function.
20902         (lower_rec_input_clauses): Use it.  Defer adding reference
20903         initialization even for reduction without placeholder if in simd,
20904         handle it properly later on.
20906 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
20908         PR tree-optimization/60899
20909         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
20910         assume all static symbols will have definition wile parsing and
20911         check the do have definition later in compilation; check that
20912         variable referring symbol will be output before concluding that
20913         reference is safe; be conservative for referring local statics;
20914         be more precise about when comdat is output in other partition.
20916 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
20918         PR bootstrap/60984
20919         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
20920         parameter.
20921         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
20922         (ipa_inline): Loop inline_to_all_callers until no more aliases
20923         are removed.
20925 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
20927         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
20928         set writeonly flag only for vars actually written to.
20930 2014-05-20  Dehao Chen  <dehao@google.com>
20932         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
20933         and callee count to get clone count.
20934         * tree-inline.c (expand_call_inline): Use callee count instead of bb
20935         count in copy_body.
20937 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
20939         PR rtl-optimization/61243
20940         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
20942 2014-05-20  Xinliang David Li  <davidxl@google.com>
20944         * cgraphunit.c (walk_polymorphic_call_targets): Add
20945         dbgcnt and fopt-info support.
20946         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
20947         * ipa-devirt.c (ipa_devirt): Ditto.
20948         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
20949         * ipa.c (walk_polymorphic_call_targets): Ditto.
20950         * gimple-fold.c (fold_gimple_assign): Ditto.
20951         (gimple_fold_call): Ditto.
20952         * dbgcnt.def: New counter.
20954 2014-05-20  DJ Delorie  <dj@redhat.com>
20956         * config/msp430/msp430.md (split): Don't allow subregs when
20957         splitting SImode adds.
20958         (andneghi): Fix subtraction logic.
20959         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
20961 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
20963         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
20964         symbols.
20965         * except.c (switch_to_exception_section, resolve_unique_section,
20966         get_named_text_section, default_function_rodata_section,
20967         align_variable, get_block_for_decl, default_section_type_flags):
20968         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
20969         * symtab.c (symtab_add_to_same_comdat_group,
20970         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
20971         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
20972         Likewise.
20973         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
20974         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
20975         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
20976         (c6x_function_in_section_p): Likewise.
20977         * config/darwin.c (machopic_select_section): Likewise.
20978         * config/arm/arm.c (arm_function_in_section_p): Likewise.
20979         * config/mips/mips.c (mips_function_rodata_section): Likewise.
20980         * config/mep/mep.c (mep_select_section): LIkewise.
20981         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
20983 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
20985         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
20986         EH region of calls to pure functions that can throw an exception.
20987         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
20988         (copy_reference_ops_from_call): Also copy the EH region of the call if
20989         it can throw an exception.
20991 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20993         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
20994         nested VEC_SELECTs that are inverses of each other.
20996 2014-05-20  Richard Biener  <rguenther@suse.de>
20998         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
20999         (extract_and_process_scc_for_name): not here.
21000         (cond_dom_walker::before_dom_children): Only process
21001         stmts that end the BB in interesting ways.
21002         (run_scc_vn): Mark param uses as visited.
21004 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21006         * config/arm/arm.md (arith_shiftsi): Do not predicate for
21007         arm_restrict_it.
21009 2014-05-20  Nick Clifton  <nickc@redhat.com>
21011         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21012         (msp430_gimplify_va_arg_expr): New function.
21013         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
21015         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
21016         operand 0 in order to prevent confusion about the number of
21017         registers involved.
21019 2014-05-20  Richard Biener  <rguenther@suse.de>
21021         PR tree-optimization/61221
21022         * tree-ssa-pre.c (el_to_update): Remove.
21023         (eliminate_dom_walker::before_dom_children): Handle released
21024         VDEFs by value-numbering them to the associated VUSE.  Update
21025         stmt immediately for substituted call address.
21026         (eliminate): Remove delayed stmt updating code.
21027         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
21028         possibly late re-numbered vuses.
21029         (vn_reference_lookup_2): Adjust.
21030         (vn_reference_lookup_pieces): Likewise.
21031         (vn_reference_lookup): Likewise.
21033 2014-05-20  Richard Biener  <rguenther@suse.de>
21035         * config.gcc: Remove need_64bit_hwint.
21036         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
21037         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
21038         it to be true.
21039         * config.in: Regenerate.
21040         * configure: Likewise.
21042 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
21044         * doc/extend.texi: Create Label Attributes section,
21045         move all label attributes into it and reference it.
21047 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
21049         * arm.c (thumb1_reorg): When scanning backwards skip anything
21050         that's not a proper insn.
21052 2014-05-19  Richard Biener  <rguenther@suse.de>
21054         PR tree-optimization/61221
21055         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21056         Do nothing for unreachable blocks.
21057         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
21058         Improve unreachability detection.
21060 2014-05-19  Richard Biener  <rguenther@suse.de>
21062         PR tree-optimization/61209
21063         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
21065 2014-05-19  Nick Clifton  <nickc@redhat.com>
21067         * except.c (init_eh): Fix computation of builtin setjmp buffer
21068         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
21070 2014-05-19  Richard Biener  <rguenther@suse.de>
21072         PR tree-optimization/61184
21073         * tree-vrp.c (is_negative_overflow_infinity): Use
21074         TREE_OVERFLOW_P and do that check first.
21075         (is_positive_overflow_infinity): Likewise.
21076         (is_overflow_infinity): Likewise.
21077         (vrp_operand_equal_p): Properly treat operands with
21078         differing overflow as not equal.
21080 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
21082         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
21083         shift simplification where it was intended.
21085 2014-05-19  Christian Bruel  <christian.bruel@st.com>
21087         PR target/61195
21088         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
21090 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
21092         PR target/61084
21093         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
21094         than wide_int.
21096 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
21098         * reg-notes.def (CROSSING_JUMP): Likewise.
21099         * rtl.h (rtx_def): Update comment for jump flag.
21100         (CROSSING_JUMP_P): Define.
21101         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
21102         of a REG_CROSSING_JUMP note.
21103         * cfghooks.c (tidy_fallthru_edges): Likewise.
21104         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
21105         * emit-rtl.c (try_split): Likewise.
21106         * haifa-sched.c (sched_create_recovery_edges): Likewise.
21107         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
21108         * jump.c (redirect_jump_2): Likewise.
21109         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
21110         (relax_delay_slots): Likewise.
21111         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
21112         (bbit_di): Likewise.
21113         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
21114         * config/sh/sh.md (jump_compact): Likewise.
21115         * bb-reorder.c (rotate_loop): Likewise.
21116         (pass_duplicate_computed_gotos::execute): Likewise.
21117         (add_reg_crossing_jump_notes): Rename to...
21118         (update_crossing_jump_flags): ...this.
21119         (pass_partition_blocks::execute): Update accordingly.
21121 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
21123         * tree.h: Remove extraneous template <>.
21125 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21127         * ipa.c (symtab_remove_unreachable_nodes): Remove
21128         symbol from comdat group if its body was eliminated.
21129         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
21130         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
21131         (symtab_unregister_node): ... this one.
21132         (verify_symtab_base): More strict checking of comdats.
21133         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
21135 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21137         * tree-pass.h (make_pass_ipa_comdats): New pass.
21138         * timevar.def (TV_IPA_COMDATS): New timevar.
21139         * passes.def (pass_ipa_comdats): Add.
21140         * Makefile.in (OBJS): Add ipa-comdats.o
21141         * ipa-comdats.c: New file.
21143 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21145         * ipa.c (update_visibility_by_resolution_info): New function.
21146         (function_and_variable_visibility): Use it.
21148 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
21150         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
21151         New functions.
21152         (FOR_EACH_DEFINED_SYMBOL): New macro.
21153         (varpool_first_static_initializer, varpool_next_static_initializer,
21154         varpool_first_defined_variable, varpool_next_defined_variable):
21155         Fix comments.
21156         (symtab_in_same_comdat_p): Correctly deal with inline functions.
21158 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21160         * ggc-page.c (ggc_handle_finalizers): Add comment.
21162 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21164         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
21165         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
21166         (ggc_internal_cleared_alloc): Likewise.
21167         * ggc-page.c (finalizer): New class.
21168         (vec_finalizer): Likewise.
21169         (globals::finalizers): New member.
21170         (globals::vec_finalizers): Likewise.
21171         (ggc_internal_alloc): Record the finalizer if any for the block being
21172         allocated.
21173         (ggc_handle_finalizers): New function.
21174         (ggc_collect): Call ggc_handle_finalizers.
21175         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
21176         finalizer.
21177         (ggc_internal_cleared_alloc): Likewise.
21178         (finalize): New function.
21179         (need_finalization_p): Likewise.
21180         (ggc_alloc): Install the type's destructor as the finalizer if it
21181         might do something.
21182         (ggc_cleared_alloc): Likewise.
21183         (ggc_vec_alloc): Likewise.
21184         (ggc_cleared_vec_alloc): Likewise.
21186 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21188         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
21190 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21192         * alias.c (record_alias_subset): Adjust.
21193         * bitmap.c (bitmap_element_allocate): Likewise.
21194         (bitmap_gc_alloc_stat): Likewise.
21195         * cfg.c (init_flow): Likewise.
21196         (alloc_block): Likewise.
21197         (unchecked_make_edge): Likewise.
21198         * cfgloop.c (alloc_loop): Likewise.
21199         (flow_loops_find): Likewise.
21200         (rescan_loop_exit): Likewise.
21201         * cfgrtl.c (init_rtl_bb_info): Likewise.
21202         * cgraph.c (insert_new_cgraph_node_version): Likewise.
21203         (cgraph_allocate_node): Likewise.
21204         (cgraph_create_edge_1): Likewise.
21205         (cgraph_allocate_init_indirect_info): Likewise.
21206         * cgraphclones.c (cgraph_clone_edge): Likewise.
21207         * cgraphunit.c (add_asm_node): Likewise.
21208         (init_lowered_empty_function): Likewise.
21209         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
21210         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21211         (alpha_use_linkage): Likewise.
21212         * config/arc/arc.c (arc_init_machine_status): Likewise.
21213         * config/arm/arm.c (arm_init_machine_status): Likewise.
21214         * config/avr/avr.c (avr_init_machine_status): Likewise.
21215         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21216         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
21217         * config/cris/cris.c (cris_init_machine_status): Likewise.
21218         * config/darwin.c (machopic_indirection_name): Likewise.
21219         (darwin_build_constant_cfstring): Likewise.
21220         (darwin_enter_string_into_cfstring_table): Likewise.
21221         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
21222         * config/frv/frv.c (frv_init_machine_status): Likewise.
21223         * config/i386/i386.c (get_dllimport_decl): Likewise.
21224         (ix86_init_machine_status): Likewise.
21225         (assign_386_stack_local): Likewise.
21226         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21227         (i386_pe_maybe_record_exported_symbol): Likewise.
21228         (i386_pe_record_stub): Likewise.
21229         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21230         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21231         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21232         (m32c_note_pragma_address): Likewise.
21233         * config/mep/mep.c (mep_init_machine_status): Likewise.
21234         (mep_note_pragma_flag): Likewise.
21235         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21236         (mips16_local_alias): Likewise.
21237         (mips_init_machine_status): Likewise.
21238         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21239         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21240         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
21241         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
21242         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
21243         * config/pa/pa.c (pa_init_machine_status): Likewise.
21244         (pa_get_deferred_plabel): Likewise.
21245         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
21246         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
21247         (rs6000_init_machine_status): Likewise.
21248         (output_toc): Likewise.
21249         * config/s390/s390.c (s390_init_machine_status): Likewise.
21250         * config/score/score.c (score_output_external): Likewise.
21251         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
21252         * config/spu/spu.c (spu_init_machine_status): Likewise.
21253         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
21254         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
21255         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
21256         * coverage.c (coverage_end_function): Likewise.
21257         * dbxout.c (dbxout_init): Likewise.
21258         * doc/gty.texi: Don't mention variable_size attribute.
21259         * dwarf2cfi.c (new_cfi): Adjust.
21260         (new_cfi_row): Likewise.
21261         (copy_cfi_row): Likewise.
21262         (create_cie_data): Likewise.
21263         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
21264         (new_loc_descr): Likewise.
21265         (find_AT_string_in_table): Likewise.
21266         (add_addr_table_entry): Likewise.
21267         (new_die): Likewise.
21268         (add_var_loc_to_decl): Likewise.
21269         (clone_die): Likewise.
21270         (clone_as_declaration): Likewise.
21271         (break_out_comdat_types): Likewise.
21272         (new_loc_list): Likewise.
21273         (add_loc_descr_to_each): Likewise.
21274         (add_location_or_const_value_attribute): Likewise.
21275         (add_linkage_name): Likewise.
21276         (lookup_filename): Likewise.
21277         (dwarf2out_var_location): Likewise.
21278         (new_line_info_table): Likewise.
21279         (dwarf2out_init): Likewise.
21280         (mem_loc_descriptor): Likewise.
21281         (loc_descriptor): Likewise.
21282         (add_const_value_attribute): Likewise.
21283         (tree_add_const_value_attribute): Likewise.
21284         (comp_dir_string): Likewise.
21285         (dwarf2out_vms_debug_main_pointer): Likewise.
21286         (string_cst_pool_decl): Likewise.
21287         * emit-rtl.c (set_mem_attrs): Likewise.
21288         (get_reg_attrs): Likewise.
21289         (start_sequence): Likewise.
21290         (init_emit): Likewise.
21291         (init_emit_regs): Likewise.
21292         * except.c (init_eh_for_function): Likewise.
21293         (gen_eh_region): Likewise.
21294         (gen_eh_region_catch): Likewise.
21295         (gen_eh_landing_pad): Likewise.
21296         (add_call_site): Likewise.
21297         * function.c (add_frame_space): Likewise.
21298         (insert_temp_slot_address): Likewise.
21299         (assign_stack_temp_for_type): Likewise.
21300         (get_hard_reg_initial_val): Likewise.
21301         (allocate_struct_function): Likewise.
21302         (prepare_function_start): Likewise.
21303         (types_used_by_var_decl_insert): Likewise.
21304         * gengtype.c (variable_size_p): Remove function.
21305         (enum alloc_quantity): Remove enum.
21306         (write_typed_alloc_def): Remove function.
21307         (write_typed_struct_alloc_def): Likewise.
21308         (write_typed_typedef_alloc_def): Likewise.
21309         (write_typed_alloc_defns): Likewise.
21310         (main): Adjust.
21311         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
21312         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
21313         * ggc.h (ggc_alloc): new function.
21314         (ggc_cleared_alloc): Likewise.
21315         (ggc_vec_alloc): Template on type of vector element, and remove
21316         element size argument.
21317         (ggc_cleared_vec_alloc): Likewise.
21318         * gimple.c (gimple_build_omp_for): Adjust.
21319         (gimple_copy): Likewise.
21320         * ipa-cp.c (get_replacement_map): Likewise.
21321         (find_aggregate_values_for_callers_subset): Likewise.
21322         (known_aggs_to_agg_replacement_list): Likewise.
21323         * ipa-devirt.c (get_odr_type): Likewise.
21324         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
21325         (read_agg_replacement_chain): Likewise.
21326         * loop-iv.c (get_simple_loop_desc): Likewise.
21327         * lto-cgraph.c (input_node_opt_summary): Likewise.
21328         * lto-section-in.c (lto_new_in_decl_state): Likewise.
21329         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
21330         (input_eh_region): Likewise.
21331         (input_eh_lp): Likewise.
21332         (input_cfg): Likewise.
21333         * optabs.c (set_optab_libfunc): Likewise.
21334         (init_tree_optimization_optabs): Likewise.
21335         (set_conv_libfunc): Likewise.
21336         * passes.c (do_per_function_toporder): Likewise.
21337         * rtl.h: Don't use variable_size gty attribute.
21338         * sese.c (if_region_set_false_region): Adjust.
21339         * stringpool.c (gt_pch_save_stringpool): Likewise.
21340         * target-globals.c (save_target_globals): Likewise.
21341         * toplev.c (general_init): Likewise.
21342         * trans-mem.c (record_tm_replacement): Likewise.
21343         (split_bb_make_tm_edge): Likewise.
21344         * tree-cfg.c (move_sese_region_to_fn): Likewise.
21345         * tree-data-ref.h (lambda_vector_new): Likewise.
21346         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
21347         * tree-iterator.c (tsi_link_before): Likewise.
21348         (tsi_link_after): Likewise.
21349         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
21350         * tree-ssa-loop-niter.c (record_estimate): Likewise.
21351         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
21352         * tree-ssa-operands.h: Don't use variable_size gty attribute.
21353         * tree-ssa.c (init_tree_ssa): Adjust.
21354         * tree-ssanames.c (set_range_info): Likewise.
21355         (get_ptr_info): Likewise.
21356         (duplicate_ssa_name_ptr_info): Likewise.
21357         (duplicate_ssa_name_range_info): Likewise.
21358         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
21359         (unpack_ts_fixed_cst_value_fields): Likewise.
21360         * tree.c (build_fixed): Likewise.
21361         (build_real): Likewise.
21362         (build_string): Likewise.
21363         (decl_priority_info): Likewise.
21364         (decl_debug_expr_insert): Likewise.
21365         (decl_value_expr_insert): Likewise.
21366         (decl_debug_args_insert): Likewise.
21367         (type_hash_add): Likewise.
21368         (build_omp_clause): Likewise.
21369         * ubsan.c (decl_for_type_insert): Likewise.
21370         * varasm.c (get_unnamed_section): Likewise.
21371         (get_noswitch_section): Likewise.
21372         (get_section): Likewise.
21373         (get_block_for_section): Likewise.
21374         (create_block_symbol): Likewise.
21375         (build_constant_desc): Likewise.
21376         (create_constant_pool): Likewise.
21377         (force_const_mem): Likewise.
21378         (record_tm_clone_pair): Likewise.
21379         * varpool.c (varpool_create_empty_node): Likewise.
21381 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
21383         * dwarf2out.c (tree_add_const_value_attribute): Call
21384         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
21385         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
21386         instead of ggc_internal_<x>alloc_stat.
21387         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
21388         (ggc_realloc): Likewise.
21389         * ggc-none.c (ggc_internal_alloc): Likewise.
21390         (ggc_internal_cleared_alloc): Likewise.
21391         * ggc-page.c: Likewise.
21392         * ggc.h (ggc_internal_alloc_stat): Likewise.
21393         (ggc_internal_alloc): Remove macro.
21394         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
21395         (ggc_internal_cleared_alloc): Remove macro.
21396         (GGC_RESIZEVEC): Adjust.
21397         (ggc_resizevar): Remove macro.
21398         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
21399         (ggc_internal_cleared_vec_alloc_stat): Likewise.
21400         (ggc_internal_vec_cleared_alloc): Remove macro.
21401         (ggc_alloc_atomic_stat): Drop _stat suffix.
21402         (ggc_alloc_atomic): Remove macro.
21403         (ggc_alloc_cleared_atomic): Remove macro.
21404         (ggc_alloc_string_stat): Drop _stat suffix.
21405         (ggc_alloc_string): Remove macro.
21406         (ggc_alloc_rtx_def_stat): Adjust.
21407         (ggc_alloc_tree_node_stat): Likewise.
21408         (ggc_alloc_cleared_tree_node_stat): Likewise.
21409         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
21410         (ggc_alloc_cleared_simd_clone_stat): Likewise.
21411         * gimple.c (gimple_build_omp_for): Likewise.
21412         (gimple_copy): Likewise.
21413         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
21414         * toplev.c (realloc_for_line_map): Adjust.
21415         * tree-data-ref.h (lambda_vector_new): Likewise.
21416         * tree-phinodes.c (allocate_phi_node): Likewise.
21417         * tree.c (grow_tree_vec_stat): Likewise.
21418         * vec.h (va_gc::reserve): Adjust.
21420 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
21422         * config/microblaze/microblaze.c (break_handler): New Declaration.
21423         (microblaze_break_function_p,microblaze_is_break_handler): New.
21424         (compute_frame_size): Use microblaze_break_function_p.
21425         Add the test of break_handler.
21426         (microblaze_function_prologue) : Add the test of variable
21427         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
21428         (microblaze_function_epilogue) : Add the test of break_handler.
21429         (microblaze_globalize_label) : Add the test of break_handler.
21430         Check the name by BREAK_HANDLER_NAME.
21432         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
21434         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
21435         microblaze_is_break_handler test.
21436         (call_internal1,call_value_intern): Use microblaze_break_function_p.
21437         Use SYMBOL_REF_DECL.
21439         * config/microblaze/microblaze-protos.h
21440         (microblaze_break_function_p,microblaze_is_break_handler):
21441         New Declaration.
21443         * doc/extend.texi (MicroBlaze break_handler Functions): Document
21444         new MicroBlaze break_handler functions.
21446 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
21448         * doc/extend.texi (Size of an asm): Move node text according
21449         to its @menu entry position.
21451 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
21453         PR tree-optimization/61140
21454         PR tree-optimization/61150
21455         PR tree-optimization/61197
21456         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
21458 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
21460         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
21462 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
21464         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
21465         __SIZEOF_INT128__ is defined.
21467 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
21469         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
21470         (rs6000_delegitimize_address): Use it.
21472 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
21474         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
21475         inplace argument.  Store the new address in the original MEM when true.
21476         * emit-rtl.c (change_address_1): Likewise.
21477         (adjust_address_1, adjust_automodify_address_1, offset_address):
21478         Update accordingly.
21479         * rtl.h (plus_constant): Add an inplace argument.
21480         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
21481         when true.  Avoid generating (plus X (const_int 0)).
21482         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
21483         in-place.  Pass true to plus_constant.
21484         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
21486 2014-05-16  Dehao Chen  <dehao@google.com>
21488         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
21490 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
21492         PR target/54089
21493         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
21494         patterns.
21495         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
21497 2014-05-16  Dehao Chen  <dehao@google.com>
21499         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
21500         optimize_function_for_size_p.
21501         * regs.h (REG_FREQ_FROM_BB): Likewise.
21503 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
21505         PR target/51244
21506         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
21507         negt_reg_operand cases.
21508         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
21509         predicate.
21510         * config/sh/predicates.md (cbranch_treg_value): Simplify.
21512 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
21514         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
21515         target variants.
21517 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
21519         Revert:
21520         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
21522         * tree-cfg.c (dump_function_to_file): Dump the return type of
21523         functions, in a line to itself before the function body, mimicking
21524         the layout of a C function.
21526 2014-05-16  Dehao Chen  <dehao@google.com>
21528         * cfghooks.c (make_forwarder_block): Use direct computation to
21529         get fall-through edge's count and frequency.
21531 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
21533         * config/arc/arc.c (arc_init): Fix typo in error message.
21534         * config/i386/i386.c (ix86_expand_builtin): Likewise.
21535         (split_stack_prologue_scratch_regno): Likewise.
21536         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
21537         word from error message.
21539 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21541         * ira-costs.c: Fix typo in comment.
21543 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
21545         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
21547 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
21549         * varpool.c (dump_varpool_node): Dump write-only flag.
21550         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
21551         write-only flag.
21552         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
21553         write-only variables.
21554         * ipa.c (process_references): New function.
21555         (set_readonly_bit): New function.
21556         (set_writeonly_bit): New function.
21557         (clear_addressable_bit): New function.
21558         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
21559         fix handling of aliases.
21560         * cgraph.h (struct varpool_node): Add writeonly flag.
21562 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
21564         PR rtl-optimization/60969
21565         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
21566         Calculate costs for this case.
21568 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
21570         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
21571         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
21573 2014-05-16  Richard Biener  <rguenther@suse.de>
21575         PR tree-optimization/61194
21576         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
21577         bool patterns ending in a COND_EXPR.
21579 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21581         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
21583 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21585         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
21586         where we were unable to cost an RTX.
21588 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21590         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
21591         HIGH, LO_SUM.
21593 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21594             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21596         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
21598 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21599             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21601         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
21602         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
21604 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21605             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21607         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
21608         operators.
21610 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21611             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21613         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
21614         DIV/MOD.
21616 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21617             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21619         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
21620         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
21622 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21623             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21625         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
21626         rotates and shifts.
21628 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21629             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21631         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
21632         ZERO_EXTEND and SIGN_EXTEND better.
21634 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21635             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21637         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
21638         logical operations.
21640 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21641             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21643         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
21644         costs when costing loads and stores to memory.
21646 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21647             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
21649         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
21650         for SET RTX.
21652 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21654         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
21656 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21657             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21659         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
21660         to...
21661         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
21662         well formed.
21663         (aarch64_rtx_mult_cost): New.
21664         (aarch64_rtx_costs): Use it, refactor as appropriate.
21666 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21667             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21669         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
21670         emit instructions, return number of instructions which would
21671         be emitted.
21672         (aarch64_add_constant): Update call to aarch64_build_constant.
21673         (aarch64_output_mi_thunk): Likewise.
21674         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
21675         a CONST_DOUBLE.
21677 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21679         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
21680         (TARGET_RTX_COSTS): Call it.
21682 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21684         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
21685         (cortexa57_vector_cost): Likewise.
21686         (cortexa57_tunings): Use them.
21688 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
21690         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
21691         (cpu_addrcost_table): Use it.
21692         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
21693         (aarch64_address_cost): Rewrite using aarch64_classify_address,
21694         move it.
21696 2014-05-16  Richard Biener  <rguenther@suse.de>
21698         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
21699         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
21700         (visit_phi): Ignore edges marked as not executable.
21701         (class cond_dom_walker): New.
21702         (cond_dom_walker::before_dom_children): Value-number
21703         control statements and mark successor edges as not
21704         executable if possible.
21705         (run_scc_vn): First walk all control statements in
21706         dominator order, marking edges as not executable.
21707         * tree-inline.c (copy_edges_for_bb): Be not confused
21708         about random edge flags.
21710 2014-05-16  Richard Biener  <rguenther@suse.de>
21712         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
21714 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
21716         PR target/61193
21717         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
21718         (__TM_simple_begin): Use it.
21719         (__TM_begin): Likewise.
21721 2014-05-15  Martin Jambor  <mjambor@suse.cz>
21723         PR ipa/61085
21724         * ipa-prop.c (update_indirect_edges_after_inlining): Check
21725         type_preserved flag when the indirect edge is polymorphic.
21727 2014-05-15  Martin Jambor  <mjambor@suse.cz>
21729         PR tree-optimization/61090
21730         * tree-sra.c (sra_modify_expr): Pass the current gsi to
21731         build_ref_for_model.
21733 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21735         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
21736         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
21738 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
21740         PR tree-optimization/61158
21741         * fold-const.c (fold_binary_loc): If X is zero-extended and
21742         shiftc >= prec, make sure zerobits is all ones instead of
21743         invoking undefined behavior.
21745 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21747         * regcprop.h: New file.
21748         * regcprop.c (skip_debug_insn_p): New decl.
21749         (replace_oldest_value_reg): Check skip_debug_insn_p.
21750         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
21751         * shrink-wrap.c: Include regcprop.h.
21752         (prepare_shrink_wrap): Call
21753         copyprop_hardreg_forward_bb_without_debug_insn.
21755 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21757         * shrink-wrap.h: Update comment.
21758         * shrink-wrap.c: Update comment.
21759         (next_block_for_reg): Rename to live_edge_for_reg.
21760         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
21761         (move_insn_for_shrink_wrap): Split live_edge.
21762         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
21764 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
21766         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
21767         Delete.
21768         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
21769         * config/sparc/sparc.md (fptype_ut699): New attribute.
21770         (in_branch_delay): Return false if -mfix-ut699 is specified and
21771         fptype_ut699 is set to single.
21772         (truncdfsf2): Add fptype_ut699 attribute.
21773         (fix_truncdfsi2): Likewise.
21774         (floatsisf2): Change fptype attribute.
21775         (fix_truncsfsi2): Likewise.
21776         (negtf2_notv9): Delete.
21777         (negtf2_v9): Likewise.
21778         (negtf2_hq): New instruction.
21779         (negtf2): New instruction and splitter.
21780         (negdf2_notv9): Rewrite.
21781         (abstf2_notv9): Delete.
21782         (abstf2_hq_v9): Likewise.
21783         (abstf2_v9): Likewise.
21784         (abstf2_hq): New instruction.
21785         (abstf2): New instruction and splitter.
21786         (absdf2_notv9): Rewrite.
21788 2014-05-14  Cary Coutant  <ccoutant@google.com>
21790         PR debug/61013
21791         * opts.c (common_handle_option): Don't special-case "-g".
21792         (set_debug_level): Default to at least level 2 with "-g".
21794 2014-05-14  DJ Delorie  <dj@redhat.com>
21796         * config/msp430/msp430.c (msp430_builtin): Add
21797         MSP430_BUILTIN_DELAY_CYCLES.
21798         (msp430_init_builtins): Register void __delay_cycles(long long).
21799         (msp430_builtin_decl): Add it.
21800         (cg_magic_constant): New.
21801         (msp430_expand_delay_cycles): New.
21802         (msp430_expand_builtin): Call it.
21803         (msp430_print_operand_raw): Change integer printing from "int" to
21804         HOST_WIDE_INT.
21805         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
21806         (delay_cycles_start): New.
21807         (delay_cycles_end): New.
21808         (delay_cycles_32): New.
21809         (delay_cycles_32x): New.
21810         (delay_cycles_16): New.
21811         (delay_cycles_16x): New.
21812         (delay_cycles_2): New.
21813         (delay_cycles_1): New.
21814         * doc/extend.texi: Document __delay_cycles().
21816 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
21818         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
21819         length attribute computation.
21821 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
21823         PR debug/61188
21824         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
21826 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
21828         PR target/61084
21829         * config/sparc/sparc.md: Fix types of low and high in DI constant
21830         splitter.  Use gen_int_mode in some other splitters.
21832 2014-05-14  Martin Jambor  <mjambor@suse.cz>
21834         PR ipa/60897
21835         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
21837 2014-05-14  James Norris  <jnorris@codesourcery.com>
21839         * omp-low.c (expand_parallel_call): Remove shadow variable.
21840         (expand_omp_taskreg): Likewise.
21842 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
21844         * common/config/i386/i386-common.c
21845         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
21846         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
21847         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
21848         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
21849         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
21850         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
21851         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
21852         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
21853         xsavecintrin.h, xsavesintrin.h.
21854         (x86_64-*-*): Ditto.
21855         * config/i386/clflushoptintrin.h: New.
21856         * config/i386/xsavecintrin.h: Ditto.
21857         * config/i386/xsavesintrin.h: Ditto.
21858         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
21859         (bit_XSAVES): Ditto.
21860         (bit_XSAVES): Ditto.
21861         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
21862         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
21863         -mno-clflushopt.
21864         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21865         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
21866         OPTION_MASK_ISA_XSAVES.
21867         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
21868         -mxsavec, -mxsaves.
21869         (PTA_CLFLUSHOPT) Define.
21870         (PTA_XSAVEC): Ditto.
21871         (PTA_XSAVES): Ditto.
21872         (ix86_option_override_internal): Handle new options.
21873         (ix86_valid_target_attribute_inner_p): Ditto.
21874         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
21875         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
21876         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
21877         (bdesc_special_args): Add __builtin_ia32_xsaves,
21878         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
21879         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
21880         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
21881         (ix86_expand_builtin): Handle new builtins.
21882         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
21883         (TARGET_CLFLUSHOPT_P): Ditto.
21884         (TARGET_XSAVEC): Ditto.
21885         (TARGET_XSAVEC_P): Ditto.
21886         (TARGET_XSAVES): Ditto.
21887         (TARGET_XSAVES_P): Ditto.
21888         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
21889         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
21890         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
21891         (ANY_XRSTOR): New.
21892         (ANY_XRSTOR64): Ditto.
21893         (xrstor): Ditto.
21894         (xrstor): Change into <xrstor>.
21895         (xrstor_rex64): Change into <xrstor>_rex64.
21896         (xrstor64): Change into <xrstor>64
21897         (clflushopt): New.
21898         * config/i386/i386.opt (mclflushopt): New.
21899         (mxsavec): Ditto.
21900         (mxsaves): Ditto.
21901         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
21902         xsavecintrin.h.
21903         * doc/invoke.texi: Document new options.
21905 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
21907         PR rtl-optimization/60866
21908         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
21909         Default it to -1.  Pass it down to init_simplejump_data.
21910         (init_simplejump_data): New parameter old_seqno.  Pass it down
21911         to get_seqno_for_a_jump.
21912         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
21913         initializing new jump seqno as a last resort.  Add comment.
21914         (sel_redirect_edge_and_branch): Save old seqno of the conditional
21915         jump and pass it down to sel_init_new_insn.
21916         (sel_redirect_edge_and_branch_force): Likewise.
21918 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
21920         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
21921         shifted values to avoid build warning.
21923 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
21925         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
21926         * cfgrtl.c (rtl_merge_blocks): Fix comment.
21927         (cfg_layout_merge_blocks): Likewise.
21928         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
21930 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
21932         PR rtl-optimization/60901
21933         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
21934         bb predecessor belongs to the same scheduling region.  Adjust comment.
21936 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
21938         * doc/sourcebuild.texi: (dfp_hw): Document.
21939         (p8vector_hw): Likewise.
21940         (powerpc_eabi_ok): Likewise.
21941         (powerpc_elfv2): Likewise.
21942         (powerpc_htm_ok): Likewise.
21943         (ppc_recip_hw): Likewise.
21944         (vsx_hw): Likewise.
21946 2014-05-13  Cary Coutant  <ccoutant@google.com>
21948         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
21950 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
21952         * gengtype-parse.c (require3): Eliminate in favor of...
21953         (require4): New.
21954         (require_template_declaration): Update to support optional single *
21955         on a type.
21957         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
21958         (create_user_defined_type): Handle a single level of explicit
21959         pointerness within template arguments.
21960         (struct write_types_data): Add field "kind".
21961         (filter_type_name): Handle "*" character.
21962         (write_user_func_for_structure_ptr): Require a write_types_data
21963         rather than just a prefix string, so that we can look up the kind
21964         of the wtd and use it as an index into wrote_user_func_for_ptr,
21965         ensuring that such functions are written at most once.  Support
21966         subclasses by invoking the marking function of the ultimate base class.
21967         (write_user_func_for_structure_body): Require a write_types_data
21968         rather than just a prefix string, so that we can pass this to
21969         write_user_func_for_structure_ptr.
21970         (write_func_for_structure): Likewise.
21971         (ggc_wtd): Add initializer of new "kind" field.
21972         (pch_wtd): Likewise.
21974         * gengtype.h (enum write_types_kinds): New.
21975         (struct type): Add field wrote_user_func_for_ptr to the "s"
21976         union member.
21978 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
21980         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
21981         instead of const_binop.
21982         (fold_binary_loc): Likewise.
21984 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
21986         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
21987         calculation to match get_ref_base_and_extent.
21989 2014-05-13  Catherine Moore  <clm@codesourcery.com>
21990             Sandra Loosemore  <sandra@codesourcery.com>
21992         * configure.ac: Fix assembly for explicit JALR relocation check.
21993         * configure: Regenerate.
21995 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21997         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
21998         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
21999         Remove associated type declarations and initialisations.
22000         (arm_expand_neon_builtin): Likewise.
22001         (neon_emit_pair_result_insn): Delete.
22002         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
22003         * config/arm/neon.md (neon_vtrn<mode>): Delete.
22004         (neon_vzip<mode>): Likewise.
22005         (neon_vuzp<mode>): Likewise.
22007 2014-05-13  Richard Biener  <rguenther@suse.de>
22009         PR ipa/60973
22010         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
22011         it needs revisiting whether the call still may be tail-called.
22013 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22015         * rtl.def (SYMBOL_REF): Remove middle "0" field.
22016         * rtl.h (block_symbol): Reduce number of fields to 2.
22017         (rtx_def): Add u2.symbol_ref_flags.
22018         (SYMBOL_REF_FLAGS): Use it.
22019         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
22020         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
22021         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
22022         Lower index of SYMBOL_REF_DATA.
22023         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
22024         Print SYMBOL_REF_FLAGS at the same time.
22025         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
22027 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22029         * rtl.def (VAR_LOCATION): Remove "i" field.
22030         * rtl.h (rtx_def): Add u2.var_location_status.
22031         (PAT_VAR_LOCATION_STATUS): Use it.
22032         (gen_rtx_VAR_LOCATION): Declare.
22033         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
22034         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
22035         * var-tracking.c (emit_note_insn_var_location): Remove casts.
22037 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22039         * rtl.def (scratch): Fix outdated comment and remove "0" field.
22040         * gengtype.c (adjust_field_rtx_def): Update accordingly.
22042 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22044         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
22045         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
22046         * rtl.h (rtx_def): Add insn_uid to u2 field.
22047         (RTX_FLAG_CHECK8): Delete in favor of...
22048         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
22049         (INSN_DELETED_P): Update accordingly.
22050         (INSN_UID): Use u2.insn_uid.
22051         (INSN_CHAIN_CODE_P): Define.
22052         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
22053         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
22054         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
22055         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
22056         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
22057         indices accordingly.
22058         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
22059         Update indices for insn-chain rtxes.
22060         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
22061         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
22062         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
22063         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
22064         * combine.c (try_combine): Likewise.
22065         * ira.c (setup_prohibited_mode_move_regs): Likewise.
22067 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22069         * rtl.def (REG): Remove middle field.
22070         * rtl.h (rtx_def): Add orignal_regno to u2.
22071         (ORIGINAL_REGNO): Use it instead of field 1.
22072         (REG_ATTRS): Lower field index accordingly.
22073         * gengtype.c (adjust_field_rtx_def): Remove handling of
22074         ORIGINAL_REGNO.  Move REG_ATTRS index down.
22075         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
22076         code that prints the REGNO.
22078 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22080         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
22081         GENERATOR_FILE.
22083 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
22085         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
22087 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
22089         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
22090         (alloc_iv): Lower base expressions containing ADDR_EXPR.
22092 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
22094         * config/aarch64/aarch64-protos.h
22095         (aarch64_hard_regno_caller_save_mode): New prototype.
22096         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
22097         New function.
22098         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
22100 2014-05-13  Christian Bruel  <christian.bruel@st.com>
22102         * target.def (mode_switching): New hook vector.
22103         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
22104         (mode_exit, modepriority_to_mode): Likewise.
22105         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
22106         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22107         * target.h: Include tm.h and hard-reg-set.h.
22108         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
22109         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
22110         * doc/tm.texi Regenerate.
22111         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22112         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22113         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
22114         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
22115         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
22116         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22117         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
22118         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
22119         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
22120         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
22121         (ix86_emit_mode_set): Hookify.
22122         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
22123         Delete.
22124         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
22125         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
22126         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
22127         (epiphany_mode_priority_to_mode): Remove declaration.
22128         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
22129         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
22130         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
22131         Likewise.
22132         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
22133         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
22134         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
22136 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
22138         PR target/61060
22139         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
22140         is const0_rtx, return immediately.  Don't test count == 0 when
22141         it is always true.
22143 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22145         * Makefile.in: add shrink-wrap.o.
22146         * config/i386/i386.c: include "shrink-wrap.h"
22147         * function.c: Likewise.
22148         (requires_stack_frame_p, next_block_for_reg,
22149         move_insn_for_shrink_wrap, prepare_shrink_wrap,
22150         dup_block_and_redirect): Move to shrink-wrap.c
22151         (thread_prologue_and_epilogue_insns): Extract three code segments
22152         as functions in shrink-wrap.c
22153         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
22154         shrink-wrap.h
22155         * shrink-wrap.c: New file.
22156         * shrink-wrap.h: New file.
22158 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
22160         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
22161         reference to Solaris.
22163 2014-05-12  Mike Stump  <mikestump@comcast.net>
22165         PR other/31778
22166         * genattrtab.c (filename): Add.
22167         (convert_set_attr_alternative): Improve error message.
22168         (check_defs): Restore read_md_filename for error messages.
22169         (gen_insn): Save filename.
22171 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
22173         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
22174         -fno-local-ivars and -fivar-visibility.
22175         * c-family/c.opt: Make -Wshadow also implicitly enable
22176         -Wshadow-ivar.
22178 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
22180         * doc/tm.texi: Remove reference to deleted macro.
22181         * doc/tm.texi.in: Likewise.
22183 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22185         PR target/60991
22186         * config/avr/avr.c (avr_out_store_psi): Use correct constant
22187         to restore Y.
22189 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
22191         PR libgcc/61152
22192         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
22193         * config/arm/aout.h (License): Same.
22194         * config/arm/bpabi.h (License): Same.
22195         * config/arm/elf.h (License): Same.
22196         * config/arm/linux-elf.h (License): Same.
22197         * config/arm/linux-gas.h (License): Same.
22198         * config/arm/netbsd-elf.h (License): Same.
22199         * config/arm/uclinux-eabi.h (License): Same.
22200         * config/arm/uclinux-elf.h (License): Same.
22201         * config/arm/vxworks.h (License): Same.
22203 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
22205         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
22206         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
22207         number of operands to 3.
22208         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
22209         * tree-nested.c (convert_nonlocal_omp_clauses,
22210         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
22211         * gimplify.c (gimplify_scan_omp_clauses): Handle
22212         OMP_CLAUSE_LINEAR_STMT.
22213         * omp-low.c (lower_rec_input_clauses): Fix typo.
22214         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
22215         cast between Fortran boolean_type_node and C _Bool if
22216         needed.
22218 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
22220         PR tree-optimization/61136
22221         * wide-int.h (multiple_of_p): Define a version that doesn't return
22222         the quotient.
22223         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
22224         integer_zerop/const_binop pair.
22225         (multiple_of_p): Likewise, converting both operands to widest_int
22226         precision.
22228 2014-05-09  Teresa Johnson  <tejohnson@google.com>
22230         * cgraphunit.c (analyze_functions): Use correct dump file.
22232 2014-05-09  Florian Weimer  <fweimer@redhat.com>
22234         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
22235         expand_used_vars.
22236         (stack_protect_return_slot_p): New function.
22237         (expand_used_vars): Call stack_protect_decl_p and
22238         stack_protect_return_slot_p for -fstack-protector-strong.
22240 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
22241         Andrew Haley <aph@redhat.com>
22242         Richard Sandiford <rdsandiford@googlemail.com>
22244         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
22245         pages.
22247 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
22249         PR middle-end/61111
22250         * fold-const.c (fold_binary_loc): Changed width of mask.
22252 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
22254         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
22255         unsigned int initializers for regno_in, regno_out.
22257 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
22259         PR target/61055
22260         * config/avr/avr.md (cc): Add new attribute set_vzn.
22261         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
22262         Set cc insn attribute to set_vzn instead of set_zn for alternatives
22263         with INC, DEC or NEG.
22264         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
22265         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
22266         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
22268 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22270         Revert:
22271         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22273         * wide-int.cc (UTItype): Define.
22274         (UDWtype): Define for appropriate W_TYPE_SIZE.
22276 2014-05-09  Richard Biener  <rguenther@suse.de>
22278         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
22279         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
22280         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
22281         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
22282         ssa_propagate): Adjust.
22284 2014-05-08  Jeff Law  <law@redhat.com>
22286         PR tree-optimization/61009
22287         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
22288         tri-state rather than a boolean.  When a block is too big to
22289         thread through, inform caller via negative return value.
22290         (thread_across_edge): If a block was too big for normal threading,
22291         then it's too big for a joiner too, so remove temporary equivalences
22292         and return immediately.
22294 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22295             Matthias Klose  <doko@ubuntu.com>
22297         PR driver/61106
22298         * optc-gen.awk: Fix option handling for -Wunused-parameter.
22300 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
22302         PR target/59952
22303         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
22305 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
22307         PR target/61092
22308         * config/alpha/alpha.c: Include gimple-iterator.h.
22309         (alpha_gimple_fold_builtin): New function.  Move
22310         ALPHA_BUILTIN_UMULH folding from ...
22311         (alpha_fold_builtin): ... here.
22312         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
22314 2014-05-08  Wei Mi  <wmi@google.com>
22316         PR target/58066
22317         * config/i386/i386.c (ix86_compute_frame_layout): Update
22318         preferred_stack_boundary for call, expanded from tls descriptor.
22319         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
22320         to depend on SP register.
22321         (*tls_local_dynamic_base_32_gnu): Ditto.
22322         (*tls_local_dynamic_32_once): Ditto.
22323         (tls_global_dynamic_64_<mode>): Set
22324         ix86_tls_descriptor_calls_expanded_in_cfun.
22325         (tls_local_dynamic_base_64_<mode>): Ditto.
22326         (tls_global_dynamic_32): Set
22327         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
22328         to depend on SP register.
22329         (tls_local_dynamic_base_32): Ditto.
22331 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22333         * config/arm/arm_neon.h: Update comment.
22334         * config/arm/neon-docgen.ml: Delete.
22335         * config/arm/neon-gen.ml: Delete.
22336         * doc/arm-neon-intrinsics.texi: Update comment.
22338 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22340         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
22341         and v4sf versions.
22342         (vand, vorr, veor, vorn, vbic): Remove.
22343         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
22344         iterator.
22345         (neon_vsub_unspec): Likewise.
22346         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
22348 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22350         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
22351         (vadd_s16): Likewise.
22352         (vadd_s32): Likewise.
22353         (vadd_f32): Likewise.
22354         (vadd_u8): Likewise.
22355         (vadd_u16): Likewise.
22356         (vadd_u32): Likewise.
22357         (vadd_s64): Likewise.
22358         (vadd_u64): Likewise.
22359         (vaddq_s8): Likewise.
22360         (vaddq_s16): Likewise.
22361         (vaddq_s32): Likewise.
22362         (vaddq_s64): Likewise.
22363         (vaddq_f32): Likewise.
22364         (vaddq_u8): Likewise.
22365         (vaddq_u16): Likewise.
22366         (vaddq_u32): Likewise.
22367         (vaddq_u64): Likewise.
22368         (vmul_s8): Likewise.
22369         (vmul_s16): Likewise.
22370         (vmul_s32): Likewise.
22371         (vmul_f32): Likewise.
22372         (vmul_u8): Likewise.
22373         (vmul_u16): Likewise.
22374         (vmul_u32): Likewise.
22375         (vmul_p8): Likewise.
22376         (vmulq_s8): Likewise.
22377         (vmulq_s16): Likewise.
22378         (vmulq_s32): Likewise.
22379         (vmulq_f32): Likewise.
22380         (vmulq_u8): Likewise.
22381         (vmulq_u16): Likewise.
22382         (vmulq_u32): Likewise.
22383         (vsub_s8): Likewise.
22384         (vsub_s16): Likewise.
22385         (vsub_s32): Likewise.
22386         (vsub_f32): Likewise.
22387         (vsub_u8): Likewise.
22388         (vsub_u16): Likewise.
22389         (vsub_u32): Likewise.
22390         (vsub_s64): Likewise.
22391         (vsub_u64): Likewise.
22392         (vsubq_s8): Likewise.
22393         (vsubq_s16): Likewise.
22394         (vsubq_s32): Likewise.
22395         (vsubq_s64): Likewise.
22396         (vsubq_f32): Likewise.
22397         (vsubq_u8): Likewise.
22398         (vsubq_u16): Likewise.
22399         (vsubq_u32): Likewise.
22400         (vsubq_u64): Likewise.
22401         (vand_s8): Likewise.
22402         (vand_s16): Likewise.
22403         (vand_s32): Likewise.
22404         (vand_u8): Likewise.
22405         (vand_u16): Likewise.
22406         (vand_u32): Likewise.
22407         (vand_s64): Likewise.
22408         (vand_u64): Likewise.
22409         (vandq_s8): Likewise.
22410         (vandq_s16): Likewise.
22411         (vandq_s32): Likewise.
22412         (vandq_s64): Likewise.
22413         (vandq_u8): Likewise.
22414         (vandq_u16): Likewise.
22415         (vandq_u32): Likewise.
22416         (vandq_u64): Likewise.
22417         (vorr_s8): Likewise.
22418         (vorr_s16): Likewise.
22419         (vorr_s32): Likewise.
22420         (vorr_u8): Likewise.
22421         (vorr_u16): Likewise.
22422         (vorr_u32): Likewise.
22423         (vorr_s64): Likewise.
22424         (vorr_u64): Likewise.
22425         (vorrq_s8): Likewise.
22426         (vorrq_s16): Likewise.
22427         (vorrq_s32): Likewise.
22428         (vorrq_s64): Likewise.
22429         (vorrq_u8): Likewise.
22430         (vorrq_u16): Likewise.
22431         (vorrq_u32): Likewise.
22432         (vorrq_u64): Likewise.
22433         (veor_s8): Likewise.
22434         (veor_s16): Likewise.
22435         (veor_s32): Likewise.
22436         (veor_u8): Likewise.
22437         (veor_u16): Likewise.
22438         (veor_u32): Likewise.
22439         (veor_s64): Likewise.
22440         (veor_u64): Likewise.
22441         (veorq_s8): Likewise.
22442         (veorq_s16): Likewise.
22443         (veorq_s32): Likewise.
22444         (veorq_s64): Likewise.
22445         (veorq_u8): Likewise.
22446         (veorq_u16): Likewise.
22447         (veorq_u32): Likewise.
22448         (veorq_u64): Likewise.
22449         (vbic_s8): Likewise.
22450         (vbic_s16): Likewise.
22451         (vbic_s32): Likewise.
22452         (vbic_u8): Likewise.
22453         (vbic_u16): Likewise.
22454         (vbic_u32): Likewise.
22455         (vbic_s64): Likewise.
22456         (vbic_u64): Likewise.
22457         (vbicq_s8): Likewise.
22458         (vbicq_s16): Likewise.
22459         (vbicq_s32): Likewise.
22460         (vbicq_s64): Likewise.
22461         (vbicq_u8): Likewise.
22462         (vbicq_u16): Likewise.
22463         (vbicq_u32): Likewise.
22464         (vbicq_u64): Likewise.
22465         (vorn_s8): Likewise.
22466         (vorn_s16): Likewise.
22467         (vorn_s32): Likewise.
22468         (vorn_u8): Likewise.
22469         (vorn_u16): Likewise.
22470         (vorn_u32): Likewise.
22471         (vorn_s64): Likewise.
22472         (vorn_u64): Likewise.
22473         (vornq_s8): Likewise.
22474         (vornq_s16): Likewise.
22475         (vornq_s32): Likewise.
22476         (vornq_s64): Likewise.
22477         (vornq_u8): Likewise.
22478         (vornq_u16): Likewise.
22479         (vornq_u32): Likewise.
22480         (vornq_u64): Likewise.
22482 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22484         * wide-int.cc (UTItype): Define.
22485         (UDWtype): Define for appropriate W_TYPE_SIZE.
22487 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
22489         PR tree-optimization/59100
22490         * tree-ssa-phiopt.c: Include tree-inline.h.
22491         (neutral_element_p, absorbing_element_p): New functions.
22492         (value_replacement): Handle conditional binary operations with a
22493         neutral or absorbing element.
22495 2014-05-08  Richard Biener  <rguenther@suse.de>
22497         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
22498         folding the expression.
22499         (valueize_expr): Remove.
22500         (visit_reference_op_load): Do not valueize the result of
22501         vn_get_expr_for.
22502         (simplify_binary_expression): Likewise.
22503         (simplify_unary_expression): Likewise.
22505 2014-05-08  Richard Biener  <rguenther@suse.de>
22507         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
22508         looking at TYPE_ARG_TYPES.
22510 2014-05-08  Richard Biener  <rguenther@suse.de>
22512         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
22513         pointer propagation special-case.
22515 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
22517         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
22518         core part of address expressions.
22520 2014-05-08  Alan Modra  <amodra@gmail.com>
22522         PR target/60737
22523         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
22524         loads and stores when -mno-strict-align at any alignment.
22525         (expand_block_clear): Similarly.  Also correct calculation of
22526         instruction count.
22528 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22530         PR middle-end/39246
22531         * tree-complex.c (expand_complex_move): Keep line info when expanding
22532         complex move.
22533         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
22534         of complex expression. Use new argument to display correct location
22535         for values coming from phi statement.
22536         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
22537         (warn_uninitialized_phi): Pass location of phi argument to
22538         warn_uninit.
22539         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
22540         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
22542 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
22544         * config/rs6000/predicates.md (indexed_address_mem): New.
22545         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
22546         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
22547         fpstore_ux, fpstore_u.
22548         (sign_extend, indexed, update): New.
22549         (cell_micro): Adjust.
22550         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
22551         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
22552         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
22553         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
22554         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
22555         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
22556         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
22557         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
22558         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
22559         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
22560         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
22561         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
22562         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
22563         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
22564         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
22566         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
22567         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
22568         *vsx_extract_<mode>_store): Adjust.
22569         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
22570         is_cracked_insn, insn_must_be_first_in_group,
22571         insn_must_be_last_in_group): Adjust.
22573         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
22574         Adjust.
22575         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
22576         ppc440-fpstore): Adjust.
22577         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
22578         ppc476-fpstore): Adjust.
22579         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
22580         ppc601-fpstore): Adjust.
22581         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
22582         Adjust.
22583         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
22584         Adjust.
22585         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
22586         ppc7450-fpstore): Adjust.
22587         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
22588         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
22589         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
22590         Adjust.
22591         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
22592         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
22593         cell-fpstore, cell-fpstore-update): Adjust.
22594         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
22595         ppce300c3_store, ppce300c3_fpstore): Adjust.
22596         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
22597         e500mc_fpstore): Adjust.
22598         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
22599         e500mc64_store, e500mc64_fpstore): Adjust.
22600         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
22601         e5500_fpstore): Adjust.
22602         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
22603         e6500_fpstore): Adjust.
22604         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
22605         Adjust.
22606         * config/rs6000/power4.md (power4-load, power4-load-ext,
22607         power4-load-ext-update, power4-load-ext-update-indexed,
22608         power4-load-update-indexed, power4-load-update, power4-fpload,
22609         power4-fpload-update, power4-store, power4-store-update,
22610         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
22611         Adjust.
22612         * config/rs6000/power5.md (power5-load, power5-load-ext,
22613         power5-load-ext-update, power5-load-ext-update-indexed,
22614         power5-load-update-indexed, power5-load-update, power5-fpload,
22615         power5-fpload-update, power5-store, power5-store-update,
22616         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
22617         Adjust.
22618         * config/rs6000/power6.md (power6-load, power6-load-ext,
22619         power6-load-update, power6-load-update-indexed,
22620         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
22621         power6-fpload-update, power6-store, power6-store-update,
22622         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
22623         Adjust.
22624         * config/rs6000/power7.md (power7-load, power7-load-ext,
22625         power7-load-update, power7-load-update-indexed,
22626         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
22627         power7-fpload-update, power7-store, power7-store-update,
22628         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
22629         Adjust.
22630         * config/rs6000/power8.md (power8-load, power8-load-update,
22631         power8-load-ext, power8-load-ext-update, power8-fpload,
22632         power8-fpload-update, power8-store, power8-store-update-indexed,
22633         power8-fpstore, power8-fpstore-update): Adjust.
22634         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
22635         Adjust.
22636         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
22637         titan_lsu_store, titan_lsu_fpstore): Adjust.
22638         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
22640 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
22642         PR target/60884
22643         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
22644         unrolled byte insns.  Emit address increments after move insns.
22646 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
22648         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
22649         const_gimple, rather than a gimple.
22650         (gimple_call_builtin_p): Likewise, for the three variants.
22652         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
22653         (gimple_call_builtin_p): Likewise, for the three variants.
22655 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
22657         PR tree-optimization/61095
22658         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
22660 2014-05-07  Richard Biener  <rguenther@suse.de>
22662         PR tree-optimization/61034
22663         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
22664         (maybe_skip_until): Use translate to take into account
22665         lattices when trying to do disambiguations.
22666         (get_continuation_for_phi_1): Likewise.
22667         (get_continuation_for_phi): Adjust for added translate arguments.
22668         (walk_non_aliased_vuses): Likewise.
22669         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
22670         (walk_non_aliased_vuses): Likewise.
22671         (call_may_clobber_ref_p_1): Declare.
22672         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
22673         calls.  Stop early if we are only supposed to disambiguate.
22674         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
22676 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
22678         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
22679         Emit an error when the function has arguments.
22681 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
22683         * cfgloop.h (unswitch_loops): Remove.
22684         * doc/passes.texi: Remove references to loop-unswitch.c
22685         * timevar.def (TV_LOOP_UNSWITCH): Remove.
22687 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
22689         * tree-vect-data-refs.c (vect_grouped_load_supported): New
22690         check for loads group of length 3.
22691         (vect_permute_load_chain): New permutations for loads group of
22692         length 3.
22693         * tree-vect-stmts.c (vect_model_load_cost): Change cost
22694         of vec_perm_shuffle for the new permutations.
22696 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
22698         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
22699         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
22700         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
22701         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
22702         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
22703         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
22704         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
22705         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
22707 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
22709         * loop-unswitch.c: Delete.
22711 2014-05-07  Richard Biener  <rguenther@suse.de>
22713         * config.gcc: Always set need_64bit_hwint to yes.
22715 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
22717         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
22718         of using optimize_size.
22720 2014-05-06  Mike Stump  <mikestump@comcast.net>
22722         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
22724 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
22726         * config/i386/sse.md (*mov<mode>_internal)
22727         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
22728         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
22729         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
22730         (*<code><mode>3, *andnot<mode>3<mask_name>)
22731         (<mask_codefor><code><mode>3<mask_name>): Only consider
22732         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
22734 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
22736         Revert:
22737         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
22739         * lra-constraints.c (valid_address_p): Move earlier in file.
22740         Add a constraint argument to the address_info version.
22741         (satisfies_memory_constraint_p): New function.
22742         (satisfies_address_constraint_p): Likewise.
22743         (process_alt_operands, curr_insn_transform): Use them.
22744         (process_address): Pass the constraint to valid_address_p when
22745         checking address operands.
22747 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
22749         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
22750         to their respective blocks.  Fix inadvertent use of "node".
22752 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
22754         * emit-rtl.c (init_derived_machine_modes): New functionm, split
22755         out from...
22756         (init_emit_once): ...here.
22757         * rtl.h (init_derived_machine_modes): Declare.
22758         * toplev.c (do_compile): Call it even if no_backend.
22760 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
22761             Mike Stump  <mikestump@comcast.net>
22762             Richard Sandiford  <rdsandiford@googlemail.com>
22763             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22765         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
22766         (rtx_equal_for_memref_p): Update comment.
22767         (adjust_offset_for_component_ref): Use wide-int interfaces.
22768         * builtins.c (get_object_alignment_2): Likewise.
22769         (c_readstr): Likewise.
22770         (target_char_cast): Add comment.
22771         (determine_block_size): Use wide-int interfaces.
22772         (expand_builtin_signbit): Likewise.
22773         (fold_builtin_int_roundingfn): Likewise.
22774         (fold_builtin_bitop): Likewise.
22775         (fold_builtin_bswap): Likewise.
22776         (fold_builtin_logarithm): Use signop.
22777         (fold_builtin_pow): Likewise.
22778         (fold_builtin_memory_op): Use wide-int interfaces.
22779         (fold_builtin_object_size): Likewise.
22780         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
22781         nb_iterations_estimate.
22782         (record_niter_bound): Use wide-int interfaces.
22783         (get_estimated_loop_iterations_int): Likewise.
22784         (get_estimated_loop_iterations): Likewise.
22785         (get_max_loop_iterations): Likewise.
22786         * cfgloop.h: Include wide-int.h.
22787         (struct nb_iter_bound): Change bound to widest_int.
22788         (struct loop): Change nb_iterations_upper_bound and
22789         nb_iterations_estimate to widest_int.
22790         (record_niter_bound): Switch to use widest_int.
22791         (get_estimated_loop_iterations): Likewise.
22792         (get_max_loop_iterations): Likewise.
22793         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
22794         update for wide-int.
22795         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
22796         * combine.c (try_combine): Likewise.
22797         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
22798         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
22799         interfaces.
22800         (aarch64_float_const_representable_p): Likewise.
22801         * config/arc/arc.c: Include wide-int.h.
22802         (arc_can_use_doloop_p): Use wide-int interfaces.
22803         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
22804         (vfp3_const_double_index): Likewise.
22805         * config/avr/avr.c (avr_out_round): Likewise.
22806         (avr_fold_builtin): Likewise.
22807         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
22808         (bfin_can_use_doloop_p): Likewise.
22809         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
22810         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
22811         * config/i386/i386.c: Include wide-int.h.
22812         (ix86_data_alignment): Use wide-int interfaces.
22813         (ix86_local_alignment): Likewise.
22814         (ix86_emit_swsqrtsf): Update real_from_integer.
22815         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
22816         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22817         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
22818         (zero_constant): Likewise.
22819         (input_operand): Likewise.
22820         (splat_input_operand): Likewise.
22821         (non_logical_cint_operand): Change const_double to const_wide_int.
22822         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
22823         (easy_altivec_constant): Remove comment.
22824         (paired_expand_vector_init): Use CONSTANT_P.
22825         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
22826         (rs6000_emit_move): Update checks.
22827         (rs6000_aggregate_candidate): Use wide-int interfaces.
22828         (rs6000_expand_ternop_builtin): Likewise.
22829         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
22830         (rs6000_assemble_integer): Likewise.
22831         (rs6000_hash_constant): Likewise.
22832         (output_toc): Likewise.
22833         (rs6000_rtx_costs): Likewise.
22834         (rs6000_emit_swrsqrt); Update call to real_from_integer.
22835         * config/rs6000/rs6000-c.c: Include wide-int.h.
22836         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
22837         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
22838         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
22839         Handle CONST_WIDE_INT.
22840         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
22841         Use tree_fits_uhwi_p.
22842         * config/sparc/sparc.c: Include wide-int.h.
22843         (sparc_fold_builtin): Use wide-int interfaces.
22844         * config/vax/vax.c: Include wide-int.h.
22845         (vax_float_literal): Use real_from_integer.
22846         * coretypes.h (struct hwivec_def): New.
22847         (hwivec): New.
22848         (const_hwivec): New.
22849         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
22850         (equiv_constant): Handle CONST_WIDE_INT.
22851         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
22852         (cselib_hash_rtx): Handle CONST_WIDE_INT.
22853         * dbxout.c (stabstr_U): Use wide-int interfaces.
22854         (dbxout_type): Update to use cst_fits_shwi_p.
22855         * defaults.h (LOG2_BITS_PER_UNIT): Define.
22856         (TARGET_SUPPORTS_WIDE_INT): Add default.
22857         * dfp.c: Include wide-int.h.
22858         (decimal_real_to_integer2): Use wide-int interfaces and rename to
22859         decimal_real_to_integer.
22860         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
22861         decimal_real_to_integer.
22862         * doc/generic.texi (Constant expressions): Update for wide_int.
22863         * doc/rtl.texi (const_double): Likewise.
22864         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
22865         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
22866         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
22867         (REAL_VALUE_FROM_INT): Remove.
22868         (TARGET_SUPPORTS_WIDE_INT): New.
22869         * doc/tm.texi: Regenerate.
22870         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
22871         * double-int.h: Include wide-int.h.
22872         (struct wi::int_traits): New.
22873         * dwarf2out.c (get_full_len): New.
22874         (dw_val_equal_p): Add case dw_val_class_wide_int.
22875         (size_of_loc_descr): Likewise.
22876         (output_loc_operands): Likewise.
22877         (insert_double): Remove.
22878         (insert_wide_int): New.
22879         (add_AT_wide): New.
22880         (print_die): Add case dw_val_class_wide_int.
22881         (attr_checksum): Likewise.
22882         (attr_checksum_ordered): Likewise.
22883         (same_dw_val_p): Likewise.
22884         (size_of_die): Likewise.
22885         (value_format): Likewise.
22886         (output_die): Likewise.
22887         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
22888         Use wide-int.
22889         (clz_loc_descriptor): Use wide-int interfaces.
22890         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
22891         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
22892         (round_up_to_align): Use wide-int interfaces.
22893         (field_byte_offset): Likewise.
22894         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
22895         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
22896         CONST_DOUBLE handling.  Use wide-int interfaces.
22897         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
22898         (gen_enumeration_type_die): Use add_AT_wide.
22899         (hash_loc_operands): Add case dw_val_class_wide_int.
22900         (compare_loc_operands): Likewise.
22901         * dwarf2out.h: Include wide-int.h.
22902         (wide_int_ptr): New.
22903         (enum dw_val_class): Add dw_val_class_wide_int.
22904         (struct dw_val_struct): Add val_wide.
22905         * emit-rtl.c (const_wide_int_htab): New.
22906         (const_wide_int_htab_hash): New.
22907         (const_wide_int_htab_eq): New.
22908         (lookup_const_wide_int): New.
22909         (const_double_htab_hash): Use wide-int interfaces.
22910         (const_double_htab_eq): Likewise.
22911         (rtx_to_double_int): Conditionally compile for wide-int.
22912         (immed_double_int_const): Rename to immed_wide_int_const and
22913         update for wide-int.
22914         (immed_double_const): Conditionally compile for wide-int.
22915         (init_emit_once): Use wide-int interfaces.
22916         * explow.c (plus_constant): Likewise.
22917         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
22918         (lshift_value): Use wide-int interfaces.
22919         (expand_mult): Likewise.
22920         (choose_multiplier): Likewise.
22921         (expand_smod_pow2): Likewise.
22922         (make_tree): Likewise.
22923         * expr.c (convert_modes): Consolidate handling of constants.
22924         Use wide-int interfaces.
22925         (emit_group_load_1): Add note.
22926         (store_expr): Update comment.
22927         (get_inner_reference): Use wide-int interfaces.
22928         (expand_constructor): Update comment.
22929         (expand_expr_real_2): Use wide-int interfaces.
22930         (expand_expr_real_1): Likewise.
22931         (reduce_to_bit_field_precision): Likewise.
22932         (const_vector_from_tree): Likewise.
22933         * final.c: Include wide-int-print.h.
22934         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
22935         * fixed-value.c: Include wide-int.h.
22936         (fixed_from_string): Use wide-int interfaces.
22937         (fixed_to_decimal): Likewise.
22938         (fixed_convert_from_real): Likewise.
22939         (real_convert_from_fixed): Likewise.
22940         * fold-const.h (mem_ref_offset): Return an offset_int.
22941         (div_if_zero_remainder): Remove code parameter.
22942         * fold-const.c (div_if_zero_remainder): Remove code parameter.
22943         Use wide-int interfaces.
22944         (may_negate_without_overflow_p): Use wide-int interfaces.
22945         (negate_expr_p): Likewise.
22946         (fold_negate_expr): Likewise.
22947         (int_const_binop_1): Likewise.
22948         (const_binop): Likewise.
22949         (fold_convert_const_int_from_int): Likewise.
22950         (fold_convert_const_int_from_real): Likewise.
22951         (fold_convert_const_int_from_fixed): Likewise.
22952         (fold_convert_const_fixed_from_int): Likewise.
22953         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
22954         (sign_bit_p): Use wide-int interfaces.
22955         (make_range_step): Likewise.
22956         (build_range_check): Likewise.  Pass an integer of the correct type
22957         instead of using integer_one_node.
22958         (range_predecessor): Pass an integer of the correct type instead
22959         of using integer_one_node.
22960         (range_successor): Likewise.
22961         (merge_ranges): Likewise.
22962         (unextend): Use wide-int interfaces.
22963         (extract_muldiv_1): Likewise.
22964         (fold_div_compare): Likewise.
22965         (fold_single_bit_test): Likewise.
22966         (fold_sign_changed_comparison): Likewise.
22967         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
22968         (fold_plusminus_mult_expr): Use wide-int interfaces.
22969         (native_encode_int): Likewise.
22970         (native_interpret_int): Likewise.
22971         (fold_unary_loc): Likewise.
22972         (pointer_may_wrap_p): Likewise.
22973         (size_low_cst): Likewise.
22974         (mask_with_tz): Likewise.
22975         (fold_binary_loc): Likewise.
22976         (fold_ternary_loc): Likewise.
22977         (multiple_of_p): Likewise.
22978         (tree_call_nonnegative_warnv_p): Update calls to
22979         tree_int_cst_min_precision and real_from_integer.
22980         (fold_negate_const): Use wide-int interfaces.
22981         (fold_abs_const): Likewise.
22982         (fold_relational_const): Use tree_int_cst_lt.
22983         (round_up_loc): Use wide-int interfaces.
22984         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
22985         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
22986         * gengtype.c: Remove include of double-int.h.
22987         (do_typedef): Use wide-int interfaces.
22988         (open_base_files): Add wide-int.h.
22989         (main): Add offset_int and widest_int typedefs.
22990         * gengtype-lex.l: Handle "^".
22991         (CXX_KEYWORD): Add "static".
22992         * gengtype-parse.c (require3): New.
22993         (require_template_declaration): Handle constant template arguments
22994         and nested templates.
22995         * gengtype-state.c: Don't include "double-int.h".
22996         * genpreds.c (write_one_predicate_function): Update comment.
22997         (write_tm_constrs_h): Add check for hval and lval use in
22998         CONST_WIDE_INT.
22999         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
23000         (add_to_sequence): Likewise.
23001         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
23002         and const_double_operand.
23003         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
23004         interfaces.
23005         * gimple-fold.c (get_base_constructor): Likewise.
23006         (fold_array_ctor_reference): Likewise.
23007         (fold_nonarray_ctor_reference): Likewise.
23008         (fold_const_aggregate_ref_1): Likewise.
23009         (gimple_val_nonnegative_real_p): Likewise.
23010         (gimple_fold_indirect_ref): Likewise.
23011         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
23012         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
23013         (struct slsr_cand_d): Change index to be widest_int.
23014         (struct incr_info_d): Change incr to be widest_int.
23015         (alloc_cand_and_find_basis): Use wide-int interfaces.
23016         (slsr_process_phi): Likewise.
23017         (backtrace_base_for_ref): Likewise.  Return a widest_int.
23018         (restructure_reference): Take a widest_int instead of a double_int.
23019         (slsr_process_ref): Use wide-int interfaces.
23020         (create_mul_ssa_cand): Likewise.
23021         (create_mul_imm_cand): Likewise.
23022         (create_add_ssa_cand): Likewise.
23023         (create_add_imm_cand): Take a widest_int instead of a double_int.
23024         (slsr_process_add): Use wide-int interfaces.
23025         (slsr_process_cast): Likewise.
23026         (slsr_process_copy): Likewise.
23027         (dump_candidate): Likewise.
23028         (dump_incr_vec): Likewise.
23029         (replace_ref): Likewise.
23030         (cand_increment): Likewise.  Return a widest_int.
23031         (cand_abs_increment): Likewise.
23032         (replace_mult_candidate): Take a widest_int instead of a double_int.
23033         (replace_unconditional_candidate): Use wide-int interfaces.
23034         (incr_vec_index): Take a widest_int instead of a double_int.
23035         (create_add_on_incoming_edge): Likewise.
23036         (create_phi_basis): Use wide-int interfaces.
23037         (replace_conditional_candidate): Likewise.
23038         (record_increment): Take a widest_int instead of a double_int.
23039         (record_phi_increments): Use wide-int interfaces.
23040         (phi_incr_cost): Take a widest_int instead of a double_int.
23041         (lowest_cost_path): Likewise.
23042         (total_savings): Likewise.
23043         (analyze_increments): Use wide-int interfaces.
23044         (ncd_with_phi): Take a widest_int instead of a double_int.
23045         (ncd_of_cand_and_phis): Likewise.
23046         (nearest_common_dominator_for_cands): Likewise.
23047         (insert_initializers): Use wide-int interfaces.
23048         (all_phi_incrs_profitable): Likewise.
23049         (replace_one_candidate): Likewise.
23050         (replace_profitable_candidates): Likewise.
23051         * godump.c: Include wide-int-print.h.
23052         (go_output_typedef): Use wide-int interfaces.
23053         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
23054         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
23055         (build_loop_iteration_domains): Likewise.
23056         * hooks.h: Include wide-int.h rather than double-int.h.
23057         (hook_bool_dint_dint_uint_bool_true): Delete.
23058         (hook_bool_wint_wint_uint_bool_true): Declare.
23059         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
23060         (hook_bool_wint_wint_uint_bool_true): New.
23061         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
23062         interfaces.
23063         (ubsan_expand_si_overflow_mul_check): Likewise.
23064         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
23065         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
23066         (get_ancestor_addr_info): Likewise.
23067         (ipa_modify_call_arguments): Likewise.
23068         * loop-doloop.c (doloop_modify): Likewise.
23069         (doloop_optimize): Likewise.
23070         * loop-iv.c (iv_number_of_iterations): Likewise.
23071         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
23072         (unroll_loop_constant_iterations): Likewise.
23073         (decide_unroll_runtime_iterations): Likewise.
23074         (unroll_loop_runtime_iterations): Likewise.
23075         (decide_peel_simple): Likewise.
23076         (decide_unroll_stupid): Likewise.
23077         * lto-streamer-in.c (streamer_read_wi): Add.
23078         (input_cfg): Use wide-int interfaces.
23079         (lto_input_tree_1): Likewise.
23080         * lto-streamer-out.c (streamer_write_wi): Add.
23081         (hash_tree): Use wide-int interfaces.
23082         (output_cfg): Likewise.
23083         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
23084         (GTFILES): Add wide-int.h and signop.h.
23085         (TAGS): Look for .cc files too.
23086         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
23087         * optabs.c (expand_subword_shift): Likewise.
23088         (expand_doubleword_shift): Likewise.
23089         (expand_absneg_bit): Likewise.
23090         (expand_copysign_absneg): Likewise.
23091         (expand_copysign_bit): Likewise.
23092         * postreload.c (reload_cse_simplify_set): Likewise.
23093         * predict.c (predict_iv_comparison): Likewise.
23094         * pretty-print.h: Include wide-int-print.h.
23095         (pp_wide_int) New.
23096         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
23097         * print-tree.c: Include wide-int-print.h.
23098         (print_node_brief): Use wide-int interfaces.
23099         (print_node): Likewise.
23100         * read-rtl.c (validate_const_wide_int): New.
23101         (read_rtx_code): Add CONST_WIDE_INT case.
23102         * real.c: Include wide-int.h.
23103         (real_to_integer2): Delete.
23104         (real_to_integer): New function, returning a wide_int.
23105         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23106         (ten_to_ptwo): Update call to real_from_integer.
23107         (real_digit): Likewise.
23108         * real.h: Include signop.h, wide-int.h and insn-modes.h.
23109         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
23110         (REAL_VALUE_TO_INT): Delete.
23111         (real_to_integer): Declare a wide-int form.
23112         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
23113         * recog.c (const_int_operand): Improve comment.
23114         (const_scalar_int_operand): New.
23115         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
23116         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
23117         (split_double): Likewise.
23118         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
23119         (rtx_size): Likewise.
23120         (rtx_alloc_stat_v): New.
23121         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
23122         (cwi_output_hex): New.
23123         (iterative_hash_rtx): Handle CONST_WIDE_INT.
23124         (cwi_check_failed_bounds): New.
23125         * rtl.def (CONST_WIDE_INT): New.
23126         * rtl.h: Include <utility> and wide-int.h.
23127         (struct hwivec_def): New.
23128         (CWI_GET_NUM_ELEM): New.
23129         (CWI_PUT_NUM_ELEM): New.
23130         (struct rtx_def): Add num_elem and hwiv.
23131         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
23132         (CASE_CONST_UNIQUE): Likewise.
23133         (CASE_CONST_ANY): Likewise.
23134         (CONST_SCALAR_INT_P): Likewise.
23135         (CONST_WIDE_INT_P): New.
23136         (CWI_ELT): New.
23137         (HWIVEC_CHECK): New.
23138         (cwi_check_failed_bounds): New.
23139         (CWI_ELT): New.
23140         (HWIVEC_CHECK): New.
23141         (CONST_WIDE_INT_VEC) New.
23142         (CONST_WIDE_INT_NUNITS) New.
23143         (CONST_WIDE_INT_ELT) New.
23144         (rtx_mode_t): New type.
23145         (wi::int_traits <rtx_mode_t>): New.
23146         (wi::shwi): New.
23147         (wi::min_value): New.
23148         (wi::max_value): New.
23149         (rtx_alloc_v) New.
23150         (const_wide_int_alloc): New.
23151         (immed_wide_int_const): New.
23152         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
23153         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
23154         * signop.h: New file.
23155         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
23156         (simplify_const_unary_operation): Use wide-int interfaces.
23157         (simplify_binary_operation_1): Likewise.
23158         (simplify_const_binary_operation): Likewise.
23159         (simplify_const_relational_operation): Likewise.
23160         (simplify_immed_subreg): Likewise.
23161         * stmt.c (expand_case): Likewise.
23162         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
23163         signop rather than a bool.
23164         * stor-layout.c (layout_type): Use wide-int interfaces.
23165         (initialize_sizetypes): Update calls to
23166         set_min_and_max_values_for_integral_type.
23167         (set_min_and_max_values_for_integral_type): Take a signop rather
23168         than a bool.  Use wide-int interfaces.
23169         (fixup_signed_type): Update accordingly.  Remove
23170         HOST_BITS_PER_DOUBLE_INT limit.
23171         (fixup_unsigned_type): Likewise.
23172         * system.h (STATIC_CONSTANT_P): New.
23173         (STATIC_ASSERT): New.
23174         * target.def (can_use_doloop_p): Take widest_ints rather than
23175         double_ints.
23176         * target.h: Include wide-int.h rather than double-int.h.
23177         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
23178         than double_ints.
23179         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
23180         rather than INT_CST_LT_UNSIGNED.
23181         (can_use_doloop_if_innermost): Take widest_ints rather than
23182         double_ints.
23183         * tree-affine.c: Include wide-int-print.h.
23184         (double_int_ext_for_comb): Delete.
23185         (wide_int_ext_for_comb): New.
23186         (aff_combination_zero): Use wide-int interfaces.
23187         (aff_combination_const): Take a widest_int instead of a double_int.
23188         (aff_combination_elt): Use wide-int interfaces.
23189         (aff_combination_scale): Take a widest_int instead of a double_int.
23190         (aff_combination_add_elt): Likewise.
23191         (aff_combination_add_cst): Likewise.
23192         (aff_combination_add): Use wide-int interfaces.
23193         (aff_combination_convert): Likewise.
23194         (tree_to_aff_combination): Likewise.
23195         (add_elt_to_tree): Take a widest_int instead of a double_int.
23196         (aff_combination_to_tree): Use wide-int interfaces.
23197         (aff_combination_remove_elt): Likewise.
23198         (aff_combination_add_product): Take a widest_int instead of
23199         a double_int.
23200         (aff_combination_mult): Use wide-int interfaces.
23201         (aff_combination_expand): Likewise.
23202         (double_int_constant_multiple_p): Delete.
23203         (wide_int_constant_multiple_p): New.
23204         (aff_combination_constant_multiple_p): Take a widest_int pointer
23205         instead of a double_int pointer.
23206         (print_aff): Use wide-int interfaces.
23207         (get_inner_reference_aff): Take a widest_int pointer
23208         instead of a double_int pointer.
23209         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
23210         * tree-affine.h: Include wide-int.h.
23211         (struct aff_comb_elt): Change type of coef to widest_int.
23212         (struct affine_tree_combination): Change type of offset to widest_int.
23213         (double_int_ext_for_comb): Delete.
23214         (wide_int_ext_for_comb): New.
23215         (aff_combination_const): Use widest_int instead of double_int.
23216         (aff_combination_scale): Likewise.
23217         (aff_combination_add_elt): Likewise.
23218         (aff_combination_constant_multiple_p): Likewise.
23219         (get_inner_reference_aff): Likewise.
23220         (aff_comb_cannot_overlap_p): Likewise.
23221         (aff_combination_zero_p): Use wide-int interfaces.
23222         * tree.c: Include tree.h.
23223         (init_ttree): Use make_int_cst.
23224         (tree_code_size): Removed code for INTEGER_CST case.
23225         (tree_size): Add INTEGER_CST case.
23226         (make_node_stat): Update comment.
23227         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
23228         (build_int_cst_type): Use wide-int interfaces.
23229         (double_int_to_tree): Likewise.
23230         (double_int_fits_to_tree_p): Delete.
23231         (force_fit_type_double): Delete.
23232         (force_fit_type): New.
23233         (int_cst_hash_hash): Use wide-int interfaces.
23234         (int_cst_hash_eq): Likewise.
23235         (build_int_cst_wide): Delete.
23236         (wide_int_to_tree): New.
23237         (cache_integer_cst): Use wide-int interfaces.
23238         (build_low_bits_mask): Likewise.
23239         (cst_and_fits_in_hwi): Likewise.
23240         (real_value_from_int_cst): Likewise.
23241         (make_int_cst_stat): New.
23242         (integer_zerop): Use wide_int interfaces.
23243         (integer_onep): Likewise.
23244         (integer_all_onesp): Likewise.
23245         (integer_pow2p): Likewise.
23246         (integer_nonzerop): Likewise.
23247         (tree_log2): Likewise.
23248         (tree_floor_log2): Likewise.
23249         (tree_ctz): Likewise.
23250         (int_size_in_bytes): Likewise.
23251         (mem_ref_offset): Return an offset_int rather than a double_int.
23252         (build_type_attribute_qual_variant): Use wide_int interfaces.
23253         (type_hash_eq): Likewise
23254         (tree_int_cst_equal): Likewise.
23255         (tree_int_cst_lt): Delete.
23256         (tree_int_cst_compare): Likewise.
23257         (tree_fits_shwi_p): Use wide_int interfaces.
23258         (tree_fits_uhwi_p): Likewise.
23259         (tree_int_cst_sign_bit): Likewise.
23260         (tree_int_cst_sgn): Likewise.
23261         (tree_int_cst_min_precision): Take a signop rather than a bool.
23262         (simple_cst_equal): Use wide_int interfaces.
23263         (compare_tree_int): Likewise.
23264         (iterative_hash_expr): Likewise.
23265         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
23266         INT_CST_LT.
23267         (get_type_static_bounds): Use wide_int interfaces.
23268         (tree_int_cst_elt_check_failed): New.
23269         (build_common_tree_nodes): Reordered to set prec before filling in
23270         value.
23271         (int_cst_value): Check cst_and_fits_in_hwi.
23272         (widest_int_cst_value): Use wide_int interfaces.
23273         (upper_bound_in_type): Likewise.
23274         (lower_bound_in_type): Likewise.
23275         (num_ending_zeros): Likewise.
23276         (drop_tree_overflow): Likewise.
23277         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
23278         (gen_conditions_for_pow_cst_base): Likewise.
23279         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
23280         (group_case_labels_stmt): Use wide-int interfaces.
23281         (verify_gimple_assign_binary): Likewise.
23282         (print_loop): Likewise.
23283         * tree-chrec.c (tree_fold_binomial): Likewise.
23284         * tree-core.h (struct tree_base): Add int_length.
23285         (struct tree_int_cst): Change rep of value.
23286         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
23287         (dr_may_alias_p): Likewise.
23288         (max_stmt_executions_tree): Likewise.
23289         * tree.def (INTEGER_CST): Update comment.
23290         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
23291         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
23292         * tree-dump.c: Include wide-int.h and wide-int-print.h.
23293         (dequeue_and_dump): Use wide-int interfaces.
23294         * tree.h: Include wide-int.h.
23295         (NULL_TREE): Moved to earlier loc in file.
23296         (TREE_INT_CST_ELT_CHECK): New.
23297         (tree_int_cst_elt_check_failed): New.
23298         (TYPE_SIGN): New.
23299         (TREE_INT_CST): Delete.
23300         (TREE_INT_CST_LOW): Use wide-int interfaces.
23301         (TREE_INT_CST_HIGH): Delete.
23302         (TREE_INT_CST_NUNITS): New.
23303         (TREE_INT_CST_EXT_NUNITS): Likewise.
23304         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
23305         (TREE_INT_CST_ELT): Likewise.
23306         (INT_CST_LT): Delete.
23307         (tree_int_cst_elt_check): New (two forms).
23308         (type_code_size): Update comment.
23309         (make_int_cst_stat, make_int_cst): New.
23310         (tree_to_double_int): Delete.
23311         (double_int_fits_to_tree_p): Delete.
23312         (force_fit_type_double): Delete.
23313         (build_int_cstu): Replace with out-of-line function.
23314         (build_int_cst_wide): Delete.
23315         (tree_int_cst_lt): Define inline.
23316         (tree_int_cst_le): New.
23317         (tree_int_cst_compare): Define inline.
23318         (tree_int_cst_min_precision): Take a signop rather than a bool.
23319         (wi::int_traits <const_tree>): New.
23320         (wi::int_traits <tree>): New.
23321         (wi::extended_tree): New.
23322         (wi::int_traits <wi::extended_tree>): New.
23323         (wi::to_widest): New.
23324         (wi::to_offset): New.
23325         (wi::fits_to_tree_p): New.
23326         (wi::min_value): New.
23327         (wi::max_value): New.
23328         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
23329         (copy_tree_body_r): Likewise.
23330         * tree-object-size.c (compute_object_offset): Likewise.
23331         (addr_object_size): Likewise.
23332         * tree-predcom.c: Include wide-int-print.h.
23333         (struct dref_d): Change type of offset to widest_int.
23334         (dump_dref): Call wide-int printer.
23335         (aff_combination_dr_offset): Use wide-int interfaces.
23336         (determine_offset): Take a widest_int pointer rather than a
23337         double_int pointer.
23338         (split_data_refs_to_components): Use wide-int interfaces.
23339         (suitable_component_p): Likewise.
23340         (order_drefs): Likewise.
23341         (add_ref_to_chain): Likewise.
23342         (valid_initializer_p): Likewise.
23343         (determine_roots_comp): Likewise.
23344         * tree-pretty-print.c: Include wide-int-print.h.
23345         (dump_generic_node): Use wide-int interfaces.
23346         * tree-sra.c (sra_ipa_modify_expr): Likewise.
23347         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
23348         (move_fixed_address_to_symbol): Likewise.
23349         (move_hint_to_base): Likewise.
23350         (move_pointer_to_base): Likewise.
23351         (move_variant_to_index): Likewise.
23352         (most_expensive_mult_to_index): Likewise.
23353         (addr_to_parts): Likewise.
23354         (copy_ref_info): Likewise.
23355         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
23356         (indirect_refs_may_alias_p): Likewise.
23357         (stmt_kills_ref_p_1): Likewise.
23358         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
23359         * tree-ssa-ccp.c: Update comment at top of file.  Include
23360         wide-int-print.h.
23361         (struct prop_value_d): Change type of mask to widest_int.
23362         (extend_mask): New function.
23363         (dump_lattice_value): Use wide-int interfaces.
23364         (get_default_value): Likewise.
23365         (set_constant_value): Likewise.
23366         (set_value_varying): Likewise.
23367         (valid_lattice_transition): Likewise.
23368         (set_lattice_value): Likewise.
23369         (value_to_double_int): Delete.
23370         (value_to_wide_int): New.
23371         (get_value_from_alignment): Use wide-int interfaces.
23372         (get_value_for_expr): Likewise.
23373         (do_dbg_cnt): Likewise.
23374         (ccp_finalize): Likewise.
23375         (ccp_lattice_meet): Likewise.
23376         (bit_value_unop_1): Use widest_ints rather than double_ints.
23377         (bit_value_binop_1): Likewise.
23378         (bit_value_unop): Use wide-int interfaces.
23379         (bit_value_binop): Likewise.
23380         (bit_value_assume_aligned): Likewise.
23381         (evaluate_stmt): Likewise.
23382         (ccp_fold_stmt): Likewise.
23383         (visit_cond_stmt): Likewise.
23384         (ccp_visit_stmt): Likewise.
23385         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
23386         (constant_pointer_difference): Likewise.
23387         (associate_pointerplus): Likewise.
23388         (combine_conversions): Likewise.
23389         * tree-ssa-loop.h: Include wide-int.h.
23390         (struct tree_niter_desc): Change type of max to widest_int.
23391         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
23392         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
23393         (remove_redundant_iv_tests): Likewise.
23394         (canonicalize_loop_induction_variables): Likewise.
23395         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
23396         (constant_multiple_of): Take a widest_int pointer instead of
23397         a double_int pointer.
23398         (get_computation_aff): Use wide-int interfaces.
23399         (ptr_difference_cost): Likewise.
23400         (difference_cost): Likewise.
23401         (get_loop_invariant_expr_id): Likewise.
23402         (get_computation_cost_at): Likewise.
23403         (iv_elimination_compare_lt): Likewise.
23404         (may_eliminate_iv): Likewise.
23405         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
23406         instead of double_int.
23407         (max_loop_iterations): Likewise.
23408         (max_stmt_executions): Likewise.
23409         (estimated_stmt_executions): Likewise.
23410         * tree-ssa-loop-niter.c: Include wide-int-print.h.
23411         (split_to_var_and_offset): Use wide-int interfaces.
23412         (determine_value_range): Likewise.
23413         (bound_difference_of_offsetted_base): Likewise.
23414         (bounds_add): Take a widest_int instead of a double_int.
23415         (number_of_iterations_ne_max): Use wide-int interfaces.
23416         (number_of_iterations_ne): Likewise.
23417         (number_of_iterations_lt_to_ne): Likewise.
23418         (assert_loop_rolls_lt): Likewise.
23419         (number_of_iterations_lt): Likewise.
23420         (number_of_iterations_le): Likewise.
23421         (number_of_iterations_cond): Likewise.
23422         (number_of_iterations_exit): Likewise.
23423         (finite_loop_p): Likewise.
23424         (derive_constant_upper_bound_assign): Likewise.
23425         (derive_constant_upper_bound): Return a widest_int.
23426         (derive_constant_upper_bound_ops): Likewise.
23427         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
23428         (record_estimate): Take a widest_int rather than a double_int.
23429         (record_nonwrapping_iv): Use wide-int interfaces.
23430         (double_int_cmp): Delete.
23431         (wide_int_cmp): New.
23432         (bound_index): Take a widest_int rather than a double_int.
23433         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
23434         (maybe_lower_iteration_bound): Likewise.
23435         (estimate_numbers_of_iterations_loop): Likewise.
23436         (estimated_loop_iterations): Take a widest_int pointer than than
23437         a double_int pointer.
23438         (estimated_loop_iterations_int): Use wide-int interfaces.
23439         (max_loop_iterations): Take a widest_int pointer than than
23440         a double_int pointer.
23441         (max_loop_iterations_int): Use wide-int interfaces.
23442         (max_stmt_executions): Take a widest_int pointer than than
23443         a double_int pointer.
23444         (estimated_stmt_executions): Likewise.
23445         (n_of_executions_at_most): Use wide-int interfaces.
23446         (scev_probably_wraps_p): Likewise.
23447         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
23448         to real_to_integer.
23449         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
23450         interfaces.
23451         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
23452         double_ints.  Adjust for trailing_wide_ints <3> representation.
23453         (set_nonzero_bits): Likewise.
23454         (get_range_info): Return wide_ints rather than double_ints.
23455         Adjust for trailing_wide_ints <3> representation.
23456         (get_nonzero_bits): Likewise.
23457         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
23458         representation.
23459         * tree-ssanames.h (struct range_info_def): Replace min, max and
23460         nonzero_bits with a trailing_wide_ints <3>.
23461         (set_range_info): Use wide_int_refs rather than double_ints.
23462         (set_nonzero_bits): Likewise.
23463         (get_range_info): Return wide_ints rather than double_ints.
23464         (get_nonzero_bits): Likewise.
23465         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
23466         * tree-ssa-pre.c (phi_translate_1): Likewise.
23467         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
23468         (acceptable_pow_call): Likewise.
23469         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
23470         interfaces.
23471         (vn_reference_fold_indirect): Likewise.
23472         (vn_reference_maybe_forwprop_address): Likewise.
23473         (valueize_refs_1): Likewise.
23474         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
23475         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
23476         tree_int_cst_lt and tree_int_cst_le.
23477         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
23478         interfaces.
23479         (streamer_alloc_tree): Likewise.
23480         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
23481         (streamer_write_tree_header): Likewise.
23482         (streamer_write_integer_cst): Likewise.
23483         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23484         (build_constructors): Likewise.
23485         (array_value_type): Likewise.
23486         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
23487         (vect_check_gather): Likewise.
23488         * tree-vect-generic.c (build_replicated_const): Likewise.
23489         (expand_vector_divmod): Likewise.
23490         * tree-vect-loop.c (vect_transform_loop): Likewise.
23491         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
23492         (vect_do_peeling_for_alignment): Likewise.
23493         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
23494         * tree-vrp.c: Include wide-int.h.
23495         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
23496         (extract_range_from_assert): Use wide-int interfaces.
23497         (vrp_int_const_binop): Likewise.
23498         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
23499         double_int pointers.
23500         (ranges_from_anti_range): Use wide-int interfaces.
23501         (quad_int_cmp): Delete.
23502         (quad_int_pair_sort): Likewise.
23503         (extract_range_from_binary_expr_1): Use wide-int interfaces.
23504         (extract_range_from_unary_expr_1): Likewise.
23505         (adjust_range_with_scev): Likewise.
23506         (masked_increment): Take and return wide_ints rather than double_ints.
23507         (register_edge_assert_for_2): Use wide-int interfaces.
23508         (check_array_ref): Likewise.
23509         (search_for_addr_array): Likewise.
23510         (maybe_set_nonzero_bits): Likewise.
23511         (union_ranges): Pass an integer of the correct type instead of
23512         using integer_one_node.
23513         (intersect_ranges): Likewise.
23514         (simplify_truth_ops_using_ranges): Likewise.
23515         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
23516         (range_fits_type_p): Likewise.
23517         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
23518         a bool.
23519         (simplify_conversion_using_ranges): Use wide-int interfaces.
23520         (simplify_float_conversion_using_ranges): Likewise.
23521         (vrp_finalize): Likewise.
23522         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
23523         (gimple_stringops_transform): Likewise.
23524         * varasm.c (decode_addr_const): Likewise.
23525         (const_hash_1): Likewise.
23526         (const_rtx_hash_1): Likewise
23527         (output_constant): Likewise.
23528         (array_size_for_constructor): Likewise.
23529         (output_constructor_regular_field): Likewise.
23530         (output_constructor_bitfield): Likewise.
23531         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
23532         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
23533         GENERATOR_FILEs.
23534         * gencheck.c: Define BITS_PER_UNIT.
23535         * wide-int.cc: New.
23536         * wide-int.h: New.
23537         * wide-int-print.cc: New.
23538         * wide-int-print.h: New.
23540 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23542         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
23544 2014-05-06  Richard Biener  <rguenther@suse.de>
23546         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
23547         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
23548         (TODO_verify_all): Adjust.
23549         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
23550         TODO_verify_stmts and TODO_verify_rtl_sharing.
23551         * bb-reorder.c: Likewise.
23552         * cfgexpand.c: Likewise.
23553         * cprop.c: Likewise.
23554         * cse.c: Likewise.
23555         * function.c: Likewise.
23556         * fwprop.c: Likewise.
23557         * gcse.c: Likewise.
23558         * gimple-ssa-isolate-paths.c: Likewise.
23559         * gimple-ssa-strength-reduction.c: Likewise.
23560         * ipa-split.c: Likewise.
23561         * loop-init.c: Likewise.
23562         * loop-unroll.c: Likewise.
23563         * lower-subreg.c: Likewise.
23564         * modulo-sched.c: Likewise.
23565         * postreload-gcse.c: Likewise.
23566         * predict.c: Likewise.
23567         * recog.c: Likewise.
23568         * sched-rgn.c: Likewise.
23569         * store-motion.c: Likewise.
23570         * tracer.c: Likewise.
23571         * trans-mem.c: Likewise.
23572         * tree-call-cdce.c: Likewise.
23573         * tree-cfg.c: Likewise.
23574         * tree-cfgcleanup.c: Likewise.
23575         * tree-complex.c: Likewise.
23576         * tree-eh.c: Likewise.
23577         * tree-emutls.c: Likewise.
23578         * tree-if-conv.c: Likewise.
23579         * tree-into-ssa.c: Likewise.
23580         * tree-loop-distribution.c: Likewise.
23581         * tree-object-size.c: Likewise.
23582         * tree-parloops.c: Likewise.
23583         * tree-pass.h: Likewise.
23584         * tree-sra.c: Likewise.
23585         * tree-ssa-ccp.c: Likewise.
23586         * tree-ssa-copy.c: Likewise.
23587         * tree-ssa-copyrename.c: Likewise.
23588         * tree-ssa-dce.c: Likewise.
23589         * tree-ssa-dom.c: Likewise.
23590         * tree-ssa-dse.c: Likewise.
23591         * tree-ssa-forwprop.c: Likewise.
23592         * tree-ssa-ifcombine.c: Likewise.
23593         * tree-ssa-loop-ch.c: Likewise.
23594         * tree-ssa-loop-ivcanon.c: Likewise.
23595         * tree-ssa-loop.c: Likewise.
23596         * tree-ssa-math-opts.c: Likewise.
23597         * tree-ssa-phiopt.c: Likewise.
23598         * tree-ssa-phiprop.c: Likewise.
23599         * tree-ssa-pre.c: Likewise.
23600         * tree-ssa-reassoc.c: Likewise.
23601         * tree-ssa-sink.c: Likewise.
23602         * tree-ssa-strlen.c: Likewise.
23603         * tree-ssa-tail-merge.c: Likewise.
23604         * tree-ssa-uncprop.c: Likewise.
23605         * tree-switch-conversion.c: Likewise.
23606         * tree-tailcall.c: Likewise.
23607         * tree-vect-generic.c: Likewise.
23608         * tree-vectorizer.c: Likewise.
23609         * tree-vrp.c: Likewise.
23610         * tsan.c: Likewise.
23611         * var-tracking.c: Likewise.
23612         * bt-load.c: Likewise.
23613         * cfgcleanup.c: Likewise.
23614         * combine-stack-adj.c: Likewise.
23615         * combine.c: Likewise.
23616         * compare-elim.c: Likewise.
23617         * config/epiphany/resolve-sw-modes.c: Likewise.
23618         * config/i386/i386.c: Likewise.
23619         * config/mips/mips.c: Likewise.
23620         * config/s390/s390.c: Likewise.
23621         * config/sh/sh_treg_combine.cc: Likewise.
23622         * config/sparc/sparc.c: Likewise.
23623         * dce.c: Likewise.
23624         * dse.c: Likewise.
23625         * final.c: Likewise.
23626         * ifcvt.c: Likewise.
23627         * mode-switching.c: Likewise.
23628         * passes.c: Likewise.
23629         * postreload.c: Likewise.
23630         * ree.c: Likewise.
23631         * reg-stack.c: Likewise.
23632         * regcprop.c: Likewise.
23633         * regrename.c: Likewise.
23634         * web.c: Likewise.
23636 2014-05-06  Richard Biener  <rguenther@suse.de>
23638         PR middle-end/61070
23639         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
23640         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
23642 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
23644         PR ipa/60965
23645         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
23647 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
23648             Tom de Vries  <tom@codesourcery.com>
23650         * target.def (call_fusage_contains_non_callee_clobbers): New
23651         DEFHOOKPOD.
23652         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
23653         Hooks to @menu.
23654         (@node Miscellaneous Register Hooks): New node.
23655         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
23656         * doc/tm.texi: Regenerate.
23658 2014-05-05  Marek Polacek  <polacek@redhat.com>
23660         PR driver/61065
23661         * opts.c (common_handle_option): Call error_at instead of warning_at.
23663 2014-05-05  Richard Biener  <rguenther@suse.de>
23665         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
23666         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
23667         under the TODO_verify_il umbrella.
23669 2014-05-05  Richard Biener  <rguenther@suse.de>
23671         * passes.c (execute_function_todo): Move TODO_verify_flow under
23672         the TODO_verify_ul umbrella.
23674 2014-05-05  Richard Biener  <rguenther@suse.de>
23676         PR middle-end/61010
23677         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
23678         X & CST away from a CST that is the mask of a mode.
23680 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23682         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
23683         int argument to enum machine_mode.
23684         (picochip_class_max_nregs): Ditto.
23685         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
23686         (picochip_class_max_nregs): Ditto.
23688 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23690         * target.def: Add new target hook.
23691         * doc/tm.texi: Regenerate.
23692         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
23693         * targhooks.c (default_keep_leaf_when_profiled): New function.
23695         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
23696         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
23698 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
23700         PR tree-optimization/60363
23701         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
23702         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
23703         (update_destination_phis): New parameter.
23704         (create_edge_and_update_destination_phis): Ditto.
23705         (ssa_fix_duplicate_block_edges): Pass new arguments.
23706         (thread_single_edge): Ditto.
23708 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
23710         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
23711         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
23712         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
23713         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
23714         Use RS6000_BTM_HARD_FLOAT.
23715         (BU_MISC_2): Likewise.
23716         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
23717         RS6000_BTM_HARD_FLOAT.
23718         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
23719         is explicitly used.
23720         (rs6000_invalid_builtin): Add hard floating builtin support.
23721         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
23722         hard float builtins.
23723         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
23725 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
23727         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
23728         Add missing function* argument.
23730 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
23732         * lra-constraints.c (valid_address_p): Move earlier in file.
23733         Add a constraint argument to the address_info version.
23734         (satisfies_memory_constraint_p): New function.
23735         (satisfies_address_constraint_p): Likewise.
23736         (process_alt_operands, curr_insn_transform): Use them.
23737         (process_address): Pass the constraint to valid_address_p when
23738         checking address operands.
23740 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
23742         * config/mips/mips.c (mips_isa_rev): New variable.
23743         (mips_set_architecture): Set it.
23744         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
23745         from mips_isa_rev.
23746         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
23747         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
23748         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
23749         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
23750         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
23751         conditions in terms of mips_isa_rev.
23752         (mips_isa_rev): Declare.
23754 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
23756         * config/sh/sh-mem.cc: Use tabs instead of spaces.
23757         (prob_unlikely, prob_likely): Make variables const.
23759 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
23761         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
23763 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
23765         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
23767 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
23769         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
23770         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
23771         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
23772         functions.
23773         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
23774         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
23775         sh_pass_in_reg_p.
23776         Replace usage of ROUND_REG with sh_round_reg.
23777         Use CEIL instead of ROUND_ADVANCE.
23779 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
23781         PR target/61026
23782         * config/sh/sh.c: Include stdlib headers before everything else.
23784 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
23786         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
23787         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
23788         (gimplify_adjust_omp_clauses): Simd region is never
23789         directly nested in combined parallel.  Instead, for linear
23790         with copyin/copyout, if in combined for simd loop, make decl
23791         firstprivate/lastprivate on OMP_FOR.
23792         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
23793         expand_omp_for_static_chunk): When setting endvar, also set
23794         fd->loop.v to the same value.
23796 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
23798         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
23800 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
23802         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
23803         expression.
23805 2014-05-02  Marek Polacek  <polacek@redhat.com>
23807         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
23809 2014-05-02  Kito Cheng  <kito@0xlab.org>
23811         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
23812         to a C expression marco.
23813         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
23814         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
23815         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
23816         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
23817         HONOR_REG_ALLOC_ORDER.
23818         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
23820 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23822         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
23824 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23826         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
23828 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
23830         * tree-if-conv.c (is_cond_scalar_reduction): New function.
23831         (convert_scalar_cond_reduction): Likewise.
23832         (predicate_scalar_phi): Add recognition and transformation
23833         of simple conditioanl reduction to be vectorizable.
23835 2014-05-01  Marek Polacek  <polacek@redhat.com>
23837         PR c/43245
23838         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
23840 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
23842         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
23843         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
23844         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
23845         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
23846         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
23847         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
23848         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
23849         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
23851 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
23853         * config/arc/arc.opt (mlra): Move comment above option name
23854         to avoid mis-parsing as language options.
23856 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23858         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
23859         * config/sol2.h: ... here.
23860         * config/sol2-10.h: Remove.
23862         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
23863         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
23864         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
23865         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
23866         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
23867         * config/sol2.h: ... here.
23868         (SECTION_NAME_FORMAT): Don't redefine.
23869         (STARTFILE_ARCH32_SPEC): Rename to ...
23870         (STARTFILE_ARCH_SPEC): ... this.
23871         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
23872         * config/sparc/sol2.h: ... here.
23873         (SECTION_NAME_FORMAT): Don't undef.
23874         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
23875         (SUBTARGET_EXTRA_SPECS): Remove.
23876         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
23878         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
23879         (MD_STARTFILE_PREFIX): Remove.
23880         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
23881         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
23882         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
23883         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
23884         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
23885         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
23886         * config/i386/sol2.h: ... here.
23887         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
23888         * config/i386/sol2-bi.h: Remove.
23889         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
23890         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
23892         * config/i386/t-sol2-64: Rename to ...
23893         * config/i386/t-sol2: ... this.
23894         * config/sparc/t-sol2-64: Rename to ...
23895         * config/sparc/t-sol2: ... this.
23897         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
23898         sol2_tm_file_head, sol2_tm_file_tail.
23899         Include ${cpu_type}/sol2.h before sol2.h.
23900         Remove sol2-10.h.
23901         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
23902         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
23903         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
23904         Reflect i386/t-sol2-64 renaming.
23905         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
23906         Reflect sparc/t-sol2-64 renaming.
23908 2014-04-30  Richard Biener  <rguenther@suse.de>
23910         * passes.c (execute_function_todo): Move TODO_verify_stmts
23911         and TODO_verify_ssa under the TODO_verify_il umbrella.
23912         * tree-ssa.h (verify_ssa): Adjust prototype.
23913         * tree-ssa.c (verify_ssa): Add parameter to tell whether
23914         we should verify SSA operands.
23915         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
23916         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
23917         whether we should verify whether not throwing stmts have EH info.
23918         * graphite-scop-detection.c (create_sese_edges): Adjust.
23919         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
23920         * tree-eh.c (lower_try_finally_switch): Do not add the
23921         default case label twice.
23923 2014-04-30  Marek Polacek  <polacek@redhat.com>
23925         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
23926         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
23927         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
23928         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
23930 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
23932         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
23933         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
23934         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
23935         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
23936         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
23937         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
23938         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
23939         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
23941 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
23943         * tree-cfg.c (dump_function_to_file): Dump the return type of
23944         functions, in a line to itself before the function body, mimicking
23945         the layout of a C function.
23947 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
23949         PR tree-optimization/60971
23950         * tree-tailcall.c (process_assignment): Reject conversions which
23951         reduce precision.
23953 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
23955         * calls.c (initialize_argument_information): Always treat
23956         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
23957         (expand_call): Likewise.
23958         (emit_library_call_calue_1): Likewise.
23959         * expr.c (PUSH_ARGS_REVERSED): Do not define.
23960         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
23961         code accordingly.
23963 2014-04-29  Nick Clifton  <nickc@redhat.com>
23965         * config/msp430/msp430.md (umulsidi): Fix typo.
23966         (mulhisi3): Enable even inside interrupt handlers.
23967         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
23968         bigger return address pushed in large mode.
23970 2014-04-29  Nick Clifton  <nickc@redhat.com>
23972         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
23973         (arc_init_reg_tables): Use a machine_mode enum to iterate over
23974         available modes.
23975         * config/m32r/m32r.c (init_reg_tables): Likewise.
23976         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
23977         enum to hold the modes.
23979 2014-04-29  Richard Biener  <rguenther@suse.de>
23981         * dominance.c (free_dominance_info): Add overload with
23982         function parameter.
23983         (dom_info_state): Likewise.
23984         (dom_info_available_p): Likewise.
23985         * basic-block.h (free_dominance_info, dom_info_state,
23986         dom_info_available_p): Declare overloads.
23987         * passes.c (execute_function_todo): Verify that verifiers
23988         don't change dominator info state.  Drop dominator info
23989         for IPA pass invocations.
23990         * cgraph.c (release_function_body): Restore asserts that
23991         dominator information is released.
23993 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
23995         * doc/invoke.texi: Fix typo.
23996         * tree-vrp.c: Fix typos.
23997         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
23999 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24001         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
24003 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
24005         * config/aarch64/aarch64-builtins.c
24006         (aarch64_types_storestruct_lane_qualifiers): New.
24007         (TYPES_STORESTRUCT_LANE): Likewise.
24008         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
24009         (st3_lane): Likewise.
24010         (st4_lane): Likewise.
24011         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
24012         (vec_store_lanesci_lane<mode>): Likewise.
24013         (vec_store_lanesxi_lane<mode>): Likewise.
24014         (aarch64_st2_lane<VQ:mode>): Likewise.
24015         (aarch64_st3_lane<VQ:mode>): Likewise.
24016         (aarch64_st4_lane<VQ:mode>): Likewise.
24017         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
24018         * config/aarch64/arm_neon.h
24019         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
24020         use new macro arguments.
24021         (__ST3_LANE_FUNC): Likewise.
24022         (__ST4_LANE_FUNC): Likewise.
24023         * config/aarch64/iterators.md (V_TWO_ELEM): New.
24024         (V_THREE_ELEM): Likewise.
24025         (V_FOUR_ELEM): Likewise.
24027 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
24029         * doc/gimple.texi: Replace the description of the now-defunct
24030         union gimple_statement_d with a diagram showing the
24031         gimple_statement_base class hierarchy and its relationships to
24032         the GSS_ and GIMPLE_ enums.
24034 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
24036         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
24037         * config/aarch64/aarch64.c
24038         (aarch64_cannot_change_mode_class): Weaken conditions.
24039         (aarch64_modes_tieable_p): New.
24040         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
24042 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
24044         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24045         (loadsync_<mode>): Change mode.
24046         (load_quadpti, store_quadpti): New.
24047         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24048         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24050 2014-04-28  Martin Jambor  <mjambor@suse.cz>
24052         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
24053         same alias type as the original statement.
24054         (subreplacement_assignment_data): New type.
24055         (handle_unscalarized_data_in_subtree): New type of parameter,
24056         generate new memory accesses with same alias type as the original
24057         statement.
24058         (load_assign_lhs_subreplacements): Likewise.
24059         (sra_modify_constructor_assign): Generate new memory accesses with
24060         same alias type as the original statement.
24062 2014-04-28  Richard Biener  <rguenther@suse.de>
24064         * tree-pass.h (TODO_verify_il): Define.
24065         (TODO_verify_all): Complete properly.
24066         * passes.c (execute_function_todo): Move existing loop-closed
24067         SSA verification under TODO_verify_il.
24068         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
24069         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
24070         Fix tree sharing issue.
24072 2014-04-28  Richard Biener  <rguenther@suse.de>
24074         PR middle-end/60092
24075         * builtins.def (DEF_C11_BUILTIN): Add.
24076         (BUILT_IN_ALIGNED_ALLOC): Likewise.
24077         * coretypes.h (enum function_class): Add function_c11_misc.
24078         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24079         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
24080         (call_may_clobber_ref_p_1): Likewise.
24081         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24082         (mark_all_reaching_defs_necessary_1): Likewise.
24083         (propagate_necessity): Likewise.
24084         (eliminate_unnecessary_stmts): Likewise.
24085         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
24087 2014-04-28  Richard Biener  <rguenther@suse.de>
24089         * tree-vrp.c (vrp_var_may_overflow): Remove.
24090         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
24091         with overflow immediately bump to one before that value and
24092         let iteration figure out overflow status.
24094 2014-04-28  Richard Biener  <rguenther@suse.de>
24096         * configure.ac: Do valgrind header checks unconditionally.
24097         Add --enable-valgrind-annotations.
24098         * system.h: Guard valgrind header inclusion with
24099         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
24100         * alloc-pool.c (pool_alloc, pool_free): Use
24101         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
24102         to guard possibly dead code.
24103         * config.in: Regenerated.
24104         * configure: Likewise.
24106 2014-04-28  Jeff Law  <law@redhat.com>
24108         PR tree-optimization/60902
24109         * tree-ssa-threadedge.c
24110         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
24111         over real defs when invalidating outputs from statements that do not
24112         produce useful outputs for threading.
24114 2014-04-28  Richard Biener  <rguenther@suse.de>
24116         PR tree-optimization/60979
24117         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
24118         SCOPs that end in a block with a successor with abnormal
24119         predecessors.
24121 2014-04-28  Richard Biener  <rguenther@suse.de>
24123         * tree-pass.h (execute_pass_list): Adjust prototype.
24124         * passes.c (pass_manager::execute_early_local_passes): Adjust.
24125         (do_per_function): Change callback signature, push all actual
24126         work to the callbals.
24127         (do_per_function_toporder): Likewise.
24128         (execute_function_dump): Adjust.
24129         (execute_function_todo): Likewise.
24130         (clear_last_verified): Likewise.
24131         (verify_curr_properties): Likewise.
24132         (update_properties_after_pass): Likewise.
24133         (execute_pass_list_1): Split out from ...
24134         (execute_pass_list): ... here.  Adjust.
24135         (execute_ipa_pass_list): Likewise.
24136         * cgraphunit.c (cgraph_add_new_function): Adjust.
24137         (analyze_function): Likewise.
24138         (expand_function): Likewise.
24139         * cgraph.c (release_function_body): Free dominance info
24140         here instead of asserting it was magically freed elsewhere.
24142 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
24144         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
24145         * configure: Regenerate.
24146         * config/sparc/sparc.opt (muser-mode): New option.
24147         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
24148         for LEON3.
24149         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
24150         * doc/invoke.texi (SPARC options): Document -muser-mode.
24152 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
24154         * cselib.c (find_slot_memmode): Delete.
24155         (cselib_hasher): Change compare_type to a struct.
24156         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
24157         constants.
24158         (preserve_constants_and_equivs): Adjust for new compare_type.
24159         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
24160         (wrap_constant): Delete.
24161         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
24163 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
24165         * doc/install.texi (Building with profile feedback): Remove
24166         outdated sentence.
24168 2014-04-26  Tom de Vries  <tom@codesourcery.com>
24170         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
24171         array accesses.
24173 2014-04-25  Cary Coutant  <ccoutant@google.com>
24175         PR debug/60929
24176         * dwarf2out.c (should_move_die_to_comdat): A type definition
24177         can contain a subprogram definition, but don't move it to a
24178         comdat unit.
24179         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
24180         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
24181         from original DIE.
24182         (clone_tree_hash): Rename to...
24183         (clone_tree_partial): ...this; change callers.  Copy
24184         DW_TAG_subprogram DIEs as declarations.
24185         (copy_decls_walk): Don't copy children of a declaration into a
24186         type unit.
24188 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
24190         PR target/60969
24191         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
24192         alternative 12.
24194 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
24196         * config/arm/predicates.md (call_insn_operand): Add long_call check.
24197         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
24198         reg for long_call.
24199         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
24200         restriction.
24202 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24204         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
24206 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24208         PR tree-optimization/60930
24209         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
24210         creating a multiply candidate by folding two constant
24211         multiplicands when the result overflows.
24213 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
24215         PR tree-optimization/60960
24216         * tree-vect-generic.c (expand_vector_operation): Only call
24217         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
24219 2014-04-25  Tom de Vries  <tom@codesourcery.com>
24221         * expr.c (clobber_reg_mode): New function.
24222         * expr.h (clobber_reg): New function.
24224 2014-04-25  Tom de Vries  <tom@codesourcery.com>
24226         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
24227         clobbers.
24229 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
24230             Tom de Vries  <tom@codesourcery.com>
24232         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
24233         handle.
24234         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
24235         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
24236         new argument to find_all_hard_reg_sets call.
24238 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24240         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
24241         Use HOST_WIDE_INT_C for mask literal.
24242         (aarch_rev16_shleft_mask_imm_p): Likewise.
24244 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
24246         PR target/60941
24247         * config/sparc/sparc.md (ashlsi3_extend): Delete.
24249 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
24251         PR preprocessor/56540
24252         * config/i386/i386-c.c (ix86_target_macros): Define
24253         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
24255 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24257         * configure.ac (tga_func): Remove.
24258         (LIB_TLS_SPEC): Remove.
24259         * configure: Regenerate.
24260         * config.in: Regenerate.
24261         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
24263 2014-04-25  Richard Biener  <rguenther@suse.de>
24265         PR ipa/60912
24266         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
24267         call stmt use/clobber sets during stmt walk instead of
24268         walking the possibly incomplete set of caller edges.
24270 2014-04-25  Richard Biener  <rguenther@suse.de>
24272         PR ipa/60911
24273         * passes.c (apply_ipa_transforms): Inline into only caller ...
24274         (execute_one_pass): ... here.  Properly bring in function
24275         bodies for nodes we want to apply IPA transforms to.
24277 2014-04-24  Cong Hou  <congh@google.com>
24279         PR tree-optimization/60896
24280         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
24281         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
24282         (vect_mark_pattern_stmts): Set the def type of all statements in
24283         PATTERN_DEF_SEQ as vect_internal_def.
24285 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
24287         * doc/extend.texi (PowerPC Built-in Functions): Document new
24288         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
24289         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
24291         * config/rs6000/predicates.md (const_0_to_3_operand): New
24292         predicate to match 0..3 integer constants.
24294         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
24295         to support adding miscellaneous builtin functions.
24296         (BU_DFP_MISC_2): Likewise.
24297         (BU_P7_MISC_1): Likewise.
24298         (BU_P7_MISC_2): Likewise.
24299         (BU_P8V_MISC_3): Likewise.
24300         (BU_MISC_1): Likewise.
24301         (BU_MISC_2): Likewise.
24302         (DIVWE): Add extended divide builtin functions.
24303         (DIVWEO): Likewise.
24304         (DIVWEU): Likewise.
24305         (DIVWEUO): Likewise.
24306         (DIVDE): Likewise.
24307         (DIVDEO): Likewise.
24308         (DIVDEU): Likewise.
24309         (DIVDEUO): Likewise.
24310         (DXEX): Add decimal floating-point builtin functions.
24311         (DXEXQ): Likewise.
24312         (DDEDPD): Likewise.
24313         (DDEDPDQ): Likewise.
24314         (DENBCD): Likewise.
24315         (DENBCDQ): Likewise.
24316         (DIEX): Likewise.
24317         (DIEXQ): Likewise.
24318         (DSCLI): Likewise.
24319         (DSCLIQ): Likewise.
24320         (DSCRI): Likewise.
24321         (DSCRIQ): Likewise.
24322         (CDTBCD): Add new BCD builtin functions.
24323         (CBCDTD): Likewise.
24324         (ADDG6S): Likewise.
24325         (BCDADD): Likewise.
24326         (BCDADD_LT): Likewise.
24327         (BCDADD_EQ): Likewise.
24328         (BCDADD_GT): Likewise.
24329         (BCDADD_OV): Likewise.
24330         (BCDSUB): Likewise.
24331         (BCDSUB_LT): Likewise.
24332         (BCDSUB_EQ): Likewise.
24333         (BCDSUB_GT): Likewise.
24334         (BCDSUB_OV): Likewise.
24335         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
24336         (UNPACK_TD): Likewise.
24337         (PACK_TF): Likewise.
24338         (UNPACK_TF): Likewise.
24339         (UNPACK_TF_0): Likewise.
24340         (UNPACK_TF_1): Likewise.
24341         (PACK_V1TI): Likewise.
24342         (UNPACK_V1TI): Likewise.
24344         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24345         support for decimal floating point builtin functions.
24346         (rs6000_expand_ternop_builtin): Add checks for the new builtin
24347         functions that take constant arguments.
24348         (rs6000_invalid_builtin): Add decimal floating point builtin support.
24349         (rs6000_init_builtins): Setup long double, _Decimal64, and
24350         _Decimal128 types for new builtin functions.
24351         (builtin_function_type): Set the unsigned flags appropriately for
24352         the new builtin functions.
24353         (rs6000_opt_masks): Add support for decimal floating point builtin
24354         functions.
24356         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
24357         floating point builtin functions.
24358         (RS6000_BTM_COMMON): Likewise.
24359         (RS6000_BTI_long_double): Likewise.
24360         (RS6000_BTI_dfloat64): Likewise.
24361         (RS6000_BTI_dfloat128): Likewise.
24362         (long_double_type_internal_node): Likewise.
24363         (dfloat64_type_internal_node): Likewise.
24364         (dfloat128_type_internal_node): Likewise.
24366         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
24367         2.07 bcd arithmetic instructions.
24368         (UNSPEC_BCDSUB): Likewise.
24369         (UNSPEC_BCD_OVERFLOW): Likewise.
24370         (UNSPEC_BCD_ADD_SUB): Likewise.
24371         (bcd_add_sub): Likewise.
24372         (BCD_TEST): Likewise.
24373         (bcd<bcd_add_sub>): Likewise.
24374         (bcd<bcd_add_sub>_test): Likewise.
24375         (bcd<bcd_add_sub>_test2): Likewise.
24376         (bcd<bcd_add_sub>_<code>): Likewise.
24377         (peephole2 for combined bcd ops): Likewise.
24379         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
24380         decimal floating point builtin functions.
24381         (UNSPEC_DENBCD): Likewise.
24382         (UNSPEC_DXEX): Likewise.
24383         (UNSPEC_DIEX): Likewise.
24384         (UNSPEC_DSCLI): Likewise.
24385         (UNSPEC_DSCRI): Likewise.
24386         (D64_D128): Likewise.
24387         (dfp_suffix): Likewise.
24388         (dfp_ddedpd_<mode>): Likewise.
24389         (dfp_denbcd_<mode>): Likewise.
24390         (dfp_dxex_<mode>): Likewise.
24391         (dfp_diex_<mode>): Likewise.
24392         (dfp_dscli_<mode>): Likewise.
24393         (dfp_dscri_<mode>): Likewise.
24395         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
24396         builtin functions.
24397         (UNSPEC_CDTBCD): Likewise.
24398         (UNSPEC_CBCDTD): Likewise.
24399         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
24400         (UNSPEC_DIVEO): Likewise.
24401         (UNSPEC_DIVEU): Likewise.
24402         (UNSPEC_DIVEUO): Likewise.
24403         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
24404         pack/unpack 128-bit types.
24405         (UNSPEC_PACK_128BIT): Likewise.
24406         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
24407         (udiv<mode>3): Use idiv_ldiv mode attribute.
24408         (div<mode>3): Likewise.
24409         (addg6s): Add new BCD builtin functions.
24410         (cdtbcd): Likewise.
24411         (cbcdtd): Likewise.
24412         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
24413         (div_extend): Likewise.
24414         (div<div_extend>_<mode>"): Likewise.
24415         (FP128_64): Add support for new builtin functions to pack/unpack
24416         128-bit types.
24417         (unpack<mode>): Likewise.
24418         (unpacktf_0): Likewise.
24419         (unpacktf_1): Likewise.
24420         (unpack<mode>_dm): Likewise.
24421         (unpack<mode>_nodm): Likewise.
24422         (pack<mode>): Likewise.
24423         (unpackv1ti): Likewise.
24424         (packv1ti): Likewise.
24426 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
24428         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
24429         is disabled.
24431 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
24433         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
24434         * gimplify.c (omp_is_private): Change last argument's type to int.
24435         Only diagnose lastprivate if the simd argument is 1, only diagnose
24436         linear if the simd argument is 2.
24437         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
24438         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
24439         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
24440         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
24441         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
24442         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24443         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
24444         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
24445         * tree-nested.c (convert_nonlocal_omp_clauses,
24446         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
24448 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
24450         PR target/60822
24451         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
24452         operand 1.
24454 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
24456         * flag-types.h (enum ivar_visibility): Add.
24458 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
24460         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
24461         function * argument.
24463 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
24465         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
24467 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
24468             Tom de Vries  <tom@codesourcery.com>
24470         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
24471         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
24472         reg-note.
24473         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
24474         * emit-rtl.c (try_split): Same.
24476 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
24477             Tom de Vries  <tom@codesourcery.com>
24479         * common.opt (fuse-caller-save): New option.
24481 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
24483         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
24484         elements for big-endian.
24486 2014-04-24  Richard Biener  <rguenther@suse.de>
24488         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
24489         during TER and instead use the sepops interface for expanding
24490         non-GIMPLE_SINGLE_RHS.
24492 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24494         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
24495         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
24497 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24499         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
24500         assembler 64-bit option.
24501         * configure: Regenerate.
24503 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24505         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
24506         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
24507         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
24508         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
24509         (TARGET_CRYPTO): Take TARGET_SIMD into account.
24511 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24513         * config/aarch64/aarch64-builtins.c
24514         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
24515         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
24516         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
24517         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
24518         builtins.
24519         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
24520         (Vrevsuff): New mode attribute.
24522 2014-04-24  Terry Guo  <terry.guo@arm.com>
24524         * config/arm/arm.h (machine_function): Define variable
24525         after_arm_reorg here.
24526         * config/arm/arm.c (after_arm_reorg): Remove the definition.
24527         (arm_split_constant): Update the way to access variable
24528         after_arm_reorg.
24529         (arm_reorg): Ditto.
24530         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
24532 2014-04-23  Tom de Vries  <tom@codesourcery.com>
24534         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
24536 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
24538         * is-a.h: Update comments to reflect the following changes to the
24539         "pointerness" of the API, making the template parameter match the
24540         return type, allowing use of is-a.h with typedefs of pointers.
24541         (is_a_helper::cast): Return a T rather then a pointer to a T, so
24542         that the return type matches the parameter to the is_a_helper.
24543         (as_a): Likewise.
24544         (dyn_cast): Likewise.
24546         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
24547         pointer from the is-a.h API.
24549         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
24550         (is_a_helper <cgraph_node *>::test): ...this, matching change to
24551         is-a.h API.
24552         (is_a_helper <varpool_node>::test): Likewise, convert to...
24553         (is_a_helper <varpool_node *>::test): ...this.
24555         (varpool_first_variable): Update for removal of implicit pointer
24556         from the is-a.h API.
24557         (varpool_next_variable): Likewise.
24558         (varpool_first_static_initializer): Likewise.
24559         (varpool_next_static_initializer): Likewise.
24560         (varpool_first_defined_variable): Likewise.
24561         (varpool_next_defined_variable): Likewise.
24562         (cgraph_first_defined_function): Likewise.
24563         (cgraph_next_defined_function): Likewise.
24564         (cgraph_first_function): Likewise.
24565         (cgraph_next_function): Likewise.
24566         (cgraph_first_function_with_gimple_body): Likewise.
24567         (cgraph_next_function_with_gimple_body): Likewise.
24568         (cgraph_alias_target): Likewise.
24569         (varpool_alias_target): Likewise.
24570         (cgraph_function_or_thunk_node): Likewise.
24571         (varpool_variable_node): Likewise.
24572         (symtab_real_symbol_p): Likewise.
24573         * cgraphunit.c (referred_to_p): Likewise.
24574         (analyze_functions): Likewise.
24575         (handle_alias_pairs): Likewise.
24576         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
24577         * gimple-ssa.h (gimple_vuse_op): Likewise.
24578         (gimple_vdef_op): Likewise.
24579         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
24580         * gimple.c (gimple_build_asm_1): Likewise.
24581         (gimple_build_try): Likewise.
24582         (gimple_build_resx): Likewise.
24583         (gimple_build_eh_dispatch): Likewise.
24584         (gimple_build_omp_for): Likewise.
24585         (gimple_omp_for_set_clauses): Likewise.
24587         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
24588         (is_a_helper <gimple_statement_asm *>::test): ...this.
24589         (is_a_helper <gimple_statement_bind>::test): Convert to...
24590         (is_a_helper <gimple_statement_bind *>::test): ...this.
24591         (is_a_helper <gimple_statement_call>::test): Convert to...
24592         (is_a_helper <gimple_statement_call *>::test): ...this.
24593         (is_a_helper <gimple_statement_catch>::test): Convert to...
24594         (is_a_helper <gimple_statement_catch *>::test): ...this.
24595         (is_a_helper <gimple_statement_resx>::test): Convert to...
24596         (is_a_helper <gimple_statement_resx *>::test): ...this.
24597         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
24598         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
24599         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
24600         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
24601         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
24602         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
24603         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
24604         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
24605         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
24606         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
24607         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
24608         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
24609         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
24610         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
24611         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
24612         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
24613         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
24614         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
24615         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
24616         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
24617         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
24618         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
24619         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
24620         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
24621         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
24622         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
24623         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
24624         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
24625         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
24626         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
24627         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
24628         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
24629         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
24630         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
24631         (is_a_helper <gimple_statement_phi>::test): Convert to...
24632         (is_a_helper <gimple_statement_phi *>::test): ...this.
24633         (is_a_helper <gimple_statement_transaction>::test): Convert to...
24634         (is_a_helper <gimple_statement_transaction *>::test): ...this.
24635         (is_a_helper <gimple_statement_try>::test): Convert to...
24636         (is_a_helper <gimple_statement_try *>::test): ...this.
24637         (is_a_helper <gimple_statement_wce>::test): Convert to...
24638         (is_a_helper <gimple_statement_wce *>::test): ...this.
24639         (is_a_helper <const gimple_statement_asm>::test): Convert to...
24640         (is_a_helper <const gimple_statement_asm *>::test): ...this.
24641         (is_a_helper <const gimple_statement_bind>::test): Convert to...
24642         (is_a_helper <const gimple_statement_bind *>::test): ...this.
24643         (is_a_helper <const gimple_statement_call>::test): Convert to...
24644         (is_a_helper <const gimple_statement_call *>::test): ...this.
24645         (is_a_helper <const gimple_statement_catch>::test): Convert to...
24646         (is_a_helper <const gimple_statement_catch *>::test): ...this.
24647         (is_a_helper <const gimple_statement_resx>::test): Convert to...
24648         (is_a_helper <const gimple_statement_resx *>::test): ...this.
24649         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
24650         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
24651         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
24652         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
24653         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
24654         Convert to...
24655         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
24656         ...this.
24657         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
24658         Convert to...
24659         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
24660         ...this.
24661         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
24662         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
24663         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
24664         to...
24665         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
24666         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
24667         to...
24668         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
24669         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
24670         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
24671         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
24672         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
24673         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
24674         to...
24675         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
24676         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
24677         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
24678         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
24679         to...
24680         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
24681         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
24682         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
24683         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
24684         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
24685         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
24686         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
24687         (is_a_helper <const gimple_statement_phi>::test): Convert to...
24688         (is_a_helper <const gimple_statement_phi *>::test): ...this.
24689         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
24690         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
24691         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
24692         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
24693         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
24694         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
24695         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
24696         to...
24697         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
24698         ...this.
24699         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
24700         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
24702         (gimple_use_ops): Update for removal of implicit pointer from the
24703         is-a.h API.
24704         (gimple_set_use_ops): Likewise.
24705         (gimple_vuse): Likewise.
24706         (gimple_vdef): Likewise.
24707         (gimple_vuse_ptr): Likewise.
24708         (gimple_vdef_ptr): Likewise.
24709         (gimple_set_vuse): Likewise.
24710         (gimple_set_vdef): Likewise.
24711         (gimple_omp_return_set_lhs): Likewise.
24712         (gimple_omp_return_lhs): Likewise.
24713         (gimple_omp_return_lhs_ptr): Likewise.
24714         (gimple_call_fntype): Likewise.
24715         (gimple_call_set_fntype): Likewise.
24716         (gimple_call_set_internal_fn): Likewise.
24717         (gimple_call_use_set): Likewise.
24718         (gimple_call_clobber_set): Likewise.
24719         (gimple_bind_vars): Likewise.
24720         (gimple_bind_set_vars): Likewise.
24721         (gimple_bind_body_ptr): Likewise.
24722         (gimple_bind_set_body): Likewise.
24723         (gimple_bind_add_stmt): Likewise.
24724         (gimple_bind_block): Likewise.
24725         (gimple_bind_set_block): Likewise.
24726         (gimple_asm_ninputs): Likewise.
24727         (gimple_asm_noutputs): Likewise.
24728         (gimple_asm_nclobbers): Likewise.
24729         (gimple_asm_nlabels): Likewise.
24730         (gimple_asm_input_op): Likewise.
24731         (gimple_asm_input_op_ptr): Likewise.
24732         (gimple_asm_output_op): Likewise.
24733         (gimple_asm_output_op_ptr): Likewise.
24734         (gimple_asm_set_output_op): Likewise.
24735         (gimple_asm_clobber_op): Likewise.
24736         (gimple_asm_set_clobber_op): Likewise.
24737         (gimple_asm_label_op): Likewise.
24738         (gimple_asm_set_label_op): Likewise.
24739         (gimple_asm_string): Likewise.
24740         (gimple_catch_types): Likewise.
24741         (gimple_catch_types_ptr): Likewise.
24742         (gimple_catch_handler_ptr): Likewise.
24743         (gimple_catch_set_types): Likewise.
24744         (gimple_catch_set_handler): Likewise.
24745         (gimple_eh_filter_types): Likewise.
24746         (gimple_eh_filter_types_ptr): Likewise.
24747         (gimple_eh_filter_failure_ptr): Likewise.
24748         (gimple_eh_filter_set_types): Likewise.
24749         (gimple_eh_filter_set_failure): Likewise.
24750         (gimple_eh_must_not_throw_fndecl): Likewise.
24751         (gimple_eh_must_not_throw_set_fndecl): Likewise.
24752         (gimple_eh_else_n_body_ptr): Likewise.
24753         (gimple_eh_else_e_body_ptr): Likewise.
24754         (gimple_eh_else_set_n_body): Likewise.
24755         (gimple_eh_else_set_e_body): Likewise.
24756         (gimple_try_eval_ptr): Likewise.
24757         (gimple_try_cleanup_ptr): Likewise.
24758         (gimple_try_set_eval): Likewise.
24759         (gimple_try_set_cleanup): Likewise.
24760         (gimple_wce_cleanup_ptr): Likewise.
24761         (gimple_wce_set_cleanup): Likewise.
24762         (gimple_phi_capacity): Likewise.
24763         (gimple_phi_num_args): Likewise.
24764         (gimple_phi_result): Likewise.
24765         (gimple_phi_result_ptr): Likewise.
24766         (gimple_phi_set_result): Likewise.
24767         (gimple_phi_arg): Likewise.
24768         (gimple_phi_set_arg): Likewise.
24769         (gimple_resx_region): Likewise.
24770         (gimple_resx_set_region): Likewise.
24771         (gimple_eh_dispatch_region): Likewise.
24772         (gimple_eh_dispatch_set_region): Likewise.
24773         (gimple_omp_critical_name): Likewise.
24774         (gimple_omp_critical_name_ptr): Likewise.
24775         (gimple_omp_critical_set_name): Likewise.
24776         (gimple_omp_for_clauses): Likewise.
24777         (gimple_omp_for_clauses_ptr): Likewise.
24778         (gimple_omp_for_set_clauses): Likewise.
24779         (gimple_omp_for_collapse): Likewise.
24780         (gimple_omp_for_index): Likewise.
24781         (gimple_omp_for_index_ptr): Likewise.
24782         (gimple_omp_for_set_index): Likewise.
24783         (gimple_omp_for_initial): Likewise.
24784         (gimple_omp_for_initial_ptr): Likewise.
24785         (gimple_omp_for_set_initial): Likewise.
24786         (gimple_omp_for_final): Likewise.
24787         (gimple_omp_for_final_ptr): Likewise.
24788         (gimple_omp_for_set_final): Likewise.
24789         (gimple_omp_for_incr): Likewise.
24790         (gimple_omp_for_incr_ptr): Likewise.
24791         (gimple_omp_for_set_incr): Likewise.
24792         (gimple_omp_for_pre_body_ptr): Likewise.
24793         (gimple_omp_for_set_pre_body): Likewise.
24794         (gimple_omp_parallel_clauses): Likewise.
24795         (gimple_omp_parallel_clauses_ptr): Likewise.
24796         (gimple_omp_parallel_set_clauses): Likewise.
24797         (gimple_omp_parallel_child_fn): Likewise.
24798         (gimple_omp_parallel_child_fn_ptr): Likewise.
24799         (gimple_omp_parallel_set_child_fn): Likewise.
24800         (gimple_omp_parallel_data_arg): Likewise.
24801         (gimple_omp_parallel_data_arg_ptr): Likewise.
24802         (gimple_omp_parallel_set_data_arg): Likewise.
24803         (gimple_omp_task_clauses): Likewise.
24804         (gimple_omp_task_clauses_ptr): Likewise.
24805         (gimple_omp_task_set_clauses): Likewise.
24806         (gimple_omp_task_child_fn): Likewise.
24807         (gimple_omp_task_child_fn_ptr): Likewise.
24808         (gimple_omp_task_set_child_fn): Likewise.
24809         (gimple_omp_task_data_arg): Likewise.
24810         (gimple_omp_task_data_arg_ptr): Likewise.
24811         (gimple_omp_task_set_data_arg): Likewise.
24812         (gimple_omp_taskreg_clauses): Likewise.
24813         (gimple_omp_taskreg_clauses_ptr): Likewise.
24814         (gimple_omp_taskreg_set_clauses): Likewise.
24815         (gimple_omp_taskreg_child_fn): Likewise.
24816         (gimple_omp_taskreg_child_fn_ptr): Likewise.
24817         (gimple_omp_taskreg_set_child_fn): Likewise.
24818         (gimple_omp_taskreg_data_arg): Likewise.
24819         (gimple_omp_taskreg_data_arg_ptr): Likewise.
24820         (gimple_omp_taskreg_set_data_arg): Likewise.
24821         (gimple_omp_task_copy_fn): Likewise.
24822         (gimple_omp_task_copy_fn_ptr): Likewise.
24823         (gimple_omp_task_set_copy_fn): Likewise.
24824         (gimple_omp_task_arg_size): Likewise.
24825         (gimple_omp_task_arg_size_ptr): Likewise.
24826         (gimple_omp_task_set_arg_size): Likewise.
24827         (gimple_omp_task_arg_align): Likewise.
24828         (gimple_omp_task_arg_align_ptr): Likewise.
24829         (gimple_omp_task_set_arg_align): Likewise.
24830         (gimple_omp_single_clauses): Likewise.
24831         (gimple_omp_single_clauses_ptr): Likewise.
24832         (gimple_omp_single_set_clauses): Likewise.
24833         (gimple_omp_target_clauses): Likewise.
24834         (gimple_omp_target_clauses_ptr): Likewise.
24835         (gimple_omp_target_set_clauses): Likewise.
24836         (gimple_omp_target_child_fn): Likewise.
24837         (gimple_omp_target_child_fn_ptr): Likewise.
24838         (gimple_omp_target_set_child_fn): Likewise.
24839         (gimple_omp_target_data_arg): Likewise.
24840         (gimple_omp_target_data_arg_ptr): Likewise.
24841         (gimple_omp_target_set_data_arg): Likewise.
24842         (gimple_omp_teams_clauses): Likewise.
24843         (gimple_omp_teams_clauses_ptr): Likewise.
24844         (gimple_omp_teams_set_clauses): Likewise.
24845         (gimple_omp_sections_clauses): Likewise.
24846         (gimple_omp_sections_clauses_ptr): Likewise.
24847         (gimple_omp_sections_set_clauses): Likewise.
24848         (gimple_omp_sections_control): Likewise.
24849         (gimple_omp_sections_control_ptr): Likewise.
24850         (gimple_omp_sections_set_control): Likewise.
24851         (gimple_omp_for_set_cond): Likewise.
24852         (gimple_omp_for_cond): Likewise.
24853         (gimple_omp_atomic_store_set_val): Likewise.
24854         (gimple_omp_atomic_store_val): Likewise.
24855         (gimple_omp_atomic_store_val_ptr): Likewise.
24856         (gimple_omp_atomic_load_set_lhs): Likewise.
24857         (gimple_omp_atomic_load_lhs): Likewise.
24858         (gimple_omp_atomic_load_lhs_ptr): Likewise.
24859         (gimple_omp_atomic_load_set_rhs): Likewise.
24860         (gimple_omp_atomic_load_rhs): Likewise.
24861         (gimple_omp_atomic_load_rhs_ptr): Likewise.
24862         (gimple_omp_continue_control_def): Likewise.
24863         (gimple_omp_continue_control_def_ptr): Likewise.
24864         (gimple_omp_continue_set_control_def): Likewise.
24865         (gimple_omp_continue_control_use): Likewise.
24866         (gimple_omp_continue_control_use_ptr): Likewise.
24867         (gimple_omp_continue_set_control_use): Likewise.
24868         (gimple_transaction_body_ptr): Likewise.
24869         (gimple_transaction_label): Likewise.
24870         (gimple_transaction_label_ptr): Likewise.
24871         (gimple_transaction_set_body): Likewise.
24872         (gimple_transaction_set_label): Likewise.
24874         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
24875         * ipa-inline-analysis.c (inline_write_summary): Likewise.
24876         * ipa-ref.c (ipa_record_reference): Likewise.
24877         * ipa-reference.c (analyze_function): Likewise.
24878         (ipa_reference_write_optimization_summary): Likewise.
24879         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
24880         (address_taken_from_non_vtable_p): Likewise.
24881         (comdat_can_be_unshared_p_1): Likewise.
24882         * lto-cgraph.c (lto_output_ref): Likewise.
24883         (add_references): Likewise.
24884         (compute_ltrans_boundary): Likewise.
24885         (output_symtab): Likewise.
24886         (input_ref): Likewise.
24887         (input_cgraph_1): Likewise.
24888         (output_cgraph_opt_summary): Likewise.
24889         * lto-streamer-out.c (lto_output): Likewise.
24890         (output_symbol_p): Likewise.
24891         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
24892         (lsei_start_function_in_partition): Likewise.
24893         (lsei_next_variable_in_partition): Likewise.
24894         (lsei_start_variable_in_partition): Likewise.
24895         * symtab.c (insert_to_assembler_name_hash): Likewise.
24896         (unlink_from_assembler_name_hash): Likewise.
24897         (symtab_unregister_node): Likewise.
24898         (symtab_remove_node): Likewise.
24899         (dump_symtab_node): Likewise.
24900         (verify_symtab_base): Likewise.
24901         (verify_symtab_node): Likewise.
24902         (symtab_make_decl_local): Likewise.
24903         (symtab_alias_ultimate_target): Likewise.
24904         (symtab_resolve_alias): Likewise.
24905         (symtab_get_symbol_partitioning_class): Likewise.
24906         * tree-phinodes.c (allocate_phi_node): Likewise.
24907         (reserve_phi_args_for_new_edge): Likewise.
24908         (remove_phi_args): Likewise.
24909         * varpool.c (varpool_node_for_asm): Likewise.
24910         (varpool_remove_unreferenced_decls): Likewise.
24912 2014-04-23  Jeff Law  <law@redhat.com>
24914         PR tree-optimization/60902
24915         * tree-ssa-threadedge.c
24916         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
24917         invalidate outputs from statements that do not produce useful
24918         outputs for threading.
24920 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
24922         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
24923         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
24924         machine descriptions for Stack Smashing Protector.
24926 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
24928         * aarch64.md (<optab>_rol<mode>3): New pattern.
24929         (<optab>_rolsi3_uxtw): Likewise.
24930         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
24932 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
24934         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
24935         (arm_cortex_a12_tune): Likewise.
24937 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24939         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
24941 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24943         * config/arm/arm.md (arm_rev16si2): New pattern.
24944         (arm_rev16si2_alt): Likewise.
24945         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
24947 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24949         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
24950         (rev16<mode>2_alt): Likewise.
24951         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
24952         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
24953         (aarch_rev16_shleft_mask_imm_p): Likewise.
24954         (aarch_rev16_p_1): Likewise.
24955         (aarch_rev16_p): Likewise.
24956         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
24957         (aarch_rev16_shright_mask_imm_p): Likewise.
24958         (aarch_rev16_shleft_mask_imm_p): Likewise.
24960 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24962         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
24963         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
24964         rev cost.
24965         (cortex_a53_extra_costs): Likewise.
24966         (cortex_a57_extra_costs): Likewise.
24967         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
24968         (cortexa7_extra_costs): Likewise.
24969         (cortexa8_extra_costs): Likewise.
24970         (cortexa12_extra_costs): Likewise.
24971         (cortexa15_extra_costs): Likewise.
24972         (v7m_extra_costs): Likewise.
24973         (arm_new_rtx_costs): Handle BSWAP.
24975 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24977         * config/arm/arm.c (cortexa8_extra_costs): New table.
24978         (arm_cortex_a8_tune): New tuning struct.
24979         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
24981 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24983         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
24985 2014-04-23  Richard Biener  <rguenther@suse.de>
24987         * Makefile.in (OBJS): Remove loop-unswitch.o.
24988         * tree-pass.h (make_pass_rtl_unswitch): Remove.
24989         * passes.def (pass_rtl_unswitch): Likewise.
24990         * loop-init.c (gate_rtl_unswitch): Likewise.
24991         (rtl_unswitch): Likewise.
24992         (pass_data_rtl_unswitch): Likewise.
24993         (pass_rtl_unswitch): Likewise.
24994         (make_pass_rtl_unswitch): Likewise.
24995         * rtl.h (reversed_condition): Likewise.
24996         (compare_and_jump_seq): Likewise.
24997         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
24998         and make static.
24999         * loop-unroll.c (compare_and_jump_seq): Likewise.
25001 2014-04-23  Richard Biener  <rguenther@suse.de>
25003         PR tree-optimization/60903
25004         * tree-ssa-loop-im.c (analyze_memory_references): Remove
25005         commented code block.
25006         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
25007         loop flags to newly created BBs and edges.
25009 2014-04-23  Nick Clifton  <nickc@redhat.com>
25011         * config/msp430/msp430.c (msp430_handle_option): Move function
25012         to msp430-common.c
25013         (msp430_option_override): Simplify mcu and mcpu option handling.
25014         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
25015         support for -mhwmult command line option.
25016         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
25017         -mhwmult command line option.
25018         (msp430_hwmult_enabled): Delete.
25019         (msp43o_output_labelref): Add support for -mhwmult command line option.
25020         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
25021         (umulsidi3): Likewise.
25022         * config/msp430/msp430.opt (mmcu): Add Report attribute.
25023         (mcpu, mlarge, msmall): Likewise.
25024         (mhwmult): New option.
25025         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
25026         prototype.
25027         (msp430_is_f5_mcu): Remove prototype.
25028         (msp430_use_f5_series_hwmult): Add prototype.
25029         * config/msp430/msp430-opts.h: New file.
25030         * common/config/msp430: New directory.
25031         * common/config/msp430/msp430-common.c: New file.
25032         * config.gcc (msp430): Remove target_has_targetm_common.
25033         * doc/invoke.texi: Document -mhwmult command line option.
25035 2014-04-23  Nick Clifton  <nickc@redhat.com>
25037         * config/i386/cygwin.h (ENDFILE_SPEC): Include
25038         default-manifest.o if it can be found in the search path.
25039         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
25041 2014-04-23  Terry Guo  <terry.guo@arm.com>
25043         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
25045 2014-04-23  Richard Biener  <rguenther@suse.de>
25047         PR middle-end/60895
25048         * tree-inline.c (declare_return_variable): Use mark_addressable.
25050 2014-04-23  Richard Biener  <rguenther@suse.de>
25052         PR middle-end/60891
25053         * loop-init.c (loop_optimizer_init): Make sure to apply
25054         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
25056 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
25058         PR sanitizer/60275
25059         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
25060         New options.
25061         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
25062         if flag_sanitize_undefined_trap_on_error.
25063         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
25064         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
25065         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
25066         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
25067         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
25068         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
25069         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
25070         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
25071         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
25072         * ubsan.c (ubsan_instrument_unreachable): Return
25073         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
25074         (ubsan_expand_null_ifn): Emit __builtin_trap ()
25075         if flag_sanitize_undefined_trap_on_error and
25076         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
25077         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
25078         instrument_bool_enum_load): Emit __builtin_trap () if
25079         flag_sanitize_undefined_trap_on_error and
25080         __builtin_handle_*_abort () if !flag_sanitize_recover.
25081         * doc/invoke.texi (-fsanitize-recover,
25082         -fsanitize-undefined-trap-on-error): Document.
25084 2014-04-22  Christian Bruel  <christian.bruel@st.com>
25086         * config/sh/sh.md (mov<mode>): Replace movQIHI.
25087          Force immediates to SImode.
25089 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
25091         * config/nios2/nios2.md (UNSPEC_ROUND): New.
25092         (lroundsfsi2): New.
25093         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
25094         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
25095         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
25096         (nios2_fpu_insn): Add entry for round.
25097         (N2FPU_NO_ERRNO_P): Define.
25098         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
25099         flag_errno_math.
25100         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
25102 2014-04-22  Richard Henderson  <rth@redhat.com>
25104         * config/aarch64/aarch64 (addti3, subti3): New expanders.
25105         (add<GPI>3_compare0): Remove leading * from name.
25106         (add<GPI>3_carryin): Likewise.
25107         (sub<GPI>3_compare0): Likewise.
25108         (sub<GPI>3_carryin): Likewise.
25109         (<su_optab>mulditi3): New expander.
25110         (multi3): New expander.
25111         (madd<GPI>): Remove leading * from name.
25113 2014-04-22  Martin Jambor  <mjambor@suse.cz>
25115         * cgraphclones.c (cgraph_function_versioning): Copy
25116         ipa_transforms_to_apply instead of asserting it is empty.
25118 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
25120         PR target/60868
25121         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
25122         on count_exp to get mode.
25124 2014-04-22  Andrew Pinski  <apinski@cavium.com>
25126         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25127         Handle TLS for ILP32.
25128         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
25129         (tlsie_small_<mode>): this and handle PTR.
25130         (tlsie_small_sidi): New pattern.
25131         (tlsle_small): Change to an expand to handle ILP32.
25132         (tlsle_small_<mode>): New pattern.
25133         (tlsdesc_small): Rename to ...
25134         (tlsdesc_small_<mode>): this and handle PTR.
25136 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25138         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
25140 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25142         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25143         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
25144         (aarch64_types_signed_poly_qualifiers): Likewise.
25145         (aarch64_types_unsigned_signed_qualifiers): Likewise.
25146         (aarch64_types_poly_signed_qualifiers): Likewise.
25147         (TYPES_REINTERP_SS): Type macro added.
25148         (TYPES_REINTERP_SU): Likewise.
25149         (TYPES_REINTERP_SP): Likewise.
25150         (TYPES_REINTERP_US): Likewise.
25151         (TYPES_REINTERP_PS): Likewise.
25152         (aarch64_fold_builtin): New expression folding added.
25153         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
25154         Declarations removed.
25155         (REINTERP_SS): Declarations added.
25156         (REINTERP_US): Likewise.
25157         (REINTERP_PS): Likewise.
25158         (REINTERP_SU): Likewise.
25159         (REINTERP_SP): Likewise.
25160         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
25161         (vreinterpretq_p8_f64): Likewise.
25162         (vreinterpret_p16_f64): Likewise.
25163         (vreinterpretq_p16_f64): Likewise.
25164         (vreinterpret_f32_f64): Likewise.
25165         (vreinterpretq_f32_f64): Likewise.
25166         (vreinterpret_f64_f32): Likewise.
25167         (vreinterpret_f64_p8): Likewise.
25168         (vreinterpret_f64_p16): Likewise.
25169         (vreinterpret_f64_s8): Likewise.
25170         (vreinterpret_f64_s16): Likewise.
25171         (vreinterpret_f64_s32): Likewise.
25172         (vreinterpret_f64_s64): Likewise.
25173         (vreinterpret_f64_u8): Likewise.
25174         (vreinterpret_f64_u16): Likewise.
25175         (vreinterpret_f64_u32): Likewise.
25176         (vreinterpret_f64_u64): Likewise.
25177         (vreinterpretq_f64_f32): Likewise.
25178         (vreinterpretq_f64_p8): Likewise.
25179         (vreinterpretq_f64_p16): Likewise.
25180         (vreinterpretq_f64_s8): Likewise.
25181         (vreinterpretq_f64_s16): Likewise.
25182         (vreinterpretq_f64_s32): Likewise.
25183         (vreinterpretq_f64_s64): Likewise.
25184         (vreinterpretq_f64_u8): Likewise.
25185         (vreinterpretq_f64_u16): Likewise.
25186         (vreinterpretq_f64_u32): Likewise.
25187         (vreinterpretq_f64_u64): Likewise.
25188         (vreinterpret_s64_f64): Likewise.
25189         (vreinterpretq_s64_f64): Likewise.
25190         (vreinterpret_u64_f64): Likewise.
25191         (vreinterpretq_u64_f64): Likewise.
25192         (vreinterpret_s8_f64): Likewise.
25193         (vreinterpretq_s8_f64): Likewise.
25194         (vreinterpret_s16_f64): Likewise.
25195         (vreinterpretq_s16_f64): Likewise.
25196         (vreinterpret_s32_f64): Likewise.
25197         (vreinterpretq_s32_f64): Likewise.
25198         (vreinterpret_u8_f64): Likewise.
25199         (vreinterpretq_u8_f64): Likewise.
25200         (vreinterpret_u16_f64): Likewise.
25201         (vreinterpretq_u16_f64): Likewise.
25202         (vreinterpret_u32_f64): Likewise.
25203         (vreinterpretq_u32_f64): Likewise.
25205 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25207         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
25208         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
25209         (vreinterpret_p8_s8): Likewise.
25210         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
25211         (vreinterpret_p8_s16): Likewise.
25212         (vreinterpret_p8_s32): Likewise.
25213         (vreinterpret_p8_s64): Likewise.
25214         (vreinterpret_p8_f32): Likewise.
25215         (vreinterpret_p8_u8): Likewise.
25216         (vreinterpret_p8_u16): Likewise.
25217         (vreinterpret_p8_u32): Likewise.
25218         (vreinterpret_p8_u64): Likewise.
25219         (vreinterpret_p8_p16): Likewise.
25220         (vreinterpretq_p8_s8): Likewise.
25221         (vreinterpretq_p8_s16): Likewise.
25222         (vreinterpretq_p8_s32): Likewise.
25223         (vreinterpretq_p8_s64): Likewise.
25224         (vreinterpretq_p8_f32): Likewise.
25225         (vreinterpretq_p8_u8): Likewise.
25226         (vreinterpretq_p8_u16): Likewise.
25227         (vreinterpretq_p8_u32): Likewise.
25228         (vreinterpretq_p8_u64): Likewise.
25229         (vreinterpretq_p8_p16): Likewise.
25230         (vreinterpret_p16_s8): Likewise.
25231         (vreinterpret_p16_s16): Likewise.
25232         (vreinterpret_p16_s32): Likewise.
25233         (vreinterpret_p16_s64): Likewise.
25234         (vreinterpret_p16_f32): Likewise.
25235         (vreinterpret_p16_u8): Likewise.
25236         (vreinterpret_p16_u16): Likewise.
25237         (vreinterpret_p16_u32): Likewise.
25238         (vreinterpret_p16_u64): Likewise.
25239         (vreinterpret_p16_p8): Likewise.
25240         (vreinterpretq_p16_s8): Likewise.
25241         (vreinterpretq_p16_s16): Likewise.
25242         (vreinterpretq_p16_s32): Likewise.
25243         (vreinterpretq_p16_s64): Likewise.
25244         (vreinterpretq_p16_f32): Likewise.
25245         (vreinterpretq_p16_u8): Likewise.
25246         (vreinterpretq_p16_u16): Likewise.
25247         (vreinterpretq_p16_u32): Likewise.
25248         (vreinterpretq_p16_u64): Likewise.
25249         (vreinterpretq_p16_p8): Likewise.
25250         (vreinterpret_f32_s8): Likewise.
25251         (vreinterpret_f32_s16): Likewise.
25252         (vreinterpret_f32_s32): Likewise.
25253         (vreinterpret_f32_s64): Likewise.
25254         (vreinterpret_f32_u8): Likewise.
25255         (vreinterpret_f32_u16): Likewise.
25256         (vreinterpret_f32_u32): Likewise.
25257         (vreinterpret_f32_u64): Likewise.
25258         (vreinterpret_f32_p8): Likewise.
25259         (vreinterpret_f32_p16): Likewise.
25260         (vreinterpretq_f32_s8): Likewise.
25261         (vreinterpretq_f32_s16): Likewise.
25262         (vreinterpretq_f32_s32): Likewise.
25263         (vreinterpretq_f32_s64): Likewise.
25264         (vreinterpretq_f32_u8): Likewise.
25265         (vreinterpretq_f32_u16): Likewise.
25266         (vreinterpretq_f32_u32): Likewise.
25267         (vreinterpretq_f32_u64): Likewise.
25268         (vreinterpretq_f32_p8): Likewise.
25269         (vreinterpretq_f32_p16): Likewise.
25270         (vreinterpret_s64_s8): Likewise.
25271         (vreinterpret_s64_s16): Likewise.
25272         (vreinterpret_s64_s32): Likewise.
25273         (vreinterpret_s64_f32): Likewise.
25274         (vreinterpret_s64_u8): Likewise.
25275         (vreinterpret_s64_u16): Likewise.
25276         (vreinterpret_s64_u32): Likewise.
25277         (vreinterpret_s64_u64): Likewise.
25278         (vreinterpret_s64_p8): Likewise.
25279         (vreinterpret_s64_p16): Likewise.
25280         (vreinterpretq_s64_s8): Likewise.
25281         (vreinterpretq_s64_s16): Likewise.
25282         (vreinterpretq_s64_s32): Likewise.
25283         (vreinterpretq_s64_f32): Likewise.
25284         (vreinterpretq_s64_u8): Likewise.
25285         (vreinterpretq_s64_u16): Likewise.
25286         (vreinterpretq_s64_u32): Likewise.
25287         (vreinterpretq_s64_u64): Likewise.
25288         (vreinterpretq_s64_p8): Likewise.
25289         (vreinterpretq_s64_p16): Likewise.
25290         (vreinterpret_u64_s8): Likewise.
25291         (vreinterpret_u64_s16): Likewise.
25292         (vreinterpret_u64_s32): Likewise.
25293         (vreinterpret_u64_s64): Likewise.
25294         (vreinterpret_u64_f32): Likewise.
25295         (vreinterpret_u64_u8): Likewise.
25296         (vreinterpret_u64_u16): Likewise.
25297         (vreinterpret_u64_u32): Likewise.
25298         (vreinterpret_u64_p8): Likewise.
25299         (vreinterpret_u64_p16): Likewise.
25300         (vreinterpretq_u64_s8): Likewise.
25301         (vreinterpretq_u64_s16): Likewise.
25302         (vreinterpretq_u64_s32): Likewise.
25303         (vreinterpretq_u64_s64): Likewise.
25304         (vreinterpretq_u64_f32): Likewise.
25305         (vreinterpretq_u64_u8): Likewise.
25306         (vreinterpretq_u64_u16): Likewise.
25307         (vreinterpretq_u64_u32): Likewise.
25308         (vreinterpretq_u64_p8): Likewise.
25309         (vreinterpretq_u64_p16): Likewise.
25310         (vreinterpret_s8_s16): Likewise.
25311         (vreinterpret_s8_s32): Likewise.
25312         (vreinterpret_s8_s64): Likewise.
25313         (vreinterpret_s8_f32): Likewise.
25314         (vreinterpret_s8_u8): Likewise.
25315         (vreinterpret_s8_u16): Likewise.
25316         (vreinterpret_s8_u32): Likewise.
25317         (vreinterpret_s8_u64): Likewise.
25318         (vreinterpret_s8_p8): Likewise.
25319         (vreinterpret_s8_p16): Likewise.
25320         (vreinterpretq_s8_s16): Likewise.
25321         (vreinterpretq_s8_s32): Likewise.
25322         (vreinterpretq_s8_s64): Likewise.
25323         (vreinterpretq_s8_f32): Likewise.
25324         (vreinterpretq_s8_u8): Likewise.
25325         (vreinterpretq_s8_u16): Likewise.
25326         (vreinterpretq_s8_u32): Likewise.
25327         (vreinterpretq_s8_u64): Likewise.
25328         (vreinterpretq_s8_p8): Likewise.
25329         (vreinterpretq_s8_p16): Likewise.
25330         (vreinterpret_s16_s8): Likewise.
25331         (vreinterpret_s16_s32): Likewise.
25332         (vreinterpret_s16_s64): Likewise.
25333         (vreinterpret_s16_f32): Likewise.
25334         (vreinterpret_s16_u8): Likewise.
25335         (vreinterpret_s16_u16): Likewise.
25336         (vreinterpret_s16_u32): Likewise.
25337         (vreinterpret_s16_u64): Likewise.
25338         (vreinterpret_s16_p8): Likewise.
25339         (vreinterpret_s16_p16): Likewise.
25340         (vreinterpretq_s16_s8): Likewise.
25341         (vreinterpretq_s16_s32): Likewise.
25342         (vreinterpretq_s16_s64): Likewise.
25343         (vreinterpretq_s16_f32): Likewise.
25344         (vreinterpretq_s16_u8): Likewise.
25345         (vreinterpretq_s16_u16): Likewise.
25346         (vreinterpretq_s16_u32): Likewise.
25347         (vreinterpretq_s16_u64): Likewise.
25348         (vreinterpretq_s16_p8): Likewise.
25349         (vreinterpretq_s16_p16): Likewise.
25350         (vreinterpret_s32_s8): Likewise.
25351         (vreinterpret_s32_s16): Likewise.
25352         (vreinterpret_s32_s64): Likewise.
25353         (vreinterpret_s32_f32): Likewise.
25354         (vreinterpret_s32_u8): Likewise.
25355         (vreinterpret_s32_u16): Likewise.
25356         (vreinterpret_s32_u32): Likewise.
25357         (vreinterpret_s32_u64): Likewise.
25358         (vreinterpret_s32_p8): Likewise.
25359         (vreinterpret_s32_p16): Likewise.
25360         (vreinterpretq_s32_s8): Likewise.
25361         (vreinterpretq_s32_s16): Likewise.
25362         (vreinterpretq_s32_s64): Likewise.
25363         (vreinterpretq_s32_f32): Likewise.
25364         (vreinterpretq_s32_u8): Likewise.
25365         (vreinterpretq_s32_u16): Likewise.
25366         (vreinterpretq_s32_u32): Likewise.
25367         (vreinterpretq_s32_u64): Likewise.
25368         (vreinterpretq_s32_p8): Likewise.
25369         (vreinterpretq_s32_p16): Likewise.
25370         (vreinterpret_u8_s8): Likewise.
25371         (vreinterpret_u8_s16): Likewise.
25372         (vreinterpret_u8_s32): Likewise.
25373         (vreinterpret_u8_s64): Likewise.
25374         (vreinterpret_u8_f32): Likewise.
25375         (vreinterpret_u8_u16): Likewise.
25376         (vreinterpret_u8_u32): Likewise.
25377         (vreinterpret_u8_u64): Likewise.
25378         (vreinterpret_u8_p8): Likewise.
25379         (vreinterpret_u8_p16): Likewise.
25380         (vreinterpretq_u8_s8): Likewise.
25381         (vreinterpretq_u8_s16): Likewise.
25382         (vreinterpretq_u8_s32): Likewise.
25383         (vreinterpretq_u8_s64): Likewise.
25384         (vreinterpretq_u8_f32): Likewise.
25385         (vreinterpretq_u8_u16): Likewise.
25386         (vreinterpretq_u8_u32): Likewise.
25387         (vreinterpretq_u8_u64): Likewise.
25388         (vreinterpretq_u8_p8): Likewise.
25389         (vreinterpretq_u8_p16): Likewise.
25390         (vreinterpret_u16_s8): Likewise.
25391         (vreinterpret_u16_s16): Likewise.
25392         (vreinterpret_u16_s32): Likewise.
25393         (vreinterpret_u16_s64): Likewise.
25394         (vreinterpret_u16_f32): Likewise.
25395         (vreinterpret_u16_u8): Likewise.
25396         (vreinterpret_u16_u32): Likewise.
25397         (vreinterpret_u16_u64): Likewise.
25398         (vreinterpret_u16_p8): Likewise.
25399         (vreinterpret_u16_p16): Likewise.
25400         (vreinterpretq_u16_s8): Likewise.
25401         (vreinterpretq_u16_s16): Likewise.
25402         (vreinterpretq_u16_s32): Likewise.
25403         (vreinterpretq_u16_s64): Likewise.
25404         (vreinterpretq_u16_f32): Likewise.
25405         (vreinterpretq_u16_u8): Likewise.
25406         (vreinterpretq_u16_u32): Likewise.
25407         (vreinterpretq_u16_u64): Likewise.
25408         (vreinterpretq_u16_p8): Likewise.
25409         (vreinterpretq_u16_p16): Likewise.
25410         (vreinterpret_u32_s8): Likewise.
25411         (vreinterpret_u32_s16): Likewise.
25412         (vreinterpret_u32_s32): Likewise.
25413         (vreinterpret_u32_s64): Likewise.
25414         (vreinterpret_u32_f32): Likewise.
25415         (vreinterpret_u32_u8): Likewise.
25416         (vreinterpret_u32_u16): Likewise.
25417         (vreinterpret_u32_u64): Likewise.
25418         (vreinterpret_u32_p8): Likewise.
25419         (vreinterpret_u32_p16): Likewise.
25420         (vreinterpretq_u32_s8): Likewise.
25421         (vreinterpretq_u32_s16): Likewise.
25422         (vreinterpretq_u32_s32): Likewise.
25423         (vreinterpretq_u32_s64): Likewise.
25424         (vreinterpretq_u32_f32): Likewise.
25425         (vreinterpretq_u32_u8): Likewise.
25426         (vreinterpretq_u32_u16): Likewise.
25427         (vreinterpretq_u32_u64): Likewise.
25428         (vreinterpretq_u32_p8): Likewise.
25429         (vreinterpretq_u32_p16): Likewise.
25431 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25433         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
25434         Pattern extended.
25435         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
25436         (sqabs): Likewise.
25437         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
25438         (vqnegd_s64): Likewise.
25439         (vqabs_s64): Likewise.
25440         (vqabsd_s64): Likewise.
25442 2014-04-22  Richard Henderson  <rth@redhat.com>
25444         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
25445         computation to the top of the loop.
25447 2014-04-22  Renlin  <renlin.li@arm.com>
25448             Jiong Wang  <jiong.wang@arm.com>
25450         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
25451         * config/aarch64/aarch64.c (aarch64_layout_frame)
25452         (aarch64_initial_elimination_offset): Likewise.
25454 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25456         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
25457         Fix indentation.
25459 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
25461         * machmode.h (bitwise_mode_for_mode): Declare.
25462         * stor-layout.h (bitwise_type_for_mode): Likewise.
25463         * stor-layout.c (bitwise_mode_for_mode): New function.
25464         (bitwise_type_for_mode): Likewise.
25465         * builtins.c (fold_builtin_memory_op): Use it instead of
25466         int_mode_for_mode and build_nonstandard_integer_type.
25468 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25470         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
25471         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
25472         (*-*-solaris2*): Simplify.
25473         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
25474         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
25475         *-*-solaris2.9* handling.
25477         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
25478         as bug.
25479         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
25480         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
25481         handling, simplify.
25482         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
25483         * configure: Regenerate.
25485         * config/i386/sol2-9.h: Remove.
25487         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
25488         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
25489         Remove Solaris 9 references.
25491 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
25493         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
25494         (floatuns<GPI:mode><GPF:mode>2): Remove.
25495         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
25496         and floatuns conversions.
25497         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
25498         and floatuns conversions.
25499         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
25500         (w1,w2): New mode attributes for inequal width conversions.
25502 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
25504         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
25505         the output asm format.
25507 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
25509         * config/aarch64/aarch64-simd.md
25510         (aarch64_cm<optab>di): Always split.
25511         (*aarch64_cm<optab>di): New.
25512         (aarch64_cmtstdi): Always split.
25513         (*aarch64_cmtstdi): New.
25515 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
25517         PR tree-optimization/60823
25518         * omp-low.c (ipa_simd_modify_function_body): Go through
25519         all SSA_NAMEs and for those refering to vector arguments
25520         which are going to be replaced adjust SSA_NAME_VAR and,
25521         if it is a default definition, change it into a non-default
25522         definition assigned at the beginning of function from new_decl.
25523         (ipa_simd_modify_stmt_ops): Rewritten.
25524         * tree-dfa.c (set_ssa_default_def): When removing default def,
25525         check for NULL loc instead of NULL *loc.
25527 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25529         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
25530         restrictions on core registers for DImode values in Thumb2.
25532 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
25534         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
25535         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
25537 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
25539         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
25540         (*iordi_notzesidi_di): Likewise.
25541         (*iordi_notsesidi_di): Likewise.
25543 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
25545         * config/arm/arm-protos.h (tune_params): New struct members.
25546         * config/arm/arm.c: Initialise tune_params per processor.
25547         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
25548         for speed, based on new tune_params.
25550 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
25552         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
25553         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
25554         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
25555         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
25556         * config/aarch64/arm_neon.h (vrnd_f64): Added.
25557         (vrnda_f64): Likewise.
25558         (vrndi_f64): Likewise.
25559         (vrndm_f64): Likewise.
25560         (vrndn_f64): Likewise.
25561         (vrndp_f64): Likewise.
25562         (vrndx_f64): Likewise.
25564 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25566         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
25567         GET_MODE_SIZE argument is enum machine_mode.
25569 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
25571         PR target/60910
25572         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
25573         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
25575 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
25577         PR middle-end/60281
25578         * asan.c (asan_emit_stack_protection): Force the base to align to
25579         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
25580         appropriate bits if STRICT_ALIGNMENT.
25581         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
25582         when asan is on.
25583         (expand_used_vars): Leave a space in the stack frame for alignment
25584         if STRICT_ALIGNMENT.
25586 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
25588         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
25589         than a gimple.
25590         (gimple_store_p): Likewise.
25591         (gimple_assign_load_p): Likewise.
25592         (gimple_assign_cast_p): Likewise.
25593         (gimple_clobber_p): Likewise.
25595         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
25596         rather than a gimple.
25597         (gimple_assign_cast_p): Likewise.
25599 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
25601         PR target/60735
25602         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
25603         If mode is DDmode and TARGET_E500_DOUBLE allow move.
25605         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
25606         more debug information for E500 if -mdebug=reg.
25608 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
25610         PR target/60909
25611         * config/i386/i386.c (ix86_expand_builtin)
25612         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
25613         register for target RTX.
25614         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
25616 2014-04-18  Cong Hou  <congh@google.com>
25618         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
25619         the widen-mult pattern by handling two operands with different sizes,
25620         and operands whose size is smaller than half of the result type.
25622 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
25624         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
25625         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
25626         (do_estimate_edge_time): Compute it.
25627         * ipa-inline.c (want_inline_small_function_p): Bypass
25628         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
25630 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
25632         * ipa-inline.c (spec_rem): New static variable.
25633         (dump_overall_stats): New function.
25634         (dump_inline_stats): New function.
25636 2014-04-18  Richard Henderson  <rth@redhat.com>
25638         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
25639         to GET_MODE_SIZE, not a reg_class_t.
25641 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25643         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
25644         (vsx_xxmrglw_<mode>): Likewise.
25646 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
25648         PR target/60876
25649         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
25650         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
25651         (rs6000_init_hard_regno_mode_ok): Likewise.
25653 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
25655         * ipa-inline.c (inline_small_functions): Account only non-cold
25656         functions.
25657         * doc/invoke.texi (inline-unit-growth): Update documentation.
25659 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
25661         * config/rs6000/rs6000.md (addti3, subti3): New.
25663 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
25665         PR target/60863
25666         * config/i386/i386.c (ix86_expand_clear): Remove outdated
25667         comment.  Check optimize_insn_for_size_p instead of
25668         optimize_insn_for_speed_p.
25670 2014-04-17  Martin Jambor  <mjambor@suse.cz>
25672         * gimple-iterator.c (gsi_start_edge): New function.
25673         * gimple-iterator.h (gsi_start_edge): Declare.
25674         * tree-sra.c (single_non_eh_succ): New function.
25675         (disqualify_ops_if_throwing_stmt): Renamed to
25676         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
25677         having one non-EH successor BB.
25678         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
25679         generate loads into replacements.
25680         (sra_modify_assign): Likewise and and also use the simple path for
25681         such statements.
25682         (sra_modify_function_body): Commit statements on edges.
25684 2014-04-17  Richard Biener  <rguenther@suse.de>
25686         PR middle-end/60849
25687         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
25688         comparison results and add clarifying comment.
25690 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
25692         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
25693         (blank_mode): Initialize it.
25694         (emit_mode_size_inline, emit_mode_nunits_inline,
25695         emit_mode_inner_inline): New functions.
25696         (emit_insn_modes_h): Call them and surround their output with
25697         #if GCC_VERSION >= 4001 ... #endif.
25698         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
25699         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
25700         mode_* arrays if the argument is __builtin_constant_p.
25701         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
25702         is enum machine_mode.
25704 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
25706         * passes.c (opt_pass::execute): Adjust.
25707         (pass_manager::execute_pass_mode_switching): Likewise.
25708         (early_local_passes::execute): Likewise.
25709         (execute_one_pass): Pass cfun to the pass's execute method.
25710         * tree-pass.h (opt_pass::execute): Add function * argument.
25711         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
25712         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
25713         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
25714         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25715         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
25716         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
25717         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
25718         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
25719         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
25720         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
25721         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
25722         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
25723         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
25724         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
25725         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
25726         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
25727         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
25728         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
25729         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
25730         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
25731         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
25732         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
25733         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
25734         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
25735         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
25736         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
25737         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
25738         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
25739         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
25740         Adjust.
25742 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
25744         * passes.c (opt_pass::gate): Take function * argument.
25745         (gate_all_early_local_passes): Merge into
25746         (early_local_passes::gate): this.
25747         (gate_all_early_optimizations): Merge into
25748         (all_early_optimizations::gate): this.
25749         (gate_all_optimizations): Mege into
25750         (all_optimizations::gate): this.
25751         (gate_all_optimizations_g): Merge into
25752         (all_optimizations_g::gate): this.
25753         (gate_rest_of_compilation): Mege into
25754         (rest_of_compilation::gate): this.
25755         (gate_postreload): Merge into
25756         (postreload::gate): this.
25757         (dump_one_pass): Pass cfun to the pass's gate method.
25758         (execute_ipa_summary_passes): Likewise.
25759         (execute_one_pass): Likewise.
25760         (ipa_write_summaries_2): Likewise.
25761         (ipa_write_optimization_summaries_1): Likewise.
25762         (ipa_read_summaries_1): Likewise.
25763         (ipa_read_optimization_summaries_1): Likewise.
25764         (execute_ipa_stmt_fixups): Likewise.
25765         * tree-pass.h (opt_pass::gate): Add function * argument.
25766         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
25767         combine-stack-adj.c, combine.c, compare-elim.c,
25768         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25769         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
25770         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
25771         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
25772         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
25773         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
25774         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
25775         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
25776         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
25777         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
25778         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
25779         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
25780         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
25781         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
25782         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
25783         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
25784         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
25785         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
25786         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
25787         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
25788         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
25789         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
25790         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
25791         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
25792         var-tracking.c, vtable-verify.c, web.c: Adjust.
25794 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
25796         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
25797         * configure: Regenerate.
25799 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
25801         * passes.c (dump_one_pass): don't check pass->has_gate.
25802         (execute_ipa_summary_passes): Likewise.
25803         (execute_one_pass): Likewise.
25804         (ipa_write_summaries_2): Likewise.
25805         (ipa_write_optimization_summaries_1): Likewise.
25806         (ipa_read_optimization_summaries_1): Likewise.
25807         (execute_ipa_stmt_fixups): Likewise.
25808         * tree-pass.h (pass_data::has_gate): Remove.
25809         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
25810         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
25811         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
25812         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
25813         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
25814         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
25815         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
25816         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
25817         gimple-low.c, gimple-ssa-isolate-paths.c,
25818         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
25819         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
25820         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
25821         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
25822         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
25823         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
25824         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
25825         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
25826         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
25827         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
25828         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
25829         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
25830         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
25831         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
25832         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
25833         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
25834         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
25835         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
25836         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
25837         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
25838         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
25839         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
25840         Adjust.
25842 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
25844         * pass_manager.h (pass_manager::register_dump_files_1): Remove
25845         declaration.
25846         * passes.c (pass_manager::register_dump_files_1): Merge into
25847         (pass_manager::register_dump_files): this, and remove its handling of
25848         properties since the pass always has the properties anyway.
25849         (pass_manager::pass_manager): Adjust.
25851 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
25853         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
25854         * passes.c (pass_manager::register_dump_files_1): Remove dead code
25855         dealing with properties.
25856         (pass_manager::register_dump_files): Adjust.
25858 2014-03-20  Mark Wielaard  <mjw@redhat.com>
25860         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
25861         then represent the bound as normal constant value.
25863 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
25865         PR target/60847
25866         Forward port from 4.8 branch
25867         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
25869         * config/i386/bmiintrin.h (_blsi_u32): New.
25870         (_blsi_u64): Ditto.
25871         (_blsr_u32): Ditto.
25872         (_blsr_u64): Ditto.
25873         (_blsmsk_u32): Ditto.
25874         (_blsmsk_u64): Ditto.
25875         (_tzcnt_u32): Ditto.
25876         (_tzcnt_u64): Ditto.
25878 2014-04-17  Kito Cheng  <kito@0xlab.org>
25880         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
25882 2014-04-17  Richard Biener  <rguenther@suse.de>
25884         PR middle-end/60849
25885         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
25886         boolean results for comparisons.
25888 2014-04-17  Richard Biener  <rguenther@suse.de>
25890         PR tree-optimization/60836
25891         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
25892         initial PHI args to be gimple values.
25894 2014-04-17  Richard Biener  <rguenther@suse.de>
25896         PR tree-optimization/60841
25897         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
25898         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
25899         of stmts to SLP build.
25900         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
25901         (vect_analyze_slp): Likewise.
25902         (vect_analyze_slp_instance): Likewise.
25903         (vect_build_slp_tree): Limit overall SLP tree growth.
25904         * tree-vectorizer.h (vect_analyze_data_refs,
25905         vect_analyze_slp): Adjust prototypes.
25907 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
25909         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
25910         Silvermont.
25912 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
25914         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
25915         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
25916         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
25917         for TARGET_SLOW_PSHUFB
25919 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
25921         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
25922         * config/i386/i386.c (intel_cost): Ditto.
25924 2014-04-17  Joey Ye  <joey.ye@arm.com>
25926         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
25928 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
25930         * opts.c (common_handle_option): Disable -fipa-reference coorectly
25931         with -fuse-profile.
25933 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
25935         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
25936         (type_all_derivations_known_p): New predicate.
25937         (type_all_ctors_visible_p): New predicate.
25938         (type_possibly_instantiated_p): New predicate.
25939         (get_odr_type): Compute all_derivations_known.
25940         (dump_odr_type): Dump the flag.
25941         (maybe_record_type): Cleanup.
25942         (record_target_from_binfo): Add bases_to_consider array;
25943         record bases for types w/o instances and skip CXX destructor.
25944         (possible_polymorphic_call_targets_1): Add bases_to_consider
25945         and consider_construction parameters; check if type may have instance.
25946         (get_polymorphic_call_info): Set maybe_in_construction to true
25947         when we know nothing.
25948         (record_targets_from_bases): Skip CXX destructors; they are
25949         never called for types in construction.
25950         (possible_polymorphic_call_targets): Do not record target when
25951         type may not have instance.
25953 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
25955         PR ipa/60854
25956         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
25957         external aliases alive, too.
25959 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
25961         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
25962         definition.
25964 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
25966         * final.c (compute_alignments): Do not apply loop alignment to a block
25967         falling through to the exit.
25969 2014-04-16  Catherine Moore  <clm@codesourcery.com>
25971         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
25972         Adjust constraints for microMIPS store patterns.
25974 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
25976         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
25978 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
25980         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
25981         (append_use): Run at -O0.
25982         (append_vdef): Likewise.
25983         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
25984         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
25986 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
25988         PR tree-optimization/60844
25989         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
25990         (propagate_op_to_single_use, remove_visited_stmt_chain,
25991         linearize_expr, repropagate_negates, reassociate_bb): Use it
25992         instead of gsi_remove.
25994 2014-04-16  Martin Jambor  <mjambor@suse.cz>
25996         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
25997         ipa_transforms_to_apply.
25998         (cgraph_function_versioning): Assert that old_node has empty
25999         ipa_transforms_to_apply.
26000         * trans-mem.c (ipa_tm_create_version): Likewise.
26001         * tree-inline.c (tree_function_versioning): Do not duplicate
26002         ipa_transforms_to_apply.
26004 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26006         PR target/60817
26007         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
26008         x86_64-*-* cases.
26009         Pass necessary as flags on 64-bit Solaris/x86.
26010         Use lowercase relocs for x86_64-*-*.
26011         * configure: Regenerate.
26013 2014-04-15  Jan Hubicka  <jh@suse.cz>
26015         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
26016         (maybe_record_node, likely_target_p): Use it.
26018 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26020         PR target/60839
26021         Revert following patch
26023         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26025         PR target/60735
26026         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26027         software floating point or no floating point registers, do not
26028         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
26029         in GPRs that occurs after we tested for GPRs that would never be
26030         true.
26032         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26033         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26034         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
26035         specifically allow DDmode, since that does not use the SPE SIMD
26036         instructions.
26038 2014-03-21  Mark Wielaard  <mjw@redhat.com>
26040         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
26041         as unsigned or int depending on type and value used.
26043 2014-04-15  Richard Biener  <rguenther@suse.de>
26045         PR rtl-optimization/56965
26046         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
26047         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
26048         ... here.
26049         * alias.c (true_dependence_1): Do not call
26050         nonoverlapping_component_refs_p.
26051         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
26052         nonoverlapping_component_refs_p.
26053         (indirect_refs_may_alias_p): Likewise.
26055 2014-04-15  Teresa Johnson  <tejohnson@google.com>
26057         * cfg.c (dump_bb_info): Fix flags check.
26058         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
26060 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26062         PR rtl-optimization/60663
26063         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
26064         avoid 0 cost.
26066 2014-04-15  Richard Biener  <rguenther@suse.de>
26068         * lto-streamer.h (LTO_major_version): Bump to 4.
26070 2014-04-15  Richard Biener  <rguenther@suse.de>
26072         * common.opt (lto_partition_model): New enum.
26073         (flto-partition=): Merge separate options with a single with argument,
26074         add -flto-partition=one support.
26075         * flag-types.h (enum lto_partition_model): Declare.
26076         * opts.c (finish_options): Remove duplicate -flto-partition=
26077         option check.
26078         * lto-wrapper.c (run_gcc): Adjust.
26080 2014-04-15  Richard Biener  <rguenther@suse.de>
26082         * alias.c (ncr_compar): New function.
26083         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
26085 2014-04-15  Richard Biener  <rguenther@suse.de>
26087         * alias.c (record_component_aliases): Do not walk BINFOs.
26089 2014-04-15  Richard Biener  <rguenther@suse.de>
26091         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26092         Add struct function argument and adjust.
26093         (find_func_aliases_for_call): Likewise.
26094         (find_func_aliases): Likewise.
26095         (find_func_clobbers): Likewise.
26096         (intra_create_variable_infos): Likewise.
26097         (compute_points_to_sets): Likewise.
26098         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
26100 2014-04-15  Richard Biener  <rguenther@suse.de>
26102         * tree.c (iterative_hash_expr): Use enum tree_code_class
26103         to store TREE_CODE_CLASS.
26104         (tree_block): Likewise.
26105         (tree_set_block): Likewise.
26106         * tree.h (fold_build_pointer_plus_loc): Use
26107         convert_to_ptrofftype_loc.
26109 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
26111         PR plugins/59335
26112         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
26113         added in 4.9.
26115 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
26117         * cfgloop.h (struct loop): Move force_vectorize down.
26118         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
26119         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
26120         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
26121         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
26122         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
26123         * tree-core.h (enum annot_expr_kind): Add new kind values.
26124         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
26125         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
26126         kinds.
26127         * tree.def (ANNOTATE_EXPR): Tweak comment.
26129 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26131         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
26132         cxa_pure_virtual).
26134 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
26136         * tree.h (TYPE_IDENTIFIER): Declare.
26137         * tree.c (subrange_type_for_debug_p): Use it.
26138         * godump.c (go_format_type): Likewise.
26139         * dwarf2out.c (is_cxx_auto, modified_type_die,
26140         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
26141         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
26143 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26145         PR lto/60820
26146         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
26148 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
26150         * config/i386/i386.c (examine_argument): Return bool.  Return true if
26151         parameter should be passed in memory.
26152         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
26153         (construct_container): Update calls to examine_argument.
26154         (function_arg_advance_64): Ditto.
26155         (return_in_memory_32): Merge with ix86_return_in_memory.
26156         (return_in_memory_64): Ditto.
26157         (return_in_memory_ms_64): Ditto.
26159 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
26161         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
26162         * coverage.c (coverage_compute_profile_id): Handle externally visible
26163         symbols.
26165 2014-04-14  Martin Jambor  <mjambor@suse.cz>
26167         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
26168         DECL_DISREGARD_INLINE_LIMITS functions.
26170 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
26172         PR target/60827
26173         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
26175 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
26177         PR target/60827
26178         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
26179         optimize_insn_for_speed_p instead of
26180         optimize_function_for_speed_p.
26182 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
26184         * doc/invoke.texi (free): Document AArch64.
26186 2014-04-14  Richard Biener  <rguenther@suse.de>
26188         PR tree-optimization/60042
26189         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
26190         (insert_into_preds_of_block): Do not prevent PHI insertion
26191         for REFERENCE exprs here ...
26192         (eliminate_dom_walker::before_dom_children): ... but prevent
26193         their use here under similar conditions when applied to the
26194         IL after PRE optimizations.
26196 2014-04-14  Richard Biener  <rguenther@suse.de>
26198         * passes.def: Move early points-to after early SRA.
26200 2014-04-14  Richard Biener  <rguenther@suse.de>
26202         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
26203         check for which sign-changes we allow when forwarding
26204         a converted value into a switch.
26206 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
26208         * stor-layout.c (place_field): Finalize non-constant offset for the
26209         field, if any.
26211 2014-04-14  Richard Biener  <rguenther@suse.de>
26213         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
26214         as argument.
26215         (expand_switch_using_bit_tests_p): Likewise.
26216         (process_switch): Compute and pass on speed_p based on the
26217         switch stmt.
26218         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
26219         optimize_bb_for_speed_p.
26221 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
26223         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
26224         * function.h (struct function): Rename has_force_vect_loops into
26225         has_force_vectorize_loops.
26226         * lto-streamer-in.c (input_cfg): Adjust for renaming.
26227         (input_struct_function_base): Likewise.
26228         * lto-streamer-out.c (output_cfg): Likewise.
26229         (output_struct_function_base): Likewise.
26230         * omp-low.c (expand_omp_simd): Likewise.
26231         * tree-cfg.c (move_sese_region_to_fn): Likewise.
26232         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
26233         (version_loop_for_if_conversion): Likewise.
26234         (tree_if_conversion): Likewise.
26235         (main_tree_if_conversion): Likewise.
26236         (gate_tree_if_conversion): Likewise.
26237         * tree-inline.c (copy_loops): Likewise.
26238         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
26239         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
26240         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26241         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
26242         * tree-vectorizer.c (vectorize_loops): Likewise.
26243         * tree-vectorizer.h (unlimited_cost_model): Likewise.
26245 2014-04-14  Richard Biener  <rguenther@suse.de>
26247         PR lto/60720
26248         * lto-streamer-out.c (wrap_refs): New function.
26249         (lto_output): Wrap symbol references in global initializes in
26250         type-preserving MEM_REFs.
26252 2014-04-14  Christian Bruel  <christian.bruel@st.com>
26254         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
26256 2014-04-14  Christian Bruel  <christian.bruel@st.com>
26258         * config/sh/sh.md (setmemqi): New expand pattern.
26259         * config/sh/sh.h (CLEAR_RATIO): Define.
26260         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
26261         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
26263 2014-04-14  Richard Biener  <rguenther@suse.de>
26265         PR middle-end/55022
26266         * fold-const.c (negate_expr_p): Don't negate directional rounding
26267         division.
26268         (fold_negate_expr): Likewise.
26270 2014-04-14  Richard Biener  <rguenther@suse.de>
26272         PR tree-optimization/59817
26273         PR tree-optimization/60453
26274         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
26275         recursion to catch all CHRECs in the scalar evolution and restrict
26276         the predicate for the remains appropriately.
26278 2014-04-12  Catherine Moore  <clm@codesourcery.com>
26280         * config/mips/constraints.md: Add new register constraint "kb".
26281         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
26282         (*movhi_internal): Likewise.
26283         (*movqi_internal): Likewise.
26284         * config/mips/mips.h (M16_STORE_REGS): New register class.
26285         (REG_CLASS_NAMES): Add M16_STORE_REGS.
26286         (REG_CLASS_CONTENTS): Likewise.
26287         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
26289 2014-04-11  Tobias Burnus  <burnus@net-b.de>
26291         PR c/60194
26292         * doc/invoke.texi (-Wformat-signedness): Document it.
26293         (Wformat=2): Mention that this enables -Wformat-signedness.
26295 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26297         * common/config/epiphany/epiphany-common.c
26298         (epiphany_option_optimization_table): Enable section anchors by
26299         default at -O1 or higher.
26300         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
26301         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
26302         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
26303         carries no extra cost.
26304         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
26305         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
26306         * config/epiphany/predicates.md (memclob_operand): New predicate.
26307         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
26308         Use memclob_operand predicate and X constraint for operand 3.
26310 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26312         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
26313         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
26314         its operands.
26316 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26318         PR rtl-optimization/60651
26319         * mode-switching.c (optimize_mode_switching): Make sure to emit
26320         sets of a lower numbered entity before sets of a higher numbered
26321         entity to a mode of the same or lower priority.
26322         When creating a seginfo for a basic block that starts with a code
26323         label, move the insertion point past the code label.
26324         (new_seginfo): Document and enforce requirement that
26325         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
26326         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
26327         * doc/tm.texi: Regenerate.
26329 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
26331         PR target/60811
26332         * config/arc/arc.c (arc_save_restore): Fix assert typo.
26334 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
26336         * BASE-VER: Set to 4.10.0.
26338 2014-04-11  Tobias Burnus  <burnus@net-b.de>
26340         PR other/59055
26341         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
26342         * doc/gcc.texi (Service): Update description in the @menu
26343         * doc/invoke.texi (Option Summary): Remove misplaced and
26344         duplicated @menu.
26346 2014-04-11  Steve Ellcey  <sellcey@mips.com>
26347             Jakub Jelinek  <jakub@redhat.com>
26349         PR middle-end/60556
26350         * expr.c (convert_move): Use emit_store_flag_force instead of
26351         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
26352         argument to it.
26354 2014-04-11  Richard Biener  <rguenther@suse.de>
26356         PR middle-end/60797
26357         * varasm.c (assemble_alias): Avoid endless error reporting
26358         recursion by setting TREE_ASM_WRITTEN.
26360 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26362         * config/s390/s390.md: Add a splitter for NOT rtx.
26364 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
26366         PR rtl-optimization/60663
26367         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
26369 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
26370             Jakub Jelinek  <jakub@redhat.com>
26372         PR lto/60567
26373         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
26374         flag from decl_node to node.
26376 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26378         PR debug/60655
26379         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
26380         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
26381         ameliorating the cases where it can be.
26383 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
26385         Revert
26386         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
26388         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26389         (loadsync_<mode>): Change mode.
26390         (load_quadpti, store_quadpti): New.
26391         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26392         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26393         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
26395 2014-04-09  Cong Hou  <congh@google.com>
26397         PR testsuite/60773
26398         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
26399         documentation.
26401 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26403         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
26404         instead of vnor to exploit possible fusion opportunity in the
26405         future.
26406         (altivec_expand_vec_perm_const_le): Likewise.
26408 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
26410         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
26411         (loadsync_<mode>): Change mode.
26412         (load_quadpti, store_quadpti): New.
26413         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
26414         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
26416 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
26418         PR target/60763
26419         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
26420         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
26421         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
26423 2014-04-08  Richard Biener  <rguenther@suse.de>
26425         PR middle-end/60706
26426         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
26427         a 64bit widest int print double-int similar to on HWI64 hosts.
26429 2014-04-08  Richard Biener  <rguenther@suse.de>
26431         PR tree-optimization/60785
26432         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
26433         default defs properly.
26435 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
26437         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
26438         (Weffc++): Likewise.
26440 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
26442         * ipa-devirt.c (maybe_record_node): When node is not recorded,
26443         set completep to false rather than true.
26445 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
26447         PR target/60504
26448         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
26449         ARM_TARGET2_DWARF_FORMAT.
26451 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
26453         PR target/60609
26454         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
26455         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
26456         ADDR_DIFF_VEC.
26458 2014-04-07  Richard Biener  <rguenther@suse.de>
26460         PR tree-optimization/60766
26461         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
26462         (may_eliminate_iv): Convert cand_value_at result to desired type.
26464 2014-04-07  Jason Merrill  <jason@redhat.com>
26466         PR c++/60731
26467         * common.opt (-fno-gnu-unique): Add.
26468         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
26470 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26472         * haifa-sched.c: Fix outdated function reference and minor
26473         grammar errors in introductory comment.
26475 2014-04-07  Richard Biener  <rguenther@suse.de>
26477         PR middle-end/60750
26478         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
26479         for noreturn calls.
26480         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
26482 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
26484         PR debug/55794
26485         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
26486         size accounting for thunks.
26487         (pa_asm_output_mi_thunk): Use final_start_function() and
26488         final_end_function() to output function start and end directives.
26490 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
26492         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
26493         device specific ISA/ feature information. Remove short_sp and
26494         errata_skip ds.  Add avr_device_specific_features enum to have device
26495         specific info.
26496         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
26497         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
26498         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
26499         updated device specific info.
26500         * config/avr/avr-mcus.def: Merge device specific details to
26501         dev_attribute field.
26502         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
26503         errata_skip.
26504         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
26505         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
26506         assembler if RMW isa supported by current device.
26507         * config/avr/genmultilib.awk: Update as device info structure changed.
26508         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
26510 2014-04-04  Cong Hou  <congh@google.com>
26512         PR tree-optimization/60656
26513         * tree-vect-stmts.c (supportable_widening_operation):
26514         Fix a bug that elements in a vector with vect_used_by_reduction
26515         property are incorrectly reordered when the operation on it is not
26516         consistant with the one in reduction operation.
26518 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
26520         PR rtl-optimization/60155
26521         * gcse.c (record_set_data): New function.
26522         (single_set_gcse): New function.
26523         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
26524         (hoist_code): Likewise.
26525         (get_pressure_class_and_nregs): Likewise.
26527 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
26529         * explow.c (probe_stack_range): Emit a final optimization blockage.
26531 2014-04-04  Anthony Green  <green@moxielogic.com>
26533         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
26534         typos.
26536 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
26538         PR ipa/59626
26539         * lto-cgraph.c (input_overwrite_node): Check that partitioning
26540         flags are set only during streaming.
26541         * ipa.c (process_references, walk_polymorphic_call_targets,
26542         symtab_remove_unreachable_nodes): Drop bodies of always inline
26543         after early inlining.
26544         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
26546 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
26547         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26549         PR debug/60655
26550         * dwarf2out.c (const_ok_for_output_1): Reject expressions
26551         containing a NOT.
26553 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26555         PR bootstrap/60743
26556         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
26557         duration.
26558         (cortex_a53_fdivd): Likewise.
26560 2014-04-04  Martin Jambor  <mjambor@suse.cz>
26562         PR ipa/60640
26563         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
26564         Adjust all callers.
26565         * cgraph.c (clone_of_p): Also return true if thunks match.
26566         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
26567         cgraph_function_or_thunk_node and an obsolete comment.
26568         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
26569         file.
26570         (build_function_decl_skip_args): Likewise.
26571         (set_new_clone_decl_and_node_flags): New function.
26572         (duplicate_thunk_for_node): Likewise.
26573         (redirect_edge_duplicating_thunks): Likewise.
26574         (cgraph_clone_node): New parameter args_to_skip, pass it to
26575         redirect_edge_duplicating_thunks which is called instead of
26576         cgraph_redirect_edge_callee.
26577         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
26578         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
26580 2014-04-04  Jeff Law  <law@redhat.com>
26582         PR target/60657
26583         * config/arm/predicates.md (const_int_I_operand): New predicate.
26584         (const_int_M_operand): Similarly.
26585         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
26586         const_int_operand.
26587         (insv_t2, extv_reg, extzv_t2): Likewise.
26588         (load_multiple_with_writeback): Similarly for const_int_I_operand.
26589         (pop_multiple_with_writeback_and_return): Likewise.
26590         (vfp_pop_multiple_with_writeback): Likewise
26592 2014-04-04  Richard Biener  <rguenther@suse.de>
26594         PR ipa/60746
26595         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
26596         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
26597         non-GIMPLE_LABELs.
26598         * gimplify.h (gimple_add_tmp_var_fn): Declare.
26599         * gimplify.c (gimple_add_tmp_var_fn): New function.
26600         * gimple-expr.h (create_tmp_reg_fn): Declare.
26601         * gimple-expr.c (create_tmp_reg_fn): New function.
26602         * gimple-low.c (record_vars_into): Don't change cfun.
26603         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
26604         code generation without cfun.
26606 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
26608         PR bootstrap/60719
26609         * Makefile.in (install-driver): Fix shell scripting.
26611 2014-04-03  Cong Hou  <congh@google.com>
26613         PR tree-optimization/60505
26614         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
26615         threshold of number of iterations below which no vectorization
26616         will be done.
26617         * tree-vect-loop.c (new_loop_vec_info):
26618         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
26619         * tree-vect-loop.c (vect_analyze_loop_operations):
26620         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
26621         * tree-vect-loop.c (vect_transform_loop):
26622         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
26623         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
26624         of iterations of the loop and see if we should build the epilogue.
26626 2014-04-03  Richard Biener  <rguenther@suse.de>
26628         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
26629         (streamer_tree_cache_create): Adjust.
26630         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
26631         to allow optional nodes array.
26632         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
26633         (streamer_tree_cache_append): Likewise.
26634         (streamer_tree_cache_create): Create nodes array optionally
26635         as specified by parameter.
26636         * lto-streamer-out.c (create_output_block): Avoid maintaining
26637         the node array in the writer cache.
26638         (DFS_write_tree): Remove assertion.
26639         (produce_asm_for_decls): Free the out decl state hash table early.
26640         * lto-streamer-in.c (lto_data_in_create): Adjust for
26641         streamer_tree_cache_create prototype change.
26643 2014-04-03  Richard Biener  <rguenther@suse.de>
26645         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
26646         set TREE_CHAIN to NULL_TREE.
26648 2014-04-03  Richard Biener  <rguenther@suse.de>
26650         PR tree-optimization/60740
26651         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
26652         over all GIMPLE_COND operands.
26654 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
26656         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
26657         (Weffc++): Remove Scott's numbering, merge lists and reference
26658         Wnon-virtual-dtor.
26660 2014-04-03  Nick Clifton  <nickc@redhat.com>
26662         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
26663         properly.
26665 2014-04-03  Martin Jambor  <mjambor@suse.cz>
26667         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
26668         mention gcc_unreachable before failing.
26669         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
26670         removed symbols.
26672 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
26674         PR ipa/60659
26675         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
26676         inconsistent code and instead mark the context inconsistent.
26677         (possible_polymorphic_call_targets): For inconsistent contexts
26678         return empty complete list.
26680 2014-04-02  Anthony Green  <green@moxielogic.com>
26682         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
26683         (extendqisi2, extendhisi2): Define.
26684         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
26685         (WCHAR_TYPE): Change to unsigned int.
26687 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26689         PR tree-optimization/60733
26690         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
26691         insertion point for PHI candidates to be the end of the feeding
26692         block for the PHI argument.
26694 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
26696         PR rtl-optimization/60650
26697         * lra-constraints.c (process_alt_operands): Decrease reject for
26698         earlyclobber matching.
26700 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26702         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
26704 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26706         * config/spu/spu.c (pad_bb): Do not crash when the last
26707         insn is CODE_FOR_blockage.
26709 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26711         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
26712         lies outside the target mode.
26714 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26716         PR target/60735
26717         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
26718         software floating point or no floating point registers, do not
26719         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
26720         in GPRs that occurs after we tested for GPRs that would never be
26721         true.
26723         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
26724         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
26725         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
26726         specifically allow DDmode, since that does not use the SPE SIMD
26727         instructions.
26729 2014-04-02  Richard Biener  <rguenther@suse.de>
26731         PR middle-end/60729
26732         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
26733         MODE_INTs.  Properly use negv_optab.
26734         (expand_abs): Likewise.
26736 2014-04-02  Richard Biener  <rguenther@suse.de>
26738         PR bootstrap/60719
26739         * Makefile.in (install-driver): Guard extra installs with special
26740         names properly.
26742 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
26744         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26745         Document vec_vgbbd.
26747 2014-04-01  Richard Henderson  <rth@redhat.com>
26749         PR target/60704
26750         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
26751         alternative enabled before register allocation.
26753 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
26755         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
26756         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
26757         typo.
26758         (nios2_large_got_address): Remove unneeded 'sym' parameter.
26759         (nios2_got_address): Update nios2_large_got_address call site.
26760         (nios2_delegitimize_address): New function.
26761         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
26762         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
26763         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
26765 2014-04-01  Martin Husemann  <martin@duskware.de>
26767         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
26768         for -mabi=32.
26770 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
26772         PR rtl-optimization/60604
26773         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
26774         check from register_operand.
26775         (register_operand): Redefine in terms of general_operand.
26776         (nonmemory_operand): Use register_operand for the non-constant cases.
26778 2014-04-01  Richard Biener  <rguenther@suse.de>
26780         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
26782 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26784         * doc/invoke.texi (mapp-regs): Clarify.
26786 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
26788         * config/i386/avx512fintrin.h (__v32hi): Define type.
26789         (__v64qi): Likewise.
26790         (_mm512_set1_epi8): Define.
26791         (_mm512_set1_epi16): Define.
26792         (_mm512_set4_epi32): Define.
26793         (_mm512_set4_epi64): Define.
26794         (_mm512_set4_pd): Define.
26795         (_mm512_set4_ps): Define.
26796         (_mm512_setr4_epi64): Define.
26797         (_mm512_setr4_epi32): Define.
26798         (_mm512_setr4_pd): Define.
26799         (_mm512_setr4_ps): Define.
26800         (_mm512_setzero_epi32): Define.
26802 2014-03-31  Martin Jambor  <mjambor@suse.cz>
26804         PR middle-end/60647
26805         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
26806         callsite_arguments_match_p.  Updated all callers.  Also check types of
26807         corresponding formal parameters and actual arguments.
26808         (not_all_callers_have_enough_arguments_p) Renamed to
26809         some_callers_have_mismatched_arguments_p.
26811 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
26813         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
26815 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
26817         PR target/60034
26818         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
26819         section anchor.
26821 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
26823         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
26824         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
26825         Split out
26826         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
26827         Use FMAMODE_NOVF512 mode iterator.
26828         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
26829         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
26830         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
26831         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
26832         Split out
26833         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
26834         Use VF_128_256 mode iterator.
26835         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
26836         Ditto.
26838 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
26840         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
26841         static chain if needed.
26843 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
26845         PR target/60697
26846         * lra-constraints.c (index_part_to_reg): New.
26847         (process_address): Use it.
26849 2014-03-27  Jeff Law  <law@redhat.com>
26850             Jakub Jelinek  <jakub@redhat.com>
26852         PR target/60648
26853         * expr.c (do_tablejump): Use simplify_gen_binary rather than
26854         gen_rtx_{PLUS,MULT} to build up the address expression.
26856         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
26857         creating non-canonical RTL.
26859 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
26861         PR ipa/60243
26862         * ipa-inline.c (want_inline_small_function_p): Short circuit large
26863         functions; reorganize to make cheap checks first.
26864         (inline_small_functions): Do not estimate growth when dumping;
26865         it is expensive.
26866         * ipa-inline.h (inline_summary): Add min_size.
26867         (growth_likely_positive): New function.
26868         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
26869         (set_cond_stmt_execution_predicate): Cleanup.
26870         (estimate_edge_size_and_time): Compute min_size.
26871         (estimate_calls_size_and_time): Likewise.
26872         (estimate_node_size_and_time): Likewise.
26873         (inline_update_overall_summary): Update min_size.
26874         (do_estimate_edge_time): Likewise.
26875         (do_estimate_edge_size): Update.
26876         (do_estimate_edge_hints): Update.
26877         (growth_likely_positive): New function.
26879 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
26881         PR target/60693
26882         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
26883         also if addr has VOIDmode.
26885 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26887         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
26888         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
26889         Declare extern.
26890         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
26891         instructions as well as AdvancedSIMD loads.
26893 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26895         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
26896         Use crypto_aese type.
26897         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
26898         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
26899         crypto_aese, crypto_aesmc.  Move to types.md.
26900         * config/arm/types.md (crypto_aes): Split into crypto_aese,
26901         crypto_aesmc.
26902         * config/arm/iterators.md (crypto_type): Likewise.
26904 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
26906         * cgraph.c: Include expr.h and tree-dfa.h.
26907         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
26908         remove LHS.
26910 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
26912         PR target/60675
26913         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
26914         regs from checking multi-reg pseudos.
26916 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26918         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
26920 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26922         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
26923         if it would clobber the stack pointer, even temporarily.
26925 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
26927         * mode-switching.c: Make small adjustments to the top comment.
26929 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
26931         * config/rs6000/constraints.md (wD constraint): New constraint to
26932         match the constant integer to get the top DImode/DFmode out of a
26933         vector in a VSX register.
26935         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
26936         match the constant integer to get the top DImode/DFmode out of a
26937         vector in a VSX register.
26939         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
26940         for ISA 2.07.
26942         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26943         vbpermq builtins.
26945         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
26946         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
26948         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
26949         Optimize vec_extract of 64-bit values, where the value being
26950         extracted is in the top word, where we can use scalar
26951         instructions.  Add direct move and store support.  Combine the big
26952         endian/little endian vector select load support into a single insn.
26953         (vsx_extract_<mode>_internal1): Likewise.
26954         (vsx_extract_<mode>_internal2): Likewise.
26955         (vsx_extract_<mode>_load): Likewise.
26956         (vsx_extract_<mode>_store): Likewise.
26957         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
26958         combined into vsx_extract_<mode>_load.
26959         (vsx_extract_<mode>_one_le): Likewise.
26961         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
26962         define the top 64-bit vector element.
26964         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
26965         constraint.
26967         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26968         Document vec_vbpermq builtin.
26970         PR target/60672
26971         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
26972         enable use of xxsldwi and xxpermdi builtin functions.
26973         (vec_xxpermdi): Likewise.
26975         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26976         Document use of vec_xxsldwi and vec_xxpermdi builtins.
26978 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26980         PR rtl-optimization/60650
26981         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
26982         first_p.  Use it.
26983         (find_spills_for): New.
26984         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
26985         Spill all pseudos on the second iteration.
26987 2014-03-27  Marek Polacek  <polacek@redhat.com>
26989         PR c/50347
26990         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
26991         types.
26993 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26995         * config/s390/s390.c (s390_can_use_return_insn): Check for
26996         call-saved FPRs on 31 bit.
26998 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
27000         PR middle-end/60682
27001         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
27002         if they need regimplification, just drop them instead of
27003         calling gimple_regimplify_operands on them.
27005 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27007         PR target/60580
27008         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
27009         (aarch64_frame_pointer_required): Adjust logic.
27010         (aarch64_can_eliminate): Adjust logic.
27011         (aarch64_override_options_after_change): Adjust logic.
27013 2014-03-27  Dehao Chen  <dehao@google.com>
27015         * ipa-inline.c (early_inliner): Update node's inline info.
27017 2014-03-26  Dehao Chen  <dehao@google.com>
27019         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
27020         compiler inserted conditional jumps for NAN float check.
27022 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
27024         * ubsan.h (ubsan_create_data): Change second argument's type
27025         to const location_t *.
27026         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
27027         _("<unknown>").
27028         (ubsan_create_data): Change second argument to const location_t *PLOC.
27029         Create Loc field whenever PLOC is non-NULL.
27030         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
27031         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
27032         callers.
27034         PR other/59545
27035         * real.c (real_to_integer2): Change type of low to UHWI.
27037 2014-03-26  Tobias Burnus  <burnus@net-b.de>
27039         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
27040         (CILK_SELF_SPECS): New define.
27041         (driver_self_specs): Use it.
27043 2014-03-26  Richard Biener  <rguenther@suse.de>
27045         * tree-pretty-print.c (percent_K_format): Implement special
27046         case for LTO and its stripped down BLOCK tree.
27048 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
27050         PR sanitizer/60636
27051         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
27053         * tree-vrp.c (simplify_internal_call_using_ranges): If only
27054         one range is range_int_cst_p, but not both, at least optimize
27055         addition/subtraction of 0 and multiplication by 0 or 1.
27056         * gimple-fold.c (gimple_fold_call): Fold
27057         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
27058         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
27059         INTEGER_CSTs, try to fold at least x * 0 and y - y.
27061 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
27063         PR rtl-optimization/60452
27064         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
27065         <case REG>: Return 1 for invalid offsets from the frame pointer.
27067 2014-03-26  Marek Polacek  <polacek@redhat.com>
27069         PR c/37428
27070         * doc/extend.texi (C Extensions): Mention variable-length arrays in
27071         a structure/union.
27073 2014-03-26  Marek Polacek  <polacek@redhat.com>
27075         PR c/39525
27076         * doc/extend.texi (Designated Inits): Describe what happens to omitted
27077         field members.
27079 2014-03-26  Marek Polacek  <polacek@redhat.com>
27081         PR other/59545
27082         * ira-color.c (update_conflict_hard_regno_costs): Perform the
27083         multiplication in unsigned type.
27085 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
27087         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
27089 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
27091         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
27093 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
27095         PR ipa/60315
27096         * cif-code.def (UNREACHABLE) New code.
27097         * ipa-inline.c (inline_small_functions): Skip edges to
27098         __builtlin_unreachable.
27099         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
27100         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
27101         predicate to __bulitin_unreachable.
27102         (set_cond_stmt_execution_predicate): Fix issue when
27103         invert_tree_comparison returns ERROR_MARK.
27104         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
27105         propagate to inline clones.
27106         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
27107         to unreachable.
27108         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
27109         * cgraphclones.c (cgraph_clone_node): If call destination is already
27110         ureachable, do not redirect it back.
27111         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
27112         unreachable.
27114 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
27116         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
27117         Do not modify inline clones.
27119 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
27121         * config/i386/i386.md (general_sext_operand): New mode attr.
27122         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
27123         don't generate (sign_extend (const_int)).
27124         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
27125         operands[2].  Use We constraint instead of <i> and
27126         <general_sext_operand> predicate instead of <general_operand>.
27127         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
27128         * config/i386/constraints.md (We): New constraint.
27129         * config/i386/predicates.md (x86_64_sext_operand,
27130         sext_operand): New predicates.
27132 2014-03-25  Martin Jambor  <mjambor@suse.cz>
27134         PR ipa/60600
27135         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
27136         inconsistent devirtualizations to __builtin_unreachable.
27138 2014-03-25  Marek Polacek  <polacek@redhat.com>
27140         PR c/35449
27141         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
27143 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
27145         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
27146         order of elements for big-endian.
27148 2014-03-25  Richard Biener  <rguenther@suse.de>
27150         PR middle-end/60635
27151         * gimplify-me.c (gimple_regimplify_operands): Update the
27152         re-gimplifed stmt.
27154 2014-03-25  Martin Jambor  <mjambor@suse.cz>
27156         PR ipa/59176
27157         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
27158         (lto_output_varpool_node): Likewise.
27159         (input_overwrite_node): Likewise.
27160         (input_varpool_node): Likewise.
27162 2014-03-25  Richard Biener  <rguenther@suse.de>
27164         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
27165         (run_gcc): Likewise.
27167 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
27169         * combine.c (simplify_compare_const): Add MODE argument.
27170         Handle mode_width 0 as very large mode_width.
27171         (try_combine, simplify_comparison): Adjust callers.
27173         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
27174         type to avoid signed integer overflow.
27175         * explow.c (plus_constant): Likewise.
27177 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27179         * doc/generic.texi: Correct typos.
27181 2014-03-24  Tobias Burnus  <burnus@net-b.de>
27183         * doc/invoke.texi (-flto): Expand section about
27184         using static libraries with LTO.
27186 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27188         PR rtl-optimization/60501
27189         * optabs.def (addptr3_optab): New optab.
27190         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
27191         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
27192         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
27194         * lra.c (emit_add3_insn): Use the addptr pattern if available.
27196         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
27198 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
27200         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
27201         _mm512_set1_pd.
27203         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
27204         (_mm256_undefined_ps): Define.
27205         (_mm256_undefined_pd): Define.
27206         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
27207         (_mm_undefined_pd): Define.
27208         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
27209         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
27210         (_mm512_undefined_ps): Define.
27211         (_mm512_undefined_pd): Define.
27212         Use _mm*_undefined_*.
27213         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
27215 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
27217         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
27218         (lshr_simd): DI mode added.
27219         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
27220         (aarch64_ushr_simddi): Likewise.
27221         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
27222         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
27223         (vshrd_n_u64): Likewise.
27225 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27227         * Makefile.in (s-macro_list): Depend on cc1.
27229 2014-03-23  Teresa Johnson  <tejohnson@google.com>
27231         * ipa-utils.c (ipa_print_order): Use specified dump file.
27233 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
27235         PR rtl-optimization/60601
27236         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
27238         * gcc.c (eval_spec_function): Initialize save_growing_value.
27240 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
27242         PR sanitizer/60613
27243         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
27244         code == MINUS_EXPR, never swap op0 with op1.
27246         * toplev.c (init_local_tick): Avoid signed integer multiplication
27247         overflow.
27248         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
27249         shift by first operand's bitsize.
27251 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
27253         PR target/60610
27254         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
27255         redefine to 1 or 0.
27256         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
27257         TARGET_ISA_64BIT_P(x).
27259 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27261         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
27262         pattern for vector nor instead of subtract from splat(-1).
27263         (altivec_expand_vec_perm_const_le): Likewise.
27265 2014-03-21  Richard Henderson  <rth@twiddle.net>
27267         PR target/60598
27268         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
27269         related insns after epilogue_completed.
27271 2014-03-21  Martin Jambor  <mjambor@suse.cz>
27273         PR ipa/59176
27274         * cgraph.h (symtab_node): New flag body_removed.
27275         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
27276         when removing bodies.
27277         * symtab.c (dump_symtab_base): Dump body_removed flag.
27278         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
27279         had their bodies removed.
27281 2014-03-21  Martin Jambor  <mjambor@suse.cz>
27283         PR ipa/60419
27284         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
27285         in the border.
27287 2014-03-21  Richard Biener  <rguenther@suse.de>
27289         PR tree-optimization/60577
27290         * tree-core.h (struct tree_base): Document nothrow_flag use
27291         in DECL_NONALIASED.
27292         * tree.h (DECL_NONALIASED): New.
27293         (may_be_aliased): Adjust.
27294         * coverage.c (build_var): Set DECL_NONALIASED.
27296 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
27298         * expr.c (expand_expr_real_1): Remove outdated comment.
27300 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
27302         PR middle-end/60597
27303         * ira.c (adjust_cleared_regs): Call copy_rtx on
27304         *reg_equiv[REGNO (loc)].src_p before passing it to
27305         simplify_replace_fn_rtx.
27307         PR target/60568
27308         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
27309         into CONST, put pic register as first operand of PLUS.  Use
27310         gen_const_mem for both 32-bit and 64-bit PIC got loads.
27312 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27314         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
27316 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
27318         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
27319         around for store forwarding issue in the FPU on the UT699.
27320         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
27321         loads and operations if -mfix-ut699 is specified.
27322         (divtf3_hq): Tweak attribute.
27323         (sqrttf2_hq): Likewise.
27325 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
27327         * calls.c (store_one_arg): Remove incorrect const qualification on the
27328         type of the temporary.
27329         * cfgexpand.c (expand_return): Likewise.
27330         * expr.c (expand_constructor): Likewise.
27331         (expand_expr_real_1): Likewise.
27333 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27335         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
27336         of parts.
27338 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
27340         PR target/60039
27341         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
27343 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
27345         * config/arm/aarch-common-protos.h
27346         (alu_cost_table): Fix spelling of "extend".
27347         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
27349 2014-03-19  Richard Biener  <rguenther@suse.de>
27351         PR middle-end/60553
27352         * tree-core.h (tree_type_common): Re-order pointer members
27353         to reduce recursion depth during GC walks.
27355 2014-03-19  Marek Polacek  <polacek@redhat.com>
27357         PR sanitizer/60569
27358         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
27359         before accessing it.
27361 2014-03-19  Richard Biener  <rguenther@suse.de>
27363         PR lto/59543
27364         * lto-streamer-in.c (input_function): In WPA stage do not drop
27365         debug stmts.
27367 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
27369         PR tree-optimization/60559
27370         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
27371         with build_zero_cst assignment.
27373 2014-03-18  Kai Tietz  <ktietz@redhat.com>
27375         PR rtl-optimization/56356
27376         * sdbout.c (sdbout_parms): Verify that parms'
27377         incoming argument is valid.
27378         (sdbout_reg_parms): Likewise.
27380 2014-03-18  Richard Henderson  <rth@redhat.com>
27382         PR target/60562
27383         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
27384         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
27385         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
27387 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
27389         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
27390         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
27391         Italicize plugin event names in description.  Explain that
27392         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
27393         Remind that no GCC functions should be called after PLUGIN_FINISH.
27394         Explain what pragmas with expansion are.
27396 2014-03-18  Martin Liska  <mliska@suse.cz>
27398         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
27399         gimple call statement is update.
27400         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
27401         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
27403 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
27405         PR sanitizer/60557
27406         * ubsan.c (ubsan_instrument_unreachable): Call
27407         initialize_sanitizer_builtins.
27408         (ubsan_pass): Likewise.
27410         PR sanitizer/60535
27411         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
27412         varpool_finalize_decl instead of rest_of_decl_compilation.
27414 2014-03-18  Richard Biener  <rguenther@suse.de>
27416         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
27417         by using bitmap_and_compl instead of bitmap_and_compl_into.
27418         (df_rd_transfer_function): Likewise.
27420 2014-03-18  Richard Biener  <rguenther@suse.de>
27422         * doc/lto.texi (fresolution): Fix typo.
27424 2014-03-18  Richard Biener  <rguenther@suse.de>
27426         * doc/invoke.texi (flto): Update for changes in 4.9.
27428 2014-03-18  Richard Biener  <rguenther@suse.de>
27430         * doc/loop.texi: Remove section on the removed lambda framework.
27431         Update loop docs with recent changes in preserving loop structure.
27433 2014-03-18  Richard Biener  <rguenther@suse.de>
27435         * doc/lto.texi (-fresolution): Document.
27437 2014-03-18  Richard Biener  <rguenther@suse.de>
27439         * doc/contrib.texi: Adjust my name.
27441 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
27443         PR ipa/58721
27444         * internal-fn.c: Include diagnostic-core.h.
27445         (expand_BUILTIN_EXPECT): New function.
27446         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
27447         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
27448         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
27449         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
27450         IFN_BUILTIN_EXPECT.
27451         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
27452         Revert 3 argument __builtin_expect code.
27453         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
27454         * gimple-fold.c (gimple_fold_call): Likewise.
27455         * tree.h (fold_builtin_expect): New prototype.
27456         * builtins.c (build_builtin_expect_predicate): Add predictor
27457         argument, if non-NULL, create 3 argument __builtin_expect.
27458         (fold_builtin_expect): No longer static.  Add ARG2 argument,
27459         pass it through to build_builtin_expect_predicate.
27460         (fold_builtin_2): Adjust caller.
27461         (fold_builtin_3): Handle BUILT_IN_EXPECT.
27462         * internal-fn.def (BUILTIN_EXPECT): New.
27464 2014-03-18  Tobias Burnus  <burnus@net-b.de>
27466         PR ipa/58721
27467         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
27468         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
27469         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
27471 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
27473         PR ipa/58721
27474         * predict.c (combine_predictions_for_bb): Fix up formatting.
27475         (expr_expected_value_1, expr_expected_value): Add predictor argument,
27476         fill what it points to if non-NULL.
27477         (tree_predict_by_opcode): Adjust caller, use the predictor.
27478         * predict.def (PRED_COMPARE_AND_SWAP): Add.
27480 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
27482         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
27483         proper constant for the store mode.
27485 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
27487         * symtab.c (change_decl_assembler_name): Fix transparent alias
27488         chain construction.
27490 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
27492         * config/aarch64/aarch64.c: Correct the comments about the
27493         aarch64 stack layout.
27495 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
27497         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
27498         check for GF_OMP_FOR_KIND_FOR.
27500 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
27502         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
27503         ymm and zmm register names.
27505 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
27507         PR target/60516
27508         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
27509         note creation for the 2010-08-31 changes.
27511 2014-03-17  Marek Polacek  <polacek@redhat.com>
27513         PR middle-end/60534
27514         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
27515         as -fno-tree-loop-vectorize.
27516         (expand_omp_simd): Likewise.
27518 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27520         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
27521         (eligible_for_call_delay): New prototype.
27522         * config/sparc/sparc.c (tls_call_delay): Rename into...
27523         (eligible_for_call_delay): ...this.  Return false if the instruction
27524         cannot be put in the delay slot of a branch.
27525         (eligible_for_restore_insn): Simplify.
27526         (eligible_for_return_delay): Return false if the instruction cannot be
27527         put in the delay slot of a branch and simplify.
27528         (eligible_for_sibcall_delay): Return false if the instruction cannot be
27529         put in the delay slot of a branch.
27530         * config/sparc/sparc.md (fix_ut699): New attribute.
27531         (tls_call_delay): Delete.
27532         (in_call_delay): Reimplement.
27533         (eligible_for_sibcall_delay): Rename into...
27534         (in_sibcall_delay): ...this.
27535         (eligible_for_return_delay): Rename into...
27536         (in_return_delay): ...this.
27537         (in_branch_delay): Reimplement.
27538         (in_uncond_branch_delay): Delete.
27539         (in_annul_branch_delay): Delete.
27541 2014-03-14  Richard Henderson  <rth@redhat.com>
27543         PR target/60525
27544         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
27545         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
27546         (*floathi<X87MODEF>2_i387_with_temp): Remove.
27547         (floathi splitters): Remove.
27548         (float<SWI48x>xf2): New pattern.
27549         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
27550         code that tried to handle DImode for 32-bit, but which was excluded
27551         by the pattern's condition.  Drop allocation of stack temporary.
27552         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
27553         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
27554         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
27555         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
27556         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
27557         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
27558         (*float<SWI48><MODEF>2_sse_interunit): Remove.
27559         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
27560         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
27561         (*float<SWI48x><X87MODEF>2_i387): Remove.
27562         (all float _with_temp splitters): Remove.
27563         (*float<SWI48x><MODEF>2_i387): New pattern.
27564         (*float<SWI48><MODEF>2_sse): New pattern.
27565         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
27566         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
27568 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
27569             Marek Polacek  <polacek@redhat.com>
27571         PR middle-end/60484
27572         * common.opt (dump_base_name_prefixed): New Variable.
27573         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
27574         if x_dump_base_name_prefixed is already set, set it at the end.
27576 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
27578         PR rtl-optimization/60508
27579         * lra-constraints.c (get_reload_reg): Add new parameter
27580         in_subreg_p.
27581         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
27582         Pass the new parameter values.
27584 2014-03-14  Richard Biener  <rguenther@suse.de>
27586         * common.opt: Revert unintented changes from r205065.
27587         * opts.c: Likewise.
27589 2014-03-14  Richard Biener  <rguenther@suse.de>
27591         PR middle-end/60518
27592         * cfghooks.c (split_block): Properly adjust all loops the
27593         block was a latch of.
27595 2014-03-14  Martin Jambor  <mjambor@suse.cz>
27597         PR lto/60461
27598         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
27599         and simplify it.
27601 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
27603         PR target/59396
27604         * config/avr/avr.c (avr_set_current_function): Pass function name
27605         through default_strip_name_encoding before sanity checking instead
27606         of skipping the first char of the assembler name.
27608 2014-03-13  Richard Henderson  <rth@redhat.com>
27610         PR debug/60438
27611         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
27612         (ix86_force_to_memory, ix86_free_from_memory): Remove.
27613         * config/i386/i386-protos.h: Likewise.
27614         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
27615         in the expander instead of a splitter.
27616         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
27617         any possibility of requiring a memory.
27618         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
27619         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
27620         (fp branch splitters): Update for ix86_split_fp_branch.
27621         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
27622         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
27623         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
27624         (*fop_<MODEF>_2_i387): Remove f/r alternative.
27625         (*fop_<MODEF>_3_i387): Likewise.
27626         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
27627         (splitters for the fop_* register patterns): Remove.
27628         (fscalexf4_i387): Rename from *fscalexf4_i387.
27629         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
27631 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
27633         PR tree-optimization/59779
27634         * tree-dfa.c (get_ref_base_and_extent): Use double_int
27635         type for bitsize and maxsize instead of HOST_WIDE_INT.
27637 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
27639         PR rtl-optimization/57320
27640         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
27641         the CFG after thread_prologue_and_epilogue_insns.
27643 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
27645         PR rtl-optimization/57189
27646         * lra-constraints.c (process_alt_operands): Disfavor spilling
27647         vector pseudos.
27649 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
27651         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
27653 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
27655         PR tree-optimization/59025
27656         PR middle-end/60418
27657         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
27658         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
27660 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
27662         PR target/60486
27663         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
27664         calls of avr_out_plus_1.
27666 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
27668         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
27669         BB's single pred and update the father loop's latch info later.
27671 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
27673         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
27674         (VEC_M): Likewise.
27675         (VEC_N): Likewise.
27676         (VEC_R): Likewise.
27677         (VEC_base): Likewise.
27678         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
27679         registers, we need to swap double words in little endian mode.
27681         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
27682         to be a container mode for 128-bit integer operations added in ISA
27683         2.07.  Unlike TImode and PTImode, the preferred register set is
27684         the Altivec/VMX registers for the 128-bit operations.
27686         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
27687         declarations.
27688         (rs6000_split_128bit_ok_p): Likewise.
27690         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
27691         macros for creating ISA 2.07 normal and overloaded builtin
27692         functions with 3 arguments.
27693         (BU_P8V_OVERLOAD_3): Likewise.
27694         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
27695         for use as overloaded functions.
27696         (VPERM_1TI_UNS): Likewise.
27697         (VSEL_1TI): Likewise.
27698         (VSEL_1TI_UNS): Likewise.
27699         (ST_INTERNAL_1ti): Likewise.
27700         (LD_INTERNAL_1ti): Likewise.
27701         (XXSEL_1TI): Likewise.
27702         (XXSEL_1TI_UNS): Likewise.
27703         (VPERM_1TI): Likewise.
27704         (VPERM_1TI_UNS): Likewise.
27705         (XXPERMDI_1TI): Likewise.
27706         (SET_1TI): Likewise.
27707         (LXVD2X_V1TI): Likewise.
27708         (STXVD2X_V1TI): Likewise.
27709         (VEC_INIT_V1TI): Likewise.
27710         (VEC_SET_V1TI): Likewise.
27711         (VEC_EXT_V1TI): Likewise.
27712         (EQV_V1TI): Likewise.
27713         (NAND_V1TI): Likewise.
27714         (ORC_V1TI): Likewise.
27715         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
27716         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
27717         overloaded builtin.
27718         (VADDUQM): Likewise.
27719         (VSUBCUQ): Likewise.
27720         (VADDEUQM): Likewise.
27721         (VADDECUQ): Likewise.
27722         (VSUBEUQM): Likewise.
27723         (VSUBECUQ): Likewise.
27725         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
27726         __int128_t and __uint128_t types.
27727         (__uint128_type): Likewise.
27728         (altivec_categorize_keyword): Add support for vector __int128_t,
27729         vector __uint128_t, vector __int128, and vector unsigned __int128
27730         as a container type for TImode operations that need to be done in
27731         VSX/Altivec registers.
27732         (rs6000_macro_to_expand): Likewise.
27733         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
27734         to support 128-bit integer instructions vaddcuq, vadduqm,
27735         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
27736         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
27738         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
27739         for V1TImode, and set up preferences to use VSX/Altivec registers.
27740         Setup VSX reload handlers.
27741         (rs6000_debug_reg_global): Likewise.
27742         (rs6000_init_hard_regno_mode_ok): Likewise.
27743         (rs6000_preferred_simd_mode): Likewise.
27744         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
27745         (easy_altivec_constant): Likewise.
27746         (output_vec_const_move): Likewise.
27747         (rs6000_expand_vector_set): Convert V1TImode set and extract to
27748         simple move.
27749         (rs6000_expand_vector_extract): Likewise.
27750         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
27751         addressing.
27752         (rs6000_const_vec): Add support for V1TImode.
27753         (rs6000_emit_le_vsx_load): Swap double words when loading or
27754         storing TImode/V1TImode.
27755         (rs6000_emit_le_vsx_store): Likewise.
27756         (rs6000_emit_le_vsx_move): Likewise.
27757         (rs6000_emit_move): Add support for V1TImode.
27758         (altivec_expand_ld_builtin): Likewise.
27759         (altivec_expand_st_builtin): Likewise.
27760         (altivec_expand_vec_init_builtin): Likewise.
27761         (altivec_expand_builtin): Likewise.
27762         (rs6000_init_builtins): Add support for V1TImode type.  Add
27763         support for ISA 2.07 128-bit integer builtins.  Define type names
27764         for the VSX/Altivec vector types.
27765         (altivec_init_builtins): Add support for overloaded vector
27766         functions with V1TImode type.
27767         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
27768         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
27769         external function.
27770         (rs6000_split_128bit_ok_p): Likewise.
27771         (rs6000_handle_altivec_attribute): Create V1TImode from vector
27772         __int128_t and vector __uint128_t.
27774         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
27775         and mode attributes.
27776         (VSX_M): Likewise.
27777         (VSX_M2): Likewise.
27778         (VSm): Likewise.
27779         (VSs): Likewise.
27780         (VSr): Likewise.
27781         (VSv): Likewise.
27782         (VS_scalar): Likewise.
27783         (VS_double): Likewise.
27784         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
27786         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
27787         we support the ISA 2.07 128-bit integer arithmetic instructions.
27788         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
27789         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
27790         and TImode types for use with the builtin functions.
27791         (V1TI_type_node): Likewise.
27792         (unsigned_V1TI_type_node): Likewise.
27793         (intTI_type_internal_node): Likewise.
27794         (uintTI_type_internal_node): Likewise.
27796         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
27797         128-bit builtin functions.
27798         (UNSPEC_VADDEUQM): Likewise.
27799         (UNSPEC_VADDECUQ): Likewise.
27800         (UNSPEC_VSUBCUQ): Likewise.
27801         (UNSPEC_VSUBEUQM): Likewise.
27802         (UNSPEC_VSUBECUQ): Likewise.
27803         (VM): Add V1TImode to vector mode iterators.
27804         (VM2): Likewise.
27805         (VI_unit): Likewise.
27806         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
27807         (altivec_vaddcuq): Likewise.
27808         (altivec_vsubuqm): Likewise.
27809         (altivec_vsubcuq): Likewise.
27810         (altivec_vaddeuqm): Likewise.
27811         (altivec_vaddecuq): Likewise.
27812         (altivec_vsubeuqm): Likewise.
27813         (altivec_vsubecuq): Likewise.
27815         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
27816         mode iterators.
27817         (BOOL_128): Likewise.
27818         (BOOL_REGS_OUTPUT): Likewise.
27819         (BOOL_REGS_OP1): Likewise.
27820         (BOOL_REGS_OP2): Likewise.
27821         (BOOL_REGS_UNARY): Likewise.
27822         (BOOL_REGS_AND_CR0): Likewise.
27824         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
27825         128-bit integer builtin support.
27826         (vec_vadduqm): Likewise.
27827         (vec_vaddecuq): Likewise.
27828         (vec_vaddeuqm): Likewise.
27829         (vec_vsubecuq): Likewise.
27830         (vec_vsubeuqm): Likewise.
27831         (vec_vsubcuq): Likewise.
27832         (vec_vsubuqm): Likewise.
27834         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27835         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
27836         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
27837         128-bit integer add/subtract to ISA 2.07.
27839 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
27841         * config/arc/arc.c (arc_predicate_delay_insns):
27842         Fix third argument passed to conditionalize_nonjump.
27844 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
27846         * config/aarch64/aarch64-builtins.c
27847         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
27848         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
27849         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
27850         instead of __builtin_lfloor.
27851         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
27853 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
27855         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
27856         (tree_ssa_ifcombine_bb_1): New function.
27857         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
27858         is an empty forwarder block to then_bb or vice versa and then_bb
27859         and else_bb are effectively swapped.
27861 2014-03-12  Christian Bruel  <christian.bruel@st.com>
27863         PR target/60264
27864         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
27865         REG_CFA_DEF_CFA note.
27866         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
27867         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
27869 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27871         PR tree-optimization/60454
27872         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
27874 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27876         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
27877         Do not define target_cpu_default2 to generic.
27878         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
27879         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
27880         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
27882 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
27883             Marc Glisse  <marc.glisse@inria.fr>
27885         PR tree-optimization/60502
27886         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
27887         instead of build_low_bits_mask.
27889 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
27891         PR middle-end/60482
27892         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
27893         if there are multiple uses, but op doesn't live on E edge.
27894         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
27895         clobber stmts before __builtin_unreachable.
27897 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
27899         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
27900         hard_frame_pointer_rtx.
27901         * cse.c (cse_insn): Remove volatile check.
27902         * cselib.c (cselib_process_insn): Likewise.
27903         * dse.c (scan_insn): Likewise.
27905 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27907         * config/arc/arc.c (conditionalize_nonjump): New function,
27908         broken out of ...
27909         (arc_ifcvt): ... this.
27910         (arc_predicate_delay_insns): Use it.
27912 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
27914         * config/arc/predicates.md (extend_operand): During/after reload,
27915         allow const_int_operand.
27916         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
27917         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
27918         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
27919         to "i".
27920         (umulsi3_highpart_i): Likewise.
27922 2014-03-11  Richard Biener  <rguenther@suse.de>
27924         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
27925         Add asserts to guard possible wrong-code bugs.
27927 2014-03-11  Richard Biener  <rguenther@suse.de>
27929         PR tree-optimization/60429
27930         PR tree-optimization/60485
27931         * tree-ssa-structalias.c (set_union_with_increment): Properly
27932         take into account all fields that overlap the shifted vars.
27933         (do_sd_constraint): Likewise.
27934         (do_ds_constraint): Likewise.
27935         (get_constraint_for_ptr_offset): Likewise.
27937 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
27939         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
27940         (nios2_compute_frame_layout):
27941         Add calculation of cfun->machine->fp_save_offset.
27942         (nios2_expand_prologue): Correct setting of frame pointer register
27943         in prologue.
27944         (nios2_expand_epilogue): Update recovery of stack pointer from
27945         frame pointer accordingly.
27946         (nios2_initial_elimination_offset): Update calculation of offset
27947         for eliminating to HARD_FRAME_POINTER_REGNUM.
27949 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
27951         PR ipa/60457
27952         * ipa.c (symtab_remove_unreachable_nodes): Don't call
27953         cgraph_get_create_node on VAR_DECLs.
27955 2014-03-10  Richard Biener  <rguenther@suse.de>
27957         PR middle-end/60474
27958         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
27960 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
27962         * config/vms/vms.opt (vms_float_format): New variable.
27964 2014-03-08  Tobias Burnus  <burnus@net-b.de>
27966         * doc/invoke.texi (-fcilkplus): Update implementation status.
27968 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
27969             Richard Biener  <rguenther@suse.de>
27971         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
27972         consistently accross all TUs.
27973         (run_gcc): Enable -fshort-double automatically at link at link-time
27974         and disallow override.
27976 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
27978         PR target/58271
27979         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
27980         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
27981         if they can't be used.
27983 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27985         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
27986         for Solaris 11/x86 ld.
27987         * configure: Regenerate.
27989 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27991         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
27992         (LIB_TLS_SPEC): Save as ld_tls_libs.
27993         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
27994         (HAVE_AS_IX86_TLSLDM): New test.
27995         * configure, config.in: Regenerate.
27996         * config/i386/i386.c (legitimize_tls_address): Fall back to
27997         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
27998         cannot support TLS_MODEL_LOCAL_DYNAMIC.
27999         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
28000         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
28002 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
28004         * common.opt (fira-loop-pressure): Mark as optimization.
28006 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
28008         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
28009         an OpenMP mappable type.
28011 2014-03-06  Matthias Klose  <doko@ubuntu.com>
28013         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
28014         MULTILIB_OSDIRNAMES is not defined.
28016 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
28017             Meador Inge  <meadori@codesourcery.com>
28019         PR target/58595
28020         * config/arm/arm.c (arm_tls_symbol_p): Remove.
28021         (arm_legitimize_address): Call legitimize_tls_address for any
28022         arm_tls_referenced_p expression, handle constant addend.  Call it
28023         before testing for !TARGET_ARM.
28024         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
28026 2014-03-06  Richard Biener  <rguenther@suse.de>
28028         PR middle-end/60445
28029         PR lto/60424
28030         PR lto/60427
28031         Revert
28032         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
28034         * tree-streamer.c (record_common_node): Assert we don't record
28035         nodes with type double.
28036         (preload_common_node): Skip type double, complex double and double
28037         pointer since it is now frontend dependent due to fshort-double option.
28039 2014-03-06  Richard Biener  <rguenther@suse.de>
28041         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
28042         or -fno-lto is specified and the linker has full plugin support.
28043         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
28044         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
28045         * lto-wrapper.c (merge_and_complain): Merge compile-time
28046         optimization levels.
28047         (run_gcc): And pass it through to the link options.
28049 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
28051         PR debug/60381
28052         Revert:
28053         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28054         PR debug/59992
28055         * cselib.c (remove_useless_values): Skip to avoid quadratic
28056         behavior if the condition moved from...
28057         (cselib_process_insn): ... here holds.
28059 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
28061         PR plugins/59335
28062         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
28063         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
28065         PR plugins/59335
28066         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
28067         (TM_H): Add x86-tune.def.
28069 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28071         * config/aarch64/aarch64.c (generic_tunings):
28072         Use cortexa57_extra_costs.
28074 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
28076         PR lto/60404
28077         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
28078         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
28079         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
28080         cost for in_lto_p.
28082 2014-03-04  Heiher  <r@hev.cc>
28084         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
28085         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
28087 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
28089         * config/i386/predicates.md (const2356_operand): Change to ...
28090         (const2367_operand): ... this.
28091         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
28092         const2367_operand.
28093         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28094         (*avx512pf_scatterpf<mode>sf): Ditto.
28095         (avx512pf_scatterpf<mode>df): Ditto.
28096         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28097         (*avx512pf_scatterpf<mode>df): Ditto.
28098         * config/i386/i386.c (ix86_expand_builtin): Update
28099         incorrect hint operand error message.
28101 2014-03-04  Richard Biener  <rguenther@suse.de>
28103         * lto-section-in.c (lto_get_section_data): Fix const cast.
28105 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
28107         * tree-streamer.c (record_common_node): Assert we don't record
28108         nodes with type double.
28109         (preload_common_node): Skip type double, complex double and double
28110         pointer since it is now frontend dependent due to fshort-double option.
28112 2014-03-04  Richard Biener  <rguenther@suse.de>
28114         PR lto/60405
28115         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
28116         (lto_input_toplevel_asms): Likewise.
28117         * lto-section-in.c (lto_get_section_data): Instead do it here
28118         for every section.
28120 2014-03-04  Richard Biener  <rguenther@suse.de>
28122         PR tree-optimization/60382
28123         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
28124         dead PHIs a reduction.
28126 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
28128         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
28129         hint value.
28130         (_mm_prefetch): Move out of GCC target("sse") pragma.
28131         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
28132         GCC target("prfchw") pragma.
28133         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
28134         for locality <= 2.
28135         * config/i386/i386.c (ix86_option_override_internal): Enable
28136         -mprfchw with -mprefetchwt1.
28138 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28140         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
28141         Mark as varying.
28143 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
28145         * opts.h (CL_PCH_IGNORE): Define.
28146         * targhooks.c (option_affects_pch_p):
28147         Return false for options that have CL_PCH_IGNORE set.
28148         * opt-functions.awk: Process PchIgnore.
28149         * doc/options.texi: Document PchIgnore.
28151         * config/arc/arc.opt (misize): Add PchIgnore property.
28153 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28155         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
28156         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
28157         constraint on constants to permit them being loaded into
28158         GENERAL_REGS or BASE_REGS.
28160 2014-03-03  Nick Clifton  <nickc@redhat.com>
28162         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
28163         anti-cacnonical alternatives.
28164         (negandhi3_real): New pattern.
28165         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
28167 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28169         * config/avr/avr-mcus.def: Remove atxmega16x1.
28170         * config/avr/avr-tables.opt: Regenerate.
28171         * config/avr/t-multilib: Regenerate.
28172         * doc/avr-mmcu.texi: Regenerate.
28174 2014-03-03  Tobias Grosser  <tobias@grosser.es>
28175             Mircea Namolaru  <mircea.namolaru@inria.fr>
28177         PR tree-optimization/58028
28178         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
28179         scalar dimensions.
28181 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28183         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
28184         not handled by recognizers.
28186 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
28188         PR middle-end/60175
28189         * function.c (expand_function_end): Don't emit
28190         clobber_return_register sequence if clobber_after is a BARRIER.
28191         * cfgexpand.c (construct_exit_block): Append instructions before
28192         return_label to prev_bb.
28194 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28196         * config/rs6000/constraints.md: Document reserved use of "wc".
28198 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
28200         PR ipa/60150
28201         * ipa.c (function_and_variable_visibility): When dissolving comdat
28202         group, also set all symbols to local.
28204 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
28206         PR ipa/60306
28208         Revert:
28209         2013-12-14  Jan Hubicka  <jh@suse.cz>
28210         PR middle-end/58477
28211         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
28213 2014-03-02  Jon Beniston  <jon@beniston.com>
28215         PR bootstrap/48230
28216         PR bootstrap/50927
28217         PR bootstrap/52466
28218         PR target/46898
28219         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
28220           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
28221         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
28222         (simple_return, *simple_return): New patterns
28223         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
28224         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
28226 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
28228         * dwarf2out.c (gen_subprogram_die): Tidy.
28230 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
28232         PR target/60071
28233         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
28234         (*mov_t_msb_neg_negc): ... this new insn.
28236 2014-02-28  Jason Merrill  <jason@redhat.com>
28238         PR c++/58678
28239         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
28240         function.
28242 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
28244         PR c++/60314
28245         * dwarf2out.c (decltype_auto_die): New static.
28246         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
28247         (gen_type_die_with_usage): Handle 'decltype(auto)'.
28248         (is_cxx_auto): Likewise.
28250 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
28252         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
28253         we are not using general regs only.
28255 2014-02-28  Richard Biener  <rguenther@suse.de>
28257         PR target/60280
28258         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
28259         previous fix and only allow to remove trivial pre-headers
28260         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
28261         (remove_forwarder_block): Properly update the latch of a loop.
28263 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28265         PR debug/59992
28266         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
28267         (cselib_preserved_hash_table): New.
28268         (preserve_constants_and_equivs): Move preserved vals to it.
28269         (cselib_find_slot): Look it up first.
28270         (cselib_init): Initialize it.
28271         (cselib_finish): Release it.
28272         (dump_cselib_table): Dump it.
28274 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28276         PR debug/59992
28277         * cselib.c (remove_useless_values): Skip to avoid quadratic
28278         behavior if the condition moved from...
28279         (cselib_process_insn): ... here holds.
28281 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
28283         PR debug/57232
28284         * var-tracking.c (vt_initialize): Apply the same condition to
28285         preserve the CFA base value.
28287 2014-02-28  Joey Ye  <joey.ye@arm.com>
28289         PR target/PR60169
28290         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
28291         if reload in progress or completed.
28293 2014-02-28  Tobias Burnus  <burnus@net-b.de>
28295         PR middle-end/60147
28296         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
28297         NAMELIST_DECL.
28299 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
28301         * doc/tm.texi.in (Condition Code Status): Update documention for
28302         relative locations of cc0-setter and cc0-user.
28304 2014-02-27  Jeff Law  <law@redhat.com>
28306         PR rtl-optimization/52714
28307         * combine.c (try_combine): When splitting an unrecognized PARALLEL
28308         into two independent simple sets, if I3 is a jump, ensure the
28309         pattern we place into I3 is a (set (pc) ...).
28311 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
28312             Jeff Law  <law@redhat.com>
28314         PR rtl-optimization/49847
28315         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
28316         are in different blocks.
28317         * doc/tm.texi (Condition Code Status): Update documention for
28318         relative locations of cc0-setter and cc0-user.
28320 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
28322         PR target/59222
28323         * lra.c (lra_emit_add): Check SUBREG too.
28325 2014-02-27  Andreas Schwab  <schwab@suse.de>
28327         * config/m68k/m68k.c (m68k_option_override): Disable
28328         -flive-range-shrinkage for classic m68k.
28329         (m68k_override_options_after_change): Likewise.
28331 2014-02-27  Marek Polacek  <polacek@redhat.com>
28333         PR middle-end/59223
28334         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
28335         -Wmaybe-uninitialized.
28337 2014-02-27  Alan Modra  <amodra@gmail.com>
28339         PR target/57936
28340         * reload1.c (emit_input_reload_insns): When reload_override_in,
28341         set old to rl->in_reg when rl->in_reg is a subreg.
28343 2014-02-26  Richard Biener  <rguenther@suse.de>
28345         PR bootstrap/60343
28346         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
28348 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
28350         * common/config/i386/predicates.md (const1256_operand): Remove.
28351         (const2356_operand): New.
28352         (const_1_to_2_operand): Remove.
28353         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
28354         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28355         (*avx512pf_gatherpf<mode>sf): Ditto.
28356         (avx512pf_gatherpf<mode>df): Ditto.
28357         (*avx512pf_gatherpf<mode>df_mask): Ditto.
28358         (*avx512pf_gatherpf<mode>df): Ditto.
28359         (avx512pf_scatterpf<mode>sf): Ditto.
28360         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28361         (*avx512pf_scatterpf<mode>sf): Ditto.
28362         (avx512pf_scatterpf<mode>df): Ditto.
28363         (*avx512pf_scatterpf<mode>df_mask): Ditto.
28364         (*avx512pf_scatterpf<mode>df): Ditto.
28365         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
28367 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
28369         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
28370         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
28371         (_mm512_mask_testn_epi64_mask): Move to ...
28372         * config/i386/avx512cdintrin.h: Here.
28373         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
28374         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
28375         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
28376         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
28377         TARGET_AVX512F from TARGET_AVX512CD.
28379 2014-02-26  Richard Biener  <rguenther@suse.de>
28381         PR ipa/60327
28382         * ipa.c (walk_polymorphic_call_targets): Properly guard
28383         call to inline_update_overall_summary.
28385 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
28387         PR target/60280
28388         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
28389         and latches only if requested.  Fix latch if it is removed.
28390         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
28391         LOOPS_HAVE_PREHEADERS.
28393 2014-02-25  Andrew Pinski  <apinski@cavium.com>
28395         * builtins.c (expand_builtin_thread_pointer): Create a new target
28396         when the target is NULL.
28398 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
28400         PR rtl-optimization/60317
28401         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28402         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
28403         * lra-assigns.c: Include params.h.
28404         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
28405         other reload pseudos considerations.
28407 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28409         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
28410         to use canonical form for nor<mode>3.
28412 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28414         PR target/55426
28415         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
28416         conversions.
28418 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
28420         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
28421         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
28422         (ix86_handle_option): Handle OPT_mprefetchwt1.
28423         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
28424         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28425         PREFETCHWT1 CPUID.
28426         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28427         OPTION_MASK_ISA_PREFETCHWT1.
28428         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
28429         (PTA_PREFETCHWT1): New.
28430         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
28431         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
28432         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
28433         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
28434         (*prefetch_avx512pf_<mode>_: Change into ...
28435         (*prefetch_prefetchwt1_<mode>: This.
28436         * config/i386/i386.opt (mprefetchwt1): New.
28437         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
28438         (_mm_prefetch): Handle intent to write.
28439         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
28441 2014-02-25  Richard Biener  <rguenther@suse.de>
28443         PR middle-end/60291
28444         * emit-rtl.c (mem_attrs_htab): Remove.
28445         (mem_attrs_htab_hash): Likewise.
28446         (mem_attrs_htab_eq): Likewise.
28447         (set_mem_attrs): Always allocate new mem-attrs when something changed.
28448         (init_emit_once): Do not allocate mem_attrs_htab.
28450 2014-02-25  Richard Biener  <rguenther@suse.de>
28452         PR lto/60319
28453         * lto-opts.c (lto_write_options): Output non-explicit conservative
28454         -fwrapv, -fno-trapv and -fno-strict-overflow.
28455         * lto-wrapper.c (merge_and_complain): Handle merging those options.
28456         (run_gcc): And pass them through.
28458 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
28460         * sel-sched.c (calculate_new_fences): New parameter ptime.
28461         Calculate it as a maximum over all fence cycles.
28462         (sel_sched_region_2): Adjust the call to calculate_new_fences.
28463         Print the final schedule timing when sched_verbose.
28465 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
28467         PR rtl-optimization/60292
28468         * sel-sched.c (fill_vec_av_set): Do not reset target availability
28469         bit fot the fence instruction.
28471 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
28473         * calls.h: Fix typo in comment.
28475 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
28477         * config/pa/pa.c (pa_output_move_double): Don't valididate when
28478         adjusting offsetable addresses.
28480 2014-02-24  Guozhi Wei  <carrot@google.com>
28482         * sparseset.h (sparseset_pop): Fix the wrong index.
28484 2014-02-24  Walter Lee  <walt@tilera.com>
28486         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
28487         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
28488         triplet.
28489         * common/config/tilegx/tilegx-common.c
28490         (TARGET_DEFAULT_TARGET_FLAGS): Define.
28491         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
28492         (LINK_SPEC): Ditto.
28493         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
28494         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
28495         (tilegx_gimplify_va_arg_expr): Handle big endian.
28496         (tilegx_expand_unaligned_load): Ditto.
28497         (tilegx_expand_unaligned_store): Ditto.
28498         (TARGET_RETURN_IN_MSB): New.
28499         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
28500         (TARGET_ENDIAN_DEFAULT): New.
28501         (TARGET_BIG_ENDIAN): Handle big endian.
28502         (BYTES_BIG_ENDIAN): Ditto.
28503         (WORDS_BIG_ENDIAN): Ditto.
28504         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
28505         (ENDIAN_SPEC): New.
28506         (EXTRA_SPECS): New.
28507         * config/tilegx/tilegx.md (extv): Handle big endian.
28508         (extzv): Ditto.
28509         (insn_st<n>): Ditto.
28510         (insn_st<n>_add<bitsuffix>): Ditto.
28511         (insn_stnt<n>): Ditto.
28512         (insn_stnt<n>_add<bitsuffix>):Ditto.
28513         (vec_interleave_highv8qi): Handle big endian.
28514         (vec_interleave_highv8qi_be): New.
28515         (vec_interleave_highv8qi_le): New.
28516         (insn_v1int_h): Handle big endian.
28517         (vec_interleave_lowv8qi): Handle big endian.
28518         (vec_interleave_lowv8qi_be): New.
28519         (vec_interleave_lowv8qi_le): New.
28520         (insn_v1int_l): Handle big endian.
28521         (vec_interleave_highv4hi): Handle big endian.
28522         (vec_interleave_highv4hi_be): New.
28523         (vec_interleave_highv4hi_le): New.
28524         (insn_v2int_h): Handle big endian.
28525         (vec_interleave_lowv4hi): Handle big endian.
28526         (vec_interleave_lowv4hi_be): New.
28527         (vec_interleave_lowv4hi_le): New.
28528         (insn_v2int_l): Handle big endian.
28529         (vec_interleave_highv2si): Handle big endian.
28530         (vec_interleave_highv2si_be): New.
28531         (vec_interleave_highv2si_le): New.
28532         (insn_v4int_h): Handle big endian.
28533         (vec_interleave_lowv2si): Handle big endian.
28534         (vec_interleave_lowv2si_be): New.
28535         (vec_interleave_lowv2si_le): New.
28536         (insn_v4int_l): Handle big endian.
28537         * config/tilegx/tilegx.opt (mbig-endian): New option.
28538         (mlittle-endian): New option.
28539         * doc/install.texi: Document tilegxbe-linux.
28540         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
28542 2014-02-24  Martin Jambor  <mjambor@suse.cz>
28544         PR ipa/60266
28545         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
28546         there are no parameter descriptors.
28548 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
28550         PR rtl-optimization/60268
28551         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
28552         initialization to ...
28553         (sched_rgn_init): ... here.
28554         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
28556 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
28558         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
28559         names.
28561 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
28563         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
28564         definition.
28566 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
28568         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
28569         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
28571 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
28573         * config/microblaze/predicates.md: Add cmp_op predicate.
28574         * config/microblaze/microblaze.md: Add branch_compare instruction
28575         which uses cmp_op predicate and emits cmp insn before branch.
28576         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
28577         to microblaze_expand_conditional_branch and consolidate logic.
28578         (microblaze_expand_conditional_branch): emit branch_compare
28579         insn instead of handling cmp op separate from branch insn.
28581 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28583         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
28584         to permit subregs.
28586 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28588         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
28589         define_insn with define_expand and new define_insn
28590         *altivec_lve<VI_char>x_internal.
28591         (altivec_stve<VI_char>x): Replace define_insn with define_expand
28592         and new define_insn *altivec_stve<VI_char>x_internal.
28593         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
28594         prototype.
28595         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
28596         lve*x built-ins.
28597         (altivec_expand_stvex_be): New function.
28599 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
28601         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
28602         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
28603         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
28604         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
28606 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
28608         PR target/60298
28609         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
28610         instead of emit_move_insn.
28612 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28614         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
28615         vspltw with vsldoi.
28616         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
28617         gen_altivec_vsumsws.
28619 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28621         * config/rs6000/altivec.md (altivec_lvxl): Rename as
28622         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
28623         (altivec_lvxl_<mode>): New define_expand incorporating
28624         -maltivec=be semantics where needed.
28625         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
28626         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
28627         semantics where needed.
28628         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
28629         (altivec_stvx_<mode>): New define_expand incorporating
28630         -maltivec=be semantics where needed.
28631         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
28632         VM2 iterator instead of V4SI.
28633         (altivec_stvxl_<mode>): New define_expand incorporating
28634         -maltivec=be semantics where needed.
28635         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
28636         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
28637         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
28638         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
28639         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
28640         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
28641         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
28642         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
28643         ALTIVEC_BUILTIN_STVXL.
28644         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
28645         (altivec_expand_stvx_be): Likewise.
28646         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
28647         (altivec_expand_lvx_be): Likewise.
28648         (altivec_expand_stvx_be): Likewise.
28649         (altivec_expand_builtin): Add cases for
28650         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
28651         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
28652         (altivec_init_builtins): Add definitions for
28653         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
28654         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
28656 2014-02-21  Catherine Moore  <clm@codesourcery.com>
28658         * doc/invoke.texi (mvirt, mno-virt): Document.
28659         * config/mips/mips.opt (mvirt): New option.
28660         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
28662 2014-02-21  Richard Biener  <rguenther@suse.de>
28664         PR tree-optimization/60276
28665         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
28666         (STMT_VINFO_MIN_NEG_DIST): New macro.
28667         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
28668         STMT_VINFO_MIN_NEG_DIST.
28669         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
28670         made for negative dependence distances still hold.
28672 2014-02-21  Richard Biener  <rguenther@suse.de>
28674         PR middle-end/60291
28675         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
28676         DECL_INITIAL for globals not in the current function context.
28678 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
28680         PR tree-optimization/56490
28681         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
28682         * tree-ssa-uninit.c: Include params.h.
28683         (compute_control_dep_chain): Add num_calls argument, return false
28684         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
28685         num_calls to recursive call.
28686         (find_predicates): Change dep_chain into normal array,
28687         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
28688         variable and adjust compute_control_dep_chain caller.
28689         (find_def_preds): Likewise.
28691 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
28693         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
28694         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
28696 2014-02-21  Nick Clifton  <nickc@redhat.com>
28698         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
28699         (pushhi1): Likewise.
28700         (popqi1): Add mode to pre_dec.
28701         (pophi1): Likewise.
28703 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
28705         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
28706         mode for mask of V8SFmode permutation.
28708 2014-02-20  Richard Henderson  <rth@redhat.com>
28710         PR c++/60272
28711         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
28712         a new pseudo for OLDVAL.
28714 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
28716         PR target/57896
28717         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
28718         gen_reg_rtx if d->testing_p.
28719         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
28720         if d->testing_p and we will certainly return true.
28721         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
28722         if d->testing_p.
28724 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
28726         * emit-rtl.c (gen_reg_rtx): Assert that
28727         crtl->emit.regno_pointer_align_length is non-zero.
28729 2014-02-20  Richard Henderson  <rth@redhat.com>
28731         PR c++/60272
28732         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
28733         on failure the store back into EXPECT.
28735 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
28736             Sandra Loosemore  <sandra@codesourcery.com>
28738         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
28739         * config/nios2/nios2.c (nios2_function_profiler): Add
28740         -fPIC (flag_pic == 2) support.
28741         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
28742         (nios2_large_offset_p): New function.
28743         (nios2_unspec_reloc_p): Move up position, update to use
28744         nios2_large_offset_p.
28745         (nios2_unspec_address): Remove function.
28746         (nios2_unspec_offset): New function.
28747         (nios2_large_got_address): New function.
28748         (nios2_got_address): Add large offset support.
28749         (nios2_legitimize_tls_address): Update usage of removed and new
28750         functions.
28751         (nios2_symbol_binds_local_p): New function.
28752         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
28753         (nios2_legitimize_address): Update to use nios2_large_offset_p.
28754         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
28755         (nios2_print_operand): Merge H/L processing, add hiadj/lo
28756         processing for (const (unspec ...)).
28757         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
28759 2014-02-20  Richard Biener  <rguenther@suse.de>
28761         * tree-cfg.c (replace_uses_by): Mark altered BBs before
28762         doing the substitution.
28763         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
28765 2014-02-20  Martin Jambor  <mjambor@suse.cz>
28767         PR ipa/55260
28768         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
28769         info when checking whether lattices are bottom.
28771 2014-02-20  Richard Biener  <rguenther@suse.de>
28773         PR middle-end/60221
28774         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
28775         regions at -O0.
28777 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
28779         PR ipa/58555
28780         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
28781         parameter specifying the scaling.
28782         (inline_call): Update.
28783         (want_inline_recursively): Guard division by zero.
28784         (recursive_inlining): Update.
28785         * ipa-inline.h (clone_inlined_nodes): Update.
28787 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
28789         PR target/60204
28790         * config/i386/i386.c (classify_argument): Pass structures of size
28791         64 bytes or less in register.
28793 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
28794             Kirill Yukhin  <kirill.yukhin@intel.com>
28796         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
28797         (_mm_rcp28_round_ss): Ditto.
28798         (_mm_rsqrt28_round_sd): Ditto.
28799         (_mm_rsqrt28_round_ss): Ditto.
28800         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
28801         (_mm_rcp14_round_ss): Ditto.
28802         (_mm_rsqrt14_round_sd): Ditto.
28803         (_mm_rsqrt14_round_ss): Ditto.
28804         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
28805         the first input operand, get rid of match_dup.
28806         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
28807         attribute to sse.
28808         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
28809         Ditto.
28810         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
28811         operand as the first input operand, set type attribute.
28812         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
28813         Set type attribute.
28814         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
28815         operand as the first input operand, set type attribute.
28817 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28819         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
28820         bit of zero.
28822 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
28824         PR target/60207
28825         * config/i386/i386.c (construct_container): Remove TFmode check
28826         for X86_64_INTEGER_CLASS.
28828 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
28830         PR target/59794
28831         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
28832         only when -Wpsabi is enabled.
28834 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
28836          PR target/59799
28837         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
28838         passing arrays in registers are the same as for structs, so remove the
28839         special case for them.
28841 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
28843         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
28844         destination type, extract only the valid bits if the source type is not
28845         integral and has a different mode.
28847 2014-02-19  Richard Biener  <rguenther@suse.de>
28849         PR ipa/60243
28850         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
28851         for all calls.
28853 2014-02-19  Richard Biener  <rguenther@suse.de>
28855         PR ipa/60243
28856         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
28857         (ipa_modify_call_arguments): Emit an argument load explicitely and
28858         preserve virtual SSA form there and for the replacement call.
28859         Do not update SSA form nor free dominance info.
28861 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
28863         * ipa.c (function_and_variable_visibility): Also clear WEAK
28864         flag when disolving COMDAT_GROUP.
28866 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
28868         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
28869         * ipa-prop.c (ipa_set_jf_known_type): Return early when
28870         not devirtualizing.
28871         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
28872         do more sanity checks.
28873         (detect_type_change): Return true when giving up early.
28874         (compute_complex_assign_jump_func): Fix type parameter of
28875         ipa_set_ancestor_jf.
28876         (compute_complex_ancestor_jump_func): Likewise.
28877         (update_jump_functions_after_inlining): Fix updating of
28878         ancestor function.
28879         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
28881 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
28883         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
28884         inline clones when edge disappears.
28886 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
28888         PR target/60203
28889         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
28890         Split 64-bit moves into 2 patterns.  Do not allow the use of
28891         direct move for TDmode in little endian, since the decimal value
28892         has little endian bytes within a word, but the 64-bit pieces are
28893         ordered in a big endian fashion, and normal subreg's of TDmode are
28894         not allowed.
28895         (mov<mode>_64bit_dm): Likewise.
28896         (movtd_64bit_nodm): Likewise.
28898 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
28900         PR tree-optimization/60174
28901         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
28902         statement of an SSA_NAME that occurs in an abnormal PHI node.
28904 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
28906         PR sanitizer/60142
28907         * final.c (SEEN_BB): Remove.
28908         (SEEN_NOTE, SEEN_EMITTED): Renumber.
28909         (final_scan_insn): Don't force_source_line on second
28910         NOTE_INSN_BASIC_BLOCK.
28912 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
28914         PR target/60205
28915         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
28916         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
28917         (type_natural_mode): Warn ABI change when %zmm register is not
28918         available for AVX512F vector value passing.
28920 2014-02-18  Kai Tietz  <ktietz@redhat.com>
28922         PR target/60193
28923         * config/i386/i386.c (ix86_expand_prologue): Use value in
28924         rax register as displacement when restoring %r10 or %rax.
28925         Fix wrong offset when restoring both registers.
28927 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
28929         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
28930         assertion with conditional return.
28932 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
28933             Uros Bizjak  <ubizjak@gmail.com>
28935         PR driver/60233
28936         * config/i386/driver-i386.c (host_detect_local_cpu): If
28937         YMM state is not saved by the OS, also clear has_f16c.  Move
28938         CPUID 0x80000001 handling before YMM state saving checking.
28940 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
28942         PR rtl-optimization/58960
28943         * haifa-sched.c (alloc_global_sched_pressure_data): New,
28944         factored out from ...
28945         (sched_init): ... here.
28946         (free_global_sched_pressure_data): New, factored out from ...
28947         (sched_finish): ... here.
28948         * sched-int.h (free_global_sched_pressure_data): Declare.
28949         * sched-rgn.c (nr_regions_initial): New static global.
28950         (haifa_find_rgns): Initialize it.
28951         (schedule_region): Disable sched-pressure for the newly
28952         generated regions.
28954 2014-02-17  Richard Biener  <rguenther@suse.de>
28956         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
28957         release SSA defs of pattern stmts.
28959 2014-02-17  Richard Biener  <rguenther@suse.de>
28961         * tree-inline.c (expand_call_inline): Release the virtual
28962         operand defined by the call we are about to inline.
28964 2014-02-17  Richard Biener  <rguenther@suse.de>
28966         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
28968 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
28969             Ilya Tocar  <ilya.tocar@intel.com>
28971         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
28972         arguments order in builtin.
28973         (_mm512_permutexvar_epi64): Ditto.
28974         (_mm512_mask_permutexvar_epi64): Ditto
28975         (_mm512_maskz_permutexvar_epi32): Ditto
28976         (_mm512_permutexvar_epi32): Ditto
28977         (_mm512_mask_permutexvar_epi32): Ditto
28979 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28981         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
28982         (p8_vmrgow): Likewise.
28984 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28986         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
28987         endian targets.
28989 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
28991         PR target/60203
28992         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
28993         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
28994         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
28995         using direct move instructions on ISA 2.07.  Also adjust
28996         instruction length for 64-bit.
28997         (mov<mode>_64bit, TFmode/TDmode): Likewise.
28998         (mov<mode>_32bit, TFmode/TDmode): Likewise.
29000 2014-02-15  Alan Modra  <amodra@gmail.com>
29002         PR target/58675
29003         PR target/57935
29004         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29005         find_replacement on parts of insn rtl that might be reloaded.
29007 2014-02-15  Richard Biener  <rguenther@suse.de>
29009         PR tree-optimization/60183
29010         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
29011         (tree_ssa_phiprop): Calculate and free post-dominators.
29013 2014-02-14  Jeff Law  <law@redhat.com>
29015         PR rtl-optimization/60131
29016         * ree.c (get_extended_src_reg): New function.
29017         (combine_reaching_defs): Use it rather than assuming location of REG.
29018         (find_and_remove_re): Verify first operand of extension is
29019         a REG before adding the insns to the copy list.
29021 2014-02-14  Roland McGrath  <mcgrathr@google.com>
29023         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
29024         * configure: Regenerated.
29025         * config.in: Regenerated.
29026         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
29027         instead of ASM_SHORT.
29029 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
29030             Richard Earnshaw  <rearnsha@arm.com>
29032         PR rtl-optimization/59535
29033         * lra-constraints.c (process_alt_operands): Encourage alternative
29034         when unassigned pseudo class is superset of the alternative class.
29035         (inherit_reload_reg): Don't inherit when optimizing for code size.
29036         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
29037         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
29038         modes not less than 4 for Thumb1.
29040 2014-02-14  Kyle McMartin  <kyle@redhat.com>
29042         PR pch/60010
29043         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
29045 2014-02-14  Richard Biener  <rguenther@suse.de>
29047         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
29048         (get_frame_arg): Drop the assert with langhook types_compatible_p.
29049         Do not strip INDIRECT_REFs.
29051 2014-02-14  Richard Biener  <rguenther@suse.de>
29053         PR lto/60179
29054         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
29055         DECL_FUNCTION_SPECIFIC_TARGET.
29056         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
29057         * tree-streamer-out.c (pack_ts_target_option): Remove.
29058         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
29059         (write_ts_function_decl_tree_pointers): Do not stream
29060         DECL_FUNCTION_SPECIFIC_TARGET.
29061         * tree-streamer-in.c (unpack_ts_target_option): Remove.
29062         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
29063         (lto_input_ts_function_decl_tree_pointers): Do not stream
29064         DECL_FUNCTION_SPECIFIC_TARGET.
29066 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
29068         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
29069         (get_initial_def_for_induction, vectorizable_induction): Ignore
29070         debug stmts when looking for exit_phi.
29071         (vectorizable_live_operation): Fix up condition.
29073 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29075         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
29076         nreverse() because it changes the content of original tree list.
29078 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29080         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
29081         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
29083 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
29085         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
29086         GNU coding standards.
29088 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
29090         PR debug/60152
29091         * dwarf2out.c (gen_subprogram_die): Don't call
29092         add_calling_convention_attribute if subr_die is old_die.
29094 2014-02-13  Sharad Singhai  <singhai@google.com>
29096         * doc/optinfo.texi: Fix order of nodes.
29098 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
29100         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
29101         operands[2], not operands[3].
29103 2014-02-13  Richard Biener  <rguenther@suse.de>
29105         PR bootstrap/59878
29106         * doc/install.texi (ISL): Update recommended version to 0.12.2,
29107         mention the possibility of an in-tree build.
29108         (CLooG): Update recommended version to 0.18.1, mention the
29109         possibility of an in-tree build and clarify that the ISL
29110         bundled with CLooG does not work.
29112 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
29114         PR target/43546
29115         * expr.c (compress_float_constant): If x is a hard register,
29116         extend into a pseudo and then move to x.
29118 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29120         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
29121         caused by bad second argument to warning_at() with -mhotpatch and
29122         nested functions (e.g. with gfortran).
29124 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
29126         * opts.c (option_name): Remove "enabled by default" rider.
29128 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
29130         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
29132 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
29133             Uros Bizjak  <ubizjak@gmail.com>
29135         PR target/60151
29136         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
29137         * configure: Regenerated.
29139 2014-02-12  Richard Biener  <rguenther@suse.de>
29141         * vec.c (vec_prefix::calculate_allocation): Move as
29142         inline variant to vec.h.
29143         (vec_prefix::calculate_allocation_1): New out-of-line version.
29144         * vec.h (vec_prefix::calculate_allocation_1): Declare.
29145         (vec_prefix::m_has_auto_buf): Rename to ...
29146         (vec_prefix::m_using_auto_storage): ... this.
29147         (vec_prefix::calculate_allocation): Inline the easy cases
29148         and dispatch to calculate_allocation_1 which doesn't need the
29149         prefix address.
29150         (va_heap::reserve): Use gcc_checking_assert.
29151         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
29152         m_using_auto_storage.
29153         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
29154         member and adjust.
29155         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
29156         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
29157         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
29159 2014-02-12  Richard Biener  <rguenther@suse.de>
29161         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
29162         when we found a dependence.
29164 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
29166         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
29167         common code...
29168         (maybe_fold_stmt): ... into this new function.
29169         * omp-low.c (lower_omp): Update comment.
29171         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
29172         last use.
29174         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
29175         dereference.
29177 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
29179         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
29180         identifiers in comments.
29181         (cortexa53_extra_costs): Likewise.
29182         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
29183         (cortexa7_extra_costs): Likewise.
29184         (cortexa12_extra_costs): Likewise.
29185         (cortexa15_extra_costs): Likewise.
29186         (v7m_extra_costs): Likewise.
29188 2014-02-12  Richard Biener  <rguenther@suse.de>
29190         PR middle-end/60092
29191         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
29192         of posix_memalign being successful.
29193         (lower_stmt): Restrict lowering of posix_memalign to when
29194         -ftree-bit-ccp is enabled.
29196 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29198         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
29199         arg_loc.
29200         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
29202 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
29204         PR rtl-optimization/60116
29205         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
29206         other_insn once the combination has been validated.
29208 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
29210         PR lto/59468
29211         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
29212         and wrapper.
29213         * ipa-devirt.c: Include demangle.h
29214         (odr_violation_reported): New static variable.
29215         (add_type_duplicate): Update odr_violations.
29216         (maybe_record_node): Add completep parameter; update it.
29217         (record_target_from_binfo): Add COMPLETEP parameter;
29218         update it as needed.
29219         (possible_polymorphic_call_targets_1): Likewise.
29220         (struct polymorphic_call_target_d): Add nonconstruction_targets;
29221         rename FINAL to COMPLETE.
29222         (record_targets_from_bases): Sanity check we found the binfo;
29223         fix COMPLETEP updating.
29224         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
29225         parameter, fix computing of COMPLETEP.
29226         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
29227         at LTO time do demangling.
29228         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
29229         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
29230         parameter.
29231         (gimple_get_virt_method_for_binfo): Likewise.
29232         * gimple-fold.h (gimple_get_virt_method_for_binfo,
29233         gimple_get_virt_method_for_vtable): Update prototypes.
29235 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
29237         PR target/49008
29238         * genautomata.c (add_presence_absence): Fix typo with
29239         {final_}presence_list.
29241 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
29243         PR target/60137
29244         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
29245         for VSX/Altivec vectors that land in GPR registers.
29247 2014-02-11  Richard Henderson  <rth@redhat.com>
29248             Jakub Jelinek  <jakub@redhat.com>
29250         PR debug/59776
29251         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
29252         around drhs if type conversion to lacc->type is not useless.
29254 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29256         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
29257         tuning struct.
29258         (cortex-a57.cortex-a53): Likewise.
29259         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
29261 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29263         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
29264         arm_restrict_it.
29266 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
29268         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
29269         add_options_for_arm_vfp3.
29271 2014-02-11  Jeff Law  <law@redhat.com>
29273         PR middle-end/54041
29274         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
29275         object with an undesirable mode.
29277 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29279         PR libgomp/60107
29280         * config/i386/sol2-9.h: New file.
29281         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
29282         *-*-solaris2.9*): Use it.
29284 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
29286         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
29287         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
29289 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
29291         * config/microblaze/microblaze.c: Extend mcpu version format
29293 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
29295         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
29297 2014-02-10  Richard Henderson  <rth@redhat.com>
29299         PR target/59927
29300         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
29301         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
29302         ms-abi vs -mno-accumulate-outgoing-args.
29303         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
29304         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
29305         respect to ms-abi.
29307 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29309         PR middle-end/60080
29310         * cfgexpand.c (expand_asm_operands): Attach source location to
29311         ASM_INPUT rtx objects.
29312         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
29314 2014-02-10  Nick Clifton  <nickc@redhat.com>
29316         * config/mn10300/mn10300.c (popcount): New function.
29317         (mn10300_expand_prologue): Include saved registers in stack usage
29318         count.
29320 2014-02-10  Jeff Law  <law@redhat.com>
29322         PR middle-end/52306
29323         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
29324         when changing the SET_DEST of a prior insn to avoid an input reload.
29326 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29328         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
29329         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
29330         -mcall-openbsd, or -mcall-linux.
29331         (CC1_ENDIAN_BIG_SPEC): Remove.
29332         (CC1_ENDIAN_LITTLE_SPEC): Remove.
29333         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29334         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
29335         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
29336         and %cc1_endian_default.
29337         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
29339 2014-02-10  Richard Biener  <rguenther@suse.de>
29341         PR tree-optimization/60115
29342         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
29343         MEM_REF handling.  Properly verify that the accesses are not
29344         out of the objects bound.
29346 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29348         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
29349         coretex to cortex.
29351 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
29353         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
29354         proper constants and fix formatting.
29355         (possible_polymorphic_call_targets): Fix formatting.
29357 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
29358             Ilya Tocar  <ilya.tocar@intel.com>
29360         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
29361         (_mm512_loadu_epi32): Renamed into...
29362         (_mm512_loadu_si512): This.
29363         (_mm512_storeu_epi32): Renamed into...
29364         (_mm512_storeu_si512): This.
29365         (_mm512_maskz_ceil_ps): Removed.
29366         (_mm512_maskz_ceil_pd): Ditto.
29367         (_mm512_maskz_floor_ps): Ditto.
29368         (_mm512_maskz_floor_pd): Ditto.
29369         (_mm512_floor_round_ps): Ditto.
29370         (_mm512_floor_round_pd): Ditto.
29371         (_mm512_ceil_round_ps): Ditto.
29372         (_mm512_ceil_round_pd): Ditto.
29373         (_mm512_mask_floor_round_ps): Ditto.
29374         (_mm512_mask_floor_round_pd): Ditto.
29375         (_mm512_mask_ceil_round_ps): Ditto.
29376         (_mm512_mask_ceil_round_pd): Ditto.
29377         (_mm512_maskz_floor_round_ps): Ditto.
29378         (_mm512_maskz_floor_round_pd): Ditto.
29379         (_mm512_maskz_ceil_round_ps): Ditto.
29380         (_mm512_maskz_ceil_round_pd): Ditto.
29381         (_mm512_expand_pd): Ditto.
29382         (_mm512_expand_ps): Ditto.
29383         * config/i386/i386.c (ix86_builtins): Remove
29384         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
29385         (bdesc_args): Ditto.
29386         * config/i386/predicates.md (const1256_operand): New.
29387         (const_1_to_2_operand): Ditto.
29388         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
29389         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
29390         (*avx512pf_gatherpf<mode>sf): Ditto.
29391         (avx512pf_gatherpf<mode>df): Ditto.
29392         (*avx512pf_gatherpf<mode>df_mask): Ditto.
29393         (*avx512pf_gatherpf<mode>df): Ditto.
29394         (avx512pf_scatterpf<mode>sf): Ditto.
29395         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
29396         (*avx512pf_scatterpf<mode>sf): Ditto.
29397         (avx512pf_scatterpf<mode>df): Ditto.
29398         (*avx512pf_scatterpf<mode>df_mask): Ditto.
29399         (*avx512pf_scatterpf<mode>df): Ditto.
29400         (avx512f_expand<mode>): Removed.
29401         (<shift_insn><mode>3<mask_name>): Change predicate type.
29403 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
29405         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
29406         not at the end of datarefs vector use ordered_remove to avoid
29407         reordering datarefs vector.
29409         PR c/59984
29410         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
29411         mark local addressable non-static vars as GOVD_PRIVATE
29412         instead of GOVD_LOCAL.
29413         * omp-low.c (lower_omp_for): Move gimple_bind_vars
29414         and BLOCK_VARS of gimple_bind_block to new_stmt rather
29415         than copying them.
29417         PR middle-end/60092
29418         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
29419         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
29420         assume_aligned or alloc_align attributes.
29421         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
29422         arguments.  Handle also assume_aligned and alloc_align attributes.
29423         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
29424         calls to functions with assume_aligned or alloc_align attributes.
29425         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
29427 2014-02-08  Terry Guo  <terry.guo@arm.com>
29429         * doc/invoke.texi: Document ARM -march=armv7e-m.
29431 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
29433         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
29434         flag on __cilkrts_rethrow builtin.
29436         PR ipa/60026
29437         * ipa-cp.c (determine_versionability): Fail at -O0
29438         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
29439         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
29441         Revert:
29442         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
29444         PR ipa/60026
29445         * tree-inline.c (copy_forbidden): Fail for
29446         __attribute__((optimize (0))) functions.
29448 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
29450         * varpool.c: Include pointer-set.h.
29451         (varpool_remove_unreferenced_decls): Variables in other partitions
29452         will not be output; be however careful to not lose information
29453         about partitioning.
29455 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
29457         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
29458         lookup in the vtable constructor.
29460 2014-02-07  Jeff Law  <law@redhat.com>
29462         PR target/40977
29463         * config/m68k/m68k.md (ashldi_extsi): Turn into a
29464         define_insn_and_split.
29466         * ipa-inline.c (inline_small_functions): Fix typos.
29468 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29470         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
29471         (s390_can_use_return_insn): Declare.
29472         * config/s390/s390.h (EPILOGUE_USES): Define.
29473         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
29474         instructions.
29475         (s390_chunkify_start): Handle return JUMP_LABELs.
29476         (s390_early_mach): Emit a main_pool instruction on the entry edge.
29477         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
29478         (s390_can_use_return_insn): New functions.
29479         (s390_fix_long_loop_prediction): Handle conditional returns.
29480         (TARGET_SET_UP_BY_PROLOGUE): Define.
29481         * config/s390/s390.md (ANY_RETURN): New code iterator.
29482         (*creturn, *csimple_return, return, simple_return): New patterns.
29484 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29486         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
29487         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
29488         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
29489         REG_CFA_RESTORE list when deciding not to restore a register.
29491 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29493         * config/s390/s390.c: Include tree-pass.h and context.h.
29494         (s390_early_mach): New function, split out from...
29495         (s390_emit_prologue): ...here.
29496         (pass_data_s390_early_mach): New pass structure.
29497         (pass_s390_early_mach): New class.
29498         (s390_option_override): Create and register early_mach pass.
29499         Move to end of file.
29501 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29503         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
29504         to match for the exit block.
29506 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29508         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
29509         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
29510         Reject misaligned operands.
29512 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29514         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
29516 2014-02-07  Richard Biener  <rguenther@suse.de>
29518         PR middle-end/60092
29519         * gimple-low.c (lower_builtin_posix_memalign): New function.
29520         (lower_stmt): Call it to lower posix_memalign in a way
29521         to make alignment info accessible.
29523 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
29525         PR c++/60082
29526         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
29527         __builtin_setjmp_receiver.
29529 2014-02-07  Richard Biener  <rguenther@suse.de>
29531         PR middle-end/60092
29532         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
29533         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
29534         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29535         Handle BUILT_IN_POSIX_MEMALIGN.
29536         (find_func_clobbers): Likewise.
29537         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
29538         (call_may_clobber_ref_p_1): Likewise.
29540 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29542         PR ipa/59918
29543         * ipa-devirt.c (record_target_from_binfo): Remove overactive
29544         sanity check.
29546 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29548         PR ipa/59469
29549         * lto-cgraph.c (lto_output_node): Use
29550         symtab_get_symbol_partitioning_class.
29551         (lto_output_varpool_node): likewise.
29552         (symtab_get_symbol_partitioning_class): Move here from
29553         lto/lto-partition.c
29554         * cgraph.h (symbol_partitioning_class): Likewise.
29555         (symtab_get_symbol_partitioning_class): Declare.
29557 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29559         * ggc.h (ggc_internal_cleared_alloc): New macro.
29560         * vec.h (vec_safe_copy): Handle memory stats.
29561         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
29562         * target-globals.c (save_target_globals): Likewise.
29564 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
29566         PR target/60077
29567         * expr.c (emit_move_resolve_push): Export; be bit more selective
29568         on when to clear alias set.
29569         * expr.h (emit_move_resolve_push): Declare.
29570         * function.h (struct function): Add tail_call_marked.
29571         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
29572         * config/i386/i386-protos.h (ix86_expand_push): Remove.
29573         * config/i386/i386.md (TImode move expander): De not call
29574         ix86_expand_push.
29575         (FP push expanders): Preserve memory attributes.
29576         * config/i386/sse.md (push<mode>1): Remove.
29577         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
29578         (ix86_expand_push): Remove.
29579         * config/i386/mmx.md (push<mode>1): Remove.
29581 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
29583         PR rtl-optimization/60030
29584         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
29585         lopart with paradoxical subreg before shifting it up by hprec.
29587 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29589         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
29590         Remove extra newline at end of file.
29591         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
29592         (arm_issue_rate): Handle cortexa57.
29593         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
29594         (cortex-a57.cortex-a53): Likewise.
29596 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
29598         PR target/59575
29599         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
29600         don't record in REG_FRAME_RELATED_EXPR registers not set in that
29601         bitmask.
29602         (arm_expand_prologue): Adjust all callers.
29603         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
29604         info, registers also at the lowest numbered registers side.  Use
29605         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
29606         XEXP.
29608         PR debug/59992
29609         * var-tracking.c (adjust_mems): Before adding a SET to
29610         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
29612 2014-02-06  Alan Modra  <amodra@gmail.com>
29614         PR target/60032
29615         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
29616         change SDmode to DDmode when lra_in_progress.
29618 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
29620         PR middle-end/59150
29621         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
29622         free_data_ref on the dr first, and before goto again also set dr
29623         to the next dr.  For simd_lane_access, free old datarefs[i] before
29624         overwriting it.  For get_vectype_for_scalar_type failure, don't
29625         free_data_ref if simd_lane_access.
29627         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
29629         PR target/60062
29630         * tree.h (opts_for_fn): New inline function.
29631         (opt_for_fn): Define.
29632         * config/i386/i386.c (ix86_function_regparm): Use
29633         opt_for_fn (decl, optimize) instead of optimize.
29635 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29637         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
29638         for SYMBOL_REF in large memory model.
29640 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29642         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
29643         and crypto support.
29644         (cortex-a57): Likewise.
29645         (cortex-a57.cortex-a53): Likewise.
29647 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
29648             Kugan Vivekanandarajah  <kuganv@linaro.org>
29650         * config/arm/arm.c (arm_vector_alignment_reachable): Check
29651         unaligned_access.
29652         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
29654 2014-02-06  Richard Biener  <rguenther@suse.de>
29656         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
29657         set_loop_copy and initialize_original_copy_tables.
29659 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
29661         * config/aarch64/aarch64-simd.md
29662         (aarch64_ashr_simddi): Change QI to SI.
29664 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
29665             Jakub Jelinek  <jakub@redhat.com>
29667         PR middle-end/60013
29668         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
29669         of the dataflow.
29671 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29673         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
29674         CODE_FOR_altivec_vpku[hw]um to
29675         CODE_FOR_altivec_vpku[hw]um_direct.
29676         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
29677         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
29678         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
29679         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
29681 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29683         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
29684         generation for -maltivec=be.
29685         (altivec_vsumsws): Simplify redundant test.
29687 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29689         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
29690         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
29691         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
29692         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
29693         gen_altivec_vpkuwum.
29694         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
29695         BYTES_BIG_ENDIAN.
29696         (altivec_vpks<VI_char>ss): Likewise.
29697         (altivec_vpks<VI_char>us): Likewise.
29698         (altivec_vpku<VI_char>us): Likewise.
29699         (altivec_vpku<VI_char>um): Likewise.
29700         (altivec_vpku<VI_char>um_direct): New (copy of
29701         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
29702         internal use).
29703         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
29704         target is little endian and -maltivec=be is not specified.
29705         (*altivec_vupkhs<VU_char>_direct): New (copy of
29706         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
29707         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
29708         target is little endian and -maltivec=be is not specified.
29709         (*altivec_vupkls<VU_char>_direct): New (copy of
29710         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
29711         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
29712         little endian and -maltivec=be is not specified.
29713         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
29714         little endian and -maltivec=be is not specified.
29716 2014-02-05  Richard Henderson  <rth@redhat.com>
29718         PR debug/52727
29719         * combine-stack-adj.c: Revert r206943.
29720         * sched-int.h (struct deps_desc): Add last_args_size.
29721         * sched-deps.c (init_deps): Initialize it.
29722         (sched_analyze_insn): Add OUTPUT dependencies between insns that
29723         contain REG_ARGS_SIZE notes.
29725 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
29727         * lto-cgraph.c (asm_nodes_output): Make global.
29728         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
29729         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
29730         (driver_handle_option): Handle OPT_fwpa.
29732 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
29734         PR ipa/59947
29735         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
29736         a comment typo and formatting issue.  If odr_hash hasn't been
29737         created, return vNULL and set *completep to false.
29739         PR middle-end/57499
29740         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
29741         bb with no successors.
29743 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
29745         PR target/59718
29746         * doc/invoke.texi (-march): Clarify documentation for ARM.
29747         (-mtune): Likewise.
29748         (-mcpu): Likewise.
29750 2014-02-05  Richard Biener  <rguenther@suse.de>
29752         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
29753         when not vectorizing because of too many alias checks.
29754         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
29755         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
29757 2014-02-05  Nick Clifton  <nickc@redhat.com>
29759         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
29760         accept extended registers in any mode when compiling for the MN10300.
29762 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
29764         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
29765         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
29766         sanitization attributes.
29767         (can_inline_edge_p): Likewise.
29768         (sanitize_attrs_match_for_inline_p): New function.
29770 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
29772         * ipa-prop.c (detect_type_change): Shor circuit testing of
29773         type changes on THIS pointer.
29775 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
29777         PR target/59777
29778         * config/pa/pa.c (legitimize_tls_address): Return original address
29779         if not passed a SYMBOL_REF rtx.
29780         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
29781         addresses.
29782         (pa_emit_move_sequence): Simplify TLS source operands.
29783         (pa_legitimate_constant_p): Reject all TLS constants.
29784         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
29785         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
29787 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
29789         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
29790         groups when we know they are controlled by LTO.
29791         * varasm.c (default_binds_local_p_1): If object is in other partition,
29792         it will be resolved locally.
29794 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29796         * config/host-linux.c (linux_gt_pch_use_address): Don't
29797         use SSIZE_MAX because it is not always defined.
29799 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
29801         PR bootstrap/59913
29802         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
29803         threshold for pseudo splitting.
29804         (update_ebb_live_info): Process call argument hard registers and
29805         hard registers from insn definition too.
29806         (max_small_class_regs_num): New constant.
29807         (inherit_in_ebb): Update live hard regs through EBBs.  Update
29808         reloads_num only for small register classes.  Don't split for
29809         outputs of jumps.
29811 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
29813         PR ipa/60058
29814         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
29815         is non-null.
29817 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
29819         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
29820         visibility is safe.
29822 2014-02-04  Marek Polacek  <polacek@redhat.com>
29824         * gdbinit.in (pel): Define.
29826 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29828         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
29829         behavior.
29831 2014-02-04  Richard Biener  <rguenther@suse.de>
29833         PR lto/59723
29834         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
29835         in function context local.
29836         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
29837         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
29838         similar to LTO_imported_decl_ref.
29840 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
29842         PR tree-optimization/60002
29843         * cgraphclones.c (build_function_decl_skip_args): Clear
29844         DECL_LANG_SPECIFIC.
29846         PR tree-optimization/60023
29847         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
29848         false to gsi_replace.
29849         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
29850         has been in some EH region and vec_stmt could throw, add
29851         vec_stmt into the same EH region.
29852         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
29853         has no lhs, ignore it.
29854         * internal-fn.c (expand_MASK_LOAD): Likewise.
29856         PR ipa/60026
29857         * tree-inline.c (copy_forbidden): Fail for
29858         __attribute__((optimize (0))) functions.
29860         PR other/58712
29861         * omp-low.c (simd_clone_struct_copy): If from->inbranch
29862         is set, copy one less argument.
29863         (expand_simd_clones): Don't subtract clone_info->inbranch
29864         from simd_clone_struct_alloc argument.
29866         PR rtl-optimization/57915
29867         * recog.c (simplify_while_replacing): If all unary/binary/relational
29868         operation arguments are constant, attempt to simplify those.
29870         PR middle-end/59261
29871         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
29872         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
29874 2014-02-04  Richard Biener  <rguenther@suse.de>
29876         PR tree-optimization/60012
29877         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
29878         TBAA disambiguation to all DDRs.
29880 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29882         PR target/59788
29883         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
29884         (LINK_SPEC): Use it for -shared, -shared-libgcc.
29886 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
29888         PR ipa/59882
29889         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
29891 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
29893         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
29894         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
29896 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
29898         PR ipa/59831
29899         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
29900         to figure out targets of polymorphic calls with known decl.
29901         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29902         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
29903         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
29904         (get_polymorphic_call_info): ... here.
29905         (get_polymorphic_call_info_from_invariant): New function.
29907 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
29909         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
29910         lookup via vtable pointer; check for type consistency
29911         and turn inconsitent facts into UNREACHABLE.
29912         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29913         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
29914         type inconsistent querries; return UNREACHABLE instead.
29916 2014-02-03  Richard Henderson  <rth@twiddle.net>
29918         PR tree-opt/59924
29919         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
29920         already processed this node.
29921         (normalize_one_pred_1): Pass along mark_set.
29922         (normalize_one_pred): Create and destroy a pointer_set_t.
29923         (normalize_one_pred_chain): Likewise.
29925 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
29927         PR gcov-profile/58602
29928         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
29930 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
29932         PR ipa/59831
29933         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
29934         -fno-devirtualize; try to devirtualize by the knowledge of
29935         virtual table pointer given by aggregate propagation.
29936         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29937         (ipa_print_node_jump_functions): Dump also offset that
29938         is relevant for polymorphic calls.
29939         (determine_known_aggregate_parts): Add arg_type parameter; use it
29940         instead of determining the type from pointer type.
29941         (ipa_compute_jump_functions_for_edge): Update call of
29942         determine_known_aggregate_parts.
29943         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
29944         (gimple_get_virt_method_for_binfo): ... here; simplify using
29945         vtable_pointer_value_to_vtable.
29946         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
29947         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
29948         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
29949         (vtable_pointer_value_to_vtable): Break out from ...; handle also
29950         POINTER_PLUS_EXPR.
29951         (vtable_pointer_value_to_binfo): ... here.
29952         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
29954 2014-02-03  Teresa Johnson  <tejohnson@google.com>
29956         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
29957         redef of outer loop index variable.
29959 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
29961         PR c++/53017
29962         PR c++/59211
29963         * doc/extend.texi (Function Attributes): Typo.
29965 2014-02-03  Cong Hou  <congh@google.com>
29967         PR tree-optimization/60000
29968         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
29969         if the vectorized statement is a store.  A store statement can only
29970         appear at the end of pattern statements.
29972 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
29974         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
29975         (ix86_option_override_internal): Default long double to 64-bit for
29976         32-bit Bionic and to 128-bit for 64-bit Bionic.
29978         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
29979         TARGET_LONG_DOUBLE_128 is true.
29980         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
29982         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
29983         (mlong-double-64): Negate -mlong-double-128.
29984         (mlong-double-128): New option.
29986         * config/i386/i386-c.c (ix86_target_macros): Define
29987         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
29989         * doc/invoke.texi: Document -mlong-double-128.
29991 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
29993         PR rtl-optimization/60024
29994         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
29996 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
29998         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
30000 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
30002         PR rtl-optimization/57662
30003         * sel-sched.c (code_motion_path_driver): Do not mark already not
30004         existing blocks in the visiting bitmap.
30006 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
30008         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
30009         on the insn being emitted.
30011 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
30012             Will Deacon  <will.deacon@arm.com>
30014         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
30016 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30018         * config/arm/arm-tables.opt: Regenerate.
30020 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30022         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
30023         for vector types other than V16QImode.
30024         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
30025         define_expand, and call altivec_expand_vec_perm_le when producing
30026         code with little endian element order.
30027         (*altivec_vperm_<mode>_internal): New insn having previous
30028         behavior of altivec_vperm_<mode>.
30029         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
30030         altivec_expand_vec_perm_le when producing code with little endian
30031         element order.
30032         (*altivec_vperm_<mode>_uns_internal): New insn having previous
30033         behavior of altivec_vperm_<mode>_uns.
30035 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30037         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
30038         (altivec_vsumsws): Add handling for -maltivec=be with a little
30039         endian target.
30040         (altivec_vsumsws_direct): New.
30041         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
30042         gen_altivec_vsumsws.
30044 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
30046         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
30047         vtable_pointer_value_to_binfo): New functions.
30048         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
30049         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
30051 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
30053         * config/nios2/nios2.md (load_got_register): Initialize GOT
30054         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
30055         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
30057 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
30059         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
30060         preserverd by passthrough, do not propagate the type.
30062 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30064         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
30065         (mips_atomic_assign_expand_fenv): New function.
30066         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30068 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30070         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
30071         (__builtin_mips_set_fcsr): Likewise.
30072         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
30073         MIPS_USI_FTYPE_VOID.
30074         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
30075         (mips16_expand_set_fcsr): Likewise.
30076         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
30077         (mips16_set_fcsr_stub): Likewise.
30078         (mips16_get_fcsr_one_only_stub): New class.
30079         (mips16_set_fcsr_one_only_stub): Likewise.
30080         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
30081         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
30082         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
30083         (hard_float): New availability predicate.
30084         (mips_builtins): Add get_fcsr and set_fcsr.
30085         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
30086         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
30087         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
30088         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
30089         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
30090         patterns.
30092 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
30094         * config/mips/mips.c (mips_one_only_stub): New class.
30095         (mips_need_mips16_rdhwr_p): Replace with...
30096         (mips16_rdhwr_stub): ...this new variable.
30097         (mips16_stub_call_address): New function.
30098         (mips16_rdhwr_one_only_stub): New class.
30099         (mips_expand_thread_pointer): Use mips16_stub_call_address.
30100         (mips_output_mips16_rdhwr): Delete.
30101         (mips_finish_stub): New function.
30102         (mips_code_end): Use it to handle rdhwr stubs.
30104 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
30106         PR target/60017
30107         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
30108         when calculating size of integer atomic types.
30110 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
30112         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
30114 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
30116         PR tree-optimization/60003
30117         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
30118         * profile.c (branch_prob): Use gimple_call_builtin_p
30119         to check for BUILT_IN_SETJMP_RECEIVER.
30120         * tree-inline.c (copy_bb): Call notice_special_calls.
30122 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
30124         PR bootstrap/59985
30125         * lra-constraints.c (process_alt_operands): Update reload_sum only
30126         on the first pass.
30128 2014-01-31  Richard Henderson  <rth@redhat.com>
30130         PR middle-end/60004
30131         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
30132         until after else_eh is processed.
30134 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
30136         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
30137         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
30138         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
30139         in smmintrin.h, remove them.
30140         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
30141         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
30142         * config/i386/i386.md (ROUND_SAE): Fix value.
30143         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
30144         (const48_operand): New.
30145         * config/i386/subst.md (round), (round_expand): Use
30146         const_4_or_8_to_11_operand.
30147         (round_saeonly), (round_saeonly_expand): Use const48_operand.
30149 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
30151         * config/i386/constraints.md (Yk): Swap meaning with k.
30152         * config/i386/i386.md (movhi_internal): Change Yk to k.
30153         (movqi_internal): Ditto.
30154         (*k<logic><mode>): Ditto.
30155         (*andhi_1): Ditto.
30156         (*andqi_1): Ditto.
30157         (kandn<mode>): Ditto.
30158         (*<code>hi_1): Ditto.
30159         (*<code>qi_1): Ditto.
30160         (kxnor<mode>): Ditto.
30161         (kortestzhi): Ditto.
30162         (kortestchi): Ditto.
30163         (kunpckhi): Ditto.
30164         (*one_cmplhi2_1): Ditto.
30165         (*one_cmplqi2_1): Ditto.
30166         * config/i386/sse.md (): Change k to Yk.
30167         (avx512f_load<mode>_mask): Ditto.
30168         (avx512f_blendm<mode>): Ditto.
30169         (avx512f_store<mode>_mask): Ditto.
30170         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
30171         (avx512f_storedqu<mode>_mask): Ditto.
30172         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
30173         Ditto.
30174         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
30175         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
30176         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
30177         (avx512f_maskcmp<mode>3): Ditto.
30178         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
30179         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
30180         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
30181         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
30182         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
30183         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
30184         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
30185         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
30186         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
30187         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
30188         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
30189         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
30190         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
30191         (vec_extract_lo_<mode>_maskm): Ditto.
30192         (vec_extract_hi_<mode>_maskm): Ditto.
30193         (avx512f_vternlog<mode>_mask): Ditto.
30194         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
30195         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
30196         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
30197         (avx512f_<code>v8div16qi2_mask): Ditto.
30198         (avx512f_<code>v8div16qi2_mask_store): Ditto.
30199         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
30200         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
30201         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
30202         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
30203         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
30204         (*avx512pf_gatherpf<mode>df_mask): Ditto.
30205         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
30206         (*avx512pf_scatterpf<mode>df_mask): Ditto.
30207         (avx512cd_maskb_vec_dupv8di): Ditto.
30208         (avx512cd_maskw_vec_dupv16si): Ditto.
30209         (avx512f_vpermi2var<mode>3_maskz): Ditto.
30210         (avx512f_vpermi2var<mode>3_mask): Ditto.
30211         (avx512f_vpermi2var<mode>3_mask): Ditto.
30212         (avx512f_vpermt2var<mode>3_maskz): Ditto.
30213         (*avx512f_gathersi<mode>): Ditto.
30214         (*avx512f_gathersi<mode>_2): Ditto.
30215         (*avx512f_gatherdi<mode>): Ditto.
30216         (*avx512f_gatherdi<mode>_2): Ditto.
30217         (*avx512f_scattersi<mode>): Ditto.
30218         (*avx512f_scatterdi<mode>): Ditto.
30219         (avx512f_compress<mode>_mask): Ditto.
30220         (avx512f_compressstore<mode>_mask): Ditto.
30221         (avx512f_expand<mode>_mask): Ditto.
30222         * config/i386/subst.md (mask): Change k to Yk.
30223         (mask_scalar_merge): Ditto.
30224         (sd): Ditto.
30226 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
30228         * doc/extend.texi (Vector Extensions): Document ?: in C++.
30230 2014-01-31  Richard Biener  <rguenther@suse.de>
30232         PR middle-end/59990
30233         * builtins.c (fold_builtin_memory_op): Make sure to not
30234         use a floating-point mode or a boolean or enumeral type for
30235         the copy operation.
30237 2014-01-30  DJ Delorie  <dj@redhat.com>
30239         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
30240         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
30241         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
30242         whenever main() has an epilogue.
30244 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30246         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
30247         unused variable "field".
30248         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
30249         (vsx_mergeh_<mode>): Likewise.
30250         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
30251         (altivec_vmrghh): Likewise.
30252         (altivec_vmrghw): Likewise.
30253         (altivec_vmrglb): Likewise.
30254         (altivec_vmrglh): Likewise.
30255         (altivec_vmrglw): Likewise.
30256         (altivec_vspltb): Add missing uses.
30257         (altivec_vsplth): Likewise.
30258         (altivec_vspltw): Likewise.
30259         (altivec_vspltsf): Likewise.
30261 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
30263         PR target/59923
30264         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
30265         frame related instructions.
30267 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
30269         PR rtl-optimization/59959
30270         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
30271         any reload of register whose subreg is invalid.
30273 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
30275         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
30276         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
30277         Add missing return type - void.
30279 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30281         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
30282         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
30283         remove element index adjustment for endian (now handled in vsx.md
30284         and altivec.md).
30285         (altivec_expand_vec_perm_const): Use
30286         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
30287         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
30288         (vsx_xxspltw_<mode>): Adjust element index for little endian.
30289         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
30290         define_expand and a new define_insn *altivec_vspltb_internal;
30291         adjust for -maltivec=be on a little endian target.
30292         (altivec_vspltb_direct): New.
30293         (altivec_vsplth): Divide into a define_expand and a new
30294         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
30295         little endian target.
30296         (altivec_vsplth_direct): New.
30297         (altivec_vspltw): Divide into a define_expand and a new
30298         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
30299         little endian target.
30300         (altivec_vspltw_direct): New.
30301         (altivec_vspltsf): Divide into a define_expand and a new
30302         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
30303         a little endian target.
30305 2014-01-30  Richard Biener  <rguenther@suse.de>
30307         PR tree-optimization/59993
30308         * tree-ssa-forwprop.c (associate_pointerplus): Check we
30309         can propagate form the earlier stmt and avoid the transform
30310         when the intermediate result is needed.
30312 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
30314         * README.Portability: Fix typo.
30316 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
30318         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
30319         comparison_operator with ordered_comparison_operator.
30321 2014-01-30  Nick Clifton  <nickc@redhat.com>
30323         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
30324         Rename to mn10300_store_multiple_regs.
30325         * config/mn10300/mn10300.c: Likewise.
30326         * config/mn10300/mn10300.md (store_movm): Fix typo: call
30327         store_multiple_regs.
30328         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
30329         Call mn10300_store_multiple_regs.
30331 2014-01-30  Nick Clifton  <nickc@redhat.com>
30332             DJ Delorie  <dj@redhat.com>
30334         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
30335         %fp 2 to keep registers after it properly word-aligned.
30336         (rl78_alloc_physical_registers_umul): Handle the case where both
30337         input operands are the same.
30339 2014-01-30  Richard Biener  <rguenther@suse.de>
30341         PR tree-optimization/59903
30342         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
30343         check properly.
30345 2014-01-30  Jason Merrill  <jason@redhat.com>
30347         PR c++/59633
30348         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
30350         PR c++/59645
30351         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
30353 2014-01-30  Richard Biener  <rguenther@suse.de>
30355         PR tree-optimization/59951
30356         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
30358 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
30360         PR target/59784
30361         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
30362         SFmode to DFmode case.
30364 2014-01-29  DJ Delorie  <dj@redhat.com>
30366         * config/msp430/msp430.opt (-minrt): New.
30367         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
30368         if -minrt given.
30369         (ENDFILE_SPEC): Likewise.
30371 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
30373         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
30374         (estimate_function_body_sizes): Use it.
30376 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
30378         PR c++/58561
30379         * dwarf2out.c (is_cxx_auto): New.
30380         (is_base_type): Use it.
30381         (gen_type_die_with_usage): Likewise.
30383 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30385         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
30386         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
30387         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
30388         -maltivec=be with LE targets.
30389         (vsx_mergeh_<mode>): Likewise.
30390         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
30391         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
30392         (altivec_vmrghb): Replace with define_expand and new
30393         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
30394         (altivec_vmrghb_direct): New define_insn.
30395         (altivec_vmrghh): Replace with define_expand and new
30396         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
30397         (altivec_vmrghh_direct): New define_insn.
30398         (altivec_vmrghw): Replace with define_expand and new
30399         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
30400         (altivec_vmrghw_direct): New define_insn.
30401         (*altivec_vmrghsf): Adjust for endianness.
30402         (altivec_vmrglb): Replace with define_expand and new
30403         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
30404         (altivec_vmrglb_direct): New define_insn.
30405         (altivec_vmrglh): Replace with define_expand and new
30406         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
30407         (altivec_vmrglh_direct): New define_insn.
30408         (altivec_vmrglw): Replace with define_expand and new
30409         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
30410         (altivec_vmrglw_direct): New define_insn.
30411         (*altivec_vmrglsf): Adjust for endianness.
30412         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30413         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30414         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
30415         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
30416         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30417         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30418         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
30419         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
30421 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30423         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
30424         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
30425         whitespace.
30427 2014-01-29  Richard Biener  <rguenther@suse.de>
30429         PR tree-optimization/58742
30430         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
30431         associate_pointerplus_align.
30432         (associate_pointerplus_diff): New function.
30433         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
30434         and associate_pointerplus_diff.
30436 2014-01-29  Richard Biener  <rguenther@suse.de>
30438         * lto-streamer.h (LTO_major_version): Bump to 3.
30439         (LTO_minor_version): Reset to 0.
30441 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
30443         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
30444         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
30445         (arm_file_start): Generate correct asm header for armv7ve.
30446         * config/arm/bpabi.h: Add multilib support for armv7ve.
30447         * config/arm/driver-arm.c: Change the architectures of cortex-a7
30448         and cortex-a15 to armv7ve.
30449         * config/arm/t-aprofile: Add multilib support for armv7ve.
30450         * doc/invoke.texi: Document -march=armv7ve.
30452 2014-01-29  Richard Biener  <rguenther@suse.de>
30454         PR tree-optimization/58742
30455         * tree-ssa-forwprop.c (associate_plusminus): Return true
30456         if we changed sth, defer EH cleanup to ...
30457         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
30458         (simplify_mult): New function.
30460 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
30462         PR middle-end/59917
30463         PR tree-optimization/59920
30464         * tree.c (build_common_builtin_nodes): Remove
30465         __builtin_setjmp_dispatcher initialization.
30466         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
30467         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
30468         instead of gsi_after_labels + manually skipping debug stmts.
30469         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
30470         ignore bbs with IFN_ABNORMAL_DISPATCHER.
30471         * tree-inline.c (copy_edges_for_bb): Remove
30472         can_make_abnormal_goto argument, instead add abnormal_goto_dest
30473         argument.  Ignore computed_goto_p stmts.  Don't call
30474         make_abnormal_goto_edges.  If a call might need abnormal edges
30475         for non-local gotos, see if it already has an edge to
30476         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
30477         with true argument, don't do anything then, otherwise add
30478         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
30479         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
30480         caller.
30481         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
30482         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
30483         (lower_stmt): Don't set data->calls_builtin_setjmp.
30484         (lower_builtin_setjmp): Adjust comment.
30485         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
30486         * tree-cfg.c (found_computed_goto): Remove.
30487         (factor_computed_gotos): Remove.
30488         (make_goto_expr_edges): Return bool, true for computed gotos.
30489         Don't call make_abnormal_goto_edges.
30490         (build_gimple_cfg): Don't set found_computed_goto, don't call
30491         factor_computed_gotos.
30492         (computed_goto_p): No longer static.
30493         (make_blocks): Don't set found_computed_goto.
30494         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
30495         (make_edges): If make_goto_expr_edges returns true, push bb
30496         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
30497         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
30498         vector.  Record mapping between bbs and OpenMP regions if there
30499         are any, adjust make_gimple_omp_edges caller.  Call
30500         handle_abnormal_edges.
30501         (make_abnormal_goto_edges): Remove.
30502         * tree-cfg.h (make_abnormal_goto_edges): Remove.
30503         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
30504         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
30505         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
30506         * internal-fn.def (ABNORMAL_DISPATCHER): New.
30507         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
30508         filling *region also set *region_idx to (*region)->entry->index.
30510         PR other/58712
30511         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
30512         For REGs set ORIGINAL_REGNO.
30514 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
30516         * doc/md.texi: Mention that a target shouldn't implement
30517         vec_widen_(s|u)mul_even/odd pair if it is less efficient
30518         than hi/lo pair.
30520 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
30522         PR tree-optimization/59594
30523         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
30524         a copy of the datarefs vector rather than the vector itself.
30526 2014-01-28  Jason Merrill  <jason@redhat.com>
30528         PR c++/53756
30529         * dwarf2out.c (auto_die): New static.
30530         (gen_type_die_with_usage): Handle C++1y 'auto'.
30531         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
30532         on definition.
30534 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
30536         PR target/59672
30537         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
30538         (SPEC_X32): Likewise.
30539         (SPEC_64): Likewise.
30540         * config/i386/i386.c (ix86_option_override_internal): Turn off
30541         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
30542         for TARGET_16BIT.
30543         (x86_file_start): Output .code16gcc for TARGET_16BIT.
30544         * config/i386/i386.h (TARGET_16BIT): New macro.
30545         (TARGET_16BIT_P): Likewise.
30546         * config/i386/i386.opt: Add m16.
30547         * doc/invoke.texi: Document -m16.
30549 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
30551         PR preprocessor/59935
30552         * input.c (location_get_source_line): Bail out on when line number
30553         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
30555 2014-01-28  Richard Biener  <rguenther@suse.de>
30557         PR tree-optimization/58742
30558         * tree-ssa-forwprop.c (associate_plusminus): Handle
30559         pointer subtraction of the form (T)(P + A) - (T)P.
30561 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30563         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
30564         at const_int_cost.
30566 2014-01-28  Richard Biener  <rguenther@suse.de>
30568         Revert
30569         2014-01-28  Richard Biener  <rguenther@suse.de>
30571         PR rtl-optimization/45364
30572         PR rtl-optimization/59890
30573         * var-tracking.c (local_get_addr_clear_given_value): Handle
30574         already cleared slot.
30575         (val_reset): Handle not allocated local_get_addr_cache.
30576         (vt_find_locations): Use post-order on the inverted CFG.
30578 2014-01-28  Richard Biener  <rguenther@suse.de>
30580         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
30582 2014-01-28  Richard Biener  <rguenther@suse.de>
30584         PR rtl-optimization/45364
30585         PR rtl-optimization/59890
30586         * var-tracking.c (local_get_addr_clear_given_value): Handle
30587         already cleared slot.
30588         (val_reset): Handle not allocated local_get_addr_cache.
30589         (vt_find_locations): Use post-order on the inverted CFG.
30591 2014-01-28  Alan Modra  <amodra@gmail.com>
30593         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
30594         * configure.ac <recursive call for build != host>: Define
30595         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
30596         and LD_FOR_BUILD too.
30597         * configure: Regenerate.
30599 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
30601         * config/i386/i386.c (get_builtin_code_for_version): Separate
30602         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
30603         Broadwell from Haswell.
30605 2014-01-27  Steve Ellcey  <sellcey@mips.com>
30607         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
30608         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
30609         * config/mips/mips.c (mips_option_override): Change setting
30610         of TARGET_DSP.
30611         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
30612         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
30613         Change from Mask to Var.
30615 2014-01-27  Jeff Law  <law@redhat.com>
30617         * ipa-inline.c (inline_small_functions): Fix typo.
30619 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
30621         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
30622         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
30623         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
30624         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
30625         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
30626         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
30627         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
30628         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
30629         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
30630         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
30631         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
30632         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
30633         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
30634         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
30635         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
30636         (_mm512_storeu_epi64): Ditto.
30637         (_mm512_cmpge_epi32_mask): Ditto.
30638         (_mm512_cmpge_epu32_mask): Ditto.
30639         (_mm512_cmpge_epi64_mask): Ditto.
30640         (_mm512_cmpge_epu64_mask): Ditto.
30641         (_mm512_cmple_epi32_mask): Ditto.
30642         (_mm512_cmple_epu32_mask): Ditto.
30643         (_mm512_cmple_epi64_mask): Ditto.
30644         (_mm512_cmple_epu64_mask): Ditto.
30645         (_mm512_cmplt_epi32_mask): Ditto.
30646         (_mm512_cmplt_epu32_mask): Ditto.
30647         (_mm512_cmplt_epi64_mask): Ditto.
30648         (_mm512_cmplt_epu64_mask): Ditto.
30649         (_mm512_cmpneq_epi32_mask): Ditto.
30650         (_mm512_cmpneq_epu32_mask): Ditto.
30651         (_mm512_cmpneq_epi64_mask): Ditto.
30652         (_mm512_cmpneq_epu64_mask): Ditto.
30653         (_mm512_expand_pd): Ditto.
30654         (_mm512_expand_ps): Ditto.
30655         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
30656         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
30657         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
30658         * config/i386/i386.c (ix86_builtins): Add
30659         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
30660         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
30661         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
30662         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
30663         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
30664         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
30665         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
30666         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
30667         IX86_BUILTIN_PMOVUSQW512_MEM.
30668         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
30669         __builtin_ia32_pmovsqd512mem_mask,
30670         __builtin_ia32_pmovqd512mem_mask,
30671         __builtin_ia32_pmovusqw512mem_mask,
30672         __builtin_ia32_pmovsqw512mem_mask,
30673         __builtin_ia32_pmovqw512mem_mask,
30674         __builtin_ia32_pmovusdw512mem_mask,
30675         __builtin_ia32_pmovsdw512mem_mask,
30676         __builtin_ia32_pmovdw512mem_mask,
30677         __builtin_ia32_pmovqb512mem_mask,
30678         __builtin_ia32_pmovusqb512mem_mask,
30679         __builtin_ia32_pmovsqb512mem_mask,
30680         __builtin_ia32_pmovusdb512mem_mask,
30681         __builtin_ia32_pmovsdb512mem_mask,
30682         __builtin_ia32_pmovdb512mem_mask.
30683         (bdesc_args): Add __builtin_ia32_expanddf512,
30684         __builtin_ia32_expandsf512.
30685         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
30686         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
30687         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
30688         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
30689         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
30690         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
30691         (avx512f_<code>v8div16qi2_mask_store): This.
30692         (avx512f_expand<mode>): New.
30694 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
30696         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
30697         New.
30698         (_mm512_mask_prefetch_i64gather_pd): Ditto.
30699         (_mm512_prefetch_i32scatter_pd): Ditto.
30700         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
30701         (_mm512_prefetch_i64scatter_pd): Ditto.
30702         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
30703         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
30704         (_mm512_mask_prefetch_i64gather_ps): Ditto.
30705         (_mm512_prefetch_i32scatter_ps): Ditto.
30706         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
30707         (_mm512_prefetch_i64scatter_ps): Ditto.
30708         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
30709         * config/i386/i386-builtin-types.def: Define
30710         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
30711         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
30712         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
30713         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
30714         IX86_BUILTIN_SCATTERPFQPD.
30715         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
30716         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
30717         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
30718         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
30719         __builtin_ia32_scatterpfqps.
30720         (ix86_expand_builtin): Expand new built-ins.
30721         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
30722         fix memory access data type.
30723         (*avx512pf_gatherpf<mode>_mask): Ditto.
30724         (*avx512pf_gatherpf<mode>): Ditto.
30725         (avx512pf_scatterpf<mode>): Ditto.
30726         (*avx512pf_scatterpf<mode>_mask): Ditto.
30727         (*avx512pf_scatterpf<mode>): Ditto.
30728         (GATHER_SCATTER_SF_MEM_MODE): New.
30729         (avx512pf_gatherpf<mode>df): Ditto.
30730         (*avx512pf_gatherpf<mode>df_mask): Ditto.
30731         (*avx512pf_scatterpf<mode>df): Ditto.
30733 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
30735         PR bootstrap/59934
30736         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
30737         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
30738         reached.
30740 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
30742         * common/config/arm/arm-common.c
30743         (arm_rewrite_mcpu): Handle multiple names.
30744         * config/arm/arm.h
30745         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
30747 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
30749         * gimple-builder.h (create_gimple_tmp): Delete.
30751 2014-01-27  Christian Bruel  <christian.bruel@st.com>
30753         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
30754         words comparisons.
30756 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
30758         * config/pa/pa.md (call): Generate indirect long calls to non-local
30759         functions when outputing 32-bit code.
30760         (call_value): Likewise except for special call to buggy powf function.
30762         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
30763         portable runtime and PIC indirect calls.
30764         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
30765         and PIC call sequences.  Use ldo instead of blr to set return register
30766         in PIC call sequence.
30768 2014-01-25  Walter Lee  <walt@tilera.com>
30770         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
30771         avoid clobbering a live register.
30773 2014-01-25  Walter Lee  <walt@tilera.com>
30775         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
30776         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
30777         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
30778         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
30780 2014-01-25  Walter Lee  <walt@tilera.com>
30782         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
30783         arguments on even registers.
30784         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
30785         STACK_BOUNDARY.
30786         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
30787         (BIGGEST_ALIGNMENT): Ditto.
30788         (BIGGEST_FIELD_ALIGNMENT): Ditto.
30790 2014-01-25  Walter Lee  <walt@tilera.com>
30792         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
30793         insns before bundling.
30794         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
30796 2014-01-25  Walter Lee  <walt@tilera.com>
30798         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
30799         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
30800         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
30802 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
30804         * config/mips/constraints.md (kl): Delete.
30805         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
30806         define expands, using...
30807         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
30808         instructions for MIPS16.
30809         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
30810         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
30812 2014-01-25  Walter Lee  <walt@tilera.com>
30814         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
30815         (clzdi2): Ditto.
30816         (ffsdi2): Ditto.
30818 2014-01-25  Walter Lee  <walt@tilera.com>
30820         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
30821         (TARGET_EXPAND_TO_RTL_HOOK): Define.
30823 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
30825         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
30826         Handle XOR.
30828 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
30830         * print-rtl.c (in_call_function_usage): New var.
30831         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
30832         EXPR_LIST mode as mode and not as reg note name.
30834         PR middle-end/59561
30835         * cfgloopmanip.c (copy_loop_info): If
30836         loop->warned_aggressive_loop_optimizations, make sure
30837         the flag is set in target loop too.
30839 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
30841         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
30842         flag_cilkplus.
30843         * builtins.def: Likewise.
30844         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
30845         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
30846         * ira.c (ira_setup_eliminable_regset): Likewise.
30847         * omp-low.c (gate_expand_omp): Likewise.
30848         (execute_lower_omp): Likewise.
30849         (diagnose_sb_0): Likewise.
30850         (gate_diagnose_omp_blocks): Likewise.
30851         (simd_clone_clauses_extract): Likewise.
30852         (gate): Likewise.
30854 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30856         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
30857         correction for little endian...
30858         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
30859         here.
30861 2014-01-24  Jeff Law  <law@redhat.com>
30863         PR tree-optimization/59919
30864         * tree-vrp.c (find_assert_locations_1): Do not register asserts
30865         for non-returning calls.
30867 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
30869         * common/config/aarch64/aarch64-common.c
30870         (aarch64_rewrite_mcpu): Handle multiple names.
30871         * config/aarch64/aarch64.h
30872         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
30874 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
30876         * input.c (add_file_to_cache_tab): Handle the case where fopen
30877         returns NULL.
30879 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
30881         PR target/59929
30882         * config/i386/i386.md (pushsf splitter): Get stack adjustment
30883         from push operand if code of push isn't PRE_DEC.
30885 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
30887         PR target/59909
30888         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
30889         -mquad-memory-atomic.  Update -mquad-memory documentation to say
30890         it is only used for non-atomic loads/stores.
30892         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
30893         -mquad-memory or -mquad-memory-atomic switches.
30895         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
30896         -mquad-memory-atomic to ISA 2.07 support.
30898         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
30899         to separate support of normal quad word memory operations (ldq, stq)
30900         from the atomic quad word memory operations.
30902         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
30903         support to separate non-atomic quad word operations from atomic
30904         quad word operations.  Disable non-atomic quad word operations in
30905         little endian mode so that we don't have to swap words after the
30906         load and before the store.
30907         (quad_load_store_p): Add comment about atomic quad word support.
30908         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
30909         options printed with -mdebug=reg.
30911         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
30912         -mquad-memory-atomic as the test for whether we have quad word
30913         atomic instructions.
30914         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
30915         or -mp8-vector are used, allow byte/half-word atomic operations.
30917         * config/rs6000/sync.md (load_lockedti): Insure that the address
30918         is a proper indexed or indirect address for the lqarx instruction.
30919         On little endian systems, swap the hi/lo registers after the lqarx
30920         instruction.
30921         (load_lockedpti): Use indexed_or_indirect_operand predicate to
30922         insure the address is valid for the lqarx instruction.
30923         (store_conditionalti): Insure that the address is a proper indexed
30924         or indirect address for the stqcrx. instruction.  On little endian
30925         systems, swap the hi/lo registers before doing the stqcrx.
30926         instruction.
30927         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
30928         insure the address is valid for the stqcrx. instruction.
30930         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
30931         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
30932         type of quad memory support is available.
30934 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
30936         PR regression/59915
30937         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
30938         there is a danger of looping.
30940 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
30942         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30943         force flag_ira_loop_pressure if set via command line.
30945 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
30947         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
30948         (ashr_simd): New builtin handling DI mode.
30949         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
30950         (aarch64_sshr_simddi): New match pattern.
30951         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
30952         (vshrd_n_s64): Likewise.
30953         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
30955 2014-01-23  Nick Clifton  <nickc@redhat.com>
30957         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
30958         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
30959         favour of mcu specific scripts.
30960         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
30961         430x multilibs.
30963 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
30964             Alex Velenko  <Alex.Velenko@arm.com>
30966         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
30967         (vaddv_s16): Likewise.
30968         (vaddv_s32): Likewise.
30969         (vaddv_u8): Likewise.
30970         (vaddv_u16): Likewise.
30971         (vaddv_u32): Likewise.
30972         (vaddvq_s8): Likewise.
30973         (vaddvq_s16): Likewise.
30974         (vaddvq_s32): Likewise.
30975         (vaddvq_s64): Likewise.
30976         (vaddvq_u8): Likewise.
30977         (vaddvq_u16): Likewise.
30978         (vaddvq_u32): Likewise.
30979         (vaddvq_u64): Likewise.
30980         (vaddv_f32): Likewise.
30981         (vaddvq_f32): Likewise.
30982         (vaddvq_f64): Likewise.
30983         (vmaxv_f32): Likewise.
30984         (vmaxv_s8): Likewise.
30985         (vmaxv_s16): Likewise.
30986         (vmaxv_s32): Likewise.
30987         (vmaxv_u8): Likewise.
30988         (vmaxv_u16): Likewise.
30989         (vmaxv_u32): Likewise.
30990         (vmaxvq_f32): Likewise.
30991         (vmaxvq_f64): Likewise.
30992         (vmaxvq_s8): Likewise.
30993         (vmaxvq_s16): Likewise.
30994         (vmaxvq_s32): Likewise.
30995         (vmaxvq_u8): Likewise.
30996         (vmaxvq_u16): Likewise.
30997         (vmaxvq_u32): Likewise.
30998         (vmaxnmv_f32): Likewise.
30999         (vmaxnmvq_f32): Likewise.
31000         (vmaxnmvq_f64): Likewise.
31001         (vminv_f32): Likewise.
31002         (vminv_s8): Likewise.
31003         (vminv_s16): Likewise.
31004         (vminv_s32): Likewise.
31005         (vminv_u8): Likewise.
31006         (vminv_u16): Likewise.
31007         (vminv_u32): Likewise.
31008         (vminvq_f32): Likewise.
31009         (vminvq_f64): Likewise.
31010         (vminvq_s8): Likewise.
31011         (vminvq_s16): Likewise.
31012         (vminvq_s32): Likewise.
31013         (vminvq_u8): Likewise.
31014         (vminvq_u16): Likewise.
31015         (vminvq_u32): Likewise.
31016         (vminnmv_f32): Likewise.
31017         (vminnmvq_f32): Likewise.
31018         (vminnmvq_f64): Likewise.
31020 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
31022         * config/aarch64/aarch64-simd.md
31023         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
31024         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
31025         (*aarch64_mul3_elt<mode>): Likewise.
31026         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
31027         (*aarch64_mul3_elt_to_64v2df): Likewise.
31028         (*aarch64_mla_elt<mode>): Likewise.
31029         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
31030         (*aarch64_mls_elt<mode>): Likewise.
31031         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
31032         (*aarch64_fma4_elt<mode>): Likewise.
31033         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
31034         (*aarch64_fma4_elt_to_64v2df): Likewise.
31035         (*aarch64_fnma4_elt<mode>): Likewise.
31036         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
31037         (*aarch64_fnma4_elt_to_64v2df): Likewise.
31038         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
31039         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
31040         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31041         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
31042         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
31043         (aarch64_sqdmull_lane<mode>_internal): Likewise.
31044         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
31046 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31048         * config/aarch64/aarch64-simd.md
31049         (aarch64_be_checked_get_lane<mode>): New define_expand.
31050         * config/aarch64/aarch64-simd-builtins.def
31051         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
31052         New builtin definition.
31053         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
31054         Use new safe be builtin.
31056 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
31058         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
31059         New define_insn.
31060         (aarch64_be_st1<mode>): Likewise.
31061         (aarch_ld1<VALL:mode>): Define_expand modified.
31062         (aarch_st1<VALL:mode>): Likewise.
31063         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
31064         (UNSPEC_ST1): Likewise.
31066 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
31068         * config/microblaze/microblaze.md: Add trap insn and attribute
31070 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
31072         PR preprocessor/58580
31073         * input.h (location_get_source_line): Take an additional line_size
31074         parameter.
31075         (void diagnostics_file_cache_fini): Declare new function.
31076         * input.c (struct fcache): New type.
31077         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
31078         New static constants.
31079         (diagnostic_file_cache_init, total_lines_num)
31080         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
31081         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
31082         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
31083         (get_next_line, read_next_line, goto_next_line, read_line_num):
31084         New static function definitions.
31085         (diagnostic_file_cache_fini): New function.
31086         (location_get_source_line): Take an additional output line_len
31087         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
31088         read_line_num.
31089         * diagnostic.c (diagnostic_finish): Call
31090         diagnostic_file_cache_fini.
31091         (adjust_line): Take an additional input parameter for the length
31092         of the line, rather than calculating it with strlen.
31093         (diagnostic_show_locus): Adjust the use of
31094         location_get_source_line and adjust_line with respect to their new
31095         signature.  While displaying a line now, do not stop at the first
31096         null byte.  Rather, display the zero byte as a space and keep
31097         going until we reach the size of the line.
31098         * Makefile.in: Add vec.o to OBJS-libcommon
31100 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
31101             Ilya Tocar  <ilya.tocar@intel.com>
31103         * config/i386/avx512fintrin.h (_mm512_kmov): New.
31104         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
31105         (__builtin_ia32_kmov16): Ditto.
31106         * config/i386/i386.md (UNSPEC_KMOV): New.
31107         (kmovw): Ditto.
31109 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
31111         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
31112         (_mm512_storeu_si512): Ditto.
31114 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
31116         PR target/52125
31117         * rtl.h (get_referenced_operands): Declare.
31118         * recog.c (get_referenced_operands): New function.
31119         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
31120         operands have been referenced when recording LO_SUM references.
31122 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
31124         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
31126 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
31128         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
31129         Enable for generic and recent AMD targets.
31131 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
31133         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
31134         ARG_SIZE note when adjustment was eliminated.
31136 2014-01-22  Jeff Law  <law@redhat.com>
31138         PR tree-optimization/59597
31139         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
31140         in file.  Accept new argument REGISTERING and use it to modify
31141         dump output appropriately.
31142         (register_jump_thread): Corresponding changes.
31143         (mark_threaded_blocks): Reinstate code to cancel unprofitable
31144         thread paths involving joiner blocks.  Add code to dump cancelled
31145         jump threading paths.
31147 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
31149         PR rtl-optimization/59477
31150         * lra-constraints.c (inherit_in_ebb): Process call for living hard
31151         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
31153 2014-01-22  Tom Tromey  <tromey@redhat.com>
31155         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
31156         PARAMS.
31157         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
31159 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
31161         PR rtl-optimization/59896
31162         * lra-constraints.c (process_alt_operands): Check unused note for
31163         matched operands of insn with no output reloads.
31165 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
31167         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
31168         (mips_move_from_gpr_cost): Likewise.
31170 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
31172         PR rtl-optimization/59858
31173         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
31174         ira_class_hard_regs_num.
31175         (process_alt_operands): Increase reject for dying matched operand.
31177 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
31179         PR target/59003
31180         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
31181         smaller than size, perform several stores or loads and stores
31182         at dst + count - size to store or copy all of size bytes, rather
31183         than just last modesize bytes.
31185 2014-01-20  DJ Delorie  <dj@redhat.com>
31187         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
31188         that CLOBBERs are REGs before propogating their values.
31190 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
31192         PR middle-end/59789
31193         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
31194         (cgraph_inline_failed_type): New function.
31195         * cgraph.h (DEFCIFCODE): Add type.
31196         (cgraph_inline_failed_type_t): New enum.
31197         (cgraph_inline_failed_type): New prototype.
31198         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
31199         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31200         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
31201         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
31202         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
31203         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
31204         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
31205         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
31206         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
31207         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
31208         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
31209         OPTIMIZATION_MISMATCH.
31210         * tree-inline.c (expand_call_inline): Emit errors during
31211         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
31213 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
31215         PR target/59685
31216         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
31217         mode attribute in insn output.
31219 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
31221         * output.h (output_constant): Delete.
31222         * varasm.c (output_constant): Make private.
31224 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
31226         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
31228 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
31230         PR middle-end/59860
31231         * tree.h (fold_builtin_strcat): New prototype.
31232         * builtins.c (fold_builtin_strcat): No longer static.  Add len
31233         argument, if non-NULL, don't call c_strlen.  Optimize
31234         directly into __builtin_memcpy instead of __builtin_strcpy.
31235         (fold_builtin_2): Adjust fold_builtin_strcat caller.
31236         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
31238 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
31240         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31241         for SImode_address_operand operands, having only a REG argument.
31243 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
31245         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
31246         loader name using mbig-endian.
31247         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
31249 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
31251         * doc/invoke.texi (-march): Clarify documentation for AArch64.
31252         (-mtune): Likewise.
31253         (-mcpu): Likewise.
31255 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
31257         * config/aarch64/aarch64-protos.h
31258         (aarch64_cannot_change_mode_class_ptr): Declare.
31259         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
31260         aarch64_cannot_change_mode_class_ptr): New.
31261         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
31262         backend hook aarch64_cannot_change_mode_class.
31264 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
31266         * common/config/aarch64/aarch64-common.c
31267         (aarch64_handle_option): Don't handle any option order logic here.
31268         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
31269         selected_cpu, warn on architecture version mismatch.
31270         (aarch64_override_options): Fix parsing order for option strings.
31272 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31273             Iain Sandoe  <iain@codesourcery.com>
31275         PR bootstrap/59496
31276         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
31277         warning.  Amend comment to reflect current functionality.
31279 2014-01-20  Richard Biener  <rguenther@suse.de>
31281         PR middle-end/59860
31282         * builtins.c (fold_builtin_strcat): Remove case better handled
31283         by tree-ssa-strlen.c.
31285 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
31287         * config/aarch64/aarch64.opt
31288         (mcpu, march, mtune): Make case-insensitive.
31290 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
31292         PR target/59880
31293         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
31294         if operands[1] is a REG or ZERO_EXTEND of a REG.
31296 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
31298         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
31300 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
31302         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
31303         long non-pic millicode calls.
31305 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
31307         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
31309 2014-01-19  Kito Cheng  <kito@0xlab.org>
31311         * builtins.c (expand_movstr): Check movstr expand done or fail.
31313 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
31314             H.J. Lu  <hongjiu.lu@intel.com>
31316         PR target/59379
31317         * config/i386/i386.md (*lea<mode>): Zero-extend return register
31318         to DImode for zero-extended addresses.
31320 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
31322         PR rtl-optimization/57763
31323         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
31324         on the new indirect jump_insn and increment LABEL_NUSES (label).
31326 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
31328         PR bootstrap/59580
31329         PR bootstrap/59583
31330         * config.gcc (x86_archs): New variable.
31331         (x86_64_archs): Likewise.
31332         (x86_cpus): Likewise.
31333         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
31334         --with-arch/--with-cpu= options.
31335         Support --with-arch=/--with-cpu={nehalem,westmere,
31336         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
31338 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
31340         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
31341         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
31343 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
31345         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
31347 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
31349         PR target/58944
31350         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
31351         clear cpp_get_options (parse_in)->warn_unused_macros for
31352         ix86_target_macros_internal with cpp_define.
31354 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
31356         * jump.c (delete_related_insns): Keep (use (insn))s.
31357         * reorg.c (redundant_insn): Check for barriers too.
31359 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31361         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
31363 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
31365         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
31366         call to $$dyncall when TARGET_LONG_CALLS is true.
31368 2014-01-17  Jeff Law  <law@redhat.com>
31370         * ree.c (combine_set_extension): Temporarily disable test for
31371         changing number of hard registers.
31373 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
31375         PR middle-end/58125
31376         * ipa-inline-analysis.c (inline_free_summary):
31377         Do not free summary of aliases.
31379 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
31381         PR middle-end/59706
31382         * gimplify.c (gimplify_expr): Use create_tmp_var
31383         instead of create_tmp_var_raw.  If cond doesn't have
31384         integral type, don't add the IFN_ANNOTATE builtin at all.
31386 2014-01-17  Martin Jambor  <mjambor@suse.cz>
31388         PR ipa/59736
31389         * ipa-cp.c (prev_edge_clone): New variable.
31390         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
31391         Also resize prev_edge_clone vector.
31392         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
31393         (ipcp_edge_removal_hook): New function.
31394         (ipcp_driver): Register ipcp_edge_removal_hook.
31396 2014-01-17  Andrew Pinski  <apinski@cavium.com>
31397             Steve Ellcey  <sellcey@mips.com>
31399         PR target/59462
31400         * config/mips/mips.c (mips_print_operand): Check operand mode instead
31401         of operator mode.
31403 2014-01-17  Jeff Law  <law@redhat.com>
31405         PR middle-end/57904
31406         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
31407         so that pass_ccp runs first.
31409 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31411         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
31412         (ix86_adjust_cost): Use !TARGET_XXX.
31413         (do_reorder_for_imul): Likewise.
31414         (swap_top_of_ready_list): Likewise.
31415         (ix86_sched_reorder): Likewise.
31417 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31419         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31420         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
31421         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
31422         (intel_memset): New.  Duplicate slm_memset.
31423         (intel_cost): New.  Duplicate slm_cost.
31424         (m_INTEL): New macro.
31425         (processor_target_table): Add "intel".
31426         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
31427         with PROCESSOR_INTEL for "intel".
31428         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
31429         PROCESSOR_SILVERMONT.
31430         (ix86_issue_rate): Likewise.
31431         (ix86_adjust_cost): Likewise.
31432         (ia32_multipass_dfa_lookahead): Likewise.
31433         (swap_top_of_ready_list): Likewise.
31434         (ix86_sched_reorder): Likewise.
31435         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
31436         instead of TARGET_OPT_AGU.
31437         * config/i386/i386.h (TARGET_INTEL): New.
31438         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
31439         (processor_type): Add PROCESSOR_INTEL.
31440         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
31441         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
31443 2014-01-17  Marek Polacek  <polacek@redhat.com>
31445         PR c/58346
31446         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
31447         size is zero.
31449 2014-01-17  Richard Biener  <rguenther@suse.de>
31451         PR tree-optimization/46590
31452         * opts.c (default_options_table): Add entries for
31453         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
31454         all enabled at -O1 but not for -Og.
31455         * common.opt (fbranch-count-reg): Remove Init(1).
31456         (fmove-loop-invariants): Likewise.
31457         (ftree-pta): Likewise.
31459 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
31461         * config/i386/i386.c (ix86_data_alignment): For compatibility with
31462         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
31463         decls to at least the GCC 4.8 used alignments.
31465         PR fortran/59440
31466         * tree-nested.c (convert_nonlocal_reference_stmt,
31467         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
31468         of GIMPLE_BIND stmts, adjust associated decls.
31470 2014-01-17  Richard Biener  <rguenther@suse.de>
31472         PR tree-optimization/46590
31473         * vec.h (vec<>::bseach): New member function implementing
31474         binary search according to C89 bsearch.
31475         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
31476         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
31477         bitmap pointer again.  Make accesses_in_loop a flat array.
31478         (mem_ref_obstack): New global.
31479         (outermost_indep_loop): Adjust for mem_ref->stored changes.
31480         (mark_ref_stored): Likewise.
31481         (ref_indep_loop_p_2): Likewise.
31482         (set_ref_stored_in_loop): New helper function.
31483         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
31484         (memref_free): Adjust.
31485         (record_mem_ref_loc): Simplify.
31486         (gather_mem_refs_stmt): Adjust.
31487         (sort_locs_in_loop_postorder_cmp): New function.
31488         (analyze_memory_references): Sort accesses_in_loop after
31489         loop postorder number.
31490         (find_ref_loc_in_loop_cmp): New function.
31491         (for_all_locs_in_loop): Find relevant cluster of locs in
31492         accesses_in_loop and iterate without recursion.
31493         (execute_sm): Avoid uninit warning.
31494         (struct ref_always_accessed): Simplify.
31495         (ref_always_accessed::operator ()): Likewise.
31496         (ref_always_accessed_p): Likewise.
31497         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
31498         loop postorder numbers here.
31499         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
31500         numbers.
31502 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
31504         PR c++/57945
31505         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
31506         on decls for which assemble_alias has been called.
31508 2014-01-17  Nick Clifton  <nickc@redhat.com>
31510         * config/msp430/msp430.opt: (mcpu): New option.
31511         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
31512         (msp430_option_override): Parse target_cpu.  If the MCU name
31513         matches a generic string, clear target_mcu.
31514         (msp430_attr): Allow numeric interrupt values up to 63.
31515         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
31516         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
31517         option.
31518         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
31519         Add mcpu matches.
31520         * config/msp430/msp430.md (popm): Use %J rather than %I.
31521         (addsi3): Use msp430_nonimmediate_operand for operand 2.
31522         (addhi_cy_i): Use immediate_operand for operand 2.
31523         * doc/invoke.texi: Document -mcpu option.
31525 2014-01-17  Richard Biener  <rguenther@suse.de>
31527         PR rtl-optimization/38518
31528         * df.h (df_analyze_loop): Declare.
31529         * df-core.c: Include cfgloop.h.
31530         (df_analyze_1): Split out main part of df_analyze.
31531         (df_analyze): Adjust.
31532         (loop_inverted_post_order_compute): New function.
31533         (loop_post_order_compute): Likewise.
31534         (df_analyze_loop): New function avoiding whole-function
31535         postorder computes.
31536         * loop-invariant.c (find_defs): Use df_analyze_loop.
31537         (find_invariants): Adjust.
31538         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
31540 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
31542         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
31543         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
31545 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
31547         * ipa-ref.c (ipa_remove_stmt_references): Fix references
31548         traversal when removing references.
31550 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
31552         PR ipa/59775
31553         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
31555 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
31557         PR middle-end/56791
31558         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
31559         pushing a reload for an autoinc when we had previously reloaded an
31560         inner part of the address.
31562 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
31564         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
31565         field.
31566         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
31567         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
31568         when not giving up or versioning for alias only because of
31569         loop->safelen.
31570         (vect_analyze_data_ref_dependences): Set to true.
31571         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
31572         is a GIMPLE_PHI.
31573         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
31574         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
31575         to the condition.
31577         PR middle-end/58344
31578         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
31580         PR target/59839
31581         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
31582         operand 0 predicate for gathers, use a new pseudo as subtarget.
31584 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
31586         PR middle-end/59609
31587         * lra-constraints.c (process_alt_operands): Add printing debug info.
31588         Check absence of input/output reloads for matched operands too.
31590 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
31592         PR rtl-optimization/59835
31593         * ira.c (ira_init_register_move_cost): Increase cost for
31594         impossible modes.
31596 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
31598         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
31600 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
31602         PR target/59780
31603         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
31604         non-register objects.  Use gen_(high/low)part more consistently.
31605         Fix assertions.
31607 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
31609         PR target/59844
31610         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
31611         endian support, remove tests for WORDS_BIG_ENDIAN.
31612         (p8_mfvsrd_3_<mode>): Likewise.
31613         (reload_gpr_from_vsx<mode>): Likewise.
31614         (reload_gpr_from_vsxsf): Likewise.
31615         (p8_mfvsrd_4_disf): Likewise.
31617 2014-01-16  Richard Biener  <rguenther@suse.de>
31619         PR rtl-optimization/46590
31620         * lcm.c (compute_antinout_edge): Use postorder iteration.
31621         (compute_laterin): Use inverted postorder iteration.
31623 2014-01-16  Nick Clifton  <nickc@redhat.com>
31625         PR middle-end/28865
31626         * varasm.c (output_constant): Return the number of bytes actually
31627         emitted.
31628         (output_constructor_array_range): Update the field size with the
31629         number of bytes emitted by output_constant.
31630         (output_constructor_regular_field): Likewise.  Also do not
31631         complain if the total number of bytes emitted is now greater
31632         than the expected fieldpos.
31633         * output.h (output_constant): Update prototype and descriptive comment.
31635 2014-01-16  Marek Polacek  <polacek@redhat.com>
31637         PR middle-end/59827
31638         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
31639         it is error_mark_node.
31641 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
31643         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
31644         VALID_AVX256_REG_OR_OI_MODE.
31646 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
31648         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
31649         current procedure should be profiled.
31651 2014-01-15  Andrew Pinski  <apinski@cavium.com>
31653         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
31654         of moving from/to the STACK_REG register class.
31656 2014-01-15  Richard Henderson  <rth@redhat.com>
31658         PR debug/54694
31659         * reginfo.c (global_regs_decl): Globalize.
31660         * rtl.h (global_regs_decl): Declare.
31661         * ira.c (do_reload): Diagnose frame_pointer_needed and it
31662         reserved via global_regs.
31664 2014-01-15  Teresa Johnson  <tejohnson@google.com>
31666         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
31668 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
31670         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
31671         and vmulosh rather than call gen_vec_widen_smult_*.
31672         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
31673         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
31674         (vec_widen_smult_even_v16qi): Likewise.
31675         (vec_widen_umult_even_v8hi): Likewise.
31676         (vec_widen_smult_even_v8hi): Likewise.
31677         (vec_widen_umult_odd_v16qi): Likewise.
31678         (vec_widen_smult_odd_v16qi): Likewise.
31679         (vec_widen_umult_odd_v8hi): Likewise.
31680         (vec_widen_smult_odd_v8hi): Likewise.
31681         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
31682         vmuloub rather than call gen_vec_widen_umult_*.
31683         (vec_widen_umult_lo_v16qi): Likewise.
31684         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
31685         vmulosb rather than call gen_vec_widen_smult_*.
31686         (vec_widen_smult_lo_v16qi): Likewise.
31687         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
31688         rather than call gen_vec_widen_umult_*.
31689         (vec_widen_umult_lo_v8hi): Likewise.
31690         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
31691         rather than call gen_vec_widen_smult_*.
31692         (vec_widen_smult_lo_v8hi): Likewise.
31694 2014-01-15  Jeff Law  <law@redhat.com>
31696         PR tree-optimization/59747
31697         * ree.c (find_and_remove_re): Properly handle case where a second
31698         eliminated extension requires widening a copy created for elimination
31699         of a prior extension.
31700         (combine_set_extension): Ensure that the number of hard regs needed
31701         for a destination register does not change when we widen it.
31703 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31705         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
31706         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
31707         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
31708         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
31709         (avr-*-rtems*): Likewise.
31710         (bfin*-rtems*): Likewise.
31711         (moxie-*-rtems*): Likewise.
31712         (h8300-*-rtems*): Likewise.
31713         (i[34567]86-*-rtems*): Likewise.
31714         (lm32-*-rtems*): Likewise.
31715         (m32r-*-rtems*): Likewise.
31716         (m68k-*-rtems*): Likewise.
31717         (microblaze*-*-rtems*): Likewise.
31718         (mips*-*-rtems*): Likewise.
31719         (powerpc-*-rtems*): Likewise.
31720         (sh-*-rtems*): Likewise.
31721         (sparc-*-rtems*): Likewise.
31722         (sparc64-*-rtems*): Likewise.
31723         (v850-*-rtems*): Likewise.
31724         (m32c-*-rtems*): Likewise.
31726 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
31728         PR rtl-optimization/59511
31729         * ira.c (ira_init_register_move_cost): Use memory costs for some
31730         cases of register move cost calculations.
31731         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
31732         instead of BB frequency.
31733         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
31734         * lra-assigns.c (find_hard_regno_for): Ditto.
31736 2014-01-15  Richard Biener  <rguenther@suse.de>
31738         PR tree-optimization/59822
31739         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
31740         (vectorizable_load): Use it to hoist defs of uses of invariant
31741         loads out of the loop.
31743 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
31744             Kugan Vivekanandarajah  <kuganv@linaro.org>
31746         PR target/59695
31747         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
31748         truncation.
31750 2014-01-15  Richard Biener  <rguenther@suse.de>
31752         PR rtl-optimization/59802
31753         * lcm.c (compute_available): Use inverted postorder to seed
31754         the initial worklist.
31756 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31758         PR target/59803
31759         * config/s390/s390.c (s390_preferred_reload_class): Don't return
31760         ADDR_REGS for invalid symrefs in non-PIC code.
31762 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
31764         PR other/58712
31765         * builtins.c (determine_block_size): Initialize *probable_max_size
31766         even if len_rtx is CONST_INT.
31768 2014-01-14  Andrew Pinski  <apinski@cavium.com>
31770         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
31771         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
31772         (cortexa53_tunings): Likewise.
31773         (aarch64_sched_issue_rate): New function.
31774         (TARGET_SCHED_ISSUE_RATE): Define.
31776 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
31778         * ira-costs.c (find_costs_and_classes): Add missed
31779         ira_init_register_move_cost_if_necessary.
31781 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
31783         PR target/59787
31784         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
31786 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
31788         PR target/59794
31789         * config/i386/i386.c (type_natural_mode): Add a bool parameter
31790         to indicate if type is used for function return value.  Warn ABI
31791         change if the vector mode isn't available for function return value.
31792         (ix86_function_arg_advance): Pass false to type_natural_mode.
31793         (ix86_function_arg): Likewise.
31794         (ix86_gimplify_va_arg): Likewise.
31795         (function_arg_32): Don't warn ABI change.
31796         (ix86_function_value): Pass true to type_natural_mode.
31797         (ix86_return_in_memory): Likewise.
31798         (ix86_struct_value_rtx): Removed.
31799         (TARGET_STRUCT_VALUE_RTX): Likewise.
31801 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
31803         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
31804         converting a conditional jump into a conditional return.
31806 2014-01-14  Richard Biener  <rguenther@suse.de>
31808         PR tree-optimization/58921
31809         PR tree-optimization/59006
31810         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
31811         hoisting invariant stmts.
31812         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
31813         invariant loads on the preheader edge if possible.
31815 2014-01-14  Joey Ye  <joey.ye@arm.com>
31817         * doc/plugin.texi (Building GCC plugins): Update to C++.
31819 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
31821         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
31822         (_mm_rcp28_round_ss): Ditto.
31823         (_mm_rsqrt28_round_sd): Ditto.
31824         (_mm_rsqrt28_round_ss): Ditto.
31825         (_mm_rcp28_sd): Ditto.
31826         (_mm_rcp28_ss): Ditto.
31827         (_mm_rsqrt28_sd): Ditto.
31828         (_mm_rsqrt28_ss): Ditto.
31829         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
31830         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
31831         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
31832         (IX86_BUILTIN_RCP28SD): Ditto.
31833         (IX86_BUILTIN_RCP28SS): Ditto.
31834         (IX86_BUILTIN_RSQRT28SD): Ditto.
31835         (IX86_BUILTIN_RSQRT28SS): Ditto.
31836         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
31837         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
31838         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
31839         (ix86_expand_special_args_builtin): Expand new FTYPE.
31840         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
31841         (srcp14<mode>): Make insn unary.
31842         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
31843         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
31844         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
31845         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
31846         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
31847         Fix rounding: make it SAE only.
31848         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31849         Ditto.
31850         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31851         Ditto.
31852         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
31853         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
31854         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
31855         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
31856         (round_saeonly_mask_scalar_operand4): Ditto.
31857         (round_saeonly_mask_scalar_op3): Ditto.
31858         (round_saeonly_mask_scalar_op4): Ditto.
31860 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31862         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31863         Implement -maltivec=be for vec_insert and vec_extract.
31865 2014-01-10  DJ Delorie  <dj@redhat.com>
31867         * config/msp430/msp430.md (call_internal): Don't allow memory
31868         references with SP as the base register.
31869         (call_value_internal): Likewise.
31870         * config/msp430/constraints.md (Yc): New.  For memory references
31871         that don't use SP as a base register.
31873         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
31874         "an integer without a # prefix"
31875         * config/msp430/msp430.md (epilogue_helper): Use it.
31877 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
31879         PR target/59617
31880         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
31881         AVX512F gather builtins.
31882         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
31883         on gather decls with INTEGER_TYPE masktype.
31884         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
31885         directly into the builtin rather than hoisting it before loop.
31887         PR tree-optimization/59387
31888         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
31889         (scev_const_prop): If folded_casts and type has undefined overflow,
31890         use force_gimple_operand instead of force_gimple_operand_gsi and
31891         for each added stmt if it is assign with
31892         arith_code_with_undefined_signed_overflow, call
31893         rewrite_to_defined_overflow.
31894         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
31895         gimple-fold.h instead.
31896         (arith_code_with_undefined_signed_overflow,
31897         rewrite_to_defined_overflow): Moved to ...
31898         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
31899         rewrite_to_defined_overflow): ... here.  No longer static.
31900         Include gimplify-me.h.
31901         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
31902         rewrite_to_defined_overflow): New prototypes.
31904 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31906         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
31908 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
31910         * builtins.c (get_object_alignment_2): Minor tweak.
31911         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
31913 2014-01-13  Christian Bruel  <christian.bruel@st.com>
31915         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
31916         optimized non constant lengths.
31918 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
31920         PR libgomp/59194
31921         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
31922         load as __atomic_load_N if possible.
31924 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
31926         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
31927         target parameter.
31928         (rs6000_expand_builtin): Adjust call.
31930 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
31932         PR target/58115
31933         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
31934         * config/rs6000/rs6000.c: Include target-globals.h.
31935         (rs6000_set_current_function): Instead of doing target_reinit
31936         unconditionally, use save_target_globals_default_opts and
31937         restore_target_globals.
31939         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
31940         FPSCR.
31941         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
31942         (rs6000_expand_builtin): Handle mffs and mtfsf.
31943         (rs6000_init_builtins): Define mffs and mtfsf.
31944         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
31945         (rs6000_mffs): New pattern.
31946         (rs6000_mtfsf): New pattern.
31948 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
31950         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
31951         Start narrowing with START.  Apply candidate-use pair
31952         and check overall cost in narrowing.
31953         (iv_ca_prune): Pass new argument.
31955 2014-01-10  Jeff Law  <law@redhat.com>
31957         PR middle-end/59743
31958         * ree.c (combine_reaching_defs): Ensure the defining statement
31959         occurs before the extension when optimizing extensions with
31960         different source and destination hard registers.
31962 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
31964         PR ipa/58585
31965         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
31966         vtables into the type inheritance graph.
31968 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31970         PR rtl-optimization/59754
31971         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
31972         modes in the REGNO != REGNO case.
31974 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31976         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
31978 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
31980         PR tree-optimization/59745
31981         * tree-predcom.c (tree_predictive_commoning_loop): Call
31982         free_affine_expand_cache if giving up because components is NULL.
31984         * target-globals.c (save_target_globals): Allocate < 4KB structs using
31985         GC in payload of target_globals struct instead of allocating them on
31986         the heap and the larger structs separately using GC.
31987         * target-globals.h (struct target_globals): Make regs, hard_regs,
31988         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
31989         of GTY((skip)) and change type to void *.
31990         (reset_target_globals): Cast loads from those fields to corresponding
31991         types.
31993 2014-01-10  Steve Ellcey  <sellcey@mips.com>
31995         PR plugins/59335
31996         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
31997         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
31998         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
32000 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
32002         PR target/59744
32003         * aarch64-modes.def (CC_Zmode): New flags mode.
32004         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
32005         represents an equality.
32006         (aarch64_get_condition_code): Handle CC_Zmode.
32007         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
32009 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32011         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
32012         extraction in good case.
32014 2014-01-10  Richard Biener  <rguenther@suse.de>
32016         PR tree-optimization/59374
32017         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
32018         checking after SLP discovery.  Mark stmts not participating
32019         in any SLP instance properly.
32021 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32023         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
32024         when handling a SET rtx.
32026 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32028         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
32029         (cortex-a57): Likewise.
32030         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
32032 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32034         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
32035         non-iwmmxt builtins.
32037 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
32039         PR ipa/58252
32040         PR ipa/59226
32041         * ipa-devirt.c record_target_from_binfo): Take as argument
32042         stack of binfos and lookup matching one for virtual inheritance.
32043         (possible_polymorphic_call_targets_1): Update.
32045 2014-01-10  Huacai Chen  <chenhc@lemote.com>
32047         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
32048         kernel strings for Loongson-2E/2F/3A.
32050 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
32052         PR middle-end/59670
32053         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
32054         is_gimple_call before calling gimple_call_internal_p.
32056 2014-01-09  Steve Ellcey  <sellcey@mips.com>
32058         * Makefile.in (TREE_FLOW_H): Remove.
32059         (TREE_SSA_H): Add file names from tree-flow.h.
32060         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
32061         * tree.h: Remove tree-flow.h reference.
32062         * hash-table.h: Remove tree-flow.h reference.
32063         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
32064         reference with tree-ssa-loop.h.
32066 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32068         * doc/invoke.texi: Add -maltivec={be,le} options, and document
32069         default element-order behavior for -maltivec.
32070         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
32071         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
32072         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
32073         when targeting big endian, at least for now.
32074         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
32076 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32078         PR middle-end/47735
32079         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
32080         var satisfies use_register_for_decl, just take into account type
32081         alignment, rather than decl alignment.
32083         PR tree-optimization/59622
32084         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
32085         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
32086         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
32087         Don't devirtualize for inplace at all.  For targets.length () == 1,
32088         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
32090 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
32092         * config/i386/i386.md (cpu): Remove the unused btver1.
32094 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
32096         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
32098 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32100         PR target/58115
32101         * tree-core.h (struct target_globals): New forward declaration.
32102         (struct tree_target_option): Add globals field.
32103         * tree.h (TREE_TARGET_GLOBALS): Define.
32104         (prepare_target_option_nodes_for_pch): New prototype.
32105         * target-globals.h (struct target_globals): Define even if
32106         !SWITCHABLE_TARGET.
32107         * tree.c (prepare_target_option_node_for_pch,
32108         prepare_target_option_nodes_for_pch): New functions.
32109         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
32110         * config/i386/i386.c: Include target-globals.h.
32111         (ix86_set_current_function): Instead of doing target_reinit
32112         unconditionally, use save_target_globals_default_opts and
32113         restore_target_globals.
32115 2014-01-09  Richard Biener  <rguenther@suse.de>
32117         PR tree-optimization/59715
32118         * tree-cfg.h (split_critical_edges): Declare.
32119         * tree-cfg.c (split_critical_edges): Export.
32120         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
32122 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
32124         * cfgexpand.c (expand_stack_vars): Optionally disable
32125         asan stack protection.
32126         (expand_used_vars): Likewise.
32127         (partition_stack_vars): Likewise.
32128         * asan.c (asan_emit_stack_protection): Optionally disable
32129         after return stack usage.
32130         (instrument_derefs): Optionally disable memory access instrumentation.
32131         (instrument_builtin_call): Likewise.
32132         (instrument_strlen_call): Likewise.
32133         (asan_protect_global): Optionally disable global variables protection.
32134         * doc/invoke.texi: Added doc for new options.
32135         * params.def: Added new options.
32136         * params.h: Likewise.
32138 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
32140         PR rtl-optimization/59724
32141         * ifcvt.c (cond_exec_process_if_block): Don't call
32142         flow_find_head_matching_sequence with 0 longest_match.
32143         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
32144         non-active insns if !stop_after.
32145         (try_head_merge_bb): Revert 2014-01-07 changes.
32147 2014-01-08  Jeff Law  <law@redhat.com>
32149         * ree.c (get_sub_rtx): New function, extracted from...
32150         (merge_def_and_ext): Here.
32151         (combine_reaching_defs): Use get_sub_rtx.
32153 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
32155         * cgraph.h (varpool_variable_node): Do not choke on null node.
32157 2014-01-08  Catherine Moore  <clm@codesourcery.com>
32159         * config/mips/mips.md (simple_return): Attempt to use JRC
32160         for microMIPS.
32161         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
32163 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
32165         PR rtl-optimization/59137
32166         * reorg.c (steal_delay_list_from_target): Call update_block for
32167         elided insns.
32168         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
32170 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32172         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
32173         two duplicate entries.
32175 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
32177         Revert:
32178         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
32180         * config/mips/mips.c (mips_truncated_op_cost): New function.
32181         (mips_rtx_costs): Adjust test for BADDU.
32182         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
32184         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
32186         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
32187         (*baddu_si): ...this new pattern.
32189 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
32191         PR ipa/59722
32192         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
32194 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32196         PR middle-end/57748
32197         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
32198         inner_reference_p.
32199         (expand_expr, expand_normal): Adjust.
32200         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
32201         inner_reference_p. Use inner_reference_p to expand inner references.
32202         (store_expr): Adjust.
32203         * cfgexpand.c (expand_call_stmt): Adjust.
32205 2014-01-08  Rong Xu  <xur@google.com>
32207         * gcov-io.c (gcov_var): Move from gcov-io.h.
32208         (gcov_position): Ditto.
32209         (gcov_is_error): Ditto.
32210         (gcov_rewrite): Ditto.
32211         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
32212         only part to libgcc/libgcov.h.
32214 2014-01-08  Marek Polacek  <polacek@redhat.com>
32216         PR middle-end/59669
32217         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
32219 2014-01-08  Marek Polacek  <polacek@redhat.com>
32221         PR sanitizer/59667
32222         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
32224 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
32226         PR rtl-optimization/59649
32227         * stor-layout.c (get_mode_bounds): For BImode return
32228         0 and STORE_FLAG_VALUE.
32230 2014-01-08  Richard Biener  <rguenther@suse.de>
32232         PR middle-end/59630
32233         * gimple.h (is_gimple_builtin_call): Remove.
32234         (gimple_builtin_call_types_compatible_p): New.
32235         (gimple_call_builtin_p): New overload.
32236         * gimple.c (is_gimple_builtin_call): Remove.
32237         (validate_call): Rename to ...
32238         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
32239         check return types.
32240         (validate_type): New static function.
32241         (gimple_call_builtin_p): New overload and adjust.
32242         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
32243         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
32244         (gimple_fold_stmt_to_constant_1): Likewise.
32245         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
32247 2014-01-08  Richard Biener  <rguenther@suse.de>
32249         PR middle-end/59471
32250         * gimplify.c (gimplify_expr): Gimplify register-register type
32251         VIEW_CONVERT_EXPRs to separate stmts.
32253 2014-01-07  Jeff Law  <law@redhat.com>
32255         PR middle-end/53623
32256         * ree.c (combine_set_extension): Handle case where source
32257         and destination registers in an extension insn are different.
32258         (combine_reaching_defs): Allow source and destination registers
32259         in extension to be different under limited circumstances.
32260         (add_removable_extension): Remove restriction that the
32261         source and destination registers in the extension are the same.
32262         (find_and_remove_re): Emit a copy from the extension's
32263         destination to its source after the defining insn if
32264         the source and destination registers are different.
32266         PR middle-end/59285
32267         * ifcvt.c (merge_if_block): If we are merging a block with more than
32268         one successor with a block with no successors, remove any BARRIER
32269         after the second block.
32271 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
32273         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
32275 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
32277         PR target/59652
32278         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
32279         for 14-bit register offsets when INT14_OK_STRICT is false.
32281 2014-01-07  Roland Stigge  <stigge@antcom.de>
32282             Michael Meissner  <meissner@linux.vnet.ibm.com>
32284         PR 57386/target
32285         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
32286         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
32288 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
32290         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
32291         -mcpu.
32293 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
32295         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
32296         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
32297         rtx is const0_rtx or not.
32299 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
32301         PR target/58115
32302         * target-globals.c (save_target_globals): Remove this_fn_optab
32303         handling.
32304         * toplev.c: Include optabs.h.
32305         (target_reinit): Temporarily restore the global options if another
32306         set of options are in force.
32308 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
32310         PR rtl-optimization/58668
32311         * cfgcleanup.c (flow_find_cross_jump): Don't count
32312         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
32313         to determine what is counted.
32314         (flow_find_head_matching_sequence): Use active_insn_p to determine
32315         what is counted.
32316         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
32317         counting change.
32318         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
32319         determine what is counted.
32321         PR tree-optimization/59643
32322         * tree-predcom.c (split_data_refs_to_components): If one dr is
32323         read and one write, determine_offset fails and the write isn't
32324         in the bad component, just put the read into the bad component.
32326 2014-01-07  Mike Stump  <mikestump@comcast.net>
32327             Jakub Jelinek  <jakub@redhat.com>
32329         PR pch/59436
32330         * tree-core.h (struct tree_optimization_option): Change optabs
32331         type from unsigned char * to void *.
32332         * optabs.c (init_tree_optimization_optabs): Adjust
32333         TREE_OPTIMIZATION_OPTABS initialization.
32335 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
32337         PR target/59644
32338         * config/i386/i386.h (struct machine_function): Add
32339         no_drap_save_restore field.
32340         * config/i386/i386.c (ix86_save_reg): Use
32341         !cfun->machine->no_drap_save_restore instead of
32342         crtl->stack_realign_needed.
32343         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
32344         this function clears frame_pointer_needed.  Set
32345         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
32346         and DRAP reg is needed.
32348 2014-01-06  Marek Polacek  <polacek@redhat.com>
32350         PR c/57773
32351         * doc/implement-c.texi: Mention that other integer types are
32352         permitted as bit-field types in strictly conforming mode.
32354 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
32356         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
32357         is newly allocated.
32359 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
32361         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
32363 2014-01-06  Martin Jambor  <mjambor@suse.cz>
32365         PR ipa/59008
32366         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
32367         to int.
32368         * ipa-prop.c (ipa_print_node_params): Fix indentation.
32370 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
32372         PR debug/59350
32373         PR debug/59510
32374         * var-tracking.c (add_stores): Preserve the value of the source even if
32375         we don't record the store.
32377 2014-01-06  Terry Guo  <terry.guo@arm.com>
32379         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
32381 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
32383         PR bootstrap/59541
32384         * config/darwin.c (darwin_function_section): Adjust return values to
32385         correspond to optimisation changes made in r206070.
32387 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
32389         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
32390         from prefetch_block tune setting.
32391         (nocona_cost): Correct size of prefetch block to 64.
32393 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32395         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
32396         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
32397         used to save the static chain register in the computation of the offset
32398         from which the FP registers need to be restored.
32400 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
32402         PR tree-optimization/59519
32403         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
32404         ICE if get_current_def (current_new_name) is already non-NULL, as long
32405         as it is a phi result of some other phi in *new_exit_bb that has
32406         the same argument.
32408         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
32409         or vmovdqu* for misaligned_operand.
32410         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
32411         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
32412         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
32413         aligned_mem for AVX512F masked aligned load and store builtins and for
32414         non-temporal moves.
32416 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
32418         PR tree-optimization/59651
32419         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32420         Address range for negative step should be added by TYPE_SIZE_UNIT.
32422 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
32424         * config/m68k/m68k.c (handle_move_double): Handle pushes with
32425         overlapping registers also for registers other than the stack pointer.
32427 2014-01-03  Marek Polacek  <polacek@redhat.com>
32429         PR other/59661
32430         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
32431         __builtin_FILE.
32433 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
32435         PR target/59625
32436         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
32437         asm goto as jump.
32439         * config/i386/i386.md (MODE_SIZE): New mode attribute.
32440         (push splitter): Use <P:MODE_SIZE> instead of
32441         GET_MODE_SIZE (<P:MODE>mode).
32442         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
32443         (mov -1, reg peephole2): Likewise.
32444         * config/i386/sse.md (*mov<mode>_internal,
32445         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
32446         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
32447         *<code><mode>3, *andnot<mode>3<mask_name>,
32448         <mask_codefor><code><mode>3<mask_name>): Likewise.
32449         * config/i386/subst.md (mask_mode512bit_condition,
32450         sd_mask_mode512bit_condition): Likewise.
32452 2014-01-02  Xinliang David Li  <davidxl@google.com>
32454         PR tree-optimization/59303
32455         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
32456         (dump_predicates): Better output format.
32457         (pred_equal_p): New function.
32458         (is_neq_relop_p): Ditto.
32459         (is_neq_zero_form_p): Ditto.
32460         (pred_expr_equal_p): Ditto.
32461         (pred_neg_p): Ditto.
32462         (simplify_pred): Ditto.
32463         (simplify_preds_2): Ditto.
32464         (simplify_preds_3): Ditto.
32465         (simplify_preds_4): Ditto.
32466         (simplify_preds): Ditto.
32467         (push_pred): Ditto.
32468         (push_to_worklist): Ditto.
32469         (get_pred_info_from_cmp): Ditto.
32470         (is_degenerated_phi): Ditto.
32471         (normalize_one_pred_1): Ditto.
32472         (normalize_one_pred): Ditto.
32473         (normalize_one_pred_chain): Ditto.
32474         (normalize_preds): Ditto.
32475         (normalize_cond_1): Remove function.
32476         (normalize_cond): Ditto.
32477         (is_gcond_subset_of): Ditto.
32478         (is_subset_of_any): Ditto.
32479         (is_or_set_subset_of): Ditto.
32480         (is_and_set_subset_of): Ditto.
32481         (is_norm_cond_subset_of): Ditto.
32482         (pred_chain_length_cmp): Ditto.
32483         (convert_control_dep_chain_into_preds): Type change.
32484         (find_predicates): Ditto.
32485         (find_def_preds): Ditto.
32486         (destroy_predicates_vecs): Ditto.
32487         (find_matching_predicates_in_rest_chains): Ditto.
32488         (use_pred_not_overlap_with_undef_path_pred): Ditto.
32489         (is_pred_expr_subset): Ditto.
32490         (is_pred_chain_subset_of): Ditto.
32491         (is_included_in): Ditto.
32492         (is_superset_of): Ditto.
32494 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
32496         Update copyright years.
32498 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
32500         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
32501         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
32502         config/arc/arc.md, config/arc/arc.opt,
32503         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
32504         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
32505         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
32506         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
32507         config/linux-protos.h, config/linux.c, config/winnt-c.c,
32508         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
32509         vtable-verify.c, vtable-verify.h: Use the standard form for the
32510         copyright notice.
32512 2014-01-02  Tobias Burnus  <burnus@net-b.de>
32514         * gcc.c (process_command): Update copyright notice dates.
32515         * gcov-dump.c: Ditto.
32516         * gcov.c: Ditto.
32517         * doc/cpp.texi: Bump @copying's copyright year.
32518         * doc/cppinternals.texi: Ditto.
32519         * doc/gcc.texi: Ditto.
32520         * doc/gccint.texi: Ditto.
32521         * doc/gcov.texi: Ditto.
32522         * doc/install.texi: Ditto.
32523         * doc/invoke.texi: Ditto.
32525 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
32527         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
32529 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
32531         * config/i386/sse.md (*mov<mode>_internal): Guard
32532         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
32534         PR rtl-optimization/59647
32535         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
32536         new_rtx into UNSIGNED_FLOAT rtxes.
32538 Copyright (C) 2014 Free Software Foundation, Inc.
32540 Copying and distribution of this file, with or without modification,
32541 are permitted in any medium without royalty provided the copyright
32542 notice and this notice are preserved.