vbsl.c: New file.
[gcc.git] / gcc / ChangeLog
1 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2
3 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
4 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
5 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
6 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
7
8 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9
10 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
11 do while (0).
12 * config/aarch64/aarch64.c (is_mem_p): Delete.
13 (is_memory_op): Rename to...
14 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
15 (dep_between_memop_and_curr): Assert that the input is a SET.
16 (aarch64_madd_needs_nop): Add comment. Do not call
17 dep_between_memop_and_curr on NULL body.
18 (aarch64_final_prescan_insn): Add comment.
19 Include rtl-iter.h.
20
21 2014-10-24 Richard Biener <rguenther@suse.de>
22
23 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
24 to genmatch BUILD_LIBS instead.
25
26 2014-10-24 Richard Biener <rguenther@suse.de>
27
28 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
29 and build_call_expr_loc.
30 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
31 non_lvalue_loc to build it for GENERIC.
32 (decision_tree::gen_generic): Add location argument to
33 generic_simplify prototype.
34 (capture_info): New class.
35 (capture_info::capture_info): New constructor.
36 (capture_info::walk_match): New method.
37 (capture_info::walk_result): New method.
38 (capture_info::walk_c_expr): New method.
39 (dt_simplify::gen): Handle preserving side-effects for
40 GENERIC code generation.
41 (decision_tree::gen_generic): Do not reject operands
42 with TREE_SIDE_EFFECTS.
43 * generic-match.h: New file.
44 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
45 * match.pd: Add some constant folding patterns from fold-const.c.
46 * fold-const.c: Include generic-match.h.
47 (fold_unary_loc): Dispatch to generic_simplify.
48 (fold_ternary_loc): Likewise.
49 (fold_binary_loc): Likewise. Remove patterns now implemented
50 by generic_simplify.
51 * gimple-fold.c (replace_stmt_with_simplification): New function.
52 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
53 (no_follow_ssa_edges): New function.
54 (fold_stmt): New overload with valueization hook. Use
55 no_follow_ssa_edges for the overload without hook.
56 (fold_stmt_inplace): Likewise.
57 * gimple-fold.h (no_follow_ssa_edges): Declare.
58
59 2014-10-24 Felix Yang <felix.yang@huawei.com>
60 Jiji Jiang <jiangjiji@huawei.com>
61
62 PR target/63173
63 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
64 (__LD3R_FUNC): Ditto.
65 (__LD4R_FUNC): Ditto.
66 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
67 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
68 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
69 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
70 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
71 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
72 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
73 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
74 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
75 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
76 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
77 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
78 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
79 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
80 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
81 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
82 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
83 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
84 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
85 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
86 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
87 builtins.
88 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
89 (aarch64_simd_ld3r<mode>): Likewise.
90 (aarch64_simd_ld4r<mode>): Likewise.
91 (aarch64_ld2r<mode>): New expand.
92 (aarch64_ld3r<mode>): Likewise.
93 (aarch64_ld4r<mode>): Likewise.
94
95 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
96
97 * rtlanal.c (get_base_term): Handle SCRATCH.
98
99 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
100
101 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
102 register pressure.
103
104 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
105
106 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
107 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
108 (max_issue, choose_ready, sched_init): Update.
109
110 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
111
112 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
113 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
114 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
115 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
116 (print_rank_for_schedule_stats): Print out elements of ready list that
117 ended up on their respective places due to each of the sorting
118 heuristics.
119 (ready_sort): Update.
120 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
121 (schedule_block): Update.
122
123 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
124
125 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
126 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
127 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
128 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
129 (model_start_schedule): Update.
130 (sched_pressure_start_bb): New static function. Calculate
131 sched_class_regs_num.
132 (schedule_block): Use it.
133 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
134
135 2014-10-24 Richard Biener <rguenther@suse.de>
136
137 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
138 host library and make sure to pull in the required libintl
139 and libiconv dependencies.
140
141 2014-10-24 Richard Biener <rguenther@suse.de>
142
143 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
144
145 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
146
147 PR bootstrap/63632
148 * collect2.c (main): Filter out -fno-lto.
149
150 2014-10-24 Martin Liska <mliska@suse.cz>
151
152 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
153 division by zero in dumps.
154 (sem_item_optimizer::merge_classes): Ditto.
155
156 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
157
158 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
159
160 2014-10-23 Ian Lance Taylor <iant@google.com>
161
162 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
163
164 2014-10-23 Ian Lance Taylor <iant@google.com>
165
166 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't define.
167
168 2014-10-23 Jakub Jelinek <jakub@redhat.com>
169
170 PR debug/63623
171 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
172 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
173 instead of only handling autoinc in dest if it is a MEM.
174 (vt_stack_adjustments): Fix up formatting.
175
176 2014-10-23 DJ Delorie <dj@redhat.com>
177
178 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
179 independend of -mlarge.
180 * config/msp430/constraints.md (Ys): Update comment.
181
182 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
183
184 PR target/63534
185 PR target/63618
186 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
187 while it is pseudo.
188 * dse.c (deletable_insn_p): Likewise.
189
190 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
191
192 * config/avr/avr.c: Fix GNU coding rules and typos.
193 * config/avr/avr.h: Dito.
194 * config/avr/avr-c.c: Dito.
195 * config/avr/avr.md: Dito.
196
197 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
198
199 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
200 New.
201 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
202 iterator.
203 (define_expand "abs<mode>2"): Ditto.
204
205 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
206
207 * tree-core.h (tree_var_decl): Extend `function_code' field
208 by one bit, move `regdecl_flag' field to ...
209 (tree_decl_with_vis): Here.
210 * tree.h (DECL_STATIC_CHAIN): Update struct name.
211
212 2014-10-23 Richard Biener <rguenther@suse.de>
213
214 * Makefile.in (BUILD_CPPLIB): Add.
215 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
216 Drop LIBIBERTY.
217
218 2014-10-23 Richard Biener <rguenther@suse.de>
219
220 * fold-const.c (fold_binary_loc): Preserve side-effects of
221 X - X when simplifying to 0.
222 * stor-layout.c (finish_bitfield_representative): Strip
223 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
224
225 2014-10-22 Richard Biener <rguenther@suse.de>
226 Tobias Burnus <burnus@net-b.de>
227
228 PR lto/63603
229 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
230
231 2014-10-22 Dehao Chen <dehao@google.com>
232
233 * auto-profile.c: Change order of header files.
234
235 2014-10-22 Guozhi Wei <carrot@google.com>
236
237 PR tree-optimization/63530
238 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
239 pointer alignment according to DR_MISALIGNMENT.
240
241 2014-10-22 David Malcolm <dmalcolm@redhat.com>
242
243 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
244
245 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
246
247 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
248 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
249 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
250 * dominance.h: New. Add prototypes for dominance.c.
251 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
252 * cfghooks.h: (struct profile_record) Relocate here.
253 Relocate 2 prototypes from basic-block.h.
254 * basic-block.h: Move prototypes and struct to new header files.
255 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
256 * rtl.h: Move a few prototypes to new header files.
257 * cfgcleanup.c (merge_memattrs): Make static.
258 * genopinit.c (main): Add predict.h to list of includes.
259 * predict.h: Update prototype list to match predict.c.
260 * predict.c (maybe_hot_count_p): Export.
261 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
262 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
263 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
264 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
265 * profile.h: Adjust prototypes.
266 * ifcvt.h: New. Relocate struct ce_if_block here.
267 * ifcvt.c: Include ifcvt.h.
268 * config/frv/frv.c: Include ifcvt.h.
269 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
270
271 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
272
273 * lra.c (lra): Remove call to recog_init.
274 * config/i386/i386.md (preferred_for_speed): New attribute
275 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
276 "enabled". Remove check for sched1.
277
278 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
279
280 * recog.h (recog_data_d): Remove enabled_alternatives.
281 * recog.c (extract_insn): Don't set it.
282 * reload.c (find_reloads): Call get_enabled_alternatives.
283
284 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
285
286 * recog.h (constrain_operands): Add an alternative_mask parameter.
287 (constrain_operands_cached): Likewise.
288 (get_preferred_alternatives): Declare new form.
289 * recog.c (get_preferred_alternatives): New bb-taking instance.
290 (constrain_operands): Take the set of available alternatives as
291 a parameter.
292 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
293 (extract_constrain_insn_cached): Update calls to constrain_operands.
294 * caller-save.c (reg_save_code): Likewise.
295 * ira.c (setup_prohibited_mode_move_regs): Likewise.
296 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
297 * ree.c (combine_reaching_defs): Likewise.
298 * reload.c (can_reload_into): Likewise.
299 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
300 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
301 (emit_insn_if_valid_for_reload): Likewise.
302 * reorg.c (fill_slots_from_thread): Likewise.
303 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
304 * config/pa/pa.c (pa_can_combine_p): Likewise.
305 * config/rl78/rl78.c (insn_ok_now): Likewise.
306 * config/sh/sh.md (define_peephole2): Likewise.
307 * final.c (final_scan_insn): Update call to constrain_operands_cached.
308
309 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
310
311 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
312 attributes.
313 * genattr.c (main): Handle "preferred_for_size" and
314 "preferred_for_speed" in the same way as "enabled".
315 * recog.h (bool_attr): New enum.
316 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
317 (get_preferred_alternatives, check_bool_attrs): Declare.
318 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
319 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
320 New functions.
321 (get_enabled_alternatives): Use get_bool_attr_mask.
322 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
323 instead of recog_data.enabled_alternatives.
324 * ira.c (ira_setup_alts): Likewise.
325 * postreload.c (reload_cse_simplify_operands): Likewise.
326 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
327 * ira-lives.c (preferred_alternatives): New variable.
328 (process_bb_node_lives): Set it.
329 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
330 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
331 of recog_data.enabled_alternatives.
332 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
333 to preferred_alternatives.
334 * lra-constraints.c (process_alt_operands): Update accordingly.
335 * lra.c (lra_set_insn_recog_data): Likewise.
336 (lra_update_insn_recog_data): Assert check_bool_attrs.
337
338 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
339
340 * recog.h (extract_constrain_insn): Declare.
341 * recog.c (extract_constrain_insn): New function.
342 * lra.c (check_rtl): Use it.
343 * postreload.c (reload_cse_simplify_operands): Likewise.
344 * reg-stack.c (check_asm_stack_operands): Likewise.
345 (subst_asm_stack_regs): Likewise.
346 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
347 * regrename.c (build_def_use): Likewise.
348 * sel-sched.c (get_reg_class): Likewise.
349 * config/arm/arm.c (note_invalid_constants): Likewise.
350 * config/s390/predicates.md (execute_operation): Likewise.
351
352 2014-10-22 Jakub Jelinek <jakub@redhat.com>
353 Yury Gribov <y.gribov@samsung.com>
354
355 * common.opt (flag_sanitize_recover): New variable.
356 (fsanitize-recover): Remove Var/Init, deprecate.
357 (fsanitize-recover=): New option.
358 * doc/invoke.texi (fsanitize-recover): Update docs.
359 * opts.c (finish_options): Use opts->x_flag_sanitize
360 instead of flag_sanitize. Prohibit -fsanitize-recover
361 for anything besides UBSan. Formatting.
362 (common_handle_option): Handle OPT_fsanitize_recover_
363 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
364 instead of flag_sanitize.
365 * asan.c (pass_sanopt::execute): Fix up formatting.
366 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
367 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
368 instrument_bool_enum_load, ubsan_instrument_float_cast,
369 instrument_nonnull_arg, instrument_nonnull_return): Check
370 bits in flag_sanitize_recover bitmask instead of
371 flag_sanitize_recover as bool flag.
372
373 2014-10-22 Jiong Wang <jiong.wang@arm.com>
374
375 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
376
377 2014-10-22 Renlin Li <renlin.li@arm.com>
378
379 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
380 __ARM_FEATURE_IDIV__.
381
382 2014-10-22 Richard Biener <rguenther@suse.de>
383
384 * Makefile.in (s-match): Adjust dependencies to only catch
385 match.pd.
386
387 2014-10-22 Richard Biener <rguenther@suse.de>
388 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
389
390 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
391 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
392 (gimple-match.c): Generate by triggering s-match.
393 (generic-match.c): Likewise.
394 (s-match): Rule to build gimple-match.c and generic-match.c
395 by running the genmatch generator program.
396 (build/hash-table.o): Dependencies to build hash-table.c for the host.
397 (build/genmatch.o): Dependencies to build genmatch.
398 (genprog): Add match.
399 (build/genmatch): Likewise.
400 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
401 * generic-match-head.c: New file.
402 * gimple-match-head.c: Likewise.
403 * gimple-match.h: Likewise.
404 * genmatch.c: Likewise.
405 * match.pd: Likewise.
406 * builtins.h (fold_builtin_n): Export.
407 * builtins.c (fold_builtin_n): Likewise.
408 * gimple-fold.h (gimple_build): Declare various overloads.
409 (gimple_simplify): Likewise.
410 (gimple_convert): Re-implement in terms of gimple_build.
411 * gimple-fold.c (gimple_convert): Remove.
412 (gimple_build): New functions.
413 * doc/match-and-simplify.texi: New file.
414 * doc/gccint.texi: Add menu item Match and Simplify and include
415 match-and-simplify.texi.
416
417 2014-10-22 Jakub Jelinek <jakub@redhat.com>
418
419 PR target/63594
420 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
421 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
422 even for just TARGET_AVX2, not only for
423 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
424 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
425 otherwise build it using concatenation of 256-bit
426 broadcast.
427 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
428 avx512 broadcast patterns.
429 (vec_dup<mode>): Likewise. For avx2 use
430 v<sseintprefix>broadcast<bcstscalarsuff> instead of
431 vbroadcast<ssescalarmodesuffix>.
432 (AVX2_VEC_DUP_MODE): New mode iterator.
433 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
434 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
435
436 PR target/63542
437 * config/i386/i386.c (ix86_pic_register_p): Also return
438 true if x is a hard register with ORIGINAL_REGNO equal to
439 pic_offset_table_rtx pseudo REGNO.
440 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
441 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
442
443 2014-10-22 Alan Modra <amodra@gmail.com>
444
445 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
446 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
447 (gcc_obstack_init): Use obstack_specify_allocation in place of
448 _obstack_begin.
449 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
450 (regexp_representation): Likewise.
451 * godump.c (go_output_type): Likewise.
452
453 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
454
455 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
456 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
457 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
458
459 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
460
461 * doc/invoke.texi (pedantic-errors): Explain better.
462
463 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
464 Vidya Praveen <vidya.praveen@atmel.com>
465 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
466 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
467 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
468
469 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
470 __MEMX for avrtiny.
471 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
472 (avr_nonconst_pointer_addrspace): Likewise.
473 * config/avr/avr.h (AVR_HAVE_LPM): Define.
474
475 Added AVRTINY architecture to avr target.
476 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
477 (base_arch_s): member added for AVRTINY architecture.
478 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
479 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
480 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
481 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
482 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
483 in callee saved register list.
484 (avr_option_override): CCP address updated for AVRTINY.
485 (avr_init_expanders): tmp and zero rtx initialized as per arch.
486 Reset avr_have_dimode if AVRTINY.
487 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
488 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
489 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
490 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
491 (expand_epilogue): Likewise.
492 (avr_print_operand): Print CCP address in case of AVRTINY also.
493 <TBD>bad address
494 (function_arg_regno_p): Check different register list for arguments
495 if AVRTINY.
496 (init_cumulative_args): Check for AVRTINY to update number of argument
497 registers.
498 (tiny_valid_direct_memory_access_range): New function. Return false if
499 direct memory access range is not in accepted range for AVRTINY.
500 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
501 indirect load (with displacement) for AVRTINY.
502 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
503 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
504 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
505 indirect load (no displacement) for AVRTINY.
506 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
507 indirect load (with displacement) for AVRTINY.
508 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
509 indirect load for pre-decrement address.
510 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
511 functions. Update instruction length for AVRTINY.
512 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
513 SImode.
514 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
515 (out_movsi_r_mr): Likewise, for SImode.
516 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
517 indirect store (no displacement) for AVRTINY.
518 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
519 indirect store (with displacement) for AVRTINY.
520 (out_movsi_mr_r): Emit out insn for IO address store. Update store
521 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
522 store functions.
523 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
524 indirect load (no displacement) for PSImode in AVRTINY.
525 (avr_out_load_psi_reg_disp_tiny): New function to handle register
526 indirect load (with displacement) for PSImode in AVRTINY.
527 (avr_out_load_psi): Call PSImode register indirect load functions for
528 AVRTINY. Update instruction length for AVRTINY.
529 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
530 indirect store (no displacement) for PSImode in AVRTINY.
531 (avr_out_store_psi_reg_disp_tiny): New function to handle register
532 indirect store (with displacement) for PSImode in AVRTINY.
533 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
534 register indirect store functions for AVRTINY.
535 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
536 register indirect store (with displacement) for AVRTINY.
537 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
538 register indirect store function for QImode in AVRTINY.
539 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
540 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
541 indirect store (no displacement) for HImode in AVRTINY.
542 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
543 indirect store (with displacement) for HImode in AVRTINY.
544 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
545 indirect store for post-increment address in HImode.
546 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
547 register indirect store function for HImode in AVRTINY.
548 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
549 in case of AVRTINY.
550 (order_regs_for_local_alloc): Updated register allocation order for
551 AVRTINY.
552 (avr_conditional_register_usage): New function. It is a target hook
553 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
554 used registers list and register allocation order for AVRTINY.
555 (avr_return_in_memory): Update return value size for AVRTINY.
556 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
557 for AVRTINY arch and tiny program memory base address.
558 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
559 (avr_texinfo): Added description for AVRTINY arch.
560 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
561 STATIC_CHAIN_REGNUM for AVRTINY.
562 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
563 * config/avr/avr.md: Added constants for tmp/ zero registers in
564 AVRTINY. Attributes for AVRTINY added.
565 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
566 memory access range.
567 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
568 in AVRTINY memory access range.
569 (*mov<mode>): Likewise for HImode and SImode.
570 (*movsf): Likewise for SFmode.
571 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
572 not have sbiw.
573 * config/avr/avr-protos.h: Added function prototype for
574 tiny_valid_direct_memory_access_range.
575 * config/avr/avr-tables.opt: Regenerate.
576 * gcc/config/avr/t-multilib: Regenerate.
577 * doc/avr-mmcu.texi: Regenerate.
578
579 2014-10-21 Andrew Pinski <apinski@cavium.com>
580
581 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
582 available option also.
583 * config/aarch64/aarch64-cost-tables.h: New file.
584 * config/aarch64/aarch64-cores.def (thunderx): New core.
585 * config/aarch64/aarch64-tune.md: Regenerate.
586 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
587 of config/arm/aarch-cost-tables.h.
588 (thunderx_regmove_cost): New variable.
589 (thunderx_tunings): New variable.
590
591 2014-10-21 Dehao Chen <dehao@google.com>
592
593 * auto-profile.c: New file.
594 * auto-profile.h: New file.
595 * basic-block.h (maybe_hot_count_p): New export func.
596 (add_working_set): New export func.
597 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
598 (GCOV_TAG_AFDO_FUNCTION): Likewise.
599 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
600 * opts.c (enable_fdo_optimizations): New func.
601 (common_handle_option): Handle -fauto-profile flag.
602 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
603 (class pass_early_inline): Export early_inliner.
604 (early_inliner): Likewise.
605 (pass_early_inline::execute): Likewise.
606 * ipa-inline.h (early_inliner): Likewise.
607 * predict.c (maybe_hot_count_p): New export func.
608 (counts_to_freqs): AutoFDO logic.
609 (rebuild_frequencies): Likewise.
610 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
611 * profile.c (add_working_set): New func.
612 * Makefile.in (auto-profile.o): New object file.
613 * passes.def (pass_ipa_auto_profile): New pass.
614 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
615 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
616 * toplev.c (compile_file): AutoFDO logic.
617 * doc/invoke.texi (-fauto-profile): New doc.
618 * coverage.c (coverage_init): AutoFDO logic.
619 * common.opt (-fauto-profile): New flag.
620 * timevar.def (TV_IPA_AUTOFDO): New tag.
621 * value-prof.c (gimple_alloc_histogram_value): New export func.
622 (check_ic_target): Likewise.
623 * value-prof.h (gimple_alloc_histogram_value): Likewise.
624 (check_ic_target): Likewise.
625
626 2014-10-21 David Malcolm <dmalcolm@redhat.com>
627
628 * cgraph.c (cgraph_c_finalize): New function.
629 * cgraph.h (cgraph_c_finalize): New prototype.
630 (cgraphunit_c_finalize): New prototype.
631 * cgraphunit.c (first_analyzed): Move from analyze_functions
632 to file-scope.
633 (first_analyzed_var): Likewise.
634 (analyze_functions): Move static variables into file-scope.
635 (cgraphunit_c_finalize): New function.
636 * diagnostic.c (diagnostic_finish): Free the memory for
637 context->classify_diagnostic and context->printer, running the
638 destructor for the latter.
639 (bt_stop): Use toplev::main.
640 * dwarf2out.c (dwarf2out_finalize): New function.
641 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
642 * gcse.c (gcse_c_finalize): New function.
643 * gcse.h (gcse_c_finalize): New prototype.
644 * ggc-page.c (init_ggc): Make idempotent.
645 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
646 * ipa-cp.c (ipa_cp_c_finalize): New function.
647 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
648 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
649 a field of class pass_ipa_pure_const.
650 (node_duplication_hook_holder): Likewise.
651 (node_removal_hook_holder): Likewise.
652 (register_hooks): Convert to method...
653 (pass_ipa_pure_const::register_hooks): ...here, converting
654 static variable init_p into...
655 (pass_ipa_pure_const::init_p): ...new field.
656 (pure_const_generate_summary): Update invocation of
657 register_hooks to invoke as a method of current_pass.
658 (pure_const_read_summary): Likewise.
659 (propagate): Convert to...
660 (pass_ipa_pure_const::execute): ...method.
661 * ipa-reference.c (ipa_init): Move static bool init_p from here
662 to...
663 (ipa_init_p): New file-scope variable, so that it can be reset
664 when repeatedly invoking the compiler within one process by...
665 (ipa_reference_c_finalize): New function.
666 * ipa-reference.h (ipa_reference_c_finalize): New.
667 * main.c (main): Replace invocation of toplev_main with
668 construction of a toplev instance, and call its "main" method.
669 * params.c (global_init_params): Add an assert that
670 params_finished is false.
671 (params_c_finalize): New.
672 * params.h (params_c_finalize): New.
673 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
674 invoking generate_summary, for the benefit of pass_ipa_pure_const.
675 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
676 before calling write_summary hook.
677 (ipa_write_optimization_summaries_1): Likewise when calling
678 write_optimization_summary hook.
679 (ipa_read_summaries_1): Likewise for read_summary hook.
680 (ipa_read_optimization_summaries_1): Likewise for
681 read_optimization_summary hook.
682 (execute_ipa_stmt_fixups): Likewise.
683 * stringpool.c (init_stringpool): Clean up if we're called more
684 than once.
685 * timevar.c (timevar_init): Ignore repeated calls.
686 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
687 "ipa-prop.h".
688 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
689 (initialize_rtl): Move static local "initialized_once"
690 into file scope, and rename to...
691 (rtl_initialized): New variable.
692 (do_compile): Move timevar initialization from here to
693 toplev::start_timevars.
694 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
695 toplev::finalize): New functions.
696 (toplev_main): Rename to...
697 (toplev::main): ...this.
698 * toplev.h (class toplev): New class.
699
700 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
701
702 * loop-doloop.c: Include loop-unroll.h.
703
704 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
705
706 * cfg.h: New. Header file for cfg.c.
707 * cfganal.h: New. Header file for cfganal.c.
708 * lcm.h: New. Header file for lcm.c.
709 * loop-unroll.h: New. Header file for loop-unroll.h.
710 * cfgloop.h: (unroll_loops): Remove prototype.
711 * basic-block.h: Move prototypes and structs to new header files.
712 Include cfg.h, cfganal.h, and lcm.h.
713 * loop-init.c: Include loop-unroll.h.
714 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
715 * modulo-sched.c: Include loop-unroll.h.
716
717 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
718
719 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
720 MARKER_BYTE_UNKNOWN markers when handling casts.
721
722 2014-10-21 Richard Biener <rguenther@suse.de>
723
724 * tree-ssa-phiopt.c (value_replacement): Properly verify we
725 are the non-singleton PHI.
726
727 2014-10-21 Jakub Jelinek <jakub@redhat.com>
728
729 PR tree-optimization/63563
730 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
731 if either dra or drb stmts are not normal loads/stores.
732
733 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
734
735 * config/i386/i386.c (expand_vec_perm_1): Fix
736 expand_vec_perm_palignr case.
737 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
738 VI1_AVX512.
739
740 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
741
742 * cfgloopanal.c (seq_cost): Delete.
743 * rtl.h (seq_cost): New prototype.
744 * rtlanal.c (seq_cost): New function.
745 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
746
747 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
748
749 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
750 * basic-block.h: Remove prototypes for cfgrtl.c.
751 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
752 prototypes to cfgrtl.h.
753 * profile.h (profile_info): Add extern export declaration.
754 * rtl.h: Remove prototypes for cfgrtl.h.
755 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
756 * ipa-inline.c: Include profile.h.
757 * loop-unroll.c: Ditto.
758 * modulo-sched.c: Ditto.
759 * postreload-gcse.c: Ditto.
760 * predict.c: Ditto.
761 * sched-ebb.c: Ditto.
762 * sched-rgn.c: Ditto.
763 * tracer.c: Ditto.
764 * tree-ssa-loop-ivcanon.c: Ditto.
765
766 2014-10-20 Richard Biener <rguenther@suse.de>
767
768 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
769 operands to get a def operand kind match. Signal mismatches
770 to the parent so we can try swapping its operands.
771 (vect_build_slp_tree): Try swapping operands if they have
772 a mismatched operand kind.
773
774 2014-10-20 Alan Modra <amodra@gmail.com>
775
776 PR debug/60655
777 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
778 Increase "ops" array size. Correct array size tests. Init
779 n_constants in loop. Break out of innermost loop when finding
780 a trivial CONST expression.
781
782 2014-10-20 Martin Liska <mliska@suse.cz>
783
784 PR ipa/63583
785 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
786 Gimple tempate string is compared.
787
788 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
789
790 * varasm.c (const_alias_set): Remove.
791 (init_varasm_once): Remove initialization of const_alias_set.
792 (build_constant_desc): Do not set alias set to const_alias_set.
793
794 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
795
796 * configure: Regenerate.
797 * configure.ac: Move the test for section attribute specifier "e" in GAS
798 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
799 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
800 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
801 ifdef HAVE_GAS_SECTION_EXCLUDE.
802
803 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
804
805 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
806 match_operand expression.
807
808 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
809 David Edelsohn <dje.gcc@gmail.com>
810
811 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
812 function.
813 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
814
815 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
816
817 * doc/invoke.texi (Options to Request or Suppress Warnings):
818 Explain options precedence.
819 (Wtrampolines): Do not indent paragraph.
820
821 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
822
823 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
824 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
825 (pa_jump_in_call_delay): Likewise.
826 * config/pa/pa.c (pa_option_override): Remove jump in call delay
827 override.
828 (pa_output_millicode_call): Remove support for jump in call delay.
829 (pa_output_call): Likewise.
830 (pa_jump_in_call_delay): Delete.
831 (pa_following_call): Likewise.
832 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
833 (uncond_branch): Remove following call check from attribute length.
834
835 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
836
837 PR target/53513
838 * config/sh/sh-modes.def (PSI): Remove.
839 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
840 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
841 (sh_reorg): Remove commented out FPSCR code.
842 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
843 insn instead of move insn.
844 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
845 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
846 handling.
847 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
848 (sh1_builtin_p): Uncomment.
849 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
850 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
851 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
852 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
853 (general_movsrc_operand, general_movdst_operand): Disallow
854 fpscr_operand.
855 * config/sh/sh.md (FPSCR_FR): New constant.
856 (push_fpscr): Emit sts_fpscr insn.
857 (pop_fpscr): Emit lds_fpscr_insn.
858 (movsi_ie): Disallow FPSCR operands.
859 (fpu_switch, unnamed related split, extend_psi_si,
860 truncate_si_psi): Remove insns.
861 (lds_fpscr, sts_fpscr): New insns.
862 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
863
864 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
865
866 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
867 (clone_inlined_nodes): Do not overwrite the clone if above predicate
868 returns true.
869
870 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
871
872 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
873 (expand_vec_perm_d): Ditto.
874 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
875 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
876 V4DFmode.
877 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
878 (ix86_expand_sse_unpack): Handle V64QImode.
879 (expand_vec_perm_blend): Update conditions for TARGET, handle
880 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
881 (expand_vec_perm_pshufb): Handle V64QImode.
882 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
883 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
884 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
885 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
886 (ix86_expand_vecop_qihi): Handle V64QImode.
887 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
888 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
889 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
890 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
891 (mul<mode>3): Use VI1_AVX512.
892 (<sse2_avx2>_packsswb): Ditto.
893 (<sse2_avx2>_packuswb): Ditto.
894 (<ssse3_avx2>_pshufb<mode>3): Ditto.
895 (<shift_insn><mode>3): Ditto.
896
897 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
898
899 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
900 conditions to fix bootstrap.
901
902 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
903
904 gcc-plugin.h: Add tm.h and flattened includes from function.h.
905
906 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
907 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
908 Anna Tikhonova <anna.tikhonova@intel.com>
909 Ilya Tocar <ilya.tocar@intel.com>
910 Andrey Turetskiy <andrey.turetskiy@intel.com>
911 Ilya Verbin <ilya.verbin@intel.com>
912 Kirill Yukhin <kirill.yukhin@intel.com>
913 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
914
915 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
916 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
917 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
918 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
919 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
920 (define_expand "vec_init<mode>"): Use VF48_I1248.
921
922 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
923 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
924 Anna Tikhonova <anna.tikhonova@intel.com>
925 Ilya Tocar <ilya.tocar@intel.com>
926 Andrey Turetskiy <andrey.turetskiy@intel.com>
927 Ilya Verbin <ilya.verbin@intel.com>
928 Kirill Yukhin <kirill.yukhin@intel.com>
929 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
930
931 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
932 expand_sse2_mulvxdi3.
933
934 2014-10-17 Richard Biener <rguenther@suse.de>
935
936 * fold-const.c (fold_comparison): Remove redundant constant
937 folding and operand swapping.
938 (fold_binary_loc): Do comparison operand swapping here.
939 (fold_ternary_loc): Canonicalize operand order for
940 commutative ternary operations.
941 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
942 and FMA_EXPR.
943
944 2014-10-17 Jakub Jelinek <jakub@redhat.com>
945
946 PR tree-optimization/63464
947 * gimple.h (gimple_seq_discard): New prototype.
948 * gimple.c: Include stringpool.h and tree-ssanames.h.
949 (gimple_seq_discard): New function.
950 * optabs.h (lshift_cheap_p): New prototype.
951 * optabs.c (lshift_cheap_p): New function, moved from...
952 * tree-switch-conversion.c (lshift_cheap_p): ... here.
953 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
954 (reassoc_branch_fixups): New variable.
955 (update_range_test): Add otherrangep and seq arguments.
956 Unshare exp. If otherrange is NULL, use for other ranges
957 array of pointers pointed by otherrangep instead.
958 Emit seq before gimplified statements for tem.
959 (optimize_range_tests_diff): Adjust update_range_test
960 caller.
961 (optimize_range_tests_xor): Likewise. Fix up comment.
962 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
963 functions.
964 (optimize_range_tests): Adjust update_range_test caller.
965 Call optimize_range_tests_to_bit_test.
966 (branch_fixup): New function.
967 (execute_reassoc): Call branch_fixup.
968
969 PR tree-optimization/63302
970 * tree-ssa-reassoc.c (optimize_range_tests_xor,
971 optimize_range_tests_diff): Use !integer_pow2p () instead of
972 tree_log2 () < 0.
973
974 2014-10-17 Martin Liska <mliska@suse.cz>
975
976 * ipa-icf.c (sem_function::merge): Local flags are set to false
977 to enforce equal calling convention to be used.
978 * opts.c (common_handle_option): Indentation fix.
979
980 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
981
982 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
983
984 2014-10-17 Tom de Vries <tom@codesourcery.com>
985
986 PR rtl-optimization/61605
987 * regcprop.c (copyprop_hardreg_forward_1): Use
988 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
989
990 2014-10-17 Tom de Vries <tom@codesourcery.com>
991
992 PR rtl-optimization/61605
993 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
994 notice stores for noops. Don't regard noops as copies.
995
996 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
997
998 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
999 register in a special way.
1000 (__cpuid_count): Ditto.
1001 * config/i386/driver-i386.h: Protect with
1002 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1003 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1004 is required to compile the function.
1005
1006 2014-10-16 DJ Delorie <dj@redhat.com>
1007
1008 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1009 integers.
1010
1011 * config/rs6000/rs6000-c.c (rid_int128): New.
1012 (rs6000_macro_to_expand): Use instead of RID_INT128.
1013
1014 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1015
1016 * function.h: Flatten file. Remove includes, adjust prototypes to
1017 reflect only what is in function.h.
1018 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1019 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1020 from expr.h.
1021 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1022 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1023 prototypes to predict.h.
1024 (init_varasm_status): Move prototype to varasm.h.
1025 * expr.h: Adjust include files.
1026 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1027 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1028 to function.h.
1029 (locate_and_pad_parm): Move prototype to function.h.
1030 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1031 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1032 assign_temp, reposition_prologue_and_epilogue_notes,
1033 prologue_epilogue_contains, sibcall_epilogue_contains,
1034 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1035 set_return_jump_label): Move prototypes to function.h.
1036 * predict.h (optimize_function_for_size_p,
1037 optimize_function_for_speed_p): Relocate prototypes from function.h.
1038 * shrink-wrap.h (emit_return_into_block, active_insn_between,
1039 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1040 function.h.
1041 * varasm.h (init_varasm_status): Relocate prototype from function.h.
1042 * genattrtab.c (write_header): Add predict.h to include list.
1043 * genconditions.c (write_header): Add predict.h to include list.
1044 * genemit.c (main): Adjust header file includes.
1045 * gengtype.c (ifiles): Add flattened function.h header files.
1046 * genoutput.c (output_prologue): Add predict.h to include list.
1047 * genpreds.c (write_insn_preds_c): Adjust header file includes.
1048 * genrecog.c (write_header): Add flattened function.h header files.
1049 * alias.c: Adjust include files.
1050 * auto-inc-dec.c: Likewise.
1051 * basic-block.h: Likewise.
1052 * bb-reorder.c: Likewise.
1053 * bt-load.c: Likewise.
1054 * builtins.c: Likewise.
1055 * caller-save.c: Likewise.
1056 * calls.c: Likewise.
1057 * cfgbuild.c: Likewise.
1058 * cfgcleanup.c: Likewise.
1059 * cfgexpand.c: Likewise.
1060 * cfgloop.c: Likewise.
1061 * cfgloop.h: Likewise.
1062 * cfgrtl.c: Likewise.
1063 * cgraph.h: Likewise.
1064 * cgraphclones.c: Likewise.
1065 * cgraphunit.c: Likewise.
1066 * combine-stack-adj.c: Likewise.
1067 * combine.c: Likewise.
1068 * coverage.c: Likewise.
1069 * cprop.c: Likewise.
1070 * cse.c: Likewise.
1071 * cselib.c: Likewise.
1072 * dbxout.c: Likewise.
1073 * ddg.c: Likewise.
1074 * df-core.c: Likewise.
1075 * df-problems.c: Likewise.
1076 * df-scan.c: Likewise.
1077 * dojump.c: Likewise.
1078 * dwarf2cfi.c: Likewise.
1079 * dwarf2out.c: Likewise.
1080 * emit-rtl.c: Likewise.
1081 * except.c: Likewise.
1082 * explow.c: Likewise.
1083 * expr.c: Likewise.
1084 * final.c: Likewise.
1085 * function.c: Likewise.
1086 * gcse.c: Likewise.
1087 * gimple-fold.c: Likewise.
1088 * gimple-low.c: Likewise.
1089 * gimple-streamer.h: Likewise.
1090 * haifa-sched.c: Likewise.
1091 * ifcvt.c: Likewise.
1092 * ira.c: Likewise.
1093 * jump.c: Likewise.
1094 * lcm.c: Likewise.
1095 * loop-invariant.c: Likewise.
1096 * lra-assigns.c: Likewise.
1097 * lra-coalesce.c: Likewise.
1098 * lra-constraints.c: Likewise.
1099 * lra-eliminations.c: Likewise.
1100 * lra-lives.c: Likewise.
1101 * lra-spills.c: Likewise.
1102 * lra.c: Likewise.
1103 * lto-cgraph.c: Likewise.
1104 * lto-section-in.c: Likewise.
1105 * lto-section-out.c: Likewise.
1106 * lto-streamer-in.c: Likewise.
1107 * lto-streamer-out.c: Likewise.
1108 * mode-switching.c: Likewise.
1109 * modulo-sched.c: Likewise.
1110 * omp-low.c: Likewise.
1111 * optabs.c: Likewise.
1112 * passes.c: Likewise.
1113 * postreload-gcse.c: Likewise.
1114 * postreload.c: Likewise.
1115 * predict.c: Likewise.
1116 * profile.c: Likewise.
1117 * recog.c: Likewise.
1118 * ree.c: Likewise.
1119 * reg-stack.c: Likewise.
1120 * regcprop.c: Likewise.
1121 * reginfo.c: Likewise.
1122 * regrename.c: Likewise.
1123 * reload.c: Likewise.
1124 * reload1.c: Likewise.
1125 * reorg.c: Likewise.
1126 * resource.c: Likewise.
1127 * rtlanal.c: Likewise.
1128 * sched-deps.c: Likewise.
1129 * sched-ebb.c: Likewise.
1130 * sched-rgn.c: Likewise.
1131 * sel-sched-dump.c: Likewise.
1132 * sel-sched-ir.c: Likewise.
1133 * sel-sched.c: Likewise.
1134 * shrink-wrap.c: Likewise.
1135 * simplify-rtx.c: Likewise.
1136 * statistics.c: Likewise.
1137 * stmt.c: Likewise.
1138 * stor-layout.c: Likewise.
1139 * store-motion.c: Likewise.
1140 * symtab.c: Likewise.
1141 * targhooks.c: Likewise.
1142 * toplev.c: Likewise.
1143 * trans-mem.c: Likewise.
1144 * tree-cfg.c: Likewise.
1145 * tree-cfgcleanup.c: Likewise.
1146 * tree-dfa.c: Likewise.
1147 * tree-eh.c: Likewise.
1148 * tree-inline.c: Likewise.
1149 * tree-into-ssa.c: Likewise.
1150 * tree-nested.c: Likewise.
1151 * tree-nrv.c: Likewise.
1152 * tree-profile.c: Likewise.
1153 * tree-ssa-alias.c: Likewise.
1154 * tree-ssa-ccp.c: Likewise.
1155 * tree-ssa-copy.c: Likewise.
1156 * tree-ssa-copyrename.c: Likewise.
1157 * tree-ssa-dom.c: Likewise.
1158 * tree-ssa-operands.c: Likewise.
1159 * tree-ssa-propagate.c: Likewise.
1160 * tree-ssa-structalias.c: Likewise.
1161 * tree-ssa-tail-merge.c: Likewise.
1162 * tree-ssa-threadedge.c: Likewise.
1163 * tree-ssa-threadupdate.c: Likewise.
1164 * tree-ssa-uncprop.c: Likewise.
1165 * tree-ssa-uninit.c: Likewise.
1166 * tree-ssa.c: Likewise.
1167 * tree-stdarg.c: Likewise.
1168 * tree-tailcall.c: Likewise.
1169 * tree.c: Likewise.
1170 * tsan.c: Likewise.
1171 * valtrack.c: Likewise.
1172 * varasm.c: Likewise.
1173 * vmsdbgout.c: Likewise.
1174 * web.c: Likewise.
1175 * config/aarch64/aarch64.c: Add flattened includes from function.h.
1176 * config/alpha/alpha.c: Likewise.
1177 * config/arc/arc.c: Likewise.
1178 * config/arm/arm.c: Likewise.
1179 * config/avr/avr-log.c: Likewise.
1180 * config/avr/avr.c: Likewise.
1181 * config/bfin/bfin.c: Likewise.
1182 * config/c6x/c6x.c: Likewise.
1183 * config/cr16/cr16.c: Likewise.
1184 * config/cris/cris.c: Likewise.
1185 * config/darwin.c: Likewise.
1186 * config/epiphany/epiphany.c: Likewise.
1187 * config/epiphany/mode-switch-use.c: Likewise.
1188 * config/epiphany/resolve-sw-modes.c: Likewise.
1189 * config/fr30/fr30.c: Likewise.
1190 * config/frv/frv.c: Likewise.
1191 * config/h8300/h8300.c: Likewise.
1192 * config/i386/i386.c: Likewise.
1193 * config/ia64/ia64.c: Likewise.
1194 * config/iq2000/iq2000.c: Likewise.
1195 * config/lm32/lm32.c: Likewise.
1196 * config/m32c/m32c.c: Likewise.
1197 * config/m32r/m32r.c: Likewise.
1198 * config/m68k/m68k.c: Likewise.
1199 * config/mcore/mcore.c: Likewise.
1200 * config/mep/mep-pragma.c: Likewise.
1201 * config/mep/mep.c: Likewise.
1202 * config/microblaze/microblaze.c: Likewise.
1203 * config/mips/mips.c: Likewise.
1204 * config/mmix/mmix.c: Likewise.
1205 * config/mn10300/mn10300.c: Likewise.
1206 * config/moxie/moxie.c: Likewise.
1207 * config/msp430/msp430.c: Likewise.
1208 * config/nds32/nds32-cost.c: Likewise.
1209 * config/nds32/nds32-fp-as-gp.c: Likewise.
1210 * config/nds32/nds32-intrinsic.c: Likewise.
1211 * config/nds32/nds32-isr.c: Likewise.
1212 * config/nds32/nds32-md-auxiliary.c: Likewise.
1213 * config/nds32/nds32-memory-manipulation.c: Likewise.
1214 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1215 * config/nds32/nds32-predicates.c: Likewise.
1216 * config/nds32/nds32.c: Likewise.
1217 * config/nios2/nios2.c: Likewise.
1218 * config/pa/pa.c: Likewise.
1219 * config/pdp11/pdp11.c: Likewise.
1220 * config/rl78/rl78.c: Likewise.
1221 * config/rs6000/rs6000.c: Likewise.
1222 * config/rx/rx.c: Likewise.
1223 * config/s390/s390.c: Likewise.
1224 * config/score/score.c: Likewise.
1225 * config/sh/sh.c: Likewise.
1226 * config/sparc/sparc.c: Likewise.
1227 * config/spu/spu.c: Likewise.
1228 * config/stormy16/stormy16.c: Likewise.
1229 * config/tilegx/tilegx.c: Likewise.
1230 * config/tilepro/tilepro.c: Likewise.
1231 * config/v850/v850.c: Likewise.
1232 * config/vax/vax.c: Likewise.
1233 * config/xtensa/xtensa.c: Likewise.
1234
1235 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
1236
1237 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1238 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1239
1240 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1241
1242 * config/sh/sh-protos.h (fldi_ok): Remove.
1243 * config/sh/sh.c (fldi_ok): Likewise.
1244 (sh_secondary_reload): Don't use fldi_ok.
1245 * config/sh/constraints.md (G constraint, H constraint): Don't use
1246 fldi_ok.
1247
1248 2014-10-16 Martin Liska <mliska@suse.cz>
1249
1250 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1251 Cast to unsigned long.
1252 (sem_item_optimizer::dump_cong_classes): Likewise.
1253
1254 2014-10-16 Tom de Vries <tom@codesourcery.com>
1255
1256 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1257 with SSA_NAME_IN_FREELIST.
1258
1259 2014-10-16 Richard Biener <rguenther@suse.de>
1260
1261 PR middle-end/63554
1262 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1263 (fold_builtin_strncat_chk): Move ...
1264 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1265 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1266
1267 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1268
1269 PR target/59401
1270 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1271 GBR to 0.
1272
1273 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1275 Anna Tikhonova <anna.tikhonova@intel.com>
1276 Ilya Tocar <ilya.tocar@intel.com>
1277 Andrey Turetskiy <andrey.turetskiy@intel.com>
1278 Ilya Verbin <ilya.verbin@intel.com>
1279 Kirill Yukhin <kirill.yukhin@intel.com>
1280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1281
1282 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1283 V64QI modes.
1284
1285 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1286 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1287 Anna Tikhonova <anna.tikhonova@intel.com>
1288 Ilya Tocar <ilya.tocar@intel.com>
1289 Andrey Turetskiy <andrey.turetskiy@intel.com>
1290 Ilya Verbin <ilya.verbin@intel.com>
1291 Kirill Yukhin <kirill.yukhin@intel.com>
1292 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1293
1294 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1295 V16SI, V32HI, V64QI modes.
1296
1297 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1298
1299 PR target/53513
1300 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1301 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1302
1303 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1304 to match fp insn patterns.
1305 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1306 list.
1307 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1308 expand_df_unop, expand_df_binop): Remove.
1309 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1310 FPSCR_STAT_REG as not call clobbered.
1311 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1312 invoking fpscr_set_from_mem.
1313
1314 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1315 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1316 FPSCR_STAT_REG.
1317 (REGISTER_NAMES): Adjust.
1318 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1319 (FIRST_PSEUDO_REGISTER): Increase to 156.
1320 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1321 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1322 FPSCR_STAT_REG.
1323 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1324 FPSCR_MODES_REG and FPSCR_STAT_REG.
1325 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1326
1327 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1328 FPSCR_SZ): Add new constants.
1329 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1330
1331 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1332 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1333 Use TARGET_FPU_ANY condition.
1334 (fpu_switch peephole2): Remove.
1335 (fpu_switch split): Use simple_mem_operand to capture the mem and
1336 adjust split implementation.
1337 (extend_psi_si, truncate_si_psi): New insns.
1338 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
1339 set of FPSCR_MODES_REG.
1340
1341 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1342 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1343 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1344 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1345 call_value_compact, call_value_compact_rettramp, call,
1346 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1347 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1348 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1349 sibcall_value_compact, sibcall_value, call_value_pop_compact,
1350 call_value_pop_compact_rettramp, various unnamed splits):
1351 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
1352 function uses.
1353
1354 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1355 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1356 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1357 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1358 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1359
1360 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1361 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1362 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1363 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1364 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1365 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1366 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
1367
1368 2014-10-16 Martin Liska <mliska@suse.cz>
1369 Jan Hubicka <hubicka@ucw.cz>
1370
1371 * Makefile.in: New object files included.
1372 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1373 is printed.
1374 (verify_edge_corresponds_to_fndecl): More sensitive verification
1375 of nodes that are merged by IPA ICF.
1376 * cgraph.h (cgraph_node::num_references): New function.
1377 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1378 * common.opt: New options ipa-icf, ipa-icf-functions and
1379 ipa-icf-variables introduced.
1380 * doc/invoke.texi: Documentation of new options introduced.
1381 * ipa-icf-gimple.c: New file.
1382 * ipa-icf-gimple.h: New file.
1383 * ipa-icf.c: New file.
1384 * ipa-icf.h: New file.
1385 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1386 (input_overwrite_node): Likewise.
1387 * lto-section-in.c: New icf section added.
1388 * lto-streamer.h (enum lto_section_type): Likewise.
1389 * opts.c (common_handle_option): New option added.
1390 * passes.def: New pass included.
1391 * timevar.def: Time variable for IPA ICF added.
1392 * tree-pass.h: New IPA ICF pass entry point added.
1393
1394 2014-10-16 Richard Biener <rguenther@suse.de>
1395
1396 PR tree-optimization/63168
1397 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1398 latches if after merging they are no longer simple.
1399 * cfghooks.c (merge_blocks): Handle merging a latch block
1400 into another block.
1401
1402 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1403 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1404 Anna Tikhonova <anna.tikhonova@intel.com>
1405 Ilya Tocar <ilya.tocar@intel.com>
1406 Andrey Turetskiy <andrey.turetskiy@intel.com>
1407 Ilya Verbin <ilya.verbin@intel.com>
1408 Kirill Yukhin <kirill.yukhin@intel.com>
1409 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1410
1411 * config/i386/sse.md
1412 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1413 support AVX-512VL instructions.
1414
1415 2014-10-16 DJ Delorie <dj@redhat.com>
1416
1417 * tree-core.h: Fix comment to not assume pointers are multiples of
1418 bytes.
1419
1420 2014-10-15 Tom Tromey <tromey@redhat.com>
1421
1422 * timevar.h (class auto_timevar): New class.
1423
1424 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
1425
1426 PR go/59432
1427 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1428 Remove the second alternative.
1429 (regprefix): Remove mode attribute.
1430 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1431 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1432
1433 Revert:
1434 2013-11-05 Ian Lance Taylor <iant@google.com>
1435
1436 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1437 If possible, add .cfi directives to record change to bx.
1438 * config/i386/i386.c (ix86_emit_cfi): New function.
1439 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1440
1441 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
1442
1443 PR lto/62026
1444 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1445 to duplicate.
1446 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1447 at WPA time.
1448
1449 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
1450
1451 PR rtl-optimization/63448
1452 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1453 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1454 (LRA_MAX_INHERITANCE_PASSES): Use it.
1455 (lra_constraint_iter_after_spill): Remove.
1456 (lra_assignment_iter): New.
1457 (lra_assignment_iter_after_spill): New.
1458 * lra-assigns.c (lra_assignment_iter): New.
1459 (lra_assignment_iter_after_spill): New.
1460 (former_reload_pseudo_spill_p): New.
1461 (spill_for): Set up former_reload_pseudo_spill_p.
1462 (setup_live_pseudos_and_spill_after_risky): Ditto.
1463 (assign_by_spills): Ditto.
1464 (lra_assign): Increment lra_assignment_iter. Print the iteration
1465 number. Reset former_reload_pseudo_spill_p. Check
1466 lra_assignment_iter_after_spill.
1467 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
1468 lra_assignment_iter and lra_assignment_iter_after_spill.
1469 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1470 (lra_constraints): Remove code with
1471 lra_assignment_iter_after_spill.
1472
1473 2014-10-15 Teresa Johnson <tejohnson@google.com>
1474
1475 PR bootstrap/63432
1476 * tree-ssa-threadupdate.c (recompute_probabilities): Better
1477 overflow checking.
1478
1479 2014-10-15 Renlin Li <renlin.li@arm.com>
1480
1481 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1482 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1483 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1484 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1485
1486 2014-10-15 Richard Biener <rguenther@suse.de>
1487
1488 * gimple-fold.c (gimple_fold_call): Properly keep virtual
1489 SSA form up-to-date when devirtualizing a call to
1490 __builtin_unreachable and avoid fixing up EH info here.
1491
1492 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1493 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1494 Anna Tikhonova <anna.tikhonova@intel.com>
1495 Ilya Tocar <ilya.tocar@intel.com>
1496 Andrey Turetskiy <andrey.turetskiy@intel.com>
1497 Ilya Verbin <ilya.verbin@intel.com>
1498 Kirill Yukhin <kirill.yukhin@intel.com>
1499 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1500
1501 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1502 to support AVX-512BW.
1503 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1504 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1505 (define_insn "*<plusminus_insn><mode>3"): Ditto.
1506 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1507 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1508 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1509 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1510 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1511 (define_insn "*andnot<mode>3"): Ditto.
1512 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1513 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1514 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1515 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1516 (define_insn "*abs<mode>2"): Remove masking support.
1517 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1518 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1519 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1520
1521 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1522 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1523 Anna Tikhonova <anna.tikhonova@intel.com>
1524 Ilya Tocar <ilya.tocar@intel.com>
1525 Andrey Turetskiy <andrey.turetskiy@intel.com>
1526 Ilya Verbin <ilya.verbin@intel.com>
1527 Kirill Yukhin <kirill.yukhin@intel.com>
1528 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1529
1530 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1531 * config/i386/sse.md
1532 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1533 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1534 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1535 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1536 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1537 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1538 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1539
1540 2014-10-15 Renlin Li <renlin.li@arm.com>
1541
1542 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1543
1544 2014-10-15 Jakub Jelinek <jakub@redhat.com>
1545
1546 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1547 MINUS_EXPR in unsigned type to avoid undefined behavior.
1548
1549 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
1550
1551 * stor-layout.c (self_referential_size): Do not promote arguments.
1552
1553 2014-10-15 Marek Polacek <polacek@redhat.com>
1554
1555 * doc/invoke.texi: Update to reflect that GNU11 is the default
1556 mode for C.
1557 * c-common.h (c_language_kind): Update comment.
1558
1559 2014-10-15 Richard Biener <rguenther@suse.de>
1560
1561 * hash-table.c: Include bconfig.h if building for the host.
1562 * hash-table.h: Do not include ggc.h on the host but just declare
1563 a few ggc allocation templates.
1564
1565 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
1566 Jeff Law <law@redhat.com>
1567
1568 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1569 multiple hard registers, use smaller mode derived from MODE.
1570
1571 2014-10-15 Andreas Schwab <schwab@suse.de>
1572
1573 * explow.c (convert_memory_address_addr_space_1): Mark in_const
1574 as ATTRIBUTE_UNUSED.
1575
1576 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
1577
1578 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1579 (decide_unrolling): ... this one.
1580 (peel_loops_completely): Remove.
1581 (decide_peel_simple): Remove.
1582 (decide_peel_once_rolling): Remove.
1583 (decide_peel_completely): Remove.
1584 (peel_loop_simple): Remove.
1585 (peel_loop_completely): Remove.
1586 (unroll_and_peel_loops): Rename to ...
1587 (unroll_loops): ... this one; handle only unrolling.
1588 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1589 LPT_PEEL_SIMPLE.
1590 (UAP_PEEL): Remove.
1591 (unroll_and_peel_loops): Remove.
1592 (unroll_loops): New.
1593 * passes.def: Replace
1594 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1595 * loop-init.c (gate_rtl_unroll_and_peel_loops,
1596 rtl_unroll_and_peel_loops): Rename to ...
1597 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1598 (pass_rtl_unroll_and_peel_loops): Rename to ...
1599 (pass_rtl_unroll_loops): ... this one.
1600 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1601 (make_pass_rtl_unroll_loops): New.
1602 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1603 (canonicalize_loop_induction_variables): Update.
1604
1605 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1606
1607 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1608 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1609 !TARGET_HARD_FLOAT_POSTINC.
1610 (*lsip, *ssip): new instructions.
1611
1612 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1613
1614 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1615 remove.
1616
1617 2014-10-14 Andrew Pinski <apinski@cavium.com>
1618
1619 * explow.c (convert_memory_address_addr_space): Rename to ...
1620 (convert_memory_address_addr_space_1): This. Add in_const argument.
1621 Inside a CONST RTL, permute the conversion and addition of constant
1622 for zero and sign extended pointers.
1623 (convert_memory_address_addr_space): New function.
1624
1625 2014-10-14 Andrew Pinski <apinski@cavium.com>
1626
1627 Revert:
1628 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1629
1630 PR middle-end/49721
1631 * explow.c (convert_memory_address_addr_space): Also permute the
1632 conversion and addition of constant for zero-extend.
1633
1634 2014-10-14 DJ Delorie <dj@redhat.com>
1635
1636 * config/msp430/msp430-modes.def (PSI): Add.
1637
1638 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1639 (msp430_hard_regno_nregs_with_padding): New.
1640 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1641 (msp430_hard_regno_nregs_has_padding): New.
1642 (msp430_hard_regno_nregs_with_padding): New.
1643 (msp430_unwind_word_mode): Use PSImode instead of SImode.
1644 (msp430_addr_space_legitimate_address_p): New.
1645 (msp430_asm_integer): New.
1646 (msp430_init_dwarf_reg_sizes_extra): New.
1647 (msp430_print_operand): Use X suffix for PSImode even in small model.
1648 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1649 (PTR_SIZE): ...but 4 bytes for EH.
1650 (SIZE_TYPE): Use __int20.
1651 (PTRDIFF_TYPE): Likewise.
1652 (INCOMING_FRAME_SP_OFFSET): Adjust.
1653 * config/msp430/msp430.md (movqi_topbyte): New.
1654 (movpsi): Use fixed suffixes.
1655 (movsipsi2): Enable for 430X, not large model.
1656 (extendhipsi2): Likewise.
1657 (zero_extendhisi2): Likewise.
1658 (zero_extendhisipsi2): Likewise.
1659 (extend_and_shift1_hipsi2): Likewise.
1660 (extendpsisi2): Likewise.
1661 (*bitbranch<mode>4_z): Fix suffix logic.
1662
1663 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
1664
1665 PR ada/62019
1666 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1667 do not choke on null node.
1668 <VAR_DECL>: Likewise.
1669
1670 2014-10-14 DJ Delorie <dj@redhat.com>
1671
1672 * machmode.h (int_n_data_t): New.
1673 (int_n_enabled_p): New.
1674 (int_n_data): New.
1675 * tree.c (int_n_enabled_p): New.
1676 (int_n_trees): New.
1677 (make_or_reuse_type): Check for all __intN types, not just
1678 __int128.
1679 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
1680 entries.
1681 * tree.h (int128_integer_type_node): Remove.
1682 (int128_unsigned_type_node): Remove.
1683 (int_n_trees_t): New.
1684 (int_n_enabled_p): New.
1685 (int_n_trees): New.
1686 * toplev.c (standard_type_bitsize): New.
1687 (do_compile): Check which __intN types are enabled for the current
1688 run.
1689 * builtin-types.def (BT_INT128): Remove.
1690 (BT_UINT128): Remove.
1691 * machmode.def: Add macro to create __int128 for all targets.
1692 * stor-layout.c (mode_for_size): Support __intN types.
1693 (smallest_mode_for_size): Likewise.
1694 (initialize_sizetypes): Support __intN types.
1695 * genmodes.c (struct mode_data): Add int_n field.
1696 (blank_mode): Likewise.
1697 (INT_N): New.
1698 (make_int_n): New.
1699 (emit_insn_modes_h): Count __intN entries and define
1700 NUM_INT_N_ENTS.
1701 (emit_mode_int_n): New.
1702 (emit_insn_modes_c): Call it.
1703 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1704 types, not just __int128.
1705 * tree-core.h (integer_type_kind): Remove __int128-specific
1706 entries, reserve spots for __intN entries.
1707
1708 * config/msp430/msp430-modes.def (PSI): Add.
1709
1710 2014-10-14 Kito Cheng <kito@0xlab.org>
1711
1712 * ira.c: Fix typo in comment.
1713 * ira.h: Ditto.
1714 * ira-build.c: Ditto.
1715 * ira-color.c: Ditto.
1716 * ira-emit.c: Ditto.
1717 * ira-int.h: Ditto.
1718 * ira-lives.c: Ditto.
1719
1720 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
1721
1722 PR rtl-optimization/63475
1723 * alias.c (true_dependence_1): Always use get_addr to extract
1724 true address operands from x_addr and mem_addr. Use extracted
1725 address operands to check for references with alignment ANDs.
1726 Use extracted address operands with find_base_term and
1727 base_alias_check. For noncanonicalized operands call canon_rtx with
1728 extracted address operand.
1729 (write_dependence_1): Ditto.
1730 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
1731
1732 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
1733
1734 PR target/63534
1735 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1736 __morestack local.
1737
1738 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1739 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1740 Anna Tikhonova <anna.tikhonova@intel.com>
1741 Ilya Tocar <ilya.tocar@intel.com>
1742 Andrey Turetskiy <andrey.turetskiy@intel.com>
1743 Ilya Verbin <ilya.verbin@intel.com>
1744 Kirill Yukhin <kirill.yukhin@intel.com>
1745 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1746
1747 * config/i386/i386.c
1748 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1749 (ix86_expand_int_vcond): Ditto.
1750
1751 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1752 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1753 Anna Tikhonova <anna.tikhonova@intel.com>
1754 Ilya Tocar <ilya.tocar@intel.com>
1755 Andrey Turetskiy <andrey.turetskiy@intel.com>
1756 Ilya Verbin <ilya.verbin@intel.com>
1757 Kirill Yukhin <kirill.yukhin@intel.com>
1758 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1759
1760 * config/i386/i386.c
1761 (emit_reduc_half): Handle V64QI and V32HI mode.
1762 * config/i386/sse.md
1763 (define_mode_iterator VI_AVX512BW): New.
1764 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1765
1766 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1767 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1768 Anna Tikhonova <anna.tikhonova@intel.com>
1769 Ilya Tocar <ilya.tocar@intel.com>
1770 Andrey Turetskiy <andrey.turetskiy@intel.com>
1771 Ilya Verbin <ilya.verbin@intel.com>
1772 Kirill Yukhin <kirill.yukhin@intel.com>
1773 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1774
1775 * config/i386/sse.md
1776 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1777
1778 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1779 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1780 Anna Tikhonova <anna.tikhonova@intel.com>
1781 Ilya Tocar <ilya.tocar@intel.com>
1782 Andrey Turetskiy <andrey.turetskiy@intel.com>
1783 Ilya Verbin <ilya.verbin@intel.com>
1784 Kirill Yukhin <kirill.yukhin@intel.com>
1785 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1786
1787 * config/i386/i386.c
1788 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1789 * config/i386/sse.md
1790 (define_mode_iterator VI): Add V64QI and V32HI modes.
1791
1792 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1793 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1794 Anna Tikhonova <anna.tikhonova@intel.com>
1795 Ilya Tocar <ilya.tocar@intel.com>
1796 Andrey Turetskiy <andrey.turetskiy@intel.com>
1797 Ilya Verbin <ilya.verbin@intel.com>
1798 Kirill Yukhin <kirill.yukhin@intel.com>
1799 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1800
1801 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1802
1803 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1804 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1805 Anna Tikhonova <anna.tikhonova@intel.com>
1806 Ilya Tocar <ilya.tocar@intel.com>
1807 Andrey Turetskiy <andrey.turetskiy@intel.com>
1808 Ilya Verbin <ilya.verbin@intel.com>
1809 Kirill Yukhin <kirill.yukhin@intel.com>
1810 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1811
1812 * config/i386/sse.md
1813 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1814 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1815
1816 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1818 Anna Tikhonova <anna.tikhonova@intel.com>
1819 Ilya Tocar <ilya.tocar@intel.com>
1820 Andrey Turetskiy <andrey.turetskiy@intel.com>
1821 Ilya Verbin <ilya.verbin@intel.com>
1822 Kirill Yukhin <kirill.yukhin@intel.com>
1823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1824
1825 * config/i386/sse.md
1826 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1827 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1828
1829 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1831 Anna Tikhonova <anna.tikhonova@intel.com>
1832 Ilya Tocar <ilya.tocar@intel.com>
1833 Andrey Turetskiy <andrey.turetskiy@intel.com>
1834 Ilya Verbin <ilya.verbin@intel.com>
1835 Kirill Yukhin <kirill.yukhin@intel.com>
1836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1837
1838 * config/i386/sse.md
1839 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1840 (define_mode_iterator VI2_AVX2): Add V32HI mode.
1841 (define_expand "mul<mode>3<mask_name>"): Add masking.
1842 (define_insn "*mul<mode>3<mask_name>"): Ditto.
1843 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1844 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1845 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1846 (define_mode_attr SDOT_PMADD_SUF): Ditto.
1847 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1848 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1849 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1850 (define_insn "avx2_packusdw"): Delete.
1851 (define_insn "sse4_1_packusdw"): Ditto.
1852 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1853
1854 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1855 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1856 Anna Tikhonova <anna.tikhonova@intel.com>
1857 Ilya Tocar <ilya.tocar@intel.com>
1858 Andrey Turetskiy <andrey.turetskiy@intel.com>
1859 Ilya Verbin <ilya.verbin@intel.com>
1860 Kirill Yukhin <kirill.yukhin@intel.com>
1861 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1862
1863 * config/i386/sse.md
1864 (define_insn "vec_dup<mode>"): Update constraints.
1865
1866 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1867 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1868 Anna Tikhonova <anna.tikhonova@intel.com>
1869 Ilya Tocar <ilya.tocar@intel.com>
1870 Andrey Turetskiy <andrey.turetskiy@intel.com>
1871 Ilya Verbin <ilya.verbin@intel.com>
1872 Kirill Yukhin <kirill.yukhin@intel.com>
1873 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1874
1875 * config/i386/sse.md
1876 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1877 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1878 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1879
1880 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1882 Anna Tikhonova <anna.tikhonova@intel.com>
1883 Ilya Tocar <ilya.tocar@intel.com>
1884 Andrey Turetskiy <andrey.turetskiy@intel.com>
1885 Ilya Verbin <ilya.verbin@intel.com>
1886 Kirill Yukhin <kirill.yukhin@intel.com>
1887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1888
1889 * config/i386/sse.md
1890 (define_expand "mul<mode>3<mask_name>"): Add masking.
1891
1892 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1893 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1894 Anna Tikhonova <anna.tikhonova@intel.com>
1895 Ilya Tocar <ilya.tocar@intel.com>
1896 Andrey Turetskiy <andrey.turetskiy@intel.com>
1897 Ilya Verbin <ilya.verbin@intel.com>
1898 Kirill Yukhin <kirill.yukhin@intel.com>
1899 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1900
1901 * config/i386/sse.md
1902 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1903 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1904
1905 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1906 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1907 Anna Tikhonova <anna.tikhonova@intel.com>
1908 Ilya Tocar <ilya.tocar@intel.com>
1909 Andrey Turetskiy <andrey.turetskiy@intel.com>
1910 Ilya Verbin <ilya.verbin@intel.com>
1911 Kirill Yukhin <kirill.yukhin@intel.com>
1912 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1913
1914 * config/i386/sse.md
1915 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1916 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1917 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1918 Ditto.
1919
1920 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1921 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1922 Anna Tikhonova <anna.tikhonova@intel.com>
1923 Ilya Tocar <ilya.tocar@intel.com>
1924 Andrey Turetskiy <andrey.turetskiy@intel.com>
1925 Ilya Verbin <ilya.verbin@intel.com>
1926 Kirill Yukhin <kirill.yukhin@intel.com>
1927 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1928
1929 * config/i386/sse.md
1930 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1931 use VF_128_256 mode iterator and update assembler emit code.
1932 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1933 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1934 Add masking, use VF_128_256 mode iterator.
1935 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1936 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1937 Add masking, use VF_128_256 mode iterator and update assembler emit
1938 code.
1939 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1940 (define_mode_attr avx512flogicsuff): Delete.
1941 (define_insn "avx512f_<logic><mode>"): Ditto.
1942 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1943 MODE_TI.
1944 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1945
1946 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1947 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1948 Anna Tikhonova <anna.tikhonova@intel.com>
1949 Ilya Tocar <ilya.tocar@intel.com>
1950 Andrey Turetskiy <andrey.turetskiy@intel.com>
1951 Ilya Verbin <ilya.verbin@intel.com>
1952 Kirill Yukhin <kirill.yukhin@intel.com>
1953 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1954
1955 * config/i386/sse.md
1956 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1957 (define_expand "vashr<mode>3<mask_name>"): Add masking,
1958 use VI12_128 mode iterator.
1959 (define_expand "ashrv2di3<mask_name>"): New.
1960
1961 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1962 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1963 Anna Tikhonova <anna.tikhonova@intel.com>
1964 Ilya Tocar <ilya.tocar@intel.com>
1965 Andrey Turetskiy <andrey.turetskiy@intel.com>
1966 Ilya Verbin <ilya.verbin@intel.com>
1967 Kirill Yukhin <kirill.yukhin@intel.com>
1968 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1969
1970 * config/i386/i386.c
1971 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
1972 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
1973 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
1974 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
1975 CODE_FOR_avx512vl_ucmpv4si3_mask.
1976 * config/i386/sse.md
1977 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
1978 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1979 (define_insn
1980 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1981 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1982 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1983 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1984 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1985 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1986
1987 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1988 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1989 Anna Tikhonova <anna.tikhonova@intel.com>
1990 Ilya Tocar <ilya.tocar@intel.com>
1991 Andrey Turetskiy <andrey.turetskiy@intel.com>
1992 Ilya Verbin <ilya.verbin@intel.com>
1993 Kirill Yukhin <kirill.yukhin@intel.com>
1994 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1995
1996 * config/i386/sse.md
1997 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1998 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1999 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2000 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2001 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2002 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2003 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2004 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2005 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2006
2007 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2008 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2009 Anna Tikhonova <anna.tikhonova@intel.com>
2010 Ilya Tocar <ilya.tocar@intel.com>
2011 Andrey Turetskiy <andrey.turetskiy@intel.com>
2012 Ilya Verbin <ilya.verbin@intel.com>
2013 Kirill Yukhin <kirill.yukhin@intel.com>
2014 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2015
2016 * config/i386/sse.md
2017 (define_insn "avx512f_blendm<mode>"): Delete.
2018 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2019 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2020 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2021 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2022 (define_insn
2023 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2024 Remove.
2025 (define_insn
2026 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2027 New.
2028 (define_insn
2029 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2030 Ditto.
2031 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2032 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2033 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2034 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2035 Delete.
2036 (define_insn
2037 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2038 New.
2039 (define_insn
2040 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2041 Ditto.
2042 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2043 Delete.
2044 (define_insn
2045 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2046 New.
2047 (define_insn
2048 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2049 Ditto.
2050
2051 2014-10-14 Richard Biener <rguenther@suse.de>
2052
2053 PR tree-optimization/63512
2054 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2055 modified.
2056
2057 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
2058
2059 PR target/63260
2060 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2061 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
2062 of FPSCR.
2063 (negsf2_i): Rename to *negsf2_i.
2064 (abssf2_i): Rename to *abssf2_i.
2065 (negdf2_i): Rename to *negdf2_i.
2066 (absdf2_i): Rename to *absdf2_i.
2067
2068 2014-10-14 Felix Yang <felix.yang@huawei.com>
2069 Jeff Law <law@redhat.com>
2070
2071 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2072 "replace" into boolean bitfields; turn member "loop_depth" into a short
2073 integer; add new member "no_equiv" and "reserved".
2074 (no_equiv): Set no_equiv of struct equivalence if register is marked
2075 as having no known equivalence.
2076 (update_equiv_regs): Check all definitions for a multiple-set
2077 register to make sure that the RHS have the same value.
2078
2079 2014-10-13 Richard Henderson <rth@redhat.com>
2080
2081 * combine-stack-adj.c (no_unhandled_cfa): New.
2082 (maybe_merge_cfa_adjust): New.
2083 (combine_stack_adjustments_for_block): Use them.
2084
2085 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
2086
2087 * Makefile.in (TAGS): Tag ../include files.
2088
2089 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2090
2091 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2092 to rs6000_dbx_register_number.
2093 (DWARF_FRAME_REGNUM): Redefine as identity map.
2094 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2095 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2096 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2097 argument to handle .debug_frame and .eh_frame directly. Always
2098 translate SPE high register numbers. Add special treatment for CR,
2099 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
2100
2101 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2102 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2103 (RS6000_USE_DWARF_NUMBERING): Define.
2104 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2105 (RS6000_USE_DWARF_NUMBERING): Define.
2106 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2107 (RS6000_USE_DWARF_NUMBERING): Define.
2108 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2109 (RS6000_USE_DWARF_NUMBERING): Define.
2110 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2111 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2112
2113 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2114
2115 * config/i386/i386.c (ix86_address_cost): Lower cost for
2116 when address contains GOT register.
2117
2118 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
2119 Vladimir Makarov <vmakarov@redhat.com>
2120
2121 PR target/8340
2122 PR middle-end/47602
2123 PR rtl-optimization/55458
2124 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2125 (ix86_init_pic_reg): New.
2126 (ix86_select_alt_pic_regnum): Add check on pseudo register.
2127 (ix86_save_reg): Likewise.
2128 (ix86_expand_prologue): Remove PIC register initialization
2129 now performed in ix86_init_pic_reg.
2130 (ix86_output_function_epilogue): Add check on pseudo register.
2131 (set_pic_reg_ever_alive): New.
2132 (legitimize_pic_address): Replace df_set_regs_ever_live with new
2133 set_pic_reg_ever_alive.
2134 (legitimize_tls_address): Likewise.
2135 (ix86_pic_register_p): New check.
2136 (ix86_delegitimize_address): Add check on pseudo register.
2137 (ix86_expand_call): Insert move from pseudo PIC register to ABI
2138 defined REAL_PIC_OFFSET_TABLE_REGNUM.
2139 (TARGET_INIT_PIC_REG): New.
2140 (TARGET_USE_PSEUDO_PIC_REG): New.
2141 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2142 if pic_offset_table_rtx exists.
2143 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2144 Document.
2145 * doc/tm.texi: Regenerate.
2146 * function.c (assign_parms): Generate pseudo register for PIC.
2147 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2148 register.
2149 * ira-color.c (color_pass): Add check on pseudo register.
2150 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2151 register.
2152 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2153 register.
2154 (ira): Add target specific PIC register initialization.
2155 (do_reload): Keep PIC pseudo register.
2156 * lra-assigns.c (spill_for): Add checks on pseudo register.
2157 * lra-constraints.c (contains_symbol_ref_p): New.
2158 (lra_constraints): Enable lra risky transformations when PIC is pseudo
2159 register.
2160 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2161 * target.def (use_pseudo_pic_reg): New.
2162 (init_pic_reg): New.
2163
2164 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2165
2166 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2167 Remove m_SILVERMONT and m_INTEL from the tune.
2168
2169 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2170
2171 PR libfortran/63471
2172 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2173 when _HPUX_SOURCE is defined.
2174
2175 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2176
2177 PR tree-optimization/62127
2178 * tree.c (remap_type_1): When remapping array, remap
2179 also its type.
2180
2181 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
2182
2183 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2184 longer impact parallelization.
2185
2186 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2187
2188 PR bootstrap/63496
2189 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2190
2191 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
2192
2193 * asan.c (instrument_derefs): BIT_FIELD_REF added.
2194
2195 2014-10-13 Richard Biener <rguenther@suse.de>
2196
2197 PR tree-optimization/63419
2198 * gimple-fold.h (gimple_convert): New function.
2199 * gimple-fold.c (gimple_convert): Likewise.
2200 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2201 to split out required conversions early.
2202
2203 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
2204
2205 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2206 Add the parts of an insn in reverse order, with the pattern at
2207 the top of the queue. Detect when we're iterating over a SEQUENCE
2208 pattern and in that case just consider patterns of subinstructions.
2209
2210 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
2211
2212 PR target/59401
2213 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2214 of rtx.
2215 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2216 insn walking.
2217 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2218 address. Use def chains to handle GBR clobbering call insns.
2219
2220 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2221
2222 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2223 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2224 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2225 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2226 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2227 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2228 * doc/gty.texi (for_user): Document new option.
2229 * gengtype.c (create_user_defined_type): Don't try to get a struct for
2230 char.
2231 (walk_type): Don't error out on for_user option.
2232 (write_func_for_structure): Emit user marking routines if requested by
2233 for_user option.
2234 (write_local_func_for_structure): Likewise.
2235 (main): Mark types with for_user option as used.
2236 * ggc.h (gt_pch_nx): Add overload for unsigned int.
2237 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2238 * hash-table.h (ggc_hasher): New struct.
2239 (hash_table::create_ggc): New function.
2240 (gt_pch_nx): New overload for hash_table.
2241
2242 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
2243
2244 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2245 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2246 * config/sh/sh.c: Likewise.
2247 * config/sh/sh-mem.cc: Likewise.
2248 * config/sh/sh.md: Likewise.
2249 * config/sh/predicates.md: Likewise.
2250 * config/sh/sync.md: Likewise.
2251
2252 2014-10-11 Martin Liska <mliska@suse.cz>
2253
2254 PR middle-end/63376
2255 * cgraphunit.c (symbol_table::process_new_functions): Missing call
2256 for call_cgraph_insertion_hooks added.
2257
2258 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2259
2260 PR c/63495
2261 * stor-layout.c (min_align_of_type): Don't decrease alignment
2262 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2263 TYPE_USER_ALIGN is set.
2264
2265 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
2266
2267 PR rtl-optimization/63483
2268 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2269 references when alignment ANDs are involved.
2270 (write_dependence_p): Ditto.
2271 (may_alias_p): Ditto.
2272
2273 2014-10-10 Marek Polacek <polacek@redhat.com>
2274
2275 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2276 * doc/invoke.texi: Document -fsanitize=object-size.
2277 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2278 or it into SANITIZE_UNDEFINED.
2279 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2280 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2281 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2282 * opts.c (common_handle_option): Handle -fsanitize=object-size.
2283 * ubsan.c: Include tree-object-size.h.
2284 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2285 (ubsan_expand_bounds_ifn): Use false instead of 0.
2286 (ubsan_expand_objsize_ifn): New function.
2287 (instrument_object_size): New function.
2288 (pass_ubsan::execute): Add object size instrumentation.
2289 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2290
2291 2014-10-10 Richard Henderson <rth@redhat.com>
2292
2293 PR target/63404
2294 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2295 Restrict the set of expressions we're willing to move.
2296
2297 2014-10-10 Jeff Law <law@redhat.com>
2298
2299 * ira.c (struct equivalence): Promote INIT_INSNs field to
2300 an rtx_insn_list. Add comments.
2301 (no_equiv): Promote LIST to an rtx_insn_list. Update
2302 testing for and creating the special marker. Use methods
2303 to extract the insn and next pointers. Promote INSN to an
2304 rtx_insn.
2305 (update_equiv_regs): Update test for special marker in the
2306 INIT_INSNs list.
2307
2308 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2309
2310 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2311 * configure: Regenerate.
2312 * config/aarch64/aarch64.c (aarch64_override_options): Handle
2313 TARGET_FIX_ERR_A53_835769_DEFAULT.
2314 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2315 value to 2.
2316 * doc/install.texi (aarch64*-*-*): Document
2317 new --enable-fix-cortex-a53-835769 option.
2318
2319 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2320 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2321
2322 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2323 (ADJUST_INSN_LENGTH): Define.
2324 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2325 * config/aarch64/aarch64.c (is_mem_p): New function.
2326 (is_memory_op): Likewise.
2327 (aarch64_prev_real_insn): Likewise.
2328 (is_madd_op): Likewise.
2329 (dep_between_memop_and_curr): Likewise.
2330 (aarch64_madd_needs_nop): Likewise.
2331 (aarch64_final_prescan_insn): Likewise.
2332 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2333 and -mno-fix-cortex-a53-835769 options.
2334
2335 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2336
2337 PR tree-optimization/63464
2338 * tree-switch-conversion.c (struct case_bit_test): Remove
2339 hi and lo fields, add wide_int mask field.
2340 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2341 hi/lo fields into wide_int mask operations, optimize by pretending
2342 minval to be 0 if maxval is small enough.
2343 (process_switch): Adjust caller.
2344
2345 2014-10-10 Richard Biener <rguenther@suse.de>
2346
2347 PR tree-optimization/63379
2348 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2349 a neutral operand for min/max when it is not a reduction chain.
2350
2351 2014-10-10 Richard Biener <rguenther@suse.de>
2352
2353 PR tree-optimization/63476
2354 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2355 (BB_LIVE_VOP_ON_EXIT): New define.
2356 (create_expression_by_pieces): Assign VUSEs to stmts.
2357 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2358 (pass_pre::execute): Assert virtual SSA form is up-to-date
2359 after insertion.
2360
2361 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
2362
2363 * lra-assigns.c (assign_by_spills): Error out on spill failure.
2364
2365 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
2366
2367 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2368 assertion.
2369
2370 2014-10-09 Richard Biener <rguenther@suse.de>
2371
2372 PR tree-optimization/63380
2373 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2374 may trap.
2375
2376 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
2377
2378 * config/avr/avr.opt (mmcu=): Change to have a string value.
2379 (mn-flash=, mskip-bug, march=, mrmw): New options.
2380 (HeaderInclude): New.
2381 (mmcu=): Remove Var / Init clauses.
2382 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2383 -specs option.
2384 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2385 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2386 (SYMBOL_FLAG_IO_LOW): Define.
2387 (avr_device_to_as, avr_device_to_ld): Don't declare.
2388 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2389 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2390 (EXTRA_SPEC_FUNCTIONS): Don't define.
2391 (ASM_SPEC): Translate -arch= option to -mmcu= option.
2392 (LINK_SPEC): Translate -arch= option to -m= option.
2393 Don't use device_to_ld / device_to_data_start.
2394 (STARTFILE_SPEC): Now empty.
2395 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2396 * config/avr/gen-avr-mmcu-specs.c: New file.
2397 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2398 (s-device-specs): Likewise.
2399 (GCC_PASSES): Add s-device-specs.
2400 (install-driver): Depend on install-device-specs.
2401 (install-device-specs): New rule.
2402 * config/avr/avr.c (avr_option_override): Look up mcu arch by
2403 avr_arch_index and provide fallback initialization for avr_n_flash.
2404 (varasm.h): #include.
2405 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2406 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2407 (avr_attribute_table): Add "io", "address" and "io_low".
2408 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2409 Add special handling for symbols with "io" and/or "address" attributes.
2410 (avr_asm_asm_output_aligned_bss): New function.
2411 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2412 as appropriate. Handle io_low attribute.
2413 (avr_out_sbxx_branch): Handle symbolic io addresses.
2414 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2415 avr_n_flash instead of avr_current_device->n_flash.
2416 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2417 (avr_emit_movmemhi): Likewise.
2418 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2419 Use TARGET_RMW instead of avr_current_device->dev_attributes.
2420 Don't define avr_current_device->macro (that's the specfile's job).
2421 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2422 * config/avr/avr.c (avr_2word_insn_p): Likewise.
2423 * config/avr/avr.md (*cpse.ne): Likewise.
2424 (mov<mode>): Use avr_eval_addr_attrib.
2425 (cbi): Change constraint for low_io_address_operand operand to "i".
2426 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2427 * config/avr/predicates.md (io_address_operand):
2428 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2429 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2430 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2431 Update prototype.
2432 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2433 * config/avr/genmultilib.awk: Use -march=.
2434 Remove Multilib matches processing.
2435 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2436 * config/avr/avr-arch.h: Add double include guard.
2437 (avr_mcu_t) <library_name>: Update comment.
2438 * config/avr/driver-avr.c (avr_device_to_as): Delete.
2439 (avr_device_to_ld, avr_device_to_data_start): Likewise.
2440 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2441 (avr_device_to_sp8): Likewise.
2442 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
2443
2444 * doc/extend.texi (io, address): Document new AVR variable attributes.
2445 (io_low): Likewise.
2446
2447 2014-10-09 Marek Polacek <polacek@redhat.com>
2448
2449 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2450
2451 2014-10-08 Richard Biener <rguenther@suse.de>
2452
2453 PR tree-optimization/61969
2454 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2455 variables.
2456
2457 2014-10-09 Richard Biener <rguenther@suse.de>
2458
2459 PR tree-optimization/63445
2460 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2461 overflow for non-equality compares.
2462
2463 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
2464
2465 PR rtl-optimization/57003
2466 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2467 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2468 killing regs_invalidated_by_call.
2469
2470 2014-10-08 Teresa Johnson <tejohnson@google.com>
2471
2472 PR bootstrap/63432.
2473 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2474 (ssa_fix_duplicate_block_edges): Invoke it.
2475 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2476
2477 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
2478
2479 PR target/52941
2480 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2481 atomic_fetch_<fetchop_name>si_hard,
2482 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2483 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2484 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2485 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2486
2487 2014-10-08 Rong Xu <xur@google.com>
2488
2489 * gcov-tool.c (profile_overlap): New driver function
2490 to compute profile overlap.
2491 (print_overlap_usage_message): New.
2492 (overlap_usage): New.
2493 (do_overlap): New.
2494 (print_usage): Add calls to overlap function.
2495 (main): Ditto.
2496 * doc/gcov-tool.texi: Add documentation.
2497
2498 2014-10-08 Steve Ellcey <sellcey@mips.com>
2499
2500 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2501 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2502
2503 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
2504
2505 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2506 pattern matching of MEM_REF.
2507 (check_stmt_for_type_change): Update.
2508
2509 2014-10-08 Steve Ellcey <sellcey@mips.com>
2510
2511 * config/mips/linux64.h: Remove.
2512 * config/mips/gnu-user64.h: Remove.
2513 * gcc.config (mips*-*-*): Remove references to linux64.h and
2514 gnu-user64.h
2515 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2516 with modified version from gnu-user64.h.
2517 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2518 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2519 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2520 linux64.h.
2521 (GNU_USER_LINK_EMULATION64): Ditto.
2522 (GNU_USER_LINK_EMULATIONN32): Ditto.
2523 (GLIBC_DYNAMIC_LINKER32): Ditto.
2524 (GLIBC_DYNAMIC_LINKER64): Ditto.
2525 (GLIBC_DYNAMIC_LINKERN32): Ditto.
2526 (UCLIBC_DYNAMIC_LINKER32): Ditto.
2527 (UCLIBC_DYNAMIC_LINKER64): Ditto.
2528 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2529 (BIONIC_DYNAMIC_LINKERN32): Ditto.
2530 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2531 (GLIBC_DYNAMIC_LINKER): Delete.
2532 (UCLIBC_DYNAMIC_LINKER): Delete.
2533
2534 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
2535 Richard Biener <rguenther@suse.de>
2536
2537 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2538 Get address space from operand 0 (BASE).
2539
2540 2014-10-07 Iain Sandoe <iain@codesourcery.com>
2541
2542 PR target/61387
2543 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2544
2545 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
2546
2547 * dwarf2out.c: Remove current_function_has_inlines.
2548 (gen_subprogram_die): Same.
2549 (gen_inlined_subroutine_die): Same.
2550
2551 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
2552
2553 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2554 type.
2555 (_addcarry_u64): Ditto.
2556 (_addcarryx_u64): Ditto.
2557
2558 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2559
2560 * cgraph.h (cgraph_node::get_fun): Declare.
2561 * cgraph.c (cgraph_node::get_fun): New method.
2562 * ipa-inline.c (can_inline_edge_p): Use it.
2563
2564 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2565
2566 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2567 and -ftrapping-math.
2568 * lto-wrapper.c (merge_and_complain): Likewise.
2569 (run_gcc): Likewise.
2570
2571 2014-10-06 Rong Xu <xur@google.com>
2572
2573 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2574 * tree-profile.c: (params.h): New include.
2575 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2576 and __gcov_indirect_call_topn_counters for
2577 indirect_call_topn_profile.
2578 (gimple_init_edge_profiler): New decls for
2579 __gcov_indirect_call_topn_profiler.
2580 (gimple_gen_ic_profiler): Generate the correct profiler call.
2581 (gimple_gen_ic_func_profiler): Fix format.
2582 * value-prof.c (params.h): New include.
2583 (dump_histogram_value): Hanlde indirect_call_topn counters.
2584 (stream_in_histogram_value): Ditto.
2585 (gimple_indirect_call_to_profile): Use indirect_call_topn
2586 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2587 (gimple_find_values_to_profile): Hanlde indirect_call_topn
2588 counters.
2589 * value-prof.h (enum hist_type): Histrogram type for
2590 indirect_call_topn counters.
2591 * profile.c (instrument_values): Instrument
2592 indirect_call_topn counters.
2593
2594 2014-10-06 Rong Xu <xur@google.com>
2595
2596 * Makefile.in: Fix dependence.
2597 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2598 indirect call topn profiler.
2599 * gcov-io.h: Ditto.
2600
2601 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2602
2603 * calls.c (expand_call): Do not use the target as the return slot if
2604 it is not sufficiently aligned.
2605
2606 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2607
2608 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2609 discussion of permutes and why we don't handle them.
2610
2611 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2612
2613 * config/sparc/predicates.md (int_register_operand): Delete.
2614
2615 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2616
2617 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2618
2619 2014-10-06 Jakub Jelinek <jakub@redhat.com>
2620
2621 * ubsan.h (ubsan_get_source_location): New prototype.
2622 * ubsan.c (ubsan_source_location_type): New variable.
2623 Function renamed to ...
2624 (ubsan_get_source_location_type): ... this. Cache
2625 return value in ubsan_source_location_type variable.
2626 (ubsan_source_location, ubsan_create_data): Use
2627 ubsan_get_source_location_type instead of
2628 ubsan_source_location_type.
2629 * asan.c (asan_protect_global): Don't protect globals
2630 with ubsan_get_source_location_type () type.
2631 (asan_add_global): Provide global decl location info
2632 if possible.
2633
2634 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2635
2636 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2637 sanity check.
2638
2639 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2640
2641 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2642 on size.
2643 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2644 into vptr pointer.
2645 (ipa_polymorphic_call_context::dump): Fix formating.
2646 (walk_ssa_copies): Add logic avoiding loops; update uses.
2647 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2648
2649 2014-10-02 Mark Wielaard <mjw@redhat.com>
2650
2651 PR debug/63239
2652 * dwarf2out.c (gen_subprogram_die): When a member function is
2653 explicitly deleted then add a DW_AT_GNU_deleted attribute.
2654 * langhooks.h (struct lang_hooks_for_decls): Add
2655 function_decl_deleted_p langhook.
2656 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2657 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2658
2659 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2660
2661 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2662 NULL pointer checks.
2663 (ipa_polymorphic_call_context::get_dynamic_type): Return true
2664 if type doesn't change.
2665 * cgraph.h (cgraph_indirect_call_info): New flag.
2666 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2667 (cgraph_node::dump): Dump it.
2668 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
2669 of context.get_dynamic_type.
2670 (ipa_make_edge_direct_to_target): Do not speculate
2671 edge that is already speuclative.
2672 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2673 speculate to __builtin_unreachable
2674 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2675 vptr_changed.
2676 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2677
2678 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2679
2680 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2681 get_dynamic_type; drop TODO.
2682 * ipa-polymorphic-call.c
2683 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2684 for otr_type to be unknown.
2685
2686 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2687
2688 * common/config/score/score-common.c: Remove.
2689 * config.gcc: Remove support for score-*.
2690 * config/score/constraints.md: Remove.
2691 * config/score/elf.h: Remove.
2692 * config/score/predicates.md: Remove.
2693 * config/score/score-conv.h: Remove.
2694 * config/score/score-generic.md: Remove.
2695 * config/score/score-modes.def: Remove.
2696 * config/score/score-protos.h: Remove.
2697 * config/score/score.c: Remove.
2698 * config/score/score.h: Remove.
2699 * config/score/score.md: Remove.
2700 * config/score/score.opt: Remove.
2701 * doc/md.texi: Don't document score-*.
2702
2703 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2704
2705 PR pch/63429
2706 * genconditions.c: Directly include ggc.h before rtl.h.
2707
2708 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2709
2710 * ipa-polymorphic-call.c
2711 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2712 code determining speculative type.
2713 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2714
2715 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2716
2717 * altivec.md (altivec_lvsl): New define_expand.
2718 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2719 (altivec_lvsr): New define_expand.
2720 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2721 * rs6000.c (rs6000_expand_builtin): Change to use
2722 altivec_lvs[lr]_direct; remove commented-out code.
2723
2724 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2725
2726 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2727 Issue a warning message when vec_lvsl or vec_lvsr is used with a
2728 little endian target.
2729
2730 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2731
2732 * tree-pretty-print.c (dump_location): Make it extern. Dump also
2733 the column.
2734 * tree-pretty-print.h (dump_location): Declare.
2735 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2736 (pp_gimple_stmt_1): Likewise.
2737 (dump_implicit_edges): Likewise.
2738 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2739 LOCATION_LINE.
2740
2741
2742 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2743
2744 * gcc.c (driver::global_initializations): Remove "const" so
2745 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2746 and decoded_options_count.
2747
2748 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2749
2750 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2751 macro.
2752 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2753 TARGET_E500_DOUBLE case here.
2754
2755 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2756
2757 PR c++/54427
2758 PR c++/57198
2759 PR c++/58845
2760 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2761
2762 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2763
2764 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2765 * lto-cgraph.c (lto_output_edge, input_edge): Stream
2766 in_polymorphic_cdtor
2767 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2768 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2769 * cgraphclones.c (cgraph_edge::clone): Likewise.
2770 * ipa-prop.c (update_jump_functions_after_inlining,
2771 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2772 to possible_dynamic_type_change.
2773 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2774 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2775 IN_POLY_CDOTR argument.
2776
2777 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2778 for BASE and OUTER_TYPE being NULL.
2779 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2780 in_poly_cdtor parameter.
2781
2782 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2783
2784 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2785 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2786 TARGET_AVX512F.
2787 (expand_vec_perm_1): Likewise.
2788
2789 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2790 Uros Bizjak <ubizjak@gmail.com>
2791
2792 PR tree-optimization/61403
2793 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2794 error in comment. Also optimize 256-bit vectors for AVX2
2795 or AVX (floating vectors only), provided the first permutation
2796 can be performed in one insn.
2797
2798 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2799
2800 * gcc.c (class driver): New class.
2801 (main): Reimplement in terms of driver::main, moving most of the
2802 locals to be locals within individual methods of class driver.
2803 The remaining locals "explicit_link_files", "decoded_options" and
2804 "decoded_options_count" are used by multiple driver:: methods, and
2805 so become member data. Doing so isolates the argc/argv reads and
2806 writes. Replace "goto out" with a special exit code from
2807 new method driver::prepare_infiles. Split out the old
2808 implementation of main into the following...
2809 (driver::main): New function, corresponding to the old "main"
2810 implementation.
2811 (driver::set_progname): New function, taken from the old
2812 "main" implementation.
2813 (driver::expand_at_files): Likewise.
2814 (driver::decode_argv): Likewise.
2815 (driver::global_initializations): Likewise.
2816 (driver::build_multilib_strings): Likewise.
2817 (driver::set_up_specs): Likewise.
2818 (driver::putenv_COLLECT_GCC): Likewise.
2819 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2820 (driver::handle_unrecognized_options): Likewise.
2821 (driver::maybe_print_and_exit): Likewise.
2822 (driver::prepare_infiles): Likewise.
2823 (driver::do_spec_on_infiles): Likewise.
2824 (driver::maybe_run_linker): Likewise.
2825 (driver::final_actions): Likewise.
2826 (driver::get_exit_code): Likewise.
2827
2828 2014-10-03 Yury Gribov <y.gribov@samsung.com>
2829
2830 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2831 don't emit empty ctors.
2832
2833 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
2834
2835 * convert.c (convert_to_integer): Do not introduce useless conversions
2836 between integral types.
2837
2838 2014-10-03 David Sherwood <david.sherwood@arm.com>
2839
2840 * ira-int.h (ira_allocno): Mark hard_regno as signed.
2841
2842 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
2843
2844 * lra-constraints.c (inherit_in_ebb): Handle calls with
2845 multiple return values.
2846 * caller-save.c (save_call_clobbered_regs): Likewise.
2847
2848 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2849
2850 * tree-vect-data-refs.c (vect_permute_load_chain,
2851 vect_shift_permute_load_chain): Fix a typo in temporary var names,
2852 suffle3 to shuffle3.
2853
2854 PR libgomp/61200
2855 * omp-low.c (taskreg_contexts): New variable.
2856 (scan_omp_parallel): Push newly created context into taskreg_contexts
2857 vector and move record layout code to finish_taskreg_scan.
2858 (scan_omp_task): Likewise.
2859 (finish_taskreg_scan): New function.
2860 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2861 vector elements and release it.
2862
2863 PR target/62128
2864 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2865 of palignr arguments can't be used due to min 0 or max - min
2866 too high, try also op0, op1 order of palignr arguments.
2867
2868 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
2869
2870 * cgraph.h (ipa_polymorphic_call_context):
2871 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2872 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2873 * ipa-polymorphic-call.c
2874 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2875 past end of dynamic types.
2876 (ipa_polymorphic_call_context::stream_out,
2877 speculative_outer_type): Stream dynamic flag.
2878 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2879 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2880 Clear DYNAMIC.
2881 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2882 set it.
2883 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2884 * ipa-prop.c (update_jump_functions_after_inlining,
2885 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2886
2887 2014-10-02 Teresa Johnson <tejohnson@google.com>
2888
2889 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2890 up when synthesizing counts to avoid rounding errors.
2891
2892 2014-10-02 Teresa Johnson <tejohnson@google.com>
2893
2894 PR middle-end/63422
2895 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2896 asserts to handle incoming insanities.
2897
2898 2014-10-02 Martin Jambor <mjambor@suse.cz>
2899
2900 PR tree-optimization/63375
2901 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2902 references.
2903
2904 2014-10-02 Olivier Hainque <hainque@adacore.com>
2905
2906 * Makefile.in (CROSS): Define, to @CROSS.
2907
2908 2014-10-02 Jakub Jelinek <jakub@redhat.com>
2909
2910 PR target/62128
2911 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2912 if it expands to a single insn only.
2913 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
2914 fail unless in_order is true. Add forward declaration.
2915 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2916 is useful for one_operand_p.
2917 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2918
2919 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2920
2921 * cgraphclones.c (build_function_type_skip_args): Do not make new
2922 type variant of old.
2923
2924 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2925
2926 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2927 when speculation is added.
2928 (ipa_edge_args): Add polymorphic_call_contexts.
2929 (ipa_get_ith_polymorhic_call_context): New accesor.
2930 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2931 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2932 (ipa_compute_jump_functions_for_edge): Compute contexts.
2933 (update_jump_functions_after_inlining): Update contexts.
2934 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2935 update dumping; add speculative edge creation.
2936 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2937 context updating.
2938 (update_indirect_edges_after_inlining): Pass down context.
2939 (ipa_edge_duplication_hook): Duplicate contexts.
2940 (ipa_write_node_info): Stream out contexts.
2941 (ipa_read_node_info): Stream in contexts.
2942 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2943 types.
2944 (try_speculative_devirtualization): New function.
2945 * ipa-utils.h (try_speculative_devirtualization): Declare.
2946
2947 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2948
2949 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2950 dumping during WPA.
2951
2952 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2953
2954 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2955 type variants.
2956
2957 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2958
2959 * ipa-polymorphic-call.c
2960 (ipa_polymorphic_call_context::restrict_to_inner_class):
2961 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2962 use speculation_consistent_p to do so; Add CONSDER_BASES
2963 and CONSIDER_PLACEMENT_NEW parameters.
2964 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
2965 short circuit obvious cases.
2966 (ipa_polymorphic_call_context::dump): Improve formatting.
2967 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
2968 combine_speculation_with to record speculations; Do not ICE when
2969 object is located in pointer type decl; do not ICE for methods
2970 of UNION_TYPE; do not record nonpolymorphic types.
2971 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
2972 (ipa_polymorphic_call_context::combine_speculation_with): New method.
2973 (ipa_polymorphic_call_context::combine_with): New method.
2974 (ipa_polymorphic_call_context::make_speculative): Move here; use
2975 combine speculation.
2976 * cgraph.h (ipa_polymorphic_call_context): Update
2977 restrict_to_inner_class prototype; add offset_by, make_speculative,
2978 combine_with, useless_p, combine_speculation_with and
2979 speculation_consistent_p methods.
2980 (ipa_polymorphic_call_context::offset_by): New method.
2981 (ipa_polymorphic_call_context::useless_p): New method.
2982
2983 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2984
2985 PR rtl-optimization/62151
2986 * combine.c (can_combine_p): Allow the destination register of INSN
2987 to be clobbered in I3.
2988 (subst): Do not substitute into clobbers of registers.
2989
2990 2014-10-01 Jakub Jelinek <jakub@redhat.com>
2991
2992 PR debug/63342
2993 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2994 offset, TARGET_MEM_REF and SSA_NAME.
2995
2996 * config/i386/i386.c (expand_vec_perm_palignr): Handle
2997 256-bit vectors for TARGET_AVX2.
2998
2999 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3000 dfirst permutation.
3001
3002 PR target/63428
3003 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3004 argument to avx2_permv2ti.
3005
3006 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3007
3008 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3009
3010 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
3011
3012 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3013 (fmod<mode>3): Ditto.
3014 (fpremxf4_i387): Ditto.
3015 (reminderxf3): Ditto.
3016 (reminder<mode>3): Ditto.
3017 (fprem1xf4_i387): Ditto.
3018
3019 2014-09-30 Teresa Johnson <tejohnson@google.com>
3020
3021 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3022 duplicate_blocks bitmap.
3023 (remove_ctrl_stmt_and_useless_edges): Ditto.
3024 (create_block_for_threading): Ditto.
3025 (compute_path_counts): New function.
3026 (update_profile): Ditto.
3027 (recompute_probabilities): Ditto.
3028 (update_joiner_offpath_counts): Ditto.
3029 (freqs_to_counts_path): Ditto.
3030 (clear_counts_path): Ditto.
3031 (ssa_fix_duplicate_block_edges): Update profile info.
3032 (ssa_create_duplicates): Pass new parameter.
3033 (ssa_redirect_edges): Remove old profile update.
3034 (thread_block_1): New duplicate_blocks bitmap,
3035 remove old profile update.
3036 (thread_single_edge): Pass new parameter.
3037
3038 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
3039
3040 PR middle-end/62120
3041 * varasm.c (decode_reg_name_and_count): Check availability for
3042 registers from ADDITIONAL_REGISTER_NAMES.
3043
3044 2014-09-30 David Malcolm <dmalcolm@redhat.com>
3045
3046 PR plugins/63410
3047 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3048 (PLUGIN_HEADERS): Add pass-instances.def.
3049
3050 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
3051
3052 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3053 iterator.
3054 * config/aarch64/aarch64-simd.md
3055 (aarch64_sqdmull_laneq<mode>): Expand iterator.
3056 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3057 (vqdmulls_lane_s32): Fix return type.
3058 (vqdmulls_laneq_s32): New.
3059
3060 2014-09-30 Jakub Jelinek <jakub@redhat.com>
3061
3062 PR inline-asm/63282
3063 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3064 or invert_jump_1 if jump isn't any_condjump_p.
3065
3066 2014-09-30 Terry Guo <terry.guo@arm.com>
3067
3068 * config/arm/arm-cores.def (cortex-m7): New core name.
3069 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3070 (fpv5-d16): Ditto.
3071 * config/arm/arm-tables.opt: Regenerated.
3072 * config/arm/arm-tune.md: Regenerated.
3073 * config/arm/arm.h (TARGET_VFP5): New macro.
3074 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3075 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3076 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3077 * doc/invoke.texi: Document new cpu and fpu names.
3078
3079 2014-09-30 Jiong Wang <jiong.wang@arm.com>
3080
3081 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3082 before sinking insn.
3083
3084 2014-09-30 David Sherwood <david.sherwood@arm.com>
3085
3086 * ira-int.h (ira_allocno): Add "wmode" field.
3087 * ira-build.c (create_insn_allocnos): Add new "parent" function
3088 parameter.
3089 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3090 that cannot be accessed in wmode.
3091
3092 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
3093
3094 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3095 integer overflow.
3096
3097 2014-09-29 Andi Kleen <ak@linux.intel.com>
3098
3099 * opts.c (print_filtered_help): Print --param min/max/default
3100 with -Q.
3101
3102 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
3103
3104 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3105
3106 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
3107
3108 * tree-vrp.c (get_single_symbol): New function.
3109 (build_symbolic_expr): Likewise.
3110 (symbolic_range_based_on_p): New predicate.
3111 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3112 for PLUS and MINUS. Do not drop symbolic ranges at the end.
3113 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3114 operand is symbolic and based on the other operand.
3115
3116 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
3117
3118 * config/microblaze/microblaze.md (call_internal1): Use VOID
3119 instead of SI to fix "((void (*)(void)) 0)()" issue
3120
3121 2014-09-29 Nick Clifton <nickc@redhat.com>
3122
3123 * config/msp430/msp430.c (msp430_expand_prologue): Return a
3124 CLOBBER rtx for naked functions.
3125 (msp430_expand_epilogue): Likewise.
3126 (msp430_use_f5_series_hwmult): Cache result.
3127 (use_32bit_hwmult): Cache result.
3128 (msp430_no_hwmult): New function.
3129 (msp430_output_labelref): Use it.
3130
3131 2014-09-29 Jakub Jelinek <jakub@redhat.com>
3132
3133 PR middle-end/63247
3134 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3135 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3136 use the alignment of avar rather than ovar.
3137
3138 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
3139
3140 * config/pa/pa.c (pa_output_function_epilogue): Only update
3141 last_address when a nonnote insn is found.
3142
3143 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3144
3145 PR ipa/60665
3146 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3147
3148 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3149
3150 PR ipa/62121
3151 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3152 fix pasto in checking array size.
3153
3154 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3155
3156 PR middle-end/35545
3157 * passes.def (pass_tracer): Move before last dominator pass.
3158
3159 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
3160
3161 * gcc.c (try_generate_repro): Remove argument "prog". Change all
3162 users.
3163 (run_attempt): Handle errors of "pex_run" invocation.
3164
3165 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
3166
3167 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3168 (CC1_SPEC): Define.
3169 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3170 (TARGET_ASAN_SHADOW_OFFSET): Define.
3171
3172 2014-09-26 Martin Liska <mliska@suse.cz>
3173
3174 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3175 introduced.
3176 * cgraph.h: Likewise.
3177 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3178 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3179 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3180 * tree-ssa-alias.h: Likewise.
3181
3182 2014-09-26 Jakub Jelinek <jakub@redhat.com>
3183 Max Ostapenko <m.ostapenko@partner.samsung.com>
3184
3185 * common.opt: New option.
3186 * doc/invoke.texi: Describe new option.
3187 * gcc.c (execute): Don't free first string early, but at the end
3188 of the function. Call retry_ice if compiler exited with
3189 ICE_EXIT_CODE.
3190 (main): Factor out common code.
3191 (print_configuration): New function.
3192 (files_equal_p): Likewise.
3193 (check_repro): Likewise.
3194 (run_attempt): Likewise.
3195 (do_report_bug): Likewise.
3196 (append_text): Likewise.
3197 (try_generate_repro): Likewise
3198
3199 2014-09-25 Andi Kleen <ak@linux.intel.com>
3200
3201 * config/i386/i386.c (x86_print_call_or_nop): New function.
3202 (x86_function_profiler): Support -mnop-mcount and
3203 -mrecord-mcount.
3204 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3205 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3206
3207 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3208
3209 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3210 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3211 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3212 Remove.
3213
3214 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3215
3216 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3217 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3218 types_odr_comparable): Declare.
3219 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3220 * ipa-polymorphic-call.c: New file.
3221 (contains_polymorphic_type_p, possible_placement_new,
3222 ipa_polymorphic_call_context::restrict_to_inner_class,
3223 contains_type_p, decl_maybe_in_construction_p,
3224 ipa_polymorphic_call_context::stream_out,
3225 ipa_polymorphic_call_context::debug,
3226 ipa_polymorphic_call_context::stream_in,
3227 ipa_polymorphic_call_context::set_by_decl,
3228 ipa_polymorphic_call_context::set_by_invariant,
3229 walk_ssa_copies,
3230 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3231 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3232 extr_type_from_vtbl_ptr_store, record_known_type
3233 check_stmt_for_type_change,
3234 ipa_polymorphic_call_context::get_dynamic_type): Move here from
3235 ipa-devirt.c
3236 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3237 and streamer-hooks.h
3238 (contains_polymorphic_type_p, possible_placement_new,
3239 ipa_polymorphic_call_context::restrict_to_inner_class,
3240 contains_type_p, decl_maybe_in_construction_p,
3241 ipa_polymorphic_call_context::stream_out,
3242 ipa_polymorphic_call_context::debug,
3243 ipa_polymorphic_call_context::stream_in,
3244 ipa_polymorphic_call_context::set_by_decl,
3245 ipa_polymorphic_call_context::set_by_invariant,
3246 walk_ssa_copies,
3247 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3248 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3249 extr_type_from_vtbl_ptr_store, record_known_type
3250 check_stmt_for_type_change,
3251 ipa_polymorphic_call_context::get_dynamic_type): Move to
3252 ipa-polymorphic-call.c
3253 (type_all_derivations_known_p, types_odr_comparable,
3254 types_must_be_same_for_odr): Export.
3255 (type_known_to_have_no_deriavations_p): New function.
3256 * Makefile.in: Add ipa-polymorphic-call.c
3257
3258 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3259
3260 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3261 for better storage.
3262 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3263 (possible_polymorphic_call_targets): Instead of computing both
3264 speculative and non-speculative answers, do just one at a time.
3265 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3266 (dump_targets): Break out from ...
3267 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3268 and non-speculative lists.
3269 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3270 * ipa-utils.h (possible_polymorphic_call_targets): Update.
3271
3272 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
3273
3274 PR rtl-optimization/63348
3275 * emit-rtl.c (try_split): Do not emit extra barrier.
3276
3277 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
3278
3279 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3280 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3281 new predicates.
3282 (aarch64_<sur>shll2_n<mode>): Likewise.
3283 (aarch64_<sur>shr_n<mode>): Likewise.
3284 (aarch64_<sur>sra_n<mode>: Likewise.
3285 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3286 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3287 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3288 * config/aarch64/iterators.md (ve_mode): New.
3289 (offsetlr): Remap to infix text for use in new predicates.
3290 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3291 (aarch64_simd_shift_imm_hi): Likewise.
3292 (aarch64_simd_shift_imm_si): Likewise.
3293 (aarch64_simd_shift_imm_di): Likewise.
3294 (aarch64_simd_shift_imm_offset_qi): Likewise.
3295 (aarch64_simd_shift_imm_offset_hi): Likewise.
3296 (aarch64_simd_shift_imm_offset_si): Likewise.
3297 (aarch64_simd_shift_imm_offset_di): Likewise.
3298 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3299 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3300 (aarch64_simd_shift_imm_bitsize_si): Likewise.
3301 (aarch64_simd_shift_imm_bitsize_di): Likewise.
3302
3303 2014-09-25 Jiong Wang <jiong.wang@arm.com>
3304
3305 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3306 new created BB as the intersection of live-in from "old_dest" and
3307 live-out from "bb".
3308
3309 2014-09-25 Felix Yang <felix.yang@huawei.com>
3310
3311 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3312 * genautomata.c (merge_states): Ditto.
3313
3314 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3315
3316 PR target/62218
3317 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3318 in instruction sequence.
3319
3320 2014-09-25 Nick Clifton <nickc@redhat.com>
3321
3322 PR target/62218
3323 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3324 in instruction sequence.
3325
3326 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3327
3328 PR target/63335
3329 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3330 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3331
3332 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3333 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3334 Anna Tikhonova <anna.tikhonova@intel.com>
3335 Ilya Tocar <ilya.tocar@intel.com>
3336 Andrey Turetskiy <andrey.turetskiy@intel.com>
3337 Ilya Verbin <ilya.verbin@intel.com>
3338 Kirill Yukhin <kirill.yukhin@intel.com>
3339 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3340
3341 * config/i386/sse.md
3342 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3343 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3344 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3345 (define_expand "<avx512>_perm<mode>_mask"): ... this.
3346 Use VI8F_256_512 mode iterator.
3347 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3348 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3349
3350 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3351 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3352 Anna Tikhonova <anna.tikhonova@intel.com>
3353 Ilya Tocar <ilya.tocar@intel.com>
3354 Andrey Turetskiy <andrey.turetskiy@intel.com>
3355 Ilya Verbin <ilya.verbin@intel.com>
3356 Kirill Yukhin <kirill.yukhin@intel.com>
3357 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3358
3359 * config/i386/sse.md
3360 (define_insn "avx_movshdup256<mask_name>"): Add masking.
3361 (define_insn "sse3_movshdup<mask_name>"): Ditto.
3362 (define_insn "avx_movsldup256<mask_name>"): Ditto.
3363 (define_insn "sse3_movsldup<mask_name>"): Ditto.
3364 (define_insn "vec_dupv2df<mask_name>"): Ditto.
3365 (define_insn "*vec_concatv2df"): Add EVEX version.
3366
3367 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3368 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3369 Anna Tikhonova <anna.tikhonova@intel.com>
3370 Ilya Tocar <ilya.tocar@intel.com>
3371 Andrey Turetskiy <andrey.turetskiy@intel.com>
3372 Ilya Verbin <ilya.verbin@intel.com>
3373 Kirill Yukhin <kirill.yukhin@intel.com>
3374 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3375
3376 * config/i386/sse.md
3377 (define_insn "vec_set<mode>_0"): Add EVEX version.
3378
3379 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3380 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3381 Anna Tikhonova <anna.tikhonova@intel.com>
3382 Ilya Tocar <ilya.tocar@intel.com>
3383 Andrey Turetskiy <andrey.turetskiy@intel.com>
3384 Ilya Verbin <ilya.verbin@intel.com>
3385 Kirill Yukhin <kirill.yukhin@intel.com>
3386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3387
3388 * config/i386/sse.md
3389 (define_insn
3390 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3391 New.
3392 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3393 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3394 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3395 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3396 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3397 (define_expand "sse2_cvtpd2ps_mask): New.
3398 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3399 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3400
3401 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3402 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3403 Anna Tikhonova <anna.tikhonova@intel.com>
3404 Ilya Tocar <ilya.tocar@intel.com>
3405 Andrey Turetskiy <andrey.turetskiy@intel.com>
3406 Ilya Verbin <ilya.verbin@intel.com>
3407 Kirill Yukhin <kirill.yukhin@intel.com>
3408 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3409
3410 * config/i386/i386.c
3411 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3412 (ufix_notruncv8dfv8si2_mask_round): ... this.
3413 * config/i386/sse.md
3414 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3415 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3416 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3417 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3418 (define_expand "sse2_cvtpd2dq"): Delete.
3419 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3420 make 2nd operand const0 vector.
3421 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3422 Delete.
3423 (define_mode_attr pd2udqsuff): New.
3424 (define_insn
3425 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3426 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3427 (define_insn "*avx_cvttpd2dq256_2"): Delete.
3428 (define_expand "sse2_cvttpd2dq"): Ditto.
3429 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3430 make 2nd operand const0 vector.
3431
3432 2014-09-25 Jakub Jelinek <jakub@redhat.com>
3433
3434 PR tree-optimization/63341
3435 * tree-vectorizer.h (vect_create_data_ref_ptr,
3436 vect_create_addr_base_for_vector_ref): Add another tree argument
3437 defaulting to NULL_TREE.
3438 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3439 argument, pass it down to vect_create_addr_base_for_vector_ref.
3440 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3441 add that to base_offset too if non-NULL.
3442 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3443 for dr_explicit_realign_optimized set it to vector byte size
3444 - 1 instead of setting offset, pass byte_offset down to
3445 vect_create_data_ref_ptr.
3446
3447 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3448
3449 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3450 forgotten debug output; canonicalize querries more wtih LTO.
3451
3452 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3453
3454 * cgraph.h (class ipa_polymorphic_call_context): Move here from
3455 ipa-utils.h; add stream_int and stream_out methods.
3456 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3457 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3458 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3459 add CONTEXT.
3460 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3461 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3462 ipa_polymorphic_call_context::clear_speculation,
3463 ipa_polymorphic_call_context::clear_outer_type): Move here from
3464 ipa-utils.h
3465 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3466 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3467 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3468 ipa_polymorphic_call_context::clear_speculation,
3469 ipa_polymorphic_call_context::clear_outer_type): Likewise.
3470 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3471 streamer-hooks.h
3472 (ipa_polymorphic_call_context::stream_out): New method.
3473 (ipa_polymorphic_call_context::stream_in): New method.
3474 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3475 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3476 OUTER_TYPE.
3477 (ipa_analyze_call_uses): Simplify.
3478 (update_indirect_edges_after_inlining): Do not care about outer_type.
3479 (ipa_write_indirect_edge_info): Update.
3480 (ipa_write_indirect_edge_info): Likewise.
3481 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3482 (dump_edge_flags): Break out from ...
3483 (cgraph_node::dump): ... here; dump indirect edges.
3484
3485 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3486
3487 * ipa-utils.h (polymorphic_call_context): Add
3488 metdhos dump, debug and clear_outer_type.
3489 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3490 (ipa_polymorphic_call_context::clear_outer_type): New method.
3491 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3492 * ipa-devirt.c (types_odr_comparable): New function.
3493 (types_must_be_same_for_odr): New function.
3494 (odr_subtypes_equivalent_p): Simplify.
3495 (possible_placement_new): Break out from ...
3496 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3497 be more cuatious about returning false in cases the context may be
3498 valid in derived type or via placement new.
3499 (contains_type_p): Clear maybe_derived_type
3500 (ipa_polymorphic_call_context::dump): New method.
3501 (ipa_polymorphic_call_context::debug): New method.
3502 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3503 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3504 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3505 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3506 to suceed on all valid cases; remove confused sanity check.
3507 (dump_possible_polymorphic_call_targets): Simplify.
3508
3509 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
3510
3511 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3512 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3513 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3514 varpool.c: Rename all instances of DECL_ABSTRACT to
3515 DECL_ABSTRACT_P.
3516
3517 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3518
3519 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3520 special handling for stores whose SET_SRC is an UNSPEC (such as
3521 UNSPEC_STVE).
3522
3523 2014-09-24 Jiong Wang <jiong.wang@arm.com>
3524
3525 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3526 !REG_P (src) to release more instruction sink opportunities.
3527
3528 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
3529
3530 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3531 move costs for 128-bit types.
3532
3533 2014-09-24 Martin Jambor <mjambor@suse.cz>
3534
3535 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3536 when duplicating a PASS_THROUGH jump function when creating a
3537 speculative edge.
3538
3539 2014-09-24 Marek Polacek <polacek@redhat.com>
3540
3541 PR c/61405
3542 PR c/53874
3543 * asan.c (maybe_instrument_call): Add default case.
3544 * ipa-pure-const.c (special_builtin_state): Likewise.
3545 * predict.c (expr_expected_value_1): Likewise.
3546 * lto-streamer-out.c (write_symbol): Initialize variable.
3547
3548 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3549
3550 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3551 the lane.
3552 (vmuld_laneq_f64): Likewise.
3553 (vmuls_lane_f32): Likewise.
3554 (vmuls_laneq_f32): Likewise.
3555
3556 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
3557
3558 PR bootstrap/63235
3559 * varpool.c (varpool_node::add): Pass decl attributes
3560 to lookup_attribute.
3561
3562 2014-09-24 Jakub Jelinek <jakub@redhat.com>
3563
3564 PR sanitizer/63316
3565 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3566
3567 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3568
3569 PR tree-optimization/63266
3570 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3571 marker for unknown byte value.
3572 (MARKER_MASK): New macro.
3573 (MARKER_BYTE_UNKNOWN): New macro.
3574 (HEAD_MARKER): New macro.
3575 (do_shift_rotate): Mark bytes with unknown values due to sign
3576 extension when doing an arithmetic right shift. Replace hardcoded
3577 mask for marker by new MARKER_MASK macro.
3578 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3579 numbers accordingly.
3580
3581 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3582 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3583 Anna Tikhonova <anna.tikhonova@intel.com>
3584 Ilya Tocar <ilya.tocar@intel.com>
3585 Andrey Turetskiy <andrey.turetskiy@intel.com>
3586 Ilya Verbin <ilya.verbin@intel.com>
3587 Kirill Yukhin <kirill.yukhin@intel.com>
3588 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3589
3590 * config/i386/sse.md
3591 (define_insn
3592 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3593 Add masking.
3594 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3595 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3596
3597 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3598 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3599 Anna Tikhonova <anna.tikhonova@intel.com>
3600 Ilya Tocar <ilya.tocar@intel.com>
3601 Andrey Turetskiy <andrey.turetskiy@intel.com>
3602 Ilya Verbin <ilya.verbin@intel.com>
3603 Kirill Yukhin <kirill.yukhin@intel.com>
3604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3605
3606 * config/i386/sse.md
3607 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3608 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3609 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3610 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3611 (define_expand "avx512vl_pshuflw_mask"): New.
3612 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3613 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3614 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3615 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3616 (define_expand "avx512vl_pshufhw_mask"): New.
3617 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3618
3619 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3620 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3621 Anna Tikhonova <anna.tikhonova@intel.com>
3622 Ilya Tocar <ilya.tocar@intel.com>
3623 Andrey Turetskiy <andrey.turetskiy@intel.com>
3624 Ilya Verbin <ilya.verbin@intel.com>
3625 Kirill Yukhin <kirill.yukhin@intel.com>
3626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3627
3628 * config/i386/i386.c
3629 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3630 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3631 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3632 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3633 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3634 * config/i386/sse.md
3635 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3636 (define_insn
3637 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3638 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3639 (define_insn
3640 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3641 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3642 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3643 (define_expand "avx512vl_pshufd_mask"): New.
3644 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3645
3646 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3647 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3648 Anna Tikhonova <anna.tikhonova@intel.com>
3649 Ilya Tocar <ilya.tocar@intel.com>
3650 Andrey Turetskiy <andrey.turetskiy@intel.com>
3651 Ilya Verbin <ilya.verbin@intel.com>
3652 Kirill Yukhin <kirill.yukhin@intel.com>
3653 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3654
3655 * config/i386/i386.c
3656 (CODE_FOR_avx2_extracti128): Rename to ...
3657 (CODE_FOR_avx_vextractf128v4di): this.
3658 (CODE_FOR_avx2_inserti128): Rename to ...
3659 (CODE_FOR_avx_vinsertf128v4di): this.
3660 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3661 CODE_FOR_avx_vextractf128v4di.
3662 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3663 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3664 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3665 CODE_FOR_avx512vl_vinsertv8si.
3666 * config/i386/sse.md
3667 (define_expand
3668 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3669 AVX512_VEC mode iterator.
3670 (define_insn
3671 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3672 Ditto.
3673 (define_expand
3674 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3675 AVX512_VEC_2 mode iterator.
3676 (define_insn "vec_set_lo_<mode><mask_name>"): New.
3677 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3678 (define_expand "avx512vl_vinsert<mode>"): Ditto.
3679 (define_insn "avx2_vec_set_lo_v4di"): Delete.
3680 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3681 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3682 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3683 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3684 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3685 (define_expand "avx2_extracti128"): Delete.
3686 (define_expand "avx2_inserti128"): Ditto.
3687
3688 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3689 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3690 Anna Tikhonova <anna.tikhonova@intel.com>
3691 Ilya Tocar <ilya.tocar@intel.com>
3692 Andrey Turetskiy <andrey.turetskiy@intel.com>
3693 Ilya Verbin <ilya.verbin@intel.com>
3694 Kirill Yukhin <kirill.yukhin@intel.com>
3695 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3696
3697 * config/i386/sse.md
3698 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3699 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3700 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3701 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3702 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3703 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3704 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3705 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3706 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3707 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3708 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3709 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3710 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3711
3712 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
3713
3714 PR rtl-optimization/63210
3715 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3716 HARD_REGNO is not available for CONFLICT_A.
3717
3718 2014-09-23 Andi Kleen <ak@linux.intel.com>
3719
3720 * cgraph.h (symtab_node): Add no_reorder attribute.
3721 (symbol_table::output_asm_statements): Remove.
3722 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3723 (cgraph_node::create_version_clone): Dito.
3724 (symbol_table::output_asm_statements): Remove.
3725 * trans-mem.c (ipa_tm_create_version_alias): Dito.
3726 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3727 (output_in_order): Add no_reorder flag. Only handle no_reorder
3728 nodes when set.
3729 (symbol_table::compile): Add separate pass for no_reorder nodes.
3730 (process_common_attributes): Set no_reorder flag in symtab node.
3731 Add node argument.
3732 (process_function_and_variable_attributes): Pass symtab nodes to
3733 process_common_attributes.
3734 * doc/extend.texi (no_reorder): Document no_reorder attribute.
3735 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3736 (lto_output_varpool_node): Dito.
3737 (input_overwrite_node): Dito.
3738 (input_varpool_node): Dito.
3739 * varpool.c (varpool_node::add): Set no_reorder attribute.
3740 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3741 (symbol_table::output_variables): Dito.
3742 * symtab.c (symtab_node::dump_base): Print no_reorder.
3743
3744 2014-09-23 Jiong Wang <jiong.wang@arm.com>
3745
3746 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3747 be INVALID_REGNUM.
3748
3749 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
3750
3751 * configure: Regenerate.
3752
3753 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
3754
3755 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3756 when result_mode == shift_mode.
3757
3758 2014-09-23 Kostya Serebryany <kcc@google.com>
3759
3760 Update to match the changed asan API.
3761 * asan.c (asan_global_struct): Update the __asan_global definition
3762 to match the new API.
3763 (asan_add_global): Ditto.
3764 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3765 to __asan_init_v4.
3766
3767 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3768
3769 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3770 refine the constraints used on 32/64-bit floating point moves.
3771 (f32_av): Likewise.
3772 (f64_vsx): Likewise.
3773 (f64_dm): Likewise.
3774 (f64_av): Likewise.
3775 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3776 (BOOL_REGS_OP1): Likewise.
3777 (BOOL_REGS_OP2): Likewise.
3778 (BOOL_REGS_UNARY): Likewise.
3779 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3780 32/64-bit floating point moves. Do not use wa, instead use ww/ws
3781 for moves involving VSX registers. Do not use constraints that
3782 target VSX registers for decimal types.
3783 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3784 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3785
3786 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
3787
3788 * tree.h (int_bit_position): Turn into inline function;
3789 implement using wide int.
3790 * tree.c (int_bit_position): Remove.
3791
3792 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
3793
3794 PR bootstrap/63280
3795 * target-globals.c (target_globals::~target_globals): Fix location
3796 of ira_int destruction.
3797
3798 2014-09-23 Renlin Li <renlin.li@arm.com>
3799
3800 * config/aarch64/aarch64.md (return): New.
3801 (simple_return): Likewise.
3802 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3803 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3804
3805 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
3806
3807 * common/config/aarch64/aarch64-common.c:
3808 (default_options aarch_option_optimization_table):
3809 Default to -fsched-pressure.
3810
3811 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
3812
3813 * cfgcleanup.c (try_optimize_cfg): Do not remove label
3814 with LABEL_PRESERVE_P flag set.
3815
3816 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3818 Anna Tikhonova <anna.tikhonova@intel.com>
3819 Ilya Tocar <ilya.tocar@intel.com>
3820 Andrey Turetskiy <andrey.turetskiy@intel.com>
3821 Ilya Verbin <ilya.verbin@intel.com>
3822 Kirill Yukhin <kirill.yukhin@intel.com>
3823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3824
3825 * config/i386/sse.md
3826 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3827 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3828 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3829 (define_insn "sse2_shufpd_v2df_mask"): New.
3830
3831 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3832 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3833 Anna Tikhonova <anna.tikhonova@intel.com>
3834 Ilya Tocar <ilya.tocar@intel.com>
3835 Andrey Turetskiy <andrey.turetskiy@intel.com>
3836 Ilya Verbin <ilya.verbin@intel.com>
3837 Kirill Yukhin <kirill.yukhin@intel.com>
3838 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3839
3840 * config/i386/sse.md
3841 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3842 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3843 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3844 (define_insn "sse_shufps_v4sf_mask"): New.
3845
3846 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3847 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3848 Anna Tikhonova <anna.tikhonova@intel.com>
3849 Ilya Tocar <ilya.tocar@intel.com>
3850 Andrey Turetskiy <andrey.turetskiy@intel.com>
3851 Ilya Verbin <ilya.verbin@intel.com>
3852 Kirill Yukhin <kirill.yukhin@intel.com>
3853 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3854
3855 * config/i386/sse.md
3856 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3857 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3858 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3859 (define_insn "unpcklps128_mask"): New.
3860
3861 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3862 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3863 Anna Tikhonova <anna.tikhonova@intel.com>
3864 Ilya Tocar <ilya.tocar@intel.com>
3865 Andrey Turetskiy <andrey.turetskiy@intel.com>
3866 Ilya Verbin <ilya.verbin@intel.com>
3867 Kirill Yukhin <kirill.yukhin@intel.com>
3868 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3869
3870 * config/i386/sse.md
3871 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3872 (define_insn "avx512vl_unpckhpd128_mask"): New.
3873 (define_expand "avx_movddup256<mask_name>"): Add masking.
3874 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3875 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3876 (define_insn "avx512vl_unpcklpd128_mask"): New.
3877
3878 2014-09-22 Joseph Myers <joseph@codesourcery.com>
3879
3880 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3881 * doc/tm.texi: Regenerate.
3882 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3883 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3884 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3885 Remove.
3886 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3887 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3888 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3889 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3890 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3891 Remove.
3892 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3893 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3894 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3895 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3896 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3897 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3898 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3899 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3900 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3901 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3902 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3903 Remove.
3904
3905 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
3906
3907 * tree-ssa-ccp.c (prop_value_d): Rename to ...
3908 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3909 * ipa-prop.c (struct type_change_info): Rename to ...
3910 (prop_type_change_info): ... this; update uses.
3911 * ggc-page.c (globals): Rename to ...
3912 (static struct ggc_globals): ... this; update uses.
3913 * tree-ssa-loop-im.c (mem_ref): Rename to ...
3914 (im_mem_ref): ... this; update uses.
3915 * ggc-common.c (loc_descriptor): Rename to ...
3916 (ggc_loc_descriptor): ... this; update uses.
3917 * lra-eliminations.c (elim_table): Rename to ...
3918 (lra_elim_table): ... this; update uses.
3919 * bitmap.c (output_info): Rename to ...
3920 (bitmap_output_info): ... this; update uses.
3921 * gcse.c (expr): Rename to ...
3922 (gcse_expr) ... this; update uses.
3923 (occr): Rename to ...
3924 (gcse_occr): .. this; update uses.
3925 * tree-ssa-copy.c (prop_value_d): Rename to ...
3926 (prop_value_t): ... this.
3927 * predict.c (block_info_def): Rename to ...
3928 (block_info): ... this; update uses.
3929 (edge_info_def): Rename to ...
3930 (edge_info): ... this; update uses.
3931 * profile.c (bb_info): Rename to ...
3932 (bb_profile_info): ... this; update uses.
3933 * alloc-pool.c (output_info): Rename to ...
3934 (pool_output_info): ... this; update uses.
3935 * ipa-cp.c (topo_info): Rename to ..
3936 (ipa_topo_info): ... this; update uses.
3937 * tree-nrv.c (nrv_data): Rename to ...
3938 (nrv_data_t): ... this; update uses.
3939 * ipa-split.c (bb_info): Rename to ...
3940 (split_bb_info): ... this one.
3941 * profile.h (edge_info): Rename to ...
3942 (edge_profile_info): ... this one; update uses.
3943 * dse.c (bb_info): Rename to ...
3944 (dse_bb_info): ... this one; update uses.
3945 * cprop.c (occr): Rename to ...
3946 (cprop_occr): ... this one; update uses.
3947 (expr): Rename to ...
3948 (cprop_expr): ... this one; update uses.
3949
3950 2014-09-22 Jason Merrill <jason@redhat.com>
3951
3952 * Makefile.in (check-parallel-%): Add @.
3953
3954 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3955
3956 * config/aarch64/geniterators.sh: New.
3957 * config/aarch64/iterators.md (VDQF_DF): New.
3958 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3959 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3960
3961 2014-09-22 Peter A. Bigot <pab@pabigot.com>
3962
3963 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
3964 -lnosys when -msim absent.
3965
3966 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3967
3968 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3969
3970 2014-09-22 Richard Biener <rguenther@suse.de>
3971
3972 * gimplify.c (gimplify_init_constructor): Do not leave
3973 non-GIMPLE vector constructors around.
3974 * tree-cfg.c (verify_gimple_assign_single): Verify that
3975 CONSTRUCTORs have gimple elements.
3976
3977 2014-09-22 Jakub Jelinek <jakub@redhat.com>
3978
3979 PR debug/63328
3980 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3981 insert a debug source bind stmt setting DEBUG_EXPR_DECL
3982 instead of a normal gimple assignment stmt.
3983
3984 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3985
3986 * config/bfin/bfin.md: Fix use of constraints in define_split.
3987
3988 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3989
3990 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3991 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3992
3993 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3994
3995 * hard-reg-set.h: Include hash-table.h.
3996 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3997 field.
3998 * target-globals.c (target_globals::~target_globals): Call
3999 hard_regs->finalize.
4000 * rtl.h (subreg_shape): New structure.
4001 (shape_of_subreg): New function.
4002 (simplifiable_subregs): Declare.
4003 * reginfo.c (simplifiable_subreg): New structure.
4004 (simplifiable_subregs_hasher): Likewise.
4005 (simplifiable_subregs): New function.
4006 (invalid_mode_changes): Delete.
4007 (alid_mode_changes, valid_mode_changes_obstack): New variables.
4008 (record_subregs_of_mode): Remove subregs_of_mode parameter.
4009 Record valid mode changes in valid_mode_changes.
4010 (find_subregs_of_mode): Remove subregs_of_mode parameter.
4011 Update calls to record_subregs_of_mode.
4012 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4013 handling. Initialize new variables. Update call to
4014 find_subregs_of_mode.
4015 (invalid_mode_change_p): Check new variables instead of
4016 invalid_mode_changes.
4017 (finish_subregs_of_mode): Finalize new variables instead of
4018 invalid_mode_changes.
4019 (target_hard_regs::finalize): New function.
4020 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4021 even when CLASS_CANNOT_CHANGE_MODE is undefined.
4022
4023 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4024
4025 * combine.c (subst): Use simplify_subreg_regno rather than
4026 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4027
4028 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4029
4030 * rtl.h (subreg_info): Expand commentary
4031 * rtlanal.c (subreg_get_info): Likewise.
4032
4033 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4034
4035 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4036 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4037 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4038
4039 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
4040
4041 * config/arm/arm.c: #include "tm-constrs.h"
4042 (thumb1_size_rtx_costs): Adjust rtx costs.
4043
4044 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
4045
4046 * configure.ac (target_header_dir): Move block defining
4047 this to before the block setting inhibit_libc.
4048 (inhibit_libc): When considering $with_headers, just
4049 check it it's explicitly "no". If not, also check if
4050 $target_header_dir/stdio.h is present. If not, set
4051 inhibit_libc=true.
4052 * configure: Regenerate.
4053
4054 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
4055
4056 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4057
4058 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4059
4060 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
4061 insn for divides by integer powers of two.
4062 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4063 (mod<mode>3): Fix formatting.
4064 (three anonymous define_insn and two define_split): Delete.
4065
4066 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4067
4068 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4069 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4070 (floatdisf2_internal2): Ditto.
4071 (ashrdi3_no_power): Ditto. Fix formatting.
4072
4073 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4074
4075 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4076 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4077 Tidy.
4078
4079 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4080
4081 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4082 constant, use addsi3 directly.
4083 (three anonymous define_insn, two define_split): Delete.
4084 (sub<mode>3): Move. Do not allow constant second operand.
4085 Generate different insn for constant first operand.
4086 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4087 (subf<mode>3_imm): New.
4088 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4089 (*plus_ltu<mode>): Only handle registers.
4090 (*plus_ltu<mode>_1): New. Handle integer third operand.
4091 (*plus_gtu<mode>): Only handle registers.
4092 (*plus_gtu<mode>_1): New. Handle integer third operand.
4093
4094 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4095
4096 * config/rs6000/rs6000.md (iorxor): New code_iterator.
4097 (iorxor): New code_attr.
4098 (IORXOR): New code_attr.
4099 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4100 (ior<mode>3, xor<mode>3): Delete.
4101 (<iorxor><mode>3): New.
4102 (splitter for "big" integer ior, xor): New.
4103 (*bool<mode>3): Move. Also handle AND.
4104 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4105 (splitter for "big" integer ior, xor): Delete.
4106
4107 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4108
4109 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4110 (two anonymous define_insn and two define_split): Delete.
4111 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4112
4113 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4114
4115 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4116 (two anonymous define_insn and two define_split): Delete.
4117 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4118
4119 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4120
4121 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4122
4123 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4124
4125 * config/rs6000/predicates.md (ca_operand): Allow subregs.
4126 (input_operand): Do not allow ca_operand.
4127 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4128 carry bit, allow SImode and Pmode.
4129 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4130
4131 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
4132
4133 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4134 clobbered registers using clobber_reg. Remove UNSPEC decoration.
4135 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4136 (*call_rex64_ms_sysv): Remove.
4137 (*call_value_rex64_ms_sysv): Ditto.
4138 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4139
4140 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
4141
4142 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4143 operand 3 to "CnL".
4144
4145 2014-09-20 Andreas Schwab <schwab@suse.de>
4146
4147 * config/ia64/ia64.md: Remove constraints from define_split
4148 patterns.
4149
4150 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4151
4152 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4153 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4154 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4155 (get_dynamic_type): Remove.
4156 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4157 (clear_speculation): Bring to ipa-deivrt.h
4158 (get_class_context): Rename to ...
4159 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4160 (contains_type_p): Update.
4161 (get_dynamic_type): Rename to ...
4162 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4163 (possible_polymorphic_call_targets): UPdate.
4164 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4165 * ipa-prop.c (ipa_analyze_call_uses): Update.
4166
4167 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4168
4169 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4170 privatize dynamic TLS variables.
4171
4172 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4173
4174 * diagnostic.c (warning_n): New function.
4175 * diagnostic-core.h (warning_n): Declare.
4176 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4177 output dynamic counts when available.
4178
4179 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4180
4181 PR tree-optimization/63255
4182 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4183 issue in setting body_removed flag.
4184
4185 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4186
4187 PR c++/61825
4188 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4189 that visibility change is possible
4190 (handle_weakref_attribute): Likewise.
4191 * cgraph.h (symtab_node): Add method get_create and
4192 field refuse_visibility_changes.
4193 (symtab_node::get_create): New method.
4194 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4195 * varasm.c (mark_weak): Verify that visibility change is
4196 possible.
4197
4198 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4199
4200 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4201 for base_reg_operand to be common between LO_SUM and PLUS.
4202 (fusion_gpr_mem_combo): New predicate to match a fused address
4203 that combines the addis and memory offset address.
4204
4205 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4206 calling signature.
4207 (emit_fusion_gpr_load): Likewise.
4208
4209 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4210 signature to pass each argument separately, rather than
4211 using an operands array. Rewrite the insns found by peephole2 to
4212 be a single insn, rather than hoping the insns will still be
4213 together when the peephole pass is done. Drop being called via a
4214 normal peephole.
4215 (emit_fusion_gpr_load): Change calling signature to be called from
4216 the fusion_gpr_load_<mode> insns with a combined memory address
4217 instead of the peephole pass passing the addis and offset
4218 separately.
4219
4220 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4221 fusion.
4222 (power8 fusion peephole): Drop support for doing power8 via a
4223 normal peephole that was created by the peephole2 pass.
4224 (power8 fusion peephole2): Create a new insn with the fused
4225 address, so that the fused operation is kept together after
4226 register allocation is done.
4227 (fusion_gpr_load_<mode>): Likewise.
4228
4229 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4230
4231 PR lto/63286
4232 * tree.c (need_assembler_name_p): Do not mangle variadic types.
4233
4234 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4235
4236 * recog.c (scratch_operand): Do not simply allow all hard registers:
4237 only allow those that are allocatable.
4238
4239 2014-09-19 Felix Yang <felix.yang@huawei.com>
4240
4241 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4242 comments and fix spacing to conform to coding style.
4243
4244 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4245
4246 * genrecog.c (validate_pattern): Allow empty constraints in
4247 a match_scratch.
4248
4249 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
4250
4251 * dwarf2out.c (decl_ultimate_origin): Update comment.
4252 * tree.c (block_ultimate_origin): Same.
4253
4254 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4255
4256 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4257 Update GCC version name to GCC 5.
4258 (rs6000_function_arg_boundary): Likewise.
4259 (rs6000_function_arg): Likewise.
4260
4261 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4262
4263 * config/sh/sh.md: Fix use of constraints in define_split.
4264
4265 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4266
4267 PR ipa/61998
4268 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4269
4270 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4271
4272 * doc/md.texi (Modifiers): Consistently use "read/write"
4273 nomenclature rather than "input/output".
4274 * genrecog.c (constraints_supported_in_insn_p): New.
4275 (validate_pattern): If needed, also check constraints on
4276 MATCH_SCRATCH operands.
4277 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4278 operands with no '=' or '+' modifier.
4279
4280 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4281
4282 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4283 scratch register as written.
4284
4285 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4286
4287 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4288 assignment.
4289
4290 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4291
4292 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4293 expanders.
4294
4295 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4296
4297 PR target/62662
4298 * config/s390/s390.c (s390_emit_epilogue): When doing the return
4299 address load optimization force s390_optimize_prologue to leave it
4300 that way. Only do the optimization if we already decided to push
4301 r14 into a stack slot.
4302
4303 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
4304
4305 * asan.c (build_check_stmt): Alignment arg was added.
4306 (asan_expand_check_ifn): Optimization for alignment >= 8.
4307
4308 2014-09-19 Olivier Hainque <hainque@adacore.com>
4309
4310 * config/i386/vxworksae.h: Remove obsolete definitions.
4311 (STACK_CHECK_PROTECT): Define.
4312 * config/i386/vx-common.h: Remove. Merge contents within
4313 config/i386/vxworks.h.
4314 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4315 i386/vx-common.h.
4316
4317 2014-09-19 Olivier Hainque <hainque@adacore.com>
4318
4319 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4320 * config/rs6000/t-vxworksmils: New file.
4321 * config/rs6000/vxworksmils.h: New file.
4322
4323 2014-09-19 Olivier Hainque <hainque@adacore.com>
4324
4325 * varasm.c (default_section_type_flags): Flag .persistent.bss
4326 sections as SECTION_BSS.
4327
4328 2014-09-19 Nick Clifton <nickc@redhat.com>
4329
4330 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4331 pop'ed registers so that DCE does not eliminate them.
4332
4333 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
4334
4335 PR lto/63298
4336 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4337
4338 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4339
4340 * system.h (LIBGCC2_TF_CEXT): Poison.
4341 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4342 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4343 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4344 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4345 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4346 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4347 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4348 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4349 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4350
4351 2014-09-19 Kito Cheng <kito@0xlab.org>
4352
4353 * except.h: Fix header guard.
4354 * addresses.h: Add missing header guard.
4355 * cfghooks.h: Likewise.
4356 * collect-utils.h: Likewise.
4357 * collect2-aix.h: Likewise.
4358 * conditions.h: Likewise.
4359 * cselib.h: Likewise.
4360 * dwarf2asm.h: Likewise.
4361 * graphds.h: Likewise.
4362 * graphite-scop-detection.h: Likewise.
4363 * gsyms.h: Likewise.
4364 * hw-doloop.h: Likewise.
4365 * incpath.h: Likewise.
4366 * ipa-inline.h: Likewise.
4367 * ipa-ref.h: Likewise.
4368 * ira-int.h: Likewise.
4369 * ira.h: Likewise.
4370 * lra-int.h: Likewise.
4371 * lra.h: Likewise.
4372 * lto-section-names.h: Likewise.
4373 * read-md.h: Likewise.
4374 * reload.h: Likewise.
4375 * rtl-error.h: Likewise.
4376 * sdbout.h: Likewise.
4377 * targhooks.h: Likewise.
4378 * tree-affine.h: Likewise.
4379 * xcoff.h: Likewise.
4380 * xcoffout.h: Likewise.
4381
4382 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4383
4384 PR debug/63285
4385 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4386 if advance != 0.
4387
4388 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4389
4390 PR target/61360
4391 * lra.c (lra): Call recog_init.
4392
4393 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4394
4395 PR c++/62017
4396 * asan.c (transform_statements): Don't instrument clobber statements.
4397
4398 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4399
4400 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4401 to neon_load1_1reg<q>.
4402
4403 2014-09-17 Jakub Jelinek <jakub@redhat.com>
4404
4405 PR debug/63284
4406 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4407 if there are only debug stmts after the noreturn call, instead
4408 remove the debug stmts.
4409
4410 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
4411
4412 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4413 (odr_types_equivalent_p): Use pair hash.
4414 (odr_subtypes_equivalent_p): Likewise, do structural compare
4415 on ODR types that may be mismatched.
4416 (warn_odr): Support warning when only one field is given.
4417 (odr_types_equivalent_p): Strenghten comparsions made;
4418 support VOIDtype.
4419 (add_type_duplicate): Update VISITED hash set.
4420
4421 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4422
4423 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4424 Enable selection of 'posix' or no thread model.
4425
4426 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
4427
4428 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4429 when architecture is older than ARMv7.
4430
4431 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
4432
4433 PR target/61853
4434 * config/pa/pa.c (pa_function_value): Directly handle aggregates
4435 that fit exactly in a word or double word.
4436
4437 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
4438
4439 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4440 zmm/k regs support.
4441
4442 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
4443 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4444 Anna Tikhonova <anna.tikhonova@intel.com>
4445 Ilya Tocar <ilya.tocar@intel.com>
4446 Andrey Turetskiy <andrey.turetskiy@intel.com>
4447 Ilya Verbin <ilya.verbin@intel.com>
4448 Kirill Yukhin <kirill.yukhin@intel.com>
4449 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4450
4451 * config/i386/i386.c
4452 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4453 * config/i386/sse.md
4454 (define_mode_iterator VI48F_256): New.
4455 (define_mode_attr extract_type): Ditto.
4456 (define_mode_attr extract_suf): Ditto.
4457 (define_mode_iterator AVX512_VEC): Ditto.
4458 (define_expand
4459 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4460 AVX512_VEC.
4461 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4462 (define_insn
4463 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4464 Ditto.
4465 (define_mode_attr extract_type_2): Ditto.
4466 (define_mode_attr extract_suf_2): Ditto.
4467 (define_mode_iterator AVX512_VEC_2): Ditto.
4468 (define_expand
4469 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4470 AVX512_VEC_2 mode iterator.
4471 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4472 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4473 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4474 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4475 (define_split for V16FI mode): Ditto.
4476 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4477 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4478 (define_split for VI8F_256 mode): Ditto.
4479 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4480 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4481 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4482 (define_split for VI4F_256 mode): Ditto.
4483 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4484 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4485 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4486 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4487 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4488 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4489 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4490 Update `type' attribute, remove explicit `memory' attribute calculation.
4491
4492 2014-09-16 Kito Cheng <kito@0xlab.org>
4493
4494 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4495 ira_spilled_reg_stack_slots_num if using lra.
4496 (do_reload): Remove release ira_spilled_reg_stack_slots part.
4497 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4498 make sure not using lra.
4499 (ira_reuse_stack_slot): Likewise.
4500 (ira_mark_new_stack_slot): Likewise.
4501
4502 2014-09-15 Andi Kleen <ak@linux.intel.com>
4503
4504 * function.c (allocate_struct_function): Force
4505 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4506 profiling is disabled.
4507
4508 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4509
4510 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4511 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4512 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4513 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4514 macro with statically checked member functions.
4515 * rtl.h (rtx_insn::deleted): New method.
4516 (rtx_insn::set_deleted): Likewise.
4517 (rtx_insn::set_undeleted): Likewise.
4518 (INSN_DELETED_P): Remove.
4519
4520 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4521
4522 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4523 result of emit_jump_insn_before to a new variable.
4524 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4525 (mark_jump_label_1): Likewise.
4526 (mark_jump_label_asm): Likewise.
4527 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4528 * rtl.h (mark_jump_label): Adjust.
4529
4530 2014-09-15 Jakub Jelinek <jakub@redhat.com>
4531
4532 * Makefile.in (dg_target_exps): Remove.
4533 (check_gcc_parallelize): Change to just an upper bound number.
4534 (check-%-subtargets): Always print the non-parallelized goals.
4535 (check_p_vars, check_p_comma, check_p_subwork): Remove.
4536 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4537 check_p_numbers3, check_p_numbers4, check_p_numbers5,
4538 check_p_numbers6): New variables.
4539 (check_p_numbers): Set to sequence from 1 to 9999.
4540 (check_p_subdirs): Set to sequence from 1 to minimum of
4541 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4542 or 128.
4543 (check-%, check-parallel-%): Rewritten so that for parallelized
4544 testing each job runs all the *.exp files, with
4545 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4546
4547 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4548
4549 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4550 rtx to rtx_insn *.
4551 (arc_sets_cc_p): Likewise.
4552 * config/arc/arc.c (arc_print_operand): Use methods of
4553 "final_sequence" for clarity, and to enable strengthening of
4554 locals "jump" and "delay" from rtx to rtx_insn *.
4555 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4556 rtx_insn *; use method of rtx_sequence for typesafety.
4557 (arc_get_insn_variants): Use insn method of rtx_sequence for
4558 typesafety.
4559 (arc_pad_return): Likewise.
4560 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4561 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
4562 dyn_cast to rtx_sequence *, using insn method for typesafety.
4563 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4564 rtx_sequence * and use insn method when invoking get_attr_length.
4565 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4566 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
4567 rtx_sequence *, introducing a local "seq", using its insn method
4568 from typesafety and clarity.
4569 (add_sched_insns_for_speculation): Strengthen local "next" from
4570 rtx to rtx_insn *.
4571 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4572 (predicate_insn): Likewise.
4573 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4574 second param.
4575 * config/cris/cris.c (cris_notice_update_cc): Likewise.
4576 * config/epiphany/epiphany-protos.h
4577 (extern void epiphany_insert_mode_switch_use): Likewise for param
4578 "insn".
4579 (get_attr_sched_use_fpu): Likewise for param.
4580 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4581 Likewise for param "insn".
4582 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4583 param "insn" of "target_insert_mode_switch_use" callback.
4584 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4585 (frv_issues_to_branch_unit_p): Likewise.
4586 (frv_pack_insn_p): Likewise.
4587 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4588 const rtx * (i.e. mutable rtx_def * const *) to
4589 rtx_insn * const *.
4590 * config/i386/i386-protos.h (standard_sse_constant_opcode):
4591 Strengthen first param from rtx to rtx_insn *.
4592 (output_fix_trunc): Likewise.
4593 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4594 (output_fix_trunc): Likewise.
4595 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4596 local "insn".
4597 (min_insn_size): Likewise for param "insn".
4598 (get_mem_group): Likewise.
4599 (is_cmp): Likewise.
4600 (get_insn_path): Likewise.
4601 (get_insn_group): Likewise.
4602 (count_num_restricted): Likewise.
4603 (fits_dispatch_window): Likewise.
4604 (add_insn_window): Likewise.
4605 (add_to_dispatch_window): Likewise.
4606 (debug_insn_dispatch_info_file): Likewise.
4607 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4608 first param.
4609 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4610 "cmp" and local "prev".
4611 (m32c_output_compare): Likewise for param "insn".
4612 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4613 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4614 (define_predicate "large_insn_p"): Likewise.
4615 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4616 param from rtx to rtx_insn *.
4617 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4618 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4619 (m68k_sched_attr_size): Likewise.
4620 (sched_get_opxy_mem_type): Likewise for param "insn".
4621 (m68k_sched_attr_op_mem): Likewise.
4622 (sched_mem_operand_p): Likewise.
4623 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4624 * config/mep/mep.c (mep_multi_slot): Likewise.
4625 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4626 first param.
4627 (mips_sync_loop_insns): Likewise.
4628 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4629 method of "final_sequence" for typesafety.
4630 (mips_process_sync_loop): Strengthen param "insn" from rtx to
4631 rtx_insn *.
4632 (mips_output_sync_loop): Likewise.
4633 (mips_sync_loop_insns): Likewise.
4634 (mips_74k_agen_init): Likewise.
4635 (mips_sched_init): Use NULL rather than NULL_RTX when working with
4636 insns.
4637 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4638 Strengthen param "insn" from rtx to rtx_insn *.
4639 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4640 local "insn".
4641 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4642 param.
4643 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4644 "insn". Use method of rtx_sequence for typesafety.
4645 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4646 rtx_insn *.
4647 (branch_needs_nop_p): Likewise.
4648 (use_skip_p): Likewise.
4649 (pa_insn_refs_are_delayed): Likewise.
4650 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4651 for locals "insn", "ninsn".
4652 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4653 "insn".
4654 (is_cracked_insn): Likewise.
4655 (is_branch_slot_insn): Likewise.
4656 (is_nonpipeline_insn): Likewise.
4657 (insn_terminates_group_p): Likewise.
4658 (insn_must_be_first_in_group): Likewise.
4659 (insn_must_be_last_in_group): Likewise.
4660 (force_new_group): Likewise for param "next_insn".
4661 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4662 "insn".
4663 (s390_sched_score): Likewise.
4664 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4665 (rtx sfunc_uses_reg): Likewise for sole param.
4666 * config/sh/sh.c (sh_print_operand): Use insn method of
4667 final_sequence for typesafety.
4668 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4669 Use insn method of final_sequence for typesafety.
4670 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4671 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4672 for param.
4673 (eligible_for_return_delay): Likewise.
4674 (eligible_for_sibcall_delay): Likewise.
4675 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4676 (eligible_for_return_delay): Likewise.
4677 (eligible_for_sibcall_delay): Likewise.
4678 * config/stormy16/stormy16-protos.h
4679 (xstormy16_output_cbranch_hi): Likewise for final param.
4680 (xstormy16_output_cbranch_si): Likewise.
4681 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4682 (xstormy16_output_cbranch_si): Likewise.
4683 * config/v850/v850-protos.h (notice_update_cc): Likewise.
4684 * config/v850/v850.c (notice_update_cc): Likewise.
4685
4686 * final.c (get_attr_length_1): Strengthen param "insn" and param
4687 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4688 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4689 (get_attr_min_length): Likewise.
4690 (shorten_branches): Likewise for signature of locals "length_fun"
4691 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
4692 from a checked cast and use its methods for clarity and to enable
4693 strengthening local "inner_insn" from rtx to rtx_insn *.
4694 * genattr.c (gen_attr): When writing out the prototypes of the
4695 various generated "get_attr_" functions, strengthen the params of
4696 the non-const functions from rtx to rtx_insn *.
4697 Similarly, strengthen the params of insn_default_length,
4698 insn_min_length, insn_variable_length_p, insn_current_length.
4699 (main): Similarly, strengthen the param of num_delay_slots,
4700 internal_dfa_insn_code, insn_default_latency, bypass_p,
4701 insn_latency, min_issue_delay, print_reservation,
4702 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4703 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
4704 to hook_int_rtx_insn_unreachable.
4705 * genattrtab.c (write_attr_get): When writing out the generated
4706 "get_attr_" functions, strengthen the param "insn" from rtx to
4707 rtx_insn *, eliminating a checked cast.
4708 (make_automaton_attrs): When writing out prototypes of
4709 "internal_dfa_insn_code_", "insn_default_latency_" functions
4710 and the "internal_dfa_insn_code" and "insn_default_latency"
4711 callbacks, strengthen their params from rtx to rtx_insn *
4712 * genautomata.c (output_internal_insn_code_evaluation): When
4713 writing out code, add a checked cast from rtx to rtx_insn * when
4714 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4715 (output_dfa_insn_code_func): Strengthen param of generated
4716 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4717 (output_trans_func): Likewise for generated function
4718 "state_transition".
4719 (output_internal_insn_latency_func): When writing out generated
4720 function "internal_insn_latency", rename params from "insn" and
4721 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
4722 locals "insn" and "insn2" as rtx_insn * with checked casts once
4723 we've proven that we're not dealing with const0_rtx.
4724 (output_insn_latency_func): Strengthen param of generated
4725 function "insn_latency" from rtx to rtx_insn *.
4726 (output_print_reservation_func): Likewise for generated function
4727 "print_reservation".
4728 (output_insn_has_dfa_reservation_p): Likewise for generated
4729 function "insn_has_dfa_reservation_p".
4730 * hooks.c (hook_int_rtx_unreachable): Rename to...
4731 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4732 from rtx to rtx_insn *.
4733 * hooks.h (hook_int_rtx_unreachable): Likewise.
4734 (extern int hook_int_rtx_insn_unreachable): Likewise.
4735 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4736 (get_attr_min_length): Likewise.
4737 * recog.c (get_enabled_alternatives): Likewise.
4738 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4739 * reorg.c (find_end_label): Introduce local rtx "pat" and
4740 strengthen local "insn" from rtx to rtx_insn *.
4741 (redundant_insn): Use insn method of "seq" rather than element for
4742 typesafety; strengthen local "control" from rtx to rtx_insn *.
4743 * resource.c (mark_referenced_resources): Add checked cast to
4744 rtx_insn * within INSN/JUMP_INSN case.
4745 (mark_set_resources): Likewise.
4746 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4747 rtx to rtx_insn *.
4748
4749 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4750
4751 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4752 param "label" from rtx to rtx_insn *.
4753 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4754 and local "op".
4755 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4756 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4757 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4758 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4759 * final.c (default_label_align_after_barrier_max_skip): Strengthen
4760 param from rtx to rtx_insn *.
4761 (default_loop_align_max_skip): Likewise.
4762 (default_label_align_max_skip): Likewise.
4763 (default_jump_align_max_skip): Likewise.
4764 * target.def (label_align_after_barrier_max_skip): Likewise.
4765 (loop_align_max_skip): Likewise.
4766 (label_align_max_skip): Likewise.
4767 (jump_align_max_skip): Likewise.
4768 * targhooks.h (default_label_align_after_barrier_max_skip):
4769 Likewise.
4770 (default_loop_align_max_skip): Likewise.
4771 (default_label_align_max_skip): Likewise.
4772 (default_jump_align_max_skip): Likewise.
4773
4774 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4775
4776 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4777 from const_rtx to const rtx_insn *. Update union members from rtx
4778 to rtx_insn *.
4779 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4780 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4781 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4782 strengthen both params from const_rtx to const rtx_insn *.
4783 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4784 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4785 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4786 rtx_insn *.
4787 * target.def (can_follow_jump): Strengthen both params from
4788 const_rtx to const rtx_insn *, and update default implementation
4789 from hook_bool_const_rtx_const_rtx_true to
4790 hook_bool_const_rtx_insn_const_rtx_insn_true.
4791
4792 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4793
4794 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4795 "insn" from rtx to rtx_insn *.
4796 * sched-int.h (deps_start_bb): Likewise for 2nd param.
4797
4798 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4799 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4800 Anna Tikhonova <anna.tikhonova@intel.com>
4801 Ilya Tocar <ilya.tocar@intel.com>
4802 Andrey Turetskiy <andrey.turetskiy@intel.com>
4803 Ilya Verbin <ilya.verbin@intel.com>
4804 Kirill Yukhin <kirill.yukhin@intel.com>
4805 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4806
4807 * config/i386/sse.md
4808 (define_insn "vcvtph2ps<mask_name>"): Add masking.
4809 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4810 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4811 (define_expand "vcvtps2ph_mask"): New.
4812 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4813 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4814 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4815
4816 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4818 Anna Tikhonova <anna.tikhonova@intel.com>
4819 Ilya Tocar <ilya.tocar@intel.com>
4820 Andrey Turetskiy <andrey.turetskiy@intel.com>
4821 Ilya Verbin <ilya.verbin@intel.com>
4822 Kirill Yukhin <kirill.yukhin@intel.com>
4823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4824
4825 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4826 New.
4827 (define_mode_iterator VI24_AVX512BW_1): Ditto.
4828 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4829 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4830 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4831 also for TARGET_AVX512VL.
4832 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4833
4834 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
4835
4836 * doc/install.texi (Options specification): add
4837 --disable-libsanitizer item.
4838
4839 2014-09-14 James Clarke <jrtc27@jrtc27.com>
4840 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4841
4842 PR target/61407
4843 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4844 and above.
4845 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4846 kernel version check to avoid incrementing it after every major OS X
4847 release.
4848 (darwin_default_min_version): Avoid static memory buffer.
4849
4850 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
4851
4852 * tree.c (need_assembler_name_p): Store C++ type mangling only
4853 for aggregates.
4854
4855 2014-09-13 Marek Polacek <polacek@redhat.com>
4856
4857 * tree.c (protected_set_expr_location): Don't check whether T is
4858 non-null here.
4859
4860 2014-09-12 DJ Delorie <dj@redhat.com>
4861
4862 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4863 (extend_and_shift1_hipsi2): Likewise.
4864 (extend_and_shift2_hipsi2): Likewise.
4865
4866 2014-09-12 David Malcolm <dmalcolm@redhat.com>
4867
4868 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4869 with NULL when dealing with an insn.
4870 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4871 from rtx to rtx_insn *.
4872 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4873 const_rtx to const rtx_insn *.
4874 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4875
4876 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
4877
4878 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4879 assert.
4880
4881 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4882
4883 * target.def (libgcc_floating_mode_supported_p): New hook.
4884 * targhooks.c (default_libgcc_floating_mode_supported_p): New
4885 function.
4886 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4887 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4888 (LIBGCC2_HAS_TF_MODE): Remove.
4889 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4890 * doc/tm.texi: Regenerate.
4891 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4892 machine mode.
4893 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4894 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4895 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4896 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4897 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4898 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4899 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4900 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4901 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4902 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4903 function.
4904 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4905 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4906 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4907 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4908 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4909 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4910 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4911 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4912 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4913 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4914 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4915 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4916 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4917 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4918 Remove.
4919 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4920 New macro.
4921 (ia64_libgcc_floating_mode_supported_p): New function.
4922 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4923 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4924 (IA64_NO_LIBGCC_TFMODE): Define.
4925 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4926 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4927 macro.
4928 (pdp11_scalar_mode_supported_p): New function.
4929 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4930 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4931
4932 2014-09-12 Richard Biener <rguenther@suse.de>
4933
4934 PR middle-end/63237
4935 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4936
4937 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
4938
4939 * tree.c (integer_each_onep): New function.
4940 * tree.h (integer_each_onep): Declare it.
4941 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4942 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4943 (X & 1) == 0 for vector and complex.
4944
4945 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4946
4947 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4948 for A57.
4949 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
4950 cost to spilling from integer to FP registers.
4951
4952 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4953
4954 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4955 move handling.
4956 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4957 are now handled correctly.
4958
4959 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4960
4961 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4962 handling of CALLER_SAVE_REGS and POINTER_REGS.
4963
4964 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4965
4966 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
4967 the number of hard registers.
4968
4969 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4971 Anna Tikhonova <anna.tikhonova@intel.com>
4972 Ilya Tocar <ilya.tocar@intel.com>
4973 Andrey Turetskiy <andrey.turetskiy@intel.com>
4974 Ilya Verbin <ilya.verbin@intel.com>
4975 Kirill Yukhin <kirill.yukhin@intel.com>
4976 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4977
4978 * config/i386/sse.md
4979 (define_mode_iterator VI48_AVX512VL): New.
4980 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4981 "avx512f_vternlog<mode>_maskz" and update mode iterator.
4982 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4983 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4984 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4985 "avx512f_vternlog<mode>_mask" and update mode iterator.
4986 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4987 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4988 iterator.
4989 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4990 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4991 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4992 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4993 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4994 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4995
4996 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4997 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4998 Anna Tikhonova <anna.tikhonova@intel.com>
4999 Ilya Tocar <ilya.tocar@intel.com>
5000 Andrey Turetskiy <andrey.turetskiy@intel.com>
5001 Ilya Verbin <ilya.verbin@intel.com>
5002 Kirill Yukhin <kirill.yukhin@intel.com>
5003 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5004
5005 * config/i386/sse.md (VI128_256): Delete.
5006 (define_mode_iterator VI124_256): New.
5007 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5008 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5009 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5010 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5011 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5012 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5013 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5014 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5015 iterator.
5016 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5017 in presence of AVX-512.
5018
5019 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5020 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5021 Anna Tikhonova <anna.tikhonova@intel.com>
5022 Ilya Tocar <ilya.tocar@intel.com>
5023 Andrey Turetskiy <andrey.turetskiy@intel.com>
5024 Ilya Verbin <ilya.verbin@intel.com>
5025 Kirill Yukhin <kirill.yukhin@intel.com>
5026 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5027
5028 * config/i386/sse.md
5029 (define_expand "<avx512>_gathersi<mode>"): Rename from
5030 "avx512f_gathersi<mode>".
5031 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5032 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5033 (define_expand "<avx512>_gatherdi<mode>"): Rename from
5034 "avx512f_gatherdi<mode>".
5035 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5036 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5037 wide versions.
5038 (define_expand "<avx512>_scattersi<mode>"): Rename from
5039 "avx512f_scattersi<mode>".
5040 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5041 (define_expand "<avx512>_scatterdi<mode>"): Rename from
5042 "avx512f_scatterdi<mode>".
5043 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5044
5045 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
5046
5047 * ira.h (ira_finish_once): Delete.
5048 * ira-int.h (target_ira_int::~target_ira_int): Declare.
5049 (target_ira_int::free_ira_costs): Likewise.
5050 (target_ira_int::free_register_move_costs): Likewise.
5051 (ira_finish_costs_once): Delete.
5052 * ira.c (free_register_move_costs): Replace with...
5053 (target_ira_int::free_register_move_costs): ...this new function.
5054 (target_ira_int::~target_ira_int): Define.
5055 (ira_init): Call free_register_move_costs as a member function rather
5056 than a global function.
5057 (ira_finish_once): Delete.
5058 * ira-costs.c (free_ira_costs): Replace with...
5059 (target_ira_int::free_ira_costs): ...this new function.
5060 (ira_init_costs): Call free_ira_costs as a member function rather
5061 than a global function.
5062 (ira_finish_costs_once): Delete.
5063 * target-globals.c (target_globals::~target_globals): Call the
5064 target_ira_int destructor.
5065 * toplev.c: Include lra.h.
5066 (finalize): Call lra_finish_once rather than ira_finish_once.
5067
5068 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
5069
5070 * common.opt (flto-odr-type-merging): New flag.
5071 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5072 (types_same_for_odr): Likewise.
5073 (odr_subtypes_equivalent_p): Likewise.
5074 (add_type_duplicate): Do not walk type variants.
5075 (register_odr_type): New function.
5076 * ipa-utils.h (register_odr_type): Declare.
5077 (odr_type_p): New function.
5078 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5079 TYPE_DECLs
5080 * doc/invoke.texi (-flto-odr-type-merging): Document.
5081 * tree.c (need_assembler_name_p): Compute ODR names when asked
5082 for it.
5083 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5084
5085 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
5086
5087 PR target/63228
5088 * config/i386/i386.c (ix86_option_override_internal): Also turn
5089 off OPTION_MASK_ABI_X32 for -m16.
5090
5091 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5092
5093 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5094 GPR instead of P.
5095
5096 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
5097
5098 PR target/58757
5099 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5100 Directly forward to __*_DENORM_MIN__.
5101
5102 2014-09-11 David Malcolm <dmalcolm@redhat.com>
5103
5104 * rtl.h (LABEL_REF_LABEL): New macro.
5105
5106 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5107 of XEXP (, 0), where we know that we have a LABEL_REF.
5108 * cfgbuild.c (make_edges): Likewise.
5109 (purge_dead_tablejump_edges): Likewise.
5110 * cfgexpand.c (convert_debug_memory_address): Likewise.
5111 * cfgrtl.c (patch_jump_insn): Likewise.
5112 * combine.c (distribute_notes): Likewise.
5113 * cse.c (hash_rtx_cb): Likewise.
5114 (exp_equiv_p): Likewise.
5115 (fold_rtx): Likewise.
5116 (check_for_label_ref): Likewise.
5117 * cselib.c (rtx_equal_for_cselib_1): Likewise.
5118 (cselib_hash_rtx): Likewise.
5119 * emit-rtl.c (mark_label_nuses): Likewise.
5120 * explow.c (convert_memory_address_addr_space): Likewise.
5121 * final.c (output_asm_label): Likewise.
5122 (output_addr_const): Likewise.
5123 * gcse.c (add_label_notes): Likewise.
5124 * genconfig.c (walk_insn_part): Likewise.
5125 * genrecog.c (validate_pattern): Likewise.
5126 * ifcvt.c (cond_exec_get_condition): Likewise.
5127 (noce_emit_store_flag): Likewise.
5128 (noce_get_alt_condition): Likewise.
5129 (noce_get_condition): Likewise.
5130 * jump.c (maybe_propagate_label_ref): Likewise.
5131 (mark_jump_label_1): Likewise.
5132 (redirect_exp_1): Likewise.
5133 (rtx_renumbered_equal_p): Likewise.
5134 * lra-constraints.c (operands_match_p): Likewise.
5135 * reload.c (operands_match_p): Likewise.
5136 (find_reloads): Likewise.
5137 * reload1.c (set_label_offsets): Likewise.
5138 * reorg.c (get_branch_condition): Likewise.
5139 * rtl.c (rtx_equal_p_cb): Likewise.
5140 (rtx_equal_p): Likewise.
5141 * rtlanal.c (reg_mentioned_p): Likewise.
5142 (rtx_referenced_p): Likewise.
5143 (get_condition): Likewise.
5144 * sched-vis.c (print_value): Likewise.
5145 * varasm.c (const_hash_1): Likewise.
5146 (compare_constant): Likewise.
5147 (const_rtx_hash_1): Likewise.
5148 (output_constant_pool_1): Likewise.
5149
5150 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5151
5152 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5153 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5154 instead of minus.
5155 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5156 cr6_test_for_lt_reverse): Ditto.
5157
5158 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
5159
5160 PR c++/61489
5161 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5162
5163 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5164
5165 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5166 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5167 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5168 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5169 Delete.
5170
5171 (aarch64_fold_builtin): Remove all reinterpret cases.
5172
5173 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5174
5175 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5176
5177 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5178 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5179 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5180 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5181 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5182 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5183 aarch64_reinterpretv2df<mode>): Delete.
5184
5185 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5186
5187 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5188 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5189 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5190 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5191 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5192 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5193 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5194 vreinterpret_u32_f64): Use cast.
5195
5196 * config/aarch64/iterators.md (VD_RE): Delete.
5197
5198 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5199
5200 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5201 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5202 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5203 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5204 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5205 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5206 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5207 Replace inline assembler with __aarch64_vset_lane_any.
5208
5209 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
5210
5211 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5212 types.
5213 (vmull_high_lane_s32): Likewise.
5214 (vmull_high_lane_u16): Likewise.
5215 (vmull_high_lane_u32): Likewise.
5216
5217 2014-09-11 Jason Merrill <jason@redhat.com>
5218
5219 PR c++/58678
5220 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5221
5222 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
5223
5224 PR target/63223
5225 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5226 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
5227 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5228
5229 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5230 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5231 Anna Tikhonova <anna.tikhonova@intel.com>
5232 Ilya Tocar <ilya.tocar@intel.com>
5233 Andrey Turetskiy <andrey.turetskiy@intel.com>
5234 Ilya Verbin <ilya.verbin@intel.com>
5235 Kirill Yukhin <kirill.yukhin@intel.com>
5236 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5237
5238 * config/i386/sse.md
5239 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5240 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5241 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5242 New.
5243 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5244 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5245 iterator.
5246 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5247 New.
5248 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5249 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5250 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5251 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5252 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5253 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5254 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5255 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5256 iterator.
5257 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5258 New.
5259 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5260 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5261 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5262
5263 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5264
5265 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5266 to access removed nodes.
5267
5268 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5269
5270 PR tree-optimization/63186
5271 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5272 (mark_nonssa_use): Likewise.
5273 (verify_non_ssa_vars): Verify all header blocks for label
5274 definitions.
5275
5276 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5277 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5278 Anna Tikhonova <anna.tikhonova@intel.com>
5279 Ilya Tocar <ilya.tocar@intel.com>
5280 Andrey Turetskiy <andrey.turetskiy@intel.com>
5281 Ilya Verbin <ilya.verbin@intel.com>
5282 Kirill Yukhin <kirill.yukhin@intel.com>
5283 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5284
5285 * config/i386/sse.md
5286 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5287 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5288 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5289 "<avx2_avx512f>_permvar<mode><mask_name>".
5290 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5291 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5292 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5293 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5294 Ditto.
5295 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5296 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5297 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5298 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5299
5300 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5301
5302 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5303 V2DF, V4SF, DF, and DI modes.
5304 (vsx_fmav2df2): Likewise.
5305 (vsx_float_fix_<mode>2): Likewise.
5306 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5307
5308 2014-09-10 Xinliang David Li <davidxl@google.com>
5309
5310 PR target/63209
5311 * config/arm/arm.md (movcond_addsi): Handle case where source
5312 and target operands are the same.
5313
5314 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5315
5316 * final.c (this_is_asm_operands): Strengthen this variable from
5317 rtx to const rtx_insn *.
5318 * output.h (this_is_asm_operands): Likewise.
5319 * rtl-error.c (location_for_asm): Strengthen param "insn" from
5320 const_rtx to const rtx_insn *.
5321 (diagnostic_for_asm): Likewise.
5322 * rtl-error.h (error_for_asm): Likewise.
5323 (warning_for_asm): Likewise.
5324
5325 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5326
5327 * genextract.c (print_header): When writing out insn_extract to
5328 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5329 * recog.h (insn_extract): Strengthen the param from rtx to
5330 rtx_insn *.
5331
5332 2014-09-10 Mike Stump <mikestump@comcast.net>
5333
5334 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5335 8.6.1.
5336
5337 2014-09-10 Martin Jambor <mjambor@suse.cz>
5338
5339 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5340 (analyze): Do not set analyze flag if expand_thunk returns false;.
5341 (create_wrapper): Likewise.
5342 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5343
5344 2014-09-10 Martin Jambor <mjambor@suse.cz>
5345
5346 PR ipa/61654
5347 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5348 new decl properly. Analyze the new thunk if it is expanded.
5349
5350 2014-09-10 Andreas Schwab <schwab@suse.de>
5351
5352 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5353 [USED_FOR_TARGET]: Define.
5354
5355 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
5356
5357 * config/mips/mips.c (mips_secondary_reload_class): Handle
5358 regno < 0 case.
5359
5360 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
5361
5362 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5363 assignment.
5364
5365 2014-09-10 Jakub Jelinek <jakub@redhat.com>
5366
5367 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5368 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5369 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5370 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5371 flag_delete_null_pointer_checks for them.
5372 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5373 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5374 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5375 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5376 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5377 stmt's iterator.
5378 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5379 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5380 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5381 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5382 * doc/invoke.texi (-fsanitize=nonnull-attribute,
5383 -fsanitize=returns-nonnull-attribute): Document.
5384
5385 * ubsan.h (struct ubsan_mismatch_data): Removed.
5386 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5387 * ubsan.c (ubsan_source_location): For unknown locations,
5388 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5389 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5390 Allow more than one location and arbitrary extra arguments passed
5391 in ... instead of through MISMATCH pointer.
5392 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5393 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5394 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5395 callers.
5396
5397 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5398 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5399 Anna Tikhonova <anna.tikhonova@intel.com>
5400 Ilya Tocar <ilya.tocar@intel.com>
5401 Andrey Turetskiy <andrey.turetskiy@intel.com>
5402 Ilya Verbin <ilya.verbin@intel.com>
5403 Kirill Yukhin <kirill.yukhin@intel.com>
5404 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5405
5406 * config/i386/sse.md
5407 (define_mode_iterator VI48F): New.
5408 (define_insn "<avx512>_compress<mode>_mask"): Rename from
5409 "avx512f_compress<mode>_mask" and update mode iterator.
5410 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5411 "avx512f_compressstore<mode>_mask" and update mode iterator.
5412 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5413 "avx512f_expand<mode>_maskz" and update mode iterator.
5414 (define_insn "<avx512>_expand<mode>_mask"): Rename from
5415 "avx512f_expand<mode>_mask" and update mode iterator.
5416
5417 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5418 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5419 Anna Tikhonova <anna.tikhonova@intel.com>
5420 Ilya Tocar <ilya.tocar@intel.com>
5421 Andrey Turetskiy <andrey.turetskiy@intel.com>
5422 Ilya Verbin <ilya.verbin@intel.com>
5423 Kirill Yukhin <kirill.yukhin@intel.com>
5424 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5425
5426 * config/i386/i386.c
5427 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5428 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5429 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5430 avx512dq_rangepv4sf_mask.
5431 * config/i386/sse.md
5432 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5433 UNSPEC_RANGE.
5434 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5435 (define_insn "reduces<mode>"): Ditto.
5436 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5437 Ditto.
5438 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5439 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5440 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5441
5442 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5443 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5444 Anna Tikhonova <anna.tikhonova@intel.com>
5445 Ilya Tocar <ilya.tocar@intel.com>
5446 Andrey Turetskiy <andrey.turetskiy@intel.com>
5447 Ilya Verbin <ilya.verbin@intel.com>
5448 Kirill Yukhin <kirill.yukhin@intel.com>
5449 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5450
5451 * config/i386/i386.c
5452 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5453 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5454 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5455 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5456 avx512vl_getmantv2df_mask.
5457 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5458 avx512f_vgetmantv4sf_round.
5459 * config/i386/sse.md
5460 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5461 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5462 mode iterator.
5463 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5464 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5465 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5466 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5467 iterator..
5468 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5469 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5470 update mode iterator.
5471 (define_expand
5472 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5473 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5474 mode iterator.
5475 (define_insn
5476 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5477 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5478 update mode iterator.
5479 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5480 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5481 iterator..
5482 (define_insn
5483 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5484 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5485 mode iterator..
5486 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5487 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5488 update mode iterator.
5489 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5490 "avx512f_getmant<mode><round_saeonly_name>".
5491
5492 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5493
5494 PR ipa/63166
5495 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5496
5497 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5498 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5499 Anna Tikhonova <anna.tikhonova@intel.com>
5500 Ilya Tocar <ilya.tocar@intel.com>
5501 Andrey Turetskiy <andrey.turetskiy@intel.com>
5502 Ilya Verbin <ilya.verbin@intel.com>
5503 Kirill Yukhin <kirill.yukhin@intel.com>
5504 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5505
5506 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5507 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5508 (define_mode_iterator FMAMODE_AVX512): New.
5509 (define_mode_iterator FMAMODE): Remove conditions.
5510 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5511 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5512 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5513 mode iterator.
5514 (define_mode_iterator FMAMODE_NOVF512): Remove.
5515 (define_insn "*fma_fmadd_<mode>"): Rename from
5516 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5517 FMAMODE mode iterator.
5518 (define_mode_iterator VF_SF_AVX512VL): New.
5519 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5520 Use VF_SF_AVX512VL mode iterator.
5521 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5522 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5523 iterator.
5524 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5525 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5526 iterator.
5527 (define_insn "*fma_fmsub_<mode>"): Rename from
5528 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5529 FMAMODE mode iterator.
5530 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5531 Use VF_SF_AVX512VL mode iterator.
5532 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5533 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5534 iterator.
5535 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5536 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5537 iterator.
5538 (define_insn "*fma_fnmadd_<mode>"): Rename from
5539 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5540 use FMAMODE mode iterator.
5541 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5542 Use VF_SF_AVX512VL mode iterator.
5543 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5544 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5545 iterator.
5546 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5547 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5548 iterator.
5549 (define_insn "*fma_fnmsub_<mode>"): Rename from
5550 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5551 FMAMODE mode iterator.
5552 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5553 Use VF_SF_AVX512VL mode iterator.
5554 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5555 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5556 iterator.
5557 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5558 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5559 iterator.
5560 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5561 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5562 use VF_AVX512VL mode iterator.
5563 (define_insn "*fma_fmaddsub_<mode>"): Rename from
5564 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5565 remove subst usage.
5566 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5567 Use VF_SF_AVX512VL mode iterator.
5568 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5569 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5570 iterator.
5571 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5572 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5573 iterator.
5574 (define_insn "*fma_fmsubadd_<mode>"): Rename from
5575 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5576 remove usage of subst.
5577 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5578 Use VF_SF_AVX512VL mode iterator.
5579 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5580 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5581 iterator.
5582 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5583 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5584 iterator.
5585
5586 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5587
5588 Revert r213751:
5589 * calls.c (precompute_arguments): Check
5590 promoted_for_signed_and_unsigned_p and set the promoted mode.
5591 (promoted_for_signed_and_unsigned_p): New function.
5592 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5593 and set the promoted mode.
5594 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5595 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5596 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5597
5598 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5599
5600 * opth-gen.awk: Generate mapping from cpp message reasons to the
5601 options that enable them.
5602 * doc/options.texi (CppReason): Document.
5603
5604 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5605
5606 * doc/invoke.texi (Wnormalized=): Update.
5607
5608 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
5609
5610 PR target/63195
5611 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5612 operands. Split off the constant operand alternative to ...
5613 (*bool<mode>3_imm): New.
5614
5615 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5616
5617 * rtl.h (single_set_2): Strengthen first param from const_rtx to
5618 const rtx_insn *, and move prototype to above...
5619 (single_set): ...this. Convert this from a macro to an inline
5620 function, enforcing the requirement that the param is a const
5621 rtx_insn *.
5622 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5623
5624 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5625 Strengthen both params from rtx to rtx_insn *.
5626 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5627 Likewise; introduce locals "producer_set", "consumer_set", using
5628 them in place of "producer" and "consumer" when dealing with SET
5629 rather than insn.
5630 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5631 when invoking single_set in region guarded by INSN_P.
5632 (avr_out_bitop): Likewise.
5633 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5634 region guarded by GET_CODE check, using methods to strengthen
5635 local "this_insn" from rtx to rtx_insn *, and for clarity.
5636 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5637 Strengthen local "insn" from rtx to rtx_insn *.
5638 (define_insn_and_split "xload<mode>_A"): Likewise.
5639 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5640 "insn".
5641 (find_load): Likewise for return type.
5642 (workaround_speculation): Likewise for both locals named
5643 "load_insn".
5644 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5645 local "cc0_user".
5646 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5647 for local "prev".
5648 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5649 param 2.
5650 * config/h8300/h8300.c (notice_update_cc): Likewise.
5651 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5652 "insn" and "dep_insn".
5653 (exact_store_load_dependency): Likewise for both params.
5654 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5655 since this now clashes with inline function. Instead, delay
5656 calling single_set until the point where its needed, and then
5657 assign the result to "compare_set" and rework the conditional that
5658 follows.
5659 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5660 local "last" from rtx to rtx_insn *.
5661 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5662 second param.
5663 (mips_store_data_bypass_p): Likewise for both params.
5664 * config/mips/mips.c (mips_load_store_insns): Likewise for second
5665 param.
5666 (mips_store_data_bypass_p): Likewise for both params.
5667 (mips_orphaned_high_part_p): Likewise for param "insn".
5668 * config/mn10300/mn10300.c (extract_bundle): Likewise.
5669 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5670 Introduce local rtx "insn2_pat".
5671 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5672 "ninsn".
5673 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5674 Introduce local rtx "set", using it in place of "insn" for the
5675 result of single_set. This appears to fix a bug, since the call
5676 to find_regno_note on a SET does nothing.
5677 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5678 params from rtx to rtx_insn *.
5679 (set_to_load_agen): Likewise.
5680 * config/s390/s390.c (s390_label_align): Likewise for local
5681 "prev_insn". Introduce new rtx locals "set" and "src", using
5682 them in place of "prev_insn" for the results of single_set
5683 and SET_SRC respectively.
5684 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5685 Introduce new rtx local "set" using in place of "jump" for the
5686 result of single_set. Use SET_SRC (set) rather than plain
5687 XEXP (set, 1).
5688 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5689 rtx to rtx_insn *.
5690 (noncall_uses_reg): Likewise.
5691 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5692 guarded by GET_CODE check, using its methods for clarity, and to
5693 enable strengthening local "this_insn" from rtx to rtx_insn *.
5694 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5695 "insn" from rtx to rtx_insn *.
5696 (define_expand "umulhisi3"): Likewise.
5697 (define_expand "smulsi3_highpart"): Likewise.
5698 (define_expand "umulsi3_highpart"): Likewise.
5699 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5700 local "after". Replace GET_CODE check with a dyn_cast,
5701 introducing new local rtx_sequence * "seq", using insn method for
5702 typesafety.
5703
5704 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5705 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
5706 place of "insn" once we're dealing with patterns rather than the
5707 input insn.
5708 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5709 (scan_trace): Likewise for local "elt", updating lookups within
5710 sequence to use insn method rather than element method.
5711 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5712 to rtx_insn *.
5713 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5714 * ifcvt.c (noce_try_abs): Likewise for local "insn".
5715 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5716 invoking single_set.
5717 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5718 "insn" from rtx to rtx_insn *.
5719 (skip_usage_debug_insns): Likewise for return type, adding a
5720 checked cast.
5721 (check_secondary_memory_needed_p): Likewise for local "insn".
5722 (inherit_reload_reg): Likewise.
5723 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5724 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5725 checked casts.
5726 (store_data_bypass_p): Likewise for both params.
5727 (if_test_bypass_p): Likewise.
5728 * recog.h (store_data_bypass_p): Likewise for both params.
5729 (if_test_bypass_p): Likewise.
5730 * reload.c (find_equiv_reg): Likewise for local "where".
5731 * reorg.c (delete_jump): Likewise for param "insn".
5732 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5733 to const rtx_insn *.
5734 * store-motion.c (replace_store_insn): Likewise for param "del".
5735 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5736 and use its methods for clarity, and to strengthen local "del"
5737 from rtx to rtx_insn *.
5738 (build_store_vectors): Use insn method of "st" when calling
5739 replace_store_insn for typesafety and clarity.
5740
5741 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5742
5743 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5744 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5745 on how to make it legal in future.
5746
5747 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5748
5749 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5750 to rtx_insn *.
5751 (restinsn): Likewise.
5752 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5753 Likewise for param.
5754 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5755 Likewise.
5756 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5757 first param.
5758 (arc_hazard): Likewise for both params.
5759 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5760 checked casts to rtx_sequence * and uses of the insn method for
5761 type-safety.
5762 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5763 (arc_adjust_insn_length): Likewise for param "insn".
5764 (struct insn_length_parameters_s): Likewise for first param of
5765 "get_variants" callback field.
5766 (arc_get_insn_variants): Likewise for first param and local
5767 "inner". Replace a check of GET_CODE with a dyn_cast to
5768 rtx_sequence *, using methods for type-safety and clarity.
5769 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5770 rtx_sequence * and uses of the insn method for type-safety when
5771 invoking arc_adjust_insn_length.
5772 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5773 for param.
5774 (arm_address_offset_is_imm): Likewise.
5775 (struct tune_params): Likewise for params 1 and 3 of the
5776 "sched_adjust_cost" callback field.
5777 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5778 params 1 and 3 ("insn" and "dep").
5779 (xscale_sched_adjust_cost): Likewise.
5780 (fa726te_sched_adjust_cost): Likewise.
5781 (cortexa7_older_only): Likewise for param "insn".
5782 (cortexa7_younger): Likewise.
5783 (arm_attr_length_move_neon): Likewise.
5784 (arm_address_offset_is_imm): Likewise.
5785 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5786 * config/avr/avr.c (avr_notice_update_cc): Likewise.
5787 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5788 (workaround_speculation): Likewise for local "last_condjump".
5789 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5790 (shadow_or_blockage_p): Likewise.
5791 (get_unit_reqs): Likewise.
5792 (get_unit_operand_masks): Likewise.
5793 (c6x_registers_update): Likewise.
5794 (returning_call_p): Likewise.
5795 (can_use_callp): Likewise.
5796 (convert_to_callp): Likewise.
5797 (find_last_same_clock): Likwise for local "t".
5798 (reorg_split_calls): Likewise for local "shadow".
5799 (hwloop_pattern_reg): Likewise for param "insn".
5800 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5801 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5802 (frv_extract_membar): Likewise.
5803 (frv_optimize_membar_local): Strengthen param "last_membar" from
5804 rtx * to rtx_insn **.
5805 (frv_optimize_membar_global): Strengthen param "membar" from rtx
5806 to rtx_insn *.
5807 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5808 to rtx_insn **.
5809 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5810 both params from rtx to rtx_insn *.
5811 (ia64_ld_address_bypass_p): Likewise.
5812 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5813 "insn".
5814 (ia64_safe_type): Likewise.
5815 (group_barrier_needed): Likewise.
5816 (safe_group_barrier_needed): Likewise.
5817 (ia64_single_set): Likewise.
5818 (is_load_p): Likewise.
5819 (record_memory_reference): Likewise.
5820 (get_mode_no_for_insn): Likewise.
5821 (important_for_bundling_p): Likewise.
5822 (unknown_for_bundling_p): Likewise.
5823 (ia64_st_address_bypass_p): Likewise for both params.
5824 (ia64_ld_address_bypass_p): Likewise.
5825 (expand_vselect): Introduce new local rtx_insn * "insn", using it
5826 in place of rtx "x" after the emit_insn call.
5827 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5828 Strengthen param from rtx to rtx_insn *.
5829 (ix86_agi_dependent): Likewise for both params.
5830 (ix86_attr_length_immediate_default): Likewise for param 1.
5831 (ix86_attr_length_address_default): Likewise for param.
5832 (ix86_attr_length_vex_default): Likewise for param 1.
5833 * config/i386/i386.c (ix86_attr_length_immediate_default):
5834 Likewise for param "insn".
5835 (ix86_attr_length_address_default): Likewise.
5836 (ix86_attr_length_vex_default): Likewise.
5837 (ix86_agi_dependent): Likewise for both params.
5838 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5839 (vselect_insn): Likewise for this variable.
5840 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5841 for param 1.
5842 (m68k_sched_attr_opy_type): Likewise.
5843 * config/m68k/m68k.c (sched_get_operand): Likewise.
5844 (sched_attr_op_type): Likewise.
5845 (m68k_sched_attr_opx_type): Likewise.
5846 (m68k_sched_attr_opy_type): Likewise.
5847 (sched_get_reg_operand): Likewise.
5848 (sched_get_mem_operand): Likewise.
5849 (m68k_sched_address_bypass_p): Likewise for both params.
5850 (sched_get_indexed_address_scale): Likewise.
5851 (m68k_sched_indexed_address_bypass_p): Likewise.
5852 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5853 (m68k_sched_indexed_address_bypass_p): Likewise.
5854 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5855 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5856 removing another.
5857 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5858 params from rtx to rtx_insn *.
5859 (mips_fmadd_bypass): Likewise.
5860 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5861 (mips_linked_madd_p): Likewise.
5862 (mips_macc_chains_last_hilo): Likewise for this variable.
5863 (mips_macc_chains_record): Likewise for param.
5864 (vr4130_last_insn): Likewise for this variable.
5865 (vr4130_swap_insns_p): Likewise for both params.
5866 (mips_ls2_variable_issue): Likewise for param.
5867 (mips_need_noat_wrapper_p): Likewise for param "insn".
5868 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5869 in place of "x" after the emit_insn.
5870 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5871 params from rtx to rtx_insn *.
5872 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5873 (pa_combine_instructions): Introduce local "par" for result of
5874 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5875 to make_insn_raw.
5876 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5877 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5878 (rl78_alloc_physical_registers_op1): Likewise.
5879 (rl78_alloc_physical_registers_op2): Likewise.
5880 (rl78_alloc_physical_registers_ro1): Likewise.
5881 (rl78_alloc_physical_registers_cmp): Likewise.
5882 (rl78_alloc_physical_registers_umul): Likewise.
5883 (rl78_alloc_address_registers_macax): Likewise.
5884 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5885 * config/s390/predicates.md (execute_operation): Likewise for
5886 local "insn".
5887 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5888 params.
5889 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5890 (addr_generation_dependency_p): Likewise for param "insn".
5891 (s390_agen_dep_p): Likewise for both params.
5892 (s390_fpload_toreg): Likewise for param "insn".
5893 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5894 * config/sh/sh.c (sh_loop_align): Likewise for param and local
5895 "next".
5896 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5897 * config/sh/sh_treg_combine.cc
5898 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5899 and local "i".
5900 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5901 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5902 "and_insn", "load", "shift".
5903 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5904 "insn".
5905 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5906 for XEXP (note, 0) of the REG_CC_SETTER note.
5907 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5908 rtx_insn *, eliminating a checked cast made redundant by this.
5909 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5910 to rtx_insn *.
5911 * genattr.c (main): When writing out the prototype to
5912 const_num_delay_slots, strengthen the param from rtx to
5913 rtx_insn *.
5914 * genattrtab.c (write_const_num_delay_slots): Likewise when
5915 writing out the implementation of const_num_delay_slots.
5916 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5917 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5918 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5919 favor of new rtx locals "src" and "set" and new local rtx_insn *
5920 "insn" and "seq".
5921 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5922 to rtx_insn *.
5923 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5924 locals "cond", "if_then_else", "set" and new rtx_insn * locals
5925 "insn" and "seq".
5926 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5927 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
5928 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
5929 the top-level scope, replacing with new more tightly-scoped rtx
5930 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5931 "new_insn", "copy_of_insn_b", and make local rtx "set" more
5932 tightly-scoped.
5933 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5934 rtx_insn *.
5935 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5936 "move_insn".
5937 (ira_setup_alts): Likewise for param "insn".
5938 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5939 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5940 and an rtx_insn *.
5941 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5942 new more-tightly scoped rtx locals "add3_insn", "insn",
5943 "add2_insn" and rtx_insn * "move_insn".
5944 * postreload-gcse.c (eliminate_partially_redundant_load): Add
5945 checked cast on result of gen_move_insn when invoking
5946 extract_insn.
5947 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5948 rtx_insn *.
5949 (verify_changes): Add a checked cast on "object" when invoking
5950 insn_invalid_p.
5951 (extract_insn_cached): Strengthen param "insn" from rtx to
5952 rtx_insn *.
5953 (extract_constrain_insn_cached): Likewise.
5954 (extract_insn): Likewise.
5955 * recog.h (insn_invalid_p): Likewise for param 1.
5956 (recog_memoized): Likewise for param.
5957 (extract_insn): Likewise.
5958 (extract_constrain_insn_cached): Likewise.
5959 (extract_insn_cached): Likewise.
5960 * reload.c (can_reload_into): Likewise for local "test_insn".
5961 * reload.h (cleanup_subreg_operands): Likewise for param.
5962 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
5963 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
5964 result of emit_insn. Remove a checked cast made redundant by this
5965 change.
5966 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
5967 rtx to rtx_insn *.
5968 * sel-sched.c (get_reg_class): Likewise.
5969
5970 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
5971 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5972
5973 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
5974 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
5975 Define.
5976 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
5977
5978 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5979
5980 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5981 const rtx_insn *, and from rtx to rtx_insn * for the other
5982 overloaded variant.
5983 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5984 INSN_LOCATION, since we know INSN_P holds.
5985 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5986 (insn_file): Likewise.
5987 (insn_scope): Likewise.
5988 (insn_location): Likewise.
5989
5990 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5991 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5992 for the result of gen_load_const_gp.
5993 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5994 param from rtx to rtx_insn *.
5995 * config/rs6000/rs6000.c (output_call): Likewise.
5996 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5997 introducing a checked cast to rtx_sequence * and use of the insn
5998 method.
5999 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6000 from rtx to rtx_insn *.
6001 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6002 (insn_line): Likewise.
6003 (insn_file): Likewise.
6004 (insn_location): Likewise.
6005 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6006 from rtx to rtx_insn *.
6007 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6008 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6009 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6010 via a checked cast.
6011 * reorg.c (relax_delay_slots): Strengthen locals named "after"
6012 from rtx to rtx_insn *; use methods of "pat" for type-safety.
6013
6014 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6015
6016 * combine.c (try_combine): Eliminate checked cast on result of
6017 gen_rtx_INSN.
6018 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6019 autogenerated one by strengthening the return type and params 2 and 3
6020 from rtx to rtx_insn *, and by naming the params.
6021 * gengenrtl.c (special_rtx): Add INSN to those that are
6022 special-cased.
6023 * rtl.h (gen_rtx_INSN): New prototype.
6024
6025 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6026
6027 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6028 than NULL_RTX.
6029 (no_equiv): Likewise.
6030 (update_equiv_regs): Likewise.
6031 (setup_reg_equiv): Likewise. Strengthen locals "elem",
6032 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6033 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
6034 clarity.
6035 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6036 from rtx to rtx_insn_list *.
6037 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6038 rtx_insn_list * and use methods for clarity and typesafety.
6039 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6040 "list".
6041 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
6042 redundant check on INSN_P (insns): this cannot hold, as "insns" is
6043 an INSN_LIST, not an insn.
6044 (reverse_equiv_p): Strengthen local "insns" from rtx to
6045 rtx_insn_list * and use methods for clarity and typesafety.
6046 (contains_reloaded_insn_p): Likewise for local "list".
6047
6048 2014-09-09 Jiong Wang <jiong.wang@arm.com>
6049
6050 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6051 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6052 (arm_builtin_vectorized_function): Likewise.
6053 * config/arm/arm_neon_builtins.def: New macro for copysignf.
6054 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6055
6056 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
6057
6058 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6059 * builtins.h (default_target_builtins): Likewise.
6060 * gcse.h (default_target_gcse): Likewise.
6061 * target-globals.h (target_globals): Add a destructor. Convert
6062 void-pointer fields back to their real type and change from
6063 GTY((atomic)) to GTY((skip)).
6064 (restore_target_globals): Remove casts accordingly.
6065 * target-globals.c (save_target_globals): Use XCNEW rather than
6066 ggc_internal_cleared_alloc to allocate non-GC structures.
6067 Use ggc_cleared_alloc to allocate the target_globals structure
6068 itself.
6069 (target_globals::~target_globals): Define.
6070
6071 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6072
6073 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6074 mnemonic instead of fldmfdd.
6075 * config/arm/arm.c (vfp_output_fstmd): Rename to...
6076 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
6077 Output vpush when address register is SP.
6078 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6079 (vfp_output_vstmd): ... This.
6080 * config/arm/vfp.md (push_multi_vfp): Update call to
6081 vfp_output_vstmd.
6082
6083 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6084
6085 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6086
6087 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6088
6089 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6090 (*sqrtdf2_vfp): Likewise.
6091 (*cmpsf_vfp): Likewise.
6092 (*cmpsf_trap_vfp): Likewise.
6093 (*cmpdf_vfp): Likewise.
6094 (*cmpdf_trap_vfp): Likewise.
6095
6096 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6097
6098 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6099 (*truncdfsf2_vfp): Likewise.
6100 (*truncsisf2_vfp): Likewise.
6101 (*truncsidf2_vfp): Likewise.
6102 (fixuns_truncsfsi2): Likewise.
6103 (fixuns_truncdfsi2): Likewise.
6104 (*floatsisf2_vfp): Likewise.
6105 (*floatsidf2_vfp): Likewise.
6106 (floatunssisf2): Likewise.
6107 (floatunssidf2): Likewise.
6108
6109 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6110
6111 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6112 (*muldf3_vfp): Likewise.
6113 (*mulsf3negsf_vfp): Likewise.
6114 (*muldf3negdf_vfp): Likewise.
6115 (*mulsf3addsf_vfp): Likewise.
6116 (*muldf3adddf_vfp): Likewise.
6117 (*mulsf3subsf_vfp): Likewise.
6118 (*muldf3subdf_vfp): Likewise.
6119 (*mulsf3negsfaddsf_vfp): Likewise.
6120 (*fmuldf3negdfadddf_vfp): Likewise.
6121 (*mulsf3negsfsubsf_vfp): Likewise.
6122 (*muldf3negdfsubdf_vfp): Likewise.
6123
6124 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6125
6126 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6127 (*absdf2_vfp): Likewise.
6128 (*negsf2_vfp): Likewise.
6129 (*negdf2_vfp): Likewise.
6130 (*addsf3_vfp): Likewise.
6131 (*adddf3_vfp): Likewise.
6132 (*subsf3_vfp): Likewise.
6133 (*subdf3_vfp): Likewise.
6134 (*divsf3_vfp): Likewise.
6135 (*divdf3_vfp): Likewise.
6136
6137 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6138
6139 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6140 multiple.
6141 (arm_print_operand): Don't convert real values to decimal
6142 representation in default case.
6143 (fp_immediate_constant): Delete.
6144 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6145 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6146 syntax.
6147 (*thumb2_movsi_vfp): Likewise.
6148 (*movdi_vfp): Likewise.
6149 (*movdi_vfp_cortexa8): Likewise.
6150 (*movhf_vfp_neon): Likewise.
6151 (*movhf_vfp): Likewise.
6152 (*movsf_vfp): Likewise.
6153 (*thumb2_movsf_vfp): Likewise.
6154 (*movdf_vfp): Likewise.
6155 (*thumb2_movdf_vfp): Likewise.
6156 (*movsfcc_vfp): Likewise.
6157 (*thumb2_movsfcc_vfp): Likewise.
6158 (*movdfcc_vfp): Likewise.
6159 (*thumb2_movdfcc_vfp): Likewise.
6160
6161 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
6162
6163 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6164 (-mtune): Likewise.
6165 (-mcpu): Likewise.
6166
6167 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6168
6169 PR target/61749
6170 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6171 Use qualifier_immediate for last operand. Rename to...
6172 (aarch64_types_ternop_lane_qualifiers): ... This.
6173 (TYPES_QUADOP): Rename to...
6174 (TYPES_TERNOP_LANE): ... This.
6175 (aarch64_simd_expand_args): Return const0_rtx when encountering user
6176 error. Change return of 0 to return of NULL_RTX.
6177 (aarch64_crc32_expand_builtin): Likewise.
6178 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6179 ICE when expanding unknown builtin.
6180 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6181 TERNOP_LANE qualifiers.
6182 (sqdmlsl_lane): Likewise.
6183 (sqdmlal_laneq): Likewise.
6184 (sqdmlsl_laneq): Likewise.
6185 (sqdmlal2_lane): Likewise.
6186 (sqdmlsl2_lane): Likewise.
6187 (sqdmlal2_laneq): Likewise.
6188 (sqdmlsl2_laneq): Likewise.
6189
6190 2014-09-09 Nick Clifton <nickc@redhat.com>
6191
6192 * doc/invoke.texi (Optimization Options): Add missing @gol to the
6193 end of a line.
6194 (S/390 and zSeries Options): Remove superfluous word from the
6195 description of the -mhotpatch option.
6196
6197 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
6198
6199 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6200 * ira.c: #include "shrink-wrap.h"
6201 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6202 * ifcvt.c: #include "shrink-wrap.h"
6203 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6204
6205 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
6206
6207 * common/config/picochip/picochip-common.c: Remove.
6208 * config.gcc: Remove support for picochip.
6209 * config/picochip/constraints.md: Remove.
6210 * config/picochip/dfa_space.md: Remove.
6211 * config/picochip/dfa_speed.md: Remove.
6212 * config/picochip/picochip-protos.h: Remove.
6213 * config/picochip/picochip.c: Remove.
6214 * config/picochip/picochip.h: Remove.
6215 * config/picochip/picochip.md: Remove.
6216 * config/picochip/picochip.opt: Remove.
6217 * config/picochip/predicates.md: Remove.
6218 * config/picochip/t-picochip: Remove.
6219 * doc/md.texi: Don't document picochi.
6220
6221 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6222
6223 * basic-block.h (control_flow_insn_p): Strengthen param from
6224 const_rtx to const rtx_insn *.
6225 * cfgbuild.c (control_flow_insn_p): Likewise.
6226
6227 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6228
6229 * gcse.c (modify_mem_list): Strengthen this variable from
6230 vec<rtx> * to vec<rtx_insn *> *.
6231 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6232 vec<rtx_insn *>.
6233 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6234 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6235 (record_last_mem_set_info): Strengthen param "insn" from rtx to
6236 rtx_insn *.
6237 (record_last_set_info): Likewise for local "last_set_insn".
6238
6239 2014-09-08 DJ Delorie <dj@redhat.com>
6240
6241 * doc/invoke.texi (MSP430 Options): Add -minrt.
6242
6243 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6244
6245 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
6246 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6247 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6248 handling SH_SPLAT.
6249 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6250 of extracted lane.
6251 (adjust_splat): New function.
6252 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6253 (dump_swap_insn_table): Add case for SH_SPLAT.
6254
6255 2014-09-08 Richard Biener <rguenther@suse.de>
6256
6257 PR ipa/63196
6258 * tree-inline.c (copy_loops): The source loop header should
6259 always be non-NULL.
6260 (tree_function_versioning): If loops need fixup after removing
6261 unreachable blocks fix them.
6262 * omp-low.c (simd_clone_adjust): Do not add incr block to
6263 loop under construction.
6264
6265 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
6266
6267 * config/aarch64/aarch64-builtins.c
6268 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6269
6270 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6271
6272 * config/i386/cygming.h (TF_SIZE): Remove.
6273 * config/i386/darwin.h (TF_SIZE): Remove.
6274 * config/i386/dragonfly.h (TF_SIZE): Remove.
6275 * config/i386/freebsd.h (TF_SIZE): Remove.
6276 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6277 * config/i386/openbsdelf.h (TF_SIZE): Remove.
6278 * config/i386/sol2.h (TF_SIZE): Remove.
6279 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6280 * config/ia64/linux.h (TF_SIZE): Remove.
6281 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6282 * doc/tm.texi: Regenerate.
6283 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6284
6285 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6286
6287 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6288 Remove.
6289 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6290 Remove.
6291 * doc/tm.texi: Regenerate.
6292 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6293 Poison.
6294 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6295 * config/cris/cris.h (__make_dp): Remove.
6296
6297 2014-09-08 Richard Biener <rguenther@suse.de>
6298
6299 PR bootstrap/63204
6300 * cfgloop.c (mark_loop_for_removal): Track former header
6301 unconditionally.
6302 * cfgloop.h (struct loop): Add former_header member unconditionally.
6303 * loop-init.c (fix_loop_structure): Enable bogus loop removal
6304 diagnostic unconditionally.
6305
6306 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6307
6308 PR target/63190
6309 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6310 constraint for operand0 and remove write only modifier from operand3.
6311
6312 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
6313
6314 PR rtl-optimization/62208
6315 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6316 rather than const0_rtx in eq/ne-xor simplifications.
6317
6318 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
6319
6320 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6321 (arc_output_mi_thunk): Likewise.
6322
6323 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6324 arguments to silence bogus warning.
6325
6326 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
6327
6328 PR middle-end/63171
6329 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6330
6331 2014-09-06 Tom de Vries <tom@codesourcery.com>
6332
6333 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6334 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6335 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6336
6337 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
6338
6339 PR target/63188
6340 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6341 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6342
6343 2014-09-05 Easwaran Raman <eraman@google.com>
6344
6345 PR rtl-optimization/62146
6346 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6347 hoisted instruction unconditional.
6348
6349 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
6350
6351 PR target/63187
6352 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6353 Do not allow any_mask_operand for operands[2].
6354 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6355
6356 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6357
6358 * config/arc/arc.c (arc_print_operand): Use insn method of
6359 final_sequence for type-safety.
6360 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6361 "insn" from rtx to rtx_insn *.
6362 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6363 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6364 Likewise for locals "branch", "label".
6365 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6366 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
6367 (same_cmp_following_p): Likewise for locals "i2", "i3".
6368 * config/sh/sh_optimize_sett_clrt.cc
6369 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6370 param "cbranch_insn".
6371 * function.c (convert_jumps_to_returns): Likewis for local "jump".
6372 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6373 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6374 const rtx_insn *.
6375 (condjump_p): Likewise.
6376 (condjump_in_parallel_p): Likewise.
6377 (pc_set): Likewise.
6378 (any_uncondjump_p): Likewise.
6379 (any_condjump_p): Likewise.
6380 (condjump_label): Likewise.
6381 (returnjump_p): Strengthen param "insn" from rtx to
6382 const rtx_insn *.
6383 (onlyjump_p): Strengthen param "insn" from const_rtx to
6384 const rtx_insn *.
6385 (jump_to_label_p): Likewise.
6386 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6387 (invert_jump): Likewise.
6388 * reorg.c (simplejump_or_return_p): Add checked cast when calling
6389 simplejump_p.
6390 (get_jump_flags): Strengthen param "insn" from rtx to
6391 const rtx_insn *.
6392 (get_branch_condition): Likewise.
6393 (condition_dominates_p): Likewise.
6394 (make_return_insns): Move declaration of local "pat" earlier, to
6395 after we've handled NONJUMP_INSN_P and non-sequences, using its
6396 methods to simplify the code and for type-safety.
6397 * rtl.h (find_constant_src): Strengthen param from const_rtx to
6398 const rtx_insn *.
6399 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6400 (condjump_p): Strengthen param from const_rtx to
6401 const rtx_insn *.
6402 (any_condjump_p): Likewise.
6403 (any_uncondjump_p): Likewise.
6404 (pc_set): Likewise.
6405 (condjump_label): Likewise.
6406 (simplejump_p): Likewise.
6407 (returnjump_p): Likewise.
6408 (onlyjump_p): Likewise.
6409 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6410 (invert_jump): Likewise.
6411 (condjump_in_parallel_p): Strengthen param from const_rtx to
6412 const rtx_insn *.
6413 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6414 to const rtx_insn *.
6415 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6416 to const rtx_insn *.
6417 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6418
6419 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6420
6421 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6422 above the conditional, and convert the check on GET_CODE to a
6423 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6424 the conditional. Simplify the conditional by using methods of
6425 "trial_seq".
6426
6427 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6428
6429 * haifa-sched.c (check_clobbered_conditions): Strengthen local
6430 "link" from rtx to rtx_insn_list *, and use its methods for
6431 clarity and type-safety.
6432 (toggle_cancelled_flags): Likewise.
6433 (restore_last_backtrack_point): Likewise.
6434 (queue_to_ready): Use insn method of "link" in one place.
6435 (schedule_block): Strengthen local "link" from rtx to
6436 rtx_insn_list *, and use its methods for clarity and type-safety.
6437
6438 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6439
6440 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6441 param "insn" from const_rtx to const rtx_insn *.
6442 (sched_get_reverse_condition_uncached): Likewise.
6443 (sched_get_condition_with_rev): Likewise.
6444 (sched_has_condition_p): Likewise.
6445 (sched_insns_conditions_mutex_p): Likewise for both params.
6446 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6447 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6448 (setup_insn_reg_uses): Move local "list" to be more tightly
6449 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
6450 its methods for clarity and type-safety.
6451 (sched_analyze_1): Strengthen local "pending" from rtx to
6452 rtx_insn_list *, and local "pending_mem" from rtx to
6453 rtx_expr_list *. Use methods of each for clarity and type-safety.
6454 (sched_analyze_2): Likewise.
6455 (sched_analyze_insn): Likewise.
6456
6457 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6458 param from const_rtx to const rtx_insn *.
6459 (sched_insns_conditions_mutex_p): Likewise for both params.
6460 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6461 param.
6462
6463 * system.h (CONST_CAST_RTX_INSN): New macro.
6464
6465 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6466
6467 * recog.c (peep2_attempt): Strengthen return type from rtx to
6468 rtx_insn *.
6469 (peep2_update_life): Likewise for params "last", "prev", removing
6470 a checked cast made redundant by this.
6471 (peephole2_optimize): Likewise for local "last".
6472
6473 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6474
6475 * basic-block.h (set_block_for_insn): Eliminate this macro in
6476 favor of...
6477 * rtl.h (set_block_for_insn): New inline function, imposing the
6478 requirement that the "insn" param is an rtx_insn *.
6479
6480 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6481
6482 * caller-save.c (setup_save_areas): Strengthen local "insn" from
6483 rtx to rtx_insn *.
6484 * final.c (get_call_reg_set_usage): Likewise for first param,
6485 eliminating a checked cast.
6486 * regs.h (get_call_reg_set_usage): Likewise for first param.
6487 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6488 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6489 cast, replacing references to "x" with "call_insn" where
6490 appropriate.
6491 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6492 rtx_insn *, adding a checked cast.
6493
6494 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6495
6496 * output.h (final_scan_insn): Strengthen first param from rtx to
6497 rtx_insn *.
6498
6499 * final.c (final_scan_insn): Likewise, renaming it back from
6500 "uncast_insn" to "insn", eliminating the checked cast.
6501
6502 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6503 "vec" with an rtx_sequence * "seq", taking a copy of
6504 "final_sequence", and using methods of "seq" for clarity, and for
6505 type-safety in the calls to final_scan_insn.
6506 * config/mips/mips.c (mips_output_conditional_branch): Use methods
6507 of "final_sequence" for clarity, and for type-safety in the call to
6508 final_scan_insn.
6509 * config/sh/sh.c (print_slot): Strengthen param from rtx to
6510 rtx_sequence * and rename from "insn" to "seq".
6511
6512 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6513
6514 * jump.c (delete_related_insns): Introduce a new local "table" by
6515 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6516 get_labels method of "table" to simplify access to the labels in
6517 the jump table.
6518
6519 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6520
6521 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6522 f_minmaxs, f_minmaxd types.
6523
6524 2014-09-05 Richard Biener <rguenther@suse.de>
6525
6526 * cfgloop.c (mark_loop_for_removal): Record former header
6527 when ENABLE_CHECKING.
6528 * cfgloop.h (strut loop): Add former_header member when
6529 ENABLE_CHECKING.
6530 * loop-init.c (fix_loop_structure): Sanity check loops
6531 marked for removal if they re-appeared.
6532
6533 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6534
6535 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6536 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6537
6538 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6539 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6540 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6541 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6542 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6543 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6544 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6545 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6546 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6547 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6548 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6549 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6550 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6551 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6552 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6553 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6554 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6555 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6556 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6557 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6558 with int{32,16,8}_t.
6559
6560 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6561
6562 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6563 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6564 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6565 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6566 Remove temporary __asm__ and reimplement.
6567
6568 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6569
6570 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6571 handling cmge, cmgt, cmeq, cmtst.
6572
6573 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6574 cmlt, cmgeu, cmgtu, cmtst): Remove.
6575
6576 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6577 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6578 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6579 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6580
6581 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6582
6583 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6584 TYPES_TST): Define.
6585 (aarch64_fold_builtin): Update pattern for cmtst.
6586
6587 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6588 Declare.
6589
6590 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6591
6592 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6593 Switch operands, separate out more cases, refactor.
6594
6595 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6596
6597 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6598 argument; rename old version to...
6599 (aarch64_const_vec_all_same_in_range_p): ...this.
6600 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6601
6602 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6603
6604 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6605
6606 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6607 Remove qualifier_const_pointer, update comment.
6608
6609 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6610
6611 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6612
6613 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6614
6615 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6616 varargs with pointer parameter.
6617 (aarch64_simd_expand_builtin): pass pointer into previous.
6618
6619 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6620
6621 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6622 alus_ext.
6623
6624 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6625
6626 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6627 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6628 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6629 Replace temporary asm with call to builtin.
6630 (vrbit_p8, vrbitq_p8): New functions.
6631
6632 2014-09-05 Richard Biener <rguenther@suse.de>
6633
6634 * cfgloop.c (mark_loop_for_removal): New function.
6635 * cfgloop.h (mark_loop_for_removal): Declare.
6636 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6637 (merge_blocks): Likewise.
6638 (duplicate_block): Likewise.
6639 * except.c (sjlj_emit_dispatch_table): Likewise.
6640 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6641 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6642 (thread_through_loop_header): Likewise.
6643
6644 2014-09-05 Richard Biener <rguenther@suse.de>
6645
6646 PR middle-end/63148
6647 * fold-const.c (try_move_mult_to_index): Remove.
6648 (fold_binary_loc): Do not call it.
6649 * tree-data-ref.c (dr_analyze_indices): Strip conversions
6650 from the base object again.
6651
6652 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6653
6654 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6655 DImode.
6656
6657 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6658
6659 PR target/55701
6660 * config/arm/arm.md (setmem): New pattern.
6661 * config/arm/arm-protos.h (struct tune_params): New fields.
6662 (arm_gen_setmem): New prototype.
6663 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6664 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6665 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6666 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6667 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6668 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6669 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6670 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6671 (arm_const_inline_cost): New function.
6672 (arm_block_set_max_insns): New function.
6673 (arm_block_set_non_vect_profit_p): New function.
6674 (arm_block_set_vect_profit_p): New function.
6675 (arm_block_set_unaligned_vect): New function.
6676 (arm_block_set_aligned_vect): New function.
6677 (arm_block_set_unaligned_non_vect): New function.
6678 (arm_block_set_aligned_non_vect): New function.
6679 (arm_block_set_vect, arm_gen_setmem): New functions.
6680
6681 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6682
6683 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6684
6685 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6686
6687 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6688
6689 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6690
6691 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6692 an rtx.
6693 * valtrack.h: Adjust.
6694
6695 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6696
6697 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6698 an rtx.
6699 (emit_jump_insn_before_noloc): Likewise.
6700 (emit_call_insn_before_noloc): Likewise.
6701 (emit_label_before): Likewise.
6702 (emit_label_after): Likewise.
6703 (emit_insn_before_setloc): Likewise.
6704 (emit_jump_insn_before_setloc): Likewise.
6705 (emit_call_insn_before_setloc): Likewise.
6706 (emit_call_insn_before): Likewise.
6707 * rtl.h: Adjust.
6708
6709 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6710
6711 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6712 rtx_insn *, eliminating a checked cast.
6713
6714 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6715
6716 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6717 const_rtx to const rtx_insn *.
6718 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6719 cast.
6720
6721 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6722
6723 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6724 fixup_args_size_notes.
6725 * expr.c (fixup_args_size_notes): Strengthen first two params from
6726 rtx to rtx_insn *, eliminating a checked cast.
6727 * rtl.h (fixup_args_size_notes): Strengthen first two params from
6728 rtx to rtx_insn *.
6729
6730 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6731
6732 * haifa-sched.c (get_ready_element): Strengthen return type from
6733 rtx to rtx_insn *.
6734 * sched-int.h (get_ready_element): Likewise.
6735
6736 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
6737
6738 PR target/63165
6739 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6740 indexed_or_indirect_operand instead of memory_operand.
6741 (floatsi<mode>2_lfiwzx_mem): Ditto.
6742
6743 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6744
6745 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6746 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6747 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6748
6749 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6750
6751 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6752 rtx.
6753 (get_last_nonnote_insn): Likewise.
6754 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6755 * resource.c (find_basic_block): Likewise.
6756 * rtl.h: Adjust.
6757 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6758 const_rtx.
6759
6760 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6761
6762 * genattr.c (main): Within the prototype of insn_latency written
6763 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6764 * genautomata.c (output_internal_maximal_insn_latency_func):
6765 Within the implementation of insn_latency written out to
6766 insn-automata.c, strengthen both params from rtx to rtx_insn *,
6767 eliminating a pair of checked casts.
6768
6769 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6770
6771 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6772 rtx_insn *.
6773
6774 * rtl.h (eh_returnjump_p): Likewise.
6775
6776 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
6777
6778 * Makefile.in (TAGS): Handle constructs in timevar.def.
6779
6780 2014-09-04 Guozhi Wei <carrot@google.com>
6781
6782 PR target/62040
6783 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6784 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6785 it into two patterns.
6786 (move_lo_quad_internal_be_<mode>): Likewise.
6787
6788 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6789
6790 * doc/options.texi: Document that Var and Init are required if CPP
6791 is given.
6792 * optc-gen.awk: Require Var and Init if CPP is given.
6793 * common.opt (Wpedantic): Use Init.
6794
6795 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6796
6797 * config/rs6000/rs6000.c (special_handling_values): Add
6798 SH_EXTRACT.
6799 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6800 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
6801 as swappable with special handling SH_EXTRACT. Remove
6802 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6803 optimization.
6804 (adjust_extract): New function.
6805 (handle_special_swappables): Add default to case statement; add
6806 case for SH_EXTRACT that calls adjust_extract.
6807 (dump_swap_insn_table): Handle SH_EXTRACT.
6808
6809 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6810
6811 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6812 selection of 0th memory doubleword, regardless of endianness.
6813
6814 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6815
6816 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6817
6818 2014-09-04 Alan Modra <amodra@gmail.com>
6819
6820 PR debug/60655
6821 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6822 can't be output.
6823
6824 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
6825
6826 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6827 * targhooks.c (default_dwarf_frame_reg_mode): New function.
6828 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6829 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6830 * doc/tm.texi: Regenerate.
6831 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6832 selection logic to default_dwarf_frame_reg_mode.
6833
6834 2014-09-03 Marek Polacek <polacek@redhat.com>
6835
6836 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6837 by -Wall.
6838
6839 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6840
6841 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6842 the automodified register.
6843
6844 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6845
6846 * output.h (get_some_local_dynamic_name): Declare.
6847 * final.c (some_local_dynamic_name): New variable.
6848 (get_some_local_dynamic_name): New function.
6849 (final_end_function): Clear some_local_dynamic_name.
6850 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6851 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6852 (print_operand): Report an error if '%&' is used inappropriately.
6853 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6854 (get_some_local_dynamic_name_1): Delete.
6855 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6856 (rs6000_get_some_local_dynamic_name): Delete.
6857 (rs6000_get_some_local_dynamic_name_1): Delete.
6858 (print_operand): Report an error if '%&' is used inappropriately.
6859 * config/s390/s390.c (machine_function): Remove some_ld_name.
6860 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6861 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6862 * config/sparc/sparc.c: Include rtl-iter.h.
6863 (machine_function): Remove some_ld_name.
6864 (sparc_print_operand): Report an error if '%&' is used inappropriately.
6865 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6866
6867 2014-09-03 Richard Henderson <rth@redhat.com>
6868
6869 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6870 (aarch64_popwb_pair_reg): Remove.
6871 (aarch64_set_frame_expr): Remove.
6872 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6873 the restore ops performed by the insns generated.
6874 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6875 insn. Perform the calls_eh_return addition later; do not attempt to
6876 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
6877 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6878 special markup at all. Load cfun->machine->frame.hard_fp_offset
6879 into a local variable.
6880 (aarch64_frame_pointer_required): Don't check calls_alloca.
6881
6882 2014-09-03 Richard Biener <rguenther@suse.de>
6883
6884 * opts.c (default_options_optimization): Adjust
6885 max-combine-insns to 2 for -Og.
6886
6887 2014-09-03 Martin Jambor <mjambor@suse.cz>
6888
6889 PR ipa/62015
6890 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6891 pass-trough jump functions correctly.
6892
6893 2014-09-03 Martin Jambor <mjambor@suse.cz>
6894
6895 PR ipa/61986
6896 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6897 created replacements in ascending order of offsets.
6898 (known_aggs_to_agg_replacement_list): Likewise.
6899
6900 2014-09-03 Martin Liska <mliska@suse.cz>
6901
6902 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6903 is set to set uninitialized value for vnresult.
6904
6905 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6906
6907 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6908 for TARGET_MUST_PASS_IN_STACK.
6909
6910 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6911
6912 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6913 for TARGET_ARG_PARTIAL_BYTES.
6914
6915 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6916
6917 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6918 instructions for varargs implementation.
6919 (nds32_expand_epilogue): Emit stack adjustment instructions for
6920 varargs implementation.
6921
6922 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6923
6924 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6925 optimization detection.
6926
6927 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6928
6929 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6930 arguments.
6931 (nds32_function_arg_advance): Deal with nameless arguments.
6932 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6933 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6934 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6935
6936 2014-09-03 Richard Biener <rguenther@suse.de>
6937
6938 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6939 (struct bb_bitmap_sets): Remove deferred member.
6940 (BB_DEFERRED): Remove.
6941 (defer_or_phi_translate_block): Remove.
6942 (compute_antic_aux): Remove deferring of blocks, assert
6943 proper iteration order.
6944 (compute_antic): Do not set BB_DEFERRED.
6945 (eliminate): Allocate el_avail of proper size initially.
6946
6947 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6948
6949 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6950 according to the value of crtl->args.pretend_args_size.
6951
6952 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6953
6954 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6955 varargs information.
6956
6957 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6958
6959 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6960 implementation for TARGET_SETUP_INCOMING_VARARGS.
6961 (nds32_strict_argument_naming): Refine comment.
6962 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
6963 Define for future implementation.
6964
6965 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
6966
6967 * config/i386/adxintrin.h (_subborrow_u32): New.
6968 (_addcarry_u32): Ditto.
6969 (_subborrow_u64): Ditto.
6970 (_addcarry_u64): Ditto.
6971 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
6972 IX86_BUILTIN_SBB64.
6973 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
6974 __builtin_ia32_sbb_u64
6975
6976 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6977
6978 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6979 GPR-specific stuff.
6980 (nds32_function_arg_advance): Likewise.
6981 (nds32_init_cumulative_args): Likewise.
6982 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6983 (NDS32_FIRST_GPR_REGNUM): Define.
6984 (NDS32_LAST_GPR_REGNUM): Define.
6985 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6986 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6987 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6988 (machine_function): Use GRP-specific stuff.
6989
6990 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6991
6992 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6993 (nds32_expand_epilogue): Likewise.
6994 (nds32_expand_prologue_v3push): Likewise.
6995 (nds32_expand_epilogue_v3pop): Likewise.
6996
6997 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6998
6999 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7000 v3push/v3pop for variadic function.
7001 * config/nds32/nds32.md (prologue, epilogue): Likewise.
7002
7003 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7004
7005 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7006 Check rtx for varargs implementation.
7007 (nds32_output_stack_pop): Likewise.
7008 * config/nds32/nds32-protos.h: Have a rtx argument for
7009 nds32_output_stack_push and nds32_output_stack_pop.
7010 * config/nds32/nds32.md: Likewise.
7011
7012 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7013
7014 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7015 to check if FUNC is an interrupt service routine.
7016 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7017
7018 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7019
7020 * config/nds32/nds32.h (machine_function): Add some fields for variadic
7021 arguments implementation.
7022
7023 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7024
7025 * config/nds32/nds32-predicates.c
7026 (nds32_valid_stack_push_pop): Rename to ...
7027 (nds32_valid_stack_push_pop_p): ... this.
7028 * config/nds32/nds32-protos.h: Likewise.
7029 * config/nds32/predicates.md: Likewise.
7030
7031 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7032
7033 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7034 (nds32_emit_stack_v3push): ... this.
7035 (nds32_gen_stack_v3pop): Rename to ...
7036 (nds32_emit_stack_v3pop): ... this and consider CFA restore
7037 information.
7038
7039 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7040
7041 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7042 (nds32_emit_stack_push_multiple): ... this.
7043 (nds32_gen_stack_pop_multiple): Rename to ...
7044 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7045 information.
7046
7047 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7048
7049 PR target/61078
7050 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7051 and add a second splitter to handle the remaining cases.
7052
7053 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7054
7055 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7056
7057 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7058
7059 * cfgexpand.c (label_rtx_for_bb): Change type to
7060 hash_map<basic_block, rtx_code_label *> *.
7061 (expand_gimple_basic_block): Adjust.
7062 (pass_expand::execute): Likewise.
7063
7064 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7065
7066 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7067 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7068 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7069 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7070 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7071 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7072 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7073 of rtx.
7074
7075 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7076
7077 * alloc-pool.c: Include coretypes.h.
7078 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7079 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7080 hash_set instead of htab.
7081 * ggc-page.c (in_gc): New variable.
7082 (ggc_free): Do nothing if a collection is taking place.
7083 (ggc_collect): Set in_gc appropriately.
7084 * ggc.h (gt_ggc_mx(const char *)): New function.
7085 (gt_pch_nx(const char *)): Likewise.
7086 (gt_ggc_mx(int)): Likewise.
7087 (gt_pch_nx(int)): Likewise.
7088 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7089 (hash_map::hash_entry::pch_nx): Likewise.
7090 (hash_map::hash_entry::pch_nx_helper): Likewise.
7091 (hash_map::hash_map): Adjust.
7092 (hash_map::create_ggc): New function.
7093 (gt_ggc_mx): Likewise.
7094 (gt_pch_nx): Likewise.
7095 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7096 (default_hashset_traits::pch_nx): Likewise.
7097 (hash_set::hash_entry::ggc_mx): Likewise.
7098 (hash_set::hash_entry::pch_nx): Likewise.
7099 (hash_set::hash_entry::pch_nx_helper): Likewise.
7100 (hash_set::hash_set): Adjust.
7101 (hash_set::create_ggc): New function.
7102 (hash_set::elements): Likewise.
7103 (gt_ggc_mx): Likewise.
7104 (gt_pch_nx): Likewise.
7105 * hash-table.h (hash_table::hash_table): Adjust.
7106 (hash_table::m_ggc): New member.
7107 (hash_table::~hash_table): Adjust.
7108 (hash_table::expand): Likewise.
7109 (hash_table::empty): Likewise.
7110 (gt_ggc_mx): New function.
7111 (hashtab_entry_note_pointers): Likewise.
7112 (gt_pch_nx): Likewise.
7113
7114 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7115
7116 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
7117 built-in definition.
7118 (XVCVUXDDP_SCALE): Likewise.
7119 (XVCVDPSXDS_SCALE): Likewise.
7120 (XVCVDPUXDS_SCALE): Likewise.
7121 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7122 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7123 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7124 VSX_BUILTIN_XVCVDPUXDS_SCALE.
7125 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7126 prototype.
7127 * config/rs6000/rs6000.c (real.h): New include.
7128 (rs6000_scale_v2df): New function.
7129 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7130 (UNSPEC_VSX_XVCVUXDDP): Likewise.
7131 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7132 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7133 (vsx_xvcvsxddp_scale): New define_expand.
7134 (vsx_xvcvsxddp): New define_insn.
7135 (vsx_xvcvuxddp_scale): New define_expand.
7136 (vsx_xvcvuxddp): New define_insn.
7137 (vsx_xvcvdpsxds_scale): New define_expand.
7138 (vsx_xvcvdpsxds): New define_insn.
7139 (vsx_xvcvdpuxds_scale): New define_expand.
7140 (vsx_xvcvdpuxds): New define_insn.
7141 * doc/extend.texi (vec_ctf): Add new prototypes.
7142 (vec_cts): Likewise.
7143 (vec_ctu): Likewise.
7144 (vec_splat): Likewise.
7145 (vec_div): Likewise.
7146 (vec_mul): Likewise.
7147
7148 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7149
7150 PR target/62275
7151 * config/arm/neon.md
7152 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7153 <v_cmp_result>): New pattern.
7154 * config/arm/iterators.md (NEON_VCVT): New int iterator.
7155 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7156 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7157 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7158 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7159 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7160
7161 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7162
7163 PR target/62275
7164 * config/arm/iterators.md (FIXUORS): New code iterator.
7165 (VCVT): New int iterator.
7166 (su_optab): New code attribute.
7167 (su): Likewise.
7168 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7169
7170 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7171
7172 * config/aarch64/predicates.md (aarch64_comparison_operation):
7173 New special predicate.
7174 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7175 aarch64_comparison_operation instead of matching an operator.
7176 Update operand numbers.
7177 (csinc3<mode>_insn): Likewise.
7178 (*csinv3<mode>_insn): Likewise.
7179 (*csneg3<mode>_insn): Likewise.
7180 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7181 * config/aarch64/aarch64.c (aarch64_get_condition_code):
7182 Return -1 instead of aborting on invalid condition codes.
7183 (aarch64_print_operand): Update aarch64_get_condition_code callsites
7184 to assert that the returned condition code is valid.
7185 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7186
7187 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
7188
7189 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7190 tree.def, and gimple.def
7191
7192 2014-09-02 Jakub Jelinek <jakub@redhat.com>
7193 Balaji V. Iyer <balaji.v.iyer@intel.com>
7194 Igor Zamyatin <igor.zamyatin@intel.com>
7195
7196 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7197 (__cilkrts_cilk_for_64): Likewise.
7198 * cilk-common.c (declare_cilk_for_builtin): New function.
7199 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7200 __cilkrts_cilk_for_64 bultins.
7201 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7202 CILK_TI_F_LOOP_64.
7203 (cilk_for_32_fndecl): New define.
7204 (cilk_for_64_fndecl): Likewise.
7205 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7206 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7207 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7208 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7209 GF_OMP_FOR_COMBINED_INTO.
7210 * gimplify.c (gimplify_scan_omp_clauses): Added
7211 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7212 (gimplify_adjust_omp_clauses): Ditto.
7213 (gimplify_omp_for): Added CILK_FOR case.
7214 (gimplify_expr): Ditto.
7215 * omp-low.c: Include cilk.h.
7216 (extract_omp_for_data): Set appropriate kind for
7217 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7218 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7219 (create_omp_child_function_name): Added second argument to handle
7220 cilk_for case.
7221 (cilk_for_check_loop_diff_type): New function.
7222 (expand_cilk_for_call): Likewise.
7223 (expand_cilk_for): Likewise.
7224 (create_omp_child_function): Set cilk_for_count; handle the cases when
7225 it is true; call create_omp_child_function_name with second argument.
7226 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7227 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7228 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7229 * tree-nested.c (convert_nonlocal_omp_clauses): Added
7230 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7231 (convert_local_omp_clauses): Ditto.
7232 * tree-pretty-print.c (dump_omp_clause): Added
7233 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7234 (dump_generic_node): Added CILK_FOR case.
7235 * tree.c (omp_clause_num_ops): New element
7236 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7237 (omp_clause_code_name): New element _Cilk_for_count_.
7238 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7239 * tree.def: Add tree code for CILK_FOR.
7240
7241 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7242
7243 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7244 (ppc403-compare): Add "exts with dot" case.
7245 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7246 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7247 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7248 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7249 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7250 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7251 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7252 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7253 cell-cmp-microcoded): Similarly.
7254 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7255 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7256 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7257 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7258 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7259 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7260 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7261 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7262 (power6-compare): Add "exts with dot" case.
7263 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7264 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7265 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7266
7267 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7268 if avoiding Cell microcode.
7269 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7270 (is_cracked_insn): Ditto.
7271 (insn_must_be_first_in_group): Ditto.
7272 * config/rs6000/rs6000.md (dot): Adjust comment.
7273 (cell_micro): Handle exts+dot.
7274 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7275 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7276 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7277 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7278 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7279 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7280 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7281
7282 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7283
7284 * config/rs6000/rs6000.md (QHSI): Delete.
7285 (EXTQI, EXTHI, EXTSI): New mode iterators.
7286 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7287 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7288 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7289 9 anonymous instructions, and 8 splitters): Delete.
7290 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7291 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7292 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7293 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7294 *zero_extendsi<mode>2_dot2): New.
7295
7296 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7297
7298 * config/rs6000/rs6000.md (any_extend): New code iterator.
7299 (u, su): New code attributes.
7300 (dmode, DMODE): New mode attributes.
7301 (<su>mul<mode>3_highpart): New.
7302 (*<su>mul<mode>3_highpart): New.
7303 (<su>mulsi3_highpart_le): New.
7304 (<su>muldi3_highpart_le): New.
7305 (<su>mulsi3_highpart_64): New.
7306 (<u>mul<mode><dmode>3): New.
7307 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7308 splitters): Delete.
7309 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7310 splitters): Delete.
7311
7312 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7313
7314 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7315 *mulsi3_internal2, and two splitters): Delete.
7316 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7317 Delete.
7318 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7319
7320 2014-09-02 Richard Biener <rguenther@suse.de>
7321
7322 PR tree-optimization/62695
7323 * tree-ssa-structalias.c (find_func_clobbers): Add missing
7324 vector truncate.
7325
7326 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
7327
7328 PR target/62312
7329 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7330
7331 2014-09-01 Andi Kleen <ak@linux.intel.com>
7332
7333 * file-find.c (add_prefix_begin): Add.
7334 (do_add_prefix): Rename from add_prefix with first argument.
7335 (add_prefix): Add new wrapper.
7336 * file-find.h (add_prefix_begin): Add.
7337 * gcc-ar.c (main): Support -B option.
7338
7339 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7340
7341 * genemit.c: Include dumpfile.h.
7342 (gen_split): Print name of splitter function to dump file.
7343
7344 2014-09-01 Richard Biener <rguenther@suse.de>
7345
7346 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7347 Use stack auto_vecs for constraint expressions.
7348 (find_func_aliases_for_call): Likewise.
7349 (find_func_aliases): Likewise.
7350 (find_func_clobbers): Likewise.
7351
7352 2014-09-01 Richard Biener <rguenther@suse.de>
7353
7354 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7355 operands vector in most cases. Remove redundant code.
7356
7357 2014-09-01 Olivier Hainque <hainque@adacore.com>
7358
7359 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7360 $WIND_BASE instead of designating a harcoded arbitrary home dir.
7361 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7362
7363 2014-09-01 Richard Biener <rguenther@suse.de>
7364
7365 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7366 copy_reference_ops_from_call, vn_nary_op_compute_hash,
7367 vn_reference_compute_hash, vn_reference_insert): Remove.
7368 (vn_reference_lookup_call): New function.
7369 * tree-ssa-sccvn.c (vn_reference_compute_hash,
7370 copy_reference_ops_from_ref, copy_reference_ops_from_call,
7371 vn_reference_insert, vn_nary_op_compute_hash): Make static.
7372 (create_reference_ops_from_call): Remove.
7373 (vn_reference_lookup_3): Properly update shared_lookup_references.
7374 (vn_reference_lookup_pieces): Assert that we updated
7375 shared_lookup_references properly.
7376 (vn_reference_lookup): Likewise.
7377 (vn_reference_lookup_call): New function.
7378 (visit_reference_op_call): Use it. Avoid re-building the
7379 reference ops.
7380 (visit_reference_op_load): Remove redundant lookup.
7381 (visit_reference_op_store): Perform special tail-merging work
7382 only when possibly doing tail-merging.
7383 (visit_use): Likewise.
7384 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7385
7386 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7387
7388 PR target/62025
7389 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7390 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7391 (find_inc): Revert 2014-08-13 change.
7392
7393 2014-09-01 Marek Polacek <polacek@redhat.com>
7394
7395 PR middle-end/61903
7396 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7397 Change the type of V to unsigned HOST_WIDE_INT.
7398
7399 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7400
7401 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7402 the size of byte markers.
7403 (do_shift_rotate): Fix confusion between host, target and marker byte
7404 size.
7405 (verify_symbolic_number_p): Likewise.
7406 (find_bswap_or_nop_1): Likewise.
7407 (find_bswap_or_nop): Likewise.
7408
7409 2014-09-01 Olivier Hainque <hainque@adacore.com>
7410
7411 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7412 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7413
7414 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7415
7416 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7417 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7418 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7419
7420 2014-09-01 Yury Gribov <y.gribov@samsung.com>
7421
7422 PR sanitizer/61897
7423 PR sanitizer/62140
7424 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7425 (build_check_stmt): Likewise.
7426 (instrument_strlen_call): Likewise.
7427 (asan_expand_check_ifn): Likewise and fix types.
7428 (maybe_cast_to_ptrmode): New function.
7429
7430 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7431
7432 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7433
7434 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7435
7436 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7437
7438 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
7439
7440 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7441 prefix to function labels when generating fast indirect calls.
7442
7443 2014-08-30 David Malcolm <dmalcolm@redhat.com>
7444
7445 PR bootstrap/62304
7446
7447 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7448 param back from rtx_insn * to rtx. Rename param from "label" to
7449 "label_or_return", reintroducing "label" as an rtx_insn * after
7450 we've ensured it's not a RETURN.
7451 (first_active_target_insn): Likewise for return type and param;
7452 add a checked cast to rtx_insn * once we've ensured "insn" is not
7453 a RETURN.
7454 (steal_delay_list_from_target): Convert param "pnew_thread" back
7455 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
7456 with JUMP_LABEL.
7457 (own_thread_p): Convert param "thread" back from an rtx_insn * to
7458 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
7459 cast once we've established we're not dealing with a RETURN,
7460 renaming subsequent uses of "thread" to "thread_insn".
7461 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7462 to JUMP_LABEL.
7463 (follow_jumps): Convert return type and param "label" from
7464 rtx_insn * back to rtx. Move initialization of "value" to after
7465 the handling for ANY_RETURN_P, adding a checked cast there to
7466 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
7467 rename to "this_label_or_return", reintroducing "this_label" as
7468 an rtx_insn * once we've handled the case where it could be an
7469 ANY_RETURN_P.
7470 (fill_slots_from_thread): Rename param "thread" to
7471 "thread_or_return", converting from an rtx_insn * back to an rtx.
7472 Reintroduce name "thread" as an rtx_insn * local with a checked
7473 cast once we've handled the case of it being an ANY_RETURN_P.
7474 Convert local "new_thread" from an rtx_insn * back to an rtx.
7475 Add a checked cast when assigning to "trial" from "new_thread".
7476 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
7477 checked cast to rtx_insn * from "new_thread" when invoking
7478 get_label_before.
7479 (fill_eager_delay_slots): Convert locals "target_label",
7480 "insn_at_target" from rtx_insn * back to rtx.
7481 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7482 (relax_delay_slots): Convert locals "trial", "target_label" from
7483 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
7484 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
7485 invoking update_block.
7486 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7487 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7488
7489 * resource.h (mark_target_live_regs): Undo erroneous conversion
7490 of second param of r214693, converting it back from rtx_insn * to
7491 rtx, since it could be a RETURN.
7492
7493 * resource.c (find_dead_or_set_registers): Similarly, convert
7494 param "jump_target" back from an rtx_insn ** to an rtx *, as we
7495 could be writing back a RETURN. Rename local rtx_insn * "next" to
7496 "next_insn", and introduce "lab_or_return" as a local rtx,
7497 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7498 (mark_target_live_regs): Undo erroneous conversion
7499 of second param of r214693, converting it back from rtx_insn * to
7500 rtx, since it could be a RETURN. Rename it from "target" to
7501 "target_maybe_return", reintroducing the name "target" as a local
7502 rtx_insn * with a checked cast, after we've handled the case of
7503 ANY_RETURN_P.
7504
7505 2014-08-29 DJ Delorie <dj@redhat.com>
7506
7507 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7508 pointer size up to a power of two.
7509 * defaults.h (DWARF2_ADDR_SIZE): Round up.
7510 (POINTER_SIZE_UNITS): New, rounded up value.
7511 * dwarf2asm.c (size_of_encoded_value): Use it.
7512 (dw2_output_indirect_constant_1): Likewise.
7513 * expmed.c (init_expmed_one_conv): We now know the sizes of
7514 partial int modes.
7515 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7516 * optabs.c (expand_float): Use precision, not size.
7517 (expand_fix): Likewise.
7518 * simplify-rtx (simplify_unary_operation_1): Likewise.
7519 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7520 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7521 (default_assemble_integer) Likewise.
7522 (dump_tm_clone_pairs): Likewise.
7523 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7524 * var-tracking.c (adjust_mems): Allow partial-int modes also.
7525 (prepare_call_arguments): Likewise.
7526 * stor-layout.c (finalize_type_size): Preserve precision.
7527 (layout_type): Use precision, not size.
7528
7529 * expr.c (convert_move): If the target has an explicit converter,
7530 use it.
7531
7532 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7533
7534 * gdbinit.in: Skip various inline functions in rtl.h when
7535 stepping.
7536
7537 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
7538
7539 PR bootstrap/62301
7540 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7541
7542 2014-08-29 Richard Biener <rguenther@suse.de>
7543
7544 PR tree-optimization/62291
7545 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7546 exactly the vector size needed and use quick_push.
7547 (phi_translate_1): Adjust comment.
7548 (valid_in_sets): Remove block argument and remove pointless
7549 checking of NAMEs.
7550 (dependent_clean): Adjust for removal of block argument.
7551 (clean): Likewise.
7552 (compute_antic_aux): Likewise.
7553 (compute_partial_antic_aux): Likewise.
7554
7555 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7556 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7557 Anna Tikhonova <anna.tikhonova@intel.com>
7558 Ilya Tocar <ilya.tocar@intel.com>
7559 Andrey Turetskiy <andrey.turetskiy@intel.com>
7560 Ilya Verbin <ilya.verbin@intel.com>
7561 Kirill Yukhin <kirill.yukhin@intel.com>
7562 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7563
7564 * config/i386/sse.md
7565 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7566 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7567 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7568 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7569
7570 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7571 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7572 Anna Tikhonova <anna.tikhonova@intel.com>
7573 Ilya Tocar <ilya.tocar@intel.com>
7574 Andrey Turetskiy <andrey.turetskiy@intel.com>
7575 Ilya Verbin <ilya.verbin@intel.com>
7576 Kirill Yukhin <kirill.yukhin@intel.com>
7577 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7578
7579 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7580 * config/i386/sse.md
7581 (define_mode_iterator VI4_128_8_256): New.
7582 (define_mode_iterator VI2_128_4_256): Ditto.
7583 (define_mode_iterator PMOV_DST_MODE): Rename into
7584 (define_mode_iterator PMOV_DST_MODE_1): this.
7585 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7586 Use PMOV_DST_MODE_1 mode iterator.
7587 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7588 Ditto.
7589 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7590 Ditto.
7591 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7592 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7593 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7594 (define_mode_iterator PMOV_DST_MODE_2): New.
7595 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7596 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7597 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7598 Ditto.
7599 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7600 (define_mode_attr pmov_dst_3): Ditto.
7601 (define_mode_attr pmov_dst_zeroed_3): Ditto.
7602 (define_mode_attr pmov_suff_3): Ditto.
7603 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7604 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7605 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7606 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7607 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7608 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7609 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7610 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7611 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7612 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7613 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7614 (define_mode_attr pmov_dst_4): Ditto.
7615 (define_mode_attr pmov_dst_zeroed_4): Ditto.
7616 (define_mode_attr pmov_suff_4): Ditto.
7617 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7618 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7619 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7620 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7621 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7622 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7623 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7624 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7625 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7626 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7627 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7628
7629 2014-08-29 Richard Biener <rguenther@suse.de>
7630
7631 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7632 NON_LVALUE_EXPR in gimple.
7633
7634 2014-08-29 Richard Biener <rguenther@suse.de>
7635
7636 PR middle-end/62292
7637 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7638 from previous refactoring.
7639 (gimple_fold_builtin_strncpy): Likewise.
7640
7641 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7642
7643 PR bootstrap/62300
7644 * function.c (assign_parm_setup_reg): Remove erroneous checked
7645 cast to rtx_insn * on result of gen_extend_insn in favor of
7646 introducing a new local rtx "pat".
7647
7648 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7649
7650 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7651 to silence warning.
7652 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7653
7654 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7655
7656 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7657 (next_insn): Likewise.
7658 * emit-rtl.c (next_insn): Likewise.
7659 (previous_insn): Likewise.
7660 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7661 "insn" and "next" from rtx to rtx_insn *.
7662 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7663 "insn", "insn1", "vliw_start", "prologue_end_note",
7664 "last_insn_in_packet".
7665
7666 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7667
7668 * shrink-wrap.h (active_insn_between): Strengthen both params from
7669 rtx to rtx_insn *.
7670 * function.c (active_insn_between): Likewise.
7671
7672 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7673
7674 * genattr.c (main): When writing out insn-attr.h, strengthen param
7675 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7676 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7677 writing out the definition of dfa_clear_single_insn_cache to the
7678 generated insn-automata.c
7679
7680 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7681
7682 * resource.h (clear_hashed_info_for_insn): Strengthen param from
7683 rtx to rtx_insn *.
7684 (incr_ticks_for_insn): Likewise.
7685 (init_resource_info): Likewise.
7686
7687 * resource.c (init_resource_info): Likewise.
7688 (clear_hashed_info_for_insn): Likewise.
7689 (incr_ticks_for_insn): Likewise.
7690
7691 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7692 rtx to rtx_insn *.
7693 (steal_delay_list_from_target): Use methods of "seq".
7694 (try_merge_delay_insns): Use methods of "merged_insns".
7695 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7696 (reorg_redirect_jump): Likewise for param "jump".
7697
7698 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7699
7700 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7701 rtx to rtx_insn *.
7702 * config/s390/s390.c (s390_split_branches): Eliminate top-level
7703 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7704 "set_insn".
7705 (s390_mainpool_finish): In three places, split out a local rtx
7706 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7707 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
7708 and split another local rtx "insn" out into rtx "pat" and
7709 rtx_insn * "insn".
7710 * config/sh/sh.c (output_branchy_insn): Rather than working
7711 directly on operands[9], introduce local rtx_code_label *
7712 variables named "lab" in two places, working on them, and then
7713 assigning them to operands[9], so that the intervening operations
7714 are known by the type system to be on insns.
7715
7716 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7717
7718 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7719 const rtx_insn *.
7720
7721 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7722 in invocation of INSN_HAS_LOCATION.
7723
7724 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7725
7726 * config/rs6000/altivec.h (vec_xl): New #define.
7727 (vec_xst): Likewise.
7728 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7729 (XXSPLTD_V2DI): Likewise.
7730 (DIV_V2DI): Likewise.
7731 (UDIV_V2DI): Likewise.
7732 (MUL_V2DI): Likewise.
7733 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7734 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7735 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7736 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7737 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7738 (UNSPEC_VSX_DIVSD): Likewise.
7739 (UNSPEC_VSX_DIVUD): Likewise.
7740 (UNSPEC_VSX_MULSD): Likewise.
7741 (vsx_mul_v2di): New insn-and-split.
7742 (vsx_div_v2di): Likewise.
7743 (vsx_udiv_v2di): Likewise.
7744 (vsx_xxspltd_<mode>): New insn.
7745
7746 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7747
7748 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7749 NEXT_INSN.
7750 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7751 (NEXT_INSN): Likewise.
7752 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7753 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7754 const rtx_insn *.
7755 (no_labels_between_p): Likewise for both params.
7756
7757 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7758 cast when using NEXT_INSN on operands[2].
7759 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7760 "insn" from rtx to rtx_insn *, adding a checked cast.
7761 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7762 rtx_insn *.
7763 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7764 for third param.
7765 (arc_text_label): Likewise for param "insn".
7766 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7767 "insn".
7768 (arc_ccfsm_record_condition): Likewise for param "jump".
7769 (arc_text_label): Likewise for local "label".
7770 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7771 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7772 a method for typesafety. Add a checked cast.
7773 * config/arc/constraints.md (Clb): Add a checked cast when getting
7774 the CODE_LABEL from a LABEL_REF.
7775 * config/arm/arm.c (require_pic_register): Strengthen locals
7776 "seq", "insn" from rtx to rtx_insn *.
7777 (create_fix_barrier): Likewise for locals "selected", "next".
7778 (thumb1_reorg): Likewise for locals "prev", "insn".
7779 (arm_expand_prologue): Likewise for local "last".
7780 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7781 operands[0].
7782 (thumb2_output_casesi): Likewise for operands[2].
7783 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7784 strengthen local "insn" from rtx to rtx_insn *.
7785 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7786 type and param "insn".
7787 (find_prev_insn_start): Likewise.
7788 (hwloop_optimize): Likewise for locals "insn", "last_insn",
7789 "prev".
7790 (gen_one_bundle): Likewise for loal "t".
7791 (find_load): Likewise for param "insn".
7792 (workaround_speculation): Likewise for locals "insn", "next",
7793 "target", "next_tgt".
7794 * config/c6x/c6x.c (assign_reservations): Likewise for both params
7795 and for locals "insn", "within", "last".
7796 (count_unit_reqs): Likewise for params "head", "tail" and local
7797 "insn".
7798 (try_rename_operands): Likewise for params "head", "tail".
7799 (reshuffle_units): Likewise for locals "head", "tail", "insn".
7800 (struct c6x_sched_context): Likewise for fields
7801 "last_scheduled_insn", "last_scheduled_iter0".
7802 (init_sched_state): Replace NULL_RTX with NULL.
7803 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7804 to rtx_insn *.
7805 (undo_split_delayed_nonbranch): Likewise for param and for local
7806 "prev".
7807 (conditionalize_after_sched): Likewise for local "insn".
7808 (bb_earliest_end_cycle): Likewise.
7809 (filter_insns_above): Likewise for locals "insn", "next".
7810 (hwloop_optimize): Remove redundant checked cast.
7811 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7812 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7813 NULL_RTX with NULL.
7814 (cris_simple_epilogue): Likewise.
7815 (cris_expand_prologue): Likewise.
7816 (cris_expand_epilogue): Likewise.
7817 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7818 local "insn" from rtx to rtx_insn *.
7819 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7820 (struct frv_packet_group): Likewise for the elements within array
7821 fields "insns", "sorted", and for field "nop".
7822 (frv_packet): Likewise for the elements within array field
7823 "insns".
7824 (frv_add_insn_to_packet): Likewise for param "insn".
7825 (frv_insert_nop_in_packet): Likewise for param "insn" and local
7826 "last".
7827 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7828 (frv_sort_insn_group_1): Likewise for local "insn".
7829 (frv_optimize_membar_local): Likewise.
7830 (frv_align_label): Likewise for locals "x", "last", "barrier",
7831 "label".
7832 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7833 local.
7834 (ia64_sched_init): Likewise for local "insn".
7835 (scheduled_good_insn): Likewise for param "last".
7836 (struct _ia64_sched_context): Likewise for field
7837 "last_scheduled_insn".
7838 (ia64_init_sched_context): Replace NULL_RTX with NULL.
7839 (struct bundle_state): Likewise for field "insn".
7840 (issue_nops_and_insn): Likewise for param "insn".
7841 (get_next_important_insn): Likewise for return type and both
7842 params.
7843 (ia64_add_bundle_selector_before): Likewise for param "insn".
7844 (bundling): Likewise for params "prev_head_insn", "tail" and
7845 locals "insn", "next_insn", "b". Eliminate top-level local rtx
7846 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7847 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7848 Strengthen final param from rtx to rtx_insn *.
7849 (iq2000_move_1word): Likewise for second param.
7850 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7851 param "cur_insn" and local "next_insn".
7852 (iq2000_move_1word): Likewise for param "insn".
7853 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7854 casts when using NEXT_INSN on operands[1].
7855 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7856 "insn" from rtx to rtx_insn *.
7857 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7858 "x", introducing local rtx_insn * "insn" for when working with the
7859 CODE_LABEL of the LABEL_REF.
7860 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7861 rtx_insn *.
7862 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7863 param.
7864 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7865 type.
7866 (conditionalize_block): Likewise for return type and param.
7867 (mcore_is_dead): Likewise for param "first" and local "insn".
7868 (emit_new_cond_insn): Likewise for return type.
7869 (conditionalize_block): Likewise for return type, param, and
7870 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7871 "newinsn".
7872 (conditionalize_optimization): Likewise for local "insn".
7873 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7874 using NEXT_INSN.
7875 * config/microblaze/microblaze.md: Add checked casts when using
7876 NEXT_INSN.
7877 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7878 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7879 and rtx_insn * "insn".
7880 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7881 checked cast when using NEXT_INSN on operands[2].
7882 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7883 local "insn" from rtx to rtx_insn *.
7884 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7885 Likewise.
7886 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7887 Add a checked cast when using NEXT_INSN on operands[1].
7888 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7889 rtx to rtx_insn *.
7890 (pa_output_cbranch): Likewise for final param.
7891 (pa_output_lbranch): Likewise for second param.
7892 (pa_output_bb): Likewise for third param.
7893 (pa_output_bvb): Likewise.
7894 (pa_output_dbra): Likewise for second param.
7895 (pa_output_movb): Likewise.
7896 (pa_output_parallel_movb): Likewise.
7897 (pa_output_parallel_addb): Likewise.
7898 (pa_output_millicode_call): Likewise for first param.
7899 (pa_output_mul_insn): Likewise for second param.
7900 (pa_output_div_insn): Likewise for third param.
7901 (pa_output_mod_insn): Likewise for second param.
7902 (pa_jump_in_call_delay): Likewise for param.
7903 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7904 (pa_output_div_insn): Likewise.
7905 (pa_output_mod_insn): Likewise.
7906 (pa_output_cbranch): Likewise.
7907 (pa_output_lbranch): Likewise.
7908 (pa_output_bb): Likewise.
7909 (pa_output_bvb): Likewise.
7910 (pa_output_dbra): Likewise.
7911 (pa_output_movb): Likewise.
7912 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7913 to simplify and for typesafety.
7914 (pa_output_call): Use method of rtx_sequence *.
7915 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7916 (pa_jump_in_call_delay): Likewise.
7917 (pa_output_parallel_movb): Likewise.
7918 (pa_output_parallel_addb): Likewise.
7919 (pa_following_call): Likewise.
7920 (pa_combine_instructions): Likewise for locals "anchor",
7921 "floater".
7922 (pa_can_combine_p): Likewise for params "anchor", "floater" and
7923 locals "start", "end".
7924 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7925 param "insn" and local "local_insn".
7926 (picochip_final_prescan_insn): Likewise for local "local_insn".
7927 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7928 local "insn".
7929 (uses_TOC): Likewise.
7930 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7931 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7932 splitting out to more tightly-scoped locals, 3 as rtx and one as
7933 rtx_insn *.
7934 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7935 to rtx_insn *.
7936 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7937 where needed.
7938 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7939 to rtx_insn *.
7940 (fixup_addr_diff_vecs): Likewise.
7941 (reg_unused_after): Likewise for param 2.
7942 (sh_can_redirect_branch): Likewise for both params.
7943 (check_use_sfunc_addr): Likewise for param 1.
7944 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7945 (find_barrier): Likewise for local "last_got".
7946 (gen_block_redirect): Likewise for return type, param "jump" and
7947 locals "prev", "scan", "next", "insn".
7948 (struct far_branch): Likewise for fields "near_label",
7949 "insert_place", "far_label".
7950 (gen_far_branch): Likewise for local "jump".
7951 (fixup_addr_diff_vecs): Likewise for param "first" and locals
7952 "insn", "prev".
7953 (barrier_align): Likewise for param and for locals "prev", "x".
7954 Introduce local rtx_sequence * "prev_seq" and use insn method for
7955 typesafety and clarity.
7956 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7957 (get_dest_uid): Likewise for local "dest".
7958 (split_branches): Likewise for locals "next", "beyond", "label",
7959 "block", "far_label". Add checked casts when assigning to
7960 bp->far_label and "far_label".
7961 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7962 (sequence_insn_p): Likewise.
7963 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
7964 more loop-scoped rtx "insn" when walking LABEL_REFS.
7965 (sh_can_redirect_branch): Strengthen both params from rtx to
7966 rtx_insn *.
7967 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
7968 new local rtx_sequence * "seq" via a dyn_cast, and use a method
7969 for clarity and typesafety.
7970 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
7971 "insn" from rtx to rtx_insn *.
7972 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
7973 when using NEXT_INSN on the CODE_LABEL in operands[2].
7974 (define_insn "casesi_worker_2"): Likewise.
7975 (define_insn "casesi_shift_media"): Likewise.
7976 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
7977 operands[3].
7978 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7979 Strengthen field "insn" from rtx to rtx_insn *.
7980 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7981 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7982 param "start_insn" and local "start_insn".
7983 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7984 field "insn".
7985 (find_set_of_reg_bb): Likewise for param "insn".
7986 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7987 (trace_reg_uses): Likewise for param "start_insn".
7988 (sh_treg_combine::cbranch_trace): Likewise for field
7989 "cbranch_insn".
7990 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7991 param "insn".
7992 (sh_treg_combine::record_set_of_reg): Likewise for param
7993 "start_insn" and local "i".
7994 (sh_treg_combine::can_remove_cstore): Likewise for local
7995 "prev_insn".
7996 (sh_treg_combine::try_optimize_cbranch): Likewise for param
7997 "insn".
7998 (sh_treg_combine::execute): Likewise for local "i".
7999 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8000 param.
8001 (sparc_check_64): Likewise for second param.
8002 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8003 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
8004 dyn_cast, using its insn method for typesafety and clarity.
8005 (empty_delay_slot): Strengthen param "insn" from rtx to
8006 rtx_insn *.
8007 (set_extends): Likewise.
8008 (sparc_check_64): Likewise.
8009 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8010 for locals "seq", "last_insn".
8011 (combine_bnp): Likewise for param "insn".
8012 (xstormy16_reorg): Likewise for local "insn".
8013 * config/v850/v850.c (substitute_ep_register): Likewise for params
8014 "first_insn", "last_insn" and local "insn".
8015 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8016 elements of "regs" array, and local "insn".
8017 * except.c (emit_note_eh_region_end): Likewise for param "insn".
8018 * final.c (final_sequence): Strengthen this global from rtx to
8019 rtx_sequence *.
8020 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8021 rtx_insn *.
8022 (final_scan_insn): Update assignment to "final_sequence" to be
8023 from "seq", the cast version of "body", for type-safety.
8024 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8025 "insns" from rtx to rtx_insn *.
8026 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8027 * genattr.c (main): When writing out generated insn-attr.h,
8028 strengthen params 1 and 3 of eligible_for_delay,
8029 eligible_for_annul_true, eligible_for_annul_false from rtx to
8030 rtx_insn *.
8031 * genattrtab.c (write_eligible_delay): Likewise when writing out
8032 generated insn-attrtab.c; also local "insn" the generated
8033 functions.
8034 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8035 to rtx_insn *.
8036 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8037 "start_label" from rtx to rtx_insn *.
8038 * ira.c (decrease_live_ranges_number): Likewise for local "p".
8039 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8040 "insns" and local "insn".
8041 (validate_equiv_mem): Likewise for param "start" and local "insn".
8042 (memref_used_between_p): Likewise for params "start", "end" and
8043 local "insn".
8044 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8045 final param.
8046 * loop-doloop.c (doloop_optimize): Within region guarded by
8047 INSN_P (doloop_pat), introduce a new local rtx_insn *
8048 "doloop_insn" via a checked cast, and use it for typesafety,
8049 eventually writing the value back into doloop_pat.
8050 * output.h (final_sequence): Strengthen this global from rtx to
8051 rtx_sequence *.
8052 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8053 reintroducing "insn" as an rtx_insn * via a checked cast.
8054 Strengthen param "attempt" and local "new_insn"from rtx to
8055 rtx_insn *.
8056 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8057 to rtx_insn *.
8058 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8059 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8060 "p" in favor of more tightly-scoped replacements, sometimes rtx
8061 and sometimes rtx_insn *, as appropriate.
8062 (delete_output_reload): Eliminate top-level rtx "i1", splitting
8063 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8064 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
8065 local "trial" from rtx to rtx_insn *.
8066 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8067 rtx to rtx_insn *. Strenghten local "pat" from rtx to
8068 rtx_sequence * and use methods for clarity and typesafety.
8069 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8070 rtx to rtx_insn *. Strenghten local "li" from rtx to
8071 rtx_insn_list * and use its methods for clarity and typesafety.
8072 (steal_delay_list_from_target): Strengthen param "insn" from rtx
8073 to rtx_insn *.
8074 (steal_delay_list_from_fallthrough): Likewise.
8075 (try_merge_delay_insns): Likewise for param "thread" and locals
8076 "trial", "next_trial", "delay_insn".
8077 (redundant_insn): Likewise for param "target" and local "trial".
8078 (own_thread_p): Likewise for param "thread" and locals
8079 "active_insn", "insn".
8080 (get_label_before): Likewise for param "insn".
8081 (fill_simple_delay_slots): Likewise for local "new_label"; use
8082 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8083 (label_before_next_insn): Strengthen return type and local "insn"
8084 from rtx to rtx_insn *.
8085 (relax_delay_slots): Likewise for locals "other", "tmp".
8086 (make_return_insns): Likewise for param "first" and locals "insn",
8087 "jump_insn", "prev". Move declaration of "pat" to its assignment
8088 and strengthen from rtx to rtx_sequence *. Use its methods for
8089 clarity and typesafety.
8090 * rtlanal.c (no_labels_between_p): Strengthen params from
8091 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
8092 rtx_insn *.
8093 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8094 from const_rtx to const rtx_insn *.
8095 (reg_set_between_p): Rename param "from_insn" to
8096 "uncast_from_insn", and reintroduce "from_insn" as a
8097 const rtx_insn * via a checked cast.
8098 (modified_between_p): Likewise for param "start" as "uncast_start".
8099 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8100 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8101 "tmp", head" from rtx to rtx_insn *.
8102 (recompute_rev_top_order): Likewise for local "insn".
8103 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8104 * store-motion.c (build_store_vectors): Likewise for local "insn".
8105 Strengthen local "st" from rtx to rtx_insn_list * and use methods
8106 for clarity and typesafety.
8107 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8108 rtx to rtx_insn *.
8109 (computation_cost): Likewise for local "seq".
8110 (get_address_cost): Likewise.
8111
8112 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8113
8114 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8115 const rtx_insn *.
8116 (label_is_jump_target_p): Likewise for second param.
8117
8118 * rtlanal.c (tablejump_p): Likewise for param "insn".
8119 (label_is_jump_target_p): Likewise for param "jump_insn".
8120
8121 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8122
8123 * rtl.h (find_first_parameter_load): Strengthen return type and
8124 both params from rtx to rtx_insn *.
8125 * rtlanal.c (find_first_parameter_load): Strengthen return type,
8126 both params and locals "before", "first_set" from rtx to
8127 rtx_insn *. Remove now-redundant cast.
8128 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8129
8130 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8131
8132 * rtl.h (find_last_value): Delete.
8133 * rtlanal.c (find_last_value): Delete.
8134
8135 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8136
8137 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8138 from rtx to rtx_insn *.
8139 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8140 rtx "note" with new local rtx_insn * "new_head" when calculating
8141 head insn of new basic block.
8142 * combine.c (combine_split_insns): Strengthen return type and local
8143 "ret" from rtx to rtx_insn *.
8144 (likely_spilled_retval_p): Likewise for locals "use" and "p".
8145 (try_combine): Eliminate local "m_split", splitting into new
8146 locals "m_split_insn" and "m_split_pat".
8147 (find_split_point): Strengthen local "seq" from rtx into
8148 rtx_insn *.
8149 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8150 locals "label", "branch".
8151 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8152 for local "insn".
8153 (define_expand "umulsi3_highpart"): Likewise for local "insn".
8154 * dse.c (note_add_store_info): Likewise for fields "first",
8155 "current".
8156 (note_add_store): Likewise for local "insn".
8157 (emit_inc_dec_insn_before): Likewise for locals "insn",
8158 "new_insn", "cur".
8159 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8160 (replace_read): Likewise for locals "insns", "this_insn".
8161 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8162 (notice_eh_throw): Likewise for param "insn".
8163 (before_next_cfi_note): Likewise for return type, param, and local
8164 "prev".
8165 (connect_traces): Likewise for local "note".
8166 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8167 (verify_rtl_sharing): Likewise.
8168 (unshare_all_rtl_in_chain): Likewise for param "insn".
8169 (get_first_nonnote_insn): Likewise for local "insn".
8170 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
8171 "seq" and use its methods to clarify things.
8172 (next_insn): Strengthen return type from rtx to rtx_insn *.
8173 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8174 local rtx_insn * using a checked cast, dropping a checked cast
8175 made redundant by this change. Use a cast to and method of
8176 rtx_sequence to clarify the code.
8177 (previous_insn): Rename param "insn" to "uncast_insn" and
8178 reintroduce "insn" as a local rtx_insn * using a checked cast,
8179 dropping a checked cast made redundant by this change. Use a cast
8180 to and method of rtx_sequence to clarify the code.
8181 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8182 reintroduce "insn" as a local rtx_insn * using a checked cast,
8183 dropping a checked cast made redundant by this change.
8184 (next_nonnote_insn_bb): Likewise.
8185 (prev_nonnote_insn): Likewise.
8186 (prev_nonnote_insn_bb): Likewise.
8187 (next_nondebug_insn): Likewise.
8188 (prev_nondebug_insn): Likewise.
8189 (next_nonnote_nondebug_insn): Likewise.
8190 (prev_nonnote_nondebug_insn): Likewise.
8191 (next_real_insn): Likewise.
8192 (prev_real_insn): Likewise.
8193 (next_active_insn): Likewise.
8194 (prev_active_insn): Likewise.
8195 (next_cc0_user): Likewise. Use rtx_sequence and a method for
8196 clarity.
8197 (prev_cc0_setter): Likewise.
8198 (try_split): Rename param "trial" to "uncast_trial" and
8199 reintroduce "insn" as a local rtx_insn * using a checked cast,
8200 dropping checked casts made redundant by this change.
8201 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8202 rtx to rtx_insn *.
8203 (remove_insn): Rename param "insn" to "uncast_insn" and
8204 reintroduce "insn" as a local rtx_insn * using a checked cast.
8205 (emit_pattern_after_setloc): Likewise for param "after", as
8206 "uncast_after".
8207 (emit_pattern_after): Likewise. Strengthen local "prev" from
8208 rtx to rtx_insn *.
8209 (emit_pattern_before_setloc): Rename param "before" to
8210 "uncast_before" and reintroduce "before" as a local rtx_insn *
8211 using a checked cast. Strengthen locals "first", "last" from
8212 rtx to rtx_insn *.
8213 (emit_pattern_before): Likewise rename/cast param "before" to
8214 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8215 * except.c (copy_reg_eh_region_note_forward): Strengthen param
8216 "first" and local "insn" from rtx to rtx_insn *.
8217 (copy_reg_eh_region_note_backward): Likewise for param "last"
8218 and local "insn".
8219 * expr.c (fixup_args_size_notes): Rename param "last" to
8220 "uncast_last" and reintroduce "last" as a local rtx_insn *
8221 using a checked cast. Strengthen local "insn" from rtx to
8222 rtx_insn *.
8223 * function.c (set_insn_locations): Strengthen param "insn" from
8224 rtx to rtx_insn *.
8225 (record_insns): Likewise for param "insns" and local "tmp".
8226 (active_insn_between): Rename param "tail" to
8227 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8228 using a checked cast.
8229 (thread_prologue_and_epilogue_insns): Split out top-level local
8230 rtx "seq" into three different rtx_insn * locals. Strengthen
8231 local "prologue_seq" from rtx to rtx_insn *.
8232 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8233 from rtx to rtx_insn *.
8234 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8235 (priority): Likewise for locals "prev_first", "twin".
8236 (setup_insn_max_reg_pressure): Likewise for param "after".
8237 (sched_setup_bb_reg_pressure_info): Likewise.
8238 (no_real_insns_p): Strengthen params from const_rtx to
8239 const rtx_insn *.
8240 (schedule_block): Strengthen local "next_tail" from rtx to
8241 rtx_insn *.
8242 * ifcvt.c (find_active_insn_before): Strengthen return type and
8243 param "insn" from rtx to rtx_insn *.
8244 (find_active_insn_after): Likewise.
8245 (cond_exec_process_insns): Likewise for param "start" and local "insn".
8246 (cond_exec_process_if_block): Likewise for locals "then_start",
8247 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8248 (noce_process_if_block): Likewise for local "jump".
8249 (merge_if_block): Likewise for two locals named "end".
8250 (cond_exec_find_if_block): Likewise for local "last_insn".
8251 * jump.c (delete_related_insns): Rename param "insn" to
8252 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8253 checked cast. Strengthen local "p" from rtx to rtx_insn *.
8254 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8255 NULL.
8256 (split_reg): Likewise.
8257 * lra.c (lra_process_new_insns): Likewise.
8258 * modulo-sched.c (permute_partial_schedule): Strengthen param
8259 "last" from rtx to rtx_insn *.
8260 * optabs.c (add_equal_note): Likewise for param "insns" and local
8261 "last_insn".
8262 (expand_binop_directly): Add checked casts to rtx_insn * within
8263 NEXT_INSN (pat) uses.
8264 (expand_unop_direct): Likewise.
8265 (maybe_emit_unop_insn): Likewise.
8266 * recog.c (peep2_attempt): Strengthen locals "last",
8267 "before_try", "x" from rtx to rtx_insn *.
8268 * reorg.c (optimize_skip): Strengthen return type and local
8269 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
8270 and locals "trial", "next_trial" from rtx to rtx_insn *.
8271 * resource.c (next_insn_no_annul): Strengthen return type and
8272 param "insn" from rtx to rtx_insn *. Use a cast to and method of
8273 rtx_sequence to clarify the code.
8274 (mark_referenced_resources): Add a checked cast to rtx_insn *
8275 within PREV_INSN (x).
8276 (find_dead_or_set_registers): Strengthen return type, param
8277 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8278 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
8279 to rtx_insn **.
8280 (mark_target_live_regs): Strengthen params "insns" and "target",
8281 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8282 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
8283 the code.
8284 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8285 from rtx to rtx_insn *.
8286 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8287 from rtx to rtx_insn *.
8288 (copy_reg_eh_region_note_backward): Likewise.
8289 (unshare_all_rtl_in_chain): Likewise for sole param.
8290 (dump_rtl_slim): Strengthen second and third params from const_rtx
8291 to const rtx_insn *.
8292 * sched-deps.c (sched_free_deps): Strengthen params "head" and
8293 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8294 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8295 "next_tail" from rtx to rtx_insn *.
8296 (begin_move_insn): Likewise for local "next".
8297 * sched-int.h (sched_free_deps): Likewise for first and second
8298 params.
8299 (no_real_insns_p): Strengthen both params from const_rtx to
8300 const rtx_insn *.
8301 (sched_setup_bb_reg_pressure_info): Strengthen second params from
8302 rtx to rtx_insn *.
8303 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8304 "next_tail".
8305 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8306 and locals "insn", "tail" from const_rtx to const rtx_insn *.
8307 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8308 rtx_insn *.
8309 (debug_rtl_slim): Strengthen params "first" and "last" from
8310 const_rtx to const rtx_insn *.
8311 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8312 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8313 (convert_to_simple_return): Likewise for param "returnjump".
8314 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8315 "prologue_seq".
8316 (convert_to_simple_return): Likewise for param "returnjump".
8317 * valtrack.c (propagate_for_debug): Likewise for params
8318 "insn", "last".
8319 * valtrack.h (propagate_for_debug): Likewise for second param.
8320
8321 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8322
8323 * output.h (insn_current_reference_address): Strengthen param
8324 from rtx to rtx_insn *.
8325 * final.c (insn_current_reference_address): Likewise.
8326
8327 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8328
8329 * basic-block.h (inside_basic_block_p): Strengthen param from
8330 const_rtx to const rtx_insn *.
8331 * cfgbuild.c (inside_basic_block_p): Likewise.
8332
8333 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8334
8335 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8336 rtx_insn *.
8337 (get_trace_info): Likewise for param "insn".
8338 (save_point_p): Likewise.
8339 (maybe_record_trace_start): Likewise for both params.
8340 (maybe_record_trace_start_abnormal): Likewise.
8341 (create_trace_edges): Likewise for sole param and for three of the
8342 locals named "lab".
8343 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8344 to rtx_insn *, and update a call to pat->element to pat->insn.
8345
8346 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8347
8348 * function.h (struct expr_status): Convert field "x_forced_labels"
8349 from rtx_expr_list * to rtx_insn_list *.
8350
8351 * cfgbuild.c (make_edges): Convert local "x" from an
8352 rtx_expr_list * to an rtx_insn_list *, replacing use of
8353 "element" method with "insn" method.
8354 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8355 * except.c (sjlj_emit_dispatch_table): Replace use of
8356 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8357 forced_labels.
8358 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8359 rtx_expr_list * to an rtx_insn_list *, replacing use of
8360 "element" method with "insn" method.
8361 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8362 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8363 rtx_insn *, adding a checked cast. Replace use of
8364 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8365 forced_labels.
8366 (expand_label): Likewise for local "label_r".
8367
8368 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8369
8370 * function.h (struct rtl_data): Convert field
8371 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8372 rtx_insn_list *.
8373 * rtl.h (remove_node_from_insn_list): New prototype.
8374
8375 * builtins.c (expand_builtin): When prepending to
8376 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8377 gen_rtx_EXPR_LIST.
8378 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8379 to rtx_insn_list *, and use its "insn" method rather than
8380 "element" method.
8381 * cfgrtl.c (delete_insn): Use new function
8382 remove_node_from_insn_list rather than
8383 remove_node_from_expr_list.
8384 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8385 to rtx_insn_list *, and use its "insn" method rather than
8386 "element" method.
8387 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8388 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8389 * rtlanal.c (remove_node_from_insn_list): New function, adapted
8390 from remove_node_from_expr_list.
8391 * stmt.c (expand_label): When prepending to
8392 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8393 gen_rtx_EXPR_LIST.
8394
8395 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8396
8397 * function.h (struct rtl_data): Strengthen fields "x_return_label"
8398 and "x_naked_return_label" from rtx to rtx_code_label *.
8399
8400 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8401
8402 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8403 (SET_NEXT_INSN): Likewise.
8404 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8405
8406 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8407 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
8408 to split out the SEQUENCE from local "bundle", strengthening the
8409 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8410 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8411 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8412 and the type of the elements of the "slot" array from rtx to
8413 rtx_insn *.
8414 (reorg_split_calls): Likewise for locals "insn" and "next", and
8415 the type of the elements of the "slot" array.
8416
8417 * config/frv/frv.c (frv_nops): Likewise for the elements of this
8418 array.
8419 (frv_function_prologue): Likewise for locals "insn", "next",
8420 "last_call".
8421 (frv_register_nop): Introduce a local "nop_insn" to be the
8422 rtx_insn * containing rtx "nop".
8423
8424 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8425 used as an insn and sometimes as a pattern, so rename it to
8426 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8427 using it where dealing with the core insn.
8428
8429 * config/picochip/picochip.c (reorder_var_tracking_notes):
8430 Strengthen locals "insn", "next", "last_insn", "queue",
8431 "next_queue", "prev" from rtx to rtx_insn *.
8432
8433 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8434 the second param is an rtx_insn ** rather than an rtx **.
8435 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8436 from rtx to rtx_sequence *, and introduce local named "sequence",
8437 using methods of rtx_sequence to clarify the code.
8438 (remove_insn): Introduce local rtx_sequence * named "sequence" and
8439 use its methods.
8440 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8441 Rename param "after" to "uncast_after", reintroducing "after" as a
8442 local rtx_insn * with a checked cast.
8443 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8444 reintroducing "after" as a local rtx_insn * with a checked cast.
8445 Strengthen local "last" from rtx to rtx_insn * and remove the
8446 now-redundant checked casts.
8447 (copy_delay_slot_insn): Strengthen return type and param from rtx
8448 to rtx_insn *.
8449
8450 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8451 "last" from rtx to rtx_insn *.
8452
8453 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8454
8455 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8456 param from rtx to rtx_insn *.
8457
8458 * emit-rtl.c (copy_delay_slot_insn): Likewise.
8459
8460 * reorg.c (skip_consecutive_labels): Strengthen return type, param
8461 and local "insn" from rtx to rtx_insn *.
8462 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8463 (unfilled_slots_next): Likewise.
8464 (function_return_label): Strengthen from rtx to rtx_code_label *.
8465 (function_simple_return_label): Likewise.
8466 (first_active_target_insn): Strengthen return type and param from
8467 rtx to rtx_insn *.
8468 (find_end_label): Strengthen return type from rtx to
8469 rtx_code_label *; strengthen locals as appropriate.
8470 (emit_delay_sequence): Strengthen return type, param "insn" and
8471 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
8472 and local "li" from rtx to rtx_insn_list *, using methods of
8473 rtx_insn_list for clarity and typesafety.
8474 (add_to_delay_list): Strengthen return type and param "insn" from
8475 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
8476 rtx_insn_list * and use methods of rtx_insn_list.
8477 (delete_from_delay_slot): Strengthen return type, param "insn",
8478 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8479 Strengthen local "seq" from rtx to rtx_sequence *, and local
8480 "delay_list" from rtx to rtx_insn_list *, using methods of
8481 rtx_sequence for clarity and type-safety.
8482 (delete_scheduled_jump): Add checked cast when invoking
8483 delete_from_delay_slot. Strengthen local "trial" from rtx to
8484 rtx_insn *.
8485 (optimize_skip): Strengthen return type and local "delay_list"
8486 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
8487 rtx_insn *.
8488 (steal_delay_list_from_target): Strengthen return type, param
8489 "delay_list" and local "new_delay_list" from rtx to
8490 rtx_insn_list *. Strengthen param "seq" from rtx to
8491 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
8492 rtx_insn **.
8493 Split out local "temp" into multiple more-tightly scoped locals:
8494 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
8495 of rtx_insn_list and rtx_sequence for clarity and typesafety.
8496 Strengthen locals named "trial" from rtx to rtx_insn *.
8497 (steal_delay_list_from_fallthrough): Strengthen return type and
8498 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
8499 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
8500 Strengthen local "trial" from rtx to rtx_insn *.
8501 (try_merge_delay_insns): Strength local "merged_insns" from rtx
8502 to rtx_insn_list * and use its methods. Strengthen local "pat"
8503 from rtx to rtx_sequence * and use its methods. Strengthen locals
8504 "dtrial" and "new_rtx" from rtx to rtx_insn *.
8505 (get_label_before): Strengthen return type and local "label" from
8506 rtx to rtx_insn *.
8507 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8508 "next_trial", "next", prev". Strengthen local "delay_list" from
8509 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
8510 rtx_insn **.
8511 (follow_jumps): Strengthen return type, param "label" and locals
8512 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8513 (fill_slots_from_thread): Strengthen return type, param
8514 "delay_list" from rtx to rtx_insn_list *. Strengthen params
8515 "insn", "thread", "opposite_thread" and locals "new_thread",
8516 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
8517 "sequence" from a checked cast to rtx_sequence so that we can call
8518 steal_delay_list_from_target and steal_delay_list_from_fallthrough
8519 with an rtx_sequence *.
8520 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8521 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8522 Strengthen local "delay_list" from rtx to rtx_insn_list *.
8523 (relax_delay_slots): Strengthen param "first" and locals "insn",
8524 "next", "trial", "delay_insn", "target_label" from rtx to
8525 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
8526 Introduce a local "trial_seq" for PATTERN (trial) of type
8527 rtx_sequence *, in both cases using methods of rtx_sequence.
8528 (dbr_schedule): Strengthen param "first" and locals "insn",
8529 "next", "epilogue_insn" from rtx to rtx_insn *.
8530
8531 2014-08-28 Richard Biener <rguenther@suse.de>
8532
8533 PR tree-optimization/62283
8534 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8535 Do not peel loops for alignment where the vector loop likely
8536 doesn't run at least VF times.
8537
8538 2014-08-28 Bin Cheng <bin.cheng@arm.com>
8539
8540 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8541 important_candidates. Consider all important candidates if
8542 IVS doesn't give any result. Remove check on ivs->upto.
8543 (try_add_cand_for): Call iv_ca_add_use only once.
8544
8545 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8546 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8547 Anna Tikhonova <anna.tikhonova@intel.com>
8548 Ilya Tocar <ilya.tocar@intel.com>
8549 Andrey Turetskiy <andrey.turetskiy@intel.com>
8550 Ilya Verbin <ilya.verbin@intel.com>
8551 Kirill Yukhin <kirill.yukhin@intel.com>
8552 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8553
8554 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8555 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8556 masking.
8557 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8558 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8559 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8560 (define_insn "*mul<mode>3"): Add EVEX version.
8561
8562 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8563 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8564 Anna Tikhonova <anna.tikhonova@intel.com>
8565 Ilya Tocar <ilya.tocar@intel.com>
8566 Andrey Turetskiy <andrey.turetskiy@intel.com>
8567 Ilya Verbin <ilya.verbin@intel.com>
8568 Kirill Yukhin <kirill.yukhin@intel.com>
8569 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8570
8571 * config/i386/sse.md
8572 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8573 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8574 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8575 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8576 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8577 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8578 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8579 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8580 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8581 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8582 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8583 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8584 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8585 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8586 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8587 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8588
8589 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8590 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8591 Anna Tikhonova <anna.tikhonova@intel.com>
8592 Ilya Tocar <ilya.tocar@intel.com>
8593 Andrey Turetskiy <andrey.turetskiy@intel.com>
8594 Ilya Verbin <ilya.verbin@intel.com>
8595 Kirill Yukhin <kirill.yukhin@intel.com>
8596 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8597
8598 * config/i386/sse.md
8599 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8600 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8601 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8602
8603 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8604 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8605 Anna Tikhonova <anna.tikhonova@intel.com>
8606 Ilya Tocar <ilya.tocar@intel.com>
8607 Andrey Turetskiy <andrey.turetskiy@intel.com>
8608 Ilya Verbin <ilya.verbin@intel.com>
8609 Kirill Yukhin <kirill.yukhin@intel.com>
8610 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8611
8612 * config/i386/sse.md
8613 (define_mode_iterator VI128_256): New.
8614 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8615
8616 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8617 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8618 Anna Tikhonova <anna.tikhonova@intel.com>
8619 Ilya Tocar <ilya.tocar@intel.com>
8620 Andrey Turetskiy <andrey.turetskiy@intel.com>
8621 Ilya Verbin <ilya.verbin@intel.com>
8622 Kirill Yukhin <kirill.yukhin@intel.com>
8623 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8624
8625 * config/i386/sse.md
8626 (define_mode_iterator VI8_256_512): New.
8627 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8628 Ditto.
8629 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8630 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8631 Ditto.
8632 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8633
8634 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8635
8636 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
8637 pointer to the cumulative reloc value and return the value for
8638 this reloc instead.
8639 (compute_reloc_for_rtx): Take a const_rtx. Call
8640 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8641 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
8642 for_each_rtx for the CONST case.
8643
8644 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8645
8646 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8647 (mark_constants_in_pattern): ...this new function to iterate over
8648 all the subrtxes.
8649 (mark_constants): Update accordingly.
8650
8651 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8652
8653 * varasm.c: Include rtl-iter.h.
8654 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8655 Remove the pointer to the cumulative hashval_t and just return
8656 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
8657 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8658 Accumulate the hashval_ts here instead of const_rtx_hash_1.
8659
8660 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8661
8662 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8663 Give real type of data parameter. Remove return value.
8664 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8665 to iterate over subrtxes.
8666
8667 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8668
8669 * var-tracking.c (use_narrower_mode_test): Turn from being a
8670 for_each_rtx callback to being a function that examines each
8671 subrtx itself.
8672 (adjust_mems): Update accordingly.
8673
8674 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8675
8676 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8677 callback to being a function that examines each subrtx itself.
8678 Remove handling of null rtxes.
8679 (add_uses): Update accordingly.
8680
8681 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8682
8683 * var-tracking.c: Include rtl-iter.h.
8684 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8685 to being a function that examines each subrtx itself.
8686 (use_type): Update accordingly.
8687
8688 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8689
8690 * store-motion.c: Include rtl-iter.h.
8691 (extract_mentioned_regs_1): Delete.
8692 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8693 for_each_rtx to iterate over subrtxes.
8694
8695 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8696
8697 * sel-sched.c: Include rtl-iter.h
8698 (count_occurrences_1): Delete.
8699 (count_occurrences_equiv): Turn rtxes into const_rtxes.
8700 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8701
8702 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8703
8704 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8705 * rtlanal.c (tls_referenced_p_1): Delete.
8706 (tls_referenced_p): Take a const_rtx rather than an rtx.
8707 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8708
8709 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8710
8711 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8712 (for_each_inc_dec): Take an rtx rather than an rtx *.
8713 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8714 (cselib_record_sets): Likewise.
8715 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8716 (check_for_inc_dec): Likewise.
8717 * rtlanal.c (for_each_inc_dec_ops): Delete.
8718 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8719 rather than a pointer to the memory address. Replace
8720 for_each_inc_dec_ops argument with separate function and data
8721 arguments. Abort on non-autoinc addresses.
8722 (for_each_inc_dec_find_mem): Delete.
8723 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
8724 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8725
8726 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8727
8728 * rtl.h (find_all_hard_regs): Declare.
8729 * rtlanal.c (find_all_hard_regs): New function.
8730 (record_hard_reg_uses_1): Delete.
8731 (record_hard_reg_uses): Use find_all_hard_regs.
8732
8733 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8734
8735 * rtl.h (replace_label_data): Delete.
8736 (replace_label): Take the old label, new label and update-nuses flag
8737 as direct arguments. Return void.
8738 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8739 * rtlanal.c (replace_label): Update interface as above. Handle
8740 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
8741 iterator. Use FOR_EACH_SUBRTX_PTR.
8742
8743 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8744
8745 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8746 with const_rtx parameters.
8747 * varasm.c (get_pool_constant): Likewise.
8748 * rtlanal.c (rtx_referenced_p_1): Delete.
8749 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8750 Assert that the rtx we're looking for is nonnull. Allow searches
8751 for constant pool SYMBOL_REFs.
8752
8753 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8754
8755 * reload1.c: Include rtl-iter.h.
8756 (note_reg_elim_costly): Turn from being a for_each_rtx callback
8757 to being a function that examines each subrtx itself.
8758 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8759
8760 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8761
8762 * regcprop.c (cprop_find_used_regs_1): Delete.
8763 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8764
8765 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8766
8767 * regcprop.c: Include rtl-iter.h.
8768 (kill_value): Take a const_rtx.
8769 (kill_autoinc_value): Turn from being a for_each_rtx callback
8770 to being a function that examines each subrtx itself.
8771 (copyprop_hardreg_forward_1): Update accordingly.
8772
8773 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8774
8775 * reg-stack.c: Include rtl-iter.h.
8776 (subst_stack_regs_in_debug_insn): Delete.
8777 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8778 instead of for_each_rtx.
8779
8780 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8781
8782 * lower-subreg.c (find_decomposable_subregs): Turn from being
8783 a for_each_rtx callback to being a function that examines each
8784 subrtx itself. Remove handling of null rtxes.
8785 (decompose_multiword_subregs): Update accordingly.
8786
8787 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8788
8789 * lower-subreg.c (adjust_decomposed_uses): Delete.
8790 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8791 Remove handling of null rtxes.
8792
8793 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8794
8795 * lower-subreg.c: Include rtl-iter.h.
8796 (resolve_subreg_use): Turn from being a for_each_rtx callback
8797 to being a function that examines each subrtx itself. Remove
8798 handling of null rtxes.
8799 (resolve_reg_notes, resolve_simple_move): Update accordingly.
8800 (decompose_multiword_subregs): Likewise.
8801
8802 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8803
8804 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8805 to being a function that examines each subrtx itself.
8806 (simplify_using_condition, simplify_using_initial_values): Update
8807 accordingly.
8808
8809 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8810
8811 * loop-iv.c: Include rtl-iter.h.
8812 (find_single_def_src): New function.
8813 (replace_single_def_regs): Turn from being a for_each_rtx callback
8814 to being a function that examines each subrtx itself.
8815 (replace_in_expr, simplify_using_initial_values): Update accordingly.
8816
8817 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8818
8819 * jump.c (eh_returnjump_p_1): Delete.
8820 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8821 Remove handling of null rtxes.
8822
8823 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8824
8825 * jump.c: Include rtl-iter.h.
8826 (returnjump_p_1): Delete.
8827 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8828 Remove handling of null rtxes.
8829
8830 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8831
8832 * ira.c: Include rtl-iter.h.
8833 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8834 to being a function that examines each subrtx itself. Remove
8835 handling of null rtxes.
8836 (update_equiv_regs): Update call accordingly.
8837
8838 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8839
8840 * fwprop.c: Include rtl-iter.h.
8841 (varying_mem_p): Turn from being a for_each_rtx callback to being
8842 a function that examines each subrtx itself.
8843 (propagate_rtx): Update accordingly.
8844
8845 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8846
8847 * function.c: Include rtl-iter.h
8848 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8849 callback to being a function that examines each subrtx itself.
8850 Return the changed flag.
8851 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8852 (instantiate_virtual_regs): Update calls accordingly.
8853
8854 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8855
8856 * final.c: Include rtl-iter.h.
8857 (mark_symbol_ref_as_used): Delete.
8858 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8859 for_each_rtx.
8860
8861 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8862
8863 * emit-rtl.c: Include rtl-iter.h.
8864 (find_auto_inc): Turn from being a for_each_rtx callback to being
8865 a function that examines each subrtx itself. Assume the first operand
8866 to an RTX_AUTOINC is the automodified register.
8867 (try_split): Update call accordingly.
8868
8869 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8870
8871 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8872 Return a bool, inverting the result so that 0/false means "not ok".
8873 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8874 subrtxes of a CONST.
8875 (mem_loc_descriptor, add_const_value_attribute)
8876 (resolve_addr_in_expr): Update calls accordingly.
8877
8878 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8879
8880 * dwarf2out.c: Include rtl-iter.h.
8881 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8882 Remove unused data parameter. Return a bool, inverting the result
8883 so that 0/false means "not ok".
8884 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
8885 instead of for_each_rtx.
8886
8887 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8888
8889 * dse.c: Include rtl-iter.h.
8890 (check_mem_read_rtx): Change void * parameter to real type.
8891 Remove return value.
8892 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
8893 for_each_rtx. Don't handle null rtxes.
8894
8895 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8896
8897 * df-problems.c: Include rtl-iter.h.
8898 (find_memory): Turn from being a for_each_rtx callback to being
8899 a function that examines each subrtx itself. Continue to look for
8900 volatile references even after a nonvolatile one has been found.
8901 (can_move_insns_across): Update calls accordingly.
8902
8903 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8904
8905 * ddg.c (walk_mems_2, walk_mems_1): Delete.
8906 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8907 to iterate over subrtxes. Return a bool rather than an int.
8908
8909 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8910
8911 * ddg.c: Include rtl-iter.h.
8912 (mark_mem_use_1): Rename to...
8913 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
8914 instead of for_each_rtx.
8915 (mem_read_insn_p): Update accordingly.
8916
8917 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8918
8919 * cse.c (change_cc_mode_args): Delete.
8920 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8921 a function that examines each subrtx itself. Take the fields of
8922 change_cc_mode_args as argument and return void.
8923 (cse_change_cc_mode_insn): Update calls accordingly.
8924
8925 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8926
8927 * cse.c (is_dead_reg): Change argument to const_rtx.
8928 (dead_debug_insn_data): Delete.
8929 (is_dead_debug_insn): Expand commentary. Turn from being a
8930 for_each_rtx callback to being a function that examines
8931 each subrtx itself. Take the fields of dead_debug_insn_data
8932 as argument.
8933 (delete_trivially_dead_insns): Update call accordingly.
8934
8935 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8936
8937 * cse.c (check_for_label_ref): Move earlier in file. Turn from
8938 being a for_each_rtx callback to being a function that examines
8939 each subrtx itself.
8940 (cse_extended_basic_block): Update call accordingly.
8941
8942 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8943
8944 * cse.c (check_dependence_data): Delete.
8945 (check_dependence): Change from being a for_each_rtx callback to being
8946 a function that examines all subrtxes itself. Don't handle null rtxes.
8947 (invalidate): Update call accordingly.
8948
8949 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8950
8951 * cse.c: Include rtl-iter.h.
8952 (approx_reg_cost_1): Delete.
8953 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8954 Don't handle null rtxes.
8955
8956 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8957
8958 * cfgcleanup.c: Include rtl-iter.h.
8959 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8960 to being a function that examines each subrtx itself.
8961 (thread_jump): Update accordingly.
8962
8963 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8964
8965 * combine-stack-adj.c: Include rtl-iter.h.
8966 (record_stack_refs_data): Delete.
8967 (record_stack_refs): Turn from being a for_each_rtx callback
8968 to being a function that examines each subrtx itself.
8969 Take a pointer to the reflist. Invert sense of return value
8970 so that true means success and false means failure. Don't
8971 handle null rtxes.
8972 (combine_stack_adjustments_for_block): Update accordingly.
8973
8974 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8975
8976 * combine.c (record_truncated_value): Turn from being a for_each_rtx
8977 callback to a function that takes an rtx and returns a bool
8978 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8979 for_each_rtx.
8980
8981 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8982
8983 * combine.c: Include rtl-iter.h.
8984 (unmentioned_reg_p_1): Delete.
8985 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8986 Don't handle null rtxes.
8987
8988 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8989
8990 * calls.c: Include rtl-iter.h.
8991 (internal_arg_pointer_based_exp_1): Delete.
8992 (internal_arg_pointer_based_exp): Take a const_rtx.
8993 Use FOR_EACH_SUBRTX to iterate over subrtxes.
8994
8995 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8996
8997 * caller-save.c: Include rtl-iter.h.
8998 (add_used_regs_1): Delete.
8999 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9000 to iterate over subrtxes. Assert that any remaining pseudos
9001 have been spilled.
9002
9003 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9004
9005 * bt-load.c: Include rtl-iter.h.
9006 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9007 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
9008 to iterate over subrtxes.
9009 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9010 find_btr_use rather than btr_referenced_p.
9011
9012 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9013
9014 * alias.c: Include rtl-iter.h.
9015 (refs_newer_value_cb): Delete.
9016 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9017
9018 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9019
9020 * rtl-iter.h: New file.
9021 * rtlanal.c: Include it.
9022 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9023 (generic_subrtx_iterator <T>::add_single_to_queue)
9024 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9025 (generic_subrtx_iterator <T>::free_array): New functions.
9026 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9027 (generic_subrtx_iterator <const_rtx_accessor>)
9028 (generic_subrtx_iterator <rtx_var_accessor>
9029 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9030 (setup_reg_subrtx_bounds): New function.
9031 (init_rtlanal): Call it.
9032
9033 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
9034
9035 PR target/62261
9036 * config/sh/sh.md (ashlsi3): Handle negative shift count for
9037 TARGET_SHMEDIA.
9038 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9039
9040 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
9041
9042 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9043
9044 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9045
9046 * rtl.h (JUMP_LABEL_AS_INSN): New.
9047
9048 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9049
9050 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9051 rtx_expr_list **.
9052 (alloc_EXPR_LIST): Strengthen return type from rtx to
9053 rtx_expr_list *.
9054 (remove_free_EXPR_LIST_node): Likewise for param.
9055 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9056 from rtx to rtx_expr_list *.
9057 * sched-int.h (struct deps_desc): Strengthen fields
9058 "pending_read_mems" and "pending_write_mems" from rtx to
9059 rtx_expr_list *.
9060
9061 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9062 rtx to rtx_expr_list *.
9063 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9064 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9065 rtx_expr_list **.
9066 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
9067 from rtx to rtx_expr_list *.
9068 * loop-iv.c (simplify_using_initial_values): Strengthen local
9069 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9070 "pnote_next" from rtx * to rtx_expr_list **.
9071 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
9072 param "exprp" from rtx * to rtx_expr_list **.
9073 (add_insn_mem_dependence): Strengthen local "mem_list" from
9074 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
9075 to rtx_expr_list *.
9076 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9077 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
9078 param "old_mems_p" from rtx * to rtx_expr_list **.
9079 * var-tracking.c (struct adjust_mem_data): Strengthen field
9080 "side_effects" from rtx to rtx_expr_list *.
9081 (adjust_insn): Replace NULL_RTX with NULL when assigning to
9082 rtx_expr_list *.
9083 (prepare_call_arguments): Likewise.
9084
9085 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9086
9087 * function.h (struct rtl_data): Strengthen field
9088 "x_stack_slot_list" from rtx to rtx_expr_list *.
9089
9090 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9091 when assigning to stack_slot_list.
9092
9093 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9094
9095 * function.h (struct rtl_data): Strengthen field
9096 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9097 * rtl.h (remove_node_from_expr_list): Strengthen second param from
9098 rtx * to rtx_expr_list **.
9099
9100 * cfgbuild.c (make_edges): In loop over
9101 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9102 rtx_expr_list *, and use methods of the latter class to clarify
9103 the code.
9104 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9105 rtx_expr_list *, and use methods of the latter class to clarify
9106 the code.
9107 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9108 * reload1.c (set_initial_label_offsets): Likewise for local "x".
9109 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9110 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
9111 to rtx_expr_list *. Use methods of the latter class to clarify
9112 the code.
9113
9114 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9115
9116 * function.h (struct expr_status): Strengthen field
9117 "x_forced_labels" from rtx to rtx_expr_list *.
9118
9119 * cfgbuild.c (make_edges): Split local "x" into two locals,
9120 strengthening one from rtx to rtx_expr_list *, and using methods
9121 of said class.
9122 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9123 loop over forced_labels, introduce strengthen it from rtx to
9124 rtx_expr_list *, using methods to clarify the code.
9125 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9126 to rtx_expr_list *, using methods of said class to clarify the
9127 code.
9128 * reload1.c (set_initial_label_offsets): Split local "x" into two
9129 per-loop variables, strengthening the first from rtx to
9130 rtx_expr_list * and using methods.
9131
9132 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9133
9134 * coretypes.h (class rtx_expr_list): Add forward declaration.
9135 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9136 * gengenrtl.c (special_rtx): Add EXPR_LIST.
9137 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9138 invariant: GET_CODE (X) == EXPR_LIST.
9139 (is_a_helper <rtx_expr_list *>::test): New.
9140 (rtx_expr_list::next): New.
9141 (rtx_expr_list::element): New.
9142 (gen_rtx_EXPR_LIST): New.
9143
9144 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9145
9146 * varasm.c (mark_constants): Convert a GET_CODE check into a
9147 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9148 Use methods of rtx_sequence to clarify the code.
9149
9150 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9151
9152 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9153 local "seq" via a checked cast, and use methods of rtx_sequence
9154 to simplify the code.
9155
9156 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9157
9158 * resource.c (mark_referenced_resources): Strengthen local
9159 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9160 using methods of rtx_sequence to clarify the code.
9161 (find_dead_or_set_registers): Within the switch statement, convert
9162 a GET_CODE check to a dyn_cast, introducing local "seq". Within
9163 the JUMP_P handling, introduce another local "seq", adding a
9164 checked cast to rtx_sequence *. In both cases, use methods of
9165 rtx_sequence to clarify the code.
9166 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9167 via a checked cast, and use methods of rtx_sequence to simplify
9168 the code.
9169
9170 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9171
9172 * reorg.c (redundant_insn): In two places in the function, replace
9173 a check of GET_CODE with a dyn_cast, introducing local "seq", and
9174 usings methods of rtx_sequence to clarify the code.
9175
9176 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9177
9178 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9179 local "seq" with a checked cast, and use methods of rtx_sequence
9180 to clarify the code.
9181
9182 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9183
9184 * function.c (contains): Introduce local "seq" for PATTERN (insn),
9185 with a checked cast, in the region for where we know it's a
9186 SEQUENCE. Use methods of rtx_sequence.
9187
9188 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9189
9190 * final.c (get_attr_length_1): Replace GET_CODE check with a
9191 dyn_cast, introducing local "seq" and the use of methods of
9192 rtx_sequence.
9193 (shorten_branches): Likewise, introducing local "body_seq".
9194 Strengthen local "inner_insn" from rtx to rtx_insn *.
9195 (reemit_insn_block_notes): Replace GET_CODE check with a
9196 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9197 Use methods of rtx_sequence.
9198 (final_scan_insn): Likewise, introducing local "seq" for when
9199 "body" is known to be a SEQUENCE, using its methods.
9200
9201 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9202
9203 * except.c (can_throw_external): Strengthen local "seq" from rtx
9204 to rtx_sequence *. Use methods of rtx_sequence.
9205 (insn_nothrow_p): Likewise.
9206
9207 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9208
9209 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9210 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9211 Use methods of rtx_sequence.
9212 (scan_trace): Likewise for local "pat".
9213
9214 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9215
9216 * coretypes.h (class rtx_sequence): Add forward declaration.
9217 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9218 invariant: GET_CODE (X) == SEQUENCE.
9219 (is_a_helper <rtx_sequence *>::test): New.
9220 (is_a_helper <const rtx_sequence *>::test): New.
9221 (rtx_sequence::len): New.
9222 (rtx_sequence::element): New.
9223 (rtx_sequence::insn): New.
9224
9225 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9226
9227 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9228 rtx_insn_list **.
9229 (alloc_INSN_LIST): Strengthen return type from rtx to
9230 rtx_insn_list *.
9231 (copy_INSN_LIST): Likewise for return type and param.
9232 (concat_INSN_LIST): Likewise for both params and return type.
9233 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9234 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
9235 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9236 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
9237
9238 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9239 "implicit_sets", "control_uses", "clobbers" from rtx to
9240 rtx_insn_list *.
9241 (struct deps_desc): Likewise for fields "pending_read_insns",
9242 "pending_write_insns", "pending_jump_insns",
9243 "last_pending_memory_flush", "last_function_call",
9244 "last_function_call_may_noreturn", "sched_before_next_call",
9245 "sched_before_next_jump".
9246 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9247 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9248
9249 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9250 from rtx to rtx_insn_list *.
9251 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9252 rtx_insn_list *.
9253
9254 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9255 to rtx_insn_list **.
9256 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9257 rtx_insn_list *.
9258 (queue_insn): Likewise for local "link".
9259 (struct haifa_saved_data): Strengthen field "insn_queue" from
9260 rtx * to rtx_insn_list **.
9261 (save_backtrack_point): Update allocation of save->insn_queue to
9262 reflect the strengthening of elements from rtx to rtx_insn_list *.
9263 (queue_to_ready): Strengthen local "link" from rtx to
9264 rtx_insn_list *; use methods "next" and "insn" when traversing the
9265 list.
9266 (early_queue_to_ready): Likewise for locals "link", "next_link",
9267 "prev_link".
9268 (schedule_block): Update allocation of insn_queue to reflect the
9269 strengthening of elements from rtx to rtx_insn_list *. Strengthen
9270 local "link" from rtx to rtx_insn_list *, and use methods when
9271 working it.
9272 (add_to_speculative_block): Strengthen locals "twins" and
9273 "next_node" from rtx to rtx_insn_list *, and use methods when
9274 working with them. Strengthen local "twin" from rtx to
9275 rtx_insn *, eliminating a checked cast.
9276 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9277 from rtx to rtx_insn_list *, and use methods when working with
9278 them.
9279
9280 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9281 from rtx to rtx_insn_list *, adding a checked cast.
9282 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9283 rtx_insn_list **.
9284 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9285 "newlink" from rtx to rtx_insn_list *. Strengthen local
9286 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
9287 from rtx to rtx_insn *.
9288 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9289 from rtx to rtx_insn_list *. Use methods of the latter class.
9290 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9291 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9292 (remove_free_INSN_LIST_node): Strengthen return type and local
9293 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
9294 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
9295 rtx_insn_list *, using "insn" method.
9296
9297 * sched-deps.c (add_dependence_list): Strengthen param "list"
9298 from rtx to rtx_insn_list *, and use methods when working with it.
9299 (add_dependence_list_and_free): Strengthen param "listp" from
9300 rtx * to rtx_insn_list **.
9301 (remove_from_dependence_list): Strenghten param "listp" from rtx *
9302 to rtx_insn_list **, and use methods when working with *listp.
9303 (remove_from_both_dependence_lists): Strengthen param "listp" from
9304 rtx * to rtx_insn_list **
9305 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9306 to rtx_insn_list **. Eliminate local "link", in favor of two new
9307 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9308 respectively.
9309 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9310 by introducing local "cond_deps".
9311 (remove_from_deps): Strengthen param "insn" from rtx to
9312 rtx_insn *.
9313
9314 * sched-rgn.c (concat_insn_mem_list): Strengthen param
9315 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9316 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9317 Use methods of rtx_insn_list.
9318
9319 * store-motion.c (struct st_expr): Strengthen fields
9320 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9321 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9322 rtx_insn_list *.
9323 (find_moveable_store): Split out "tmp" into multiple more-tightly
9324 scoped locals. Use methods of rtx_insn_list *.
9325 (compute_store_table): Strengthen local "tmp" from rtx to
9326 rtx_insn *. Use methods of rtx_insn_list *.
9327
9328 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9329
9330 * coretypes.h (class rtx_insn_list): Add forward declaration.
9331 * rtl.h (class rtx_insn_list): New subclass of rtx_def
9332 (is_a_helper <rtx_insn_list *>::test): New.
9333 (rtx_insn_list::next): New.
9334 (rtx_insn_list::insn): New.
9335 (gen_rtx_INSN_LIST): Add prototype.
9336 * emit-rtl.c (gen_rtx_INSN_LIST): New.
9337 * gengenrtl.c (special_rtx): Add INSN_LIST.
9338
9339 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9340
9341 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9342 "prev" from rtx to rtx_insn *.
9343
9344 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9345
9346 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9347 functions. Require merely an rtx for now, not an rtx_insn *.
9348 (BLOCK_FOR_INSN): Likewise.
9349 (INSN_LOCATION): Likewise.
9350 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9351
9352 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9353
9354 * rtl.h (PATTERN): Convert this macro into a pair of inline
9355 functions, for now, requiring const_rtx and rtx.
9356
9357 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9358
9359 * target.def (unwind_emit): Strengthen param "insn" from rtx to
9360 rtx_insn *.
9361 (final_postscan_insn): Likewise.
9362 (adjust_cost): Likewise.
9363 (adjust_priority): Likewise.
9364 (variable_issue): Likewise.
9365 (macro_fusion_pair_p): Likewise.
9366 (dfa_post_cycle_insn): Likewise.
9367 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9368 (first_cycle_multipass_issue): Likewise.
9369 (dfa_new_cycle): Likewise.
9370 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9371 (speculate_insn): Likewise for param "insn".
9372 (gen_spec_check): Likewise for params "insn" and "label".
9373 (get_insn_spec_ds): Likewise for param "insn".
9374 (get_insn_checked_ds): Likewise.
9375 (dispatch_do): Likewise.
9376 (dispatch): Likewise.
9377 (cannot_copy_insn_p): Likewise.
9378 (invalid_within_doloop): Likewise.
9379 (legitimate_combined_insn): Likewise.
9380 (needed): Likewise.
9381 (after): Likewise.
9382
9383 * doc/tm.texi: Automatically updated to reflect changes to
9384 target.def.
9385
9386 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9387 working with insn.
9388 (schedule_block): Likewise.
9389 (sched_init): Likewise.
9390 (sched_speculate_insn): Strengthen param "insn" from rtx to
9391 rtx_insn *.
9392 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9393 working with insn.
9394 * hooks.c (hook_bool_rtx_true): Rename to...
9395 hook_bool_rtx_insn_true): ...this, and strengthen first param from
9396 rtx to rtx_insn *.
9397 (hook_constcharptr_const_rtx_null): Rename to...
9398 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9399 first param from const_rtx to const rtx_insn *.
9400 (hook_bool_rtx_int_false): Rename to...
9401 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9402 param from rtx to rtx_insn *.
9403 (hook_void_rtx_int): Rename to...
9404 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9405 rtx to rtx_insn *.
9406
9407 * hooks.h (hook_bool_rtx_true): Rename to...
9408 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9409 rtx to rtx_insn *.
9410 (hook_bool_rtx_int_false): Rename to...
9411 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9412 param from rtx to rtx_insn *.
9413 (hook_void_rtx_int): Rename to...
9414 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9415 rtx to rtx_insn *.
9416 (hook_constcharptr_const_rtx_null): Rename to...
9417 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9418 first param from const_rtx to const rtx_insn *.
9419
9420 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9421 and local "prev" from rtx to rtx_insn *.
9422
9423 * sched-int.h (sched_speculate_insn): Strengthen first param from
9424 rtx to rtx_insn *.
9425
9426 * sel-sched.c (create_speculation_check): Likewise for local "label".
9427 * targhooks.c (default_invalid_within_doloop): Strengthen param
9428 "insn" from const_rtx to const rtx_insn *.
9429 * targhooks.h (default_invalid_within_doloop): Strengthen param
9430 from const_rtx to const rtx_insn *.
9431
9432 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9433 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9434
9435 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9436 "insn".
9437 (arc_invalid_within_doloop): Likewise, with const.
9438
9439 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9440 (arm_cannot_copy_insn_p): Likewise for param "insn".
9441 (arm_unwind_emit): Likewise.
9442
9443 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9444 "dep_insn".
9445
9446 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9447 (c6x_variable_issue): Likewise. Removed now-redundant checked
9448 cast.
9449 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9450
9451 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9452 Likewise for param "insn".
9453 (epiphany_mode_after): Likewise.
9454 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9455 params "insn", "dep_insn".
9456 (epiphany_mode_needed): Likewise for param "insn".
9457 (epiphany_mode_after): Likewise.
9458
9459 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9460 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9461 (ix86_avx_u128_mode_needed): Likewise.
9462 (ix86_i387_mode_needed): Likewise.
9463 (ix86_mode_needed): Likewise.
9464 (ix86_avx_u128_mode_after): Likewise.
9465 (ix86_mode_after): Likewise.
9466 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9467 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9468 (ix86_adjust_priority): Likewise for param "insn".
9469 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9470 (do_dispatch): Likewise.
9471 (has_dispatch): Likewise.
9472 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9473
9474 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9475 reflect renaming of default hook implementation from
9476 hook_constcharptr_const_rtx_null to
9477 hook_constcharptr_const_rtx_insn_null.
9478 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9479 rtx to rtx_insn *.
9480 (ia64_variable_issue): Likewise for param "insn".
9481 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9482 (ia64_dfa_new_cycle): Likewise.
9483 (ia64_get_insn_spec_ds): Likewise.
9484 (ia64_get_insn_checked_ds): Likewise.
9485 (ia64_speculate_insn): Likewise.
9486 (ia64_gen_spec_check): Likewise for params "insn", "label".
9487 (ia64_asm_unwind_emit): Likewise for param "insn".
9488
9489 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9490
9491 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9492 "insn", "def_insn".
9493 (m68k_sched_variable_issue): Likewise for param "insn".
9494
9495 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9496 "def_insn".
9497
9498 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9499 Likewise for params "insn", "dep".
9500
9501 * config/mips/mips.c (mips_adjust_cost): Likewise.
9502 (mips_variable_issue): Likewise for param "insn".
9503 (mips_final_postscan_insn): Likewise.
9504
9505 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9506 for params "insn", "dep".
9507
9508 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9509 "dep_insn".
9510 (pa_adjust_priority): Likewise for param "insn".
9511
9512 * config/picochip/picochip.c (picochip_sched_adjust_cost):
9513 Likewise for params "insn", "dep_insn".
9514
9515 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9516 param "insn".
9517 (rs6000_variable_issue): Likewise.
9518 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9519 (rs6000_debug_adjust_cost): Likewise.
9520 (rs6000_adjust_priority): Likewise for param "insn".
9521 (rs6000_use_sched_lookahead_guard): Likewise.
9522 (get_next_active_insn): Likewise for return type and both params.
9523 (redefine_groups): Likewise for params "prev_head_insn", "tail"
9524 and locals "insn", "next_insn".
9525 (pad_groups): Likewise.
9526
9527 * config/s390/s390.c (s390_adjust_priority): Likewise for param
9528 "insn".
9529 (s390_cannot_copy_insn_p): Likewise.
9530 (s390_sched_variable_issue): Likewise for third param, eliminating
9531 checked cast.
9532 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9533 default hook implementation from hook_constcharptr_const_rtx_null
9534 to hook_constcharptr_const_rtx_insn_null.
9535
9536 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9537 from rtx to rtx_insn *.
9538 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9539 (sh_variable_issue): Likewise for param "insn".
9540 (sh_dfa_new_cycle): Likewise.
9541 (sh_mode_needed): Likewise.
9542 (sh_mode_after): Likewise.
9543
9544 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9545 params "insn", "dep_insn".
9546 (hypersparc_adjust_cost): Likewise.
9547 (sparc_adjust_cost): Likewise.
9548
9549 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9550 param, eliminated checked cast.
9551 (spu_sched_adjust_cost): Likewise for first and third params.
9552
9553 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9554 params "insn" and "dep_insn" from rtx to rtx_insn *.
9555
9556 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9557
9558 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9559
9560 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9561 (set_is_load_p): ...this, updating to work on a SET pattern rather
9562 than an insn.
9563 (is_store_insn): Rename to...
9564 (set_is_store_p): ...this, updating to work on a SET pattern
9565 rather than an insn.
9566 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9567 top of function to where it is needed. Rewrite the bogus
9568 condition that checks for "insn" and "dep" being PARALLEL to
9569 instead use single_set, introducing locals "insn_set" and
9570 "dep_set". Given that we only ever returned "cost" for a non-pair
9571 of SETs, bail out early if we don't have a pair of SET.
9572 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9573 use the new locals "insn_set" and "dep_set", and update calls to
9574 is_load_insn and is_store_insn to be calls to set_is_load_p and
9575 set_is_store_p.
9576
9577 2014-08-27 Guozhi Wei <carrot@google.com>
9578
9579 PR target/62262
9580 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9581 amount before using it.
9582
9583 2014-08-27 Richard Biener <rguenther@suse.de>
9584
9585 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9586 get_maxval_strlen inside a more useful API.
9587 (gimple_fold_builtin_with_strlen): Remove and fold into ...
9588 (gimple_fold_builtin): ... caller.
9589 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9590 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9591 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9592 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9593 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9594 gimple_fold_builtin_sprintf): Adjust to compute maxval
9595 themselves.
9596
9597 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
9598
9599 PR other/62248
9600 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9601
9602 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9603 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9604 Anna Tikhonova <anna.tikhonova@intel.com>
9605 Ilya Tocar <ilya.tocar@intel.com>
9606 Andrey Turetskiy <andrey.turetskiy@intel.com>
9607 Ilya Verbin <ilya.verbin@intel.com>
9608 Kirill Yukhin <kirill.yukhin@intel.com>
9609 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9610
9611 * config/i386/sse.md
9612 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9613 Use `concat_tg_mode' attribute to determine asm register size.
9614
9615 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9616 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9617 Anna Tikhonova <anna.tikhonova@intel.com>
9618 Ilya Tocar <ilya.tocar@intel.com>
9619 Andrey Turetskiy <andrey.turetskiy@intel.com>
9620 Ilya Verbin <ilya.verbin@intel.com>
9621 Kirill Yukhin <kirill.yukhin@intel.com>
9622 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9623
9624 * config/i386/sse.md
9625 (define_mode_iterator VI48_AVX512VL): New.
9626 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9627 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9628 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9629 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9630 with VI1): Change mode iterator.
9631 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9632 with VI_ULOADSTORE_BW_AVX512VL): New.
9633 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9634 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9635 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9636 with VI1): Change mode iterator.
9637 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9638 with VI_ULOADSTORE_BW_AVX512VL): New.
9639 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9640 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9641 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9642 with VI1): Change mode iterator.
9643 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9644 with VI_ULOADSTORE_BW_AVX512VL): New.
9645 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9646 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9647 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9648 (define_insn "<avx512>_storedqu<mode>_mask" with
9649 VI48_AVX512VL): New.
9650 (define_insn "<avx512>_storedqu<mode>_mask" with
9651 VI12_AVX512VL): Ditto.
9652
9653 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9654 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9655 Anna Tikhonova <anna.tikhonova@intel.com>
9656 Ilya Tocar <ilya.tocar@intel.com>
9657 Andrey Turetskiy <andrey.turetskiy@intel.com>
9658 Ilya Verbin <ilya.verbin@intel.com>
9659 Kirill Yukhin <kirill.yukhin@intel.com>
9660 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9661
9662 * config/i386/sse.md
9663 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9664 (define_mode_iterator VI48_AVX512BW): New.
9665 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9666 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9667 with VI48_AVX2_48_AVX512F): New.
9668 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9669 with VI2_AVX512VL): Ditto.
9670
9671 2014-08-27 Richard Biener <rguenther@suse.de>
9672
9673 PR middle-end/62239
9674 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9675 (fold_builtin_3): Do not fold strcat_chk here.
9676 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9677 from builtins.c.
9678 (gimple_fold_builtin): Fold strcat_chk here.
9679
9680 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
9681
9682 * dwarf2out.h (dwarf2out_decl): Remove prototype.
9683 * dwarf2out.c (dwarf2out_decl): Make static.
9684
9685 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
9686
9687 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9688
9689 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9690
9691 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9692 from rtx to rtx_insn *.
9693 (cselib_lookup_from_insn): Likewise for final param.
9694 (cselib_subst_to_values_from_insn): Likewise.
9695 (cselib_add_permanent_equiv): Likewise.
9696
9697 * cselib.c (cselib_current_insn): Likewise for this variable.
9698 (cselib_subst_to_values_from_insn): Likewise for param "insn".
9699 (cselib_lookup_from_insn): Likewise.
9700 (cselib_add_permanent_equiv): Likewise for param "insn" and local
9701 "save_cselib_current_insn".
9702 (cselib_process_insn): Replace use of NULL_RTX with NULL.
9703
9704 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9705 from rtx to rtx_insn *.
9706
9707 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9708
9709 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9710 rtx_insn *.
9711
9712 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9713
9714 * df.h (df_dump_insn_problem_function): Strengthen first param of
9715 this callback from const_rtx to const rtx_insn *.
9716 (struct df_insn_info): Strengthen field "insn" from rtx to
9717 rtx_insn *.
9718 (DF_REF_INSN): Eliminate this function, reinstating the older
9719 macro definition.
9720 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9721 (df_reg_defined): Likewise.
9722 (df_find_use): Likewise.
9723 (df_reg_used): Likewise.
9724 (df_dump_insn_top): Strengthen param 1 from const_rtx to
9725 const rtx_insn *.
9726 (df_dump_insn_bottom): Likewise.
9727 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9728 (df_insn_debug_regno): Likewise.
9729 (debug_df_insn): Likewise.
9730 (df_rd_simulate_one_insn): Likewise for param 2.
9731 (df_word_lr_simulate_defs): Likewise for param 1.
9732 (df_word_lr_simulate_uses): Likewise.
9733 (df_md_simulate_one_insn): Likewise for param 2.
9734 (df_simulate_find_noclobber_defs): Likewise for param 1.
9735 (df_simulate_find_defs): Likewise.
9736 (df_simulate_defs): Likewise.
9737 (df_simulate_uses): Likewise.
9738 (df_simulate_one_insn_backwards): Likewise for param 2.
9739 (df_simulate_one_insn_forwards): Likewise.
9740 (df_uses_create): Likewise for param 2.
9741 (df_insn_create_insn_record): Likewise for param 1.
9742 (df_insn_delete): Likewise.
9743 (df_insn_rescan): Likewise.
9744 (df_insn_rescan_debug_internal): Likewise.
9745 (df_insn_change_bb): Likewise.
9746 (df_notes_rescan): Likewise.
9747 * rtl.h (remove_death): Likewise for param 2.
9748 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9749 const rtx_insn *.
9750 * sched-int.h (reemit_notes): Strengthen param from rtx to
9751 rtx_insn *.
9752 * valtrack.h (propagate_for_debug): Likewise for param 1.
9753
9754 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9755 local "tmp_rtx" from const_rtx to const rtx_insn *.
9756 * combine.c (remove_death): Strengthen param "insn" from rtx to
9757 rtx_insn *.
9758 (move_deaths): Likewise for local "where_dead".
9759 * cse.c (delete_trivially_dead_insns): Introduce local
9760 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9761 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9762 rtx_insn *.
9763 (df_reg_defined): Likewise.
9764 (df_find_use): Likewise.
9765 (df_reg_used): Likewise.
9766 (df_dump_insn_problem_data): Strengthen param "insn" from
9767 const_rtx to const rtx_insn *.
9768 (df_dump_insn_top): Likewise.
9769 (df_dump_insn_bottom): Likewise.
9770 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9771 (df_insn_debug_regno): Likewise.
9772 (debug_df_insn): Likewise.
9773 (DF_REF_INSN): Delete.
9774 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9775 from rtx to rtx_insn *.
9776 (df_chain_insn_top_dump): Strengthen param "insn" from
9777 const_rtx to const rtx_insn *.
9778 (df_chain_insn_bottom_dump): Likewise.
9779 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9780 rtx_insn *.
9781 (df_word_lr_simulate_uses): Likewise.
9782 (df_print_note): Likewise.
9783 (df_remove_dead_and_unused_notes): Likewise.
9784 (df_set_unused_notes_for_mw): Likewise.
9785 (df_set_dead_notes_for_mw): Likewise.
9786 (df_create_unused_note): Likewise.
9787 (df_simulate_find_defs): Likewise.
9788 (df_simulate_find_uses): Likewise.
9789 (df_simulate_find_noclobber_defs): Likewise.
9790 (df_simulate_defs): Likewise.
9791 (df_simulate_uses): Likewise.
9792 (df_simulate_one_insn_backwards): Likewise.
9793 (df_simulate_one_insn_forwards): Likewise.
9794 (df_md_simulate_one_insn): Likewise.
9795 * df-scan.c (df_uses_create): Likewise.
9796 (df_insn_create_insn_record): Likewise.
9797 (df_insn_delete): Likewise.
9798 (df_insn_rescan): Likewise.
9799 (df_insn_rescan_debug_internal): Likewise.
9800 (df_insn_change_bb): Likewise.
9801 (df_notes_rescan): Likewise.
9802 (df_refs_add_to_chains): Likewise.
9803 (df_insn_refs_verify): Likewise.
9804 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9805 when invoking df_insn_delete.
9806 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9807 (set_unique_reg_note): Add checked cast.
9808 * final.c (cleanup_subreg_operands): Likewise.
9809 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9810 "insn" from rtx to rtx_insn *.
9811 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9812 "last" from rtx to rtx_insn *.
9813 * ira-emit.c (change_regs_in_insn): New function.
9814 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9815 Invoke change_regs_in_insn rather than change_regs.
9816 * ira.c (update_equiv_regs): Strengthen locals "insn",
9817 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
9818 for_each_rtx_in_insn rather than for_each_rtx.
9819 * recog.c (confirm_change_group): Add checked casts.
9820 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9821 Add checked cast.
9822 (peep2_fill_buffer): Add checked cast.
9823 * rtlanal.c (remove_note): Likewise.
9824 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9825 locals "next" "end" from rtx to rtx_insn *.
9826
9827 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9828
9829 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9830 to rtx_insn *.
9831 (struct reg_use_data): Likewise for field "insn".
9832 (insn_cost): Likewise for param.
9833 (real_insn_for_shadow): Likewise for return type and param.
9834 (increase_insn_priority): Likewise for param 1.
9835 (debug_dependencies): Likewise for both params.
9836
9837 * haifa-sched.c (insn_delay): Likewise for param "insn".
9838 (real_insn_for_shadow): Likewise for return type and param "insn".
9839 (update_insn_after_change): Likewise for param "insn".
9840 (recompute_todo_spec): Likewise for param "next" and locals "pro",
9841 "other".
9842 (insn_cost): Likewise for param "insn".
9843 (increase_insn_priority): Likewise.
9844 (calculate_reg_deaths): Likewise.
9845 (setup_insn_reg_pressure_info): Likewise.
9846 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9847 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9848 (model_recompute): Likewise.
9849 (must_restore_pattern_p): Likewise for param "next".
9850 (model_excess_cost): Likewise for param "insn".
9851 (queue_remove): Likewise.
9852 (adjust_priority): Likewise for param "prev".
9853 (update_register_pressure): Likewise for param "insn".
9854 (setup_insn_max_reg_pressure): Likewise for local "insn".
9855 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9856 (model_add_to_schedule): Likewise.
9857 (model_reset_queue_indices): Likewise for local "insn".
9858 (unschedule_insns_until): Strengthen local "recompute_vec" from
9859 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
9860 "con" from rtx to rtx_insn *.
9861 (restore_last_backtrack_point): Likewise for both locals "x". Add
9862 checked casts.
9863 (estimate_insn_tick): Likewise for param "insn".
9864 (commit_schedule): Likewise for params "prev_head", "tail" and
9865 local "x".
9866 (verify_shadows): Likewise for locals "i1", "i2".
9867 (dump_insn_stream): Likewise for params "head", "tail" and locals
9868 "next_tail", "insn".
9869 (schedule_block): Likewise for locals "insn", "x". Add a checked
9870 cast.
9871 (fix_inter_tick): Likewise for params "head", "tail".
9872 (create_check_block_twin): Likewise for local "jump".
9873 (haifa_change_pattern): Likewise for param "insn".
9874 (haifa_speculate_insn): Likewise.
9875 (dump_new_block_header): Likewise for params "head", "tail".
9876 (fix_jump_move): Likewise for param "jump".
9877 (move_block_after_check): Likewise.
9878 (sched_init_insn_luid): Likewise for param "insn".
9879 (sched_init_luids): Likewise for local "insn".
9880 (insn_luid): Likewise for param "insn".
9881 (init_h_i_d): Likewise.
9882 (haifa_init_h_i_d): Likewise for local "insn".
9883 (haifa_init_insn): Likewise for param "insn".
9884 * sched-deps.c (add_dependence): Likewise for local "real_pro",
9885 "other".
9886 (create_insn_reg_use): Likewise for param "insn".
9887 (setup_insn_reg_uses): Likewise. Add a checked cast.
9888 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9889 "tail" from rtx to rtx_insn *.
9890 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9891 "insn", "next_tail".
9892
9893 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9894
9895 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9896 from rtx to rtx_insn *.
9897 (model_add_to_schedule): Likewise for locals "start", "end",
9898 "iter".
9899
9900 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9901
9902 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9903 rtx_insn *.
9904 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
9905 "to" and locals "insn", "next", "copy". Remove now-redundant
9906 checked cast.
9907
9908 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9909
9910 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9911 rtx_insn * and param 4 from rtx * to rtx_insn **.
9912 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9913 param 2 from rtx * to rtx_insn **.
9914
9915 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9916 rtx_insn * and final param from rtx * to rtx_insn **.
9917
9918 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9919 from rtx to rtx_insn *.
9920 (try_head_merge_bb): Likewise for both locals named "move_upto".
9921 * df-problems.c (can_move_insns_across): Likewise for params
9922 "from", "to", "across_from", "across_to" and locals "insn",
9923 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
9924 rtx_insn **.
9925 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9926 from rtx to rtx_insn *.
9927 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9928 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
9929 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9930 rtx_insn *.
9931 (noce_try_abs): Likewise.
9932 (noce_get_condition): Likewise for param "jump". Strengthen param
9933 "earliest" from rtx * to rtx_insn **.
9934 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9935 rtx_insn *.
9936 (find_cond_trap): Likewise.
9937 (dead_or_predicable): Likewise for local "earliest".
9938 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
9939 checked cast.
9940 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9941 and local "prev". Strengthen param "earliest" from rtx * to
9942 rtx_insn **.
9943 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9944 Strengthen param "earliest" from rtx * to rtx_insn **.
9945
9946 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9947
9948 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9949 "to" and local "insn" from rtx to rtx_insn *.
9950
9951 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9952
9953 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9954 from rtx to rtx_insn *.
9955 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9956 (code_motion_path_driver): Likewise for local "last_insn".
9957 (simplify_changed_insns): Likewise for local "insn".
9958
9959 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9960
9961 * rtl.h (push_to_sequence): Strengthen param from rtx to
9962 rtx_insn *.
9963 (push_to_sequence2): Likewise for both params.
9964 (delete_insns_since): Likewise for param.
9965 (reorder_insns_nobb): Likewise for all three params.
9966 (set_new_first_and_last_insn): Likewise for both params.
9967
9968 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
9969 rtx_insn *. Remove now-redundant cast.
9970 (set_last_insn): Likewise.
9971
9972 * builtins.c (expand_builtin_return): Strengthen local
9973 "call_fusage" from rtx to rtx_insn *.
9974 * cfgrtl.c (create_basic_block_structure): Likewise for local
9975 "after".
9976 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
9977 "first", "last" and local "insn".
9978 (delete_insns_since): Likewise for param "from".
9979 (reorder_insns_nobb): Likewise for params "from", "to", "after"
9980 and local "x".
9981 (push_to_sequence): Likewise for param "first" and local "last".
9982 (push_to_sequence2): Likewise for params "first" and "last".
9983 * lra.c (emit_add3_insn): Likewise for local "last".
9984 (lra_emit_add): Likewise.
9985 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9986 "last_insn".
9987 (process_address_1): Likewise for locals "insn", last".
9988 * modulo-sched.c (ps_first_note): Likewise for return type.
9989 * optabs.c (expand_binop_directly): Likewise for param "last".
9990
9991 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9992
9993 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9994 to rtx_insn*.
9995 * emit-rtl.c (get_last_insn_anywhere): Likewise.
9996
9997 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9998
9999 * function.h (struct sequence_stack): Strengthen fields "first"
10000 and "last" from rtx to rtx_insn *.
10001 (struct emit_status): Likewise for fields "x_first_insn" and
10002 "x_last_insn".
10003
10004 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10005 (set_first_insn): Add checked cast.
10006 (get_last_insn): Remove now-redundant checked cast.
10007 (set_last_insn): Add checked cast.
10008
10009 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10010 "saved_first" and "saved_last" from rtx to rtx_insn *.
10011
10012 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10013
10014 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10015 (unlink_insn_chain): Strengthen both params from rtx to
10016 rtx_insn *.
10017
10018 * cfgrtl.c (cfg_layout_function_header): Likewise for this
10019 variable.
10020 (unlink_insn_chain): Likewise for params "first" and "last".
10021 Remove now-redundant checked cast.
10022 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10023 (fixup_reorder_chain): Strengthen local "insn" from rtx to
10024 rtx_insn *.
10025 * emit-rtl.c (link_insn_into_chain): Likewise for all three
10026 params.
10027 (add_insn): Likewise for param "insn" and local "prev".
10028 (add_insn_after_nobb): Likewise for both params and local "next".
10029 (add_insn_before_nobb): Likewise for both params and local "prev".
10030 (add_insn_after): Rename param "after" to "uncast_after",
10031 introducing local "after" with another checked cast.
10032 (add_insn_before): Rename params "insn" and "before", giving them
10033 "uncast_" prefixes, adding the old names back using checked casts.
10034 (emit_note_after): Likewise for param "after".
10035 (emit_note_before): Likewise for param "before".
10036 (emit_label): Add a checked cast.
10037
10038 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10039
10040 * cselib.h (cselib_record_sets_hook): Strengthen initial param
10041 "insn" from rtx to rtx_insn *.
10042
10043 * cselib.c (cselib_record_sets_hook): Likewise.
10044
10045 * var-tracking.c (add_with_sets): Likewise, renaming back from
10046 "uncast_insn" to "insn" and eliminating the checked cast from rtx
10047 to rtx_insn *.
10048
10049 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10050
10051 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10052 and "header_" from rtx to rtx_insn *.
10053 (struct basic_block_d): Likewise for field "head_" within "x"
10054 field of union basic_block_il_dependent.
10055 (BB_HEAD): Drop function...
10056 (SET_BB_HEAD): ...and this function in favor of...
10057 (BB_HEAD): ...reinstate macro.
10058 (BB_END): Drop function...
10059 (SET_BB_END): ...and this function in favor of...
10060 (BB_END): ...reinstate macro.
10061 (BB_HEADER): Drop function...
10062 (SET_BB_HEADER): ...and this function in favor of...
10063 (BB_HEADER): ...reinstate macro.
10064
10065 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10066 (fix_crossing_unconditional_branches): Likewise.
10067 * caller-save.c (save_call_clobbered_regs): Likewise.
10068 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10069 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10070 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10071 (merge_blocks_move_successor_nojumps): Likewise.
10072 (outgoing_edges_match): Update use of for_each_rtx to
10073 for_each_rtx_in_insn.
10074 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10075 (expand_gimple_cond): Likewise.
10076 (expand_gimple_tailcall): Likewise.
10077 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10078 SET_BB_END.
10079 (construct_exit_block): Drop use of SET_BB_END.
10080 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10081 rtx_insn *.
10082 (delete_insn): Rename param "insn" to "uncast_insn", introducing
10083 a new local "insn" with a checked cast to rtx_insn *. Drop use of
10084 SET_BB_HEAD and SET_BB_END.
10085 (create_basic_block_structure): Drop use of SET_BB_HEAD and
10086 SET_BB_END.
10087 (rtl_delete_block): Drop use of SET_BB_HEAD.
10088 (rtl_split_block): Drop use of SET_BB_END.
10089 (emit_nop_for_unique_locus_between): Likewise.
10090 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10091 (block_label): Drop use of SET_BB_HEAD.
10092 (fixup_abnormal_edges): Drop use of SET_BB_END.
10093 (record_effective_endpoints): Drop use of SET_BB_HEADER.
10094 (relink_block_chain): Likewise.
10095 (fixup_reorder_chain): Drop use of SET_BB_END.
10096 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10097 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10098 rtx_insn **. Drop use of SET_BB_HEADER.
10099 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10100 SET_BB_HEAD.
10101 (BB_HEAD): Delete this function.
10102 (SET_BB_HEAD): Likewise.
10103 (BB_END): Likewise.
10104 (SET_BB_END): Likewise.
10105 (BB_HEADER): Likewise.
10106 (SET_BB_HEADER): Likewise.
10107 * emit-rtl.c (add_insn_after): Rename param "insn" to
10108 "uncast_insn", adding a new local "insn" and a checked cast to
10109 rtx_insn *. Drop use of SET_BB_END.
10110 (remove_insn): Strengthen locals "next" and "prev" from rtx to
10111 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
10112 (reorder_insns): Drop use of SET_BB_END.
10113 (emit_insn_after_1): Strengthen param "first" and locals "last",
10114 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
10115 (emit_pattern_after_noloc): Add checked cast.
10116 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10117 (restore_other_notes): Likewise.
10118 (move_insn): Likewise.
10119 (sched_extend_bb): Likewise.
10120 (fix_jump_move): Likewise.
10121 * ifcvt.c (noce_process_if_block): Likewise.
10122 (dead_or_predicable): Likewise.
10123 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10124 * reg-stack.c (change_stack): Drop use of SET_BB_END.
10125 * sel-sched-ir.c (sel_move_insn): Likewise.
10126 * sel-sched.c (move_nop_to_previous_block): Likewise.
10127
10128 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10129 SET_BB_END.
10130 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10131
10132 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10133
10134 * basic-block.h (create_basic_block_structure): Strengthen params
10135 1 "head" and 2 "end" from rtx to rtx_insn *.
10136 * cfgrtl.c (create_basic_block_structure): Likewise.
10137 (rtl_create_basic_block): Update casts from void * to rtx to
10138 rtx_insn *, so that we can pass them as rtx_insn * to
10139 create_basic_block_structure.
10140 * sel-sched-ir.c (sel_create_basic_block): Likewise.
10141
10142 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10143
10144 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10145 rtx_insn **.
10146 (check_for_inc_dec): Strengthen param "insn" from rtx to
10147 rtx_insn *.
10148
10149 * cselib.h (cselib_process_insn): Likewise.
10150
10151 * cselib.c (cselib_record_sets): Likewise.
10152 (cselib_process_insn): Likewise.
10153
10154 * dse.c (struct insn_info): Likewise for field "insn".
10155 (check_for_inc_dec_1): Likewise for local "insn".
10156 (check_for_inc_dec): Likewise for param "insn".
10157 (scan_insn): Likewise.
10158 (dse_step1): Likewise for local "insn".
10159
10160 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10161 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
10162
10163 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10164
10165 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10166 from rtx to rtx_insn *.
10167 (DEP_PRO): Delete this function and...
10168 (SET_DEP_PRO): ...this function in favor of...
10169 (DEP_PRO): ...reinstate this macro.
10170 (DEP_CON): Delete this function and...
10171 (SET_DEP_CON): ...this function in favor of...
10172 (DEP_CON): ...reinstate this old macro.
10173 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10174 (init_dep): Likewise.
10175 (set_priorities): Likewise for both params.
10176 (sd_copy_back_deps): Likewise for params 1 and 2.
10177
10178 * haifa-sched.c (priority): Likewise for param "insn" and local
10179 "next".
10180 (set_priorities): Likewise for params "head" and "tail" and local
10181 "insn".
10182 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10183 local "consumer".
10184 (add_to_speculative_block): Add a checked cast.
10185 (create_check_block_twin): Drop use of SET_DEP_CON.
10186 (add_jump_dependencies): Strengthen params "insn" and "jump" from
10187 rtx to rtx_insn *.
10188
10189 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10190 Drop use of SET_DEP_PRO
10191 (init_dep): Strengthen params "pro" and "con" from rtx to
10192 rtx_insn *.
10193 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
10194 use of SET_DEP_CON.
10195 (DEP_PRO): Delete.
10196 (DEP_CON): Delete.
10197 (SET_DEP_PRO): Delete.
10198 (SET_DEP_CON): Delete.
10199
10200 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10201
10202 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10203 from rtx to rtx_insn *.
10204 (VINSN_INSN_RTX): Eliminate rvalue function and...
10205 (SET_VINSN_INSN): ...lvalue function in favor of...
10206 (VINSN_INSN_RTX): reinstate this old macro.
10207
10208 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10209 in favor of VINSN_INSN_RTX.
10210 (VINSN_INSN_RTX): Delete this function.
10211 (SET_VINSN_INSN_RTX): Likewise.
10212
10213 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10214
10215 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10216 (BND_TO): Delete this function and...
10217 (SET_BND_TO): ...this functions in favor of...
10218 (BND_TO): ...reinstating this macro.
10219 (struct _fence): Strengthen field "executing_insns" from
10220 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
10221 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10222 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10223 and param "insn" from rtx to insn_t.
10224 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10225 rtx_insn *.
10226
10227 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10228 vec<rtx_insn *> .
10229 (rtx_vec_t): Likewise.
10230 (struct sched_deps_info_def): Strengthen param of "start_insn"
10231 callback from rtx to rtx_insn *. Likewise for param "insn2" of
10232 "note_mem_dep" callback and first param of "note_dep" callback.
10233
10234 * haifa-sched.c (add_to_speculative_block): Strengthen param
10235 "insn" from rtx to rtx_insn *.
10236 (clear_priorities): Likewise.
10237 (calc_priorities): Likewise for local "insn".
10238
10239 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10240 Remove redundant checked cast.
10241 (haifa_note_mem_dep): Likewise for param "pending_insn".
10242 (haifa_note_dep): Likewise for param "elem".
10243 (note_mem_dep): Likewise for param "e".
10244 (sched_analyze_1): Add checked casts.
10245 (sched_analyze_2): Likewise.
10246
10247 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10248 from rtx to rtx_insn *.
10249 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10250 from vec<rtx> * to vec<rtx_insn *> *.
10251
10252 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10253 scaffolding.
10254 (flist_add): Strengthen param "executing_insns" from
10255 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10256 (advance_deps_context): Remove now-redundant checked cast.
10257 (init_fences): Replace uses of NULL_RTX with NULL.
10258 (merge_fences): Strengthen params "last_scheduled_insn" and
10259 "sched_next" from rtx to rtx_insn * and "executing_insns" from
10260 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10261 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10262 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10263 an instruction, rather than doing double-duty as a pattern.
10264 (return_nop_to_pool): Update for change of insn_t.
10265 (deps_init_id): Remove now-redundant checked cast.
10266 (struct sched_scan_info_def): Strengthen param of "init_insn"
10267 callback from rtx to insn_t.
10268 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10269 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10270 NULL.
10271 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10272 "end" from rtx to rtx_insn *.
10273 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10274 (rtx insn_rtx, bool force_unique_p)
10275 (BND_TO): Delete function.
10276 (SET_BND_TO): Delete function.
10277
10278 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10279 rtx to rtx_insn *.
10280 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10281 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10282 rtx to rtx_insn *.
10283 (undo_transformations): Likewise for param "insn".
10284 (update_liveness_on_insn): Likewise.
10285 (compute_live_below_insn): Likewise for param "insn" and local
10286 "succ".
10287 (update_data_sets): Likewise for param "insn".
10288 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10289 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10290 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10291 rtx_insn *.
10292 (move_cond_jump): Likewise for param "insn".
10293 (move_cond_jump): Drop use of SET_BND_TO.
10294 (compute_av_set_on_boundaries): Likewise.
10295 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10296 (update_and_record_unavailable_insns): Strengthen local "bb_end"
10297 from rtx to rtx_insn *.
10298 (maybe_emit_renaming_copy): Likewise for param "insn".
10299 (maybe_emit_speculative_check): Likewise.
10300 (handle_emitting_transformations): Likewise.
10301 (remove_insn_from_stream): Likewise.
10302 (code_motion_process_successors): Strengthen local "succ" from rtx
10303 to insn_t.
10304
10305 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10306
10307 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10308 ilist_t, not _xlist_t;
10309 (ILIST_INSN): Define in terms of new union field "insn".
10310 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10311 _XLIST_NEXT.
10312 (struct _list_node): Add new field "insn" to the union, of type
10313 insn_t.
10314 (ilist_add): Replace macro with an inline function, requiring an
10315 insn_t.
10316 (ilist_remove): Define this macro directly in terms of
10317 _list_remove, rather than indirectly via _xlist_remove.
10318 (ilist_clear): Likewise, in terms of _list_clear rather than
10319 _xlist_clear.
10320 (ilist_is_in_p): Replace macro with an inline function, requiring
10321 an insn_t.
10322 (_list_iter_cond_insn): New function.
10323 (ilist_iter_remove): Define this macro directly in terms of
10324 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10325 (ilist_iterator): Define directly in terms of _list_iterator
10326 rather than indirectly through _xlist_iterator.
10327 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10328 than in terms of _FOR_EACH_X.
10329 (FOR_EACH_INSN_1): Likewise.
10330
10331 2014-08-26 Joseph Myers <joseph@codesourcery.com>
10332
10333 PR target/60606
10334 PR target/61330
10335 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10336 DECL_HARD_REGISTER and return for invalid register specifications.
10337 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10338 DECL_HARD_REGISTER, call expand_one_error_var.
10339 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10340 CC_REGNUM with non-MODE_CC modes.
10341 (arm_regno_class): Return NO_REGS for PC_REGNUM.
10342
10343 2014-08-26 Marek Polacek <polacek@redhat.com>
10344
10345 PR c/61271
10346 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10347
10348 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
10349
10350 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10351 qi cost; add di cost.
10352 (cortexa57_addrcost_table): Likewise.
10353
10354 2014-08-26 Marek Polacek <polacek@redhat.com>
10355
10356 PR c/61271
10357 * expr.c (is_aligning_offset): Remove logical not.
10358
10359 2014-08-26 Marek Polacek <polacek@redhat.com>
10360
10361 PR c/61271
10362 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10363 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10364
10365 2014-08-26 Richard Biener <rguenther@suse.de>
10366
10367 PR tree-optimization/62175
10368 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10369 expand possibly trapping operations.
10370
10371 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10372
10373 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10374 "insn" from rtx to rtx_insn *.
10375 (permute_load): Likewise for param "insn".
10376 (permute_store): Likewise.
10377 (handle_special_swappables): Likewise for local "insn".
10378 (replace_swap_with_copy): Likewise for locals "insn" and
10379 "new_insn".
10380 (rs6000_analyze_swaps): Likewise for local "insn".
10381
10382 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10383
10384 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10385 to rtx_insn *.
10386
10387 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10388
10389 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10390 "note_list" from rtx to rtx_insn *.
10391 (BB_NOTE_LIST): Replace this function and...
10392 (SET_BB_NOTE_LIST): ...this function with...
10393 (BB_NOTE_LIST): ...the former macro implementation.
10394
10395 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10396 local "from_start" from rtx to rtx_insn *. Strengthen param
10397 "to_endp" from rtx * to rtx_insn **.
10398
10399 * haifa-sched.c (concat_note_lists): Likewise.
10400 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10401 BB_NOTE_LIST.
10402 (sel_restore_notes): Likewise.
10403 (move_bb_info): Likewise.
10404 (BB_NOTE_LIST): Delete this function.
10405 (SET_BB_NOTE_LIST): Delete this function.
10406 * sel-sched.c (create_block_for_bookkeeping): Eliminate
10407 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10408
10409 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10410
10411 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10412 from rtx * to rtx_insn **.
10413 (reorder2): Likewise.
10414 (dependencies_evaluation_hook): Strengthen params "head", "tail"
10415 from rtx to rtx_insn *.
10416
10417 * doc/tm.texi: Update mechanically for above change to target.def.
10418
10419 * sched-int.h (note_list): Strengthen this variable from rtx to
10420 rtx_insn *.
10421 (remove_notes): Likewise for both params.
10422 (restore_other_notes): Likewise for return type and first param.
10423 (struct ready_list): Strengthen field "vec" from rtx * to
10424 rtx_insn **.
10425 (struct dep_replacement): Strenghten field "insn" from rtx to
10426 rtx_insn *.
10427 (struct deps_desc): Likewise for fields "last_debug_insn",
10428 "last_args_size".
10429 (struct haifa_sched_info): Likewise for callback field
10430 "can_schedule_ready_p"'s param, for first param of "new_ready"
10431 callback field, for both params of "rank" callback field, for
10432 first field of "print_insn" callback field (with a const), for
10433 both params of "contributes_to_priority" callback, for param
10434 of "insn_finishes_block_p" callback, for fields "prev_head",
10435 "next_tail", "head", "tail", for first param of "add_remove_insn"
10436 callback, for first param of "begin_schedule_ready" callback, for
10437 both params of "begin_move_insn" callback, and for second param
10438 of "advance_target_bb" callback.
10439 (add_dependence): Likewise for params 1 and 2.
10440 (sched_analyze): Likewise for params 2 and 3.
10441 (deps_analyze_insn): Likewise for param 2.
10442 (ready_element): Likewise for return type.
10443 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10444 (try_ready): Strenghten param from rtx to rtx_insn *.
10445 (sched_emit_insn): Likewise for return type.
10446 (record_delay_slot_pair): Likewise for params 1 and 2.
10447 (add_delay_dependencies): Likewise for param.
10448 (contributes_to_priority): Likewise for both params.
10449 (find_modifiable_mems): Likewise.
10450
10451 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
10452 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
10453 "first_older_only_insn" from rtx to rtx_insn *.
10454 (arm_sched_reorder): Strengthen param "ready" from rtx * to
10455 rtx_insn **.
10456
10457 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10458 "last_scheduled_iter0" from rtx to rtx_insn *.
10459 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10460 (c6x_sched_reorder_1): Strengthen param "ready" and locals
10461 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10462 "insn" from rtx to rtx_insn *.
10463 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10464 rtx_insn **.
10465 (c6x_sched_reorder2): Strengthen param "ready" and locals
10466 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10467 "insn" from rtx to rtx_insn *.
10468 (c6x_variable_issue): Add a checked cast when assigning from insn
10469 to ss.last_scheduled_iter0.
10470 (split_delayed_branch): Strengthen param "insn" and local "i1"
10471 from rtx to rtx_insn *.
10472 (split_delayed_nonbranch): Likewise.
10473 (undo_split_delayed_nonbranch): Likewise for local "insn".
10474 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10475 "entry_after", "end_packet", "head_insn", "tail_insn",
10476 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10477 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10478 to rtx_insn **. Remove now-redundant checked cast on last_insn,
10479 but add a checked cast on loop->start_label. Consolidate calls to
10480 avoid assigning result of gen_spkernel to "insn", now an
10481 rtx_insn *.
10482
10483 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10484 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
10485 rtx to rtx_insn *.
10486 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10487 rtx_insn **. Strengthen locals "top", "next" from rtx to
10488 rtx_insn *.
10489 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10490 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10491 (add_parameter_dependencies): Strengthen params "call", "head" and
10492 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10493 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10494 (add_dependee_for_func_arg): Likewise for param "arg" and local
10495 "insn".
10496 (ix86_dependencies_evaluation_hook): Likewise for params "head",
10497 "tail" and locals "insn", "first_arg".
10498
10499 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10500 for params "head", "tail" and locals "insn", "next", "next_tail".
10501 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10502 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10503 "insn", "lowest", "highest" from rtx to rtx_insn *.
10504 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10505 rtx_insn **.
10506 (ia64_sched_reorder2): Likewise.
10507
10508 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10509 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
10510 from rtx * to rtx_insn **.
10511 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10512 rtx_insn **.
10513 (mep_print_sched_insn): Strengthen param "insn" from rtx to
10514 rtx_insn *.
10515 (mep_sched_reorder): Strengthen param "ready" from rtx * to
10516 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
10517 to rtx_insn *.
10518
10519 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10520 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
10521 to rtx_insn *.
10522 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10523 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
10524 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10525 rtx_insn **.
10526 (vr4130_reorder): Likewise.
10527 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
10528 rtx to rtx_insn *.
10529 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10530 rtx_insn **.
10531 (mips_sched_reorder): Likewise.
10532 (mips_sched_reorder2): Likewise.
10533
10534 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10535
10536 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10537 Strengthen local "tmp" from rtx to rtx_insn *.
10538 (rs6000_sched_reorder2): Likewise.
10539
10540 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10541 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10542 (s390_sched_reorder): Strengthen param "ready" from rtx * to
10543 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
10544
10545 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10546 "tmp2" from rtx to rtx_insn *.
10547 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10548 Strengthen local "insn" from rtx to rtx_insn *.
10549 (ready_reorder): Strengthen param "ready" from rtx * to
10550 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10551 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
10552 (sh_reorder2): Likewise.
10553
10554 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
10555 local "insn" from rtx to rtx_insn *.
10556
10557 * haifa-sched.c (note_list): Strengthen this variable from rtx to
10558 rtx_insn *.
10559 (scheduled_insns): Strengthen this variable from vec<rtx> to
10560 vec<rtx_insn *>.
10561 (set_modulo_params): Likewise for locals "i1", "i2".
10562 (record_delay_slot_pair): Likewise for params "i1", "i2".
10563 (add_delay_dependencies): Likewise for param "insn".
10564 (cond_clobbered_p): Likewise.
10565 (recompute_todo_spec): Likewise for local "prev".
10566 (last_scheduled_insn): Likewise for this variable.
10567 (nonscheduled_insns_begin): Likewise.
10568 (model_set_excess_costs): Strengthen param "insns" from rtx * to
10569 rtx_insn **.
10570 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10571 rtx_insn *.
10572 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10573 Strengthen local "insn" from rtx to rtx_insn *.
10574 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10575 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10576 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10577 (ready_remove_first): Likewise for return type and local "t".
10578 (ready_element): Likewise for return type.
10579 (ready_remove): Likewise for return type and local "t".
10580 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10581 (check_clobbered_conditions): Strengthen local "x" from rtx to
10582 rtx_insn *, adding a checked cast.
10583 (schedule_insn): Likewise for param "insn".
10584 (remove_notes): Likewise for params "head", "tail" and locals
10585 "next_tail", "insn", "next".
10586 (struct haifa_saved_data): Likewise for fields
10587 "last_scheduled_insn", "nonscheduled_insns_begin".
10588 (save_backtrack_point): Update for change to field "vec" of
10589 struct ready_list.
10590 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10591 rtx_insn **.
10592 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
10593 from rtx to rtx_insn *
10594 (resolve_dependencies): Strengthen param "insn" from rtx to
10595 rtx_insn *
10596 (restore_other_notes): Likewise for return type, for param "head"
10597 and local "note_head".
10598 (undo_all_replacements): Likewise for local "insn".
10599 (first_nonscheduled_insn): Likewise for return type and local "insn".
10600 (queue_to_ready): Likewise for local "insn", adding checked casts.
10601 (early_queue_to_ready): Likewise for local "insn".
10602 (debug_ready_list_1): Strengthen local "p" from rtx * to
10603 rtx_insn **.
10604 (move_insn): Strengthen param "insn" and local "note" from rtx to
10605 rtx_insn *
10606 (insn_finishes_cycle_p): Likewise for param "insn".
10607 (max_issue): Likewise for local "insn".
10608 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
10609 to rtx_insn **.
10610 (commit_schedule): Strengthen param "prev_head" and local "insn"
10611 from rtx to rtx_insn *
10612 (prune_ready_list): Likewise for local "insn".
10613 (schedule_block): Likewise for locals "prev_head", "head", "tail",
10614 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10615 (set_priorities): Likewise for local "prev_head".
10616 (try_ready): Likewise for param "next".
10617 (fix_tick_ready): Likewise.
10618 (change_queue_index): Likewise.
10619 (sched_extend_ready_list): Update for change to field "vec" of
10620 struct ready_list.
10621 (generate_recovery_code): Strengthen param "insn" from rtx to
10622 rtx_insn *.
10623 (begin_speculative_block): Likewise.
10624 (create_check_block_twin): Likewise for param "insn" and locals
10625 "label", "check", "twin". Introduce local "check_pat" to avoid
10626 "check" being used as a plain rtx before being used as an insn.
10627 (fix_recovery_deps): Add a checked cast to rtx_insn * when
10628 extracting elements from ready_list.
10629 (sched_remove_insn): Strengthen param "insn" from rtx to
10630 rtx_insn *.
10631 (sched_emit_insn): Likewise for return type.
10632 (ready_remove_first_dispatch): Likewise for return type and local
10633 "insn".
10634
10635 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10636
10637 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10638 const rtx_insn *.
10639
10640 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10641 from rtx to rtx_insn *.
10642 (add_dependence_list): Likewise for param "insn". Add a checked
10643 cast.
10644 (add_dependence_list_and_free): Strengthen param "insn" from rtx
10645 to rtx_insn *. Strengthen param "list_p" from rtx * to
10646 rtx_insn **.
10647 (chain_to_prev_insn): Strengthen param "insn" and locals
10648 "prec_nonnote", "i" from rtx to rtx_insn *.
10649 (flush_pending_lists): Likewise for param "insn".
10650 (cur_insn): Likewise for this variable.
10651 (haifa_start_insn): Add a checked cast.
10652 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10653 (sched_analyze_reg): Likewise for param "insn".
10654 (sched_analyze_1): Likewise.
10655 (sched_analyze_2): Likewise. Add checked casts.
10656 (sched_analyze_insn): Likewise. Also for local "prev".
10657 (deps_analyze_insn): Likewise for param "insn".
10658 (sched_analyze): Likewise for params "head", "tail" and local "insn".
10659 (add_dependence_1): Likewise for params "insn", "elem".
10660 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10661 (parse_add_or_inc): Likewise for param "insn".
10662 (find_inc): Likewise for local "inc_cand".
10663 (find_modifiable_mems): Likewise for params "head", "tail" and
10664 locals "insn", "next_tail".
10665
10666 * sched-ebb.c (init_ready_list): Likewise for local "insn".
10667 (begin_schedule_ready): Likewise for param "insn".
10668 (begin_move_insn): Likewise for params "insn" and "last".
10669 (ebb_print_insn): Strengthen param "insn" from const_rtx to
10670 const rtx_insn *.
10671 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10672 (ebb_contributes_to_priority): Likewise for params "next", "insn".
10673 (ebb_add_remove_insn): Likewise for param "insn".
10674 (advance_target_bb): Likewise.
10675
10676 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10677 "insn".
10678 (check_live): Likewise for param "insn".
10679 (init_ready_list): Likewise for local "insn".
10680 (can_schedule_ready_p): Likewise for param "insn".
10681 (begin_schedule_ready): Likewise.
10682 (new_ready): Likewise for param "next".
10683 (rgn_print_insn): Likewise for param "insn".
10684 (rgn_rank): Likewise for params "insn1", "insn2".
10685 (contributes_to_priority): Likewise for params "next", "insn".
10686 (rgn_insn_finishes_block_p): Likewise for param "insn".
10687 (add_branch_dependences): Likewise for params "head", "tail" and
10688 locals "insn", "last".
10689 (rgn_add_remove_insn): Likewise for param "insn".
10690 (advance_target_bb): Likewise.
10691
10692 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10693 const_rtx to const rtx_insn *.
10694
10695 * sel-sched-dump.h (sel_print_insn): Likewise.
10696
10697 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10698 (deps_init_id): Likewise.
10699
10700 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10701 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10702 rtx_insn **.
10703
10704 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10705
10706 * output.h (final_start_function): Strengthen param 1 from rtx to
10707 rtx_insn *.
10708
10709 * final.c (final_start_function): Likewise, renaming back from
10710 "uncast_first" to "first", and dropping the checked cast from rtx
10711 to rtx_insn *.
10712
10713 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10714
10715 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10716 * final.c (final): Likewise. Rename param back from
10717 "uncast_first" to "first" and eliminate the checked cast from rtx
10718 to rtx_insn *.
10719
10720 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10721
10722 * output.h (shorten_branches): Strengthen param from rtx to
10723 rtx_insn *.
10724
10725 * final.c (shorten_branches): Likewise, renaming param back from
10726 "uncast_first" to "first", and dropping the checked cast from rtx
10727 to rtx_insn *.
10728
10729 * genattr.c (gen_attr): Likewise when writing out the prototype of
10730 shorten_branches.
10731
10732 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10733
10734 * sched-int.h (struct haifa_sched_info): Strengthen fields
10735 "prev_head" and "next_tail" from rtx to rtx_insn *.
10736
10737 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10738
10739 * rtl.h (rtx_jump_table_data::get_labels): New method.
10740 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10741 with use of the new rtx_jump_table_data::get_labels method.
10742 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10743 to rtx_jump_table_data *. Simplify by using get_labels method.
10744 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10745 a dyn_cast, introducing local "table", using it to replace
10746 label-lookup logic with a get_labels method call.
10747 (patch_jump_insn): Simplify using get_labels method.
10748 * dwarf2cfi.c (create_trace_edges): Likewise.
10749 * rtlanal.c (label_is_jump_target_p): Likewise.
10750
10751 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10752
10753 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10754 to rtx_insn *.
10755
10756 * emit-rtl.c (unshare_all_rtl_1): Likewise.
10757 (unshare_all_rtl_again): Likewise, also for local "p".
10758
10759 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10760
10761 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10762 to rtx_insn *.
10763 * cfgrtl.c (delete_insn_and_edges): Likewise.
10764
10765 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10766
10767 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10768 from rtx to rtx_insn *.
10769
10770 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10771
10772 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10773
10774 * function.c (thread_prologue_and_epilogue_insns): Likewise for
10775 locals "returnjump", "epilogue_end", "insn", "next".
10776
10777 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10778 "returnjump" from rtx * to rtx_insn **.
10779 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10780
10781 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10782
10783 * basic-block.h (struct edge_def). Strengthen "r" within
10784 union edge_def_insns from rtx to rtx_insn *.
10785
10786 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10787 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
10788 rtx_insn *.
10789 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10790 from rtx to rtx_insn *.
10791 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10792 rtx_insn *.
10793 * postreload-gcse.c (reg_killed_on_edge): Likewise.
10794 (reg_used_on_edge): Likewise.
10795 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10796 (gt_pch_nx): New overload for rtx_insn *&.
10797 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10798 from rtx to rtx_insn *.
10799
10800 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10801
10802 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10803 from rtx to rtx_insn *.
10804 (BB_FOOTER): Replace function with access macro.
10805 (SET_BB_FOOTER): Delete.
10806
10807 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10808 with BB_FOOTER.
10809 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10810 (emit_barrier_after_bb): Likewise.
10811 (record_effective_endpoints): Likewise.
10812 (relink_block_chain): Likewise.
10813 (fixup_fallthru_exit_predecessor): Likewise.
10814 (cfg_layout_duplicate_bb): Likewise.
10815 (cfg_layout_split_block): Likewise.
10816 (cfg_layout_delete_block): Likewise.
10817 (cfg_layout_merge_blocks): Likewise.
10818 (BB_FOOTER): Delete function.
10819 (SET_BB_FOOTER): Delete function.
10820 * combine.c (update_cfg_for_uncondjump): Replace uses of
10821 SET_BB_FOOTER with BB_FOOTER.
10822
10823 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10824
10825 * except.h (struct eh_landing_pad_d): Strengthen field
10826 "landing_pad" from rtx to rtx_code_label *.
10827
10828 * except.c (sjlj_emit_dispatch_table): Likewise for param
10829 "dispatch_label"
10830 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10831
10832 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10833
10834 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10835 first param from rtx to rtx_insn *.
10836 * config/xtensa/xtensa.c (struct machine_function): Likewise for
10837 field "set_frame_ptr_insn".
10838 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10839 "csend" from rtx to rtx_code_label *.
10840 (xtensa_expand_atomic): Likewise for local "csloop".
10841 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10842 rtx_insn *.
10843 (xtensa_call_tls_desc): Likewise for return type and locals
10844 "call_insn", "insns".
10845 (xtensa_legitimize_tls_address): Likewise for local "insns".
10846 (xtensa_expand_prologue): Likewise for locals "insn", "first".
10847
10848 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10849
10850 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10851 first param from rtx to rtx_insn *.
10852 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10853 "insn".
10854
10855 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10856
10857 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10858 Strengthen param 1 from rtx to rtx_insn *.
10859 (tilepro_output_cbranch): Likewise.
10860 (tilepro_adjust_insn_length): Likewise.
10861 (tilepro_final_prescan_insn): Likewise for sole param.
10862
10863 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10864 Likewise for local "last".
10865 (cbranch_predicted_p): Likewise for param "insn".
10866 (tilepro_output_simple_cbranch_with_opcode): Likewise.
10867 (tilepro_output_cbranch_with_opcode): Likewise.
10868 (tilepro_output_cbranch): Likewise.
10869 (frame_emit_load): Likewise for return type and locals "seq",
10870 "insn".
10871 (emit_sp_adjust): Likewise for return type and local "insn".
10872 (tilepro_expand_epilogue): Likewise for locals "last_insn",
10873 "insn".
10874 (tilepro_adjust_insn_length): Likewise for param "insn".
10875 (next_insn_to_bundle): Likewise for return type and params
10876 "r", "end".
10877 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10878 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10879 local "new_insns".
10880 (match_addli_pcrel): Likewise for param "insn".
10881 (replace_addli_pcrel): Likewise.
10882 (match_auli_pcrel): Likewise.
10883 (replace_auli_pcrel): Likewise.
10884 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10885 "next_insn".
10886 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10887 "queue", "next_queue", "prev".
10888 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10889 (tilepro_final_prescan_insn): Likewise for param "insn".
10890
10891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10892
10893 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10894 Strengthen param 1 from rtx to rtx_insn *.
10895 (tilegx_output_cbranch): Likewise.
10896 (tilegx_adjust_insn_length): Likewise.
10897 (tilegx_final_prescan_insn): Likewise for sole param.
10898
10899 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10900 or local "last".
10901 (cbranch_predicted_p): Likewise for param "insn".
10902 (tilegx_output_simple_cbranch_with_opcode): Likewise.
10903 (tilegx_output_cbranch_with_opcode): Likewise.
10904 (tilegx_output_cbranch): Likewise.
10905 (frame_emit_load): Likewise for return type.
10906 (set_frame_related_p): Likewise for locals "seq", "insn".
10907 (emit_sp_adjust): Likewise for return type, and for local "insn".
10908 Introduce local "pat" for use in place of "insn" where the latter
10909 isn't an instruction.
10910 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10911 from rtx to rtx_insn *.
10912 (tilegx_adjust_insn_length): Likewise for param "insn".
10913 (next_insn_to_bundle): Likewise for return type and params "r" and
10914 "end".
10915 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10916 "end".
10917 (replace_insns): Likewise for params "old_insn", "new_insns".
10918 (replace_mov_pcrel_step1): Likewise for param "insn" and local
10919 "new_insns".
10920 (replace_mov_pcrel_step2): Likewise.
10921 (replace_mov_pcrel_step3): Likewise.
10922 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10923 "next_insn".
10924 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10925 "queue", "next_queue", "prev".
10926 (tilegx_output_mi_thunk): Likewise for local "insn".
10927 (tilegx_final_prescan_insn): Likewise for param "insn".
10928
10929 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10930
10931 * config/spu/spu.c (frame_emit_store): Strengthen return type from
10932 rtx to rtx_insn *.
10933 (frame_emit_load): Likewise.
10934 (frame_emit_add_imm): Likewise, also for local "insn".
10935 (spu_expand_prologue): Likewise for local "insn".
10936 (struct spu_bb_info): Likewise for field "prop_jump".
10937 (emit_nop_for_insn): Likewise for param "insn" and local
10938 "new_insn".
10939 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10940 "hbr_insn".
10941 (spu_emit_branch_hint): Likewise for params "before", "branch" and
10942 locals "hint", "insn".
10943 (get_branch_target): Likewise for param "branch".
10944 (insn_clobbers_hbr): Likewise for param "insn".
10945 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10946 locals "insn", "before_4", "before_16".
10947 (insert_hbrp): Likewise for local "insn".
10948 (spu_machine_dependent_reorg): Likewise for locals "branch",
10949 "insn", "next", "bbend".
10950 (uses_ls_unit): Likewise for param "insn".
10951 (get_pipe): Likewise.
10952 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10953 introducing a checked cast.
10954 (spu_sched_adjust_cost): Likewise for params "insn" and
10955 "dep_insn".
10956 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10957 (spu_sms_res_mii): Likewise.
10958
10959 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10960
10961 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10962 from rtx to rtx_insn *.
10963 (output_cbranch): Likewise for param 6.
10964 (output_return): Likewise for param 1.
10965 (output_sibcall): Likewise.
10966 (output_v8plus_shift): Likewise.
10967 (output_v8plus_mult): Likewise.
10968 (output_v9branch): Likewise for param 7.
10969 (output_cbcond): Likewise for param 3.
10970
10971 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
10972 for local "insn".
10973 (sparc_legitimize_pic_address): Likewise.
10974 (sparc_emit_call_insn): Likewise.
10975 (emit_save_or_restore_regs): Likewise.
10976 (emit_window_save): Likewise for return type and local "insn".
10977 (sparc_expand_prologue): Likewise for local "insn".
10978 (sparc_flat_expand_prologue): Likewise.
10979 (output_return): Likewise for param "insn".
10980 (output_sibcall): Likewise for param "insn" and local "delay".
10981 (output_ubranch): Likewise for param "insn".
10982 (output_cbranch): Likewise.
10983 (output_cbcond): Likewise.
10984 (output_v9branch): Likewise.
10985 (output_v8plus_shift): Likewise.
10986 (sparc_output_mi_thunk): Likewise for local "insn".
10987 (get_some_local_dynamic_name): Likewise.
10988 (output_v8plus_mult): Likewise for param "insn".
10989
10990 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10991
10992 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10993 from rtx to rtx_insn *.
10994 (output_branchy_insn): Likewise for param 3.
10995 (output_far_jump): Likewise for param 1.
10996 (final_prescan_insn): Likewise.
10997 (sh_insn_length_adjustment): Likewise for sole param.
10998
10999 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11000 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11001 rtx_code_label *.
11002 (sh_emit_compare_and_set): Likewise for local "lab".
11003 (output_far_jump): Strengthen param "insn" and local "prev" from
11004 rtx to rtx_insn *.
11005 (output_branchy_insn): Likewise for param "insn" and local
11006 "next_insn".
11007 (output_ieee_ccmpeq): Likewise for param "insn".
11008 (struct label_ref_list_d): Strengthen field "label" from rtx to
11009 rtx_code_label *.
11010 (pool_node): Likewise.
11011 (pool_window_label): Likewise for this global.
11012 (add_constant): Likewise for return type and locals "lab", "new_rtx".
11013 (dump_table): Strengthen params "start", "barrier" and local
11014 "scan" from rtx to rtx_insn *.
11015 (broken_move): Likewise for param "insn".
11016 (untangle_mova): Likewise for params "first_mova" and "new_mova".
11017 Strengthen param "first_mova" from rtx * to rtx_insn **.
11018 (mova_p): Likewise for param "insn".
11019 (fixup_mova): Likewise for param "mova".
11020 (find_barrier): Likewise for return type, params "mova" and
11021 "from", and locals "barrier_before_mova", "found_barrier",
11022 "good_barrier", "orig", "last_symoff", "next". Strengthen local
11023 "label" from rtx to rtx_code_label *.
11024 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11025 rtx to rtx_insn *.
11026 (sh_reorg): Likewise for locals "link", "scan", "barrier".
11027 (split_branches): Likewise for param "first" and local "insn".
11028 (final_prescan_insn): Likewise for param "insn".
11029 (sequence_insn_p): Likewise for locals "prev", "next".
11030 (sh_insn_length_adjustment): Likewise for param "insn".
11031 (sh_can_redirect_branch): Likewise for local "insn".
11032 (find_r0_life_regions): Likewise for locals "end", "insn".
11033 (sh_output_mi_thunk): Likewise for local "insns".
11034
11035 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11036
11037 * config/score/score.c (score_output_mi_thunk): Strengthen local
11038 "insn" from rtx to rtx_insn *.
11039 (score_prologue): Likewise.
11040
11041 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11042
11043 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11044 1 from rtx to rtx_insn *.
11045 (s390_emit_jump): Likewise for return type.
11046 (s390_emit_call): Likewise.
11047 (s390_load_got): Likewise.
11048
11049 * config/s390/s390.c (last_scheduled_insn): Likewise for this
11050 variable.
11051 (s390_match_ccmode): Likewise for param "insn".
11052 (s390_emit_jump): Likewise for return type.
11053 (s390_split_branches): Likewise for local "label".
11054 (struct constant): Strengthen field "label" from rtx to
11055 rtx_code_label *.
11056 (struct constant_pool): Likewise for field "label". Strengthen
11057 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11058 rtx_insn *.
11059 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11060 insns.
11061 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11062 (s390_end_pool): Likewise.
11063 (s390_dump_pool): Likewise for local "insn".
11064 (s390_mainpool_start): Likewise.
11065 (s390_chunkify_start): Likewise.
11066 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11067 with insns. Strengthen locals "label", "jump", "barrier", "next",
11068 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11069 (s390_chunkify_finish): Strengthen local "insn" from rtx to
11070 rtx_insn *.
11071 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11072 "jump", "label", "next_insn".
11073 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11074 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11075 "tbegin_insn".
11076 (s390_load_got): Likewise for return type and local "insns".
11077 (s390_save_gprs_to_fprs): Likewise for local "insn".
11078 (s390_restore_gprs_from_fprs): Likewise.
11079 (pass_s390_early_mach::execute): Likewise.
11080 (s390_emit_prologue): Likewise for local "insns".
11081 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11082 rtx_code_label *.
11083 (s390_emit_call): Strengthen return type and local "insn" from
11084 rtx to rtx_insn *.
11085 (s390_emit_tpf_eh_return): Likewise for local "insn".
11086 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11087 "next_insn", introducing locals "s_pat", "rpat" to allow this.
11088 (s390_fix_long_loop_prediction): Likewise for param "insn" and
11089 local "cur_insn".
11090 (s390_non_addr_reg_read_p): Likewise for param "insn".
11091 (find_cond_jump): Likewise for return type and param "insn".
11092 (s390_swap_cmp): Likewise for param "insn".
11093 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11094 "prev_insn", "next_insn".
11095 (s390_reorg): Likewise for locals "insn", "target".
11096 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11097 (s390_sched_variable_issue): For now, rename param "insn" to
11098 "uncast_insn", introducing a checked cast.
11099 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11100 insn.
11101 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11102 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
11103
11104 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11105
11106 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11107 param from rtx to rtx_insn *.
11108 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11109
11110 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11111
11112 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11113 4 from rtx to rtx_insn *.
11114 (rs6000_final_prescan_insn): Likewise for first param.
11115 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11116 local "insn".
11117 (rs6000_get_some_local_dynamic_name): Likewise.
11118 (output_cbranch): Likewise for param "insn".
11119 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11120 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11121 (rs6000_emit_allocate_stack): Likewise for local "insn".
11122 (load_cr_save): Likewise.
11123 (restore_saved_cr): Likewise.
11124 (restore_saved_lr): Likewise.
11125 (emit_cfa_restores): Likewise.
11126 (rs6000_output_function_epilogue): Likewise for locals "insn" and
11127 "deleted_debug_label".
11128 (rs6000_output_mi_thunk): Likewise for local "insn".
11129 (rs6000_final_prescan_insn): Likewise for param "insn".
11130
11131 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11132
11133 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11134 Strengthen param "insn" from rtx to rtx_insn *.
11135 * config/picochip/picochip.c (picochip_current_prescan_insn):
11136 Likewise for this variable.
11137 (picochip_final_prescan_insn): Likewise for param "insn".
11138
11139 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11140
11141 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11142 from rtx to rtx_insn *.
11143 (pa_output_indirect_call): Likewise.
11144 (pa_adjust_insn_length): Likewise.
11145 (pa_attr_length_millicode_call): Likewise.
11146 (pa_attr_length_call): Likewise.
11147 (pa_attr_length_indirect_call): Likewise.
11148
11149 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11150 "insn".
11151 (pa_attr_length_millicode_call): Likewise.
11152 (pa_attr_length_call): Likewise.
11153 (pa_output_call): Likewise.
11154 (pa_attr_length_indirect_call): Likewise.
11155 (pa_output_indirect_call): Likewise.
11156
11157 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11158
11159 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11160 Strengthen first param from rtx to rtx_insn *.
11161 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11162 param "insn".
11163
11164 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11165
11166 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11167 type from rtx to rtx_insn *.
11168 (mips_expand_call): Likewise.
11169 (mips_adjust_insn_length): Likewise for first param.
11170 (mips_output_conditional_branch): Likewise.
11171 (mips_output_order_conditional_branch): Likewise.
11172 (mips_final_prescan_insn): Likewise.
11173
11174 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11175 rtx_insn * for the SEQUENCE case.
11176 (SEQ_END): Likewise.
11177 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11178 (mips_emit_call_insn): Likewise, also for local "insn".
11179 (mips16_gp_pseudo_reg): Likewise for local "scan".
11180 (mips16_build_call_stub): Likewise for return type and for local
11181 "insn". Introduce a new local "pattern" so that "insn" can indeed
11182 be an insn.
11183 (mips_expand_call): Strengthen return type and local "insn" from
11184 rtx to rtx_insn *.
11185 (mips_block_move_loop): Strengthen local "label" from rtx to
11186 rtx_code_label *.
11187 (mips_expand_synci_loop): Likewise for locals "label",
11188 "end_label".
11189 (mips_set_frame_expr): Strengthen local "insn" from rtx to
11190 rtx_insn *.
11191 (mips16e_collect_argument_saves): Likewise for locals "insn",
11192 "next".
11193 (mips_find_gp_ref): Likewise for param of callback for "pred"
11194 param, and for local "insn".
11195 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11196 (mips_insn_has_flexible_gp_ref_p): Likewise.
11197 (mips_epilogue_emit_cfa_restores): Likewise for return type and
11198 local "insn".
11199 (mips_epilogue_set_cfa): Likewise for local "insn".
11200 (mips_expand_epilogue): Likewise.
11201 (mips_adjust_insn_length): Likewise for param "insn".
11202 (mips_output_conditional_branch): Likewise.
11203 (mips_output_order_conditional_branch): Likewise.
11204 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11205 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11206 "falu2_turn_enabled_insn".
11207 (mips_builtin_branch_and_move): Strengthen locals "true_label",
11208 "done_label" from rtx to rtx_code_label *.
11209 (struct mips16_constant): Likewise for field "label".
11210 (mips16_add_constant): Likewise for return type.
11211 (mips16_emit_constants_1): Strengthen return type and param "insn"
11212 from rtx to rtx_insn *.
11213 (mips16_emit_constants): Likewise for param "insn".
11214 (mips16_insn_length): Likewise.
11215 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11216 to rtx_code_label *.
11217 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11218 from rtx to rtx_insn *.
11219 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11220 "jump". Strengthen local "label" from rtx to rtx_code_label *.
11221 (r10k_simplify_address): Strengthen param "insn" and local
11222 "def_insn" from rtx to rtx_insn *.
11223 (r10k_safe_address_p): Strengthen param "insn" from rtx to
11224 rtx_insn *.
11225 (r10k_needs_protection_p_1): Update target type of cast of data
11226 from to rtx to rtx_insn *.
11227 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11228 rtx * to rtx_insn **.
11229 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11230 rtx_insn *.
11231 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11232 (mips_call_expr_from_insn): Likewise for param "insn".
11233 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11234 (mips_find_pic_call_symbol): Likewise for param "insn".
11235 (mips_annotate_pic_calls): Likewise for local "insn".
11236 (mips_sim_insn): Likewise for this variable.
11237 (struct mips_sim): Likewise for field "insn" within elements of
11238 last_set array.
11239 (mips_sim_wait_reg): Likewise for param "insn".
11240 (mips_sim_wait_regs): Likewise.
11241 (mips_sim_wait_units): Likewise.
11242 (mips_sim_wait_insn): Likewise.
11243 (mips_sim_issue_insn): Likewise.
11244 (mips_sim_finish_insn): Likewise.
11245 (mips_seq_time): Likewise for param "seq" and local "insn".
11246 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11247 locals "first", "second".
11248 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11249 "last", "last2", "next".
11250 (mips_avoid_hazard): Likewise for params "after", "insn".
11251 (mips_reorg_process_insns): Likewise for locals "insn",
11252 "last_insn", "subinsn", "next_insn".
11253 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11254 (mips16_split_long_branches): Likewise for locals "insn" "jump",
11255 "jump_sequence".
11256 (mips_output_mi_thunk): Likewise for local "insn".
11257 (mips_final_prescan_insn): Likewise for param "insn".
11258
11259 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11260
11261 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11262 Strengthen return type and local "insns" from rtx to rtx_insn *.
11263 (microblaze_legitimize_tls_address): Likewise for local "insns".
11264 (microblaze_block_move_loop): Strengthen local "label" from rtx
11265 to rtx_code_label *.
11266 (microblaze_expand_prologue): Strengthen two locals named "insn"
11267 from rtx to rtx_insn *.
11268 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11269 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11270 "insn". Strengthen locals "div_label", "div_end_label" from rtx
11271 to rtx_code_label *.
11272
11273 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11274
11275 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11276 param from rtx to rtx_insn *.
11277 (mep_reuse_lo): Likewise for third param.
11278 (mep_use_post_modify_p): Likewise for first param.
11279 (mep_core_address_length): Likewise.
11280 (mep_cop_address_length): Likewise.
11281 (mep_final_prescan_insn): Likewise.
11282 (mep_store_data_bypass_p): Likewise for both params.
11283 (mep_mul_hilo_bypass_p): Likewise.
11284 (mep_ipipe_ldc_p): Likewise for param.
11285
11286 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11287 (mep_rewrite_mult): Likewise.
11288 (mep_rewrite_mulsi3): Likewise.
11289 (mep_rewrite_maddsi3): Likewise.
11290 (mep_reuse_lo_p_1): Likewise.
11291 (mep_reuse_lo_p): Likewise.
11292 (mep_frame_expr): Likewise.
11293 (mep_make_parallel): Likewise for both params.
11294 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11295 local "insn".
11296 (mep_use_post_modify_p): Likewise for param "insn".
11297 (mep_core_address_length): Likewise.
11298 (mep_cop_address_length): Likewise.
11299 (mep_reg_set_in_function): Likewise for local "insn".
11300 (mep_asm_without_operands_p): Likewise.
11301 (F): Likewise for return type and param "x".
11302 (add_constant): Likewise for local "insn".
11303 (maybe_dead_move): Likewise for return type and local "insn".
11304 (mep_expand_prologue): Likewise for local "insn".
11305 (mep_final_prescan_insn): Likewise for param "insn".
11306 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11307 "next", "follow", "x".
11308 (mep_insert_repeat_label_last): Likewise for return type, param
11309 "last_insn", and locals "next", "prev". Strengthen param "label"
11310 from rtx to rtx_code_label *.
11311 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11312 rtx_insn *.
11313 (struct mep_doloop_end): Likewise for fields "insn" and
11314 "fallthrough".
11315 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11316 Strengthen local "repeat_label" from rtx to rtx_code_label *.
11317 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11318 rtx_insn *.
11319 (mep_invert_branch): Likewise for params "insn" and "after".
11320 (mep_reorg_erepeat): Likewise for param "insns" and locals
11321 "insn", "prev", "new_last", "barrier", "user". Strengthen local
11322 "l" from rtx to rtx_code_label *.
11323 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11324 from rtx to rtx_insn *.
11325 (mep_reorg_addcombine): Likewise for param "insns" and locals
11326 "i", "n".
11327 (add_sp_insn_p): Likewise for param "insn".
11328 (mep_reorg_noframe): Likewise for param "insns" and locals
11329 "start_frame_insn", "end_frame_insn", "next".
11330 (mep_reorg): Likewise for local "insns".
11331 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
11332 cast.
11333 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11334 (mep_mul_hilo_bypass_p): Likewise.
11335 (mep_ipipe_ldc_p): Likewise for param "insn".
11336 (mep_make_bundle): Likewise for return type, param "cop" and local
11337 "insn", splitting out the latter into a new local "seq" for when it
11338 is a SEQUENCE rather than an insn.
11339 (core_insn_p): Likewise for param "insn".
11340 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11341 "last", "first", "note", "prev", "core_insn".
11342
11343 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11344
11345 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11346 rtx to rtx_insn *.
11347 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11348 (m68k_final_prescan_insn): Likewise for first param.
11349
11350 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11351 (m68k_set_frame_related): Likewise for param "insn".
11352 (output_btst): Likewise for param "insn".
11353 (m68k_final_prescan_insn): Likewise.
11354 (m68k_move_to_reg): Likewise for local "insn".
11355 (m68k_call_tls_get_addr): Likewise for local "insns".
11356 (m68k_call_m68k_read_tp): Likewise.
11357 (strict_low_part_peephole_ok): Likewise for param "first_insn".
11358 (m68k_output_mi_thunk): Likewise for local "insn".
11359
11360 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11361
11362 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11363 first param from rtx to rtx_insn *.
11364 (iq2000_adjust_insn_length): Likewise.
11365 (iq2000_output_conditional_branch): Likewise.
11366 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11367 "insn" and local "nop_insn".
11368 (iq2000_annotate_frame_insn): Likewise for param "insn".
11369 (iq2000_expand_prologue): Likewise for both locals "insn".
11370 (iq2000_adjust_insn_length): Likewise for param "insn".
11371 (iq2000_output_conditional_branch): Likewise.
11372
11373 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11374
11375 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11376 "insns" from rtx to rtx_insn *.
11377 (ia64_emit_cond_move): Likewise for locals "insn", "first".
11378 (struct spill_fill_data): Likewise for field "init_after" and for
11379 elements of array field "prev_insn".
11380 (spill_restore_mem): Likewise for locals "insn", "first".
11381 (do_spill): Likewise for local "insn".
11382 (do_restore): Likewise.
11383 (ia64_expand_prologue): Likewise.
11384 (ia64_expand_epilogue): Likewise.
11385 (emit_insn_group_barriers): Likewise for locals "insn",
11386 "last_label".
11387 (emit_all_insn_group_barriers): Likewise for locals "insn",
11388 "last".
11389 (dfa_stop_insn): Likewise for this global.
11390 (dfa_pre_cycle_insn): Likewise.
11391 (ia64_nop): Likewise.
11392 (final_emit_insn_group_barriers): Likewise for locals "insn",
11393 "last".
11394 (emit_predicate_relation_info): Likewise for locals "head", "n",
11395 "insn", "b", "a".
11396 (ia64_reorg): Likewise for local "insn".
11397 (ia64_output_mi_thunk): Likewise.
11398 (expand_vec_perm_interleave_2): Likewise for local "seq".
11399
11400 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11401
11402 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11403 param 1 "insn" from rtx to rtx_insn *.
11404 (ix86_use_lea_for_mov): Likewise.
11405 (ix86_avoid_lea_for_addr): Likewise.
11406 (ix86_split_lea_for_addr): Likewise.
11407 (ix86_lea_for_add_ok): Likewise.
11408 (ix86_output_call_insn): Likewise.
11409
11410 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11411 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11412 (ix86_output_function_epilogue): Likewise for locals "insn",
11413 "deleted_debug_label".
11414 (legitimize_tls_address): Likewise for local "insn".
11415 (get_some_local_dynamic_name): Likewise.
11416 (increase_distance): Likewise for params "prev", "next".
11417 (distance_non_agu_define_in_bb): Likewise for params "insn",
11418 "start" and locals "prev", "next".
11419 (distance_non_agu_define): Likewise for param "insn".
11420 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11421 locals "next", "prev".
11422 (distance_agu_use): Likewise for param "insn".
11423 (ix86_lea_outperforms): Likewise.
11424 (ix86_ok_to_clobber_flags): Likewise.
11425 (ix86_avoid_lea_for_add): Likewise.
11426 (ix86_use_lea_for_mov): Likewise.
11427 (ix86_avoid_lea_for_addr): Likewise.
11428 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11429 (ix86_split_lea_for_addr): Likewise for param "insn".
11430 (ix86_lea_for_add_ok): Likewise for param "insn".
11431 (ix86_expand_carry_flag_compare): Likewise for local
11432 "compare_seq".
11433 (ix86_expand_int_movcc): Likewise.
11434 (ix86_output_call_insn): Likewise for param "insn".
11435 (ix86_output_call_insn): Likewise for local "i".
11436 (x86_output_mi_thunk): Introduce local "insn", using it in place
11437 of "tmp" when dealing with insns.
11438 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11439 "start".
11440 (ix86_pad_returns): Likewise for locals "ret", "prev".
11441 (ix86_count_insn_bb): Likewise for local "insn".
11442 (ix86_pad_short_function): Likewise for locals "ret", "insn".
11443 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11444 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11445 (expand_vec_perm_interleave2): Likewise for local "seq".
11446 (expand_vec_perm_vperm2f128_vblend): Likewise.
11447 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
11448 call to for_each_rtx with for_each_rtx_in_insn.
11449
11450 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11451
11452 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11453 "label" from rtx to rtx_code_label *.
11454 (ix86_expand_prologue): Likewise.
11455 (ix86_expand_split_stack_prologue): Likewise for locals "label",
11456 "varargs_label".
11457 (ix86_split_idivmod): Likewise for locals "end_label" and
11458 "qimode_label".
11459 (ix86_expand_branch): Likewise for local "label2".
11460 (ix86_expand_aligntest): Likewise for return type and local "label".
11461 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11462 "top_label".
11463 (expand_movmem_epilogue): Likewise for the various locals named
11464 "label".
11465 (expand_setmem_epilogue): Likewise.
11466 (expand_small_movmem_or_setmem): Likewise for local "label".
11467 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11468 Strengthen param "done_label" from rtx * to rtx_code_label **.
11469 Strengthen locals "loop_label" and "label" from rtx to
11470 rtx_code_label *.
11471 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11472 Likewise for locals "loop_label", "label".
11473 (ix86_expand_set_or_movmem): Likewise for locals "label",
11474 "jump_around_label", "hot_label".
11475 (ix86_expand_strlensi_unroll_1): Likewise for locals
11476 "align_2_label", align_3_label", "align_4_label", "end_0_label",
11477 "end_2_label".
11478 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11479 (void ix86_emit_i387_log1p): Likewise for locals "label1",
11480 "label2", "jump_label".
11481 (ix86_expand_sse_compare_and_jump): Likewise for return type and
11482 local "label".
11483 (ix86_expand_lfloorceil): Likewise for local "label".
11484 (ix86_expand_rint): Likewise.
11485 (ix86_expand_floorceildf_32): Likewise.
11486 (ix86_expand_floorceil): Likewise.
11487 (ix86_expand_rounddf_32): Likewise.
11488 (ix86_expand_trunc): Likewise.
11489 (ix86_expand_truncdf_32): Likewise.
11490 (ix86_expand_round): Likewise.
11491
11492 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11493
11494 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11495 first param from rtx to rtx_insn *.
11496 (h8300_insn_length_from_table): Likewise.
11497 * config/h8300/h8300.c (F): Likewise for return type and param
11498 "x".
11499 (Fpa): Add a checked cast to rtx_insn *.
11500 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11501 rtx_insn *.
11502 (final_prescan_insn): Likewise for param "insn".
11503 (h8300_binary_length): Likewise.
11504 (h8300_insn_length_from_table): Likewise.
11505
11506 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11507
11508 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11509 Strengthen first param "insn" from rtx to rtx_insn *.
11510
11511 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11512 Likewise.
11513 (frame_insn): Likewise for return type. Introduce local "insn"
11514 for use in place of local "x" for use as an rtx_insn *.
11515 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11516 (epiphany_expand_prologue): Likewise for local "insn".
11517 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11518 * config/epiphany/resolve-sw-modes.c
11519 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11520 "seq".
11521
11522 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11523
11524 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11525 param from rtx to rtx_insn *.
11526 (c6x_final_prescan_insn): Likewise for first param.
11527
11528 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11529 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11530 (c6x_expand_compare): Strengthen local "insns" from rtx to
11531 rtx_insn *.
11532 (c6x_get_unit_specifier): Likewise for param "insn".
11533 (c6x_print_unit_specifier_field): Likewise.
11534 (c6x_final_prescan_insn): Likewise.
11535 (emit_add_sp_const): Likewise for local "insn".
11536 (c6x_expand_prologue): Likewise.
11537
11538 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11539
11540 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11541 param 1 from rtx to rtx_insn *.
11542 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11543 the various locals named "insn".
11544 (expand_epilogue_reg_restore): Likewise.
11545 (frame_related_constant_load): Likewise.
11546 (add_to_reg): Likewise.
11547 (emit_link_insn): Likewise.
11548 (do_link): Likewise.
11549 (expand_interrupt_handler_prologue): Likewise.
11550 (branch_dest): Likewise for param "branch".
11551 (asm_conditional_branch): Likewise for param "insn".
11552 (gen_one_bundle): Likewise for elements of param "slot" and local
11553 "t".
11554 (bfin_gen_bundles): Likewise for locals "insn", "next" and
11555 elements of local "slot".
11556 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11557 "queue", "next_queue", "prev".
11558 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11559 (add_sched_insns_for_speculation): Likewise for local "insn".
11560
11561 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11562
11563 * config/avr/avr-protos.h (output_movqi): Strengthen first param
11564 from rtx to rtx_insn *.
11565 (output_movhi): Likewise.
11566 (output_movsisf): Likewise.
11567 (avr_out_tstsi): Likewise.
11568 (avr_out_tsthi): Likewise.
11569 (avr_out_tstpsi): Likewise.
11570 (avr_out_compare): Likewise.
11571 (avr_out_compare64): Likewise.
11572 (avr_out_movpsi): Likewise.
11573 (ashlqi3_out): Likewise.
11574 (ashlhi3_out): Likewise.
11575 (ashlsi3_out): Likewise.
11576 (ashrqi3_out): Likewise.
11577 (ashrhi3_out): Likewise.
11578 (ashrsi3_out): Likewise.
11579 (lshrqi3_out): Likewise.
11580 (lshrhi3_out): Likewise.
11581 (lshrsi3_out): Likewise.
11582 (avr_out_ashlpsi3): Likewise.
11583 (avr_out_ashrpsi3): Likewise.
11584 (avr_out_lshrpsi3): Likewise.
11585 (avr_out_fract): Likewise.
11586 (avr_out_sbxx_branch): Likewise.
11587 (avr_out_round): Likewise.
11588 (avr_out_xload): Likewise.
11589 (avr_out_movmem): Likewise.
11590 (adjust_insn_length): Likewise.
11591 (avr_out_lpm): Likewise.
11592 (reg_unused_after): Likewise.
11593 (_reg_unused_after): Likewise.
11594 (avr_jump_mode): Likewise for second param.
11595 (jump_over_one_insn): Likewise for first param.
11596 (avr_final_prescan_insn): Likewise.
11597 (out_shift_with_cnt): Likewise for second param.
11598
11599 * config/avr/avr.c (get_sequence_length): Likewise for param
11600 "insns" and local "insn".
11601 (emit_push_byte): Likewise for local "insn".
11602 (emit_push_sfr): Likewise.
11603 (avr_prologue_setup_frame): Likewise for locals "insn",
11604 "fp_plus_insns", "sp_plus_insns".
11605 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11606 "sp_plus_insns".
11607 (avr_jump_mode): Likewise for param "insn".
11608 (avr_final_prescan_insn): Likewise.
11609 (avr_find_unused_d_reg): Likewise.
11610 (avr_out_lpm_no_lpmx): Likewise.
11611 (avr_out_lpm): Likewise.
11612 (avr_out_xload): Likewise.
11613 (output_movqi): Likewise.
11614 (output_movhi): Likewise.
11615 (out_movqi_r_mr): Likewise.
11616 (out_movhi_r_mr): Likewise.
11617 (out_movsi_r_mr): Likewise.
11618 (out_movsi_mr_r): Likewise.
11619 (output_movsisf): Likewise.
11620 (avr_out_load_psi): Likewise.
11621 (avr_out_store_psi): Likewise.
11622 (avr_out_movpsi): Likewise.
11623 (out_movqi_mr_r): Likewise.
11624 (avr_out_movhi_mr_r_xmega): Likewise.
11625 (out_movhi_mr_r): Likewise.
11626 (compare_condition): Likewise for param "insn" and local "next".
11627 (compare_sign_p): Likewise for param "insn".
11628 (compare_diff_p): Likewise.
11629 (compare_eq_p): Likewise.
11630 (avr_out_compare): Likewise.
11631 (avr_out_compare64): Likewise.
11632 (avr_out_tsthi): Likewise.
11633 (avr_out_tstpsi): Likewise.
11634 (avr_out_tstsi): Likewise.
11635 (out_shift_with_cnt): Likewise.
11636 (ashlqi3_out): Likewise.
11637 (ashlhi3_out): Likewise.
11638 (avr_out_ashlpsi3): Likewise.
11639 (ashlsi3_out): Likewise.
11640 (ashrqi3_out): Likewise.
11641 (ashrhi3_out): Likewise.
11642 (avr_out_ashrpsi3): Likewise.
11643 (ashrsi3_out): Likewise.
11644 (lshrqi3_out): Likewise.
11645 (lshrhi3_out): Likewise.
11646 (avr_out_lshrpsi3): Likewise.
11647 (lshrsi3_out): Likewise.
11648 (avr_out_fract): Likewise.
11649 (avr_out_round): Likewise.
11650 (avr_adjust_insn_length): Likewise.
11651 (reg_unused_after): Likewise.
11652 (_reg_unused_after): Likewise.
11653 (avr_compare_pattern): Likewise.
11654 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11655 and locals "branch1", "branch2", "insn2", "jump".
11656 (avr_reorg): Likewise for local "insn".
11657 (avr_2word_insn_p): Likewise for param "insn".
11658 (jump_over_one_insn_p): Likewise.
11659 (avr_out_sbxx_branch): Likewise.
11660 (avr_out_movmem): Likewise.
11661
11662 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11663
11664 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11665 param from rtx to rtx_insn *.
11666 (thumb1_final_prescan_insn): Likewise.
11667 (thumb2_final_prescan_insn): Likewise.
11668
11669 * config/arm/arm.c (emit_set_insn): Strengthen return type from
11670 rtx to rtx_insn *.
11671 (struct minipool_node): Likewise for field "insn".
11672 (dump_minipool): Likewise for param "scan".
11673 (create_fix_barrier): Likewise for local "from". Strengthen local
11674 "label" from rtx to rtx_code_label *.
11675 (push_minipool_barrier): Strengthen param "insn" from rtx to
11676 rtx_insn *.
11677 (push_minipool_fix): Likewise.
11678 (note_invalid_constants): Likewise.
11679 (thumb2_reorg): Likewise for local "insn".
11680 (arm_reorg): Likewise.
11681 (thumb2_final_prescan_insn): Likewise for param
11682 "insn" and local "first_insn".
11683 (arm_final_prescan_insn): Likewise for param "insn" and locals
11684 "start_insn", "this_insn".
11685 (arm_debugger_arg_offset): Likewise for param "insn".
11686 (thumb1_emit_multi_reg_push): Likewise for return type and local
11687 "insn".
11688 (thumb1_final_prescan_insn): Likewise for param "insn".
11689 (thumb_far_jump_used_p): Likewise for local "insn".
11690 (thumb1_expand_prologue): Likewise.
11691 (arm_expand_epilogue_apcs_frame): Likewise.
11692 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11693 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11694 from rtx to rtx_code_label *.
11695 (arm_split_atomic_op): Likewise for local "label".
11696 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11697
11698 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11699
11700 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11701 first param from rtx to rtx_insn *.
11702 (arc_verify_short): Likewise.
11703 (arc_short_long): Likewise.
11704 (arc_need_delay): Likewise.
11705
11706 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11707 "target_insn".
11708 (arc_ccfsm_advance): Likewise for param "insn" and locals
11709 "start_insn", "this_insn".
11710 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11711 (arc_ccfsm_post_advance): Likewise for param "insn".
11712 (arc_next_active_insn): Likewise for return type and param "insn".
11713 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
11714 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11715 (output_short_suffix): Likewise for local "insn".
11716 (arc_final_prescan_insn): Likewise for param "insn". Remove
11717 now-redundant checked cast.
11718 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11719 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11720 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
11721 for use where lc_set became an insn.
11722 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11723 rtx to rtx_insn *.
11724 (arc_get_insn_variants): Likewise for local "prev".
11725 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11726 "next".
11727 (arc_predicate_delay_insns): Likewise for local "insn".
11728 (arc_pad_return): Likewise for local "prev". For now, add a
11729 checked cast when extracting the insn from "final_sequence".
11730 (arc_short_long): Likewise for param "insn".
11731 (arc_need_delay): Likewise for param "insn" and local "next".
11732 (arc_label_align): Likewise for locals "prev", "next".
11733
11734 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11735
11736 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11737 "insn" from rtx to rtx_insn *.
11738 (alpha_gp_save_rtx): Likewise for local "seq".
11739 (alpha_instantiate_decls): Likewise for local "top".
11740 (get_some_local_dynamic_name): Likewise for local "insn".
11741 (alpha_does_function_need_gp): Likewise.
11742 (set_frame_related_p): Likewise for return type and for locals
11743 "seq" and "insn".
11744 (emit_frame_store_1): Likewise for local "insn".
11745 (alpha_expand_prologue): Likewise for locals "insn", "seq".
11746 (alpha_end_function): Likewise for local "insn".
11747 (alpha_output_mi_thunk_osf): Likewise.
11748 (alphaev4_insn_pipe): Likewise for param "insn".
11749 (alphaev5_insn_pipe): Likewise.
11750 (alphaev4_next_group): Likewise for return type and param 1
11751 "insn".
11752 (alphaev5_next_group): Likewise.
11753 (alpha_align_insns_1): Likewise for return type and param 1 of
11754 callback param "next_group", and for locals "i", "next", "prev",
11755 "where", "where2", "insn".
11756
11757 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
11758
11759 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11760 rather than modifying the stmt.
11761
11762 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11763
11764 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11765 cgraph_state conversion.
11766
11767 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11768
11769 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11770 Strengthen local "insns" from rtx to rtx_insn *.
11771 (aarch64_set_frame_expr): Likewise for local "insn".
11772 (aarch64_save_or_restore_fprs): Likewise.
11773 (aarch64_save_or_restore_callee_save_registers): Likewise.
11774 (aarch64_expand_prologue): Likewise.
11775 (aarch64_expand_epilogue): Likewise.
11776 (aarch64_output_mi_thunk): Likewise.
11777 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11778 "label2" from rtx to rtx_code_label *.
11779 (aarch64_split_atomic_op): Likewise for local "label".
11780
11781 2014-08-25 Martin Liska <mliska@suse.cz>
11782
11783 * cgraph.h (symtab_node):
11784 (bool needed_p (void)): created from decide_is_symbol_needed
11785 (bool referred_to_p (void)): created from referred_to_p
11786 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11787 * cgraph.h (cgraph_node):
11788 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11789 (void expand (void)): created from expand_function
11790 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11791 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11792 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11793 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11794 * cgraph.h (varpool_node):
11795 (static void add (tree decl): created from varpool_add_new_variable
11796 * cgraph.h (cgraph_edge):
11797 void remove (void);
11798 (void remove_caller (void)): created from cgraph_edge_remove_caller
11799 (void remove_callee (void)): created from cgraph_edge_remove_callee
11800 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11801 created from cgraph_set_call_stmt
11802 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11803 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11804 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11805 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11806 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11807 created from cgraph_speculative_call_info
11808 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11809 int freq_scale, bool update_original)): created from cgraph_clone_edge
11810 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11811 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11812 (bool recursive_p (void)): created from cgraph_edge_recursive_p
11813 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11814 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11815 (static void rebuild_references (void)): created from cgraph_rebuild_references
11816 * cgraph.h (symbol_table):
11817 (create_reference): renamed from add_reference
11818 (maybe_create_reference): renamed from maybe_add_reference
11819 (void register_symbol (symtab_node *node)): new function
11820 (void clear_asm_symbols (void)): new function
11821 (void unregister (symtab_node *node)): new function
11822 (void release_symbol (cgraph_node *node, int uid)): new function
11823 (cgraph_node * allocate_cgraph_symbol (void)): new function
11824 (void initialize (void)): created from cgraph_init
11825 (symtab_node *first_symbol (void)):new function
11826 (asm_node *first_asm_symbol (void)):new function
11827 (symtab_node *first_defined_symbol (void)):new function
11828 (varpool_node *first_variable (void)):new function
11829 (varpool_node *next_variable (varpool_node *node)):new function
11830 (varpool_node *first_static_initializer (void)):new function
11831 (varpool_node *next_static_initializer (varpool_node *node)):new function
11832 (varpool_node *first_defined_variable (void)):new function
11833 (varpool_node *next_defined_variable (varpool_node *node)):new function
11834 (cgraph_node *first_defined_function (void)):new function
11835 (cgraph_node *next_defined_function (cgraph_node *node)):new function
11836 (cgraph_node *first_function (void)):new function
11837 (cgraph_node *next_function (cgraph_node *node)):new function
11838 (cgraph_node *first_function_with_gimple_body (void)):new function
11839 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11840 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11841 created from symtab_remove_unreachable_nodes
11842 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11843 (void process_new_functions (void)): created from cgraph_process_new_functions
11844 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11845 (bool output_variables (void)): created from varpool_node::output_variables
11846 (void output_asm_statements (void)): created from output_asm_statements
11847 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11848 (void compile (void)): created from compile
11849 (void output_weakrefs (void)): created from output_weakrefs
11850 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11851 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11852 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11853 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11854 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11855 created from cgraph_next_function_with_gimple_body
11856 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11857 created from cgraph_remove_edge_removal_hook
11858 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11859 created from cgraph_add_node_removal_hook
11860 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11861 created from cgraph_remove_node_removal_hook
11862 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11863 created from varpool_add_node_removal_hook
11864 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11865 created from varpool_remove_node_removal_hook
11866 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11867 created from cgraph_add_function_insertion_hook
11868 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11869 created from cgraph_remove_function_insertion_hook
11870 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11871 created from varpool_add_variable_insertion_hook
11872 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11873 created from varpool_remove_variable_insertion_hook
11874 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11875 created from cgraph_add_edge_duplication_hook
11876 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11877 created from cgraph_remove_edge_duplication_hook
11878 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11879 created from cgraph_add_node_duplication_hook
11880 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11881 created from cgraph_remove_node_duplication_hook
11882 (void call_edge_removal_hooks (cgraph_edge *e)):
11883 created from cgraph_call_edge_removal_hooks
11884 (void call_cgraph_insertion_hooks (cgraph_node *node)):
11885 created from call_function_insertion_hooks
11886 (void call_cgraph_removal_hooks (cgraph_node *node)):
11887 created from cgraph_call_node_removal_hooks
11888 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11889 created from cgraph_node::call_duplication_hooks
11890 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11891 created from cgraph_call_edge_duplication_hooks
11892 (void call_varpool_removal_hooks (varpool_node *node)):
11893 created from varpool_call_node_removal_hooks
11894 (void call_varpool_insertion_hooks (varpool_node *node)):
11895 created from varpool_call_variable_insertion_hooks
11896 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11897 created from insert_to_assembler_name_hash
11898 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11899 created from unlink_from_assembler_name_hash
11900 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11901 created from symtab_prevail_in_asm_name_hash
11902 (void symtab_initialize_asm_name_hash (void)):
11903 created from symtab_initialize_asm_name_hash
11904 (void change_decl_assembler_name (tree decl, tree name)):
11905 created from change_decl_assembler_name
11906 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11907 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11908 created from decl_assembler_name_hash
11909 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11910 created from decl_assembler_name_equal
11911 (static hashval_t hash_node_by_assembler_name (const void *p)):
11912 created from hash_node_by_assembler_name
11913 (static int eq_assembler_name (const void *p1, const void *p2)):
11914 created from eq_assembler_name
11915
11916 2014-08-25 Marek Polacek <polacek@redhat.com>
11917
11918 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11919
11920 2014-08-25 Petr Murzin <petr.murzin@intel.com>
11921
11922 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11923 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11924 SWI1248_AVX512BW mode iterator.
11925
11926 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
11927
11928 PR target/62111
11929 * config/sh/predicates.md (general_extend_operand): Disable
11930 TRUNCATE before reload completes.
11931
11932 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
11933
11934 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11935
11936 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
11937
11938 PR target/61996
11939 * config/sh/sh.opt (musermode): Allow negative form.
11940 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11941 targets that don't support it.
11942 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11943 Document -mno-usermode option.
11944
11945 2014-08-24 Kito Cheng <kito@0xlab.org>
11946
11947 * system.h (CALLER_SAVE_PROFITABLE): Poison.
11948 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11949 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11950 * doc/tm.texi: Regenerate.
11951
11952 2014-08-24 Kito Cheng <kito@0xlab.org>
11953
11954 * ira.c: Fix typo in comment.
11955
11956 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
11957
11958 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11959 Deprecate c++1y. Change language to reflect greater confidence in C++14.
11960
11961 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
11962
11963 PR target/62038
11964 * config/pa/pa.c (pa_output_function_epilogue): Don't set
11965 last_address when the current function is a thunk.
11966 (pa_asm_output_mi_thunk): When we don't have named sections or they
11967 are not being used, check that thunk can reach the stub table with a
11968 short branch.
11969
11970 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11971
11972 * web.c (union_match_dups): Strengthen param "insn" from rtx to
11973 rtx_insn *.
11974 (pass_web::execute): Likewise for local "insn".
11975
11976 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11977
11978 * var-tracking.c (struct micro_operation_def): Strengthen field
11979 "insn" from rtx to rtx_insn *.
11980 (struct emit_note_data_def): Likewise.
11981 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11982 (vt_stack_adjustments): Likewise for local "insn".
11983 (adjust_insn): Likewise for param "insn".
11984 (val_store): Likewise.
11985 (val_resolve): Likewise.
11986 (struct count_use_info): Likewise for field "insn".
11987 (log_op_type): Likewise for param "insn".
11988 (reverse_op): Likewise.
11989 (prepare_call_arguments): Likewise.
11990 (add_with_sets): The initial param takes an insn, but we can't
11991 yet strengthen it from rtx to rtx_insn * since it's used as a
11992 cselib_record_sets_hook callback. For now rename initial param
11993 from "insn" to "uncast_insn", and introduce a local "insn" of
11994 the stronger rtx_insn * type, with a checked cast.
11995 (compute_bb_dataflow): Strengthen local "insn" from rtx to
11996 rtx_insn *.
11997 (emit_note_insn_var_location): Likewise.
11998 (emit_notes_for_changes): Likewise.
11999 (emit_notes_for_differences): Likewise.
12000 (next_non_note_insn_var_location): Likewise for return type and
12001 for param "insn".
12002 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12003 (vt_initialize): Likewise for local "insn".
12004 (delete_debug_insns): Likewise for locals "insn" and "next".
12005
12006 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12007
12008 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12009 rtx_insn *.
12010 (mark_constant_pool): Likewise for local "insn".
12011
12012 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12013
12014 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12015 rtx to rtx_insn *.
12016 (dead_debug_promote_uses): Likewise.
12017 (dead_debug_insert_temp): Likewise.
12018
12019 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12020
12021 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12022 from const_rtx to const rtx_insn *.
12023 (store_killed_after): Likewise. Strengthen locals "last", "act"
12024 from rtx to rtx_insn *.
12025 (store_killed_before): Strengthen param "insn" from const_rtx to
12026 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
12027 (find_moveable_store): Strengthen param "insn" from rtx to
12028 rtx_insn *.
12029 (compute_store_table): Likewise for local "insn".
12030 (insert_insn_start_basic_block): Likewise for param "insn" and
12031 locals "prev", "before", "insn".
12032 (insert_store): For now, add a checked cast to rtx_insn * on the
12033 result of gen_move_insn.
12034 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12035 to rtx_insn *.
12036 (replace_store_insn): Likewise. For now, add a checked cast to
12037 rtx_insn * on the result of gen_move_insn.
12038
12039 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12040
12041 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12042 rtx_insn *.
12043 (expand_sjlj_dispatch_table): Likewise.
12044
12045 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12046
12047 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12048 "insn" from rtx to rtx_insn *.
12049
12050 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12051
12052 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12053 "insn" from rtx to rtx_insn *.
12054 (dup_block_and_redirect): Likewise for param 3 "before".
12055
12056 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12057 from rtx to rtx_insn *.
12058 (move_insn_for_shrink_wrap): Likewise.
12059 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12060 (dup_block_and_redirect): Likewise for param "before" and local
12061 "insn".
12062 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12063 "end".
12064 (convert_to_simple_return): Likewise for local "start".
12065
12066 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12067 Strengthen local "insn" from rtx to rtx_insn *, for use when
12068 invoking requires_stack_frame_p.
12069
12070 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12071
12072 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12073 rtx_insn *.
12074 (speculate_expr): Likewise for locals "orig_insn_rtx",
12075 "spec_insn_rtx".
12076 (eq_transformed_insns): Likewise for locals "i1", "i2".
12077 (check_for_new_jump): Likewise for return type and local "end".
12078 (find_new_jump): Likewise for return type and local "jump".
12079 (sel_split_edge): Likewise for local "jump".
12080 (sel_create_recovery_block): Likewise.
12081 (sel_redirect_edge_and_branch_force): Likewise.
12082 (sel_redirect_edge_and_branch): Likewise.
12083
12084 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12085
12086 * sel-sched.c (substitute_reg_in_expr): Strengthen local
12087 "new_insn" from rtx to rtx_insn *.
12088 (create_insn_rtx_with_rhs): Likewise for return type and for local
12089 "insn_rtx".
12090 (create_insn_rtx_with_lhs): Likewise.
12091 (create_speculation_check): Likewise for local "insn_rtx".
12092 (implicit_clobber_conflict_p): Likewise for local "insn".
12093 (get_expr_cost): Likewise.
12094 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12095 (move_cond_jump): Likewise for locals "next", "prev", "link",
12096 "head", "from", "to".
12097
12098 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12099
12100 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12101 "next" from rtx to rtx_insn *.
12102 (find_conditional_protection): Likewise for local "next".
12103 (is_conditionally_protected): Likewise for local "insn1".
12104 (is_pfree): Likewise for locals "insn1", "insn2".
12105
12106 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12107
12108 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12109 from rtx to rtx_insn *.
12110
12111 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12112 locals "insn1", "insn2" from rtx to rtx_insn *.
12113 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12114 locals "insn", "prev", "last_jump", "next_tail".
12115 (schedule_ebb): Likewise for params "head", "tail".
12116 (schedule_ebbs): Likewise for locals "tail", "head".
12117
12118 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12119 to rtx_insn on "last_insn" in one of the invocations of
12120 schedule_ebb.
12121
12122 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12123
12124 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12125 "elem", "insn" from rtx to rtx_insn *.
12126 (change_spec_dep_to_hard): Likewise.
12127 (get_back_and_forw_lists): Likewise for local "con".
12128 (sd_add_dep): Likewise for locals "elem", "insn".
12129 (sd_resolve_dep): Likewise for locals "pro", "con".
12130 (sd_unresolve_dep): Likewise.
12131 (sd_delete_dep): Likewise.
12132 (chain_to_prev_insn): Likewise for local "pro".
12133 (find_inc): Likewise for locals "pro", "con".
12134
12135 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12136
12137 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12138 to rtx_insn *.
12139 (reg_set_between_p): Strengthen local "insn" from const_rtx to
12140 const rtx_insn *.
12141 (modified_between_p): Strengthen local "insn" from rtx to
12142 rtx_insn *.
12143 (remove_reg_equal_equiv_notes_for_regno): Likewise.
12144 (keep_with_call_p): Strengthen local "i2" from const_rtx to
12145 const rtx_insn *.
12146
12147 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12148
12149 * resource.c (next_insn_no_annul): Strengthen local "next" from
12150 rtx to rtx_insn *.
12151 (mark_referenced_resources): Likewise for local "insn".
12152
12153 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12154
12155 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12156 to rtx_insn *.
12157 (find_reloads): Likewise for param 1.
12158 (subst_reloads): Likewise for sole param.
12159 (find_equiv_reg): Likwise for param 2.
12160 (regno_clobbered_p): Likwise for param 2.
12161 (reload): Likewise for param 1.
12162
12163 * caller-save.c (save_call_clobbered_regs): Strengthen local
12164 "insn" from rtx to rtx_insn *.
12165 (insert_one_insn): Likewise for local "insn".
12166
12167 * reload.c (this_insn): Likewise for this global.
12168 (find_reloads): Likewise for param "insn".
12169 (find_reloads_toplev): Likewise.
12170 (find_reloads_address): Likewise.
12171 (subst_reg_equivs): Likewise.
12172 (update_auto_inc_notes): Likewise.
12173 (find_reloads_address_1): Likewise.
12174 (find_reloads_subreg_address): Likewise.
12175 (subst_reloads): Likewise.
12176 (find_equiv_reg): Likewise, also for local "p".
12177 (regno_clobbered_p): Likewise for param "insn".
12178
12179 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12180 array.
12181 (spill_reg_store): Likewise for the elements of this array.
12182 (remove_init_insns): Likewise for local "equiv_insn".
12183 (will_delete_init_insn_p): Likewise for param "insn".
12184 (reload): Likewise for param ""first" and local "insn".
12185 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12186 rtx_insn *.
12187 (calculate_elim_costs_all_insns): Likewise.
12188 (delete_caller_save_insns): Likewise.
12189 (spill_failure): Likewise for param "insn".
12190 (delete_dead_insn): Likewise.
12191 (set_label_offsets): Likewise.
12192 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12193 "prev_insn".
12194 (elimination_costs_in_insn): Likewise for param "insn".
12195 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12196 when referring to an insn.
12197 (set_initial_label_offsets): Likewise.
12198 (set_offsets_for_label): Strengthen param "insn" from rtx to
12199 rtx_insn *.
12200 (init_eliminable_invariants): Likewise for param "first" and local
12201 "insn".
12202 (fixup_eh_region_note): Likewise for param "insn".
12203 (reload_as_needed): Likewise for locals "prev", "insn",
12204 "old_next", "old_prev", "next".
12205 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12206 "last".
12207 (reload_inheritance_insn): Strengthen elements of this array from
12208 rtx to rtx_insn *.
12209 (failed_reload): Likewise for param "insn".
12210 (choose_reload_regs): Likewise for local "insn". Replace use of
12211 NULL_RTX with NULL when referring to an insn.
12212 (input_reload_insns): Strengthen elements of this array from rtx
12213 to rtx_insn *.
12214 (other_input_address_reload_insns): Likewise for this global.
12215 (other_input_reload_insns): Likewise for this global.
12216 (input_address_reload_insns): Likwise for the elements of this
12217 array.
12218 (inpaddr_address_reload_insns): Likwise for the elements of this
12219 array.
12220 (output_reload_insns): Likewise for the elements of this array.
12221 (output_address_reload_insns): Likewise for the elements of this
12222 array.
12223 (outaddr_address_reload_insns): Likewise for the elements of this
12224 array.
12225 (operand_reload_insns): Likewise for this global.
12226 (other_operand_reload_insns): Likewise for this global.
12227 (other_output_reload_insns): Likewise for the elements of this
12228 array.
12229 (new_spill_reg_store): Likewise for the elements of this
12230 array.
12231 (emit_input_reload_insns): Likewise for locals "insn", "temp".
12232 Strengthen local "where" from rtx * to rtx_insn **.
12233 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12234 from rtx to rtx_insn *.
12235 (do_input_reload): Likewise for local "insn".
12236 (do_output_reload): Likewise for local "insn".
12237 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12238 (emit_insn_if_valid_for_reload): Likewise for return type and local
12239 "last". Add checked cast to rtx_insn when returning "insn" since
12240 this has been through emit_insn.
12241 (gen_reload): Strengthen return type and locals "last", "insn", "set"
12242 from rtx to rtx_insn *. Add checked cast to rtx_insn when
12243 returning "insn" since it's been through
12244 emit_insn_if_valid_for_reload at this point.
12245 (delete_output_reload): Strengthen param "insn" and locals
12246 "output_reload_insn", "i2" from rtx to rtx_insn *.
12247 (delete_address_reloads): Likewise for params "dead_insn",
12248 "current_insn" and locals "prev", "next".
12249 (delete_address_reloads_1): Likewise for params "dead_insn",
12250 "current_insn" and locals "prev", "i2".
12251 (inc_for_reload): Likewise for locals "last", "add_insn".
12252 (add_auto_inc_notes): Strengthen param "insn" from rtx to
12253 rtx_insn *.
12254
12255 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12256 param of this duplicate of the prototype from reload.h
12257
12258 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12259
12260 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12261 rtx to rtx_insn *.
12262 (regstat_bb_compute_calls_crossed): Likewise.
12263
12264 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12265
12266 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12267 to rtx_insn *.
12268 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12269 with an insn.
12270 (regrename_analyze): Strengthen local "insn" from rtx to
12271 rtx_insn *.
12272 (scan_rtx_reg): Likewise for param "insn".
12273 (scan_rtx_address): Likewise.
12274 (scan_rtx): Likewise.
12275 (restore_operands): Likewise.
12276 (record_out_operands): Likewise.
12277 (build_def_use): Likewise for local "insn". Replace use of
12278 NULL_RTX with NULL when dealing with an insn.
12279
12280 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12281
12282 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12283 * reginfo.c (reg_scan): Likewise, also for local "insn".
12284 (reg_scan_mark_refs): Likewise for param "insn".
12285 (init_subregs_of_mode): Likewise for local "insn".
12286
12287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12288
12289 * regcprop.c (struct queued_debug_insn_change): Strengthen field
12290 "insn" from rtx to rtx_insn *.
12291 (replace_oldest_value_reg): Likewise for param "insn".
12292 (replace_oldest_value_addr): Likewise.
12293 (replace_oldest_value_mem): Likewise.
12294 (apply_debug_insn_changes): Likewise for local "last_insn".
12295 (copyprop_hardreg_forward_1): Likewise for local "insn".
12296
12297 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12298
12299 * reg-stack.c (next_flags_user): Strengthen return type and param
12300 "insn" from rtx to rtx_insn *.
12301 (straighten_stack): Likewise for param "insn".
12302 (check_asm_stack_operands): Likewise.
12303 (remove_regno_note): Likewise.
12304 (emit_pop_insn): Likewise for return type, param "insn", local
12305 "pop_insn".
12306 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
12307 "limit" from rtx to rtx_insn *.
12308 (swap_to_top): Likewise for param "insn".
12309 (move_for_stack_reg): Likewise.
12310 (move_nan_for_stack_reg): Likewise.
12311 (swap_rtx_condition): Likewise.
12312 (compare_for_stack_reg): Likewise.
12313 (subst_all_stack_regs_in_debug_insn): Likewise.
12314 (subst_stack_regs_pat): Likewise, and local "insn2".
12315 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12316 rtx_insn *.
12317 (subst_stack_regs): Likewise.
12318 (change_stack): Likewise.
12319 (convert_regs_1): Likewise for locals "insn", "next".
12320
12321 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12322
12323 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12324 rtx_insn *.
12325 (combine_set_extension): Likewise for param "curr_insn".
12326 (transform_ifelse): Likewise for param "def_insn".
12327 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
12328 from vec<rtx> * to vec<rtx_insn *> *.
12329 (is_cond_copy_insn): Likewise for param "insn".
12330 (struct ext_state): Strengthen the four vec fields from vec<rtx>
12331 to vec<rtx_insn *>.
12332 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12333 local "def_insn" from rtx to rtx_insn *.
12334 (get_sub_rtx): Likewise for param "def_insn".
12335 (merge_def_and_ext): Likewise.
12336 (combine_reaching_defs): Likewise.
12337 (add_removable_extension): Likewise for param "insn".
12338 (find_removable_extensions): Likewise for local "insn".
12339 (find_and_remove_re): Likewise for locals "curr_insn" and
12340 "def_insn". Strengthen locals "reinsn_del_list" and
12341 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12342
12343 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12344
12345 * recog.c (split_insn): Strengthen param "insn" and locals
12346 "first", "last" from rtx to rtx_insn *.
12347 (split_all_insns): Likewise for locals "insn", "next".
12348 (split_all_insns_noflow): Likewise.
12349
12350 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12351
12352 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12353 const rtx_insn *.
12354 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12355 (debug_rtx_find): Likewise for param 1 "x".
12356
12357 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12358 const_rtx to const rtx_insn *. Likewise for local "insn".
12359 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12360 (debug_rtx_find): Likewise for param 1 "x".
12361 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12362 from const_rtx to const rtx_insn * within the appropriate cases of
12363 the switch statement.
12364
12365 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12366 Strengthen local "insns" from rtx to rtx_insn * since this is
12367 passed to a call to debug_rtx_list.
12368
12369 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12370
12371 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12372 to rtx_insn *.
12373
12374 * function.c (stack_protect_epilogue): Add checked cast to
12375 rtx_insn for now when invoking predict_insn_def.
12376
12377 * predict.c (predict_insn): Strengthen param "insn" from rtx to
12378 rtx_insn *.
12379 (predict_insn_def): Likewise.
12380 (rtl_predict_edge): Likewise for local "last_insn".
12381 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12382 const rtx_insn *.
12383 (combine_predictions_for_insn): Strengthen param "insn" from rtx
12384 to rtx_insn *.
12385 (bb_estimate_probability_locally): Likewise for local "last_insn".
12386 (expensive_function_p): Likewise for local "insn".
12387
12388 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12389 local "jmp", since this is used when invoking predict_insn_def.
12390
12391 2014-08-22 Marek Polacek <polacek@redhat.com>
12392
12393 PR c++/62199
12394 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12395
12396 2014-08-22 Marek Polacek <polacek@redhat.com>
12397
12398 PR c/61271
12399 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12400 a comparison in parens.
12401 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12402 in parens.
12403
12404 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12405
12406 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12407 rtx_insn *.
12408
12409 * cprop.c (fis_get_condition): Likewise.
12410
12411 * postreload.c (reload_cse_regs): Likewise for param "first".
12412 (reload_cse_simplify): Likewise for param "insn".
12413 (reload_cse_regs_1): Likewise for local "insn".
12414 (reload_cse_simplify_set): Likewise for param "insn".
12415 (reload_cse_simplify_operands): Likewise.
12416 (struct reg_use): Likewise for field "insn".
12417 (reload_combine_purge_insn_uses): Likewise for param "insn".
12418 (fixup_debug_insns): Likewise for params "from", "to" and local
12419 "insn".
12420 (try_replace_in_use): Likewise for local "use_insn".
12421 (reload_combine_recognize_const_pattern): Likewise for param
12422 "insn" and locals "add_moved_after_insn", "use_insn".
12423 (reload_combine_recognize_pattern): Likewise for param "insn" and
12424 local "prev".
12425 (reload_combine): Likewise for locals "insn", "prev".
12426 (reload_combine_note_use): Likewise for param "insn".
12427 (move2add_use_add2_insn): Likewise.
12428 (move2add_use_add3_insn): Likewise.
12429 (reload_cse_move2add): Likewise, also for local "next".
12430 (move2add_note_store): Likewise for local "insn".
12431
12432 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12433
12434 * postreload-gcse.c (struct occr): Strengthen field "insn" from
12435 rtx to rtx_insn *.
12436 (struct unoccr): Likewise.
12437 (struct modifies_mem): Likewise.
12438 (alloc_mem): Likewise for local "insn".
12439 (insert_expr_in_table): Likewise for param "insn".
12440 (dump_expr_hash_table_entry): Likewise for local "insn".
12441 (oprs_unchanged_p): Likewise for param "insn".
12442 (load_killed_in_block_p): Likewise for local "setter".
12443 (record_last_reg_set_info): Likewise for param "insn".
12444 (record_last_reg_set_info_regno): Likewise.
12445 (record_last_mem_set_info): Likewise.
12446 (record_last_set_info): Likewise for local "last_set_insn".
12447 (record_opr_changes): Likewise for param "insn".
12448 (hash_scan_set): Likewise.
12449 (compute_hash_table): Likewise for local "insn".
12450 (get_avail_load_store_reg): Likewise for param "insn".
12451 (eliminate_partially_redundant_load): Likewise, also for locals
12452 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
12453 RTX for insns.
12454 (eliminate_partially_redundant_loads): Likewise for local "insn".
12455
12456 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12457
12458 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12459 rtx to rtx_insn *.
12460 (expand_binop): Likewise for locals "entry_last", "last", "insns"
12461 (expand_twoval_unop): Likewise for locals entry_last", "last".
12462 (expand_twoval_binop): Likewise.
12463 (expand_twoval_binop_libfunc): Likewise for local "insns".
12464 (widen_leading): Likewise for local "last".
12465 (expand_doubleword_clz): Likewise for local "seq". Strengthen
12466 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12467 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12468 (expand_parity): Likewise for locals "last" and "seq".
12469 (expand_ffs): Likewise for local "seq". Strengthen local
12470 "nonzero_label" from rtx to rtx_code_label *.
12471 (expand_absneg_bit): Strengthen local "insns" from rtx to
12472 rtx_insn *.
12473 (expand_unop_direct): Likewise for local "last".
12474 (expand_unop): Likewise for locals "last", "insns".
12475 (expand_abs_nojump): Likewise for local "last".
12476 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12477 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12478 rtx_insn *.
12479 (expand_copysign_absneg): Strengthen local "label" from rtx to
12480 rtx_code_label *.
12481 (expand_copysign_bit): Strengthen local "insns" from rtx to
12482 rtx_insn *.
12483 (struct no_conflict_data): Likewise for fields "first", "insn".
12484 (emit_libcall_block_1): Likewise for param "insns" and locals
12485 "next", "last", "insn".
12486 (emit_libcall_block): For now, add a checked cast to rtx_insn *
12487 on "insns" when invoking emit_libcall_block_1. Ultimately we
12488 want to strengthen insns itself.
12489 (prepare_cmp_insn): Strengthen local "last" from rtx to
12490 rtx_insn *.
12491 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12492 (prepare_float_lib_cmp): Likewise for local "insns".
12493 (emit_conditional_move): Likewise for local "last".
12494 (emit_conditional_add): Likewise.
12495 (have_sub2_insn): Likewise for local "seq".
12496 (expand_float): Likewise for local "insns". Strengthen locals
12497 "label", "neglabel" from rtx to rtx_code_label *.
12498 (expand_fix): Likewise for locals "last", "insn", "insns" (to
12499 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12500 (expand_fixed_convert): Likewise for local "insns" (to
12501 rtx_insn *).
12502 (expand_sfix_optab): Likewise for local "last".
12503 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12504 to rtx_code_label *.
12505 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12506 from rtx to rtx_insn *.
12507 (expand_atomic_fetch_op): Likewise for local "insn".
12508 (maybe_legitimize_operand_same_code): Likewise for local "last".
12509 (maybe_legitimize_operands): Likewise.
12510
12511 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12512
12513 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12514 "insn" from rtx to rtx_insn *.
12515 (ps_rtl_insn): Likewise for return type.
12516 (doloop_register_get): Likewise for params "head", "tail" and
12517 locals "insn", "first_insn_not_to_check".
12518 (schedule_reg_move): Likewise for local "this_insn".
12519 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12520 of gen_move_insn for now.
12521 (reset_sched_times): Strengthen local "insn" from rtx to
12522 rtx_insn *.
12523 (permute_partial_schedule): Likewise.
12524 (duplicate_insns_of_cycles): Likewise for local "u_insn".
12525 (dump_insn_location): Likewise for param "insn".
12526 (loop_canon_p): Likewise for local "insn".
12527 (sms_schedule): Likewise.
12528 (print_partial_schedule): Likewise.
12529 (ps_has_conflicts): Likewise.
12530
12531 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12532
12533 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12534 "tailp" from rtx * to rtx_insn **.
12535
12536 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12537 from rtx to rtx_insn *.
12538 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12539 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
12540 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12541 rtx to rtx_insn *.
12542 * modulo-sched.c (const_iteration_count): Strengthen return type
12543 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
12544 use of NULL_RTX with NULL when working with insns.
12545 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12546 to rtx_insn *.
12547 (sms_schedule): Likewise.
12548 * sched-rgn.c (init_ready_list): Likewise, also for locals
12549 "src_head" and "src_next_tail".
12550 (compute_block_dependences): Likewise.
12551 (free_block_dependencies): Likewise.
12552 (debug_rgn_dependencies): Likewise.
12553 (free_rgn_deps): Likewise.
12554 (compute_priorities): Likewise.
12555 (schedule_region): Likewise.
12556 * sel-sched.c (find_ebb_boundaries): Likewise.
12557
12558 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12559 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12560
12561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12562
12563 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12564 from rtx to rtx_insn *.
12565 (new_seginfo): Likewise for param "insn".
12566 (create_pre_exit): Likewise for locals "last_insn",
12567 "before_return_copy", "return_copy".
12568 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12569 "mode_set".
12570
12571 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12572
12573 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12574 from rtx to rtx_insn *.
12575 (lra_push_insn): Likewise for 1st param.
12576 (lra_push_insn_and_update_insn_regno_info): Likewise.
12577 (lra_pop_insn): Likewise for return type.
12578 (lra_invalidate_insn_data): Likewise for 1st param.
12579 (lra_set_insn_deleted): Likewise.
12580 (lra_delete_dead_insn): Likewise.
12581 (lra_process_new_insns): Likewise for first 3 params.
12582 (lra_set_insn_recog_data): Likewise for 1st param.
12583 (lra_update_insn_recog_data): Likewise.
12584 (lra_set_used_insn_alternative): Likewise.
12585 (lra_invalidate_insn_regno_info): Likewise.
12586 (lra_update_insn_regno_info): Likewise.
12587 (lra_former_scratch_operand_p): Likewise.
12588 (lra_eliminate_regs_1): Likewise.
12589 (lra_get_insn_recog_data): Likewise.
12590
12591 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12592 rtx to rtx_insn *.
12593
12594 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12595 "mv1" and "mv2".
12596 (substitute_within_insn): New.
12597 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12598 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
12599 Replace call to "substitute" with call to substitute_within_insn.
12600
12601 * lra-constraints.c (curr_insn): Strengthen from rtx to
12602 rtx_insn *.
12603 (get_equiv_with_elimination): Likewise for param "insn".
12604 (match_reload): Strengthen params "before" and "after" from rtx *
12605 to rtx_insn **.
12606 (emit_spill_move): Likewise for return type. Add a checked cast
12607 to rtx_insn * on result of gen_move_insn for now.
12608 (check_and_process_move): Likewise for local "before". Replace
12609 NULL_RTX with NULL when referring to insns.
12610 (process_addr_reg): Strengthen params "before" and "after" from
12611 rtx * to rtx_insn **.
12612 (insert_move_for_subreg): Likewise.
12613 (simplify_operand_subreg): Strengthen locals "before" and "after"
12614 from rtx to rtx_insn *.
12615 (process_address_1): Strengthen params "before" and "after" from
12616 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
12617 rtx to rtx_insn *.
12618 (process_address): Strengthen params "before" and "after" from
12619 rtx * to rtx_insn **.
12620 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12621 (curr_insn_transform): Strengthen locals "before" and "after"
12622 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
12623 to insns.
12624 (loc_equivalence_callback): Update cast of "data", changing
12625 resulting type from rtx to rtx_insn *.
12626 (substitute_pseudo_within_insn): New.
12627 (inherit_reload_reg): Strengthen param "insn" from rtx to
12628 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
12629 NULL when referring to insns. Add a checked cast to rtx_insn *
12630 when using usage_insn to invoke lra_update_insn_regno_info.
12631 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12632 likewise for locals "restore", "save". Add checked casts to
12633 rtx_insn * when using usage_insn to invoke
12634 lra_update_insn_regno_info and lra_process_new_insns. Replace
12635 NULL_RTX with NULL when referring to insns.
12636 (split_if_necessary): Strengthen param "insn" from rtx to
12637 rtx_insn *.
12638 (update_ebb_live_info): Likewise for params "head", "tail" and local
12639 "prev_insn".
12640 (get_last_insertion_point): Likewise for return type and local "insn".
12641 (get_live_on_other_edges): Likewise for local "last".
12642 (inherit_in_ebb): Likewise for params "head", "tail" and locals
12643 "prev_insn", "next_insn", "restore".
12644 (remove_inheritance_pseudos): Likewise for local "prev_insn".
12645 (undo_optional_reloads): Likewise for local "insn".
12646
12647 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12648 "insn".
12649 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12650 insns.
12651 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12652 rtx_insn *.
12653 (spill_pseudos): Likewise for local "insn".
12654 (init_elimination): Likewise.
12655 (process_insn_for_elimination): Likewise for param "insn".
12656
12657 * lra-lives.c (curr_insn): Likewise.;
12658
12659 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12660 (remove_pseudos): Likewise for param "insn".
12661 (spill_pseudos): Likewise for local "insn".
12662 (lra_final_code_change): Likewise for locals "insn", "curr".
12663
12664 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12665 (lra_set_insn_deleted): Likewise.
12666 (lra_delete_dead_insn): Likewise, and for local "prev".
12667 (new_insn_reg): Likewise for param "insn".
12668 (lra_set_insn_recog_data): Likewise.
12669 (lra_update_insn_recog_data): Likewise.
12670 (lra_set_used_insn_alternative): Likewise.
12671 (get_insn_freq): Likewise.
12672 (invalidate_insn_data_regno_info): Likewise.
12673 (lra_invalidate_insn_regno_info): Likewise.
12674 (lra_update_insn_regno_info): Likewise.
12675 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12676 vec<rtx_insn *>.
12677 (lra_push_insn_1): Strengthen param "insn" from rtx to
12678 rtx_insn *.
12679 (lra_push_insn): Likewise.
12680 (lra_push_insn_and_update_insn_regno_info): Likewise.
12681 (lra_pop_insn): Likewise for return type and local "insn".
12682 (push_insns): Likewise for params "from", "to", and local "insn".
12683 (setup_sp_offset): Likewise for params "from", "last" and locals
12684 "before", "insn".
12685 (lra_process_new_insns): Likewise for params "insn", "before",
12686 "after" and local "last".
12687 (struct sloc): Likewise for field "insn".
12688 (lra_former_scratch_operand_p): Likewise for param "insn".
12689 (remove_scratches): Likewise for locals "insn", "last".
12690 (check_rtl): Likewise for local "insn".
12691 (add_auto_inc_notes): Likewise for param "insn".
12692 (update_inc_notes): Likewise for local "insn".
12693 (lra): Replace NULL_RTX with NULL when referring to insn.
12694
12695 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12696
12697 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12698 to rtx_insn *.
12699 (resolve_reg_notes): Likewise.
12700 (resolve_simple_move): Likewise for return type, param "insn", and
12701 locals "insns", "minsn".
12702 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12703 (resolve_use): Likewise.
12704 (resolve_debug): Likewise.
12705 (find_decomposable_shift_zext): Likewise.
12706 (resolve_shift_zext): Likewise for return type, param "insn", and
12707 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
12708 (decompose_multiword_subregs): Likewise for local "insn",
12709 "orig_insn", "decomposed_shift", "end".
12710
12711 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12712
12713 * basic-block.h (basic_block split_edge_and_insert): Strengthen
12714 param "insns" from rtx to rtx_insn *.
12715
12716 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12717 rtx to rtx_insn *.
12718 (struct iv_to_split): Likewise.
12719 (loop_exit_at_end_p): Likewise for local "insn".
12720 (split_edge_and_insert): Likewise for param "insns".
12721 (compare_and_jump_seq): Likewise for return type, param "cinsn",
12722 and locals "seq", "jump".
12723 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12724 "branch_code"; update invocations of compare_and_jump_seq to
12725 eliminate NULL_RTX in favor of NULL.
12726 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12727 rtx to rtx_insn *.
12728 (reset_debug_uses_in_loop): Likewise.
12729 (analyze_insn_to_expand_var): Likewise for param "insn".
12730 (analyze_iv_to_split_insn): Likewise.
12731 (analyze_insns_in_loop): Likewise for local "insn".
12732 (insert_base_initialization): Likewise for param
12733 "insn" and local "seq".
12734 (split_iv): Likewise for param "insn" and local "seq".
12735 (expand_var_during_unrolling): Likewise for param "insn".
12736 (insert_var_expansion_initialization): Likewise for local "seq".
12737 (combine_var_copies_in_loop_exit): Likewise.
12738 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12739 "insn".
12740 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12741 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12742 "next".
12743
12744 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12745
12746 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12747 rtx_insn *.
12748 (iv_analyze_result): Likewise.
12749 (iv_analyze_expr): Likewise.
12750 (biv_p): Likewise.
12751
12752 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12753 local "def_insn" from rtx to rtx_insn *.
12754 (get_biv_step_1): Likewise for local "insn".
12755 (iv_analyze_expr): Likewise for param "insn".
12756 (iv_analyze_def): Likewise for local "insn".
12757 (iv_analyze_op): Likewise for param "insn".
12758 (iv_analyze): Likewise.
12759 (iv_analyze_result): Likewise.
12760 (biv_p): Likewise.
12761 (suitable_set_for_replacement): Likewise.
12762 (simplify_using_initial_values): Likewise for local "insn".
12763 (iv_number_of_iterations): Likewise for param "insn".
12764 (check_simple_exit): Add checked cast to rtx_insn when invoking
12765 iv_number_of_iterations for now (until get_condition is
12766 strengthened).
12767
12768 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12769 "insn" from rtx to rtx_insn *.
12770 (analyze_insns_in_loop): Likewise for local "insn".
12771
12772 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12773
12774 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12775 to rtx_insn *.
12776 (struct invariant): Likewise.
12777 (hash_invariant_expr_1): Likewise for param "insn".
12778 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12779 (find_exits): Likewise for local "insn".
12780 (create_new_invariant): Likewise for param "insn".
12781 (check_dependencies): Likewise.
12782 (find_invariant_insn): Likewise.
12783 (record_uses): Likewise.
12784 (find_invariants_insn): Likewise.
12785 (find_invariants_bb): Likewise for local "insn".
12786 (get_pressure_class_and_nregs): Likewise for param "insn".
12787 (calculate_loop_reg_pressure): Likewise for local "insn".
12788
12789 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12790
12791 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12792 to rtx_insn *.
12793 (add_test): Likewise for locals "seq", "jump".
12794 (doloop_modify): Likewise for locals "sequence", "jump_insn".
12795
12796 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12797
12798 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12799 rtx_insn *.
12800 (rebuild_jump_labels_chain): Likewise for param "chain".
12801
12802 * cfgexpand.c (pass_expand::execute): Add checked cast to
12803 rtx_insn * when calling rebuild_jump_labels_chain in region where
12804 we know e->insns.r is non-NULL.
12805
12806 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12807 rtx_insn *.
12808 (rebuild_jump_labels): Likewise.
12809 (rebuild_jump_labels_chain): Likewise for param "chain".
12810 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12811 (init_label_info): Likewise for param "f".
12812 (maybe_propagate_label_ref): Likewise for params "jump_insn",
12813 "prev_nonjump_insn".
12814 (mark_all_labels): Likewise for param "f" and locals "insn",
12815 "prev_nonjump_insn".
12816
12817 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12818
12819 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12820 from rtx to rtx_insn *insn.
12821 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12822 (ira_add_allocno_copy): Likewise.
12823 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12824 rtx to rtx_insn *.
12825 (ira_create_copy): Likewise.
12826 (ira_add_allocno_copy): Likewise.
12827 (create_bb_allocnos): Likewise for local "insn".
12828 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12829 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12830 process_regs_for_copy for rtx_insn * param.
12831 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12832 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
12833 process_regs_for_copy for rtx_insn * param.
12834 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12835 * ira-costs.c (record_reg_classes): Likewise for param "insn".
12836 (record_operand_costs): Likewise.
12837 (scan_one_insn): Likewise for return type, and for param "insn".
12838 (process_bb_for_costs): Likewise for local "insn".
12839 (process_bb_node_for_hard_reg_moves): Likewise.
12840 * ira-emit.c (struct move): Likewise for field "insn".
12841 (create_move): Eliminate use of NULL_RTX when dealing with an
12842 rtx_insn *.
12843 (emit_move_list): Strengthen return type and locals "result",
12844 "insn" from rtx to rtx_insn *insn.
12845 (emit_moves): Likewise for locals "insns", "tmp".
12846 (ira_emit): Likewise for local "insn".
12847 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12848 "insn".
12849 (find_call_crossed_cheap_reg): Likewise.
12850 (process_bb_node_lives): Likewise for local "insn".
12851 * ira.c (decrease_live_ranges_number): Likewise.
12852 (compute_regs_asm_clobbered): Likewise.
12853 (build_insn_chain): Likewise.
12854 (find_moveable_pseudos): Likewise, also locals "def_insn",
12855 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
12856 to rtx_insn **. Add a checked cast when assigning from
12857 "closest_use" into closest_uses array in a region where we know
12858 it's a non-NULL insn.
12859 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12860 to rtx_insn *.
12861 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12862 "last_interesting_insn", "uin".
12863 (move_unallocated_pseudos): Likewise for locals "def_insn",
12864 "move_insn", "newinsn".
12865
12866 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12867
12868 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12869 Strengthen locals "done_label", "do_error" from rtx to
12870 rtx_code_label *.
12871 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12872 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
12873 rtx_code_label *.
12874 (ubsan_expand_si_overflow_neg_check): Likewise for locals
12875 "done_label", "do_error" to rtx_code_label * and local "last" to
12876 rtx_insn *.
12877 (ubsan_expand_si_overflow_mul_check): Likewise for locals
12878 "done_label", "do_error", "large_op0", "small_op0_large_op1",
12879 "one_small_one_large", "both_ops_large", "after_hipart_neg",
12880 "after_lopart_neg", "do_overflow", "hipart_different" to
12881 rtx_code_label * and local "last" to rtx_insn *.
12882
12883 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12884
12885 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12886 "insn" and "move_insn" from rtx to rtx_insn *.
12887
12888 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12889
12890 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12891 rtx_insn *.
12892 (cheap_bb_rtx_cost_p): Likewise.
12893 (first_active_insn): Likewise for return type and local "insn".
12894 (last_active_insn): Likewise for return type and locals "insn",
12895 "head".
12896 (struct noce_if_info): Likewise for fields "jump", "insn_a",
12897 "insn_b".
12898 (end_ifcvt_sequence): Likewise for return type and locals "insn",
12899 "seq".
12900 (noce_try_move): Likewise for local "seq".
12901 (noce_try_store_flag): Likewise.
12902 (noce_try_store_flag_constants): Likewise.
12903 (noce_try_addcc): Likewise.
12904 (noce_try_store_flag_mask): Likewise.
12905 (noce_try_cmove): Likewise.
12906 (noce_try_minmax): Likewise.
12907 (noce_try_abs): Likewise.
12908 (noce_try_sign_mask): Likewise.
12909 (noce_try_bitop): Likewise.
12910 (noce_can_store_speculate_p): Likewise for local "insn".
12911 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12912 seq".
12913 (check_cond_move_block): Likewise for local "insn".
12914 (cond_move_convert_if_block): Likewise.
12915 (cond_move_process_if_block): Likewise for locals "seq",
12916 "loc_insn".
12917 (noce_find_if_block): Likewise for local "jump".
12918 (merge_if_block): Likewise for local "last".
12919 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12920 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12921 (block_has_only_trap): Likewise for return type and local "trap".
12922 (find_if_case_1): Likewise for local "jump".
12923 (dead_or_predicable): Likewise for locals "head", "end", "jump",
12924 "insn".
12925
12926 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12927
12928 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12929 "last_insn", "loop_end" from rtx to rtx_insn *.
12930
12931 * hw-doloop.c (scan_loop): Likewise for local "insn".
12932 (discover_loop): Likewise for param "tail_insn".
12933 (discover_loops): Likewise for local "tail".
12934
12935 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12936 cast to rtx_insn * when assigning from an rtx local to a
12937 hwloop_info's "last_insn" field.
12938
12939 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12940
12941 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12942 (add_delay_dependencies): Strengthen local "pro" from rtx to
12943 rtx_insn *.
12944 (recompute_todo_spec): Likewise.
12945 (dep_cost_1): Likewise for locals "insn", "used".
12946 (schedule_insn): Likewise for local "dbg".
12947 (schedule_insn): Likewise for locals "pro", "next".
12948 (unschedule_insns_until): Likewise for local "con".
12949 (restore_pattern): Likewise for local "next".
12950 (estimate_insn_tick): Likewise for local "pro".
12951 (resolve_dependencies): Likewise for local "next".
12952 (fix_inter_tick): Likewise.
12953 (fix_tick_ready): Likewise for local "pro".
12954 (add_to_speculative_block): Likewise for locals "check", "twin",
12955 "pro".
12956 (sched_extend_bb): Likewise for locals "end", "insn".
12957 (init_before_recovery): Likewise for local "x".
12958 (sched_create_recovery_block): Likewise for local "barrier".
12959 (create_check_block_twin): Likewise for local "pro".
12960 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12961 "consumer".
12962 (unlink_bb_notes): Update for change to type of bb_header.
12963 Strengthen locals "prev", "label", "note", "next" from rtx to
12964 rtx_insn *.
12965 (clear_priorities): Likewise for local "pro".
12966
12967 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12968
12969 * gcse.c (struct occr): Strengthen field "insn" from rtx to
12970 rtx_insn *.
12971 (test_insn): Likewise for this global.
12972 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
12973 const rtx_insn *.
12974 (oprs_anticipatable_p): Likewise.
12975 (oprs_available_p): Likewise.
12976 (insert_expr_in_table): Strengthen param "insn" from rtx to
12977 rtx_insn *.
12978 (hash_scan_set): Likewise.
12979 (hash_scan_clobber): Likewise.
12980 (hash_scan_call): Likewise.
12981 (hash_scan_insn): Likewise.
12982 (compute_hash_table_work): Likewise for local "insn".
12983 (process_insert_insn): Likewise for return type and local "pat".
12984 (insert_insn_end_basic_block): Likewise for locals "new_insn",
12985 "pat", "pat_end", "maybe_cc0_setter".
12986 (pre_edge_insert): Likewise for local "insn".
12987 (pre_insert_copy_insn): Likewise for param "insn".
12988 (pre_insert_copies): Likewise for local "insn".
12989 (struct set_data): Likewise for field "insn".
12990 (single_set_gcse): Likewise for param "insn".
12991 (gcse_emit_move_after): Likewise.
12992 (pre_delete): Likewise for local "insn".
12993 (update_bb_reg_pressure): Likewise for param "from" and local
12994 "insn".
12995 (should_hoist_expr_to_dom): Likewise for param "from".
12996 (hoist_code): Likewise for local "insn".
12997 (get_pressure_class_and_nregs): Likewise for param "insn".
12998 (calculate_bb_reg_pressure): Likewise for local "insn".
12999 (compute_ld_motion_mems): Likewise.
13000
13001 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13002
13003 * genpeep.c (main): Rename param back from "uncast_ins1" to
13004 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
13005 checked cast.
13006
13007 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13008
13009 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13010
13011 PR target/62195
13012 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13013 documentation to state it is only for VSX operations.
13014
13015 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13016 constraint only active if VSX.
13017
13018 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13019 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13020 (lfiwzx): Likewise.
13021
13022 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13023
13024 * fwprop.c (single_def_use_dom_walker::before_dom_children):
13025 Strengthen local "insn" from rtx to rtx_insn *.
13026 (use_killed_between): Likewise for param "target_insn".
13027 (all_uses_available_at): Likewise for param "target_insn" and
13028 local "next".
13029 (update_df_init): Likewise for params "def_insn", "insn".
13030 (update_df): Likewise for param "insn".
13031 (try_fwprop_subst): Likewise for param "def_insn" and local
13032 "insn".
13033 (free_load_extend): Likewise for param "insn".
13034 (forward_propagate_subreg): Likewise for param "def_insn" and
13035 local "use_insn".
13036 (forward_propagate_asm): Likewise for param "def_insn" and local
13037 "use_insn".
13038 (forward_propagate_and_simplify): Likewise for param "def_insn"
13039 and local "use_insn".
13040 (forward_propagate_into): Likewise for locals "def_insn" and
13041 "use_insn".
13042
13043 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13044
13045 * function.c (emit_initial_value_sets): Strengthen local "seq"
13046 from rtx to rtx_insn *.
13047 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13048 local "seq".
13049 (instantiate_virtual_regs): Likewise for local "insn".
13050 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13051 (reorder_blocks_1): Likewise for param "insns" and local "insn".
13052 (expand_function_end): Likewise for locals "insn" and "seq".
13053 (epilogue_done): Likewise for local "insn".
13054 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13055 "last", "trial".
13056 (reposition_prologue_and_epilogue_notes): Likewise for locals
13057 "insn", "last", "note", "first".
13058 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13059 (pass_match_asm_constraints::execute): Likewise for local "insn".
13060
13061 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13062
13063 * output.h (final_scan_insn): Strengthen return type from rtx to
13064 rtx_insn *.
13065 (final_forward_branch_p): Likewise for param.
13066 (current_output_insn): Likewise for this global.
13067
13068 * final.c (rtx debug_insn): Likewise for this variable.
13069 (current_output_insn): Likewise.
13070 (get_attr_length_1): Rename param "insn" to "uncast_insn",
13071 adding "insn" back in as an rtx_insn * with a checked cast, so
13072 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13073 first param.
13074 (compute_alignments): Strengthen local "label" from rtx to
13075 rtx_insn *.
13076 (shorten_branches): Rename param from "first" to "uncast_first",
13077 introducing a new local rtx_insn * "first" using a checked cast to
13078 effectively strengthen "first" from rtx to rtx_insn * without
13079 affecting the type signature. Strengthen locals "insn", "seq",
13080 "next", "label" from rtx to rtx_insn *.
13081 (change_scope): Strengthen param "orig_insn" and local "insn" from
13082 rtx to rtx_insn *.
13083 (final_start_function): Rename param from "first" to "uncast_first",
13084 introducing a new local rtx_insn * "first" using a checked cast to
13085 effectively strengthen "first" from rtx to rtx_insn * without
13086 affecting the type signature. Strengthen local "insn" from rtx to
13087 rtx_insn *.
13088 (dump_basic_block_info): Strengthen param "insn" from rtx to
13089 rtx_insn *.
13090 (final): Rename param from "first" to "uncast_first",
13091 introducing a new local rtx_insn * "first" using a checked cast to
13092 effectively strengthen "first" from rtx to rtx_insn * without
13093 affecting the type signature. Strengthen locals "insn", "next"
13094 from rtx to rtx_insn *.
13095 (output_alternate_entry_point): Strengthen param "insn" from rtx to
13096 rtx_insn *.
13097 (call_from_call_insn): Strengthen param "insn" from rtx to
13098 rtx_call_insn *.
13099 (final_scan_insn): Rename param from "insn" to "uncast_insn",
13100 introducing a new local rtx_insn * "insn" using a checked cast to
13101 effectively strengthen "insn" from rtx to rtx_insn * without
13102 affecting the type signature. Strengthen return type and locals
13103 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
13104 now-redundant checked cast to rtx_insn * from both invocations of
13105 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
13106 introducing a local "call_insn" for use when invoking
13107 call_from_call_insn.
13108 (notice_source_line): Strengthen param "insn" from rtx to
13109 rtx_insn *.
13110 (leaf_function_p): Likewise for local "insn".
13111 (final_forward_branch_p): Likewise.
13112 (leaf_renumber_regs): Likewise for param "first".
13113 (rest_of_clean_state): Likewise for locals "insn" and "next".
13114 (self_recursive_call_p): Likewise for param "insn".
13115 (collect_fn_hard_reg_usage): Likewise for local "insn".
13116 (get_call_fndecl): Likewise for param "insn".
13117 (get_call_cgraph_rtl_info): Likewise.
13118 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13119 introducing a new local rtx_insn * "insn" using a checked cast to
13120 effectively strengthen "insn" from rtx to rtx_insn * without
13121 affecting the type signature.
13122
13123 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13124 cast when assigning from param "insn" to current_output_insn.
13125 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13126 so that we can assign it back to current_output_insn.
13127
13128 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13129
13130 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13131 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13132 atmxt540s and atmxt540sreva devices.
13133 * config/avr/avr-tables.opt: Regenerate.
13134 * config/avr/t-multilib: Regenerate.
13135 * doc/avr-mmcu.texi: Regenerate.
13136
13137 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13138
13139 * expr.c (convert_move): Strengthen local "insns" from rtx to
13140 rtx_insn *.
13141 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13142 "top_label" from rtx to rtx_code_label *.
13143 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13144 rtx_insn *.
13145 (emit_single_push_insn): Likewise for locals "prev", "last".
13146 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13147 to rtx_code_label *.
13148 (store_constructor): Likewise for locals "loop_start", "loop_end".
13149 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13150 rtx_insn *.
13151 (expand_expr_real_2): Likewise.
13152 (expand_expr_real_1): Strengthen local "label" from rtx to
13153 rtx_code_label *.
13154
13155 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13156
13157 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13158 from rtx to rtx_insn *.
13159 (store_bit_field_1): Likewise.
13160 (extract_bit_field_1): Likewise.
13161 (expand_mult_const): Likewise for local "insns".
13162 (expmed_mult_highpart): Strengthen local "label" from rtx to
13163 rtx_code_label *.
13164 (expand_smod_pow2): Likewise.
13165 (expand_sdiv_pow2): Likewise.
13166 (expand_divmod): Strengthen locals "last", "insn" from rtx to
13167 rtx_insn *. Strengthen locals "label", "label1", "label2",
13168 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13169 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13170 (emit_store_flag): Likewise.
13171 (emit_store_flag_force): Strengthen local "label" from rtx to
13172 rtx_code_label *.
13173 (do_cmp_and_jump): Likewise for param "label".
13174
13175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13176
13177 * explow.c (force_reg): Strengthen local "insn" from rtx to
13178 rtx_insn *.
13179 (adjust_stack_1): Likewise.
13180 (allocate_dynamic_stack_space): Likewise. Strengthen locals
13181 "final_label", "available_label", "space_available" from rtx to
13182 rtx_code_label *.
13183 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13184 (anti_adjust_stack_and_probe): Likewise.
13185
13186 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13187
13188 * except.h (sjlj_emit_function_exit_after): Strengthen param
13189 "after" from rtx to rtx_insn *. This is only called with
13190 result of get_last_insn (in function.c) so type-change should be
13191 self-contained.
13192
13193 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13194 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13195 to rtx_insn *. These fields are only used from except.c so this
13196 type-change should be self-contained to this patch.
13197
13198 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13199 local "last" from rtx to rtx_insn *.
13200 (dw2_build_landing_pads): Likewise for local "seq".
13201 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13202 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13203 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
13204 rtx to rtx_insn *.
13205 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13206 to rtx_insn *.
13207 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13208 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13209 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13210 referring to an insn. Strengthen local "dispatch_label" from
13211 rtx to rtx_code_label *.
13212 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13213 rtx_insn *.
13214 (expand_eh_return): Strengthen local "around_label" from
13215 rtx to rtx_code_label *.
13216 (convert_to_eh_region_ranges): Strengthen locals "iter",
13217 "last_action_insn", "first_no_action_insn",
13218 "first_no_action_insn_before_switch",
13219 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13220
13221 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13222
13223 * dwarf2out.c (last_var_location_insn): Strengthen this variable
13224 from rtx to rtx_insn *.
13225 (cached_next_real_insn): Likewise.
13226 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13227 working with insns.
13228 (dwarf2out_var_location): Strengthen locals "next_real",
13229 "next_note", "expected_next_loc_note", "last_start", "insn" from
13230 rtx to rtx_insn *.
13231
13232 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13233
13234 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13235 from rtx to rtx_insn *.
13236 (create_pseudo_cfg): Likewise for local "insn".
13237
13238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13239
13240 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13241 from rtx to rtx_insn *.
13242 (df_bb_regno_last_def_find): Likewise.
13243
13244 * df-problems.c (df_rd_bb_local_compute): Likewise.
13245 (df_lr_bb_local_compute): Likewise.
13246 (df_live_bb_local_compute): Likewise.
13247 (df_chain_remove_problem): Likewise.
13248 (df_chain_create_bb): Likewise.
13249 (df_word_lr_bb_local_compute): Likewise.
13250 (df_remove_dead_eq_notes): Likewise for param "insn".
13251 (df_note_bb_compute): Likewise for local "insn".
13252 (simulate_backwards_to_point): Likewise.
13253 (df_md_bb_local_compute): Likewise.
13254
13255 * df-scan.c (df_scan_free_bb_info): Likewise.
13256 (df_scan_start_dump): Likewise.
13257 (df_scan_start_block): Likewise.
13258 (df_install_ref_incremental): Likewise for local "insn".
13259 (df_insn_rescan_all): Likewise.
13260 (df_reorganize_refs_by_reg_by_insn): Likewise.
13261 (df_reorganize_refs_by_insn_bb): Likewise.
13262 (df_recompute_luids): Likewise.
13263 (df_bb_refs_record): Likewise.
13264 (df_update_entry_exit_and_calls): Likewise.
13265 (df_bb_verify): Likewise.
13266
13267 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13268
13269 * ddg.h (struct ddg_node): Strengthen fields "insn" and
13270 "first_note" from rtx to rtx_insn *.
13271 (get_node_of_insn): Likewise for param 2 "insn".
13272 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13273
13274 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13275 rtx_insn *.
13276 (mem_write_insn_p): Likewise.
13277 (mem_access_insn_p): Likewise.
13278 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13279 (def_has_ccmode_p): Likewise for param "insn".
13280 (add_cross_iteration_register_deps): Likewise for locals
13281 "def_insn" and "use_insn".
13282 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13283 (build_intra_loop_deps): Likewise for local "src_insn".
13284 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13285 to rtx_insn *.
13286 (get_node_of_insn): Likewise for param "insn".
13287
13288 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13289
13290 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13291 (deletable_insn_p): Strengthen param "insn" from rtx to
13292 rtx_insn *. Add checked cast to rtx_call_insn when invoking
13293 find_call_stack_args, since this is guarded by CALL_P (insn).
13294 (marked_insn_p): Strengthen param "insn" from rtx to
13295 rtx_insn *.
13296 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
13297 invoking find_call_stack_args, since this is guarded by
13298 CALL_P (insn).
13299 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13300 rtx_insn *; we know this is an insn since this was called by
13301 mark_nonreg_stores.
13302 (mark_nonreg_stores_2): Likewise.
13303 (mark_nonreg_stores): Strengthen param "insn" from rtx to
13304 rtx_insn *.
13305 (find_call_stack_args): Strengthen param "call_insn" from rtx to
13306 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13307 to rtx_insn *.
13308 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13309 from rtx to rtx_insn *.
13310 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13311 "next", "ref_insn".
13312 (delete_unmarked_insns): Likewise for locals "insn", "next".
13313 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13314 (mark_reg_dependencies): Likewise for param "insn".
13315 (rest_of_handle_ud_dce): Likewise for local "insn".
13316 (word_dce_process_block): Likewise.
13317 (dce_process_block): Likewise.
13318
13319 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13320
13321 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13322 from rtx to rtx_insn *.
13323 (struct change_cc_mode_args): Likewise for field "insn".
13324 (this_insn): Strengthen from rtx to rtx_insn *.
13325 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13326 with insn.
13327 (validate_canon_reg): Strengthen param "insn" from rtx to
13328 rtx_insn *.
13329 (canon_reg): Likewise.
13330 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
13331 dealing with insn.
13332 (record_jump_equiv): Strengthen param "insn" from rtx to
13333 rtx_insn *.
13334 (try_back_substitute_reg): Likewise, also for locals "prev",
13335 "bb_head".
13336 (find_sets_in_insn): Likewise for param "insn".
13337 (canonicalize_insn): Likewise.
13338 (cse_insn): Likewise. Add a checked cast.
13339 (invalidate_from_clobbers): Likewise for param "insn".
13340 (invalidate_from_sets_and_clobbers): Likewise.
13341 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13342 dealing with insn.
13343 (cse_prescan_path): Strengthen local "insn" from rtx to
13344 rtx_insn *.
13345 (cse_extended_basic_block): Likewise for locals "insn" and
13346 "prev_insn".
13347 (cse_main): Likewise for param "f".
13348 (check_for_label_ref): Likewise for local "insn".
13349 (set_live_p): Likewise for second param ("insn").
13350 (insn_live_p): Likewise for first param ("insn") and for local
13351 "next".
13352 (cse_change_cc_mode_insn): Likewise for first param "insn".
13353 (cse_change_cc_mode_insns): Likewise for first and second params
13354 "start" and "end".
13355 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13356 and "end".
13357 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13358 "cc_src_insn".
13359
13360 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13361 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13362 Anna Tikhonova <anna.tikhonova@intel.com>
13363 Ilya Tocar <ilya.tocar@intel.com>
13364 Andrey Turetskiy <andrey.turetskiy@intel.com>
13365 Ilya Verbin <ilya.verbin@intel.com>
13366 Kirill Yukhin <kirill.yukhin@intel.com>
13367 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13368
13369 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13370 New.
13371 * config/i386/sse.md
13372 (define_mode_iterator VI248_AVX2): Delete.
13373 (define_mode_iterator VI2_AVX2_AVX512BW): New.
13374 (define_mode_iterator VI48_AVX2): Ditto.
13375 (define_insn <shift_insn><mode>3): Delete.
13376 (define_insn "<shift_insn><mode>3<mask_name>" with
13377 VI2_AVX2_AVX512BW): New.
13378 (define_insn "<shift_insn><mode>3<mask_name>" with
13379 VI48_AVX2): Ditto.
13380
13381 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13382 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13383 Anna Tikhonova <anna.tikhonova@intel.com>
13384 Ilya Tocar <ilya.tocar@intel.com>
13385 Andrey Turetskiy <andrey.turetskiy@intel.com>
13386 Ilya Verbin <ilya.verbin@intel.com>
13387 Kirill Yukhin <kirill.yukhin@intel.com>
13388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13389
13390 * config/i386/sse.md
13391 (define_mode_iterator VI4F_BRCST32x2): New.
13392 (define_mode_attr 64x2_mode): Ditto.
13393 (define_mode_attr 32x2mode): Ditto.
13394 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13395 with VI4F_BRCST32x2): Ditto.
13396 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13397 with V16FI mode iterator): Ditto.
13398 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13399 with V16FI): Ditto.
13400 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13401 with VI8F_BRCST64x2): Ditto.
13402
13403 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13404 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13405 Anna Tikhonova <anna.tikhonova@intel.com>
13406 Ilya Tocar <ilya.tocar@intel.com>
13407 Andrey Turetskiy <andrey.turetskiy@intel.com>
13408 Ilya Verbin <ilya.verbin@intel.com>
13409 Kirill Yukhin <kirill.yukhin@intel.com>
13410 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13411
13412 * config/i386/sse.md
13413 (define_mode_iterator VI8_AVX512VL): New.
13414 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13415
13416 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13417
13418 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13419 (define_mode_iterator V48_AVX512VL): New.
13420 (define_mode_iterator V12_AVX512VL): Ditto.
13421 (define_insn <avx512>_load<mode>_mask): Split into two similar
13422 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13423 Refactor output template.
13424 (define_insn "<avx512>_store<mode>_mask"): Ditto.
13425
13426 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13427
13428 * cprop.c (struct occr): Strengthen field "insn" from rtx to
13429 rtx_insn *.
13430 (reg_available_p): Likewise for param "insn".
13431 (insert_set_in_table): Likewise.
13432 (hash_scan_set): Likewise.
13433 (hash_scan_insn): Likewise.
13434 (make_set_regs_unavailable): Likewise.
13435 (compute_hash_table_work): Likewise for local "insn".
13436 (reg_not_set_p): Strengthen param "insn" from const_rtx to
13437 const rtx_insn *.
13438 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13439 (try_replace_reg): Likewise.
13440 (find_avail_set): Likewise.
13441 (cprop_jump): Likewise for params "setcc", "jump".
13442 (constprop_register): Likewise for param "insn".
13443 (cprop_insn): Likewise.
13444 (do_local_cprop): Likewise.
13445 (local_cprop_pass): Likewise for local "insn".
13446 (bypass_block): Likewise for params "setcc" and "jump".
13447 (bypass_conditional_jumps): Likewise for locals "setcc" and
13448 "insn".
13449 (one_cprop_pass): Likewise for local "insn".
13450
13451 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13452
13453 * compare-elim.c (struct comparison_use): Strengthen field "insn"
13454 from rtx to rtx_insn *.
13455 (struct comparison): Likewise, also for field "prev_clobber".
13456 (conforming_compare): Likewise for param "insn".
13457 (arithmetic_flags_clobber_p): Likewise.
13458 (find_flags_uses_in_insn): Likewise.
13459 (find_comparison_dom_walker::before_dom_children): Likewise for
13460 locals "insn", "next", "last_clobber".
13461 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13462
13463 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13464
13465 * combine-stack-adj.c (struct csa_reflist): Strengthen field
13466 "insn" from rtx to rtx_insn *.
13467 (single_set_for_csa): Likewise for param "insn".
13468 (record_one_stack_ref): Likewise.
13469 (try_apply_stack_adjustment): Likewise.
13470 (struct record_stack_refs_data): Likewise for field "insn".
13471 (maybe_move_args_size_note): Likewise for params "last" and "insn".
13472 (prev_active_insn_bb): Likewise for return type and param "insn".
13473 (next_active_insn_bb): Likewise.
13474 (force_move_args_size_note): Likewise for params "prev" and "last"
13475 and locals "test", "next_candidate", "prev_candidate".
13476 (combine_stack_adjustments_for_block): Strengthen locals
13477 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13478 rtx_insn *.
13479
13480 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13481
13482 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13483 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13484 (subst_insn): Likewise for this variable.
13485 (added_links_insn): Likewise.
13486 (struct insn_link): Likewise for field "insn".
13487 (alloc_insn_link): Likewise for param "insn".
13488 (struct undobuf): Likewise for field "other_insn".
13489 (find_single_use): Likewise for param "insn" and local "next".
13490 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13491 (delete_noop_moves): Likewise for locals "insn", "next".
13492 (create_log_links): Likewise for locals "insn", "use_insn".
13493 Strengthen local "next_use" from rtx * to rtx_insn **.
13494 (insn_a_feeds_b): Likewise for params "a", "b".
13495 (combine_instructions): Likewise for param "f" and locals "insn",
13496 "next", "prev", "first", "last_combined_insn", "link", "link1",
13497 "temp". Replace use of NULL_RTX with NULL when referring to
13498 insns.
13499 (setup_incoming_promotions): Likewise for param "first"
13500 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13501 (can_combine_p): Likewise for params "insn", "i3", "pred",
13502 "pred2", "succ", "succ2" and for local "p".
13503 (combinable_i3pat): Likewise for param "i3".
13504 (cant_combine_insn_p): Likewise for param "insn".
13505 (likely_spilled_retval_p): Likewise.
13506 (adjust_for_new_dest): Likewise.
13507 (update_cfg_for_uncondjump): Likewise, also for local "insn".
13508 (try_combine): Likewise for return type and for params "i3", "i2",
13509 "i1", "i0", "last_combined_insn", and for locals "insn",
13510 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13511 "i0_insn". Eliminate local "tem" in favor of new locals
13512 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
13513 checked cast for now to rtx_insn * on the return type of
13514 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
13515 insns.
13516 (find_split_point): Strengthen param "insn" from rtx to
13517 rtx_insn *.
13518 (simplify_set): Likewise for local "other_insn".
13519 (recog_for_combine): Likewise for param "insn".
13520 (record_value_for_reg): Likewise.
13521 (record_dead_and_set_regs_1): Likewise for local
13522 "record_dead_insn".
13523 (record_dead_and_set_regs): Likewise for param "insn".
13524 (record_promoted_value): Likewise.
13525 (check_promoted_subreg): Likewise.
13526 (get_last_value_validate): Likewise.
13527 (reg_dead_at_p): Likewise.
13528 (move_deaths): Likewise for param "to_insn".
13529 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13530 and locals "place", "place2", "cc0_setter". Eliminate local "tem
13531 in favor of new locals "tem_note" and "tem_insn", the latter being
13532 an rtx_insn *.
13533 (distribute_links): Strengthen locals "place", "insn" from rtx to
13534 rtx_insn *.
13535
13536 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13537
13538 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13539 than a const_rtx.
13540 (can_delete_label_p): Require a const rtx_code_label * rather than
13541 a const_rtx.
13542 (delete_insn): Add checked cast to rtx_code_label * when we know
13543 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
13544 rtx to rtx_insn *.
13545 (delete_insn_chain): Strengthen locals "prev" and "current" from
13546 rtx to rtx_insn *. Add a checked cast when assigning from
13547 "finish" (strengthening the params will come later). Add a
13548 checked cast to rtx_note * in region where we know
13549 NOTE_P (current).
13550 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13551 rtx_insn *.
13552 (compute_bb_for_insn): Likewise.
13553 (free_bb_for_insn): Likewise for local "insn".
13554 (compute_bb_for_insn): Likewise.
13555 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13556 local "insn" from rtx to rtx_insn *
13557 (flow_active_insn_p): Require a const rtx_insn * rather than a
13558 const_rtx.
13559 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13560 rtx_insn *.
13561 (can_fallthru): Likewise for locals "insn" and "insn2".
13562 (bb_note): Likewise for local "note".
13563 (first_insn_after_basic_block_note): Likewise for local "note" and
13564 for return type.
13565 (rtl_split_block): Likewise for locals "insn" and "next".
13566 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13567 "end".
13568 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13569 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13570 "prev", "tmp".
13571 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13572 them), "kill_from", "barrier", "new_insn".
13573 (patch_jump_insn): Likewise for params "insn", "old_label".
13574 (redirect_branch_edge): Likewise for locals "old_label", "insn".
13575 (force_nonfallthru_and_redirect): Likewise for locals "insn",
13576 "old_label", "new_label".
13577 (rtl_tidy_fallthru_edge): Likewise for local "q".
13578 (rtl_split_edge): Likewise for locals "before", "last".
13579 (commit_one_edge_insertion): Likewise for locals "before",
13580 "after", "insns", "tmp", "last", adding a checked cast where
13581 currently necessary.
13582 (commit_edge_insertions): Likewise.
13583 (rtl_dump_bb): Likewise for locals "insn", "last".
13584 (print_rtl_with_bb): Likewise for local "x".
13585 (rtl_verify_bb_insns): Likewise for local "x".
13586 (rtl_verify_bb_pointers): Likewise for local "insn".
13587 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13588 "head", "end".
13589 (rtl_verify_fallthru): Likewise for local "insn".
13590 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13591 (purge_dead_edges): Likewise for local "insn".
13592 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13593 (skip_insns_after_block): Likewise for return type and for locals
13594 "insn", "last_insn", "next_head", "prev".
13595 (record_effective_endpoints): Likewise for locals "next_insn",
13596 "insn", "end".
13597 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13598 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13599 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13600 (duplicate_insn_chain): For now, add checked cast from rtx to
13601 rtx_insn * when returning insn.
13602 (cfg_layout_duplicate_bb): Likewise for local "insn".
13603 (cfg_layout_delete_block): Likewise for locals "insn", "next",
13604 "prev", "remaints".
13605 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13606 (rtl_block_empty_p): Likewise.
13607 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13608 "split_point", "last".
13609 (rtl_block_ends_with_call_p): Likewise for local "insn".
13610 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13611 const rtx_insn *.
13612 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13613 "split_at_insn" from rtx to rtx_insn *.
13614 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13615 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13616 to const rtx_insn *.
13617 (rtl_account_profile_record): Likewise.
13618
13619 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13620
13621 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13622 rtx to rtx_insn *.
13623 (average_num_loop_insns): Likewise.
13624 (init_set_costs): Likewise for local "seq".
13625 (seq_cost): Likewise for param "seq", from const_rtx to const
13626 rtx_insn *.
13627
13628 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13629
13630 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13631 rtx to rtx_insn *.
13632
13633 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13634
13635 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13636 "f1" and "f2" from rtx * to rtx_insn **.
13637 (flow_find_head_matching_sequence): Likewise.
13638
13639 * cfgcleanup.c (try_simplify_condjump): Strengthen local
13640 "cbranch_insn" from rtx to rtx_insn *.
13641 (thread_jump): Likewise for local "insn".
13642 (try_forward_edges): Likewise for local "last".
13643 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13644 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13645 "real_b_end".
13646 (can_replace_by): Likewise for params "i1", "i2".
13647 (old_insns_match_p): Likewise.
13648 (merge_notes): Likewise.
13649 (walk_to_nondebug_insn): Likewise for param "i1".
13650 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13651 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
13652 "afterlast1", "afterlast2" from rtx to rtx_insn *.
13653 (flow_find_head_matching_sequence): Strengthen params "f1" and
13654 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
13655 "last1", "last2", "beforelast1", "beforelast2" from rtx to
13656 rtx_insn *.
13657 (outgoing_edges_match): Likewise for locals "last1", "last2".
13658 (try_crossjump_to_edge): Likewise for local "insn".
13659 Replace call to for_each_rtx with for_each_rtx_in_insn.
13660
13661 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13662 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13663 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
13664 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13665 (try_optimize_cfg): Strengthen local "last" from rtx to
13666 rtx_insn *.
13667 (delete_dead_jumptables): Likewise for locals "insn", "next",
13668 "label".
13669
13670 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13671 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13672 "rtx else_first_tail", to reflect the basic-block.h changes above.
13673
13674 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13675
13676 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13677 rtx_insn *.
13678 (purge_dead_tablejump_edges): Likewise.
13679 (find_bb_boundaries): Likewise for locals "insn", "end",
13680 "flow_transfer_insn".
13681
13682 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13683
13684 * caller-save.c (save_call_clobbered_regs): Strengthen locals
13685 "ins" and "prev" from rtx to rtx_insn *.
13686
13687 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13688
13689 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13690 rtx_insn *.
13691 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13692 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13693 "scan_start".
13694 (load_register_parameters): Likewise for local "before_arg".
13695 (check_sibcall_argument_overlap): Likewise for param "insn".
13696 (expand_call): Likewise for locals "normal_call_insns",
13697 "tail_call_insns", "insns", "before_call", "after_args",
13698 "before_arg", "last", "prev". Strengthen one of the "last" from
13699 rtx to rtx_call_insn *.
13700 (fixup_tail_calls): Strengthen local "insn" from rtx to
13701 rtx_insn *.
13702 (emit_library_call_value_1): Likewise for locals "before_call" and
13703 "last".
13704
13705 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13706
13707 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13708 and "last" from rtx to rtx_insn *.
13709 (expand_builtin_nonlocal_goto): Likewise for local "insn".
13710 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13711 rtx_call_insn *.
13712 (expand_errno_check): Strengthen local "lab" from rtx to
13713 rtx_code_label *.
13714 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13715 rtx_insn *.
13716 (expand_builtin_mathfn_2): Likewise.
13717 (expand_builtin_mathfn_ternary): Likewise.
13718 (expand_builtin_mathfn_3): Likewise.
13719 (expand_builtin_interclass_mathfn): Likewise for local "last".
13720 (expand_builtin_int_roundingfn): Likewise for local "insns".
13721 (expand_builtin_int_roundingfn_2): Likewise.
13722 (expand_builtin_strlen): Likewise for local "before_strlen".
13723 (expand_builtin_strncmp): Likewise for local "seq".
13724 (expand_builtin_signbit): Likewise for local "last".
13725 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13726 from rtx to rtx_code_label *.
13727 (expand_stack_restore): Strengthen local "prev" from rtx to
13728 rtx_insn *.
13729
13730 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13731
13732 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13733 to rtx_insn *.
13734 (struct btr_def_s): Likewise.
13735 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13736 const rtx_insn *.
13737 (add_btr_def): Likewise.
13738 (new_btr_user): Likewise.
13739 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13740 rtx to rtx_insn *.
13741 (link_btr_uses): Likewise.
13742 (move_btr_def): Likewise for locals "insp", "old_insn",
13743 "new_insn". Add checked cast to rtx_insn * for now on result of
13744 gen_move_insn.
13745 (can_move_up): Strengthen param "insn" from const_rtx to
13746 const rtx_insn *.
13747
13748 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13749
13750 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13751 rtx_insn *.
13752 (get_uncond_jump_length): Likewise for locals "label", "jump".
13753 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13754 "jump", "insn".
13755 (add_labels_and_missing_jumps): Likewise for local "new_jump".
13756 (fix_up_fall_thru_edges): Likewise for local "old_jump".
13757 (find_jump_block): Likewise for local "insn".
13758 (fix_crossing_conditional_branches): Likewise for locals
13759 "old_jump", "new_jump".
13760 (fix_crossing_unconditional_branches): Likewise for locals
13761 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13762 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13763
13764 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13765
13766 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13767 rtx to rtx_insn *.
13768 (struct mem_insn): Likewise for field "insn".
13769 (reg_next_use): Strengthen from rtx * to rtx_insn **.
13770 (reg_next_inc_use): Likewise.
13771 (reg_next_def): Likewise.
13772 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13773 from rtx to rtx_insn *.
13774 (move_insn_before): Likewise for param "next_insn" and local "insns".
13775 (attempt_change): Likewise for local "mov_insn".
13776 (try_merge): Likewise for param "last_insn".
13777 (get_next_ref): Likewise for return type and local "insn".
13778 Strengthen param "next_array" from rtx * to rtx_insn **.
13779 (parse_add_or_inc): Strengthen param "insn" from rtx to
13780 rtx_insn *.
13781 (find_inc): Likewise for locals "insn" and "other_insn" (three of
13782 the latter).
13783 (merge_in_block): Likewise for locals "insn", "curr",
13784 "other_insn".
13785 (pass_inc_dec::execute): Update allocations of the arrays to
13786 reflect the stronger types.
13787
13788 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13789
13790 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13791 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
13792 from rtx to rtx_code_label *.
13793
13794 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13795
13796 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13797 to rtx_insn *.
13798
13799 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13800
13801 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13802 generated a warning and prevented bootstrapping the compiler.
13803
13804 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13805
13806 * rtl.h (delete_related_insns): Strengthen return type from rtx to
13807 rtx_insn *.
13808
13809 * jump.c (delete_related_insns): Likewise, also for locals "next"
13810 and "prev".
13811
13812 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13813
13814 * genautomata.c (output_internal_insn_latency_func): When writing
13815 the function "internal_insn_latency" to insn-automata.c,
13816 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13817 allowing the optional guard function of (define_bypass) clauses to
13818 expect a pair of rtx_insn *, rather than a pair of rtx.
13819 (output_insn_latency_func): When writing the function
13820 "insn_latency", add an "uncast_" prefix to params "insn" and
13821 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13822 using checked casts from the params, thus enabling the above
13823 change to the generated "internal_insn_latency" function.
13824
13825 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
13826
13827 PR tree-optimization/62091
13828 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13829 handle correctly arrays.
13830 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13831 inheritance binfos.
13832 (record_known_type): Walk into inner type.
13833 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13834 condition on no type changes.
13835
13836 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13837
13838 * genattrtab.c (write_attr_get): Within the generated get_attr_
13839 functions, rename param "insn" to "uncast_insn" and reintroduce
13840 "insn" as an local rtx_insn * using a checked cast, so that "insn"
13841 is an rtx_insn * within insn-attrtab.c
13842
13843 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13844
13845 * output.h (peephole): Strengthen return type from rtx to
13846 rtx_insn *.
13847 * rtl.h (delete_for_peephole): Likewise for both params.
13848 * genpeep.c (main): In generated "peephole" function, strengthen
13849 return type and local "insn" from rtx to rtx_insn *. For now,
13850 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13851 rtx_insn *, with a checked cast.
13852 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13853 locals "insn", "next", "prev" from rtx to rtx_insn *.
13854
13855 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
13856
13857 PR tree-optimization/62112
13858 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13859 * gimple-iterator.h (gsi_replace): Return bool.
13860 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13861 moved from ref_may_alias_global_p.
13862 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13863 New overloads.
13864 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13865 (stmt_kills_ref_p_1): Rename...
13866 (stmt_kills_ref_p): ... to this.
13867 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13868 stmt_kills_ref_p): Declare.
13869 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13870 Move the self-assignment case...
13871 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13872
13873 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13874
13875 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13876
13877 * emit-rtl.c (try_split): Likewise, also for locals "before" and
13878 "after". For now, don't strengthen param "trial", which requires
13879 adding checked casts when returning it.
13880
13881 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13882
13883 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13884 "label" from rtx to rtx_code_label *. Strengthen param 1 of
13885 "var_location" hook from rtx to rtx_insn *.
13886 (debug_nothing_rtx): Delete in favor of...
13887 (debug_nothing_rtx_code_label): New prototype.
13888 (debug_nothing_rtx_rtx): Delete unused prototype.
13889 (debug_nothing_rtx_insn): New prototype.
13890
13891 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13892 invoking debug_hooks->var_location (in two places, one in a NOTE
13893 case of a switch statement, the other guarded by a CALL_P
13894 conditional. Add checked cast to rtx_code_label * when invoking
13895 debug_hooks->label (within CODE_LABEL case of switch statement).
13896
13897 * dbxout.c (dbx_debug_hooks): Update "label" hook from
13898 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13899 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13900 (xcoff_debug_hooks): Likewise.
13901 * debug.c (do_nothing_debug_hooks): Likewise.
13902 (debug_nothing_rtx): Delete in favor of...
13903 (debug_nothing_rtx_insn): New function.
13904 (debug_nothing_rtx_rtx): Delete unused function.
13905 (debug_nothing_rtx_code_label): New function.
13906 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13907 debug_nothing_rtx to debug_nothing_rtx_code_label.
13908 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13909 to rtx_insn *.
13910 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13911 debug_nothing_rtx to debug_nothing_rtx_insn.
13912 (sdbout_label): Strengthen param "insn" from rtx to
13913 rtx_code_label *.
13914 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13915 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13916 "var_location" hook from debug_nothing_rtx to
13917 debug_nothing_rtx_insn.
13918
13919 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13920
13921 * recog.h (insn_output_fn): Update this function typedef to match
13922 the changes below to the generated output functions, strengthening
13923 the 2nd param from rtx to rtx_insn *.
13924
13925 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13926 insn when invoking an output function, to match the new signature
13927 of insn_output_fn with a stronger second param.
13928
13929 * genconditions.c (write_header): In the generated code for
13930 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13931 to match the other changes in this patch.
13932
13933 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13934 the generated "gen_" functions from rtx to rtx_insn * within their
13935 implementations.
13936
13937 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13938 the subfunctions within the generated "recog_", "split", "peephole2"
13939 function trees from rtx to rtx_insn *. For now, the top-level
13940 generated functions ("recog", "split", "peephole2") continue to
13941 take a plain rtx for "insn", to avoid introducing dependencies on
13942 other patches. Rename this 2nd param from "insn" to
13943 "uncast_insn", and reintroduce "insn" as a local variable of type
13944 rtx_insn *, initialized at the top of the generated function with
13945 a checked cast on "uncast_insn".
13946 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13947 the generated "gen_" functions from rtx to rtx_insn * within their
13948 prototypes.
13949
13950 * genoutput.c (process_template): Strengthen the 2nd param within
13951 the generated "output_" functions "insn" from rtx to rtx_insn *.
13952
13953 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13954
13955 * tree-profile.c (tree_profiling): Skip external functions
13956 when doing coverage instrumentation.
13957 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13958
13959 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13960
13961 * config/rs6000/altivec.h (vec_cpsgn): New #define.
13962 (vec_mergee): Likewise.
13963 (vec_mergeo): Likewise.
13964 (vec_cntlz): Likewise.
13965 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
13966 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
13967 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
13968 VMRGEW, and VMRGOW.
13969 * doc/extend.texi: Document various forms of vec_cpsgn,
13970 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13971 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
13972 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
13973 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
13974 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
13975
13976 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13977
13978 * config/rs6000/rs6000.c (context.h): New include.
13979 (tree-pass.h): Likewise.
13980 (make_pass_analyze_swaps): New decl.
13981 (rs6000_option_override): Register pass_analyze_swaps.
13982 (swap_web_entry): New subsclass of web_entry_base (df.h).
13983 (special_handling_values): New enum.
13984 (union_defs): New function.
13985 (union_uses): Likewise.
13986 (insn_is_load_p): Likewise.
13987 (insn_is_store_p): Likewise.
13988 (insn_is_swap_p): Likewise.
13989 (rtx_is_swappable_p): Likewise.
13990 (insn_is_swappable_p): Likewise.
13991 (chain_purpose): New enum.
13992 (chain_contains_only_swaps): New function.
13993 (mark_swaps_for_removal): Likewise.
13994 (swap_const_vector_halves): Likewise.
13995 (adjust_subreg_index): Likewise.
13996 (permute_load): Likewise.
13997 (permute_store): Likewise.
13998 (handle_special_swappables): Likewise.
13999 (replace_swap_with_copy): Likewise.
14000 (dump_swap_insn_table): Likewise.
14001 (rs6000_analyze_swaps): Likewise.
14002 (pass_data_analyze_swaps): New pass_data.
14003 (pass_analyze_swaps): New rtl_opt_pass.
14004 (make_pass_analyze_swaps): New function.
14005 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14006
14007 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14008
14009 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14010 type from rtx to rtx_insn *.
14011 (create_copy_of_insn_rtx): Likewise.
14012 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14013 (create_copy_of_insn_rtx): Likewise, also for local "res".
14014
14015 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14016
14017 * rtl.h (find_first_parameter_load): Strengthen return type from
14018 rtx to rtx_insn *.
14019 * rtlanal.c (find_first_parameter_load): Strengthen return type
14020 from rtx to rtx_insn *. Add checked cast for now, to postpone
14021 strengthening the params.
14022
14023 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14024
14025 PR fortran/44054
14026 * diagnostic.c: Set default caret.
14027 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14028 line is needed.
14029 * diagnostic.h (struct diagnostic_context):
14030
14031 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14032
14033 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14034 (sel_bb_head): Strengthen return type insn_t (currently just an
14035 rtx) to rtx_insn *.
14036 (sel_bb_end): Likewise.
14037
14038 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14039 (sel_bb_head): Strengthen return type and local "head" from
14040 insn_t (currently just an rtx) to rtx_insn *.
14041 (sel_bb_end): Likewise for return type.
14042 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14043 working with insn.
14044
14045 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14046
14047 * basic-block.h (get_last_bb_insn): Strengthen return type from
14048 rtx to rtx_insn *.
14049 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14050 end".
14051
14052 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14053
14054 PR fortran/44054
14055 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14056 to here ...
14057 (diagnostic_report_diagnostic): ... from here.
14058 * toplev.c (general_init): Move code to c-family.
14059
14060 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14061
14062 * df.h (web_entry_base): Replace existing struct web_entry with a
14063 new class web_entry_base with only the predecessor member.
14064 (unionfind_root): Remove declaration and move to class member.
14065 (unionfind_union): Remove declaration and move to friend
14066 function.
14067 (union_defs): Remove declaration.
14068 * web.c (web_entry_base::unionfind_root): Modify to be member
14069 function and adjust accessors.
14070 (unionfind_union): Modify to be friend function and adjust
14071 accessors.
14072 (web_entry): New subclass of web_entry_base containing the reg
14073 member.
14074 (union_match_dups): Modify for struct -> class changes.
14075 (union_defs): Likewise.
14076 (entry_register): Likewise.
14077 (pass_web::execute): Likewise.
14078
14079 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
14080
14081 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14082 builtin define __VEC_ELEMENT_REG_ORDER__.
14083
14084 2014-08-20 Martin Jambor <mjambor@suse.cz>
14085 Wei Mi <wmi@google.com>
14086
14087 PR ipa/60449
14088 PR middle-end/61776
14089 * tree-ssa-operands.c (update_stmt_operands): Remove
14090 MODIFIED_NORETURN_CALLS.
14091 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14092 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14093 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14094 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14095 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14096 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14097 (gimple_call_set_ctrl_altering): New func.
14098 (gimple_call_ctrl_altering_p): Ditto.
14099 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14100 (make_blocks): Use gimple_call_initialize_ctrl_altering.
14101 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14102 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14103 remove MODIFIED_NORETURN_CALLS.
14104
14105 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14106
14107 * coverage.c (coverage_compute_profile_id): Return non-0;
14108 also handle symbols with unique name.
14109 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14110
14111 2014-08-20 Steve Ellcey <sellcey@mips.com>
14112
14113 PR middle-end/49191
14114 * doc/sourcebuild.texi (non_strict_align): New.
14115
14116 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14117
14118 * cgraphunit.c (ipa_passes, compile): Reshedule
14119 symtab_remove_unreachable_nodes passes; update comments.
14120 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14121 TODO_remove_functions before the pass; the functions ought to be
14122 already removed.
14123 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14124 TODO_remove_functions.
14125 * passes.c (pass_data_early_local_passes): Do not schedule function
14126 removal.
14127 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14128
14129 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14130
14131 PR c/59304
14132 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14133 before setting the option.
14134 * diagnostic.c (diagnostic_classify_diagnostic): Record
14135 command-line status.
14136
14137 2014-08-20 Richard Biener <rguenther@suse.de>
14138
14139 PR lto/62190
14140 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14141 to build uint{16,32,64}_type_node.
14142
14143 2014-08-20 Terry Guo <terry.guo@arm.com>
14144
14145 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14146 with immediate_operand.
14147
14148 2014-08-20 David Malcolm <dmalcolm@redhat.com>
14149
14150 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14151 "insn" from an as_a to a safe_as_a, for the case when "insn" is
14152 NULL.
14153
14154 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14155
14156 PR preprocessor/51303
14157 * incpath.c (remove_duplicates): Use cpp_warning.
14158
14159 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14160
14161 PR c/60975
14162 PR c/53063
14163 * doc/options.texi (CPP): Document it.
14164 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14165 * optc-gen.awk: Handle CPP.
14166 * opth-gen.awk: Likewise.
14167
14168 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14169
14170 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14171 rtx_insn *.
14172 (duplicate_insn_chain): Likewise.
14173 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14174 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
14175 checked cast for now (until we can strengthen the params in the
14176 same way).
14177 (duplicate_insn_chain): Likewise.
14178
14179 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14180
14181 * rtl.h (next_cc0_user): Strengthen return type from rtx to
14182 rtx_insn *.
14183 (prev_cc0_setter): Likewise.
14184
14185 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14186 rtx_insn *, adding checked casts for now as necessary.
14187 (prev_cc0_setter): Likewise.
14188
14189 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14190
14191 * expr.h (emit_move_insn): Strengthen return type from rtx to
14192 rtx_insn *.
14193 (emit_move_insn_1): Likewise.
14194 (emit_move_complex_push): Likewise.
14195 (emit_move_complex_parts): Likewise.
14196
14197 * expr.c (emit_move_via_integer): Strengthen return type from rtx
14198 to rtx_insn *. Replace use of NULL_RTX with NULL when working
14199 with insns.
14200 (emit_move_complex_push): Strengthen return type from rtx to
14201 rtx_insn *.
14202 (emit_move_complex): Likewise, also for local "ret".
14203 (emit_move_ccmode): Likewise.
14204 (emit_move_multi_word): Likewise for return type and locals
14205 "last_insn", "seq".
14206 (emit_move_insn_1): Likewise for return type and locals "result",
14207 "ret".
14208 (emit_move_insn): Likewise for return type and local "last_insn".
14209 (compress_float_constant): Likewise.
14210
14211 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14212
14213 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14214 from rtx to rtx_insn *.
14215
14216 * rtl.h (emit_insn_before): Likewise.
14217 (emit_insn_before_noloc): Likewise.
14218 (emit_insn_before_setloc): Likewise.
14219 (emit_jump_insn_before): Likewise.
14220 (emit_jump_insn_before_noloc): Likewise.
14221 (emit_jump_insn_before_setloc): Likewise.
14222 (emit_call_insn_before): Likewise.
14223 (emit_call_insn_before_noloc): Likewise.
14224 (emit_call_insn_before_setloc): Likewise.
14225 (emit_debug_insn_before): Likewise.
14226 (emit_debug_insn_before_noloc): Likewise.
14227 (emit_debug_insn_before_setloc): Likewise.
14228 (emit_label_before): Likewise.
14229 (emit_insn_after): Likewise.
14230 (emit_insn_after_noloc): Likewise.
14231 (emit_insn_after_setloc): Likewise.
14232 (emit_jump_insn_after): Likewise.
14233 (emit_jump_insn_after_noloc): Likewise.
14234 (emit_jump_insn_after_setloc): Likewise.
14235 (emit_call_insn_after): Likewise.
14236 (emit_call_insn_after_noloc): Likewise.
14237 (emit_call_insn_after_setloc): Likewise.
14238 (emit_debug_insn_after): Likewise.
14239 (emit_debug_insn_after_noloc): Likewise.
14240 (emit_debug_insn_after_setloc): Likewise.
14241 (emit_label_after): Likewise.
14242 (emit_insn): Likewise.
14243 (emit_debug_insn): Likewise.
14244 (emit_jump_insn): Likewise.
14245 (emit_call_insn): Likewise.
14246 (emit_label): Likewise.
14247 (gen_clobber): Likewise.
14248 (emit_clobber): Likewise.
14249 (gen_use): Likewise.
14250 (emit_use): Likewise.
14251 (emit): Likewise.
14252
14253 (emit_barrier_before): Strengthen return type from rtx to
14254 rtx_barrier *.
14255 (emit_barrier_after): Likewise.
14256 (emit_barrier): Likewise.
14257
14258 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
14259 from rtx to rtx_insn *. Add checked casts for now when converting
14260 "last" from rtx to rtx_insn *.
14261 (emit_insn_before_noloc): Likewise for return type.
14262 (emit_jump_insn_before_noloc): Likewise.
14263 (emit_call_insn_before_noloc): Likewise.
14264 (emit_debug_insn_before_noloc): Likewise.
14265 (emit_barrier_before): Strengthen return type and local "insn"
14266 from rtx to rtx_barrier *.
14267 (emit_label_before): Strengthen return type from rtx to
14268 rtx_insn *. Add checked cast for now when returning param
14269 (emit_pattern_after_noloc): Strengthen return type from rtx to
14270 rtx_insn *. Add checked casts for now when converting "last" from
14271 rtx to rtx_insn *.
14272 (emit_insn_after_noloc): Strengthen return type from rtx to
14273 rtx_insn *.
14274 (emit_jump_insn_after_noloc): Likewise.
14275 (emit_call_insn_after_noloc): Likewise.
14276 (emit_debug_insn_after_noloc): Likewise.
14277 (emit_barrier_after): Strengthen return type from rtx to
14278 rtx_barrier *.
14279 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14280 Add checked cast for now when converting "label" from rtx to
14281 rtx_insn *.
14282 (emit_pattern_after_setloc): Strengthen return type from rtx to
14283 rtx_insn *. Add checked casts for now when converting "last" from
14284 rtx to rtx_insn *.
14285 (emit_pattern_after): Strengthen return type from rtx to
14286 rtx_insn *.
14287 (emit_insn_after_setloc): Likewise.
14288 (emit_insn_after): Likewise.
14289 (emit_jump_insn_after_setloc): Likewise.
14290 (emit_jump_insn_after): Likewise.
14291 (emit_call_insn_after_setloc): Likewise.
14292 (emit_call_insn_after): Likewise.
14293 (emit_debug_insn_after_setloc): Likewise.
14294 (emit_debug_insn_after): Likewise.
14295 (emit_pattern_before_setloc): Likewise. Add checked casts for now
14296 when converting "last" from rtx to rtx_insn *.
14297 (emit_pattern_before): Strengthen return type from rtx to
14298 rtx_insn *.
14299 (emit_insn_before_setloc): Likewise.
14300 (emit_insn_before): Likewise.
14301 (emit_jump_insn_before_setloc): Likewise.
14302 (emit_jump_insn_before): Likewise.
14303 (emit_call_insn_before_setloc): Likewise.
14304 (emit_call_insn_before): Likewise.
14305 (emit_debug_insn_before_setloc): Likewise.
14306 (emit_debug_insn_before): Likewise.
14307 (emit_insn): Strengthen return type and locals "last", "insn",
14308 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
14309 within cases where we know we have an insn.
14310 (emit_debug_insn): Likewise.
14311 (emit_jump_insn): Likewise.
14312 (emit_call_insn): Strengthen return type and local "insn" from rtx
14313 to rtx_insn *.
14314 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
14315 a checked cast to rtx_insn * for now on "label".
14316 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14317 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14318 (emit_use): Likewise.
14319 (gen_use): Likewise, also for local "seq".
14320 (emit): Likewise for return type and local "insn".
14321 (rtx_insn): Likewise for return type and local "new_rtx".
14322
14323 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14324 from rtx to rtx_barrier *.
14325
14326 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14327 changed return type from rtx to rtx_insn *, we must update
14328 "emit_fn" type, and this in turn means updating...
14329 (frame_insn): ...this. Strengthen return type from rtx to
14330 rtx_insn *. Introduce a new local "insn" of the appropriate type.
14331
14332 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14333
14334 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14335 rtx to rtx_jump_table_data *. Also for local.
14336 * rtl.h (emit_jump_table_data): Likewise.
14337
14338 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14339
14340 * basic-block.h (create_basic_block_structure): Strengthen third
14341 param "bb_note" from rtx to rtx_note *.
14342 * rtl.h (emit_note_before): Strengthen return type from rtx to
14343 rtx_note *.
14344 (emit_note_after): Likewise.
14345 (emit_note): Likewise.
14346 (emit_note_copy): Likewise. Also, strengthen param similarly.
14347 * function.h (struct rtl_data): Strengthen field
14348 "x_stack_check_probe_note" from rtx to rtx_note *.
14349
14350 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14351 from rtx to rtx_note *.
14352 * cfgrtl.c (create_basic_block_structure): Strengthen third param
14353 "bb_note" from rtx to rtx_note *.
14354 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
14355 when calling emit_note_copy.
14356 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14357 rtx_note *.
14358 (emit_note_after): Likewise.
14359 (emit_note_before): Likewise.
14360 (emit_note_copy): Likewise. Also, strengthen param similarly.
14361 (emit_note): Likewise.
14362 * except.c (emit_note_eh_region_end): Likewise for return type.
14363 Strengthen local "next" from rtx to rtx_insn *.
14364 (convert_to_eh_region_ranges): Strengthen local "note"
14365 from rtx to rtx_note *.
14366 * final.c (change_scope): Likewise.
14367 (reemit_insn_block_notes): Likewise, for both locals named "note".
14368 Also, strengthen local "insn" from rtx to rtx_insn *.
14369 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14370 rtx to rtx_note *.
14371 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14372 strengthen local "seq" from rtx to rtx_insn *.
14373 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14374 to rtx_note *.
14375 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14376 vec<rtx_note *>.
14377 (get_bb_note_from_pool): Strengthen return type from rtx to
14378 rtx_note *.
14379 (sel_create_basic_block): Strengthen local "new_bb_note" from
14380 insn_t to rtx_note *.
14381 * var-tracking.c (emit_note_insn_var_location): Strengthen local
14382 "note" from rtx to rtx_note *.
14383 (emit_notes_in_bb): Likewise.
14384
14385 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14386
14387 * function.h (struct rtl_data): Strengthen field
14388 "x_parm_birth_insn" from rtx to rtx_insn *.
14389 * function.c (struct assign_parm_data_all): Strengthen fields
14390 "first_conversion_insn" and "last_conversion_insn" from rtx to
14391 rtx_insn *.
14392
14393 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14394
14395 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14396 to rtx_insn *; also for local "var_end_seq".
14397 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14398 (maybe_cleanup_end_of_block): Likewise for param "last" and local
14399 "insn".
14400 (expand_gimple_cond): Likewise for locals "last2" and "last".
14401 (mark_transaction_restart_calls): Likewise for local "insn".
14402 (expand_gimple_stmt): Likewise for return type and locals "last"
14403 and "insn".
14404 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14405 (avoid_complex_debug_insns): Likewise for param "insn".
14406 (expand_debug_locations): Likewise for locals "insn", "last",
14407 "prev_insn" and "insn2".
14408 (expand_gimple_basic_block): Likewise for local "last".
14409 (construct_exit_block): Likewise for locals "head", "end",
14410 "orig_end".
14411 (pass_expand::execute): Likewise for locals "var_seq",
14412 "var_ret_seq", "next".
14413
14414 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14415
14416 * asan.h (asan_emit_stack_protection): Strengthen return type from
14417 rtx to rtx_insn *.
14418 * asan.c (asan_emit_stack_protection): Likewise. Add local
14419 "insns" to hold the return value.
14420
14421 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14422
14423 * basic-block.h (bb_note): Strengthen return type from rtx to
14424 rtx_note *.
14425 * sched-int.h (bb_note): Likewise.
14426 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
14427
14428 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14429
14430 * rtl.h (make_insn_raw): Strengthen return type from rtx to
14431 rtx_insn *.
14432
14433 * emit-rtl.c (make_insn_raw): Strengthen return type and local
14434 "insn" from rtx to rtx_insn *.
14435 (make_debug_insn_raw): Strengthen return type from rtx to
14436 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14437 (make_jump_insn_raw): Strengthen return type from rtx to
14438 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14439 (make_call_insn_raw): Strengthen return type from rtx to
14440 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14441 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14442 callback from rtx to rtx_insn *; likewise for local "insn" and
14443 "next", adding a checked cast to rtx_insn in the relevant cases of
14444 the switch statement.
14445 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14446 callback from rtx to rtx_insn *.
14447 (emit_pattern_after_setloc): Likewise.
14448 (emit_pattern_after): Likewise.
14449 (emit_pattern_before_setloc): Likewise.
14450 (emit_pattern_before): Likewise.
14451
14452 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14453
14454 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14455 rtx_call_insn *.
14456 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14457 accepting an rtx_insn *.
14458 (last_call_insn): Strengthen return type from rtx to
14459 rtx_call_insn *.
14460
14461 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14462
14463 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14464 "insns" from rtx to rtx_insn *.
14465 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14466 locals "insn" and "prev".
14467
14468 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14469
14470 * rtl.h (tablejump_p): Strengthen third param from rtx * to
14471 rtx_jump_table_data **.
14472
14473 * cfgbuild.c (make_edges): Introduce local "table", using it in
14474 place of "tmp" for jump table data.
14475 (find_bb_boundaries): Strengthen local "table" from rtx to
14476 rtx_jump_table_data *.
14477 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14478 (outgoing_edges_match): Likewise for locals "table1" and "table2".
14479 (try_crossjump_to_edge): Likewise.
14480 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14481 "table".
14482 (patch_jump_insn): Introduce local "table", using it in place of
14483 "tmp" for jump table data.
14484 (force_nonfallthru_and_redirect): Introduce local "table", so that
14485 call to tablejump_p can receive an rtx_jump_table_data **. Update
14486 logic around the call to overwrite "note" appropriately if
14487 tablejump_p returns non-zero.
14488 (get_last_bb_insn): Introduce local "table", using it in place of
14489 "tmp" for jump table data.
14490 * dwarf2cfi.c (create_trace_edges): Likewise.
14491
14492 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14493 from rtx to rtx_jump_table_data *.
14494 (create_fix_barrier): Strengthen local "tmp" from rtx to
14495 rtx_jump_table_data *.
14496 (arm_reorg): Likewise for local "table".
14497
14498 * config/s390/s390.c (s390_chunkify_start): Likewise.
14499
14500 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14501
14502 * jump.c (delete_related_insns): Strengthen local "lab_next" from
14503 rtx to rtx_jump_table_data *.
14504
14505 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14506 rtx_jump_table_data **. Add a checked cast when writing through
14507 the pointer: we know there that local "table" is non-NULL and that
14508 JUMP_TABLE_DATA_P (table) holds.
14509 (label_is_jump_target_p): Introduce local "table", using it in
14510 place of "tmp" for jump table data.
14511
14512 2014-08-19 Marek Polacek <polacek@redhat.com>
14513
14514 PR c++/62153
14515 * doc/invoke.texi: Document -Wbool-compare.
14516
14517 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14518
14519 * rtl.h (entry_of_function): Strengthen return type from rtx to
14520 rtx_insn *.
14521 * cfgrtl.c (entry_of_function): Likewise.
14522
14523 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14524
14525 * emit-rtl.h (get_insns): Strengthen return type from rtx to
14526 rtx_insn *, adding a checked cast for now.
14527 (get_last_insn): Likewise.
14528
14529 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14530
14531 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14532 rtx_code_label *.
14533
14534 * emit-rtl.c (gen_label_rtx): Likewise.
14535
14536 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14537
14538 * rtl.h (previous_insn): Strengthen return type from rtx to
14539 rtx_insn *.
14540 (next_insn): Likewise.
14541 (prev_nonnote_insn): Likewise.
14542 (prev_nonnote_insn_bb): Likewise.
14543 (next_nonnote_insn): Likewise.
14544 (next_nonnote_insn_bb): Likewise.
14545 (prev_nondebug_insn): Likewise.
14546 (next_nondebug_insn): Likewise.
14547 (prev_nonnote_nondebug_insn): Likewise.
14548 (next_nonnote_nondebug_insn): Likewise.
14549 (prev_real_insn): Likewise.
14550 (next_real_insn): Likewise.
14551 (prev_active_insn): Likewise.
14552 (next_active_insn): Likewise.
14553
14554 * emit-rtl.c (next_insn): Strengthen return type from rtx to
14555 rtx_insn *, adding a checked cast.
14556 (previous_insn): Likewise.
14557 (next_nonnote_insn): Likewise.
14558 (next_nonnote_insn_bb): Likewise.
14559 (prev_nonnote_insn): Likewise.
14560 (prev_nonnote_insn_bb): Likewise.
14561 (next_nondebug_insn): Likewise.
14562 (prev_nondebug_insn): Likewise.
14563 (next_nonnote_nondebug_insn): Likewise.
14564 (prev_nonnote_nondebug_insn): Likewise.
14565 (next_real_insn): Likewise.
14566 (prev_real_insn): Likewise.
14567 (next_active_insn): Likewise.
14568 (prev_active_insn): Likewise.
14569
14570 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14571 param "stepfunc" so that it returns an rtx_insn * rather than an
14572 rtx, to track the change to prev_nonnote_insn_bb, which is the
14573 only function this is called with.
14574 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14575
14576 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
14577
14578 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14579 assert.
14580
14581 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14582
14583 * coretypes.h (class rtx_debug_insn): Add forward declaration.
14584 (class rtx_nonjump_insn): Likewise.
14585 (class rtx_jump_insn): Likewise.
14586 (class rtx_call_insn): Likewise.
14587 (class rtx_jump_table_data): Likewise.
14588 (class rtx_barrier): Likewise.
14589 (class rtx_code_label): Likewise.
14590 (class rtx_note): Likewise.
14591
14592 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14593 adding the invariant DEBUG_INSN_P (X).
14594 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14595 the invariant NONJUMP_INSN_P (X).
14596 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14597 the invariant JUMP_P (X).
14598 (class rtx_call_insn): New, a subclass of rtx_insn, adding
14599 the invariant CALL_P (X).
14600 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14601 invariant JUMP_TABLE_DATA_P (X).
14602 (class rtx_barrier): New, a subclass of rtx_insn, adding the
14603 invariant BARRIER_P (X).
14604 (class rtx_code_label): New, a subclass of rtx_insn, adding
14605 the invariant LABEL_P (X).
14606 (class rtx_note): New, a subclass of rtx_insn, adding
14607 the invariant NOTE_P(X).
14608 (is_a_helper <rtx_debug_insn *>::test): New.
14609 (is_a_helper <rtx_nonjump_insn *>::test): New.
14610 (is_a_helper <rtx_jump_insn *>::test): New.
14611 (is_a_helper <rtx_call_insn *>::test): New.
14612 (is_a_helper <rtx_jump_table_data *>::test): New functions,
14613 overloaded for both rtx and rtx_insn *.
14614 (is_a_helper <rtx_barrier *>::test): New.
14615 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14616 for both rtx and rtx_insn *.
14617 (is_a_helper <rtx_note *>::test): New.
14618
14619 2014-08-19 Marek Polacek <polacek@redhat.com>
14620
14621 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14622 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14623 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14624 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14625
14626 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14627
14628 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14629 rtx_insn *. To help with transition, for now, convert from an
14630 access macro into a pair of functions: BND_TO, returning an
14631 rtx_insn *, and...
14632 (SET_BND_TO): New function, for use where BND_TO is used as an
14633 lvalue.
14634
14635 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14636 SET_BND_TO.
14637 (BND_TO): New function, adding a checked cast.
14638 (SET_BND_TO): New function.
14639
14640 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14641 SET_BND_TO.
14642 (compute_av_set_on_boundaries): Likewise.
14643
14644 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14645
14646 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14647 destination if it is used in source.
14648 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14649 (*popcount<mode>2_falsedep_1): Likewise.
14650
14651 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14652
14653 PR other/62168
14654 * configure.ac: Set install_gold_as_default to no first.
14655 * configure: Regenerated.
14656
14657 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14658
14659 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14660 "note_list" field will eventually be an rtx_insn *. To help with
14661 transition, for now, convert from an access macro into a pair of
14662 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14663 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14664 used as an lvalue.
14665
14666 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14667 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14668
14669 * sel-sched-ir.c (init_bb): Likewise.
14670 (sel_restore_notes): Likewise.
14671 (move_bb_info): Likewise.
14672 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14673 (SET_BB_NOTE_LIST): New function.
14674
14675 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14676
14677 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14678 field will eventually be an rtx_insn *. To help with transition,
14679 for now, convert from an access macro into a pair of functions:
14680 VINSN_INSN_RTX, returning an rtx_insn *, and...
14681 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14682 is used as an lvalue.
14683
14684 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14685 SET_VINSN_INSN_RTX where it's used as an lvalue.
14686 (VINSN_INSN_RTX): New function.
14687 (SET_VINSN_INSN_RTX): New function.
14688
14689 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14690
14691 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14692 eventually be rtx_insn *, but to help with transition, for now,
14693 convert from an access macro into a pair of functions: DEP_PRO
14694 returning an rtx_insn * and...
14695 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14696 lvalue, returning an rtx&.
14697 (DEP_CON): Analogous changes to DEP_PRO above.
14698 (SET_DEP_CON): Likewise.
14699
14700 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14701 an lvalue to SET_DEP_CON.
14702 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14703 (sd_copy_back_deps): Likewise for DEP_CON.
14704 (DEP_PRO): New function, adding a checked cast for now.
14705 (DEP_CON): Likewise.
14706 (SET_DEP_PRO): New function.
14707 (SET_DEP_CON): Likewise.
14708
14709 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14710
14711 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14712 (extra_options): Add i386/cygwin.opt.
14713 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14714 (CPP_SPEC): Accept -pthread.
14715 (LINK_SPEC): Ditto.
14716 (GOMP_SELF_SPECS): Update comment.
14717 * config/i386/cygwin.opt: New file for -pthread flag.
14718
14719 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14720
14721 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14722 * df.h (DF_REF_INSN): Convert from a macro to a function, so
14723 that we can return an rtx_insn *.
14724
14725 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14726
14727 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14728 when building executables, not DLLs. Add --large-address-aware
14729 under the same conditions.
14730 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14731 when building executables, not DLLs. Add --large-address-aware
14732 under the same conditions when using -m32.
14733
14734 * config/i386/cygwin-stdint.h: Throughout, make type
14735 definitions dependent on target architecture, not host.
14736
14737 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14738
14739 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
14740 the return type from rtx to rtx_insn *, which will enable various
14741 conversions in followup patches. For now this is is done by a
14742 checked cast.
14743 (NEXT_INSN): Likewise.
14744 (SET_PREV_INSN): Convert to an inline function. This is intended
14745 for use as an lvalue, and so returns an rtx& to allow in-place
14746 modification.
14747 (SET_NEXT_INSN): Likewise.
14748
14749 2014-07-08 Mark Wielaard <mjw@redhat.com>
14750
14751 PR debug/59051
14752 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14753
14754 2014-08-19 Marek Polacek <polacek@redhat.com>
14755
14756 PR c/61271
14757 * cgraphunit.c (handle_alias_pairs): Fix condition.
14758
14759 2014-08-19 Richard Biener <rguenther@suse.de>
14760
14761 * gimple-fold.c (fold_gimple_assign): Properly build a
14762 null-pointer constant when devirtualizing addresses.
14763
14764 2014-07-07 Mark Wielaard <mjw@redhat.com>
14765
14766 * dwarf2out.c (decl_quals): New function.
14767 (modified_type_die): Take one cv_quals argument instead of two,
14768 one for const and one for volatile.
14769 (add_type_attribute): Likewise.
14770 (generic_parameter_die): Call add_type_attribute with one modifier
14771 argument.
14772 (base_type_for_mode): Likewise.
14773 (add_bounds_info): Likewise.
14774 (add_subscript_info): Likewise.
14775 (gen_array_type_die): Likewise.
14776 (gen_descr_array_type_die): Likewise.
14777 (gen_entry_point_die): Likewise.
14778 (gen_enumeration_type_die): Likewise.
14779 (gen_formal_parameter_die): Likewise.
14780 (gen_subprogram_die): Likewise.
14781 (gen_variable_die): Likewise.
14782 (gen_const_die): Likewise.
14783 (gen_field_die): Likewise.
14784 (gen_pointer_type_die): Likewise.
14785 (gen_reference_type_die): Likewise.
14786 (gen_ptr_to_mbr_type_die): Likewise.
14787 (gen_inheritance_die): Likewise.
14788 (gen_subroutine_type_die): Likewise.
14789 (gen_typedef_die): Likewise.
14790 (force_type_die): Likewise.
14791
14792 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14793
14794 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14795 if unset.
14796 * configure: Regenerate.
14797
14798 2014-08-19 Richard Biener <rguenther@suse.de>
14799
14800 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14801 DECL_EXTERNALs in BLOCKs as non-references.
14802 * tree-streamer-out.c (streamer_write_chain): Likewise.
14803
14804 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
14805 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14806 Anna Tikhonova <anna.tikhonova@intel.com>
14807 Ilya Tocar <ilya.tocar@intel.com>
14808 Andrey Turetskiy <andrey.turetskiy@intel.com>
14809 Ilya Verbin <ilya.verbin@intel.com>
14810 Kirill Yukhin <kirill.yukhin@intel.com>
14811 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14812
14813 * config/i386/sse.md
14814 (define_mode_iterator VI48_AVX512F): Delete.
14815 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14816 (define_mode_iterator VI2_AVX512VL): Ditto.
14817 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14818 Delete.
14819 (define_insn
14820 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14821 New.
14822 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14823 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14824 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14825 with VI48_AVX512F_AVX512VL): New.
14826 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14827 with VI2_AVX512VL): Ditto.
14828
14829 2014-08-19 Marek Polacek <polacek@redhat.com>
14830
14831 * doc/invoke.texi: Document -Wc99-c11-compat.
14832
14833 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14834
14835 * rtl.h (PREV_INSN): Split macro in two: the existing one,
14836 for rvalues, and...
14837 (SET_PREV_INSN): New macro, for use as an lvalue.
14838 (NEXT_INSN, SET_NEXT_INSN): Likewise.
14839
14840 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14841 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14842 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14843 (fixup_abnormal_edges): Likewise.
14844 (unlink_insn_chain): Likewise.
14845 (fixup_reorder_chain): Likewise.
14846 (cfg_layout_delete_block): Likewise.
14847 (cfg_layout_merge_blocks): Likewise.
14848 * combine.c (update_cfg_for_uncondjump): Likewise.
14849 * emit-rtl.c (link_insn_into_chain): Likewise.
14850 (remove_insn): Likewise.
14851 (delete_insns_since): Likewise.
14852 (reorder_insns_nobb): Likewise.
14853 (emit_insn_after_1): Likewise.
14854 * final.c (rest_of_clean_state): Likewise.
14855 (final_scan_insn): Likewise.
14856 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14857 * haifa-sched.c (concat_note_lists): Likewise.
14858 (remove_notes): Likewise.
14859 (restore_other_notes): Likewise.
14860 (move_insn): Likewise.
14861 (unlink_bb_notes): Likewise.
14862 (restore_bb_notes): Likewise.
14863 * jump.c (delete_for_peephole): Likewise.
14864 * optabs.c (emit_libcall_block_1): Likewise.
14865 * reorg.c (emit_delay_sequence): Likewise.
14866 (fill_simple_delay_slots): Likewise.
14867 * sel-sched-ir.c (sel_move_insn): Likewise.
14868 (sel_remove_insn): Likewise.
14869 (get_bb_note_from_pool): Likewise.
14870 * sel-sched.c (move_nop_to_previous_block): Likewise.
14871
14872 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14873 * config/c6x/c6x.c (gen_one_bundle): Likewise.
14874 (c6x_gen_bundles): Likewise.
14875 (hwloop_optimize): Likewise.
14876 * config/frv/frv.c (frv_function_prologue): Likewise.
14877 (frv_register_nop): Likewise.
14878 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14879 (ia64_reorg): Likewise.
14880 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14881 (mep_make_bundle): Likewise.
14882 (mep_bundle_insns): Likewise.
14883 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14884 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14885 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14886
14887 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14888
14889 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
14890 return type from rtx to rtx_insn *.
14891 (BB_END): Likewise.
14892 (BB_HEADER): Likewise.
14893 (BB_FOOTER): Likewise.
14894 (SET_BB_HEAD): Convert to a function.
14895 (SET_BB_END): Likewise.
14896 (SET_BB_HEADER): Likewise.
14897 (SET_BB_FOOTER): Likewise.
14898
14899 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14900 Strengthen the return type from rtx to rtx_insn *. For now, this
14901 is done by adding a checked cast, but this will eventually
14902 become a field lookup.
14903 (BB_END): Likewise.
14904 (BB_HEADER): Likewise.
14905 (BB_FOOTER): Likewise.
14906 (SET_BB_HEAD): New function, from macro of same name. This is
14907 intended for use as an lvalue, and so returns an rtx& to allow
14908 in-place modification.
14909 (SET_BB_END): Likewise.
14910 (SET_BB_HEADER): Likewise.
14911 (SET_BB_FOOTER): Likewise.
14912
14913 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14914
14915 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14916 for rvalues, and...
14917 (SET_BB_HEAD): New macro, for use as a lvalue.
14918 (BB_END, SET_BB_END): Likewise.
14919 (BB_HEADER, SET_BB_HEADER): Likewise.
14920 (BB_FOOTER, SET_BB_FOOTER): Likewise.
14921
14922 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14923 of BB_* macros into SET_BB_* macros.
14924 (fix_crossing_unconditional_branches): Likewise.
14925 * caller-save.c (save_call_clobbered_regs): Likewise.
14926 (insert_one_insn): Likewise.
14927 * cfgbuild.c (find_bb_boundaries): Likewise.
14928 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14929 (outgoing_edges_match): Likewise.
14930 (try_optimize_cfg): Likewise.
14931 * cfgexpand.c (expand_gimple_cond): Likewise.
14932 (expand_gimple_tailcall): Likewise.
14933 (expand_gimple_basic_block): Likewise.
14934 (construct_exit_block): Likewise.
14935 * cfgrtl.c (delete_insn): Likewise.
14936 (create_basic_block_structure): Likewise.
14937 (rtl_delete_block): Likewise.
14938 (rtl_split_block): Likewise.
14939 (emit_nop_for_unique_locus_between): Likewise.
14940 (rtl_merge_blocks): Likewise.
14941 (block_label): Likewise.
14942 (try_redirect_by_replacing_jump): Likewise.
14943 (emit_barrier_after_bb): Likewise.
14944 (fixup_abnormal_edges): Likewise.
14945 (record_effective_endpoints): Likewise.
14946 (relink_block_chain): Likewise.
14947 (fixup_reorder_chain): Likewise.
14948 (fixup_fallthru_exit_predecessor): Likewise.
14949 (cfg_layout_duplicate_bb): Likewise.
14950 (cfg_layout_split_block): Likewise.
14951 (cfg_layout_delete_block): Likewise.
14952 (cfg_layout_merge_blocks): Likewise.
14953 * combine.c (update_cfg_for_uncondjump): Likewise.
14954 * emit-rtl.c (add_insn_after): Likewise.
14955 (remove_insn): Likewise.
14956 (reorder_insns): Likewise.
14957 (emit_insn_after_1): Likewise.
14958 * haifa-sched.c (get_ebb_head_tail): Likewise.
14959 (restore_other_notes): Likewise.
14960 (move_insn): Likewise.
14961 (sched_extend_bb): Likewise.
14962 (fix_jump_move): Likewise.
14963 * ifcvt.c (noce_process_if_block): Likewise.
14964 (dead_or_predicable): Likewise.
14965 * ira.c (update_equiv_regs): Likewise.
14966 * reg-stack.c (change_stack): Likewise.
14967 * sel-sched-ir.c (sel_move_insn): Likewise.
14968 * sel-sched.c (move_nop_to_previous_block): Likewise.
14969
14970 * config/c6x/c6x.c (hwloop_optimize): Likewise.
14971 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14972
14973 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14974
14975 * rtl.h (for_each_rtx_in_insn): New function.
14976 * rtlanal.c (for_each_rtx_in_insn): Likewise.
14977
14978 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14979
14980 * coretypes.h (class rtx_insn): Add forward declaration.
14981
14982 * rtl.h: Include is-a.h.
14983 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14984 workaround to ensure gengtype knows inheritance is occurring,
14985 whilst continuing to use the pre-existing special-casing for
14986 rtx_def.
14987 (class rtx_insn): New subclass of rtx_def, adding the
14988 invariant that we're dealing with something we can sanely use
14989 INSN_UID, NEXT_INSN, PREV_INSN on.
14990 (is_a_helper <rtx_insn *>::test): New.
14991 (is_a_helper <const rtx_insn *>::test): New.
14992
14993 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14994
14995 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14996
14997 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14998
14999 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15000 comdats as extern.
15001
15002 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15003
15004 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15005 to BUILT_IN_UNREACHABLE.
15006
15007 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
15008
15009 PR target/62011
15010 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15011 New tune flag.
15012 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15013 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15014 (ffs<mode>2): Do not expand with tzcnt for
15015 TARGET_AVOID_FALSE_DEP_FOR_BMI.
15016 (ffssi2_no_cmove): Ditto.
15017 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15018 (ctz<mode>2): New expander.
15019 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15020 (*ctz<mode>2_falsedep): New insn.
15021 (*ctz<mode>2): Rename from ctz<mode>2.
15022 (clz<mode>2_lzcnt): New expander.
15023 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15024 (*clz<mode>2_lzcnt_falsedep): New insn.
15025 (*clz<mode>2): Rename from ctz<mode>2.
15026 (popcount<mode>2): New expander.
15027 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15028 (*popcount<mode>2_falsedep): New insn.
15029 (*popcount<mode>2): Rename from ctz<mode>2.
15030 (*popcount<mode>2_cmp): Remove.
15031 (*popcountsi2_cmp_zext): Ditto.
15032
15033 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
15034
15035 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15036 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15037 * config/microblaze/microblaze.h
15038 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15039
15040 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
15041
15042 PR other/62168
15043 * configure.ac: Set install_gold_as_default to no for
15044 --enable-gold=no.
15045 * configure: Regenerated.
15046
15047 2014-08-18 Roman Gareev <gareevroman@gmail.com>
15048
15049 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15050 * config.in: Add undef of HAVE_isl.
15051 * configure: Regenerate.
15052 * configure.ac: Add definition of HAVE_isl.
15053 * graphite-blocking.c: Add checking of HAVE_isl.
15054 * graphite-dependences.c: Likewise.
15055 * graphite-interchange.c: Likewise.
15056 * graphite-isl-ast-to-gimple.c: Likewise.
15057 * graphite-optimize-isl.c: Likewise.
15058 * graphite-poly.c: Likewise.
15059 * graphite-scop-detection.c: Likewise.
15060 * graphite-sese-to-poly.c: Likewise.
15061 * graphite.c: Likewise.
15062 * toplev.c: Replace the checking of HAVE_cloog with the checking
15063 of HAVE_isl.
15064
15065 2014-08-18 Richard Biener <rguenther@suse.de>
15066
15067 PR tree-optimization/62090
15068 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15069 (fold_builtin_3): Do not fold snprintf.
15070 (fold_builtin_4): Likewise.
15071 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15072 moved from builtins.c.
15073 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15074 (gimple_fold_builtin): Do not fold sprintf here.
15075
15076 2014-08-18 Richard Biener <rguenther@suse.de>
15077
15078 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15079 code to ...
15080 (maybe_canonicalize_mem_ref_addr): ... this function.
15081 (fold_stmt_1): Apply it here before all simplification.
15082
15083 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
15084
15085 PR ipa/61800
15086 * cgraph.h (cgraph_node::create_indirect_edge): Add
15087 compute_indirect_info param.
15088 * cgraph.c (cgraph_node::create_indirect_edge): Compute
15089 indirect_info only when it is required.
15090 * cgraphclones.c (cgraph_clone_edge): Do not recompute
15091 indirect_info fore cloned indirect edge.
15092
15093 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15094 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15095 Anna Tikhonova <anna.tikhonova@intel.com>
15096 Ilya Tocar <ilya.tocar@intel.com>
15097 Andrey Turetskiy <andrey.turetskiy@intel.com>
15098 Ilya Verbin <ilya.verbin@intel.com>
15099 Kirill Yukhin <kirill.yukhin@intel.com>
15100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15101
15102 * config/i386/sse.md
15103 (define_mode_iterator VI8_AVX2_AVX512BW): New.
15104 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15105
15106 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15107 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15108 Anna Tikhonova <anna.tikhonova@intel.com>
15109 Ilya Tocar <ilya.tocar@intel.com>
15110 Andrey Turetskiy <andrey.turetskiy@intel.com>
15111 Ilya Verbin <ilya.verbin@intel.com>
15112 Kirill Yukhin <kirill.yukhin@intel.com>
15113 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15114
15115 * config/i386/sse.md
15116 (define_mode_iterator VF1_AVX512VL): New.
15117 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15118 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15119 New.
15120
15121 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15122 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15123 Anna Tikhonova <anna.tikhonova@intel.com>
15124 Ilya Tocar <ilya.tocar@intel.com>
15125 Andrey Turetskiy <andrey.turetskiy@intel.com>
15126 Ilya Verbin <ilya.verbin@intel.com>
15127 Kirill Yukhin <kirill.yukhin@intel.com>
15128 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15129
15130 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15131 * config/i386/i386.md
15132 (define_code_iterator any_float): New.
15133 (define_code_attr floatsuffix): New.
15134 * config/i386/sse.md
15135 (define_mode_iterator VF1_128_256VL): New.
15136 (define_mode_iterator VF2_512_256VL): New.
15137 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15138 TARGET check.
15139 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15140 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15141 New.
15142 (define_mode_attr qq2pssuff): New.
15143 (define_mode_attr sselongvecmode): New.
15144 (define_mode_attr sselongvecmodelower): New.
15145 (define_mode_attr sseintvecmode3): New.
15146 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15147 New.
15148 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15149 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15150 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15151 (define_insn "ufloatv2siv2df2<mask_name>"): New.
15152
15153 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15154 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15155 Anna Tikhonova <anna.tikhonova@intel.com>
15156 Ilya Tocar <ilya.tocar@intel.com>
15157 Andrey Turetskiy <andrey.turetskiy@intel.com>
15158 Ilya Verbin <ilya.verbin@intel.com>
15159 Kirill Yukhin <kirill.yukhin@intel.com>
15160 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15161
15162 * config/i386/sse.md
15163 (define_mode_iterator VF2_AVX512VL): New.
15164 (define_mode_attr sseintvecmode2): New.
15165 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15166 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15167 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15168 (define_insn
15169 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15170 Ditto.
15171 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15172 Ditto.
15173 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15174 Ditto.
15175
15176 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15177 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15178 Anna Tikhonova <anna.tikhonova@intel.com>
15179 Ilya Tocar <ilya.tocar@intel.com>
15180 Andrey Turetskiy <andrey.turetskiy@intel.com>
15181 Ilya Verbin <ilya.verbin@intel.com>
15182 Kirill Yukhin <kirill.yukhin@intel.com>
15183 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15184
15185 * config/i386/i386.md
15186 (define_insn "*movoi_internal_avx"): Add evex version.
15187 (define_insn "*movti_internal"): Ditto.
15188
15189 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15190 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15191 Anna Tikhonova <anna.tikhonova@intel.com>
15192 Ilya Tocar <ilya.tocar@intel.com>
15193 Andrey Turetskiy <andrey.turetskiy@intel.com>
15194 Ilya Verbin <ilya.verbin@intel.com>
15195 Kirill Yukhin <kirill.yukhin@intel.com>
15196 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15197
15198 * config/i386/i386.md
15199 (define_attr "isa"): Add avx512dq, noavx512dq.
15200 (define_attr "enabled"): Ditto.
15201 * config/i386/sse.md
15202 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15203
15204 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15205 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15206 Anna Tikhonova <anna.tikhonova@intel.com>
15207 Ilya Tocar <ilya.tocar@intel.com>
15208 Andrey Turetskiy <andrey.turetskiy@intel.com>
15209 Ilya Verbin <ilya.verbin@intel.com>
15210 Kirill Yukhin <kirill.yukhin@intel.com>
15211 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15212
15213 * config/i386/i386.c
15214 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15215 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15216 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15217 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15218 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15219 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15220 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15221 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15222 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15223 * config/i386/sse.md
15224 (define_mode_iterator VMOVE): Allow V4TI mode.
15225 (define_mode_iterator V_AVX512VL): New.
15226 (define_mode_iterator V): New handling for AVX512VL.
15227 (define_insn "avx512f_load<mode>_mask"): Delete.
15228 (define_insn "<avx512>_load<mode>_mask"): New.
15229 (define_insn "avx512f_store<mode>_mask"): Delete.
15230 (define_insn "<avx512>_store<mode>_mask"): New.
15231
15232
15233 2014-08-18 Yury Gribov <y.gribov@samsung.com>
15234
15235 PR sanitizer/62089
15236 * asan.c (instrument_derefs): Fix bitfield check.
15237
15238 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15239
15240 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15241 * config/rs6000/htm.md (ttest): Remove clobber.
15242 * config/rs6000/predicates.md (any_mask_operand): New predicate.
15243 (and_operand): Reformat.
15244 (and_2rld_operand): New predicate.
15245 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15246 parameter.
15247 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15248 parameter. Handle AND directly.
15249 (rs6000_split_logical_di): Remove last parameter.
15250 (rs6000_split_logical): Remove last parameter. Remove obsolete
15251 comment.
15252 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15253 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15254 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
15255 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15256 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15257 and 5 anonymous splitters): Delete.
15258 (and<mode>3): New expander.
15259 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15260 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15261 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15262 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15263 (floatdisf2_internal1): Remove clobbers.
15264 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15265 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15266 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15267 (and<mode>3 for BOOL_128): Remove clobber.
15268 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
15269 rs6000_split_logical.
15270 (*bool<mode>3_internal for BOOL_128): Adjust call of
15271 rs6000_split_logical.
15272 (*boolc<mode>3_internal1 for BOOL_128,
15273 *boolc<mode>3_internal2 for BOOL_128,
15274 *boolcc<mode>3_internal1 for BOOL_128,
15275 *boolcc<mode>3_internal2 for BOOL_128,
15276 *eqv<mode>3_internal1 for BOOL_128,
15277 *eqv<mode>3_internal2 for BOOL_128,
15278 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15279 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15280 clobber.
15281 (*vec_reload_and_reg_<mptrsize>): Delete.
15282
15283 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15284
15285 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15286 and split, *boolccsi3_internal3 and split): Delete.
15287 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15288 *boolccdi3_internal3 and split): Delete.
15289 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15290 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
15291
15292 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15293
15294 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15295 and split, *boolcsi3_internal3 and split): Delete.
15296 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15297 *boolcdi3_internal3 and split): Delete.
15298 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15299
15300 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15301
15302 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15303 <'u'>: Also support printing the low-order 16 bits.
15304 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15305 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15306 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15307 *booldi3_internal3 and split): Delete.
15308 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15309 *bool<mode>3_dot2): New.
15310 (two anonymous define_splits for non_logical_cint_operand): Merge.
15311
15312 2014-08-17 Marek Polacek <polacek@redhat.com>
15313 Manuel López-Ibáñez <manu@gcc.gnu.org>
15314
15315 PR c/62059
15316 * diagnostic.c (adjust_line): Add gcc_checking_assert.
15317 (diagnostic_show_locus): Don't print caret diagnostic
15318 if a column is larger than the line_width.
15319
15320 2014-08-17 Roman Gareev <gareevroman@gmail.com>
15321
15322 * common.opt: Make the ISL AST generator to be the main code generator
15323 of Graphite.
15324
15325 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
15326
15327 * wide-int.h (generic_wide_int): Declare as class instead of struct.
15328
15329 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
15330
15331 PR target/61641
15332 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15333 Declare.
15334 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15335 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15336 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15337 Define.
15338 * config/pa/pa.md (begin_brtab): Delete insn.
15339 (end_brtab): Likewise.
15340
15341 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15342
15343 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15344
15345 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
15346
15347 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15348 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15349 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15350 (get_dynamic_type): Remove.
15351 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15352 (clear_speculation): Bring to ipa-deivrt.h
15353 (get_class_context): Rename to ...
15354 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15355 (contains_type_p): Update.
15356 (get_dynamic_type): Rename to ...
15357 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15358 (possible_polymorphic_call_targets): UPdate.
15359 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15360 * ipa-prop.c (ipa_analyze_call_uses): Update.
15361
15362 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
15363
15364 * doc/invoke.texi (SH options): Document missing processor variant
15365 options. Remove references to Hitachi. Undocument deprecated mspace
15366 option.
15367
15368 2014-08-15 Jason Merrill <jason@redhat.com>
15369
15370 * tree.c (type_hash_canon): Uncomment assert.
15371
15372 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15373
15374 * input.h (in_system_header_at): Add comment.
15375
15376 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15377
15378 PR fortran/44054
15379 * diagnostic.c (build_message_string): Make it extern.
15380 * diagnostic.h (build_message_string): Make it extern.
15381
15382 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
15383
15384 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15385 load/store from/to non-floating class pseudo.
15386
15387 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15388
15389 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15390
15391 2014-08-15 Richard Biener <rguenther@suse.de>
15392
15393 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15394 (get_constraint_for_ssa_var): Remove dead code.
15395 (get_constraint_for_1): Adjust.
15396 (find_what_var_points_to): Likewise.
15397 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
15398
15399 2014-08-15 Ilya Tocar <tocarip@gmail.com>
15400
15401 PR target/61878
15402 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15403 (_mm512_mask_cmpge_epu32_mask): Ditto.
15404 (_mm512_cmpge_epu32_mask): Ditto.
15405 (_mm512_mask_cmpge_epi64_mask): Ditto.
15406 (_mm512_cmpge_epi64_mask): Ditto.
15407 (_mm512_mask_cmpge_epu64_mask): Ditto.
15408 (_mm512_cmpge_epu64_mask): Ditto.
15409 (_mm512_mask_cmple_epi32_mask): Ditto.
15410 (_mm512_cmple_epi32_mask): Ditto.
15411 (_mm512_mask_cmple_epu32_mask): Ditto.
15412 (_mm512_cmple_epu32_mask): Ditto.
15413 (_mm512_mask_cmple_epi64_mask): Ditto.
15414 (_mm512_cmple_epi64_mask): Ditto.
15415 (_mm512_mask_cmple_epu64_mask): Ditto.
15416 (_mm512_cmple_epu64_mask): Ditto.
15417 (_mm512_mask_cmplt_epi32_mask): Ditto.
15418 (_mm512_cmplt_epi32_mask): Ditto.
15419 (_mm512_mask_cmplt_epu32_mask): Ditto.
15420 (_mm512_cmplt_epu32_mask): Ditto.
15421 (_mm512_mask_cmplt_epi64_mask): Ditto.
15422 (_mm512_cmplt_epi64_mask): Ditto.
15423 (_mm512_mask_cmplt_epu64_mask): Ditto.
15424 (_mm512_cmplt_epu64_mask): Ditto.
15425 (_mm512_mask_cmpneq_epi32_mask): Ditto.
15426 (_mm512_mask_cmpneq_epu32_mask): Ditto.
15427 (_mm512_cmpneq_epu32_mask): Ditto.
15428 (_mm512_mask_cmpneq_epi64_mask): Ditto.
15429 (_mm512_cmpneq_epi64_mask): Ditto.
15430 (_mm512_mask_cmpneq_epu64_mask): Ditto.
15431 (_mm512_cmpneq_epu64_mask): Ditto.
15432 (_mm512_castpd_ps): Ditto.
15433 (_mm512_castpd_si512): Ditto.
15434 (_mm512_castps_pd): Ditto.
15435 (_mm512_castps_si512): Ditto.
15436 (_mm512_castsi512_ps): Ditto.
15437 (_mm512_castsi512_pd): Ditto.
15438 (_mm512_castpd512_pd128): Ditto.
15439 (_mm512_castps512_ps128): Ditto.
15440 (_mm512_castsi512_si128): Ditto.
15441 (_mm512_castpd512_pd256): Ditto.
15442 (_mm512_castps512_ps256): Ditto.
15443 (_mm512_castsi512_si256): Ditto.
15444 (_mm512_castpd128_pd512): Ditto.
15445 (_mm512_castps128_ps512): Ditto.
15446 (_mm512_castsi128_si512): Ditto.
15447 (_mm512_castpd256_pd512): Ditto.
15448 (_mm512_castps256_ps512): Ditto.
15449 (_mm512_castsi256_si512): Ditto.
15450 (_mm512_cmpeq_epu32_mask): Ditto.
15451 (_mm512_mask_cmpeq_epu32_mask): Ditto.
15452 (_mm512_mask_cmpeq_epu64_mask): Ditto.
15453 (_mm512_cmpeq_epu64_mask): Ditto.
15454 (_mm512_cmpgt_epu32_mask): Ditto.
15455 (_mm512_mask_cmpgt_epu32_mask): Ditto.
15456 (_mm512_mask_cmpgt_epu64_mask): Ditto.
15457 (_mm512_cmpgt_epu64_mask): Ditto.
15458 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15459 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15460 * config/i386/i386.c (enum ix86_builtins): Add
15461 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15462 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15463 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15464 (bdesc_args): Add __builtin_ia32_si512_256si,
15465 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15466 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15467 __builtin_ia32_pd512_pd.
15468 (ix86_expand_args_builtin): Handle new FTYPEs.
15469 * config/i386/sse.md (castmode): Add 512-bit modes.
15470 (AVX512MODE2P): New.
15471 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15472 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15473
15474 2014-08-15 Richard Biener <rguenther@suse.de>
15475
15476 * fold-const.c (tree_swap_operands_p): Put all constants
15477 last, also strip sign-changing NOPs when considering further
15478 canonicalization. Canonicalize also when optimizing for size.
15479
15480 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15481
15482 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15483 one_match > zero_match case to just before simple_sequence.
15484
15485 2014-08-15 Richard Biener <rguenther@suse.de>
15486
15487 * data-streamer.h (streamer_string_index, string_for_index):
15488 Remove.
15489 * data-streamer-out.c (streamer_string_index): Make static.
15490 * data-streamer-in.c (string_for_index): Likewise.
15491 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15492 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15493
15494 2014-08-15 Richard Biener <rguenther@suse.de>
15495
15496 PR tree-optimization/62031
15497 * tree-data-ref.c (dr_analyze_indices): Do not set
15498 DR_UNCONSTRAINED_BASE.
15499 (dr_may_alias_p): All indirect accesses have to go the
15500 formerly DR_UNCONSTRAINED_BASE path.
15501 * tree-data-ref.h (struct indices): Remove
15502 unconstrained_base member.
15503 (DR_UNCONSTRAINED_BASE): Remove.
15504
15505 2014-08-15 Jakub Jelinek <jakub@redhat.com>
15506
15507 PR middle-end/62092
15508 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15509 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15510 in OMP_CLAUSE_MAP in some outer target region.
15511
15512 2014-08-15 Bin Cheng <bin.cheng@arm.com>
15513
15514 * tree-ssa-loop-ivopts.c (ivopts_data): New field
15515 name_expansion_cache.
15516 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15517 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15518 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15519 (difference_cannot_overflow_p): New parameter. Use affine
15520 expansion for equality check.
15521 (iv_elimination_compare_lt): Pass new argument.
15522
15523 2014-08-14 DJ Delorie <dj@redhat.com>
15524
15525 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15526 variables to the accumulator.
15527
15528 * config/rl78/predicates.md (rl78_near_mem_operand): New.
15529 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15530 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15531 with far-far moves.
15532
15533 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15534 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15535 (umulqihi3_virt): Likewise.
15536 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15537 (umulqihi3_real): Likewise.
15538
15539 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15540
15541 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15542
15543 PR tree-optimization/62091
15544 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15545 function_entry_reached.
15546 (walk_aliased_vdefs): Clear it here.
15547 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15548
15549 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15550
15551 * ipa-utils.h (compare_virtual_tables): Declare.
15552 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15553
15554 2014-08-14 Marek Polacek <polacek@redhat.com>
15555
15556 DR 458
15557 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15558 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15559
15560 2014-08-14 Tom de Vries <tom@codesourcery.com>
15561
15562 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15563
15564 2014-08-14 Tom de Vries <tom@codesourcery.com>
15565
15566 PR rtl-optimization/62004
15567 PR rtl-optimization/62030
15568 * ifcvt.c (rtx_interchangeable_p): New function.
15569 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15570 * emit-rtl.h (mem_attrs_eq_p): Declare.
15571
15572 2014-08-14 Roman Gareev <gareevroman@gmail.com>
15573
15574 * graphite-scop-detection.c:
15575 Add inclusion of cp-tree.h.
15576 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15577 in case they are pointers to object types
15578
15579 2014-08-14 Richard Biener <rguenther@suse.de>
15580
15581 * BASE-VER: Change to 5.0.0
15582
15583 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15584 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15585 Anna Tikhonova <anna.tikhonova@intel.com>
15586 Ilya Tocar <ilya.tocar@intel.com>
15587 Andrey Turetskiy <andrey.turetskiy@intel.com>
15588 Ilya Verbin <ilya.verbin@intel.com>
15589 Kirill Yukhin <kirill.yukhin@intel.com>
15590 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15591
15592 * config/i386/sse.md (define_mode_attr avx512): New.
15593 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15594 V4DI modes.
15595 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15596 (define_mode_attr ssse3_avx2): Ditto.
15597 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15598 (define_mode_attr avx2_avx512bw): New.
15599 (define_mode_attr ssedoublemodelower): New.
15600 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15601 V32HI, V64QI modes.
15602 (define_mode_attr ssebytemode): Allow V8DI modes.
15603 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15604 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15605 (define_mode_attr ssePSmode2): New.
15606 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15607 V16HI, V32HI modes.
15608 (define_mode_attr dbpsadbwmode): New.
15609 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15610 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15611 (vi8_sse4_1_avx2_avx512): New.
15612 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15613 mode attribute.
15614 (define_mode_attr blendbits): Move before its immediate use.
15615
15616 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15617 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15618 Anna Tikhonova <anna.tikhonova@intel.com>
15619 Ilya Tocar <ilya.tocar@intel.com>
15620 Andrey Turetskiy <andrey.turetskiy@intel.com>
15621 Ilya Verbin <ilya.verbin@intel.com>
15622 Kirill Yukhin <kirill.yukhin@intel.com>
15623 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15624
15625 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15626 * config/i386/subst.md
15627 (define_mode_iterator SUBST_V): Update.
15628 (define_mode_iterator SUBST_A): Ditto.
15629 (define_subst_attr "mask_operand7"): New.
15630 (define_subst_attr "mask_operand10"): New.
15631 (define_subst_attr "mask_operand_arg34") : New.
15632 (define_subst_attr "mask_expand_op3"): New.
15633 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15634 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15635 (define_subst_attr "mask_avx512vl_condition"): New.
15636 (define_subst_attr "round_mask_operand4"): Ditto.
15637 (define_subst_attr "round_mask_scalar_op3"): Delete.
15638 (define_subst_attr "round_mask_op4"): New.
15639 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15640 V16SImode.
15641 (define_subst_attr "round_modev8sf_condition"): New.
15642 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15643 <MODE>mode.
15644 (define_subst_attr "round_saeonly_mask_operand4"): New.
15645 (define_subst_attr "round_saeonly_mask_op4"): New.
15646 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15647 V8DImode, V16SImode.
15648 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15649 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15650 (define_subst_attr "mask_expand4_args"): New.
15651 (define_subst "mask_expand4"): New.
15652
15653 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15654 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15655 Anna Tikhonova <anna.tikhonova@intel.com>
15656 Ilya Tocar <ilya.tocar@intel.com>
15657 Andrey Turetskiy <andrey.turetskiy@intel.com>
15658 Ilya Verbin <ilya.verbin@intel.com>
15659 Kirill Yukhin <kirill.yukhin@intel.com>
15660 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15661
15662 * config/i386/i386.md
15663 (define_attr "isa"): Add avx512bw,noavx512bw.
15664 (define_attr "enabled"): Ditto.
15665 (define_split): Add 32/64-bit mask logic.
15666 (define_insn "*k<logic>qi"): New.
15667 (define_insn "*k<logic>hi"): New.
15668 (define_insn "*anddi_1"): Add mask version.
15669 (define_insn "*andsi_1"): Ditto.
15670 (define_insn "*<code><mode>_1"): Ditto.
15671 (define_insn "*<code>hi_1"): Ditto.
15672 (define_insn "kxnor<mode>"): New.
15673 (define_insn "kunpcksi"): New.
15674 (define_insn "kunpckdi"): New.
15675 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15676 (define_insn "*one_cmplhi2_1"): Ditto.
15677
15678 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15679 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15680 Anna Tikhonova <anna.tikhonova@intel.com>
15681 Ilya Tocar <ilya.tocar@intel.com>
15682 Andrey Turetskiy <andrey.turetskiy@intel.com>
15683 Ilya Verbin <ilya.verbin@intel.com>
15684 Kirill Yukhin <kirill.yukhin@intel.com>
15685 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15686
15687 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15688 V32HImode.
15689
15690 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15692 Anna Tikhonova <anna.tikhonova@intel.com>
15693 Ilya Tocar <ilya.tocar@intel.com>
15694 Andrey Turetskiy <andrey.turetskiy@intel.com>
15695 Ilya Verbin <ilya.verbin@intel.com>
15696 Kirill Yukhin <kirill.yukhin@intel.com>
15697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15698
15699 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15700 registers.
15701 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15702 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15703 xmm/ymm16+ when availble.
15704 * config/i386/i386.h
15705 (HARD_REGNO_NREGS): Add mask regs.
15706 (VALID_AVX512F_REG_MODE): Ditto.
15707 (VALID_AVX512F_REG_MODE) : Define.
15708 (VALID_MASK_AVX512BW_MODE): Ditto.
15709 (reg_class) (MASK_REG_P(X)): Define.
15710 * config/i386/i386.md: Do not split long moves with mask register,
15711 use kmovb if avx512bw is availible.
15712 (movdi_internal): Handle mask registers.
15713
15714 2014-08-14 Richard Biener <rguenther@suse.de>
15715
15716 PR tree-optimization/62081
15717 * tree-ssa-loop.c (pass_fix_loops): New pass.
15718 (pass_tree_loop::gate): Do not fixup loops here.
15719 * tree-pass.h (make_pass_fix_loops): Declare.
15720 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15721
15722 2014-08-14 Richard Biener <rguenther@suse.de>
15723
15724 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15725 (type_hash_canon): ... this and avoid 2nd lookup for the add.
15726
15727 2014-08-14 Richard Biener <rguenther@suse.de>
15728
15729 PR tree-optimization/62090
15730 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15731 (fold_builtin_2): Do not fold sprintf.
15732 (fold_builtin_3): Likewise.
15733 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15734 moved from builtins.c.
15735 (gimple_fold_builtin): Fold sprintf.
15736
15737 2014-08-14 Richard Biener <rguenther@suse.de>
15738
15739 PR rtl-optimization/62079
15740 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15741 run cleanup_cfg.
15742
15743 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15744
15745 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15746 current_function_decl.
15747
15748 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15749
15750 * cgraph.c (cgraph_node::function_symbol): Fix wrong
15751 cgraph_function_node to cgraph_node::function_symbol
15752 refactoring.
15753
15754 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
15755
15756 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15757 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15758
15759 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
15760
15761 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15762 warning.
15763
15764 2014-08-13 Roman Gareev <gareevroman@gmail.com>
15765
15766 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15767 generator.
15768
15769 2014-08-12 Jakub Jelinek <jakub@redhat.com>
15770
15771 PR target/62025
15772 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15773 any registers that are used in mem_insn.
15774
15775 2014-08-12 Steve Ellcey <sellcey@mips.com>
15776
15777 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15778
15779 2014-08-12 Steve Ellcey <sellcey@mips.com>
15780
15781 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15782 (MULTILIB_DIRNAMES): Ditto.
15783 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15784 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15785 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15786 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15787 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15788 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15789
15790 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15791
15792 PR target/61413
15793 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15794 of __ARM_SIZEOF_WCHAR_T.
15795
15796 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15797
15798 PR target/62098
15799 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15800 Remove unnecessary attributes.
15801
15802 2014-08-12 Yury Gribov <y.gribov@samsung.com>
15803
15804 * internal-fn.c (init_internal_fns): Fix off-by-one.
15805
15806 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15807 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15808 Anna Tikhonova <anna.tikhonova@intel.com>
15809 Ilya Tocar <ilya.tocar@intel.com>
15810 Andrey Turetskiy <andrey.turetskiy@intel.com>
15811 Ilya Verbin <ilya.verbin@intel.com>
15812 Kirill Yukhin <kirill.yukhin@intel.com>
15813 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15814
15815 * config/i386/i386.c (standard_sse_constant_opcode): Use
15816 vpxord/vpternlog if avx512 is availible.
15817
15818 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15819
15820 PR middle-end/62103
15821 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15822 bitfields, that is when size doesn't match the size of type or the
15823 size of the constructor.
15824
15825 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15826
15827 * config/rs6000/constraints.md (wh constraint): New constraint,
15828 for FP registers if direct move is available.
15829 (wi constraint): New constraint, for VSX/FP registers that can
15830 handle 64-bit integers.
15831 (wj constraint): New constraint for VSX/FP registers that can
15832 handle 64-bit integers for direct moves.
15833 (wk constraint): New constraint for VSX/FP registers that can
15834 handle 64-bit doubles for direct moves.
15835 (wy constraint): Make documentation match implementation.
15836
15837 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15838 scalar_in_vmx_p field to simplify tests of whether SFmode or
15839 DFmode can go in the Altivec registers.
15840 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15841 (rs6000_setup_reg_addr_masks): Likewise.
15842 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15843 field, and wh/wi/wj/wk constraints.
15844 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15845 the wh/wi/wj/wk constraints.
15846 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15847 upper registers, prefer VSX registers unless the operation is a
15848 memory operation with REG+OFFSET addressing.
15849
15850 * config/rs6000/vsx.md (VSr mode attribute): Add support for
15851 DImode. Change SFmode to use ww constraint instead of d to allow
15852 SF registers in the upper registers.
15853 (VSr2): Likewise.
15854 (VSr3): Likewise.
15855 (VSr5): Fix thinko in comment.
15856 (VSa): New mode attribute that is an alternative to wa, that
15857 returns the VSX register class that a mode can go in, but may not
15858 be the preferred register class.
15859 (VS_64dm): New mode attribute for appropriate register classes for
15860 referencing 64-bit elements of vectors for direct moves and normal
15861 moves.
15862 (VS_64reg): Likewise.
15863 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15864 register allocator to only registers the data type can handle.
15865 (vsx_le_perm_load_<mode>): Likewise.
15866 (vsx_le_perm_store_<mode>): Likewise.
15867 (vsx_xxpermdi2_le_<mode>): Likewise.
15868 (vsx_xxpermdi4_le_<mode>): Likewise.
15869 (vsx_lxvd2x2_le_<mode>): Likewise.
15870 (vsx_lxvd2x4_le_<mode>): Likewise.
15871 (vsx_stxvd2x2_le_<mode>): Likewise.
15872 (vsx_add<mode>3): Likewise.
15873 (vsx_sub<mode>3): Likewise.
15874 (vsx_mul<mode>3): Likewise.
15875 (vsx_div<mode>3): Likewise.
15876 (vsx_tdiv<mode>3_internal): Likewise.
15877 (vsx_fre<mode>2): Likewise.
15878 (vsx_neg<mode>2): Likewise.
15879 (vsx_abs<mode>2): Likewise.
15880 (vsx_nabs<mode>2): Likewise.
15881 (vsx_smax<mode>3): Likewise.
15882 (vsx_smin<mode>3): Likewise.
15883 (vsx_sqrt<mode>2): Likewise.
15884 (vsx_rsqrte<mode>2): Likewise.
15885 (vsx_tsqrt<mode>2_internal): Likewise.
15886 (vsx_fms<mode>4): Likewise.
15887 (vsx_nfma<mode>4): Likewise.
15888 (vsx_eq<mode>): Likewise.
15889 (vsx_gt<mode>): Likewise.
15890 (vsx_ge<mode>): Likewise.
15891 (vsx_eq<mode>_p): Likewise.
15892 (vsx_gt<mode>_p): Likewise.
15893 (vsx_ge<mode>_p): Likewise.
15894 (vsx_xxsel<mode>): Likewise.
15895 (vsx_xxsel<mode>_uns): Likewise.
15896 (vsx_copysign<mode>3): Likewise.
15897 (vsx_float<VSi><mode>2): Likewise.
15898 (vsx_floatuns<VSi><mode>2): Likewise.
15899 (vsx_fix_trunc<mode><VSi>2): Likewise.
15900 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15901 (vsx_x<VSv>r<VSs>i): Likewise.
15902 (vsx_x<VSv>r<VSs>ic): Likewise.
15903 (vsx_btrunc<mode>2): Likewise.
15904 (vsx_b2trunc<mode>2): Likewise.
15905 (vsx_floor<mode>2): Likewise.
15906 (vsx_ceil<mode>2): Likewise.
15907 (vsx_<VS_spdp_insn>): Likewise.
15908 (vsx_xscvspdp): Likewise.
15909 (vsx_xvcvspuxds): Likewise.
15910 (vsx_float_fix_<mode>2): Likewise.
15911 (vsx_set_<mode>): Likewise.
15912 (vsx_extract_<mode>_internal1): Likewise.
15913 (vsx_extract_<mode>_internal2): Likewise.
15914 (vsx_extract_<mode>_load): Likewise.
15915 (vsx_extract_<mode>_store): Likewise.
15916 (vsx_splat_<mode>): Likewise.
15917 (vsx_xxspltw_<mode>): Likewise.
15918 (vsx_xxspltw_<mode>_direct): Likewise.
15919 (vsx_xxmrghw_<mode>): Likewise.
15920 (vsx_xxmrglw_<mode>): Likewise.
15921 (vsx_xxsldwi_<mode>): Likewise.
15922 (vsx_xscvdpspn): Tighten constraints to only use register classes
15923 the types use.
15924 (vsx_xscvspdpn): Likewise.
15925 (vsx_xscvdpspn_scalar): Likewise.
15926
15927 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15928 wj, and wk constraints.
15929 (GPR_REG_CLASS_P): New helper macro for register classes targeting
15930 general purpose registers.
15931
15932 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15933 direct moves.
15934 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15935 DImode instead of wm. Use wk constraint for direct move of DFmode
15936 instead of wm.
15937 (extendsidi2_lfiwax): Likewise.
15938 (lfiwax): Likewise.
15939 (lfiwzx): Likewise.
15940 (movdi_internal64): Likewise.
15941
15942 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15943 wk constraints. Make the wy constraint documentation match them
15944 implementation.
15945
15946 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
15947
15948 Replacement of isl_int by isl_val
15949 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15950 (compute_bounds_for_param): use isl_val instead of isl_int
15951 (compute_bounds_for_loop): likewise
15952 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15953 (build_linearized_memory_access): use isl_val instead of isl_int
15954 (pdr_stride_in_loop): likewise
15955 * graphite-optimize-isl.c:
15956 (getPrevectorMap): use isl_val instead of isl_int
15957 * graphite-poly.c:
15958 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15959 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15960 (extern the_isl_ctx): declare
15961 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15962 (extract_affine_gmp): likewise
15963 (wrap): likewise
15964 (build_loop_iteration_domains): likewise
15965 (add_param_constraints): likewise
15966
15967 2014-08-11 Richard Biener <rguenther@suse.de>
15968
15969 PR tree-optimization/62075
15970 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
15971 handle uses in patterns.
15972
15973 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15974 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15975 Anna Tikhonova <anna.tikhonova@intel.com>
15976 Ilya Tocar <ilya.tocar@intel.com>
15977 Andrey Turetskiy <andrey.turetskiy@intel.com>
15978 Ilya Verbin <ilya.verbin@intel.com>
15979 Kirill Yukhin <kirill.yukhin@intel.com>
15980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15981
15982 * common/config/i386/i386-common.c
15983 (OPTION_MASK_ISA_AVX512VL_SET): Define.
15984 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15985 (ix86_handle_option): Handle OPT_mavx512vl.
15986 * config/i386/cpuid.h (bit_AVX512VL): Define.
15987 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15988 set -mavx512vl accordingly.
15989 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15990 OPTION_MASK_ISA_AVX512VL.
15991 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15992 (ix86_option_override_internal): Define PTA_AVX512VL, handle
15993 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15994 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15995 * config/i386/i386.h (TARGET_AVX512VL): Define.
15996 (TARGET_AVX512VL_P(x)): Ditto.
15997 * config/i386/i386.opt: Add mavx512vl.
15998
15999 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
16000
16001 PR tree-optimization/62073
16002 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16003 a basic block.
16004
16005 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16006 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16007 Anna Tikhonova <anna.tikhonova@intel.com>
16008 Ilya Tocar <ilya.tocar@intel.com>
16009 Andrey Turetskiy <andrey.turetskiy@intel.com>
16010 Ilya Verbin <ilya.verbin@intel.com>
16011 Kirill Yukhin <kirill.yukhin@intel.com>
16012 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16013
16014 * common/config/i386/i386-common.c
16015 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16016 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16017 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16018 (ix86_handle_option): Handle OPT_mavx512bw.
16019 * config/i386/cpuid.h (bit_AVX512BW): Define.
16020 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16021 set -mavx512bw accordingly.
16022 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16023 OPTION_MASK_ISA_AVX512BW.
16024 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16025 (ix86_option_override_internal): Define PTA_AVX512BW, handle
16026 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16027 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16028 * config/i386/i386.h (TARGET_AVX512BW): Define.
16029 (TARGET_AVX512BW_P(x)): Ditto.
16030 * config/i386/i386.opt: Add mavx512bw.
16031
16032 2014-08-11 Richard Biener <rguenther@suse.de>
16033
16034 PR tree-optimization/62070
16035 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16036 Remove SSA checking.
16037
16038 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16039
16040 * asan.c (asan_check_flags): New enum.
16041 (build_check_stmt_with_calls): Removed function.
16042 (build_check_stmt): Split inlining logic to
16043 asan_expand_check_ifn.
16044 (instrument_derefs): Rename parameter.
16045 (instrument_mem_region_access): Rename parameter.
16046 (instrument_strlen_call): Likewise.
16047 (asan_expand_check_ifn): New function.
16048 (asan_instrument): Remove old code.
16049 (pass_sanopt::execute): Change handling of
16050 asan-instrumentation-with-call-threshold.
16051 (asan_clear_shadow): Fix formatting.
16052 (asan_function_start): Likewise.
16053 (asan_emit_stack_protection): Likewise.
16054 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16055 Update description.
16056 * internal-fn.c (expand_ASAN_CHECK): New function.
16057 * internal-fn.def (ASAN_CHECK): New internal function.
16058 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16059 Update description.
16060 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16061 * tree.c: Small comment fix.
16062
16063 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16064
16065 * gimple.c (gimple_call_fnspec): Support internal functions.
16066 (gimple_call_return_flags): Use const.
16067 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16068 * internal-fn.def: Add fnspec information.
16069 * internal-fn.h (internal_fn_fnspec): New function.
16070 (init_internal_fns): Declare new function.
16071 * internal-fn.c (internal_fn_fnspec_array): New global variable.
16072 (init_internal_fns): New function.
16073 * tree-core.h: Update macro call.
16074 * tree.c (build_common_builtin_nodes): Initialize internal fns.
16075
16076 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
16077
16078 * lto-streamer.h (struct output_block::symbol): Change from
16079 struct symtab_node to plain symtab_node.
16080 (referenced_from_this_partition_p): Change first parameter
16081 from struct symtab_node to plain symtab_node.
16082
16083 2014-08-10 Marek Polacek <polacek@redhat.com>
16084
16085 PR c/51849
16086 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16087
16088 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
16089
16090 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16091 DECL correctly; do not give up on types in static storage.
16092
16093 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
16094
16095 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16096
16097 2014-08-09 Roman Gareev <gareevroman@gmail.com>
16098
16099 * graphite-isl-ast-to-gimple.c:
16100 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16101
16102 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16103
16104 2014-08-08 Guozhi Wei <carrot@google.com>
16105
16106 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16107
16108 2014-08-08 Cary Coutant <ccoutant@google.com>
16109
16110 * dwarf2out.c (get_skeleton_type_unit): Remove.
16111 (output_skeleton_debug_sections): Remove skeleton type units.
16112 (output_comdat_type_unit): Likewise.
16113 (dwarf2out_finish): Likewise.
16114
16115 2014-08-07 Yi Yang <ahyangyi@google.com>
16116
16117 * predict.c (expr_expected_value_1): Remove the redundant assignment.
16118
16119 2014-08-08 Richard Biener <rguenther@suse.de>
16120
16121 * lto-streamer.h (struct lto_input_block): Make it a class
16122 with a constructor.
16123 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16124 (struct lto_function_header, struct lto_simple_header,
16125 struct lto_simple_header_with_strings,
16126 struct lto_decl_header, struct lto_function_header): Make
16127 a simple inheritance hieararchy. Remove unused fields.
16128 (struct lto_asm_header): Remove.
16129 * lto-streamer-out.c (produce_asm): Adjust.
16130 (lto_output_toplevel_asms): Likewise.
16131 (produce_asm_for_decls): Likewise.
16132 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16133 * data-streamer-in.c (string_for_index): Likewise.
16134 * ipa-inline-analysis.c (inline_read_section): Likewise.
16135 * ipa-prop.c (ipa_prop_read_section): Likewise.
16136 (read_replacements_section): Likewise.
16137 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16138 * lto-section-in.c (lto_create_simple_input_block): Likewise.
16139 (lto_destroy_simple_input_block): Likewise.
16140 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16141 (lto_input_toplevel_asms): Likewise.
16142
16143 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
16144 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16145 Anna Tikhonova <anna.tikhonova@intel.com>
16146 Ilya Tocar <ilya.tocar@intel.com>
16147 Andrey Turetskiy <andrey.turetskiy@intel.com>
16148 Ilya Verbin <ilya.verbin@intel.com>
16149 Kirill Yukhin <kirill.yukhin@intel.com>
16150 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16151
16152 * common/config/i386/i386-common.c
16153 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16154 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16155 (ix86_handle_option): Handle OPT_mavx512dq.
16156 * config/i386/cpuid.h (bit_AVX512DQ): Define.
16157 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16158 set -mavx512dq accordingly.
16159 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16160 OPTION_MASK_ISA_AVX512DQ.
16161 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16162 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16163 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16164 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16165 * config/i386/i386.h (TARGET_AVX512DQ): Define.
16166 (TARGET_AVX512DQ_P(x)): Ditto.
16167 * config/i386/i386.opt: Add mavx512dq.
16168
16169 2014-08-08 Richard Biener <rguenther@suse.de>
16170
16171 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16172 target_percent, target_percent_s): Export.
16173 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16174 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16175 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16176 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16177 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16178 Move to gimple-fold.c.
16179 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16180 strcat and strcpy.
16181 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16182 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16183 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16184 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16185 (rewrite_call_expr_array): Remove.
16186 (fold_builtin_sprintf_chk): Likewise.
16187 (fold_builtin_snprintf_chk): Likewise.
16188 (fold_builtin_varargs): Remove handling of sprintf_chk,
16189 vsprintf_chk, snprintf_chk and vsnprintf_chk.
16190 (gimple_fold_builtin_sprintf_chk): Remove.
16191 (gimple_fold_builtin_snprintf_chk): Likewise.
16192 (gimple_fold_builtin_varargs): Likewise.
16193 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16194 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16195 * gimple.c (gimple_seq_add_seq_without_update): New function.
16196 * gimple.h (gimple_seq_add_seq_without_update): Declare.
16197 * gimple-fold.c: Include output.h.
16198 (gsi_replace_with_seq_vops): New function, split out from ...
16199 (gimplify_and_update_call_from_tree): ... here.
16200 (replace_call_with_value): New function.
16201 (replace_call_with_call_and_fold): Likewise.
16202 (var_decl_component_p): Moved from builtins.c.
16203 (gimple_fold_builtin_memory_op): Moved from builtins.c
16204 fold_builtin_memory_op and rewritten to GIMPLE.
16205 (gimple_fold_builtin_memset): Likewise.
16206 (gimple_fold_builtin_strcpy): Likewise.
16207 (gimple_fold_builtin_strncpy): Likewise.
16208 (gimple_fold_builtin_strcat): Likewise.
16209 (gimple_fold_builtin_fputs): Likewise.
16210 (gimple_fold_builtin_memory_chk): Likewise.
16211 (gimple_fold_builtin_stxcpy_chk): Likewise.
16212 (gimple_fold_builtin_stxncpy_chk): Likewise.
16213 (gimple_fold_builtin_snprintf_chk): Likewise.
16214 (gimple_fold_builtin_sprintf_chk): Likewise.
16215 (gimple_fold_builtin_strlen): New function.
16216 (gimple_fold_builtin_with_strlen): New function split out from
16217 gimple_fold_builtin.
16218 (gimple_fold_builtin): Change signature and handle
16219 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16220 here. Call gimple_fold_builtin_with_strlen.
16221 (gimple_fold_call): Adjust.
16222
16223 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16224
16225 * calls.c (precompute_arguments): Check
16226 promoted_for_signed_and_unsigned_p and set the promoted mode.
16227 (promoted_for_signed_and_unsigned_p): New function.
16228 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16229 and set the promoted mode.
16230 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16231 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16232 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16233
16234
16235 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16236
16237 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16238 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16239 (expand_call): Likewise.
16240 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16241 to get promoted mode.
16242 * combine.c (record_promoted_value): Skip > 0 comparison with
16243 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16244 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16245 of SUBREG_PROMOTED_UNSIGNED_P.
16246 (convert_modes): Likewise.
16247 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16248 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16249 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16250 SUBREG_PROMOTED_UNSIGNED_SET.
16251 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16252 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16253 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16254 SUBREG_PROMOTED_SET.
16255 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16256 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16257 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16258 of SUBREG_PROMOTED_UNSIGNED_P.
16259 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16260 (SUBREG_PROMOTED_SET): New define.
16261 (SUBREG_PROMOTED_GET): Likewise.
16262 (SUBREG_PROMOTED_SIGN): Likewise.
16263 (SUBREG_PROMOTED_SIGNED_P): Likewise.
16264 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16265 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16266 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16267 instead of SUBREG_PROMOTED_UNSIGNED_GET.
16268 (nonzero_bits1): Skip > 0 comparison with the results as
16269 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16270 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16271 of !SUBREG_PROMOTED_UNSIGNED_P.
16272 * simplify-rtx.c (simplify_unary_operation_1): Use new
16273 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16274 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16275 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16276 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16277
16278 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
16279
16280 * ipa-devirt.c: Include gimple-pretty-print.h
16281 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16282 further tests.
16283 (decl_maybe_in_construction_p): Fix conditional on cdtor check
16284 (get_polymorphic_call_info): Fix return value
16285 (type_change_info): New sturcture based on ipa-prop
16286 variant.
16287 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16288 based on ipa-prop variant.
16289 (extr_type_from_vtbl_ptr_store): New function
16290 based on ipa-prop variant.
16291 (record_known_type): New function.
16292 (check_stmt_for_type_change): New function.
16293 (get_dynamic_type): New function.
16294 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16295 * tree-ssa-pre.c: ipa-utils.h
16296 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16297 machinery; sanity check with ipa-prop devirtualization.
16298 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16299 polymorphic flag.
16300
16301 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16302
16303 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16304 * alias.c, cfgexpand.c, cgraphbuild.c,
16305 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16306 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16307 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16308 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16309 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16310 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16311 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16312 dse.c, except.c, gengtype.c, gimple-expr.c,
16313 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16314 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16315 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16316 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16317 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16318 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16319 pointer-set.h.
16320 * pointer-set.c: Remove file.
16321 * pointer-set.h: Remove file.
16322
16323 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16324
16325 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16326 * config/arm/types.md (f_sels, f_seld): Delete.
16327
16328 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16329
16330 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16331 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16332 (aarch64_movdi_<mode>high): Likewise.
16333 (aarch64_mov<mode>high_di): Likewise.
16334 (aarch64_movdi_<mode>low): Likewise.
16335 (aarch64_mov<mode>low_di): Likewise.
16336 (aarch64_movtilow_tilow): Likewise.
16337 Add comment explaining usage of fp,simd attributes and of
16338 TARGET_FLOAT and TARGET_SIMD.
16339
16340 2014-08-07 Ian Bolton <ian.bolton@arm.com>
16341 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16342
16343 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16344 Use MOVN when one of the half-words is 0xffff.
16345
16346 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16347
16348 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16349
16350 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16351
16352 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
16353 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16354 (rfs_str): String corresponding to RFS_* constants.
16355 (rank_for_schedule_stats_t): New typedef.
16356 (rank_for_schedule_stats): New static variable.
16357 (rfs_result): New static function.
16358 (rank_for_schedule): Track statistics for deciding heuristics.
16359 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16360 static functions.
16361 (ready_sort): Use them for debug printouts.
16362 (schedule_block): Init statistics state. Print statistics on
16363 rank_for_schedule decisions.
16364
16365 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16366
16367 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16368
16369 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
16370
16371 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16372 constraint.
16373
16374 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16375
16376 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16377 function to not conflict.
16378 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16379 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16380 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16381 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16382 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16383 of pointer_map.
16384
16385 2014-08-07 Marek Polacek <polacek@redhat.com>
16386
16387 * fold-const.c (fold_binary_loc): Add folding of
16388 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16389
16390 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
16391
16392 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16393 instead of type size.
16394 (ASM_FINISH_DECLARE_OBJECT): Likewise.
16395
16396 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16397
16398 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16399 (*thumb1_movqi_insn): Likewise.
16400 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16401
16402 2014-08-07 Tom de Vries <tom@codesourcery.com>
16403
16404 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16405 (glibc_2_11_or_earlier): Remove effective-target keywords.
16406
16407 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16408
16409 * config/arm/arm.c (bdesc_2arg): Fix typo.
16410 (arm_atomic_assign_expand_fenv): Remove The default implementation.
16411
16412 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
16413
16414 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16415
16416 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
16417
16418 PR debug/61923
16419 * haifa-sched.c (advance_one_cycle): Fix dump.
16420 (schedule_block): Don't advance cycle if we are already at the
16421 beginning of the cycle.
16422
16423 2014-08-06 Martin Jambor <mjambor@suse.cz>
16424
16425 PR ipa/61393
16426 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16427
16428 2014-08-06 Richard Biener <rguenther@suse.de>
16429
16430 PR lto/62034
16431 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16432 SCCs here.
16433 (lto_input_tree): Pop SCCs here.
16434
16435 2014-08-06 Richard Biener <rguenther@suse.de>
16436
16437 PR tree-optimization/61320
16438 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16439 handle misaligned loads.
16440
16441 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
16442
16443 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16444 (aarch64_expand_vec_perm_const): Check for dup before zip.
16445
16446 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16447
16448 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16449 CONST_INT_P instead of GET_CODE and compare.
16450 (aarch64_select_cc_mode): Likewise.
16451 (aarch64_print_operand): Likewise.
16452 (aarch64_rtx_costs): Likewise.
16453 (aarch64_simd_valid_immediate): Likewise.
16454 (aarch64_simd_check_vect_par_cnst_half): Likewise.
16455 (aarch64_simd_emit_pair_result_insn): Likewise.
16456
16457 2014-08-05 David Malcolm <dmalcolm@redhat.com>
16458
16459 * gdbhooks.py (find_gcc_source_dir): New helper function.
16460 (class PassNames): New class, locating and parsing passes.def.
16461 (class BreakOnPass): New command "break-on-pass".
16462
16463 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
16464
16465 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16466 getting olde.
16467
16468 2014-08-05 Richard Biener <rguenther@suse.de>
16469
16470 PR rtl-optimization/61672
16471 * emit-rtl.h (mem_attrs_eq_p): Declare.
16472 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
16473 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16474 * cfgcleanup.c (merge_memattrs): Likewise.
16475 Include emit-rtl.h.
16476
16477 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16478
16479 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16480 rather than singleton vectors.
16481 (vqdmlsls_lane_s32): Likewise.
16482
16483 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16484
16485 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16486 Use VSDQ_HSI mode iterator.
16487 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16488 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16489 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16490 Use BUILTIN_VDQHS macro.
16491 (sqrdmulh_laneq): Likewise.
16492 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16493 (vqdmlals_laneq_s32): Likewise.
16494 (vqdmlslh_laneq_s16): Likewise.
16495 (vqdmlsls_laneq_s32): Likewise.
16496 (vqdmulhh_laneq_s16): Likewise.
16497 (vqdmulhs_laneq_s32): Likewise.
16498 (vqrdmulhh_laneq_s16): Likewise.
16499 (vqrdmulhs_laneq_s32): Likewise.
16500
16501 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16502
16503 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16504 (vmuld_laneq_f64): Likewise.
16505 (vmuls_laneq_f32): Likewise.
16506 (vmul_n_f64): Likewise.
16507 (vmuld_lane_f64): Reimplement in C.
16508 (vmuls_lane_f32): Likewise.
16509
16510 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16511
16512 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16513 to reservation.
16514 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16515
16516 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16517
16518 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16519 (rbitsi2): Likewise.
16520 (*arm_rev): Set predicable and predicable_short_it attributes.
16521
16522 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16523
16524 * convert.c (convert_to_integer): Guard transformation to lrint by
16525 -fno-math-errno.
16526
16527 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16528
16529 * config/aarch64/aarch64-builtins.c
16530 (aarch64_simd_builtin_type_mode): Delete.
16531 (v8qi_UP): Remap to V8QImode.
16532 (v4hi_UP): Remap to V4HImode.
16533 (v2si_UP): Remap to V2SImode.
16534 (v2sf_UP): Remap to V2SFmode.
16535 (v1df_UP): Remap to V1DFmode.
16536 (di_UP): Remap to DImode.
16537 (df_UP): Remap to DFmode.
16538 (v16qi_UP):V16QImode.
16539 (v8hi_UP): Remap to V8HImode.
16540 (v4si_UP): Remap to V4SImode.
16541 (v4sf_UP): Remap to V4SFmode.
16542 (v2di_UP): Remap to V2DImode.
16543 (v2df_UP): Remap to V2DFmode.
16544 (ti_UP): Remap to TImode.
16545 (ei_UP): Remap to EImode.
16546 (oi_UP): Remap to OImode.
16547 (ci_UP): Map to CImode.
16548 (xi_UP): Remap to XImode.
16549 (si_UP): Remap to SImode.
16550 (sf_UP): Remap to SFmode.
16551 (hi_UP): Remap to HImode.
16552 (qi_UP): Remap to QImode.
16553 (aarch64_simd_builtin_datum): Make mode a machine_mode.
16554 (VAR1): Build builtin name.
16555 (aarch64_init_simd_builtins): Remove dead code.
16556
16557 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16558
16559 * graphite-isl-ast-to-gimple.c:
16560 (set_options): New function.
16561 (scop_to_isl_ast): Add calling of set_options.
16562
16563 2014-08-05 Jakub Jelinek <jakub@redhat.com>
16564
16565 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16566 (analyze_iv_to_split_insn): Don't initialize them.
16567 (get_ivts_expr): Removed.
16568 (allocate_basic_variable, insert_base_initialization): Use
16569 SET_SRC instead of *get_ivts_expr.
16570 (split_iv): Use &SET_SRC instead of get_ivts_expr.
16571
16572 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16573
16574 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16575 (translate_isl_ast_for_loop): Add checking of the
16576 flag_loop_parallelize_all.
16577 (ast_build_before_for): New function.
16578 (scop_to_isl_ast): Add checking of the
16579 flag_loop_parallelize_all.
16580 * graphite-dependences.c: Move the defenition of the
16581 scop_get_dependences from graphite-optimize-isl.c to this file.
16582 (apply_schedule_on_deps): Add checking of the ux's emptiness.
16583 (carries_deps): Add checking of the x's value.
16584 * graphite-optimize-isl.c: Move the defenition of the
16585 scop_get_dependences to graphite-dependences.c.
16586 * graphite-poly.h: Add declarations of scop_get_dependences
16587 and carries_deps.
16588
16589 2014-08-04 Rohit <rohitarulraj@freescale.com>
16590
16591 PR target/60102
16592 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16593 names.
16594 (alt_reg_names): Likewise.
16595 (rs6000_dwarf_register_span): For SPE high registers, replace
16596 dwarf register numbers with GCC hard register numbers.
16597 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16598 (rs6000_dbx_register_number): For SPE high registers, return dwarf
16599 register number for the corresponding GCC hard register number.
16600 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16601 newly added GCC hard register numbers for SPE high registers.
16602 (DWARF_FRAME_REGISTERS): Likewise.
16603 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16604 (DWARF_FRAME_REGNUM): Likewise.
16605 (FIXED_REGISTERS): Likewise.
16606 (CALL_USED_REGISTERS): Likewise.
16607 (CALL_REALLY_USED_REGISTERS): Likewise.
16608 (REG_ALLOC_ORDER): Likewise.
16609 (enum reg_class): Likewise.
16610 (REG_CLASS_NAMES): Likewise.
16611 (REG_CLASS_CONTENTS): Likewise.
16612 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16613
16614 2014-08-04 Richard Biener <rguenther@suse.de>
16615
16616 * gimple-fold.h (gimple_fold_builtin): Remove.
16617 * gimple-fold.c (gimple_fold_builtin): Make static.
16618 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16619 fold_stmt, not gimple_fold_builtin.
16620
16621 2014-08-04 Martin Liska <mliska@suse.cz>
16622
16623 * cgraph.h (csi_end_p): Removed.
16624 (csi_next): Likewise.
16625 (csi_node): Likewise.
16626 (csi_start): Likewise.
16627 (cgraph_node_in_set_p): Likewise.
16628 (cgraph_node_set_size): Likewise.
16629 (vsi_end_p): Likewise.
16630 (vsi_next): Likewise.
16631 (vsi_node): Likewise.
16632 (vsi_start): Likewise.
16633 (varpool_node_set_size): Likewise.
16634 (cgraph_node_set_nonempty_p): Likewise.
16635 (varpool_node_set_nonempty_p): Likewise.
16636 * cgraphunit.c (cgraph_process_new_functions): vec replaces
16637 cgraph_node_set.
16638 * ipa-inline-transform.c: Likewise.
16639 * ipa-utils.c (cgraph_node_set_new): Removed.
16640 (cgraph_node_set_add): Likewise.
16641 (cgraph_node_set_remove): Likewise.
16642 (cgraph_node_set_find): Likewise.
16643 (dump_cgraph_node_set): Likewise.
16644 (debug_cgraph_node_set): Likewise.
16645 (free_cgraph_node_set): Likewise.
16646 (varpool_node_set_new): Likewise.
16647 (varpool_node_set_add): Likewise.
16648 (varpool_node_set_remove): Likewise.
16649 (varpool_node_set_find): Likewise.
16650 (dump_varpool_node_set): Likewise.
16651 (free_varpool_node_set): Likewise.
16652 (debug_varpool_node_set): Likewise.
16653 * tree-emutls.c (struct tls_var_data):
16654 (emutls_index): Removed.
16655 (emutls_decl): Likewise.
16656 (gen_emutls_addr): Function implementation uses newly added
16657 hash_map<varpool_node *, tls_var_data>.
16658 (clear_access_vars): Likewise.
16659 (create_emultls_var): Likewise.
16660 (ipa_lower_emutls): Likewise.
16661 (reset_access): New function.
16662
16663 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16664
16665 * config/i386/i386.c (ix86_option_override_internal): Add
16666 PTA_RDRND and PTA_MOVBE for bdver4.
16667
16668 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16669 James Greenhalgh <james.greenhalgh@arm.com>
16670
16671 * doc/md.texi (clrsb): Document.
16672 (clz): Change reference to x into operand 1.
16673 (ctz): Likewise.
16674 (popcount): Likewise.
16675
16676 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16677
16678 PR target/61713
16679 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16680 move to subtarget in serial version if result is ignored.
16681
16682 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16683 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16684
16685 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16686 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
16687 (sched_analyze_insn): Update use of try_group_insn to
16688 sched_macro_fuse_insns.
16689 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16690 arguments that are not conditional jumps.
16691
16692 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16693
16694 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16695 family information. Handle BTVER2 cpu with cpuid family value.
16696
16697 2014-08-04 Tom de Vries <tom@codesourcery.com>
16698
16699 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16700 (glibc_2_11_or_earlier): Document effective-target keywords.
16701
16702 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16703
16704 * ipa-devirt.c (odr_type_warn_count): Add type.
16705 (possible_polymorphic_call_targets): Set it.
16706 (ipa_devirt): Use it.
16707
16708 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16709
16710 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16711 Document.
16712 * ipa-devirt.c: Include hash-map.h
16713 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16714 (clear_speculation): Break out of ...
16715 (get_class_context): ... here; speed up handling obviously useless
16716 speculations.
16717 (odr_type_warn_count, decl_warn_count): New structures.
16718 (final_warning_record): New structure.
16719 (final_warning_records): New static variable.
16720 (possible_polymorphic_call_targets): Cleanup handling of
16721 speculative info; do not build speculation when user do not care;
16722 record info about warnings when asked for.
16723 (add_decl_warning): New function.
16724 (type_warning_cmp): New function.
16725 (decl_warning_cmp): New function.
16726 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16727 (gate): Enable pass when warnings are requested.
16728 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16729 options.
16730
16731 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16732
16733 * hash-map.h (default_hashmap_traits::mark_key_deleted):
16734 Fix cast.
16735 (hash_map::remove): New method.
16736 (hash_map::traverse): New method.
16737 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16738 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16739 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16740 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16741 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16742 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16743 pointer_map.
16744
16745 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16746
16747 * hash-set.h: new File.
16748 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16749 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16750 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16751 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16752 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16753 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16754 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16755 varpool.c: Use hash_set instead of pointer_set.
16756
16757 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
16758
16759 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16760
16761 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16762
16763 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16764 for frame access when strict_p is false.
16765
16766 2014-08-01 Renlin Li <renlin.li@arm.com>
16767 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16768
16769 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16770 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16771 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16772 Declaration.
16773 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16774 predicate.
16775 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16776 aarch64_mem_pair_offset.
16777
16778 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16779
16780 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16781 offset.
16782 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16783 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16784
16785 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
16786
16787 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16788
16789 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
16790
16791 PR regression/61510
16792 * cgraphunit.c (analyze_functions): Use get_create rather than get
16793 for decls which are clones of abstract functions.
16794
16795 2014-08-01 Martin Liska <mliska@suse.cz>
16796
16797 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16798 * ipa-prop.h (count_formal_params): Global function created from static.
16799 * ipa-prop.c (count_formal_params): Likewise.
16800 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16801 profiles for semantically equivalent functions.
16802 * passes.c (do_per_function): If we load body of a function
16803 during WPA, this condition should behave same.
16804 * varpool.c (ctor_for_folding): More tolerant assert for variable
16805 aliases created during WPA.
16806
16807 2014-08-01 Martin Liska <mliska@suse.cz>
16808
16809 * doc/invoke.texi (Options That Control Optimization): Documentation
16810 for -foptimize-strlen introduced. Optimization levels default options
16811 fixed.
16812
16813 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16814
16815 * opts.c (common_handle_option): Handle -fsanitize=alignment.
16816 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16817 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16818 type to bool.
16819 * stor-layout.h (min_align_of_type): New prototype.
16820 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16821 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
16822 check.
16823 * ubsan.c: Include builtins.h.
16824 (ubsan_expand_bounds_ifn): Change return type to bool,
16825 always return true.
16826 (ubsan_expand_null_ifn): Change return type to bool, change
16827 argument to gimple_stmt_iterator *. Handle both null and alignment
16828 sanitization, take type from ckind argument's type rather than
16829 first argument.
16830 (instrument_member_call): Removed.
16831 (instrument_mem_ref): Remove t argument, add mem and base arguments.
16832 Handle both null and alignment sanitization, don't say whole
16833 struct access is member access. Build 3 argument IFN_UBSAN_NULL
16834 call instead of 2 argument.
16835 (instrument_null): Adjust instrument_mem_ref caller. Don't
16836 instrument calls here.
16837 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16838 like SANITIZE_NULL.
16839 * stor-layout.c (min_align_of_type): New function.
16840 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16841 Or it into SANITIZE_UNDEFINED.
16842 * doc/invoke.texi (-fsanitize=alignment): Document.
16843
16844 2014-07-31 Andi Kleen <ak@linux.intel.com>
16845
16846 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16847
16848 2014-07-31 Andi Kleen <ak@linux.intel.com>
16849
16850 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16851 inchash.
16852 (vn_reference_compute_hash): Dito.
16853 (vn_nary_op_compute_hash): Dito.
16854 (vn_phi_compute_hash): Dito.
16855 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16856
16857 2014-07-31 Andi Kleen <ak@linux.intel.com>
16858
16859 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16860 Rename to inchash:add_expr_commutative. Convert to inchash.
16861 (iterative_hash_hashable_expr): Rename to
16862 inchash:add_hashable_expr. Convert to inchash.
16863 (avail_expr_hash): Dito.
16864
16865 2014-07-31 Andi Kleen <ak@linux.intel.com>
16866
16867 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16868 Convert to inchash.
16869
16870 2014-07-31 Andi Kleen <ak@linux.intel.com>
16871
16872 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16873
16874 2014-07-31 Andi Kleen <ak@linux.intel.com>
16875
16876 * Makefile.in (OBJS): Add rtlhash.o
16877 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16878 (loc_checksum): Dito.
16879 (loc_checksum_ordered): Dito.
16880 (hash_loc_operands): Dito.
16881 (hash_locs): Dito.
16882 (hash_loc_list): Dito.
16883 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16884 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16885 * rtlhash.c: New file.
16886 * rtlhash.h: New file.
16887
16888 2014-07-31 Andi Kleen <ak@linux.intel.com>
16889
16890 * inchash.h (inchash): Change inchash class to namespace.
16891 (class hash): ... Rename from inchash.
16892 (add_object): Move from macro to class template.
16893 * lto-streamer-out.c (hash_tree): Change inchash
16894 to inchash::hash.
16895 * tree.c (build_type_attribute_qual_variant): Dito.
16896 (type_hash_list): Dito.
16897 (attribute_hash_list): Dito.
16898 (iterative_hstate_expr): Rename to inchash::add_expr
16899 (build_range_type_1): Change inchash to inchash::hash
16900 and use hash::add_expr.
16901 (build_array_type_1): Dito.
16902 (build_function_type): Dito
16903 (build_method_type_directly): Dito.
16904 (build_offset_type): Dito.
16905 (build_complex_type): Dito.
16906 (make_vector_type): Dito.
16907 * tree.h (iterative_hash_expr): Dito.
16908
16909 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
16910
16911 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16912
16913 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16914
16915 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16916 correct alphabetical position.
16917 (vpaddd_f64): Rewrite using builtins.
16918 (vpaddd_s64): Move to correct alphabetical position.
16919 (vpaddd_u64): New.
16920
16921 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
16922
16923 PR target/61844
16924 * config/sh/sh.c (sh_legitimate_address_p,
16925 sh_legitimize_reload_address): Handle reg+reg address modes when
16926 ALLOW_INDEXED_ADDRESS is false.
16927 * config/sh/predicates.md (general_movsrc_operand,
16928 general_movdst_operand): Likewise.
16929
16930 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16931
16932 * config/aarch64/aarch64-builtins.c
16933 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16934 BYTES_BIG_ENDIAN.
16935
16936 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16937
16938 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16939 the generated mask based on BYTES_BIG_ENDIAN.
16940 (aarch64_simd_check_vect_par_cnst_half): New.
16941 * config/aarch64/aarch64-protos.h
16942 (aarch64_simd_check_vect_par_cnst_half): New.
16943 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16944 the check out to aarch64_simd_check_vect_par_cnst_half.
16945 (vect_par_cnst_lo_half): Likewise.
16946 * config/aarch64/aarch64-simd.md
16947 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16948 (move_hi_quad_<mode>): Always generate a low mask.
16949
16950 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16951
16952 * doc/invoke.texi (AVR Options): Add documentation about
16953 __AVR_DEVICE_NAME__ built-in macro.
16954
16955 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
16956
16957 PR target/61948
16958 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16959 constraints are satisfied.
16960 (<shift>di3_neon): Likewise.
16961
16962 2014-07-31 Richard Biener <rguenther@suse.de>
16963
16964 PR tree-optimization/61964
16965 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
16966 by structural equality.
16967
16968 2014-07-31 Yury Gribov <y.gribov@samsung.com>
16969
16970 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
16971 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
16972 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
16973 New enums.
16974 * gcc.c (sanitize_spec_function): Support new option.
16975 (SANITIZER_SPEC): Remove now redundant check.
16976 * opts.c (common_handle_option): Support new option.
16977 (finish_options): Check for incompatibilities.
16978 * toplev.c (process_options): Split userspace-specific checks.
16979
16980 2014-07-31 Richard Biener <rguenther@suse.de>
16981
16982 * lto-streamer.h (struct output_block): Remove global.
16983 (struct data_in): Remove labels, num_named_labels and
16984 num_unnamed_labels.
16985 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16986 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16987
16988 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
16989
16990 PR c++/60517
16991 * common.opt (-Wreturn-local-addr): Moved from c.opt.
16992 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16993 (isolate_path): New argument to avoid inserting a trap.
16994 (find_implicit_erroneous_behaviour): Handle returning the address
16995 of a local variable.
16996 (find_explicit_erroneous_behaviour): Likewise.
16997
16998 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
16999
17000 PR lto/61868
17001 * toplev.c (init_random_seed): Move piece of code never called to
17002 set_random_seed.
17003 (set_random_seed): see above.
17004
17005 2014-07-31 Tom de Vries <tom@codesourcery.com>
17006
17007 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17008
17009 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
17010
17011 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17012 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17013
17014 2014-07-31 Richard Biener <rguenther@suse.de>
17015
17016 * data-streamer.h (streamer_write_data_stream): Declare here,
17017 renamed from ...
17018 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
17019 * lto-cgraph.c (lto_output_node): Adjust.
17020 (lto_output_varpool_node): Likewise.
17021 * data-streamer-out.c (streamer_string_index): Likewise.
17022 (streamer_write_data_stream, lto_append_block): Move from ...
17023 * lto-section-out.c (lto_output_data_stream,
17024 lto_append_block): ... here.
17025
17026 2014-07-30 Mike Stump <mikestump@comcast.net>
17027
17028 * configure.ac: Also check for popen.
17029 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17030 * configure: Regenerate.
17031 * config.in: Regenerate.
17032
17033 2014-07-30 Martin Jambor <mjambor@suse.cz>
17034
17035 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17036 parameter to gimple.
17037
17038 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17039
17040 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17041 address as second parameter to __tpf_eh_return routine.
17042
17043 2014-07-30 Jiong Wang <jiong.wang@arm.com>
17044
17045 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17046 Thumb2.
17047
17048 2014-07-30 Tom Tromey <tromey@redhat.com>
17049
17050 PR c/59855
17051 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17052 * doc/extend.texi (Type Attributes): Document designated_init
17053 attribute.
17054
17055 2014-07-30 Roman Gareev <gareevroman@gmail.com>
17056
17057 * graphite-isl-ast-to-gimple.c:
17058 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17059 (gcc_expression_from_isl_expression): Pass type to
17060 gcc_expression_from_isl_ast_expr_id.
17061
17062 2014-07-30 Richard Biener <rguenther@suse.de>
17063
17064 * lto-streamer.h (lto_write_data): New function.
17065 * langhooks.c (lhd_append_data): Do not free block.
17066 * lto-section-out.c (lto_write_data): New function writing
17067 raw data to the current section.
17068 (lto_write_stream): Adjust for langhook semantic change.
17069 (lto_destroy_simple_output_block): Write header directly.
17070 * lto-opts.c (lto_write_options): Write options directly.
17071 * lto-streamer-out.c (produce_asm): Write heaeder directly.
17072 (lto_output_toplevel_asms): Likewise.
17073 (copy_function_or_variable): Copy data directly.
17074 (write_global_references): Output index table directly.
17075 (lto_output_decl_state_refs): Likewise.
17076 (write_symbol): Write data directly.
17077 (produce_symtab): Adjust.
17078 (produce_asm_for_decls): Output header and refs directly.
17079
17080 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17081
17082 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17083 to speculative_targets
17084 (get_class_context): Fix handling of contextes without outer type;
17085 avoid matching non-polymorphic types in LTO.
17086 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17087 parameter to speculative_targetsp; handle speculation.
17088 (dump_possible_polymorphic_call_targets): Update dumping.
17089
17090 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17091
17092 * common.opt (Wodr): Enable by default.
17093
17094 2014-07-29 Olivier Hainque <hainque@adacore.com>
17095
17096 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17097
17098 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
17099
17100 PR bootstrap/61914
17101 * gengtype.c (strtoken): New function.
17102 (create_user_defined_type): Replace strtok with strtoken.
17103
17104 2014-07-29 Nathan Sidwell <nathan@acm.org>
17105
17106 * gcov-io.c (gcov_var): Make hidden.
17107 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17108 (gcov_do_dump): Declare.
17109 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17110
17111 2014-07-29 Martin Jambor <mjambor@suse.cz>
17112
17113 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17114 parameter to gimple.
17115 (sra_modify_assign): Likewise.
17116
17117 2014-07-29 Richard Biener <rguenther@suse.de>
17118
17119 PR middle-end/52478
17120 * expr.c (expand_expr_real_2): Revert last change.
17121
17122 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17123
17124 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17125 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17126 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17127 call.
17128 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17129 (contains_type_p): Forward declare.
17130 (polymorphic_call_target_hasher::hash): Hash speculative info.
17131 (polymorphic_call_target_hasher::equal): Compare speculative info.
17132 (get_class_context): Handle speuclation.
17133 (contains_type_p): Update.
17134 (get_polymorphic_call_info_for_decl): Update.
17135 (walk_ssa_copies): Break out from ...
17136 (get_polymorphic_call_info): ... here; set speculative context
17137 before giving up.
17138 * ipa-prop.c (ipa_write_indirect_edge_info,
17139 ipa_read_indirect_edge_info): Stream speculative context.
17140 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17141 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17142 SPECULATIVE_MAYBE_DERIVED_TYPE).
17143 (possible_polymorphic_call_targets overriders): Update.
17144 (dump_possible_polymorphic_call_targets overriders): Update.
17145 (dump_possible_polymorphic_call_target_p overriders): Update.
17146
17147 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17148
17149 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17150 ipa-devirt path; fix thinko there.
17151
17152 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
17153
17154 * config/i386/i386.c (ix86_return_in_memory): Replace one
17155 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17156
17157 2014-07-28 Marek Polacek <polacek@redhat.com>
17158
17159 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
17160
17161 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
17162
17163 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17164 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17165 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17166 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17167 (USE_LD_AS_NEEDED): Likewise.
17168 (ASM_APP_ON): Likewise.
17169 (ASM_APP_OFF): Likewise.
17170 (TARGET_POSIX_IO): Likewise.
17171 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17172 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17173 (USE_LD_AS_NEEDED): Likewise.
17174 (ASM_APP_ON): Likewise.
17175 (ASM_APP_OFF): Likewise.
17176 (TARGET_POSIX_IO): Likewise.
17177
17178 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
17179
17180 PR middle-end/61734
17181 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17182 operators other than the equality operators.
17183
17184 2014-07-28 Richard Biener <rguenther@suse.de>
17185
17186 PR middle-end/52478
17187 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17188 sure to register SImode ones, not only >= word_mode ones.
17189 * expr.c (expand_expr_real_2): When expanding -ftrapv
17190 binops do not use OPTAB_LIB_WIDEN.
17191
17192 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
17193
17194 PR middle-end/61919
17195 * tree-outof-ssa.c (insert_partition_copy_on_edge)
17196 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17197 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17198 inserting them in the insn stream.
17199
17200 2014-07-28 Marek Polacek <polacek@redhat.com>
17201
17202 PR middle-end/61913
17203 * common.opt (Wodr): Add Var.
17204
17205 2014-07-28 Richard Biener <rguenther@suse.de>
17206
17207 PR tree-optimization/61921
17208 * tree-ssa-structalias.c (create_variable_info_for_1): Check
17209 if there is a varpool node before dereferencing it.
17210
17211 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17212
17213 * graphite-sese-to-poly.c:
17214 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17215 id of the pbb), which contains pointer to the pbb1.
17216
17217 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17218
17219 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17220
17221 * graphite-isl-ast-to-gimple.c:
17222 (graphite_create_new_guard): New function.
17223 (translate_isl_ast_node_if): New function.
17224 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17225
17226 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17227
17228 2014-07-27 Anthony Green <green@moxielogic.com>
17229
17230 * config.gcc: Add moxie-*-moxiebox* configuration.
17231 * config/moxie/moxiebox.h: New file.
17232
17233 2014-07-26 Andrew Pinski <apinski@cavium.com>
17234
17235 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17236 from the read only register.
17237
17238 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17239
17240 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17241 as the allocation class if it isn't likely to be spilled.
17242
17243 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17244
17245 * rtl.h (tls_referenced_p): Declare.
17246 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17247 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17248 (mips_cannot_force_const_mem): Use tls_referenced_p.
17249 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17250 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17251 instead of pa_tls_referenced_p.
17252 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17253 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17254 (pa_legitimate_constant_p): Likewise.
17255 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17256 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17257 (rs6000_cannot_force_const_mem, rs6000_emit_move)
17258 (rs6000_address_for_altivec): Use tls_referenced_p instead of
17259 rs6000_tls_referenced_p.
17260 (rs6000_tls_symbol_ref_1): Delete.
17261
17262 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
17263
17264 PR target/44551
17265 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17266 Optimize inverse of a VEC_CONCAT.
17267
17268 2014-07-25 Xinliang David Li <davidxl@google.com>
17269
17270 * params.def: New parameter.
17271 * coverage.c (get_coverage_counts): Check new flag.
17272 (coverage_compute_profile_id): Check new flag.
17273 (coverage_begin_function): Check new flag.
17274 (coverage_end_function): Check new flag.
17275 * value-prof.c (coverage_node_map_initialized_p): New function.
17276 (init_node_map): Populate map with all functions.
17277 * doc/invoke.texi: Document new parameter.
17278
17279 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
17280 Richard Biener <rguenther@suse.de>
17281
17282 * lto-streamer-out.c (struct sccs): Turn to ...
17283 (class DFS): ... this one; refactor the DFS walk so it can
17284 be re-done on per-SCC basis.
17285 (DFS::DFS): New constructor.
17286 (DFS::~DFS): New destructor.
17287 (hash_tree): Add new MAP argument holding in-SCC hash values;
17288 remove POINTER_TYPE hashing hack.
17289 (scc_entry_compare): Rename to ...
17290 (DFS::scc_entry_compare): ... this one.
17291 (hash_scc): Rename to ...
17292 (DFS::hash_scc): ... this one; pass output_block instead
17293 of streamer_cache; work harder to get unique and stable SCC
17294 hashes.
17295 (DFS_write_tree): Rename to ...
17296 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17297 (lto_output_tree): Update.
17298
17299 2014-07-25 Andi Kleen <ak@linux.intel.com>
17300
17301 * lto-streamer-out.c (hash_tree): Convert to inchash.
17302
17303 2014-07-25 Andi Kleen <ak@linux.intel.com>
17304
17305 * tree.c (build_type_attribute_qual_variant): Use inchash.
17306 (type_hash_list): Dito.
17307 (attribute_hash_list): Dito
17308 (iterative_hstate_expr): Dito.
17309 (iterative_hash_expr): Dito.
17310 (build_range_type_1): Dito.
17311 (build_array_type_1): Dito.
17312 (build_function_type): Dito.
17313 (build_method_type_directly): Dito.
17314 (build_offset_type): Dito.
17315 (build_complex_type): Dito.
17316 (make_vector_type): Dito.
17317 * tree.h (iterative_hash_expr): Add compat wrapper.
17318 (iterative_hstate_expr): Add.
17319
17320 2014-07-25 Andi Kleen <ak@linux.intel.com>
17321
17322 * Makefile.in (OBJS): Add inchash.o.
17323 (PLUGIN_HEADERS): Add inchash.h.
17324 * ipa-devirt.c: Include inchash.h.
17325 * lto-streamer-out.c: Dito.
17326 * tree-ssa-dom.c: Dito.
17327 * tree-ssa-pre.c: Dito.
17328 * tree-ssa-sccvn.c: Dito.
17329 * tree-ssa-tail-merge.c: Dito.
17330 * asan.c: Dito.
17331 * tree.c (iterative_hash_hashval_t): Move to ...
17332 (iterative_hash_host_wide_int): Move to ...
17333 * inchash.c: Here. New file.
17334 * tree.h (iterative_hash_hashval_t): Move to ...
17335 (iterative_hash_host_wide_int): Move to ...
17336 * inchash.h: Here. New file.
17337
17338 2014-07-25 Richard Biener <rguenther@suse.de>
17339
17340 PR middle-end/61762
17341 PR middle-end/61894
17342 * fold-const.c (native_encode_int): Add and handle offset
17343 parameter to do partial encodings of expr.
17344 (native_encode_fixed): Likewise.
17345 (native_encode_real): Likewise.
17346 (native_encode_complex): Likewise.
17347 (native_encode_vector): Likewise.
17348 (native_encode_string): Likewise.
17349 (native_encode_expr): Likewise.
17350 * fold-const.c (native_encode_expr): Add offset parameter
17351 defaulting to -1.
17352 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17353 (fold_ctor_reference): Handle all reads from tcc_constant
17354 ctors.
17355
17356 2014-07-25 Richard Biener <rguenther@suse.de>
17357
17358 * tree-inline.c (estimate_move_cost): Mark speed_p argument
17359 as possibly unused.
17360
17361 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17362
17363 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17364
17365 2014-07-24 Kyle McMartin <kyle@redhat.com>
17366
17367 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17368
17369 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17370
17371 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17372 Add prototype.
17373 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17374 function.
17375 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17376 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17377 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17378
17379 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17380
17381 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17382 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17383 aggregate types. Instead, *all* aggregate types, except for single-
17384 element or homogeneous float/vector aggregates, are quadword-aligned
17385 if required by their type alignment. Issue -Wpsabi note when a type
17386 is now treated differently than before.
17387
17388 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17389
17390 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17391 does not fit fully into floating-point registers, and there is still
17392 space in the register parameter area, use GPRs to pass those parts
17393 of the argument. Issue -Wpsabi note if any parameter is now treated
17394 differently than before.
17395 (rs6000_arg_partial_bytes): Update.
17396
17397 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
17398
17399 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17400
17401 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17402
17403 * rtl.h (target_rtl): Remove lang_dependent_initialized.
17404 * toplev.c (initialize_rtl): Don't use it. Move previously
17405 "language-dependent" calls to...
17406 (backend_init): ...here.
17407 (lang_dependent_init_target): Don't set lang_dependent_initialized.
17408 Assert that RTL initialization hasn't happend yet.
17409
17410 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17411
17412 PR rtl-optimization/61629
17413 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17414 they have already been initialized.
17415
17416 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17417
17418 PR middle-end/61268
17419 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17420 DECL_INCOMING_RTL and entry_parm.
17421 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17422 * calls.c (load_register_parameters): Likewise argument values.
17423 (emit_library_call_value_1, store_one_arg): Likewise argument
17424 save areas.
17425 * config/i386/i386.c (assign_386_stack_local): Likewise the local
17426 stack slot.
17427 * explow.c (validize_mem): Modify the argument in-place.
17428
17429 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17430
17431 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17432 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17433
17434 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17435
17436 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17437 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17438
17439 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17440
17441 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17442 (aarch64_save_callee_saves): New parameter "skip_wb".
17443 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17444
17445 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17446
17447 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17448 "wb_candidate2".
17449 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17450
17451 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17452
17453 * graphite-isl-ast-to-gimple.c:
17454 (graphite_create_new_loop): Add calling of isl_id_free to properly
17455 decrement reference counts.
17456
17457 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17458
17459 2014-07-24 Martin Liska <mliska@suse.cz>
17460 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17461 function used.
17462 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17463 (rs6000_code_end): Likewise.
17464
17465 2014-07-24 Martin Liska <mliska@suse.cz>
17466
17467 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17468 symtab_node funtion used.
17469 (rs6000_xcoff_declare_object_name): Likewise.
17470
17471 2014-07-24 Martin Liska <mliska@suse.cz>
17472
17473 * cgraphunit.c (compile): Correct function used.
17474
17475 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17476
17477 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17478 as non-indexable.
17479
17480 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17481
17482 PR lto/61802
17483 * varasm.c (bss_initializer_p): Handle offlined ctors.
17484 (align_variable, get_variable_align): Likewise.
17485 (make_decl_one_only): Likewise.
17486 (default_binds_local_p_1): Likewise.
17487 (decl_binds_to_current_def_p): Likewise.
17488 (get_variable_section): Get constructor if it is offlined.
17489 (assemble_variable_contents): Sanity check that the caller
17490 streamed in the ctor in LTO.
17491
17492 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17493
17494 * graphite-isl-ast-to-gimple.c:
17495 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17496 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17497 isl_ast_op_pdiv_r to the different case.
17498
17499 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17500
17501 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17502
17503 PR middle-end/61876
17504 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17505 when flag_errno_math is on.
17506
17507 2014-07-24 Martin Liska <mliska@suse.cz>
17508
17509 * cgraph.h (varpool_node):
17510 (availability get_availability (void)):
17511 created from cgraph_variable_initializer_availability
17512 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17513 created from: cgraph_variable_initializer_availability
17514 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17515 (void finalize_named_section_flags (void)):
17516 created from varpool_finalize_named_section_flags
17517 (bool assemble_decl (void)): created from varpool_assemble_decl
17518 (void analyze (void)): created from varpool_analyze_node
17519 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17520 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17521 (void remove_initializer (void)): created from varpool_remove_initializer
17522 (tree get_constructor (void)): created from varpool_get_constructor
17523 (bool externally_visible_p (void)): created from varpool_externally_visible_p
17524 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17525 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17526 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17527 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17528 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17529 (static bool output_variables (void)): created from varpool_output_variables
17530 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17531 created from varpool_extra_name_alias
17532 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17533 (static void dump_varpool (FILE *f)): created from dump_varpool
17534 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17535 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17536 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17537 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17538 (void assemble_aliases (void)): created from assemble_aliases
17539
17540 2014-07-24 Martin Liska <mliska@suse.cz>
17541
17542 * cgraph.h (symtab_node):
17543 (void register_symbol (void)): created from symtab_register_node
17544 (void remove (void)): created from symtab_remove_node
17545 (void dump (FILE *f)): created from dump_symtab_node
17546 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17547 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17548 (struct ipa_ref *add_reference (symtab_node *referred_node,
17549 enum ipa_ref_use use_type)): created from add_reference
17550 (struct ipa_ref *add_reference (symtab_node *referred_node,
17551 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17552 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17553 gimple stmt)): created from maybe_add_reference
17554 (bool semantically_equivalent_p (symtab_node *target)): created from
17555 symtab_semantically_equivalent_p
17556 (void remove_from_same_comdat_group (void)): created from
17557 remove_from_same_comdat_group
17558 (void add_to_same_comdat_group (symtab_node *old_node)): created from
17559 symtab_add_to_same_comdat_group
17560 (void dissolve_same_comdat_group_list (void)): created from
17561 symtab_dissolve_same_comdat_group_list
17562 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17563 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17564 created from symtab_alias_ultimate_target
17565 (inline symtab_node *next_defined_symbol (void)): created from
17566 symtab_next_defined_symbol
17567 (bool resolve_alias (symtab_node *target)): created from
17568 symtab_resolve_alias
17569 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17570 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17571 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17572 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17573 (void set_section (const char *section)): created from set_section_1
17574 (enum availability get_availability (void)): created from symtab_node_availability
17575 (void make_decl_local (void)): created from symtab_make_decl_local
17576 (bool real_symbol_p (void)): created from symtab_read_node
17577 (can_be_discarded_p (void)): created from symtab_can_be_discarded
17578 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17579 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17580 symtab_in_same_comdat_p;
17581 (bool address_taken_from_non_vtable_p (void)): created from
17582 address_taken_from_non_vtable_p
17583 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17584 (static void dump_table (FILE *)): created from dump_symtab
17585 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17586 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17587 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17588 symtab_used_from_object_file_p
17589 (void dump_base (FILE *)): created from dump_symtab_base
17590 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17591 (void unregister (void)): created from symtab_unregister_node
17592 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17593 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17594 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17595 symtab_nonoverwritable_alias_1
17596 * cgraph.h (cgraph_node):
17597 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17598 created from cgraph_remove_node_and_inline_clones
17599 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17600 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17601 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17602 (cgraph_node *function_symbol (enum availability *avail = NULL)):
17603 created from cgraph_function_node
17604 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17605 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17606 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17607 created from cgraph_create_clone
17608 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17609 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17610 created from cgraph_create_virtual_clone
17611 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17612 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17613 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17614 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17615 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17616 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17617 created from cgraph_function_version_info
17618 (struct cgraph_function_version_info *insert_new_function_version (void)):
17619 created from insert_new_cgraph_node_version
17620 (struct cgraph_function_version_info *function_version (void)): created from
17621 get_cgraph_node_version
17622 (void analyze (void)): created from analyze_function
17623 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17624 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17625 tree real_alias) cgraph_add_thunk
17626 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17627 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17628 created from cgraph_function_or_thunk_node
17629 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17630 created from expand_thunk
17631 (void reset (void)): created from cgraph_reset_node
17632 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17633 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17634 (void remove (void)): created from cgraph_remove_node
17635 (void dump (FILE *f)): created from dump_cgraph_node
17636 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17637 (bool get_body (void)): created from cgraph_get_body
17638 (void release_body (void)): created from cgraph_release_function_body
17639 (void unnest (void)): created from cgraph_unnest_node
17640 (void make_local (void)): created from cgraph_make_node_local
17641 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17642 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17643 gcov_type count, int freq)): created from cgraph_create_edge
17644 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17645 gcov_type count, int freq)): created from cgraph_create_indirect_edge
17646 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17647 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17648 created from cgraph_create_edge_including_clones
17649 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17650 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17651 (void remove_callers (void)): created from cgraph_node_remove_callers
17652 (void remove_callees (void)): created from cgraph_node_remove_callees
17653 (enum availability get_availability (void)): created from cgraph_function_body_availability
17654 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17655 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17656 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17657 (void call_duplication_hooks (cgraph_node *node2)): created from
17658 cgraph_call_node_duplication_hooks
17659 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17660 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17661 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17662 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17663 (void call_function_insertion_hooks (void)):
17664 created from cgraph_call_function_insertion_hooks
17665 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17666 (bool local_p (void)): created from cgraph_local_node
17667 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17668 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17669 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17670 (inline bool only_called_directly_or_aliased_p (void)):
17671 created from cgraph_only_called_directly_or_aliased_p
17672 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17673 created from cgraph_will_be_removed_from_program_if_no_direct_calls
17674 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17675 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17676 (bool can_remove_if_no_direct_calls_p (void)):
17677 created from cgraph_can_remove_if_no_direct_calls_p
17678 (inline bool has_gimple_body_p (void)):
17679 created from cgraph_function_with_gimple_body_p
17680 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17681 (static void dump_cgraph (FILE *f)): created from dump_cgraph
17682 (static inline void debug_cgraph (void)): created from debug_cgraph
17683 (static void record_function_versions (tree decl1, tree decl2)):
17684 created from record_function_versions
17685 (static void delete_function_version (tree decl)):
17686 created from delete_function_version
17687 (static void add_new_function (tree fndecl, bool lowered)):
17688 created from cgraph_add_new_function
17689 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17690 (static cgraph_node * create (tree decl)): created from cgraph_create_node
17691 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17692 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17693 (static cgraph_node *get_for_asmname (tree asmname)):
17694 created from cgraph_node_for_asm
17695 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17696 created from cgraph_same_body_alias
17697 (static bool used_from_object_file_p_worker (cgraph_node *node,
17698 void *): new function
17699 (static bool non_local_p (cgraph_node *node, void *)):
17700 created from cgraph_non_local_node_p_1
17701 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17702 created from verify_cgraph
17703 (static bool make_local (cgraph_node *node, void *)):
17704 created from cgraph_make_node_local
17705 (static cgraph_node *create_alias (tree alias, tree target)):
17706 created from cgraph_create_function_alias
17707 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17708 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17709 created from cgraph_create_edge_1
17710 * cgraph.h (varpool_node):
17711 (void remove (void)): created from varpool_remove_node
17712 (void dump (FILE *f)): created from dump_varpool_node
17713
17714 2014-07-24 Richard Biener <rguenther@suse.de>
17715
17716 PR ipa/61823
17717 * tree-ssa-structalias.c (create_variable_info_for_1):
17718 Use varpool_get_constructor.
17719 (create_variable_info_for): Likewise.
17720
17721 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17722
17723 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17724 subtract outgoing area size when restoring stack_pointer_rtx.
17725
17726 2014-07-24 Nick Clifton <nickc@redhat.com>
17727
17728 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17729 that operations are taking place in parallel.
17730 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17731
17732 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
17733
17734 * omp-low.c (extract_omp_for_data): Add missing break statement.
17735
17736 2014-07-24 Richard Biener <rguenther@suse.de>
17737
17738 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17739 * tree-inline.c (estimate_move_cost): Add speed_p parameter
17740 and adjust MOVE_RATIO query accordingly.
17741 (estimate_num_insns): Adjust callers.
17742 * ipa-prop.c (ipa_populate_param_decls): Likewise.
17743 * ipa-cp.c (gather_context_independent_values,
17744 estimate_local_effects): Likewise.
17745 * ipa-split.c (consider_split): Likewise.
17746
17747 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
17748
17749 * config/i386/driver-i386.c: Remove names of unused arguments and
17750 unnecessary unused attributes.
17751 * config/i386/host-mingw32.c: Likewise.
17752 * config/i386/i386.c: Likewise.
17753 * config/i386/winnt-stubs.c: Likewise.
17754 * config/i386/winnt.c: Likewise.
17755
17756 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17757
17758 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17759 (aarch64_gen_loadwb_pair): New helper function.
17760 (aarch64_expand_epilogue): Simplify code using new helper functions.
17761 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17762
17763 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17764
17765 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17766 (aarch64_gen_storewb_pair): New helper function.
17767 (aarch64_expand_prologue): Simplify code using new helper functions.
17768 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17769
17770 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17771
17772 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17773 Rename to aarch64_save_callee_saves, remove restore code.
17774 (aarch64_restore_callee_saves): New function.
17775
17776 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17777
17778 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17779 (aarch64_save_callee_saves): New function to handle reg save
17780 for both core and vectore regs.
17781
17782 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17783
17784 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17785 (aarch64_gen_store_pair): New helper function.
17786 (aarch64_save_or_restore_callee_save_registers)
17787 (aarch64_save_or_restore_fprs): Use new helper functions.
17788
17789 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17790
17791 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17792 (aarch64_save_or_restore_callee_save_registers)
17793 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17794
17795 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17796
17797 * config/aarch64/aarch64.c
17798 (aarch64_save_or_restore_callee_save_registers)
17799 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17800
17801 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17802
17803 * config/aarch64/aarch64.c
17804 (aarch64_save_or_restore_callee_save_registers)
17805 (aarch64_save_or_restore_fprs): Remove 'increment'.
17806
17807 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17808
17809 * config/aarch64/aarch64.c
17810 (aarch64_save_or_restore_callee_save_registers)
17811 (aarch64_save_or_restore_fprs): Use register offset in
17812 cfun->machine->frame.reg_offset.
17813
17814 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17815
17816 * config/aarch64/aarch64.c
17817 (aarch64_save_or_restore_callee_save_registers)
17818 (aarch64_save_or_restore_fprs): Remove base_rtx.
17819
17820 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17821
17822 * config/aarch64/aarch64.c
17823 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17824 to 'start_offset'. Remove local variable 'start_offset'.
17825
17826 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17827
17828 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17829 type to HOST_WIDE_INT.
17830
17831 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17832
17833 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17834 (aarch64_save_or_restore_fprs)
17835 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17836
17837 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17838
17839 * config/arm/t-rtems-eabi: Add
17840 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17841 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17842 mbig-endian/mthumb/march=armv7-r, and
17843 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17844 multilibs.
17845
17846 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17847 Chris Johns <chrisj@rtems.org>
17848 Joel Sherrill <joel.sherrill@oarcorp.com>
17849
17850 * config.gcc: Add nios2-*-rtems*.
17851 * config/nios2/rtems.h: New file.
17852 * gcc/config/nios2/t-rtems: New file.
17853
17854 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17855
17856 PR target/61396
17857 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17858 constant numbers, not general constants.
17859 (rs6000_expand_vector_init): Ditto.
17860
17861 2014-07-23 Nathan Sidwell <nathan@acm.org>
17862
17863 * gcov-tool.c (gcov_list): Declare here.
17864 (set_gcov_list): Remove.
17865 (gcov_output_files): Set gcov_list directly.
17866
17867 2014-07-23 Host Schirmeier <horst@schirmeier.com>
17868
17869 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17870
17871 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17872
17873 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17874 callee-saved registers are available for padding purpose
17875 and r3 is not mandatory, then prefer use those callee-saved
17876 instead of r3.
17877
17878 2014-07-23 Richard Biener <rguenther@suse.de>
17879
17880 * params.def (PARAM_MAX_COMBINE_INSNS): New.
17881 * combine.c: Include statistics.h and params.h.
17882 (combine_instructions): Guard three and four insn combines
17883 with max-combine-insns value. Record statistics for combines
17884 performed.
17885 * doc/invoke.texi (max-combine-insns): Document new param.
17886
17887 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17888
17889 * graphite-isl-ast-to-gimple.c:
17890 (translate_isl_ast_node_block): New function.
17891 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17892
17893 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17894 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17895
17896 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17897
17898 * graphite-isl-ast-to-gimple.c:
17899 (get_max_schedule_dimensions): New function.
17900 (extend_schedule): Likewise.
17901 (generate_isl_schedule): Add calling of extend_schedule and
17902 get_max_schedule_dimensions.
17903
17904 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17905
17906 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17907 (case UNSPEC): Handle UNSPEC_RBIT.
17908
17909 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17910
17911 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17912 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17913
17914 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17915
17916 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17917
17918 2014-07-22 Roman Gareev <gareevroman@gmail.com>
17919
17920 * graphite-isl-ast-to-gimple.c:
17921 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17922 (ivs_params_clear):
17923 (build_iv_mapping): New function.
17924 (translate_isl_ast_node_user): Likewise.
17925 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17926
17927 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17928 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17929 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17930
17931 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17932
17933 PR target/55701
17934 * config/arm/arm.md (setmem): New pattern.
17935 * config/arm/arm-protos.h (struct tune_params): New fields.
17936 (arm_gen_setmem): New prototype.
17937 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17938 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17939 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17940 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17941 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17942 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17943 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17944 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17945 (arm_const_inline_cost): New function.
17946 (arm_block_set_max_insns): New function.
17947 (arm_block_set_non_vect_profit_p): New function.
17948 (arm_block_set_vect_profit_p): New function.
17949 (arm_block_set_unaligned_vect): New function.
17950 (arm_block_set_aligned_vect): New function.
17951 (arm_block_set_unaligned_non_vect): New function.
17952 (arm_block_set_aligned_non_vect): New function.
17953 (arm_block_set_vect, arm_gen_setmem): New functions.
17954
17955 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17956
17957 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17958
17959 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
17960
17961 PR target/61855
17962 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
17963 out of #ifdef __OPTIMIZE__.
17964
17965 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17966
17967 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
17968 different trapping status if -fnon-call-exceptions is enabled.
17969
17970 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17971
17972 * expr.c (store_field): Handle VOIDmode for calls that return values
17973 in multiple locations.
17974
17975 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17976
17977 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
17978 (altivec_vsldoi_<mode>): Likewise.
17979
17980 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17981
17982 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17983 to the number of characters in the line.
17984
17985 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17986
17987 * graphite-isl-ast-to-gimple.c: Add using of
17988 build_nonstandard_integer_type instead of int128_integer_type_node.
17989
17990 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
17991
17992 * toplev.c (output_stack_usage): Adjust the location of the warning.
17993
17994 2014-07-19 Daniel Cederman <cederman@gaisler.com>
17995
17996 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17997 (*membar_storeload): Disable for LEON3.
17998
17999 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
18000
18001 PR rtl-optimization/61461
18002 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18003
18004 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
18005
18006 PR target/61794
18007 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18008 Fix instruction constraint.
18009 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18010
18011 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
18012
18013 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18014
18015 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
18016
18017 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18018 GNU coding standards.
18019 (nds32_register_move_cost): Likewise.
18020 (nds32_memory_move_cost): Likewise.
18021 (nds32_address_cost): Likewise.
18022
18023 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18024
18025 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18026
18027 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
18028
18029 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18030 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18031 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18032 (HAVE_sync_compare_and_swapqi): Define.
18033 (HAVE_sync_compare_and_swaphi): Likewise.
18034 (HAVE_sync_compare_and_swapsi): Likewise.
18035
18036 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
18037
18038 * config/mips/p5600.md: Add missing cpu tests.
18039
18040 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18041
18042 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18043 (vmla_f64): Likewise.
18044 (vfms_f64): Likewise.
18045 (vmls_f64): Likewise.
18046
18047 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18048
18049 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18050 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18051
18052 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18053
18054 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18055 (vmlal_high_lane_s32): Likewise.
18056 (vmlal_high_lane_u16): Likewise.
18057 (vmlal_high_lane_u32): Likewise.
18058 (vmlsl_high_lane_s16): Likewise.
18059 (vmlsl_high_lane_s32): Likewise.
18060 (vmlsl_high_lane_u16): Likewise.
18061 (vmlsl_high_lane_u32): Likewise.
18062
18063 2014-07-17 Terry Guo <terry.guo@arm.com>
18064
18065 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18066 (alus_reg): Renamed to alus_sreg.
18067 * config/arm/arm-fixed.md: Change type of non-dsp instructions
18068 from alu_reg to alu_sreg. Change type of dsp instructions from
18069 alu_reg to alu_dsp_reg.
18070 * config/arm/thumb1.md: Likewise.
18071 * config/arm/thumb2.md: Likewise.
18072 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18073 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18074 with alu_sreg and alus_sreg.
18075 * config/arm/arm1026ejs.md (alu_op): Likewise.
18076 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18077 * config/arm/arm926ejs.md (9_alu_op): Likewise.
18078 * config/arm/fa526.md (526_alu_op): Likewise.
18079 * config/arm/fa606te.md (606te_alu_op): Likewise.
18080 * config/arm/fa626te.md (626te_alu_op): Likewise.
18081 * config/arm/fa726te.md (726te_alu_op): Likewise.
18082 * config/arm/fmp626.md (mp626_alu_op): Likewise.
18083 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18084 alu_sreg, alu_dsp_reg and alus_sreg.
18085 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18086 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18087 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18088 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18089 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18090 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18091 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18092 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18093 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18094 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18095 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18096 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18097 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18098 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18099 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18100 alus_reg to alus_sreg.
18101
18102 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
18103
18104 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18105 infinity format.
18106
18107 2014-07-17 Richard Biener <rguenther@suse.de>
18108
18109 PR rtl-optimization/61801
18110 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18111 don't set reg_pending_barrier if it appears in a debug-insn.
18112
18113 2014-07-16 DJ Delorie <dj@redhat.com>
18114
18115 * config/rx/rx.c (rx_option_override): Fix alignment values.
18116 (rx_align_for_label): Likewise.
18117
18118 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
18119
18120 PR target/61737.
18121 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18122 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18123 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18124 functions.
18125 (cris_print_index, cris_print_operand, cris_constant_index_p)
18126 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18127 (cris_address_cost): Ditto last CONSTANT_P.
18128 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
18129 callers changed. Yield cris_offsettable_symbol for non-PIC
18130 constant symbolic expressions including labels. Yield cris_unspec
18131 for all unspecs.
18132 (cris_expand_pic_call_address): New parameter MARKERP. Set its
18133 target to pic_offset_table_rtx for calls that will likely go
18134 through PLT, const0_rtx when they can't. All callers changed.
18135 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18136 symbolic expressions to be PICified. Remove second, redundant,
18137 assert on can_create_pseudo_p returning non-zero. Use
18138 replace_equiv_address_nv, not replace_equiv_address, for final
18139 operand update.
18140 * config/cris/cris.md ("movsi"): Move variable t to pattern
18141 toplevel. Adjust assert for new cris_symbol_type member. Use
18142 CONSTANT_P instead of CONSTANT_ADDRESS_P.
18143 ("*movsi_internal") <case 9>: Make check for valid unspec operands
18144 for lapc stricter.
18145 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18146 ("call", "call_value"): Use second incoming operand as a marker
18147 for pic-offset-table-register being used.
18148 ("*expanded_call_non_v32", "*expanded_call_v32")
18149 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18150 second incoming operand to CALL, match cris_call_type_marker.
18151 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
18152 ("*expanded_call_side"): Ditto. Fix typo in comment.
18153 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18154 CONSTANT_P.
18155 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18156 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18157 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
18158 users changed. Add members cris_offsettable_symbol and cris_unspec.
18159 (cris_symbol_type): Rename from cris_pic_symbol_type.
18160 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18161 just CONSTANT_P.
18162 * config/cris/cris-protos.h (cris_symbol_type_of,
18163 cris_expand_pic_call_address): Adjust prototypes.
18164 (cris_legitimate_constant_p): New prototype.
18165
18166 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18167 an existing tmake_file. Don't add t-slibgcc and t-linux.
18168
18169 2014-07-17 Jason Merrill <jason@redhat.com>
18170
18171 PR c++/61623
18172 * symtab.c (symtab_remove_from_same_comdat_group): Also
18173 set_comdat_group to NULL_TREE.
18174 (verify_symtab): Fix diagnostic.
18175
18176 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
18177
18178 PR target/61662
18179 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18180
18181 2014-07-16 Dodji Seketeli <dodji@redhat.com>
18182
18183 Support location tracking for built-in macro tokens
18184 * input.h (is_location_from_builtin_token): New function declaration.
18185 * input.c (is_location_from_builtin_token): New function definition.
18186 * toplev.c (general_init): Tell libcpp what the pre-defined
18187 spelling location for built-in tokens is.
18188
18189 2014-07-16 Jakub Jelinek <jakub@redhat.com>
18190
18191 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18192 on the FUNCTION_DECL.
18193
18194 2014-07-16 Richard Biener <rguenther@suse.de>
18195
18196 PR other/61782
18197 * doc/extend.texi (always_inline): Clarify.
18198
18199 2014-07-15 Eric Christopher <echristo@gmail.com>
18200
18201 * doc/invoke.texi (Link Options): Document -z option.
18202
18203 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
18204
18205 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18206 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18207
18208 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
18209
18210 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18211
18212 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
18213
18214 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18215 varpool_assemble_decl.
18216 * varpool.c (varpool_assemble_decl): Assert that node->definition is
18217 true.
18218
18219 2014-07-15 Michael Matz <matz@suse.de>
18220
18221 PR rtl-optimization/61772
18222 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18223
18224 2014-07-15 Richard Biener <rguenther@suse.de>
18225
18226 * opts.c (default_options_table): Disable bit-ccp at -Og.
18227
18228 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18229
18230 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18231
18232 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18233
18234 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18235 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18236 call langhook for unknown declaration.
18237 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18238 * tree.h (DECL_ARGUMENTS): Update.
18239 * print-tree.c (print_node): Update.
18240 * tree-core.h (tree_decl_non_common): Remove arguments.
18241 (tree_function_decl): Add arguments.
18242
18243 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
18244
18245 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18246
18247 2014-07-14 Richard Biener <rguenther@suse.de>
18248
18249 PR tree-optimization/61779
18250 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18251 simplifying a condition.
18252
18253 2014-07-14 Richard Biener <rguenther@suse.de>
18254
18255 * builtins.c (c_strlen): Make only_value == 2 really only
18256 affect warning generation.
18257
18258 2014-07-14 Richard Biener <rguenther@suse.de>
18259
18260 PR tree-optimization/61757
18261 PR tree-optimization/61783
18262 PR tree-optimization/61787
18263 * tree-ssa-dom.c (record_equality): Revert canonicalization
18264 change and add comment.
18265 (propagate_rhs_into_lhs): Revert previous fix, removing
18266 loop depth restriction again.
18267
18268 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18269
18270 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18271 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18272 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18273 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18274 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18275 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18276 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18277
18278 2014-07-14 Richard Biener <rguenther@suse.de>
18279
18280 * cgraph.h (decl_in_symtab_p): Make inline.
18281
18282 2014-07-14 Jakub Jelinek <jakub@redhat.com>
18283
18284 PR middle-end/61294
18285 * doc/invoke.texi (-Wmemset-transposed-args): Document.
18286
18287 PR target/61656
18288 * config/i386/i386.c (classify_argument): Don't merge classes above
18289 number of words.
18290
18291 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
18292
18293 * cgraph.h (symtab_node): Add nonzero_address.
18294 (decl_in_symtab_p): Break out from ...
18295 (symtab_get_node): ... here.
18296 * fold-const.c: Include cgraph.h
18297 (tree_single_nonzero_warnv_p): Use symtab to determine
18298 if symbol is non-zero.
18299 * symtab.c (symtab_node::nonzero_address): New method.
18300
18301 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18302
18303 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18304 forgotten in previous commit.
18305
18306 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18307
18308 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18309 on builtin types.
18310 * ipa-devirt.c: Include stor-layout.h and intl.h
18311 (odr_subtypes_equivalent_p): New function.
18312 (warn_odr): New function.
18313 (warn_type_mismatch): New function.
18314 (odr_types_equivalent_p): New function.
18315 (add_type_duplicate): Use it.
18316 * common.opt (Wodr): New flag.
18317 * doc/invoke.texi (Wodr): Document new warning.
18318
18319 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18320
18321 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18322 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18323 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18324 (varpool_get_constructor): Push CTORS_IN timevar.
18325 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18326
18327 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
18328
18329 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18330 Remove VOID_FTYPE_PUSHORT.
18331 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18332 Change code to USHORT_FTYPE_VOID.
18333 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18334 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18335 (ix86_atomic_assign_expand_fenv): Update for
18336 __builtin_ia32_fnstsw changes.
18337 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18338 (fnstsw): Change operand 0 to nonimmediate operand.
18339
18340 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18341
18342 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18343 (varpool_get_constructor): New function.
18344 (varpool_ctor_useable_for_folding_p): Break out from ...
18345 (ctor_for_folding): ... here; use varpool_get_constructor.
18346 (varpool_assemble_decl): Likewise.
18347 * lto-streamer.h (struct output_block): Turn cgraph_node
18348 to symbol filed.
18349 (lto_input_variable_constructor): Declare.
18350 * ipa-visibility.c (function_and_variable_visibility): Use
18351 varpool_get_constructor.
18352 * cgraph.h (varpool_get_constructor): Declare.
18353 (varpool_ctor_useable_for_folding_p): New function.
18354 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18355 parameter; return error_mark_node for non-trivial constructors.
18356 (lto_write_tree_1, DFS_write_tree): Update use of
18357 get_symbol_initial_value.
18358 (output_function): Update initialization of symbol.
18359 (output_constructor): New function.
18360 (copy_function): Rename to ..
18361 (copy_function_or_variable): ... this one; handle vars too.
18362 (lto_output): Output variable sections.
18363 * lto-streamer-in.c (input_constructor): New function.
18364 (lto_read_body): Rename from ...
18365 (lto_read_body_or_constructor): ... this one; handle vars too.
18366 (lto_input_variable_constructor): New function.
18367 * ipa-prop.c (ipa_prop_write_jump_functions,
18368 ipa_prop_write_all_agg_replacement): Update.
18369 * lto-cgraph.c (compute_ltrans_boundary): Use it.
18370 (output_cgraph_opt_summary): Set symbol to NULL.
18371
18372 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18373
18374 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18375 non-polymorphic types.
18376 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18377 * ipa-devirt.c (types_same_for_odr): Do not explode when one
18378 of types is not polymorphic.
18379
18380 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
18381
18382 * lra-constraints.c (remove_inheritance_pseudos): Process
18383 destination pseudo too.
18384
18385 2014-07-11 Rong Xu <xur@google.com>
18386
18387 * gcov-tool.c (gcov_output_files): Fix build error introduced in
18388 commit r212448.
18389
18390 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18391
18392 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18393 * config/avr/avr-devices.c (AVR_MCU): Same.
18394 (avr_mcu_types): add text start value to end of device list.
18395 * config/avr/avr-mcus.def: Add text section start for all devices.
18396 (ata5782): Add new avr5 device.
18397 (ata5831): Same.
18398 * config/avr/avr-tables.opt: Regenerate.
18399 * config/avr/avr.h: Add declaration for text section start handler.
18400 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18401 SPEC functions.
18402 (LINK_SPEC): Include text section start handler to linker spec.
18403 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18404 pass -Ttext option to linker if the text section start for the device
18405 is not zero.
18406 * config/avr/t-multilib: Regenerate.
18407 * doc/avr-mmcu.texi: Regenerate.
18408
18409 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
18410
18411 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18412 * config/rs6000/aix52.h (LINK_SPEC): Same.
18413 * config/rs6000/aix53.h (LINK_SPEC): Same.
18414 * config/rs6000/aix61.h (LINK_SPEC): Same.
18415 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18416
18417 2014-07-11 Roman Gareev <gareevroman@gmail.com>
18418
18419 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18420 (graphite_verify): New function.
18421 (ivs_params_clear): New function.
18422 (gcc_expression_from_isl_ast_expr_id): New function.
18423 (gcc_expression_from_isl_expr_int): New function.
18424 (binary_op_to_tree): New function.
18425 (ternary_op_to_tree): New function.
18426 (unary_op_to_tree): New function.
18427 (nary_op_to_tree): New function.
18428 (gcc_expression_from_isl_expr_op): New function.
18429 (gcc_expression_from_isl_expression): New function.
18430 (graphite_create_new_loop): New function.
18431 (translate_isl_ast_for_loop): New function.
18432 (get_upper_bound): New function.
18433 (graphite_create_new_loop_guard): New function.
18434 (translate_isl_ast_node_for): New function.
18435 (translate_isl_ast): New function.
18436 (add_parameters_to_ivs_params): New function.
18437 (scop_to_isl_ast): New parameter ip.
18438 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18439
18440 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18441
18442 * config/xtensa/predicates.md (call expander): Update for
18443 DECL_SECTION_NAME being string.
18444
18445 2014-07-11 Richard Biener <rguenther@suse.de>
18446
18447 PR middle-end/61473
18448 * builtins.c (fold_builtin_memory_op): Inline memory moves that
18449 can be implemented with a single load followed by a single store.
18450 (c_strlen): Only warn when only_value is not 2.
18451
18452 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
18453
18454 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18455
18456 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
18457
18458 PR target/61561
18459 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18460 (*movhi_bytes): Likewise.
18461 (*arm_movqi_insn): Likewise.
18462
18463 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
18464
18465 PR target/56858
18466 * config/alpha/alpha.c: Include tree-pass.h, context.h
18467 and pass_manager.h.
18468 (pass_data_handle_trap_shadows): New pass.
18469 (pass_handle_trap_shadows::gate): New pass gate function.
18470 (make_pass_handle_trap_shadows): New function.
18471 (rest_of_handle_trap_shadows): Ditto.
18472
18473 (alpha_align_insns_1): Rename from alpha_align_insns.
18474 (pass_data_align_insns): New pass.
18475 (pass_align_insns::gate): New pass gate function.
18476 (make_pass_aling_insns): New function.
18477 (rest_of_align_insns): Ditto.
18478 (alpha_align_insns): Ditto.
18479
18480 (alpha_option_override): Declare handle_trap_shadows info
18481 and align_insns_info. Register handle_trap_shadows and align_insns
18482 passes here.
18483 (alpha_reorg): Do not call alpha_trap_shadows and
18484 alpha_align_insn from here.
18485
18486 (alpha_pad_function_end): Do not skip BARRIERs.
18487
18488 2014-07-10 Rong Xu <xur@google.com>
18489
18490 Add gcov-tool: an offline gcda profile processing tool support.
18491 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18492 (gcov_is_error): Ditto.
18493 (gcov_read_string): Ditto.
18494 (gcov_read_sync): Ditto.
18495 * gcov-io.h: Move counter defines to gcov-counter.def.
18496 * gcov-dump.c (tag_counters): Use gcov-counter.def.
18497 * coverage.c: Ditto.
18498 * gcov-tool.c: Offline gcda profile processing tool.
18499 (unlink_gcda_file): Remove one gcda file.
18500 (unlink_profile_dir): Remove gcda files from the profile path.
18501 (gcov_output_files): Output gcda files to an output dir.
18502 (profile_merge): Merge two profiles in directory.
18503 (print_merge_usage_message): Print merge usage.
18504 (merge_usage): Print merge usage and exit.
18505 (do_merge): Driver for profile merge sub-command.
18506 (profile_rewrite): Rewrite profile.
18507 (print_rewrite_usage_message): Print rewrite usage.
18508 (rewrite_usage): Print rewrite usage and exit.
18509 (do_rewrite): Driver for profile rewrite sub-command.
18510 (print_usage): Print gcov-info usage and exit.
18511 (print_version): Print gcov-info version.
18512 (process_args): Process arguments.
18513 (main): Main routine for gcov-tool.
18514 * Makefile.in: Build and install gcov-tool.
18515 * gcov-counter.def: New file split from gcov-io.h.
18516 * doc/gcc.texi: Include gcov-tool.texi.
18517 * doc/gcov-tool.texi: Document for gcov-tool.
18518
18519 2014-07-10 Richard Biener <rguenther@suse.de>
18520
18521 PR tree-optimization/61757
18522 * tree-ssa-dom.c (loop_depth_of_name): Restore.
18523 (propagate_rhs_into_lhs): Revert part of last change.
18524
18525 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
18526
18527 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18528 FUNCTION_DECLs.
18529
18530 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
18531
18532 PR middle-end/53590
18533 * function.c (allocate_struct_function): Revert r188667 change.
18534
18535 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18536
18537 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
18538
18539 * doc/install.texi: Remove links to defunct package providers for
18540 Solaris.
18541
18542 2014-07-09 Tom de Vries <tom@codesourcery.com>
18543
18544 * final.c (get_call_fndecl): Declare.
18545 (self_recursive_call_p): New function.
18546 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18547
18548 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18549
18550 * ipa-devirt.c (record_node): Walk through aliases.
18551
18552 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18553
18554 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18555
18556 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18557
18558 Revert:
18559 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18560
18561 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18562
18563 * ipa-visibility.c (function_and_variable_visibility): Remove
18564 temporary hack disabling local aliases on AIX.
18565
18566 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18567
18568 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18569 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18570
18571 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18572
18573 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18574 * rs6000/rs6000.c: Inline output of .set instruction.
18575 (declare_alias_data): New struct.
18576 (rs6000_declare_alias): New function.
18577 (rs6000_xcoff_declare_function_name): Use it.
18578 (rs6000_xcoff_declare_object_name): New function.
18579 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18580 (ASM_OUTPUT_DEF): Turn to empty definition.
18581
18582 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18583
18584 PR bootstrap/61679
18585 * hash-table.h: use hash_table::value_type instead of
18586 Descriptor::value_type in the return types of several methods.
18587
18588 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18589
18590 * tree-pass.h (pass_data): Remove has_execute member.
18591 * passes.c (execute_one_pass): Don't check pass->has_execute.
18592 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18593 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18594 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18595 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18596 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18597 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18598 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18599 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18600 gimple-low.c, gimple-ssa-isolate-paths.c,
18601 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18602 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18603 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18604 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18605 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18606 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18607 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18608 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18609 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18610 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18611 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18612 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18613 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18614 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18615 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18616 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18617 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18618 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18619 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18620 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18621 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18622 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18623 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18624 web.c: Remove initializer for pass_data::has_execute.
18625
18626 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18627
18628 * graphite-htab.h: Use hash_map instead of hash_table.
18629 * graphite-clast-to-gimple.c: Adjust.
18630 * passes.c: Use hash_map instead of hash_table.
18631 * sese.c: Likewise.
18632 * sese.h: Remove now unused code.
18633
18634 2014-07-08 Sriraman Tallam <tmsriram@google.com>
18635
18636 PR target/61599
18637 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18638 than zero.
18639
18640 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18641
18642 PR rtl-optimization/61673
18643 * combine.c (simplify_comparison): Test just mode's sign bit
18644 in tmode rather than the sign bit and any bits above it.
18645
18646 2014-07-08 Roman Gareev <gareevroman@gmail.com>
18647
18648 * graphite-isl-ast-to-gimple.c (generate_isl_context):
18649 Add __isl_give to the declaration.
18650 (generate_isl_schedule): Likewise.
18651 (scop_to_isl_ast): Likewise.
18652
18653 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18654
18655 * config/arm/arm.c (cortexa5_extra_costs): New table.
18656 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18657
18658 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18659
18660 PR tree-optimization/61725
18661 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18662 range, use range_includes_zerop_p instead of integer_zerop on
18663 vr0->min, only use log2 of max if min is not negative.
18664
18665 2014-07-08 Richard Biener <rguenther@suse.de>
18666
18667 * tree-ssa-dom.h (loop_depth_of_name): Remove.
18668 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18669 restriction on loop depth difference.
18670 (record_equality): Likewise.
18671 (propagate_rhs_into_lhs): Likewise. Simplify condition.
18672 (loop_depth_of_name): Remove.
18673 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18674 restriction on loop depth difference.
18675 (init_copy_prop): Likewise.
18676
18677 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18678
18679 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18680 parameter.
18681 (walk_aliased_vdefs): Likewise.
18682 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18683 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18684 (detect_type_change_from_memory_writes): Check if entry was reached.
18685
18686 2014-07-08 Richard Biener <rguenther@suse.de>
18687
18688 PR tree-optimization/61681
18689 * tree-ssa-structalias.c (find_what_var_points_to): Expand
18690 NONLOCAL inside ESCAPED.
18691
18692 2014-07-08 Richard Biener <rguenther@suse.de>
18693
18694 PR tree-optimization/61680
18695 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18696 Handle properly all read-write dependences with group accesses.
18697
18698 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
18699
18700 PR tree-optimization/61576
18701 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18702 block containing reduction statement is predecessor of phi basi block.
18703
18704 2014-07-08 Marek Polacek <polacek@redhat.com>
18705
18706 PR c/60226
18707 * fold-const.c (round_up_loc): Change the parameter type.
18708 Remove assert.
18709 * fold-const.h (round_up_loc): Adjust declaration.
18710 * stor-layout.c (finalize_record_size): Check for too large types.
18711
18712 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
18713
18714 * symtab.c: Include calls.h.
18715 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18716
18717 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
18718
18719 * config/rs6000/rs6000.c (output_vec_const_move): Handle
18720 little-endian code generation.
18721 * config/rs6000/spe.md (spe_evmergehi): Rename to...
18722 (vec_perm00_v2si): ... this. Handle little-endian code generation.
18723 (spe_evmergehilo): Rename to...
18724 (vec_perm01_v2si): ... this. Handle little-endian code generation.
18725 (spe_evmergelo): Rename to...
18726 (vec_perm11_v2si): ... this. Handle little-endian code generation.
18727 (spe_evmergelohi): Rename to...
18728 (vec_perm10_v2si): ... this. Handle little-endian code generation.
18729 (spe_evmergehi, spe_evmergehilo): New expanders.
18730 (spe_evmergelo, spe_evmergelohi): Likewise.
18731 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18732 (*frob_tf_ti): Likewise.
18733 (*frob_<mode>_di_2): Likewise.
18734 (*frob_tf_di_8_2): Likewise.
18735 (*frob_di_<mode>): Likewise.
18736 (*frob_ti_tf): Likewise.
18737 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18738 (*frob_ti_<mode>_8_2): Likewise.
18739 (*frob_ti_tf_2): Likewise.
18740 (mov_si<mode>_e500_subreg0): Rename to...
18741 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
18742 endianness only.
18743 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18744 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18745 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
18746 the big endianness only.
18747 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18748 (*mov_si<mode>_e500_subreg0_2): Rename to...
18749 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
18750 big big endianness only.
18751 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18752 (*mov_si<mode>_e500_subreg4): Rename to...
18753 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
18754 endianness only.
18755 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18756 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18757 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
18758 the big endianness only.
18759 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18760 pattern.
18761 (*mov_si<mode>_e500_subreg4_2): Rename to...
18762 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
18763 endianness only.
18764 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18765 (*mov_sitf_e500_subreg8): Rename to...
18766 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
18767 endianness only.
18768 (*mov_sitf_e500_subreg8_le): New instruction pattern.
18769 (*mov_sitf_e500_subreg8_2): Rename to...
18770 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
18771 endianness only.
18772 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18773 (*mov_sitf_e500_subreg12): Rename to...
18774 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
18775 endianness only.
18776 (*mov_sitf_e500_subreg12_le): New instruction pattern.
18777 (*mov_sitf_e500_subreg12_2): Rename to...
18778 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
18779 endianness only.
18780 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18781
18782 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
18783
18784 * asan.c (instrument_strlen_call): Do not instrument first byte
18785 in strlen if already instrumented.
18786
18787 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18788
18789 * config/arm/arm.opt (mwords-little-endian): Delete.
18790 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18791 of TARGET_LITTLE_WORDS.
18792 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18793 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18794 warning.
18795 * doc/invoke.texi: Remove references to -mwords-little-endian.
18796
18797 2014-07-07 Jakub Jelinek <jakub@redhat.com>
18798
18799 * expmed.c (struct init_expmed_rtl): Change all fields but
18800 pow2 and cint from struct rtx_def to rtx.
18801 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18802 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
18803 at the end again.
18804
18805 2014-07-06 Marek Polacek <polacek@redhat.com>
18806
18807 PR c/6940
18808 * doc/invoke.texi: Document -Wsizeof-array-argument.
18809
18810 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18811
18812 * wide-int.h (wide_int_storage): Change declaration from struct
18813 to class.
18814
18815 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
18816
18817 * cgraph.c (cgraph_create_indirect_edge): Update call of
18818 get_polymorphic_call_info.
18819 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18820 (possible_polymorphic_call_targets): Add parameter call.
18821 (decl_maybe_in_construction_p): New predicate.
18822 (get_polymorphic_call_info): Add parameter call;
18823 use decl_maybe_in_construction_p.
18824 * gimple-fold.c (fold_gimple_assign): Update use of
18825 possible_polymorphic_call_targets.
18826 (gimple_fold_call): Likewise.
18827 * ipa-prop.c: Inlcude calls.h
18828 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18829 (param_type_may_change_p): New predicate.
18830 (detect_type_change_from_memory_writes): Break out from ...
18831 (detect_type_change): ... this one; use param_type_may_change_p.
18832 (detect_type_change_ssa): Use param_type_may_change_p.
18833 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18834
18835 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
18836
18837 PR target/49423
18838 * config/arm/arm-protos.h (arm_legitimate_address_p,
18839 arm_is_constant_pool_ref): Add prototypes.
18840 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18841 (arm_is_constant_pool_ref) New function.
18842 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18843 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18844 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18845 operand. Remove pool_range and neg_pool_range attributes.
18846 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18847 pool_range and neg_pool_range attributes.
18848 * config/arm/constraints.md (Uh): New constraint.
18849 (Uq): Don't allow constant pool references.
18850
18851 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
18852
18853 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18854 (move_lo_quad_internal_be_<mode>): Likewise.
18855 (move_lo_quad_<mode>): Convert to define_expand.
18856 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18857 (aarch64_simd_move_hi_quad_be_<mode>): New.
18858 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18859 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18860 (aarch64_combinez_be<mode>): New.
18861 (aarch64_combine<mode>): Convert to define_expand.
18862 (aarch64_combine_internal<mode>): New.
18863 (aarch64_simd_combine<mode>): Remove bogus RTL description.
18864
18865 2014-07-04 Tom de Vries <tom@codesourcery.com>
18866
18867 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18868 combination of earlyclobber and read/write modifiers.
18869
18870 2014-07-04 Tom de Vries <tom@codesourcery.com>
18871
18872 * config/aarch64/aarch64-simd.md
18873 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18874
18875 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
18876
18877 PR target/61714
18878 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18879
18880 2014-07-04 Jakub Jelinek <jakub@redhat.com>
18881
18882 PR middle-end/61654
18883 * cgraphunit.c (expand_thunk): Call free_dominance_info.
18884
18885 PR tree-optimization/61684
18886 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18887 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18888
18889 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18890 Kito Cheng <kito@0xlab.org>
18891 Monk Chiang <sh.chiang04@gmail.com>
18892
18893 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18894 (nds32_symbol_load_store_p): Move to ...
18895 (nds32_fp_as_gp_check_available): Move to ...
18896 * config/nds32/nds32-fp-as-gp.c: ... here.
18897 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18898 extern declaration.
18899
18900 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18901 Kito Cheng <kito@0xlab.org>
18902 Monk Chiang <sh.chiang04@gmail.com>
18903
18904 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18905 (nds32_expand_store_multiple): Move to ...
18906 (nds32_expand_movmemqi): Move to ...
18907 * config/nds32/nds32-memory-manipulation.c: ... here.
18908
18909 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18910 Kito Cheng <kito@0xlab.org>
18911 Monk Chiang <sh.chiang04@gmail.com>
18912
18913 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18914 (nds32_output_casesi_pc_relative): Move to ...
18915 (nds32_output_casesi): Move to ...
18916 (nds32_mem_format): Move to ...
18917 (nds32_output_16bit_store): Move to ...
18918 (nds32_output_16bit_load): Move to ...
18919 (nds32_output_32bit_store): Move to ...
18920 (nds32_output_32bit_load): Move to ...
18921 (nds32_output_32bit_load_s): Move to ...
18922 (nds32_output_stack_push): Move to ...
18923 (nds32_output_stack_pop): Move to ...
18924 * config/nds32/nds32-md-auxiliary.c: ... here.
18925
18926 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18927 Ling-Hua Tseng <uranus@tinlans.org>
18928
18929 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18930 the purpose of this file.
18931
18932 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18933 Kito Cheng <kito@0xlab.org>
18934 Monk Chiang <sh.chiang04@gmail.com>
18935
18936 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18937 (nds32_address_cost): Move implementation to ...
18938 * config/nds32/nds32-cost.c: ... here.
18939 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18940 (nds32_address_cost_impl): Declare.
18941
18942 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18943 Kito Cheng <kito@0xlab.org>
18944 Monk Chiang <sh.chiang04@gmail.com>
18945
18946 * config/nds32/nds32.c
18947 (nds32_consecutive_registers_load_store_p): Move to ...
18948 (nds32_valid_multiple_load_store): Move to ...
18949 (nds32_valid_stack_push_pop): Move to ...
18950 (nds32_can_use_bclr_p): Move to ...
18951 (nds32_can_use_bset_p): Move to ...
18952 (nds32_can_use_btgl_p): Move to ...
18953 (nds32_can_use_bitci_p): Move to ...
18954 * config/nds32/nds32-predicates.c: ... here.
18955
18956 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18957 Kito Cheng <kito@0xlab.org>
18958 Monk Chiang <sh.chiang04@gmail.com>
18959
18960 * config/nds32/nds32.c
18961 (nds32_expand_builtin_null_ftype_reg): Move to ...
18962 (nds32_expand_builtin_reg_ftype_imm): Move to ...
18963 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
18964 (nds32_init_builtins): Move implementation to ...
18965 (nds32_expand_builtin): Move implementation to ...
18966 * config/nds32/nds32-intrinsic.c: ... here.
18967 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
18968 (nds32_expand_builtin_impl): Declare.
18969
18970 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18971 Kito Cheng <kito@0xlab.org>
18972 Monk Chiang <sh.chiang04@gmail.com>
18973
18974 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
18975 (nds32_emit_section_tail_template): Move to ...
18976 (nds32_emit_isr_jmptbl_section): Move to ...
18977 (nds32_emit_isr_vector_section): Move to ...
18978 (nds32_emit_isr_reset_conten): Move to ...
18979 (nds32_check_isr_attrs_conflict): Move to ...
18980 (nds32_construct_isr_vectors_information): Move to ...
18981 (nds32_asm_file_start): Move implementation to ...
18982 (nds32_asm_file_end): Move implementation to ...
18983 * config/nds32/nds32-isr.c: ... here.
18984 * config/nds32/nds32-protos.h
18985 (nds32_check_isr_attrs_conflict): Declare.
18986 (nds32_construct_isr_vectors_information): Declare.
18987 (nds32_asm_file_start_for_isr): Declare.
18988 (nds32_asm_file_end_for_isr): Declare.
18989
18990 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18991 Kito Cheng <kito@0xlab.org>
18992 Monk Chiang <sh.chiang04@gmail.com>
18993
18994 * config.gcc (nds32*): Add new modules to extra_objs.
18995 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18996 (nds32be-*-*): Likewise.
18997 * config/nds32/nds32-cost.c: New file.
18998 * config/nds32/nds32-fp-as-gp.c: New file.
18999 * config/nds32/nds32-intrinsic.c: New file.
19000 * config/nds32/nds32-isr.c: New file.
19001 * config/nds32/nds32-md-auxiliary.c: New file.
19002 * config/nds32/nds32-memory-manipulation.c: New file.
19003 * config/nds32/nds32-pipelines-auxiliary.c: New file.
19004 * config/nds32/nds32-predicates.c: New file.
19005 * config/nds32/t-nds32: New file.
19006
19007 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19008
19009 PR tree-optimization/61682
19010 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19011 using cases and when one of the operands is equal to 1.
19012
19013 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
19014
19015 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19016 ashr<mode>3): Correct mode of operands[2].
19017 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19018 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19019 Correct mode of operands[2]. Fix split condition.
19020
19021 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
19022
19023 * arm.md (arch): Add armv6_or_vfpv3.
19024 (arch_enabled): Add test for the above.
19025 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19026 on VFP9.
19027 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19028
19029 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19030
19031 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19032 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19033 HWI 1 and negate the unsigned value.
19034 * expmed.c (expand_sdiv_pow2): For modes wider than word always
19035 use AND instead of shift.
19036 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19037
19038 2014-07-03 Marek Polacek <polacek@redhat.com>
19039
19040 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19041 (-fsanitize=float-divide-by-zero): Move to the table with
19042 -fsanitize=undefined suboptions.
19043 (-fsanitize=float-cast-overflow): Likewise.
19044
19045 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
19046
19047 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19048 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19049 endianness.
19050
19051 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19052
19053 * loop-invariant.c (struct invariant): Add a new member: eqno;
19054 (find_identical_invariants): Update eqno;
19055 (create_new_invariant): Init eqno;
19056 (get_inv_cost): Compute comp_cost with eqno;
19057
19058 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19059
19060 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19061 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19062 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19063 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19064 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19065
19066 2014-07-02 Christian Bruel <christian.bruel@st.com>
19067
19068 PR target/29349
19069 PR target/53513
19070 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19071 (make_preds_opaque): Delete.
19072 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19073 (commit_mode_sets): New function.
19074 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19075 Process all modes at once.
19076 * basic-block.h (pre_edge_lcm_avs): Declare.
19077 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19078 Call clear_aux_for_edges. Fix comments.
19079 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19080 (pre_edge_rev_lcm): Idem.
19081 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19082 parameter.
19083 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19084 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19085 Idem.
19086 * config/i386/i386.c (x96_emit_mode_set): Idem.
19087 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19088 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
19089 (fpscr_toggle) Disallow from delay slot.
19090 * target.def (emit_mode_set): Add prev_mode parameter.
19091 * doc/tm.texi: Regenerate.
19092
19093 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19094
19095 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19096 variable i.
19097
19098 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19099
19100 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19101 vtable_pointer_value_to_vtable): Constify.
19102 (contains_polymorphic_type_p): Declare.
19103 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19104 vtable_pointer_value_to_vtable): Constify.
19105 (contains_polymorphic_type_p): New predicate.
19106 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19107 polymorphic types.
19108 (ipa_set_ancestor_jf): Likewise.
19109 (detect_type_change): Return false in easy cases.
19110 (compute_complex_assign_jump_func): Require type to contain
19111 polymorphic type.
19112 (compute_known_type_jump_func): Likewise.
19113
19114 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19115
19116 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19117 Remove.
19118 (type_in_anonymous_namespace_p): Constify argument.
19119 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19120 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19121 (main_odr_variant): New function.
19122 (hash_type_name): Make static; update assert; do not ICE on
19123 non-records.
19124 (types_same_for_odr): Bring here from tree.c; simplify and remove
19125 old structural comparing code that doesn't work for templates.
19126 (odr_hasher::equal): Update assert.
19127 (add_type_duplicate): Return true when bases should be computed;
19128 replace incomplete loader by complete; do not output duplicated
19129 warnings; do not ICE on non-records; set odr_violated flag.
19130 (get_odr_type): Be ready to replace incomplete type by complete
19131 one; work on ODR variants instead of main variants; reorder item
19132 in array so bases have still smaller indexes.
19133 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19134 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19135
19136 2014-07-01 Cary Coutant <ccoutant@google.com>
19137
19138 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19139 lookup.
19140 (resolve_addr_in_expr): When replacing the rtx in a location list
19141 entry, get a new address table entry.
19142 (dwarf2out_finish): Call index_location_lists even if there are no
19143 addr_index_table entries yet.
19144
19145 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19146
19147 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19148 change for not being obvious.
19149
19150 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19151
19152 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19153 unused argument.
19154
19155 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19156
19157 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19158 (vcagt_f64): Likewise.
19159 (vcale_f64): Likewise.
19160 (vcaled_f64): Likewise.
19161 (vcales_f32): Likewise.
19162 (vcalt_f64): Likewise.
19163 (vcaltd_f64): Likewise.
19164 (vcalts_f32): Likewise.
19165
19166 2014-07-01 Marek Polacek <polacek@redhat.com>
19167
19168 * doc/invoke.texi: Document -Wint-conversion.
19169
19170 2014-07-01 Marek Polacek <polacek@redhat.com>
19171
19172 PR c/58286
19173 * doc/invoke.texi: Document -Wincompatible-pointer-types.
19174
19175 2014-07-01 Martin Liska <mliska@suse.cz>
19176
19177 IPA REF alias refactoring
19178 * cgraph.h (iterate_direct_aliases): New function.
19179 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19180 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19181 FOR_EACH_ALIAS added.
19182 (cgraph_for_node_and_aliases): Likewise.
19183 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19184 * ipa-inline.c (reset_edge_caches): Likewise.
19185 (update_caller_keys): Likewise.
19186 * trans-mem.c (ipa_tm_execute): Likewise.
19187 *varpool.c (varpool_analyze_node): Likewise.
19188 (varpool_for_node_and_aliases): Likewise.
19189 * ipa-ref.h (first_alias): New function.
19190 (last_alias): Likewise.
19191 (has_aliases_p): Likewise.
19192 * ipa-ref.c (ipa_ref::remove_reference): Removal function
19193 is sensitive to IPA_REF_ALIASes.
19194 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19195 are put at the beginning of the list.
19196 (symtab_node::iterate_direct_aliases): New function.
19197
19198 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19199
19200 Revert:
19201 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19202 type is complete.
19203 (write_ts_type_common_tree_pointers): Do not stream fields not set
19204 for incomplete types; do not stream duplicated fields for variants;
19205 sanity check that variant and type match.
19206 (write_ts_type_non_common_tree_pointers): Likewise.
19207 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19208 TYPE_SIZE whether type is complete.
19209 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19210 write_ts_type_common_tree_pointers
19211 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19212
19213 2014-06-30 Joseph Myers <joseph@codesourcery.com>
19214
19215 * var-tracking.c (add_stores): Return instead of asserting if old
19216 and new values for conditional store are the same.
19217
19218 2014-06-30 Richard Henderson <rth@redhat.com>
19219
19220 PR rtl-opt/61608
19221 PR target/39284
19222 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19223 the cfg if there were any changes.
19224 * passes.def: Revert move of peephole2 after reorder_blocks;
19225 move duplicate_computed_gotos before peephole2.
19226
19227 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
19228
19229 * except.c (emit_note_eh_region_end): New helper function.
19230 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19231 emit EH_REGION_END note.
19232 * jump.c (cleanup_barriers): Do not split a call and its
19233 corresponding CALL_ARG_LOCATION note.
19234
19235 2014-06-30 Jeff Law <law@redhat.com>
19236
19237 PR tree-optimization/61607
19238 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19239 deeper into the SSA_NAME_VALUE chain.
19240
19241 2014-06-30 Marek Polacek <polacek@redhat.com>
19242
19243 * convert.c (convert_to_integer): Don't instrument conversions if the
19244 function has no_sanitize_undefined attribute.
19245 * ubsan.c: Don't run the ubsan pass if the function has
19246 no_sanitize_undefined attribute.
19247
19248 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19249
19250 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19251 -fsanitize=undefined suboptions.
19252
19253 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
19254
19255 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19256 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19257 against bigendian and adjust indices.
19258
19259 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19260
19261 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
19262
19263 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
19264
19265 PR target/61633
19266 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19267 Add alternative; make early clobber. Adjust both split patterns
19268 to use operand 0 as the working register.
19269
19270 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19271
19272 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19273 as ira_object_id_map might be NULL, or 1.
19274
19275 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19276
19277 * loop-invariant.c (get_inv_cost): Handle register class.
19278 (gain_for_invariant): Check the register pressure of the inv
19279 and its overlapped register class, other than all.
19280
19281 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19282
19283 * doc/invoke.texi (Optimize Options): Fix descriptions of
19284 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19285
19286 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
19287
19288 * doc/extend.texi (Function Attributes): Update 'naked' attribute
19289 documentation.
19290
19291 2014-06-29 Tobias Grosser <tobias@grosser.es>
19292
19293 PR bootstrap/61650
19294 * graphite-isl-ast-to-gimple.c: Add missing guards.
19295
19296 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19297
19298 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19299 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19300 * flag-types.h: Add new enum fgraphite_generator.
19301 * graphite-isl-ast-to-gimple.c: New.
19302 * graphite-isl-ast-to-gimple.h: New.
19303 * graphite.c (graphite_transform_loops): Add choice of Graphite
19304 code generator, which depends on flag_graphite_code_gen.
19305
19306 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19307
19308 * graphite-dependences.c (subtract_commutative_associative_deps):
19309 Add NULL checking of the following variables: must_raw_no_source,
19310 may_raw_no_source, must_war_no_source, may_war_no_source,
19311 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19312 must_war, may_war, must_waw, may_waw.
19313
19314 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19315
19316 * graphite-clast-to-gimple.c: gloog is renamed to
19317 graphite_regenerate_ast_cloog. gloog_error is renamed to
19318 graphite_regenerate_error.
19319 * graphite-clast-to-gimple.h: The definition of the struct
19320 bb_pbb_def is moved to graphite-htab.h.
19321 Add inclusion of the hash-table.h.
19322 * graphite-htab.h: The declaration of the function gloog is moved
19323 to graphite-clast-to-gimple.h and renamed to
19324 graphite_regenerate_ast_cloog.
19325 * graphite.c (graphite_transform_loops): gloog is renamed
19326 to graphite_regenerate_ast_cloog.
19327
19328 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19329
19330 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19331 type is complete.
19332 (write_ts_type_common_tree_pointers): Do not stream fields not set
19333 for incomplete types; do not stream duplicated fields for variants;
19334 sanity check that variant and type match.
19335 (write_ts_type_non_common_tree_pointers): Likewise.
19336 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19337 TYPE_SIZE whether type is complete.
19338 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19339 write_ts_type_common_tree_pointers
19340 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19341
19342 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19343
19344 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19345
19346 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19347
19348 * tree-inline.c (remap_type_1): Do not duplicate fields
19349 that are shared in between type and its main variant.
19350
19351 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19352
19353 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19354 of the type.
19355 (ipa_set_ancestor_jf) Likewise.
19356 (check_stmt_for_type_change): Check that we work on main variant.
19357 (detect_type_change): Look into main variant.
19358 (compute_known_type_jump_func): Check that main variant has BINFO.
19359
19360 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19361
19362 * ipa-devirt.c (set_type_binfo): New function.
19363 (add_type_duplicate): Use it.
19364 (get_odr_type): Sanity check that binfos points to main variants.
19365 (get_class_context): Be sure the context's outer_type is main variant.
19366 (contains_type_p): Walk main variant.
19367 (get_polymorphic_call_info_for_decl): Set outer_type to be
19368 main variant.
19369 (get_polymorphic_call_info): Likewise.
19370 (possible_polymorphic_call_targets): Sanity check that we operate
19371 on main variant.
19372
19373 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19374
19375 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19376
19377 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19378
19379 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19380 accidental change due to wide-int branch merge.
19381
19382 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19383
19384 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19385 compressed debug support.
19386 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19387 * configure: Regenerate.
19388 * config.in: Regenerate.
19389 * common.opt (compressed_debug_sections): New enum.
19390 (gz, gz=): New options.
19391 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19392 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19393 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19394 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19395 LINK_COMPRESS_DEBUG_SPEC.
19396 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19397 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19398 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19399 (Debugging Options): Document -gz[=type].
19400
19401 2014-06-27 Martin Jambor <mjambor@suse.cz>
19402
19403 PR ipa/61160
19404 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19405 args_to_skip, use those from node instead. Copy args_to_skip and
19406 combined_args_to_skip from node to the new thunk.
19407 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19408 (cgraph_create_virtual_clone): Moved computation of
19409 combined_args_to_skip...
19410 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19411
19412 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
19413
19414 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19415 redundant diagnostic machinary.
19416
19417 2014-06-27 Richard Biener <rguenther@suse.de>
19418
19419 * tree-ssa-math-opts.c (bswap_replace): Fix
19420 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19421
19422 2014-06-27 Martin Liska <mliska@suse.cz>
19423
19424 * gimple.h (gimple_location_safe): New function introduced.
19425 * cgraphunit.c (walk_polymorphic_call_targets): Usage
19426 of gimple_location_safe replaces gimple_location.
19427 (gimple_fold_call): Likewise.
19428 * ipa-devirt.c (ipa_devirt): Likewise.
19429 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19430 * ipa.c (walk_polymorphic_call_targets): Likewise.
19431 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19432
19433 2014-06-27 Jakub Jelinek <jakub@redhat.com>
19434
19435 PR tree-optimization/57233
19436 PR tree-optimization/61299
19437 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19438 functions.
19439 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
19440 would be lowered to scalar shifts, check if corresponding
19441 shifts and vector BIT_IOR_EXPR are supported and don't lower
19442 or lower just to narrower vector type in that case.
19443 * expmed.c (expand_shift_1): Fix up handling of vector
19444 shifts and rotates.
19445
19446 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
19447
19448 PR target/61586
19449 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19450
19451 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
19452
19453 * doc/invoke.texi (-fsemantic-interposition): Document.
19454 * common.opt (fsemantic-interposition): New flag.
19455 * varasm.c (decl_replaceable_p): Use it.
19456
19457 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19458
19459 PR target/61542
19460 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19461 extraction other than index 3.
19462
19463 2014-06-26 Teresa Johnson <tejohnson@google.com>
19464
19465 * doc/invoke.texi: Fix typo.
19466 * dumpfile.c: Add support for documented -fdump-* options
19467 optimized/missed/note/optall.
19468
19469 2014-06-26 Martin Jambor <mjambor@suse.cz>
19470
19471 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19472 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19473 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19474 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19475 * opts.c (default_options_optimization): Set
19476 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19477 * doc/invoke.texi (allow-load-data-races)
19478 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19479 (allow-store-data-races): Document the new default.
19480
19481 2014-06-26 Martin Jambor <mjambor@suse.cz>
19482
19483 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19484 renamed to ipa_impossible_devirt_target. Fix typo.
19485 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19486 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19487 ipa_impossible_devirt_target.
19488
19489 2014-06-26 Richard Biener <rguenther@suse.de>
19490
19491 PR tree-optimization/61607
19492 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19493 explaining why we restrict copies on loop depth.
19494 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19495 on loop depth.
19496 (record_equivalences_from_phis): Instead add it here.
19497
19498 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
19499
19500 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19501 (LTO_WRAPPER_OBJS): New variable.
19502 (lto-wrapper$(exeext)): Use it.
19503 * collect2.c: Include "collect-utils.h".
19504 (verbose, debug): Remove variables.
19505 (at_file_supplied): No longer static.
19506 (tool_name): New variable.
19507 (do_wait, fork_execute, maybe_unlink): Don't declare.
19508 (tool_cleanup): No longer static.
19509 (notice): Remove function.
19510 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19511 fork_execute calls.
19512 (collect_wait, do_wait, collect_execute): Remove functions.
19513 (maybe_unlink): No longer static.
19514 * collect2.h (verbose, debug): Don't declare.
19515 (at_file_supplied): Declare.
19516 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
19517 changed.
19518 (collect_execute): Replace with implementation from collect2, plus a
19519 new arg use_atfile. All callers changed.
19520 (collect_wait): Replace with implementation from collect2.
19521 (maybe_unlink_file): Remove function.
19522 (fork_execute): Replace with implementation from collect2, plus a
19523 new arg use_atfile. All callers changed.
19524 (do_wait): Add call to utils_cleanup to the error path.
19525 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19526 (tool_cleanup): Adjust declarations.
19527 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19528 * tlink.c: Include "collect-utils.h".
19529 (tlink_execute): New arg use_atfile. All callers changed.
19530 (tlink_init, tlink_execute): Remove declarations.
19531
19532 * collect-utils.c (save_temps): New variable.
19533 (do_wait): Use it instead of debug. Use fatal_error.
19534 * collect-utils.h (save_temps): Declare.
19535 * collect2.c (verbose): Rename from vflag. All uses changed.
19536 (tool_cleanup): New function, copied from collect_atexit.
19537 (collect_atexit, handler): Just call it.
19538 * collect2.h (verbose): Declaration renamed from vflag.
19539 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19540 debug.
19541
19542 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19543 (lto-wrapper$(exeext)): Link with collect-utils.o.
19544 * collect-utils.c: New file.
19545 * collect-utils.h: New file.
19546 * lto-wrapper.c: Include "collect-utils.h".
19547 (args_name): Delete variable.
19548 (tool_name): New variable.
19549 (tool_cleanup): New function.
19550 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
19551 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19552 (fork_execute): Remove functions.
19553
19554 2014-06-26 Nick Clifton <nickc@redhat.com>
19555
19556 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19557
19558 * doc/extend.texi (Function Attributes): Fix typo in description
19559 of RX vector attribute.
19560
19561 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19562
19563 * config.gcc (supported_defaults): Error when passing either
19564 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19565
19566 2014-06-26 Richard Biener <rguenther@suse.de>
19567
19568 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19569 propagating volatile pointers.
19570
19571 2014-06-26 Richard Biener <rguenther@suse.de>
19572
19573 PR tree-optimization/61607
19574 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19575 loop if we redirected its latch edge.
19576 (thread_block_1): Do not cancel loops prematurely.
19577
19578 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
19579
19580 * toplev.c (backend_init_target): Move init_emit_regs and
19581 init_regs to...
19582 (backend_init) ... here; skip ira_init_once and backend_init_target.
19583 (target_reinit) ... and here; clear
19584 this_target_rtl->lang_dependent_initialized.
19585 (lang_dependent_init_target): Clear
19586 this_target_rtl->lang_dependent_initialized;
19587 break out rtl initialization to ...
19588 (initialize_rtl): ... here; call also backend_init_target
19589 and ira_init_once.
19590 * toplev.h (initialize_rtl): New function.
19591 * function.c: Include toplev.h
19592 (init_function_start): Call initialize_rtl.
19593 * rtl.h (target_rtl): Add target_specific_initialized,
19594 lang_dependent_initialized.
19595
19596 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
19597 Jakub Jelinek <jakub@redhat.com>
19598
19599 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19600
19601 2014-06-25 Tom de Vries <tom@codesourcery.com>
19602
19603 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19604
19605 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19606
19607 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19608 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19609 Issue a strict overflow warning if appropriate.
19610
19611 2014-06-25 Martin Liska <mliska@suse.cz>
19612
19613 IPA REF refactoring
19614 * Makefile.in: Removed header file (ipa-ref-inline.h).
19615 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19616 called.
19617 (cgraph_speculative_call_info): Likewise.
19618 (cgraph_for_node_thunks_and_aliases): Likewise.
19619 (cgraph_for_node_and_aliases): Likewise.
19620 (verify_cgraph_node): Likewise.
19621 * cgraph.h: Batch of IPA REF functions become member functions of
19622 symtab_node: add_reference, maybe_add_reference, clone_references,
19623 clone_referring, clone_reference, find_reference,
19624 remove_stmt_references, remove_all_references,
19625 remove_all_referring, dump_references, dump_referring,
19626 has_alias_p, iterate_reference, iterate_referring.
19627 * cgraphbuild.c (record_reference): New IPA REF function used.
19628 (record_type_list): Likewise.
19629 (record_eh_tables): Likewise.
19630 (mark_address): Likewise.
19631 (mark_load): Likewise.
19632 (mark_store): Likewise.
19633 (pass_build_cgraph_edges): Likewise.
19634 (rebuild_cgraph_edge): Likewise.
19635 (cgraph_rebuild_references): Likewise.
19636 (pass_remove_cgraph_callee_edges): Likewise.
19637 * cgraphclones.c (cgraph_clone_node): Likewise.
19638 (cgraph_create_virtual_clone): Likewise.
19639 (cgraph_materialize_clone): Likewise.
19640 (cgraph_materialize_all_clones): Likewise.
19641 * cgraphunit.c (cgraph_reset_node): Likewise.
19642 (cgraph_reset_node): Likewise.
19643 (analyze_function): Likewise.
19644 (assemble_thunks_and_aliases): Likewise.
19645 (expand_function): Likewise.
19646 * ipa-comdats.c (propagate_comdat_group): Likewise.
19647 (enqueue_references): Likewise.
19648 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19649 (create_specialized_node): Likewise.
19650 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19651 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19652 * ipa-inline.c (reset_edge_caches): Likewise.
19653 (update_caller_keys): Likewise.
19654 (execute): Likewise.
19655 * ipa-prop.c (remove_described_reference): Likewise.
19656 (propagate_controlled_uses): Likewise.
19657 (ipa_edge_duplication_hook): Likewise.
19658 (ipa_modify_call_arguments): Likewise.
19659 * ipa-pure-const.c (propagate_pure_const): Likewise.
19660 * ipa-ref-inline.h: Header file removed, functions moved
19661 to symtab_node class.
19662 * ipa-ref.c (remove_reference): New class member function.
19663 (cannot_lead_to_return): New class member function.
19664 (referring_ref_list): Likewise.
19665 (referred_ref_list): Likewise.
19666 Rest of functions moved to symtab_node class.
19667 * ipa-ref.h: New member functions remove_reference,
19668 cannot_lead_to_return, referring_ref_list, referred_ref_list added
19669 to ipa_ref class.
19670 ipa_ref_list class has new member functions: first_reference,
19671 first_referring, clear, nreferences.
19672 * ipa-reference.c (analyze_function): New IPA REF function used.
19673 (write_node_summary_p): Likewise.
19674 (ipa_reference_write_optimization_summary): Likewise.
19675 * ipa-split.c (split_function): Likewise.
19676 * ipa-utils.c (ipa_reverse_postorder): Likewise.
19677 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19678 (function_and_variable_visibility): Likewise.
19679 * ipa.c (has_addr_references_p): Likewise.
19680 (process_references): Argument type changed.
19681 (symtab_remove_unreachable_nodes): New IPA REF function used.
19682 (process_references): Likewise.
19683 (set_writeonly_bit): Likewise.
19684 * lto-cgraph.c: Implementation of new symtab_node member functions
19685 that uses new IPA REF functions.
19686 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19687 function used.
19688 * lto-streamer-out.c (output_symbol_p): Likewise.
19689 * lto-streamer.h (referenced_from_this_partition_p): Argument type
19690 changed.
19691 * symtab.c: Implementation of new IPA REF API.
19692 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19693 (ipa_tm_create_version): Likewise.
19694 (ipa_tm_execute): Likewise.
19695 * tree-emutls.c (gen_emutls_addr): Likewise.
19696 * tree-inline.c (copy_bb): Likewise.
19697 (delete_unreachable_blocks_update_callgraph): Likewise.
19698 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19699 (varpool_for_node_and_aliases): Likewise.
19700
19701 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19702
19703 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19704
19705 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19706
19707 PR bootstrap/61598
19708 * fold-const.c (fold_checksum_tree): Use a hash_table of const
19709 tree_node * instead of tree_node *.
19710 (fold): Adjust.
19711 (print_fold_checksum): Likewise.
19712 (fold_check_failed): Likewise.
19713 (debug_fold_checksum): Likewise.
19714 (fold_build1_stat_loc): Likewise.
19715 (fold_build2_stat_loc): Likewise.
19716 (fold_build3_stat_loc): Likewise.
19717 (fold_build_call_array_loc): Likewise.
19718
19719 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
19720
19721 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19722 implementation with call to...
19723 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19724 function.
19725 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19726 Declare.
19727
19728 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
19729
19730 PR tree-optimization/57742
19731 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19732 after replacing the statement.
19733
19734 2014-06-25 Nick Clifton <nickc@redhat.com>
19735
19736 * config/v850/v850.c (GHS_default_section_names): Change to const
19737 char * type.
19738 (GHS_current_section_names): Likewise.
19739 (v850_insert_attributes): Do not build strings, just assign the
19740 names directly. Change the type of 'chosen_section' to const
19741 char*.
19742 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19743 directly to the array entry.
19744 * config/v850/v850.h (GHS_default_section_names): Change to const
19745 char * type.
19746 (GHS_current_section_names): Likewise.
19747
19748 2014-06-25 Jakub Jelinek <jakub@redhat.com>
19749
19750 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19751 (LANG_HOOKS_DECLS): Add it.
19752 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19753 has correct type.
19754 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19755 * langhooks.h (struct lang_hooks_for_decls): Add
19756 omp_clause_linear_ctor hook.
19757 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19758 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
19759 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
19760 combined simd loop use omp_clause_linear_ctor hook.
19761
19762 2014-06-24 Cong Hou <congh@google.com>
19763
19764 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19765 pattern recognition.
19766 (type_conversion_p): PROMOTION is true if it's a type promotion
19767 conversion, and false otherwise. Return true if the given expression
19768 is a type conversion one.
19769 * tree-vectorizer.h: Adjust the number of patterns.
19770 * tree.def: Add SAD_EXPR.
19771 * optabs.def: Add sad_optab.
19772 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19773 * expr.c (expand_expr_real_2): Likewise.
19774 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19775 * gimple.c (get_gimple_rhs_num_ops): Likewise.
19776 * optabs.c (optab_for_tree_code): Likewise.
19777 * tree-cfg.c (estimate_operator_cost): Likewise.
19778 * tree-ssa-operands.c (get_expr_operands): Likewise.
19779 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19780 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19781 * doc/generic.texi: Add document for SAD_EXPR.
19782 * doc/md.texi: Add document for ssad and usad.
19783
19784 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19785
19786 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19787 qualification in cast.
19788
19789 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
19790
19791 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19792 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19793 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19794 (tree_function_decl): ... here.
19795 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19796 streaming of vindex to ...
19797 (write_ts_function_decl_tree_pointers): ... here.
19798 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19799 Do not stream DECL_VINDEX.
19800 (lto_input_ts_function_decl_tree_pointers): Stream it here.
19801
19802 2014-06-24 Catherine Moore <clm@codesourcery.com>
19803 Sandra Loosemore <sandra@codesourcery.com>
19804
19805 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19806 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19807 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19808
19809 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19810
19811 * doc/invoke.texi (Warning Options): Remove duplicated
19812 -Wmaybe-uninitialized.
19813
19814 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19815
19816 PR tree-optimization/57742
19817 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19818 (handle_builtin_malloc, handle_builtin_memset): New functions.
19819 (strlen_optimize_stmt): Call them.
19820 * passes.def: Move strlen after loop+dom but before vrp.
19821
19822 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19823
19824 PR target/61570
19825 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19826 model family 6 CPU with has_longmode never use a CPU without
19827 64-bit support.
19828
19829 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
19830
19831 PR target/61570
19832 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19833 the last change.
19834
19835 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19836
19837 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19838 * dominance.c (iterate_fix_dominators): Use hash_map instead of
19839 pointer_map.
19840 * hash-map.h: New file.
19841 * ipa-comdats.c: Use hash_map instead of pointer_map.
19842 * ipa.c: Likewise.
19843 * lto-section-out.c: Adjust.
19844 * lto-streamer.h: Replace pointer_map with hash_map.
19845 * symtab.c (verify_symtab): Likewise.
19846 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19847 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19848 * tree-streamer.h: Likewise.
19849 * tree-streamer.c: Adjust.
19850 * pointer-set.h: Remove pointer_map.
19851
19852 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19853
19854 * hash-table.h: Add a template arg to choose between storing values
19855 and storing pointers to values, and then provide partial
19856 specializations for both.
19857 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19858 should store, not the type values should point to.
19859 * tree-into-ssa.c (var_info_hasher): Likewise.
19860 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19861 * tree-complex.c: Adjust.
19862 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19863 table instead of int_tree_map *.
19864 * tree-parloops.c: Adjust.
19865 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19866 type is being stored.
19867 * tree-vectorizer.c: Adjust.
19868
19869 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19870
19871 * hash-table.h: Remove a layer of indirection from hash_table so that
19872 it contains the hash table's data instead of a pointer to the data.
19873 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19874 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19875 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19876 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19877 fold-const.c, gcse.c, ggc-common.c,
19878 gimple-ssa-strength-reduction.c, gimplify.c,
19879 graphite-clast-to-gimple.c, graphite-dependences.c,
19880 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19881 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19882 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19883 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19884 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19885 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19886 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19887 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19888 tree-ssa-live.c, tree-ssa-loop-im.c,
19889 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19890 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19891 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19892 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19893 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19894 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19895 vtable-verify.c, vtable-verify.h: Adjust.
19896
19897 2014-06-24 Richard Biener <rguenther@suse.de>
19898
19899 PR tree-optimization/61572
19900 * tree-ssa-sink.c (statement_sink_location): Do not sink
19901 loads from hard registers.
19902
19903 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19904
19905 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19906 not mentioned in clauses use private clause if the iterator is
19907 declared in #pragma omp for simd, and when adding lastprivate
19908 instead, add it to the outer #pragma omp for too. Diagnose
19909 if the variable is private in outer context. For simd collapse > 1
19910 loops, replace all iterators with temporaries.
19911 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19912 same even in collapse > 1 loops.
19913
19914 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19915 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19916 non-NULL.
19917 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19918 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19919 non-NULL.
19920 (gimplify_adjust_omp_clauses): Likewise.
19921 * omp-low.c (lower_rec_simd_input_clauses,
19922 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19923 safelen the same as safelen(1).
19924 * tree-nested.c (convert_nonlocal_omp_clauses,
19925 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
19926 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19927 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19928 Fixup handling of GIMPLE_OMP_TARGET.
19929 (convert_tramp_reference_stmt, convert_gimple_call): Handle
19930 GIMPLE_OMP_TARGET.
19931
19932 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
19933
19934 PR tree-optimization/61554
19935 * tree-ssa-propagate.c: Include "bitmap.h".
19936 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19937 properly update constructor/destructor.
19938 (substitute_and_fold_dom_walker::before_dom_children):
19939 Remove call to gimple_purge_dead_eh_edges, add bb->index to
19940 need_eh_cleaup instead.
19941 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19942 need_eh_cleanup.
19943
19944 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19945
19946 * varpool.c (dump_varpool_node): Dump used_by_single_function.
19947 * tree-pass.h (make_pass_ipa_single_use): New pass.
19948 * cgraph.h (used_by_single_function): New flag.
19949 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19950 Stream it.
19951 * passes.def (pass_ipa_single_use): Scedule.
19952 * ipa.c (BOTTOM): New macro.
19953 (meet): New function
19954 (propagate_single_user): New function.
19955 (ipa_single_use): New function.
19956 (pass_data_ipa_single_use): New pass.
19957 (pass_ipa_single_use): New pass.
19958 (pass_ipa_single_use::gate): New gate.
19959 (make_pass_ipa_single_use): New function.
19960
19961 2014-06-23 Kai Tietz <ktietz@redhat.com>
19962
19963 PR target/39284
19964 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
19965 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
19966
19967 2014-06-23 Richard Biener <rguenther@suse.de>
19968
19969 * tree-ssa-loop.c (gate_loop): New function.
19970 (pass_tree_loop::gate): Call it.
19971 (pass_data_tree_no_loop, pass_tree_no_loop,
19972 make_pass_tree_no_loop): New.
19973 * tree-vectorizer.c: Include tree-scalar-evolution.c
19974 (pass_slp_vectorize::execute): Initialize loops and SCEV if
19975 required.
19976 (pass_slp_vectorize::clone): New method.
19977 * timevar.def (TV_TREE_NOLOOP): New.
19978 * tree-pass.h (make_pass_tree_no_loop): Declare.
19979 * passes.def (pass_tree_no_loop): New pass group with
19980 SLP vectorizer.
19981
19982 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
19983
19984 PR target/61570
19985 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19986 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19987
19988 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19989
19990 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19991 "yes" where needed.
19992
19993 2014-06-23 Alan Modra <amodra@gmail.com>
19994
19995 PR bootstrap/61583
19996 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19997 to zero on debug statements.
19998
19999 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20000
20001 PR target/60825
20002 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20003 Ignore third operand if present by marking qualifier_internal.
20004
20005 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20006
20007 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20008 vector extension.
20009 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20010 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20011 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20012 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20013 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20014 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20015 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20016 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20017 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20018 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20019 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20020 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20021 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20022 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20023 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20024 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20025 logic in GCC vector extensions
20026
20027 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20028 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20029 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20030 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20031 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20032 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20033 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20034 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20035 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20036 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20037
20038 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20039
20040 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20041 extensions.
20042
20043 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20044 (vget_low_s64): Use __GET_LOW macro.
20045 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20046 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20047 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20048 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20049 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20050
20051 (vcombine_s64): Use GCC vector extensions; remove cast.
20052 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20053 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20054 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20055 Fix type signature; remove cast.
20056
20057 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20058
20059 PR target/60825
20060 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20061 V1DFmode.
20062 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20063 add V1DFmode
20064 (BUILTIN_VD1): New.
20065 (BUILTIN_VD_RE): Remove.
20066 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20067 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20068 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20069 variant but not df.
20070 (vreinterpretv1df*, vreinterpret*v1df): New.
20071 (vreinterpretdf*, vreinterpret*df): Remove.
20072 * config/aarch64/aarch64-simd.md (aarch64_create,
20073 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20074 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20075 (VD1): New.
20076 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20077 (vcreate_f64): Remove cast, use v1df builtin.
20078 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20079 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20080 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20081 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20082 vmov_n_f64, vst1_f64): Use gcc vector extensions.
20083 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20084 add range check using __builtin_aarch64_im_lane_boundsi.
20085 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20086 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20087 type signature, use gcc vector extensions.
20088 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20089 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20090 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20091 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20092 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20093 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20094 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20095 vreinterpret_u64_f64): Use v1df builtin not df.
20096
20097 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20098
20099 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20100 vector registers.
20101
20102 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20103
20104 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20105 priority directly.
20106
20107 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20108
20109 * loop-invariant.c (pre_check_invariant_p): New function.
20110 (find_invariant_insn): Call pre_check_invariant_p.
20111
20112 2014-06-22 Richard Henderson <rth@redhat.com>
20113
20114 PR target/61565
20115 * compare-elim.c (struct comparison): Add eh_note.
20116 (find_comparison_dom_walker::before_dom_children): Don't eliminate
20117 a redundant comparison in a different EH region. Purge EH edges if
20118 necessary.
20119
20120 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20121
20122 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20123 (var_shift): Use it.
20124 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20125 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20126 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20127 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20128 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20129 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20130 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20131 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20132 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20133 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20134 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20135 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20136 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20137 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20138 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20139 *rotldi3_internal15be): Use the new attribute. Merge register and
20140 integer alternatives.
20141
20142 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20143
20144 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20145 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20146 split, *ashrdi3_internal3 and split): Delete, merge into...
20147 (ashr<mode>3): New expander.
20148 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20149 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
20150
20151 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20152
20153 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20154 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20155 *rotldi3_internal3 and split): Delete, merge into...
20156 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20157 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
20158 Use "rotlw" extended mnemonic.
20159
20160 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20161
20162 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20163 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20164 and split, *ashldi3_internal3 and split): Delete, merge into...
20165 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20166 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
20167
20168 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20169
20170 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20171 (lshrsi3, two anonymous define_insns and define_splits,
20172 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20173 *lshrdi3_internal3 and split): Delete, merge into...
20174 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20175 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
20176
20177 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20178
20179 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20180 Remove "O" alternative.
20181
20182 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
20183
20184 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20185 (mips_move_from_gpr_cost): Likewise.
20186 (mips_register_move_cost): Update accordingly.
20187 (mips_secondary_reload_class): Remove name of in_p.
20188
20189 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
20190
20191 PR target/61503
20192 * config/i386/i386.md (x86_64_shrd, x86_shrd,
20193 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20194
20195 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20196
20197 * config/nios2/nios2.c: Include "builtins.h".
20198
20199 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20200
20201 * cgraph.h (tls_model_names): New variable.
20202 * print-tree.c (print_node): Simplify.
20203 * varpool.c (tls_model_names): New variable.
20204 (dump_varpool_node): Output tls model.
20205
20206 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20207
20208 * ipa-visibility.c (function_and_variable_visibility): Disable
20209 temporarily local aliases for some targets.
20210
20211 2014-06-20 Marek Polacek <polacek@redhat.com>
20212
20213 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20214 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20215 into SANITIZE_UNDEFINED.
20216 * doc/invoke.texi: Describe -fsanitize=bounds.
20217 * gimplify.c (gimplify_call_expr): Add gimplification of internal
20218 functions created in the FEs.
20219 * internal-fn.c: Move "internal-fn.h" after "tree.h".
20220 (expand_UBSAN_BOUNDS): New function.
20221 * internal-fn.def (UBSAN_BOUNDS): New internal function.
20222 * internal-fn.h: Don't define internal functions here.
20223 * opts.c (common_handle_option): Add -fsanitize=bounds.
20224 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20225 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20226 * tree-core.h: Define internal functions here.
20227 (struct tree_base): Add ifn field.
20228 * tree-pretty-print.c: Include "internal-fn.h".
20229 (dump_generic_node): Handle functions without CALL_EXPR_FN.
20230 * tree.c (get_callee_fndecl): Likewise.
20231 (build_call_expr_internal_loc): New function.
20232 * tree.def (CALL_EXPR): Update description.
20233 * tree.h (CALL_EXPR_IFN): Define.
20234 (build_call_expr_internal_loc): Declare.
20235 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20236 types.
20237 (ubsan_type_descriptor): Change bool parameter to enum
20238 ubsan_print_style. Adjust the code. Add handling of
20239 UBSAN_PRINT_ARRAY.
20240 (ubsan_expand_bounds_ifn): New function.
20241 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20242 (ubsan_build_overflow_builtin): Likewise.
20243 (instrument_bool_enum_load): Likewise.
20244 (ubsan_instrument_float_cast): Likewise.
20245 * ubsan.h (enum ubsan_print_style): New enum.
20246 (ubsan_expand_bounds_ifn): Declare.
20247 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
20248
20249 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
20250
20251 * config/rs6000/rs6000.md: Append `DONE' to preparation
20252 statements of `bswap' pattern splitters.
20253
20254 2014-06-20 Tom de Vries <tom@codesourcery.com>
20255
20256 * target.def (call_fusage_contains_non_callee_clobbers): Update
20257 definition.
20258 * doc/tm.texi: Regenerate.
20259
20260 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20261 Max Ostapenko <m.ostapenko@partner.samsung.com>
20262
20263 PR sanitizer/61547
20264 * asan.c (instrument_strlen_call): Fixed instrumentation of
20265 trailing byte.
20266
20267 2014-06-20 Martin Jambor <mjambor@suse.cz>
20268
20269 PR ipa/61540
20270 * ipa-prop.c (impossible_devirt_target): New function.
20271 (try_make_edge_direct_virtual_call): Use it, also instead of
20272 asserting.
20273
20274 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20275 Max Ostapenko <m.ostapenko@partner.samsung.com>
20276
20277 PR sanitizer/61530
20278 * asan.c (build_check_stmt): Add condition.
20279
20280 2014-06-20 Martin Jambor <mjambor@suse.cz>
20281
20282 PR ipa/61211
20283 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20284 expanded clones.
20285
20286 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20287
20288 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20289 Update comments.
20290 (VCONQ): Make comment more helpful.
20291 (VCON): Delete.
20292 * config/aarch64/aarch64-simd.md
20293 (aarch64_sqdmulh_lane<mode>):
20294 Use VCOND for operands 2. Update lane checking and flipping logic.
20295 (aarch64_sqrdmulh_lane<mode>): Likewise.
20296 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20297 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20298 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20299 attribute of operand 3 to VCOND.
20300 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20301 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20302 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20303 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20304 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20305 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20306 define_insn.
20307 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20308 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20309 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20310 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20311 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20312 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20313 operand to VCOND. Update lane flipping and bounds checking logic.
20314 (aarch64_sqdmlal2_lane<mode>): Likewise.
20315 (aarch64_sqdmlsl_lane<mode>): Likewise.
20316 (aarch64_sqdmull_lane<mode>): Likewise.
20317 (aarch64_sqdmull2_lane<mode>): Likewise.
20318 (aarch64_sqdmlal_laneq<mode>):
20319 Replace VCON usage with VCONQ.
20320 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20321 (aarch64_sqdmlal2_laneq<mode>): Emit
20322 aarch64_sqdmlal2_laneq<mode>_internal insn.
20323 Replace VCON with VCONQ.
20324 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20325 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20326 (aarch64_sqdmull_laneq<mode>): Emit
20327 aarch64_sqdmull_laneq<mode>_internal insn.
20328 Replace VCON with VCONQ.
20329 (aarch64_sqdmull2_laneq<mode>): Emit
20330 aarch64_sqdmull2_laneq<mode>_internal insn.
20331 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20332 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20333 of 3rd argument to int16x4_t.
20334 (vqdmlalh_lane_s16): Likewise.
20335 (vqdmlslh_lane_s16): Likewise.
20336 (vqdmull_high_lane_s16): Likewise.
20337 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20338 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20339 (vqdmlsl_lane_s16): Likewise.
20340 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20341 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20342 (vqdmlals_lane_s32): Likewise.
20343 (vqdmlsls_lane_s32): Likewise.
20344 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20345 (vqdmulls_lane_s32): Likewise.
20346 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20347 (vqdmlsl_lane_s32): Likewise.
20348 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20349 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20350 (vqrdmulhh_lane_s16): Likewise.
20351 (vqdmlsl_high_lane_s16): Likewise.
20352 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20353 (vqdmlsl_high_lane_s32): Likewise.
20354 (vqrdmulhs_lane_s32): Likewise.
20355
20356 2014-06-20 Tom de Vries <tom@codesourcery.com>
20357
20358 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20359 get_call_reg_set_usage.
20360
20361 2014-06-20 Tom de Vries <tom@codesourcery.com>
20362
20363 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20364 it contains all call_used_regs.
20365
20366 2014-06-20 Tom de Vries <tom@codesourcery.com>
20367
20368 * final.c (collect_fn_hard_reg_usage): Add and use variable
20369 function_used_regs.
20370
20371 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20372
20373 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20374 (set_init_priority, get_init_priority, set_fini_priority,
20375 get_fini_priority): New methods.
20376 * tree.c (init_priority_for_decl): Remove.
20377 (init_ttree): Do not initialize init priority.
20378 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20379 (decl_priority_info): Remove.
20380 (decl_init_priority_insert): Rewrite.
20381 (decl_fini_priority_insert): Rewrite.
20382 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20383 tree_priority_map_marked_p): Remove.
20384 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20385 * lto-streamer-out.c (hash_tree): Do not hash priorities.
20386 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20387 not output priorities.
20388 (pack_ts_function_decl_value_fields): Likewise.
20389 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20390 not input priorities.
20391 (unpack_ts_function_decl_value_fields): Likewise.
20392 * symtab.c (symbol_priority_map): Declare.
20393 (init_priority_hash): Declare.
20394 (symtab_unregister_node): Unregister from priority hash, too.
20395 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20396 New methods.
20397 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20398 (symbol_priority_info): New function.
20399 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20400 New methods.
20401 * tree-core.h (tree_priority_map): Remove.
20402
20403 2014-06-20 Jakub Jelinek <jakub@redhat.com>
20404
20405 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20406 0xff to uint64_t before shifting it up.
20407
20408 2014-06-20 Julian Brown <julian@codesourcery.com>
20409 Chung-Lin Tang <cltang@codesourcery.com>
20410
20411 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20412 TARGET_THUMB1_ONLY. Add comments.
20413
20414 2014-06-19 Tom de Vries <tom@codesourcery.com>
20415
20416 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20417 return type to void.
20418 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20419
20420 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20421
20422 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20423 as "move", from depends_on.
20424
20425 2014-06-19 Terry Guo <terry.guo@arm.com>
20426
20427 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20428 stage.
20429
20430 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20431
20432 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20433 Remove cr5.
20434 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
20435
20436 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
20437
20438 PR target/61550
20439 * config/sh/sh.c (prepare_move_operands): Don't process TLS
20440 addresses here if reload in progress or completed.
20441
20442 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20443
20444 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20445 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20446 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20447 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20448 (mips_register_priority): New function that implements the target
20449 hook TARGET_REGISTER_PRIORITY.
20450 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20451 (mips_lra_p): Likewise for TARGET_LRA_P.
20452 (TARGET_REGISTER_PRIORITY): Define macro.
20453 (TARGET_SPILL_CLASS): Likewise.
20454 (TARGET_LRA_P): Likewise.
20455 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20456 classes.
20457 (REG_CLASS_NAMES): Likewise.
20458 (REG_CLASS_CONTENTS): Likewise.
20459 (BASE_REG_CLASS): Use M16_SP_REGS.
20460 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20461 New set attribute to enable alternatives depending on the register
20462 allocator used.
20463 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20464 (*lea64): Disable pattern for MIPS16.
20465 * config/mips/mips.opt (mlra): New option.
20466
20467 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20468
20469 * lra-constraints.c (base_to_reg): New function.
20470 (process_address): Use new function.
20471
20472 2014-06-18 Tom de Vries <tom@codesourcery.com>
20473
20474 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20475 * config/aarch64/aarch64.c
20476 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20477 (aarch64_emit_call_insn): New function.
20478 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20479 of emit_call_insn.
20480 * config/aarch64/aarch64.md (define_expand "call_internal")
20481 (define_expand "call_value_internal", define_expand "sibcall_internal")
20482 (define_expand "sibcall_value_internal"): New.
20483 (define_expand "call", define_expand "call_value")
20484 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20485 expand variant and aarch64_emit_call_insn.
20486
20487 2014-06-18 Radovan Obradovic <robradovic@mips.com>
20488 Tom de Vries <tom@codesourcery.com>
20489
20490 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20491 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20492 Redefine to true.
20493 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
20494 clobbers to CALL_INSN_FUNCTION_USAGE.
20495 (define_expand "sibcall_internal")
20496 (define_expand "sibcall_value_internal"): New.
20497 (define_expand "call", define_expand "call_value"): Add argument to
20498 arm_emit_call_insn.
20499 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20500 (define_expand "sibcall_value"): Use sibcall_value_internal and
20501 arm_emit_call_insn.
20502
20503 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20504
20505 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20506
20507 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20508
20509 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20510 __udivmoddi4.
20511
20512 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20513
20514 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20515 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20516 annotations. Fix DWARF information.
20517
20518 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20519
20520 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20521 __udivmoddi4, and fixups for negative operands.
20522
20523 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20524
20525 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20526
20527 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20528
20529 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20530 to __udivmoddi4.
20531
20532 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20533
20534 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20535 manipulation.
20536
20537 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20538
20539 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20540 describing register usage on function entry and exit.
20541
20542 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20543
20544 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20545 (__aeabi_ldivmod): Fix whitespace.
20546
20547 2014-06-18 Andreas Schwab <schwab@suse.de>
20548
20549 * doc/md.texi (Standard Names): Use @itemx for grouped items.
20550 Remove blank line after @item.
20551
20552 2014-06-18 Richard Henderson <rth@redhat.com>
20553
20554 PR target/61545
20555 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20556
20557 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20558
20559 * config/arm/arm.c (neon_vector_mem_operand): Allow register
20560 POST_MODIFY for neon loads and stores.
20561 (arm_print_operand): Output post-index register for neon loads and
20562 stores.
20563
20564 2014-06-18 Richard Biener <rguenther@suse.de>
20565
20566 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20567
20568 2014-06-18 Richard Biener <rguenther@suse.de>
20569
20570 * tree-pass.h (make_pass_dce_loop): Remove.
20571 * passes.def: Replace pass_dce_loop with pass_dce.
20572 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20573 changed free niter estimates and reset the scev cache.
20574 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20575 make_pass_dce_loop): Remove.
20576 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20577 (fini_copy_prop): Return whether something changed. Always
20578 let substitute_and_fold perform DCE and free niter estimates
20579 and reset the scev cache if so.
20580 (execute_copy_prop): If sth changed schedule cleanup-cfg.
20581 (pass_data_copy_prop): Do not unconditionally schedule
20582 cleanup-cfg or update-ssa.
20583
20584 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
20585
20586 PR tree-optimization/61518
20587 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20588 reduction var is used in reduction stmt or phi-function only.
20589
20590 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20591
20592 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20593
20594 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
20595
20596 PR tree-optimization/61517
20597 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20598 whose rhs's first tree is the source expression instead of the
20599 expression itself.
20600 (find_bswap_or_nop): Likewise.
20601 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20602 gimple stmt whose rhs's first tree is the source. In the memory source
20603 case, move the stmt to be replaced close to one of the original load to
20604 avoid the problem of a store between the load and the stmt's original
20605 location.
20606 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20607 signature.
20608
20609 2014-06-18 Andreas Schwab <schwab@suse.de>
20610
20611 PR rtl-optimization/54555
20612 * postreload.c (move2add_use_add2_insn): Substitute
20613 STRICT_LOW_PART only if it is cheaper.
20614
20615 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
20616
20617 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20618 Do not use unspec as call operand. Use memory_operand instead of
20619 memory_nox32_operand and add "m" operand constraint. Disable
20620 pattern for TARGET_X32.
20621 (*sibcall_pop_memory): Ditto.
20622 (*sibcall_value_memory): Ditto.
20623 (*sibcall_value_pop_memory): Ditto.
20624 (sibcall peepholes): Merge SImode and DImode patterns using
20625 W mode iterator. Use memory_operand instead of memory_nox32_operand.
20626 Disable pattern for TARGET_X32. Check if eliminated register is
20627 really dead after call insn. Generate call RTX without unspec operand.
20628 (sibcall_value peepholes): Ditto.
20629 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
20630 instead of memory_nox32_operand. Check if eliminated register is
20631 really dead after call insn. Generate call RTX without unspec operand.
20632 (sibcall_value_pop peepholes): Ditto.
20633 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20634
20635 2014-06-18 Terry Guo <terry.guo@arm.com>
20636
20637 PR target/61544
20638 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20639 reach the head.
20640
20641 2014-06-18 Olivier Hainque <hainque@adacore.com>
20642
20643 * tree-core.h (tree_block): Add an "end_locus" field, allowing
20644 memorization of the end of block source location.
20645 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20646 * gimplify.c (gimplify_bind_expr): Propagate the block start and
20647 end source location info we have on the block entry/exit code we
20648 generate.
20649
20650 2014-06-18 Richard Biener <rguenther@suse.de>
20651
20652 * common.opt (fssa-phiopt): New option.
20653 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20654 but not with -Og.
20655 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20656 * doc/invoke.texi (-fssa-phiopt): Document.
20657
20658 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20659
20660 * genattrtab.c (n_bypassed): New variable.
20661 (process_bypasses): Initialise n_bypassed.
20662 Count number of bypassed reservations.
20663 (make_automaton_attrs): Allocate space for bypassed reservations
20664 rather than number of bypasses.
20665
20666 2014-06-18 Richard Biener <rguenther@suse.de>
20667
20668 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20669 we propagated anything.
20670 (substitute_and_fold_dom_walker::before_dom_children): Something
20671 changed if we propagated into PHI arguments.
20672 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20673 we removed a stmt.
20674
20675 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
20676
20677 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20678 vector case.
20679 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20680 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20681 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20682 Introduces alternative way of loads group permutaions.
20683 (vect_transform_grouped_load): Try alternative way of permutations.
20684
20685 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20686
20687 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20688 changed in ORT_TARGET region, don't jump to do_outer.
20689 (struct gimplify_adjust_omp_clauses_data): New type.
20690 (gimplify_adjust_omp_clauses_1): Adjust for data being
20691 a struct gimplify_adjust_omp_clauses_data pointer instead
20692 of tree *. Pass pre_p as a new argument to
20693 lang_hooks.decls.omp_finish_clause hook.
20694 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20695 splay_tree_foreach to pass both list_p and pre_p.
20696 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20697 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20698 gimplify_adjust_omp_clauses callers.
20699 * langhooks.c (lhd_omp_finish_clause): New function.
20700 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20701 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20702 * langhooks.h (struct lang_hooks_for_decls): Add a new
20703 gimple_seq * argument to omp_finish_clause hook.
20704 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20705 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20706 (scan_omp_parallel, lower_omp_for): When adding
20707 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20708 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20709 * tree-nested.c (convert_nonlocal_omp_clauses,
20710 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20711 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20712
20713 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
20714
20715 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20716 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20717
20718 2014-06-17 Xinliang David Li <davidxl@google.com>
20719
20720 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20721 * passes.c (pass_init_dump_file): Do not set initialize
20722 flag to false unconditionally.
20723
20724 2014-06-17 Richard Biener <rguenther@suse.de>
20725
20726 * genopinit.c (main): Use vec<>::qsort method.
20727 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20728 Likewise.
20729 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20730
20731 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
20732
20733 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20734 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20735 (mips_move_to_gpr_cost): Remove ST_REGS case.
20736 (mips_move_from_gpr_cost): Likewise.
20737 (mips_register_move_cost): Likewise.
20738 (mips_secondary_reload_class): Likewise.
20739
20740 2014-06-17 Richard Biener <rguenther@suse.de>
20741
20742 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20743 (pass_all_optimizations): Move 3rd copy-prop pass from after
20744 fre to before ifcombine/phiopt.
20745
20746 2014-06-17 Richard Biener <rguenther@suse.de>
20747
20748 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20749 and allow all blocks to be forwarders.
20750
20751 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
20752
20753 PR target/61483
20754 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20755 variable 'size'; calculate 'size' right in the front; use
20756 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20757 pcum->aapcs_stack_words.
20758
20759 2014-06-17 Nick Clifton <nickc@redhat.com>
20760
20761 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20762 (umulhi3, mulsidi3, umulsidi3): Likewise.
20763
20764 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
20765
20766 PR middle-end/61508
20767 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20768 check for section name.
20769
20770 2014-06-17 Richard Biener <rguenther@suse.de>
20771
20772 * tree-ssa-propagate.c: Include domwalk.h.
20773 (substitute_and_fold): Outline main worker into a domwalker ...
20774 (substitute_and_fold_dom_walker::before_dom_children): ... here.
20775 Schedule stmts we can fully propagate for removal. Remove
20776 poor-mans DCE.
20777 (substitute_and_fold): Apply a dominator walk to perform
20778 substitution. Process stmts scheduled for removal here.
20779
20780 2014-06-17 Richard Biener <rguenther@suse.de>
20781
20782 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20783 of PHI node moving.
20784
20785 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20786
20787 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20788 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20789 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20790 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20791 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20792 TARGET_HARD_FLOAT.
20793 (get_fpscr) : Likewise.
20794
20795 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20796
20797 PR rtl-optimization/61325
20798 * lra-constraints.c (valid_address_p): Add forward declaration.
20799 (simplify_operand_subreg): Check address validity before and after
20800 alter_reg of memory subreg.
20801
20802 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
20803
20804 * config/i386/i386.c (decide_alg): Correctly handle
20805 maximum size of stringop algorithm.
20806
20807 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20808
20809 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20810
20811 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20812
20813 PR rtl-optimization/61522
20814 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20815
20816 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
20817
20818 Revert:
20819 * symtab.c (symtab_node::reset_section): New method.
20820 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20821 for localization.
20822 * cgraph.h (reset_section): Declare.
20823 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20824 do not consider comdat locals.
20825 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20826 for new symbol.
20827 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20828 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20829 reset sections of symbols dragged out of the comdats.
20830 (function_and_variable_visibility): Reset sections of
20831 localized symbols.
20832
20833 2014-06-16 Richard Biener <rguenther@suse.de>
20834
20835 PR tree-optimization/61482
20836 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20837 [-INF(OVF), +INF(OVF)] range.
20838
20839 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20840
20841 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20842 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20843 handling 32-bit multiplication.
20844
20845 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
20846
20847 PR middle-end/61430
20848 * lra-lives.c (process_bb_lives): Skip creating copy during
20849 insn scan when src/dest has constrained to same regno.
20850
20851 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20852
20853 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20854 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20855
20856 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20857
20858 * asan.c (check_func): New function.
20859 (maybe_create_ssa_name): Likewise.
20860 (build_check_stmt_with_calls): Likewise.
20861 (use_calls_p): Likewise.
20862 (report_error_func): Change interface.
20863 (build_check_stmt): Allow non-integer lengths; add support
20864 for new parameter.
20865 (asan_instrument): Likewise.
20866 (instrument_mem_region_access): Moved code to build_check_stmt.
20867 (instrument_derefs): Likewise.
20868 (instrument_strlen_call): Likewise.
20869 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20870 * doc/invoke.texi: Describe new parameter.
20871 * params.def: Define new parameter.
20872 * params.h: Likewise.
20873 * sanitizer.def: Describe new builtins.
20874
20875 2014-06-16 Richard Biener <rguenther@suse.de>
20876
20877 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20878 Make all defs available at the end.
20879 (eliminate): If we remove a PHI node schedule cfg-cleanup.
20880
20881 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20882
20883 PR plugins/45078
20884 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20885
20886 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
20887
20888 PR bootstrap/61516
20889 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20890 initialization. Replace remaining use of uid.
20891
20892 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20893
20894 * c-family/c-common.c (handle_tls_model_attribute): Use
20895 set_decl_tls_model.
20896 * c-family/c-common.c (handle_tls_model_attribute): Use
20897 set_decl_tls_model.
20898 * cgraph.h (struct varpool_node): Add tls_model.
20899 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20900 * tree.h (DECL_TLS_MODEL): Update.
20901 (DECL_THREAD_LOCAL_P): Check that variable is static.
20902 (decl_tls_model): Declare.
20903 (set_decl_tls_model): Declare.
20904 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20905 set symbol prorperties.
20906 (get_emutls_init_templ_addr): Cleanup.
20907 (new_emutls_decl): Update.
20908 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20909 (lto_input_varpool_node): Likewise.
20910 * lto-streamer-out.c (hash_tree): Likewise.
20911 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20912 not stream DECL_TLS_MODEL.
20913 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20914 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20915
20916 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20917
20918 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20919
20920 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20921
20922 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20923 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20924 lists.
20925 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20926 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20927 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20928 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20929 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20930 (df_get_artificial_defs, df_get_artificial_uses)
20931 (df_single_def, df_single_use): Update accordingly.
20932 (df_refs_chain_dump): Take the first element in a linked list as
20933 parameter, rather than a pointer to an array of pointers.
20934 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20935 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20936 (df_chain_create_bb_process_use): Likewise.
20937 (df_md_bb_local_compute_process_def): Likewise.
20938 * fwprop.c (process_defs, process_uses): Likewise.
20939 (register_active_defs, update_uses): Likewise.
20940 (forward_propagate_asm): Update for new df_ref linking.
20941 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20942 (df_null_ref_rec, df_null_mw_rec): Likewise.
20943 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20944 explicitly.
20945 (df_scan_free_bb_info): Remove check for null artificial_defs.
20946 (df_install_ref_incremental): Adjust for new df_ref linking.
20947 Use a single-element insertion rather than a full sort.
20948 (df_ref_chain_delete_du_chain): Take the first element
20949 in a linked list as parameter, rather than a pointer to an array of
20950 pointers.
20951 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20952 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20953 (df_insn_info_delete): Remove check for null defs and call to
20954 df_scan_free_mws_vec.
20955 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20956 null rather than df_null_*_rec.
20957 (df_insn_rescan_debug_internal): Likewise, and update null
20958 checks in the same way. Remove check for null defs.
20959 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20960 Move a single element rather doing a full sort.
20961 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
20962 linking.
20963 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
20964 Initialize df_ref and df_mw_hardreg lists to null rather than
20965 df_null_*_rec.
20966 (df_ref_compare): Take df_refs as parameter, transferring the
20967 old interface to...
20968 (df_ref_ptr_compare): ...this new function.
20969 (df_sort_and_compress_refs): Update accordingly.
20970 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
20971 old interface to...
20972 (df_mw_ptr_compare): ...this new function.
20973 (df_sort_and_compress_mws): Update accordingly.
20974 (df_install_refs, df_install_mws): Return a linked list rather than
20975 an array of pointers.
20976 (df_refs_add_to_chains): Assert that old lists are empty rather
20977 than freeing them.
20978 (df_insn_refs_verify): Don't handle null defs speciailly.
20979 * web.c (union_match_dups): Update for new df_ref linking.
20980
20981 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20982
20983 * df.h (df_ref_create, df_ref_remove): Delete.
20984 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20985 (df_ref_remove): Likewise.
20986
20987 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20988
20989 * df.h (df_single_def, df_single_use): New functions.
20990 * ira.c (find_moveable_pseudos): Use them.
20991
20992 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20993
20994 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20995 * df-problems.c (df_note_bb_compute): Use it.
20996 * regstat.c (regstat_bb_compute_ri): Likewise.
20997
20998 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20999
21000 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21001 * cse.c (cse_extended_basic_block): Use them.
21002 * dce.c (mark_artificial_use): Likewise.
21003 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21004 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21005 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21006 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21007 (df_simulate_initialize_backwards): Likewise.
21008 (df_simulate_finalize_backwards): Likewise.
21009 (df_simulate_initialize_forwards): Likewise.
21010 (df_md_simulate_artificial_defs_at_top): Likewise.
21011 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21012 * regrename.c (init_rename_info): Likewise.
21013 * regstat.c (regstat_bb_compute_ri): Likewise.
21014 (regstat_bb_compute_calls_crossed): Likewise.
21015
21016 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21017
21018 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21019 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21020 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21021 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21022 * combine.c (create_log_links): Likewise.
21023 * compare-elim.c (find_flags_uses_in_insn): Likewise.
21024 (try_eliminate_compare): Likewise.
21025 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21026 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21027 (remove_reg_equal_equiv_notes_for_defs): Likewise.
21028 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21029 (word_dce_process_block, dce_process_block): Likewise.
21030 * ddg.c (def_has_ccmode_p): Likewise.
21031 * df-core.c (df_bb_regno_first_def_find): Likewise.
21032 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21033 * df-problems.c (df_rd_simulate_one_insn): Likewise.
21034 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21035 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21036 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21037 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21038 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21039 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21040 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21041 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21042 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21043 * fwprop.c (local_ref_killed_between_p): Likewise.
21044 (all_uses_available_at, free_load_extend): Likewise.
21045 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21046 * hw-doloop.c (scan_loop): Likewise.
21047 * ifcvt.c (dead_or_predicable): Likewise.
21048 * init-regs.c (initialize_uninitialized_regs): Likewise.
21049 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21050 (process_bb_node_lives): Likewise.
21051 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21052 (find_moveable_pseudos): Likewise.
21053 * loop-invariant.c (check_dependencies, record_uses): Likewise.
21054 * recog.c (peep2_find_free_register): Likewise.
21055 * ree.c (get_defs): Likewise.
21056 * regstat.c (regstat_bb_compute_ri): Likewise.
21057 (regstat_bb_compute_calls_crossed): Likewise.
21058 * sched-deps.c (find_inc, find_mem): Likewise.
21059 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21060 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21061 * shrink-wrap.c (requires_stack_frame_p): Likewise.
21062 (prepare_shrink_wrap): Likewise.
21063 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21064 * web.c (union_defs, pass_web::execute): Likewise.
21065 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21066 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21067
21068 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
21069
21070 * lra-assign.c (assign_by_spills): Add code to assign vector regs
21071 to inheritance pseudos.
21072 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21073
21074 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
21075
21076 PR target/61415
21077 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21078 (BU_MISC_2): Rename to ...
21079 (BU_LDBL128_2): ... this.
21080 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21081 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21082 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21083 RS6000_BTM_LDBL128.
21084 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21085 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21086 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21087 (unpacktf_1): Likewise.
21088 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21089 (__builtin_longdouble_dw1): Likewise.
21090 * doc/sourcebuild.texi (longdouble128): Document.
21091
21092 2014-06-13 Jeff Law <law@redhat.com>
21093
21094 PR rtl-optimization/61094
21095 PR rtl-optimization/61446
21096 * ree.c (combine_reaching_defs): Get the mode for the copy from
21097 the extension insn rather than the defining insn.
21098
21099 2014-06-13 Dehao Chen <dehao@google.com>
21100
21101 * dwarf2out.c (add_linkage_name): Emit more linkage name.
21102
21103 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
21104
21105 * doc/install.texi (--enable-linker-plugin-configure-flags)
21106 (--enable-linker-plugin-flags): Document new flags.
21107
21108 2014-06-13 Martin Jambor <mjambor@suse.cz>
21109
21110 PR ipa/61186
21111 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21112 cache_token if returning early.
21113
21114 2014-06-13 Nick Clifton <nickc@redhat.com>
21115
21116 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21117 requested alignment is active.
21118 (LABEL_ALIGN): Likewise.
21119 (LOOP_ALIGN): Likewise.
21120
21121 2014-06-13 Richard Biener <rguenther@suse.de>
21122
21123 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21124 Rewrite to propagate the VN result into all uses where
21125 possible and to remove stmts becoming dead because of that.
21126 (eliminate): Generalize stmt removal handling, remove in
21127 reverse dominator order to support proper debug stmt
21128 generation. Update stmts before removing stmts.
21129 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21130
21131 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21132
21133 PR tree-optimization/61375
21134 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21135 symbolic number cannot be represented in an uint64_t.
21136 (find_bswap_or_nop_1): Likewise.
21137
21138 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21139
21140 * symtab.c (symtab_node::reset_section): New method.
21141 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21142 for localization.
21143 * cgraph.h (reset_section): Declare.
21144 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21145 do not consider comdat locals.
21146 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21147 for new symbol.
21148 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21149 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21150 reset sections of symbols dragged out of the comdats.
21151 (function_and_variable_visibility): Reset sections of
21152 localized symbols.
21153
21154 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21155
21156 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21157 to use symtab and decl_binds_to_current_def_p
21158 * tree-vectorizer.c (increase_alignment): Increase alignment
21159 of alias target, too.
21160
21161 2014-06-12 Jakub Jelinek <jakub@redhat.com>
21162
21163 PR middle-end/61486
21164 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21165 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21166 if outer combined construct is distribute.
21167 (gimplify_omp_for): For OMP_DISTRIBUTE set
21168 gimplify_omp_ctxp->distribute.
21169 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21170 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21171 mapping into decl map.
21172
21173 2014-06-12 Jason Merrill <jason@redhat.com>
21174
21175 * common.opt (fabi-version): Change default to 0.
21176
21177 2014-06-12 Jason Merrill <jason@redhat.com>
21178
21179 * toplev.c (process_options): Reject -fabi-version=1.
21180
21181 2014-06-12 Jeff Law <law@redhat.com>
21182
21183 PR tree-optimization/61009
21184 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21185 value when we stop processing a block due to problematic PHIs.
21186
21187 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
21188
21189 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21190 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21191 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21192 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21193 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21194 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21195 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21196 are not in the spec.
21197
21198 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
21199
21200 PR target/59843
21201 * config/aarch64/aarch64-modes.def: Add V1DFmode.
21202 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21203 Support V1DFmode.
21204
21205 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
21206
21207 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21208
21209 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
21210
21211 PR target/61443
21212 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21213 loading from address spaces.
21214
21215 2014-06-12 Martin Liska <mliska@suse.cz>
21216
21217 PR ipa/61462
21218 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21219 statement is reachable.
21220
21221 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21222
21223 * symtab.c (section_hash): New hash.
21224 (symtab_unregister_node): Clear section before freeing.
21225 (hash_section_hash_entry): New haser.
21226 (eq_sections): New function.
21227 (symtab_node::set_section_for_node): New method.
21228 (set_section_1): Update.
21229 (symtab_node::set_section): Take string instead of tree as parameter.
21230 (symtab_resolve_alias): Update.
21231 * cgraph.h (section_hash_entry_d): New structure.
21232 (section_hash_entry): New typedef.
21233 (cgraph_node): Change comdat_group_ to x_comdat_group,
21234 change section_ to x_section and turn into section_hash_entry;
21235 update accestors; put set_section_for_node offline.
21236 * tree.c (decl_section_name): Turn into string.
21237 (set_decl_section_name): Change parameter to be string.
21238 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21239 * sdbout.c (sdbout_one_type): Update.
21240 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21241 * varasm.c (IN_NAMED_SECTION, get_named_section,
21242 resolve_unique_section, hot_function_section, get_named_text_section,
21243 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21244 make_decl_rtl, default_unique_section): Update.
21245 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21246 (c6x_elf_unique_section): Update.
21247 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21248 * config/pa/pa.c (pa_function_section): Update.
21249 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21250 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21251 * config/arc/arc.c (arc_in_small_data_p): Update.
21252 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21253 * config/mcore/mcore.c (mcore_unique_section): Update.
21254 * config/mips/mips.c (mips16_build_function_stub): Update.
21255 (mips16_build_call_stub): Update.
21256 (mips_function_rodata_section): Update.
21257 (mips_in_small_data_p): Update.
21258 * config/score/score.c (score_in_small_data_p): Update.
21259 * config/rx/rx.c (rx_in_small_data): Update.
21260 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21261 (rs6000_xcoff_asm_named_section): Update.
21262 (rs6000_xcoff_unique_section): Update.
21263 * config/frv/frv.c (frv_string_begins_with): Update.
21264 (frv_in_small_data_p): Update.
21265 * config/v850/v850.c (v850_encode_data_area): Update.
21266 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21267 (bfin_handle_l1_data_attribute): Update.
21268 (bfin_handle_l2_attribute): Update.
21269 * config/mep/mep.c (mep_unique_section): Update.
21270 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21271 Update.
21272 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21273 (h8300_handle_tiny_data_attribute): Update.
21274 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21275 (m32r_in_small_data_p): Update.
21276 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21277 * config/i386/i386.c (ix86_in_large_data_p): Update.
21278 * config/i386/winnt.c (i386_pe_unique_section): Update.
21279 * config/darwin.c (darwin_function_section): Update.
21280 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21281 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21282 (new_emutls_decl): Update.
21283 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21284 input_varpool_node): Update.
21285 (ead_string_cst): Turn to ...
21286 (read_string): ... this one.
21287 * dwarf2out.c (secname_for_decl): Update.
21288 * asan.c (asan_protect_global): Update.
21289
21290 2014-06-11 DJ Delorie <dj@redhat.com>
21291
21292 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21293 cache lines.
21294 * config/rx/rx.c (rx_option_override): Likewise.
21295 (rx_align_for_label): Likewise.
21296
21297 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21298
21299 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
21300
21301 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21302 prototype.
21303
21304 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21305
21306 * common.md: New file.
21307 * doc/md.texi: Update description of generic, machine-independent
21308 constraints.
21309 * config/s390/constraints.md (e): Delete.
21310 * Makefile.in (md_file): Include common.md.
21311 * config/m32c/t-m32c (md_file): Likewise.
21312 * genpreds.c (general_mem): New array.
21313 (generic_constraint_letters): Remove constraints now defined by
21314 common.md.
21315 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21316 Allow the first character to be '<' or '>' as well.
21317 * genoutput.c (general_mem): New array.
21318 (indep_constraints): Remove constraints now defined by common.md.
21319 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21320 Remove special handling of 'm'.
21321 * ira-costs.c (record_reg_classes): Remove special handling of
21322 constraints now defined by common.md.
21323 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21324 * ira-lives.c (single_reg_class): Likewise.
21325 (ira_implicitly_set_insn_hard_regs): Likewise.
21326 * lra-constraints.c (reg_class_from_constraints): Likewise.
21327 (process_alt_operands, process_address, curr_insn_transform): Likewise.
21328 * postreload.c (reload_cse_simplify_operands): Likewise.
21329 * reload.c (push_secondary_reload, scratch_reload_class)
21330 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21331 * reload1.c (maybe_fix_stack_asms): Likewise.
21332 * targhooks.c (default_secondary_reload): Likewise.
21333 * stmt.c (parse_output_constraint): Likewise.
21334 * recog.c (preprocess_constraints): Likewise.
21335 (constrain_operands, peep2_find_free_register): Likewise.
21336 (asm_operand_ok): Likewise, but add a comment saying why 'o'
21337 must be handled specially.
21338
21339 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21340
21341 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21342 * genpreds.c (have_const_dbl_constraints): Delete.
21343 (add_constraint): Don't set it.
21344 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21345 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21346 constraints using the lookup_constraint logic.
21347 * ira-lives.c (single_reg_class): Likewise.
21348 * ira.c (ira_setup_alts): Likewise.
21349 * lra-constraints.c (process_alt_operands): Likewise.
21350 * recog.c (asm_operand_ok, constrain_operands): Likewise.
21351 * reload.c (find_reloads): Likewise.
21352
21353 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21354
21355 * genpreds.c (const_int_start, const_int_end): New variables.
21356 (choose_enum_order): Output CONST_INT constraints before memory
21357 constraints.
21358 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21359 Add CT_CONST_INT.
21360 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21361 * ira.c (ira_setup_alts): Likewise.
21362 * lra-constraints.c (process_alt_operands): Likewise.
21363 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21364 * reload.c (find_reloads): Likewise.
21365
21366 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21367
21368 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21369 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
21370 * recog.c (preprocess_constraints): Update accordingly.
21371
21372 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21373
21374 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21375 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21376 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21377 * genpreds.c (print_type_tree): New function.
21378 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21379 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21380 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21381 Write out enum constraint_type and get_constraint_type.
21382 * lra-constraints.c (satisfies_memory_constraint_p): Take a
21383 constraint_num rather than a constraint string.
21384 (satisfies_address_constraint_p): Likewise.
21385 (reg_class_from_constraints): Avoid old constraint macros.
21386 (process_alt_operands, process_address_1): Likewise.
21387 (curr_insn_transform): Likewise.
21388 * ira-costs.c (record_reg_classes): Likewise.
21389 (record_operand_costs): Likewise.
21390 * ira-lives.c (single_reg_class): Likewise.
21391 (ira_implicitly_set_insn_hard_regs): Likewise.
21392 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21393 * postreload.c (reload_cse_simplify_operands): Likewise.
21394 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21395 (constrain_operands, peep2_find_free_register): Likewise.
21396 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21397 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21398 * reload1.c (maybe_fix_stack_asms): Likewise.
21399 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21400 * targhooks.c (default_secondary_reload): Likewise.
21401 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21402 to EXTRA_CONSTRAINT_STR.
21403 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21404
21405 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21406
21407 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21408 (write_constraint_satisfied_p_array): ...this new function.
21409 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21410 an array.
21411 (write_insn_preds_c): Update accordingly.
21412
21413 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21414
21415 * genpreds.c (write_lookup_constraint): Rename to...
21416 (write_lookup_constraint_1): ...this.
21417 (write_lookup_constraint_array): New function.
21418 (write_tm_preds_h): Define lookup_constraint as an inline function
21419 that uses write_lookup_constraint_array where possible.
21420 (write_insn_preds_c): Update for the changes above.
21421
21422 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21423
21424 * doc/md.texi (regclass_for_constraint): Rename to...
21425 (reg_class_for_constraint): ...this.
21426 * genpreds.c (num_constraints, enum_order, register_start)
21427 (register_end, satisfied_start, memory_start, memory_end)
21428 (address_start, address_end): New variables.
21429 (add_constraint): Count the number of constraints.
21430 (choose_enum_order): New function.
21431 (write_enum_constraint_num): Iterate over enum_order.
21432 (write_regclass_for_constraint): Rename to...
21433 (write_reg_class_for_constraint_1): ...this and update output
21434 accordingly.
21435 (write_constraint_satisfied_p): Rename to...
21436 (write_constraint_satisfied_p_1): ...this and update output
21437 accordingly. Do nothing if all extra constraints are register
21438 constraints.
21439 (write_insn_extra_memory_constraint): Delete.
21440 (write_insn_extra_address_constraint): Delete.
21441 (write_range_function): New function.
21442 (write_tm_preds_h): Define constraint_satisfied_p and
21443 reg_class_for_constraint as inline functions that do a range check
21444 before calling the out-of-line function. Use write_range_function
21445 to implement insn_extra_{register,memory,address}_constraint,
21446 the first of which is new.
21447 (write_insn_preds_c): Update after above changes to write_* functions.
21448 (main): Call choose_enum_order.
21449
21450 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21451
21452 PR tree-optimization/61306
21453 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21454 expression instead of its size.
21455 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21456 false to prevent optimization when the result is unpredictable due to
21457 arithmetic right shift of signed type with highest byte is set.
21458 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21459 (init_symbolic_number): Likewise.
21460 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21461 when the result is unpredictable due to sign extension.
21462
21463 2014-06-11 Terry Guo <terry.guo@arm.com>
21464
21465 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21466 (*thumb1_addsi3): Ditto.
21467 (*thumb_subdi3): Ditto.
21468 (thumb1_subsi3_insn): Ditto.
21469 (*thumb_mulsi3): Ditto.
21470 (*thumb_mulsi3_v6): Ditto.
21471 (*thumb1_andsi3_insn): Ditto.
21472 (thumb1_bicsi3): Ditto.
21473 (*thumb1_iorsi3_insn): Ditto.
21474 (*thumb1_xorsi3_insn): Ditto.
21475 (*thumb1_ashlsi3): Ditto.
21476 (*thumb1_ashrsi3): Ditto.
21477 (*thumb1_lshrsi3): Ditto.
21478 (*thumb1_rotrsi3): Ditto.
21479 (*thumb1_negdi2): Ditto.
21480 (*thumb1_negsi2): Ditto.
21481 (*thumb1_abssi2): Ditto.
21482 (*thumb1_neg_abssi2): Ditto.
21483 (*thumb1_one_cmplsi2): Ditto.
21484 (*thumb1_zero_extendhisi2): Ditto.
21485 (*thumb1_zero_extendqisi2): Ditto.
21486 (*thumb1_zero_extendqisi2_v6): Ditto.
21487 (thumb1_extendhisi2): Ditto.
21488 (thumb1_extendqisi2): Ditto.
21489 (*thumb1_movdi_insn): Ditto.
21490 (*thumb1_movsi_insn): Ditto.
21491 (*thumb1_movhi_insn): Ditto.
21492 (thumb_movhi_clobber): Ditto.
21493 (*thumb1_movqi_insn): Ditto.
21494 (*thumb1_movhf): Ditto.
21495 (*thumb1_movsf_insn): Ditto.
21496 (*thumb_movdf_insn): Ditto.
21497 (movmem12b): Ditto.
21498 (movmem8b): Ditto.
21499 (cbranchqi4): Ditto.
21500 (cbranchsi4_insn): Ditto.
21501 (cbranchsi4_scratch): Ditto.
21502 (*negated_cbranchsi4): Ditto.
21503 (*tbit_cbranch): Ditto.
21504 (*tlobits_cbranch): Ditto.
21505 (*tstsi3_cbranch): Ditto.
21506 (*cbranchne_decr1): Ditto.
21507 (*addsi3_cbranch): Ditto.
21508 (*addsi3_cbranch_scratch): Ditto.
21509 (*thumb_cmpdi_zero): Ditto.
21510 (cstoresi_eq0_thumb1): Ditto.
21511 (cstoresi_ne0_thumb1): Ditto.
21512 (*cstoresi_eq0_thumb1_insn): Ditto.
21513 (*cstoresi_ne0_thumb1_insn): Ditto.
21514 (cstoresi_nltu_thumb1): Ditto.
21515 (cstoresi_ltu_thumb1): Ditto.
21516 (thumb1_addsi3_addgeu): Ditto.
21517 (*thumb_jump): Ditto.
21518 (*call_reg_thumb1_v5): Ditto.
21519 (*call_reg_thumb1): Ditto.
21520 (*call_value_reg_thumb1_v5): Ditto.
21521 (*call_value_reg_thumb1): Ditto.
21522 (*call_insn): Ditto.
21523 (*call_value_insn): Ditto.
21524 (thumb1_casesi_internal_pic): Ditto.
21525 (thumb1_casesi_dispatch): Ditto.
21526 (*thumb1_indirect_jump): Ditto.
21527 (prologue_thumb1_interwork): Ditto.
21528 (*epilogue_insns): Ditto.
21529 (consttable_1): Ditto.
21530 (consttable_2): Ditto.
21531 (tablejump): Ditto.
21532 (*thumb1_tablejump): Ditto.
21533 (thumb_eh_return): Ditto.
21534 (define_peephole2): Two of them are thumb1 only and got moved into
21535 new file thumb1.md.
21536 (define_split): Six of them are thumb1 only and got moved into new
21537 file thumb1.md.
21538 * config/arm/thumb1.md: New file comprised of above thumb1 only
21539 patterns.
21540
21541 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21542
21543 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21544 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21545 dependencies.
21546 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21547 (aarch64_crc_builtin_datum): New struct.
21548 (aarch64_crc_builtin_data): New.
21549 (aarch64_init_crc32_builtins): New function.
21550 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21551 (aarch64_crc32_expand_builtin): New.
21552 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21553 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21554 __ARM_FEATURE_CRC32 when appropriate.
21555 (TARGET_CRC32): Define.
21556 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21557 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21558 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21559 (aarch64_<crc_variant>): New pattern.
21560 * config/aarch64/arm_acle.h: New file.
21561 * config/aarch64/iterators.md (CRC): New int iterator.
21562 (crc_variant, crc_mode): New int attributes.
21563 * doc/aarch64-acle-intrinsics.texi: New file.
21564 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21565 Include aarch64-acle-intrinsics.texi.
21566
21567 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
21568
21569 * tree-vect-data-refs.c (vect_grouped_store_supported): New
21570 check for stores group of length 3.
21571 (vect_permute_store_chain): New permutations for stores group of
21572 length 3.
21573 * tree-vect-stmts.c (vect_model_store_cost): Change cost
21574 of vec_perm_shuffle for the new permutations.
21575
21576 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21577
21578 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21579 table rewriting temporarily on targets not supporting ONE_ONLY.
21580
21581 2014-06-11 Richard Biener <rguenther@suse.de>
21582
21583 PR middle-end/61437
21584 Revert
21585 2014-06-04 Richard Biener <rguenther@suse.de>
21586
21587 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21588 TREE_PUBLIC and DECL_EXTERNAL decls.
21589
21590 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21591
21592 * varasm.c (set_implicit_section): New function.
21593 (resolve_unique_section): Use it to set implicit section
21594 for aliases, too.
21595 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21596 (default_function_section): Likewise.
21597 (decl_binds_to_current_def_p): Constify argument.
21598 * varasm.h (decl_binds_to_current_def_p): Update prototype.
21599 * asan.c (asan_protect_global): Use
21600 symtab_get_node (decl)->implicit_section.
21601 * symtab.c (dump_symtab_base): Dump implicit sections.
21602 (verify_symtab_base): Verify sanity of sectoins and comdats.
21603 (symtab_resolve_alias): Alias share the section of its target.
21604 (set_section_1): New function.
21605 (symtab_node::set_section): Move here, recurse to aliases.
21606 (verify_symtab): Check for duplicated symtab lists.
21607 * tree-core.h (implicit_section_name_p): Remove.
21608 * tree-vect-data-refs.c: Include varasm.h.
21609 (vect_can_force_dr_alignment_p): Fix conditional on when
21610 decl bints to current definition; use
21611 symtab_get_node (decl)->implicit_section.
21612 * cgraph.c (cgraph_make_node_local_1): Fix section set.
21613 * cgraph.h (struct symtab_node): Add implicit_section.
21614 (set_section): Rename to ...
21615 (set_section_for_node): ... this one.
21616 (set_section): Declare.
21617 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21618 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21619 input_overwrite_node, input_varpool_node): Stream implicit_section.
21620 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21621 removal; it will fail in LTO.
21622
21623 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21624
21625 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21626 Change second alternative type to f_mcr.
21627 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21628 and 12th alternatives' types to f_mcr and f_mrc.
21629 (*movdi_aarch64): Same for 12th and 13th alternatives.
21630 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21631 (aarch64_movtilow_tilow): Change type to fmov.
21632
21633 2014-06-10 Jiong Wang <jiong.wang@arm.com>
21634
21635 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21636 (aarch64_save_or_restore_callee_save_registers): Fix layout.
21637
21638 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21639
21640 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21641 New expander.
21642 (aarch64_sqrdmulh_lane<mode>): Likewise.
21643 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21644 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21645 (aarch64_sqdmulh_laneq<mode>): New expander.
21646 (aarch64_sqrdmulh_laneq<mode>): Likewise.
21647 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21648 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21649 (aarch64_sqdmulh_lane<mode>): New expander.
21650 (aarch64_sqrdmulh_lane<mode>): Likewise.
21651 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21652 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21653 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21654 (aarch64_sqdmlal_laneq<mode>): Likewise.
21655 (aarch64_sqdmlsl_lane<mode>): Likewise.
21656 (aarch64_sqdmlsl_laneq<mode>): Likewise.
21657 (aarch64_sqdmlal2_lane<mode>): Likewise.
21658 (aarch64_sqdmlal2_laneq<mode>): Likewise.
21659 (aarch64_sqdmlsl2_lane<mode>): Likewise.
21660 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21661 (aarch64_sqdmull_lane<mode>): Likewise.
21662 (aarch64_sqdmull_laneq<mode>): Likewise.
21663 (aarch64_sqdmull2_lane<mode>): Likewise.
21664 (aarch64_sqdmull2_laneq<mode>): Likewise.
21665
21666 2014-06-10 Richard Biener <rguenther@suse.de>
21667
21668 PR tree-optimization/61438
21669 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21670 (eliminate_dom_walker::before_dom_children): Only try to inhibit
21671 insertion of IVs if running PRE.
21672 (eliminate): Adjust.
21673 (pass_pre::execute): Likewise.
21674 (pass_fre::execute): Likewise.
21675
21676 2014-06-10 Richard Biener <rguenther@suse.de>
21677
21678 PR middle-end/61456
21679 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21680 Do not use the main variant for the type comparison.
21681 (ncr_compar): Likewise.
21682 (nonoverlapping_component_refs_p): Likewise.
21683
21684 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
21685
21686 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21687 REG_CFA_RESTORE mode.
21688
21689 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
21690
21691 * config/i386/i386.c (expand_vec_perm_pblendv): New.
21692 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21693 expand_vec_perm_pblendv.
21694
21695 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21696
21697 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21698 available.
21699 Simplify description of __crc32d and __crc32cd intrinsics.
21700 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21701 availability.
21702
21703 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
21704
21705 PR lto/61334
21706 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21707 * config.in: Regenerate.
21708 * configure: Likewise.
21709
21710 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21711
21712 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21713 and public vars.
21714 (intersect_static_var_sets): Remove.
21715 (propagate): Do not prune local statics.
21716
21717 2014-06-10 Jakub Jelinek <jakub@redhat.com>
21718
21719 PR fortran/60928
21720 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21721 Set lastprivate_firstprivate even if omp_private_outer_ref
21722 langhook returns true.
21723 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21724 langhook, call unshare_expr on new_var and call
21725 build_outer_var_ref to get the last argument.
21726
21727 2014-06-10 Marek Polacek <polacek@redhat.com>
21728
21729 PR c/60988
21730 * doc/extend.texi: Add cindex for transparent_union.
21731
21732 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21733
21734 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21735 init_symbolic_number ().
21736
21737 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
21738
21739 PR middle-end/61141
21740 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21741 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21742 (verify_rtl_sharing): Likewise.
21743
21744 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
21745
21746 PR c++/54442
21747 * tree.c (build_qualified_type): Use a canonical type for
21748 TYPE_CANONICAL.
21749
21750 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21751
21752 * config/arm/arm-modes.def: Remove XFmode.
21753
21754 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
21755
21756 PR target/61062
21757 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21758 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21759 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21760 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21761 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21762 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21763 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21764 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21765 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21766
21767 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
21768
21769 * tree-core.h (tree_decl_with_vis): Remove section_name.
21770
21771 2014-06-09 Kito Cheng <kito@0xlab.org>
21772
21773 * ira.c (ira): Don't call init_caller_save if LRA enabled
21774 since LRA use its own infrastructure to handle that.
21775
21776 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21777
21778 * symtab.c (dump_symtab_base): Update dumping.
21779 (symtab_make_decl_local): Clear only DECL_COMDAT.
21780 * tree-vect-data-refs.c (Check that variable is static before
21781 tampering with sections.
21782 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21783 (cgraph_create_virtual_clone): Likewise.
21784 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21785 (decl_section_name, set_decl_section_name): New accessors.
21786 (find_decls_types_r): Do not walk section name
21787 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21788 (decl_comdat_group, decl_comdat_group_id): Constify.
21789 (decl_section_name, set_decl_section_name): Update.
21790 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21791 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21792 (cgraph_make_node_local_1): Clear section and comdat group.
21793 * cgraph.h (set_comdat_group): Sanity check.
21794 (get_section, set_section): New.
21795 * ipa-comdats.c (ipa_comdats): Use get_section.
21796 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21797 * lto-streamer-out.c: Do not follow section names.
21798 * c-family/c-common.c (handle_section_attribute): Update.
21799 * lto-cgraph.c (lto_output_node): Output section.
21800 (lto_output_varpool_node): Likewise.
21801 (read_comdat_group): Rename to ...
21802 (read_identifier): ... this one.
21803 (read_string_cst): New function.
21804 (input_node, input_varpool_node): Input section names.
21805 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21806 (new_emutls_decl): Update.
21807 (secname_for_decl): Check section names only of static vars.
21808 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21809 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21810 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21811 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21812 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21813 * config/mcore/mcore.c (mcore_unique_section): Likewise.
21814 * config/mips/mips.c (mips16_build_function_stub): Likewise.
21815 * config/v850/v850.c (v850_insert_attributes): Likewise.
21816 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21817 Likewise.
21818 (h8300_handle_tiny_data_attribute): Likewise.
21819 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21820 (bfin_handle_l2_attribute): Likewise.
21821
21822 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21823
21824 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21825 remove static initializer.
21826
21827 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21828
21829 * varasm.c (use_blocks_for_decl_p): Check symbol table
21830 instead of alias attribute.
21831 (place_block_symbol): Recurse on aliases.
21832
21833 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21834
21835 * ipa-visibility.c: Include varasm.h
21836 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21837
21838 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21839
21840 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21841 outputting aliases.
21842
21843 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
21844
21845 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21846 from test_insn into GGC space escape via SET_SRC.
21847
21848 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
21849
21850 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21851 call statement, if any.
21852 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21853 statements, if any. Tidy up.
21854
21855 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21856
21857 PR target/61431
21858 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21859 iterators, VSX_D that handles 64-bit types, and VSX_LE that
21860 handles swapping the two 64-bit double words on little endian
21861 systems. Include V1TImode and optionally TImode in VSX_LE so that
21862 these types are properly swapped. Change all of the insns and
21863 splits that do the 64-bit swaps to use VSX_LE.
21864 (vsx_le_perm_load_<mode>): Likewise.
21865 (vsx_le_perm_store_<mode>): Likewise.
21866 (splitters for little endian memory operations): Likewise.
21867 (vsx_xxpermdi2_le_<mode>): Likewise.
21868 (vsx_lxvd2x2_le_<mode>): Likewise.
21869 (vsx_stxvd2x2_le_<mode>): Likewise.
21870
21871 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
21872
21873 PR target/61423
21874 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21875 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21876 and corresponding splitters. Zero extend general register
21877 or memory input operand to XMM temporary. Enable for
21878 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21879 (floatunssi<mode>2): Update expander predicate.
21880
21881 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
21882
21883 PR rtl-optimization/61325
21884 * lra-constraints.c (process_address_1): Check scale equal to one
21885 to prevent transformation: base + scale * index => base + new_reg.
21886
21887 2014-06-06 Richard Biener <rguenther@suse.de>
21888
21889 PR tree-optimization/59299
21890 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21891 a def operand.
21892 (nearest_common_dominator_of_uses): Likewise.
21893 (statement_sink_location): Adjust. Support sinking loads.
21894
21895 2014-06-06 Martin Jambor <mjambor@suse.cz>
21896
21897 * ipa-prop.c (get_place_in_agg_contents_list): New function.
21898 (build_agg_jump_func_from_list): Likewise.
21899 (determine_known_aggregate_parts): Renamed to
21900 determine_locally_known_aggregate_parts. Moved some functionality
21901 to the two functions above, removed bound checks.
21902
21903 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
21904
21905 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21906 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21907 (aarch64_progress_pointer): Likewise.
21908 (aarch64_copy_one_part_and_move_pointers): Likewise.
21909 (aarch64_expand_movmen): Likewise.
21910 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21911 * config/aarch64/aarch64.md (movmem<mode>): New.
21912
21913 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
21914
21915 * targhooks.c (default_add_stmt_cost): Call target specific
21916 hook instead of default one.
21917
21918 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
21919
21920 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21921 endianness instead of host endianness.
21922 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21923 comments.
21924
21925 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21926
21927 PR debug/53927
21928 * function.c (instantiate_decls): Process the saved static chain.
21929 (expand_function_start): If not optimizing, save the static chain
21930 onto the stack.
21931 * tree-nested.c (convert_all_function_calls): Always create the static
21932 chain for nested functions if not optimizing.
21933
21934 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21935
21936 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21937
21938 2014-06-06 Richard Biener <rguenther@suse.de>
21939
21940 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21941 (construct_init_block): Likewise.
21942 (construct_exit_block): Likewise.
21943 (pass_expand::execute): Likewise.
21944 * graphite.c (graphite_transforms): Replace check for current_loops
21945 with a check for > 1 loops.
21946 (pass_graphite_transforms::execute): Adjust.
21947 * ipa-split.c (split_function): Remove check for current_loops.
21948 * omp-low.c (expand_parallel_call): Likewise.
21949 (expand_omp_for_init_counts): Likewise.
21950 (extract_omp_for_update_vars): Likewise.
21951 (expand_omp_for_generic): Likewise.
21952 (expand_omp_sections): Likewise.
21953 (expand_omp_target): Likewise.
21954 * tracer.c (tail_duplicate): Likewise.
21955 (pass_tracer::execute): Likewise.
21956 * trans-mem.c (expand_transaction): Likewise.
21957 * tree-complex.c (expand_complex_div_wide): Likewise.
21958 * tree-eh.c (lower_resx): Likewise.
21959 (cleanup_empty_eh_merge_phis): Likewise.
21960 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21961 current_loops with a check for > 1 loops.
21962 (pass_predcom::execute): Adjust.
21963 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
21964 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
21965 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
21966 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
21967 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
21968 * tree-switch-conversion.c (process_switch): Likewise.
21969 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
21970 * tree-vrp.c (vrp_visit_phi_node): Likewise.
21971 (execute_vrp): Likewise.
21972 * ubsan.c (ubsan_expand_null_ifn): Likewise.
21973
21974 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21975
21976 * rtl.h (insn_location): Declare.
21977 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
21978 with UNKNOWN_LOCATION.
21979 * emit-rtl.c (insn_location): New function.
21980 * final.c (notice_source_line): Check that the instruction has a
21981 location before retrieving it and use insn_location.
21982 * modulo-sched.c (loop_single_full_bb_p): Likewise.
21983 * print-rtl.c (print_rtx): Likewise.
21984
21985 2014-06-06 Richard Biener <rguenther@suse.de>
21986
21987 * passes.def: Move 2nd VRP pass before phi-only-cprop.
21988
21989 2014-06-06 Christian Bruel <christian.bruel@st.com>
21990
21991 PR tree-optimization/43934
21992 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21993 cost.
21994
21995 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
21996
21997 * ira-lives.c (single_reg_class): Add missing break. Explicitly
21998 return NO_REGS for extra address and memory constraints. Handle
21999 operands that match (or are equivalent to something that matches)
22000 extra constant constraints. Ignore other non-register operands.
22001
22002 2014-06-06 Alan Modra <amodra@gmail.com>
22003
22004 PR target/61300
22005 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22006 * doc/tm.texi: Regenerate.
22007 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22008 Use throughout in place of REG_PARM_STACK_SPACE.
22009 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22010 "incoming" param. Pass to rs6000_function_parms_need_stack.
22011 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22012 prototype_p when incoming. Use function decl when incoming
22013 to handle K&R style functions.
22014 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22015 (INCOMING_REG_PARM_STACK_SPACE): Define.
22016
22017 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22018
22019 PR target/52472
22020 * cfgexpand.c (expand_debug_expr): Use address space of nested
22021 TREE_TYPE for ADDR_EXPR and MEM_REF.
22022
22023 2014-06-05 Jeff Law <law@redhat.com>
22024
22025 PR tree-optimization/61289
22026 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22027 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
22028 looking for those which match LHS. All callers changed.
22029 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22030 parameters and code which manipulated them. All callers changed.
22031 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22032 and DST_MAP parameters. Simplify invalidation code by just calling
22033 invalidate_equivalences. All callers changed.
22034 (thread_across_edge): Simplify now that we don't need to maintain
22035 the map of equivalences to invalidate.
22036
22037 2014-06-05 Kai Tietz <ktietz@redhat.com>
22038 Richard Henderson <rth@redhat.com>
22039
22040 PR target/46219
22041 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22042 checking for !TARGET_X32.
22043 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22044 (sibcall_intern): New define_insn, plus required peepholes.
22045 (sibcall_pop_intern): Likewise.
22046 (sibcall_value_intern): Likewise.
22047 (sibcall_value_pop_intern): Likewise.
22048
22049 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
22050
22051 * tree-inline.c (tree_function_versioning): Check DF info existence
22052 before accessing it.
22053
22054 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22055
22056 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22057 frame_size.
22058 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22059 aarch64_frame hard_fp_offset and frame_size.
22060 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22061 frame_size; remove original_frame_size.
22062 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22063 (aarch64_initial_elimination_offset): Remove frame_size and
22064 offset. Use aarch64_frame frame_size.
22065
22066 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22067 Jiong Wang <jiong.wang@arm.com>
22068 Renlin <renlin.li@arm.com>
22069
22070 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22071 initialization of R30 offset. Update offset. Iterate core
22072 regisers upto X30. Remove X29, X30 specific code.
22073
22074 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22075 Jiong Wang <jiong.wang@arm.com>
22076
22077 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22078 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22079 (aarch64_register_saved_on_entry): Adjust test.
22080
22081 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22082
22083 * config/aarch64/aarch64.h (machine_function): Move
22084 saved_varargs_size from here...
22085 (aarch64_frame): ... to here.
22086
22087 * config/aarch64/aarch64.c (aarch64_expand_prologue)
22088 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22089 (aarch64_initial_elimination_offset)
22090 (aarch64_setup_incoming_varargs): Adjust location of
22091 saved_varargs_size.
22092
22093 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22094
22095 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22096 layout comment.
22097
22098 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
22099 Prachi Godbole <Prachi.Godbole@imgtec.com>
22100
22101 * config/mips/mips-cpus.def: Add definition for p5600. Updated
22102 mips32r5 entry to use PROCESSOR_P5600.
22103 * config/mips/mips-tables.opt: Regenerate.
22104 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22105 * config/mips/mips.c (mips_fmadd_bypass): New function.
22106 (mips_rtx_cost_data): Add costs for p5600.
22107 (mips_issue_rate): Add support for p5600.
22108 (mips_multipass_dfa_lookahead): Likewise.
22109 * config/mips/mips.h (TUNE_P5600): New define.
22110 (TUNE_MACC_CHAINS): Add TUNE_P5600.
22111 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22112 * config/mips/mips.md: Include p5600.md.
22113 (processor): Add p5600.
22114 * config/mips/p5600.md: New file.
22115
22116 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
22117
22118 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22119 * config/i386/predicates.md (palignr_operand): New.
22120 Indicates if permutation is suitable for palignr instruction.
22121
22122 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
22123
22124 PR tree-optimization/61319
22125 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22126 stmt belongs to loop.
22127
22128 2014-06-05 Richard Biener <rguenther@suse.de>
22129
22130 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22131 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22132 (lookup_tmp_var): Adjust.
22133 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22134
22135 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22136
22137 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22138
22139 2014-06-05 Marek Polacek <polacek@redhat.com>
22140
22141 PR c/49706
22142 * doc/invoke.texi: Document -Wlogical-not-parentheses.
22143
22144 2014-06-04 Tom de Vries <tom@codesourcery.com>
22145
22146 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22147 CONST_INT.
22148
22149 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
22150
22151 PR tree-optimization/61385
22152 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22153
22154 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
22155
22156 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
22157 changed to use fatal_error.
22158 (main): Ensure lto_wrapper_cleanup is run atexit.
22159
22160 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22161
22162 * lra-constraints.c (valid_address_p): Move earlier in file.
22163 (address_eliminator): New structure.
22164 (satisfies_memory_constraint_p): New function.
22165 (satisfies_address_constraint_p): Likewise.
22166 (process_alt_operands, process_address, curr_insn_transform): Use them.
22167
22168 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22169
22170 * lra-int.h (lra_static_insn_data): Make operand_alternative a
22171 const pointer.
22172 (target_lra_int, default_target_lra_int, this_target_lra_int)
22173 (op_alt_data): Delete.
22174 * lra.h (lra_init): Delete.
22175 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22176 (init_insn_code_data_once): Remove op_alt_data handling.
22177 (finish_insn_code_data_once): Likewise.
22178 (init_op_alt_data): Delete.
22179 (get_static_insn_data): Initialize operand_alternative to null.
22180 (free_insn_recog_data): Cast operand_alternative before freeing it.
22181 (setup_operand_alternative): Take the operand_alternative as
22182 parameter and assume it isn't already cached in the static
22183 insn data.
22184 (lra_set_insn_recog_data): Update accordingly.
22185 (lra_init): Delete.
22186 * ira.c (ira_init): Don't call lra_init.
22187 * target-globals.h (this_target_lra_int): Declare.
22188 (target_globals): Remove lra_int.
22189 (restore_target_globals): Update accordingly.
22190 * target-globals.c: Don't include lra-int.h.
22191 (default_target_globals, save_target_globals): Remove lra_int.
22192
22193 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22194
22195 * recog.h (operand_alternative): Convert reg_class, reject,
22196 matched and matches into bitfields.
22197 (preprocess_constraints): New overload.
22198 (preprocess_insn_constraints): New function.
22199 (preprocess_constraints): Take the insn as parameter.
22200 (recog_op_alt): Change into a pointer.
22201 (target_recog): Add x_op_alt.
22202 * recog.c (asm_op_alt): New variable.
22203 (recog_op_alt): Change into a pointer.
22204 (preprocess_constraints): New overload, replacing the old function
22205 definition with one that doesn't use global state.
22206 (preprocess_insn_constraints): New function.
22207 (preprocess_constraints): Use them. Take the insn as parameter.
22208 Use asm_op_alt for asms.
22209 (recog_init): Free existing x_op_alt entries.
22210 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22211 pointer const.
22212 (make_early_clobber_and_input_conflicts): Likewise.
22213 (process_bb_node_lives): Pass the insn to process_constraints.
22214 * reg-stack.c (check_asm_stack_operands): Likewise.
22215 (subst_asm_stack_regs): Likewise.
22216 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22217 * regrename.c (build_def_use): Likewise.
22218 * sched-deps.c (sched_analyze_insn): Likewise.
22219 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22220 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22221 (note_invalid_constants): Likewise.
22222 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22223 (ix86_legitimate_combined_insn): Make operand_alternative pointer
22224 const.
22225
22226 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22227
22228 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22229 * ira-lives.c (check_and_make_def_conflict): Check for disabled
22230 alternatives.
22231 (make_early_clobber_and_input_conflicts): Likewise.
22232 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22233
22234 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22235
22236 * recog.h (alternative_class): New function.
22237 (which_op_alt): Return a const recog_op_alt.
22238 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22239 (subst_asm_stack_regs): Likewise.
22240 * config/arm/arm.c (note_invalid_constants): Likewise.
22241 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
22242 the operand_alternative; use alternative class instead.
22243 * sel-sched.c (get_reg_class): Likewise.
22244 * regrename.c (build_def_use): Likewise.
22245 (hide_operands, restore_operands, record_out_operands): Update type
22246 accordingly.
22247
22248 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22249
22250 * recog.h (recog_op_alt): Convert to a flat array.
22251 (which_op_alt): New function.
22252 * recog.c (recog_op_alt): Convert to a flat array.
22253 (preprocess_constraints): Update accordingly, grouping all
22254 operands of the same alternative together, rather than the
22255 other way around.
22256 * ira-lives.c (check_and_make_def_conflict): Likewise.
22257 (make_early_clobber_and_input_conflicts): Likewise.
22258 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22259 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22260 (subst_asm_stack_regs): Likewise.
22261 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22262 * regrename.c (hide_operands, record_out_operands): Likewise.
22263 (build_def_use): Likewise.
22264 * sel-sched.c (get_reg_class): Likewise.
22265 * config/arm/arm.c (note_invalid_constants): Likewise.
22266
22267 2014-06-04 Jason Merrill <jason@redhat.com>
22268
22269 PR c++/51253
22270 PR c++/61382
22271 * gimplify.c (gimplify_arg): Non-static.
22272 * gimplify.h: Declare it.
22273
22274 2014-06-04 Richard Biener <rguenther@suse.de>
22275
22276 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22277 TREE_PUBLIC and DECL_EXTERNAL decls.
22278
22279 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
22280
22281 * regcprop.c (copyprop_hardreg_forward_1): Account for
22282 HARD_REGNO_CALL_PART_CLOBBERED.
22283
22284 2014-06-04 Richard Biener <rguenther@suse.de>
22285
22286 * configure.ac: Check whether the underlying type of int64_t
22287 is long or long long.
22288 * configure: Regenerate.
22289 * config.in: Likewise.
22290 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22291 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22292
22293 2014-06-04 Richard Biener <rguenther@suse.de>
22294
22295 PR tree-optimization/60098
22296 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22297 we hit a kill.
22298 (dse_optimize_stmt): Simplify, now that we found a kill
22299 earlier.
22300
22301 2014-06-04 Richard Biener <rguenther@suse.de>
22302
22303 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22304 of accesses with non-invariant address.
22305
22306 2014-06-04 Martin Liska <mliska@suse.cz>
22307
22308 * cgraph.h (cgraph_make_wrapper): New function introduced.
22309 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22310 * ipa-inline.h (inline_analyze_function): The function is global.
22311 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22312
22313 2014-06-04 Martin Liska <mliska@suse.cz>
22314
22315 * tree.h (private_lookup_attribute_starting): New function.
22316 (lookup_attribute_starting): Likewise.
22317 * tree.c (private_lookup_attribute_starting): Likewise.
22318
22319 2014-06-04 Martin Liska <mliska@suse.cz>
22320
22321 * cgraph.h (expand_thunk): New argument added.
22322 (address_taken_from_non_vtable_p): New global function.
22323 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22324 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22325 * cgraphunit.c (analyze_function): Likewise.
22326 (assemble_thunks_and_aliases): Argument added to call.
22327 (expand_thunk): New argument forces to produce GIMPLE thunk.
22328
22329 2014-06-04 Martin Liska <mliska@suse.cz>
22330
22331 * coverage.h (coverage_compute_cfg_checksum): Argument added.
22332 * coverage.c (coverage_compute_cfg_checksum): Likewise.
22333 * profile.c (branch_prob): Likewise.
22334
22335 2014-06-04 Martin Jambor <mjambor@suse.cz>
22336
22337 PR ipa/61340
22338 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22339 handler for switch on an ipa_ref_use enum.
22340 * ipa-reference.c (analyze_function): Likewise.
22341
22342 2014-06-04 Kai Tietz <ktietz@redhat.com>
22343
22344 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22345 from old call-instruction.
22346
22347 2014-06-04 Bin Cheng <bin.cheng@arm.com>
22348
22349 * config/aarch64/aarch64.c (aarch64_classify_address)
22350 (aarch64_legitimize_reload_address): Support full addressing modes
22351 for vector modes.
22352 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22353 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22354
22355 2014-06-03 Andrew Pinski <apinski@cavium.com>
22356
22357 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22358 for OP0.
22359
22360 2014-06-03 Andrew Pinski <apinski@cavium.com>
22361
22362 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22363 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22364
22365 2014-06-03 Kai Tietz <ktietz@redhat.com>
22366
22367 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22368 for 64-bit ms-abi.
22369
22370 2014-06-03 Dehao Chen <dehao@google.com>
22371
22372 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22373 the same loop.
22374
22375 2014-06-03 Marek Polacek <polacek@redhat.com>
22376
22377 PR c/60439
22378 * doc/invoke.texi: Document -Wswitch-bool.
22379 * function.c (stack_protect_epilogue): Cast controlling expression of
22380 the switch to int.
22381 * gengtype.c (walk_type): Generate switch expression with its
22382 controlling expression cast to int.
22383
22384 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
22385
22386 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22387 and attiny841.
22388 * config/avr/avr-tables.opt: Regenerate.
22389 * config/avr/t-multilib: Regenerate.
22390 * doc/avr-mmcu.texi: Regenerate.
22391
22392 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
22393 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22394
22395 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22396 (ata6617c, ata664251): Add new avr35 devices.
22397 (ata6612c): Add new avr4 device.
22398 (ata6613c, ata6614q): Add new avr5 devices.
22399 * config/avr/avr-tables.opt: Regenerate.
22400 * config/avr/t-multilib: Regenerate.
22401 * doc/avr-mmcu.texi: Regenerate.
22402
22403 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22404
22405 * gcc/config/aarch64/aarch64-builtins.c
22406 (aarch64_types_binop_ssu_qualifiers): New static data.
22407 (TYPES_BINOP_SSU): Define.
22408 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22409 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22410 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22411 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22412 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22413 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22414 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22415 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22416 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22417 suffix to builtin function name, remove cast.
22418 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22419 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22420 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22421
22422 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22423
22424 * gcc/config/aarch64/aarch64-builtins.c
22425 (aarch64_types_binop_uus_qualifiers,
22426 aarch64_types_shift_to_unsigned_qualifiers,
22427 aarch64_types_unsigned_shiftacc_qualifiers): Define.
22428 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22429 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22430 sqshlu_n, uqshl_n): Update qualifiers.
22431 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22432 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22433 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22434 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22435 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22436 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22437 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22438 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22439 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22440 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22441 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22442 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22443 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22444 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22445 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22446 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22447 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22448 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22449 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22450 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22451 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22452 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22453 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22454 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22455 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22456 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22457 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22458
22459 2014-06-03 Teresa Johnson <tejohnson@google.com>
22460
22461 * tree-sra.c (modify_function): Record caller nodes after rebuild.
22462
22463 2014-06-02 Jason Merrill <jason@redhat.com>
22464
22465 PR c++/61020
22466 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22467
22468 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22469
22470 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22471 location == 0.
22472
22473 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22474
22475 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22476 New pattern.
22477 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22478 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22479 * config/aarch64/iterators.md (REVERSE): New iterator.
22480 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22481 (rev_op): New int_attribute.
22482 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22483 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22484 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22485 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22486 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22487 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22488 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22489 Replace temporary __asm__ with __builtin_shuffle.
22490
22491 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22492
22493 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22494 mips64r5.
22495 * config/mips/mips-tables.opt: Regenerate.
22496 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22497 to use mips_isa_rev rather than ISA_MIPS32R2.
22498 * config/mips/mips.h (ISA_MIPS32R3): New define.
22499 (ISA_MIPS32R5): New define.
22500 (ISA_MIPS64R3): New define.
22501 (ISA_MIPS64R5): New define.
22502 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22503 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22504 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22505 and mips64r5.
22506 (MIPS_ISA_SYNCI_SPEC): Likewise.
22507 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22508 (LINK_SPEC): Added mips32r3 and mips32r5.
22509 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22510 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22511 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22512 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22513 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22514 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22515 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22516
22517 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22518
22519 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22520 options.
22521 * config/mips/mips.opt (mxpa): New option.
22522 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22523 assembler.
22524
22525 2014-06-03 Martin Jambor <mjambor@suse.cz>
22526
22527 PR ipa/61160
22528 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22529 thunks.
22530
22531 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
22532
22533 PR tree-optimization/61328
22534 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22535 initialization from find_bswap_or_nop_1.
22536 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22537 in source_expr2 before using the size value the function sets. Also
22538 make use of init_symbolic_number () in both the old place and
22539 find_bswap_or_nop_load () to avoid reading uninitialized memory when
22540 doing recursion in the GIMPLE_BINARY_RHS case.
22541
22542 2014-06-03 Richard Biener <rguenther@suse.de>
22543
22544 PR tree-optimization/61383
22545 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22546 stmts can't trap.
22547
22548 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22549
22550 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22551 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22552 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22553 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22554 in this file.
22555 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22556 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22557 * system.h: ...here and make it unconditional.
22558 * target.def (conditional_register_usage): Mention
22559 define_register_constraint instead of old-style constraint macros.
22560 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22561 * doc/tm.texi: Regenerate.
22562 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22563 protected by !USE_MD_CONSTRAINTS.
22564 * config/frv/frv.md: Remove quote from old version of documentation.
22565 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22566 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22567 CONST_DOUBLE_OK_FOR_LETTER.
22568 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22569
22570 2014-06-02 Andrew Pinski <apinski@cavium.com>
22571
22572 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22573 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22574 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22575 file whose name depends on -mabi= and -mbig-endian.
22576 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22577 Handle LP64 better and handle ilp32 too.
22578 (MULTILIB_OPTIONS): Delete.
22579 (MULTILIB_DIRNAMES): Delete.
22580
22581 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
22582
22583 * expr.h: Remove prototypes of functions defined in builtins.c.
22584 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22585 Remove prototypes of functions defined in builtins.c.
22586 * builtins.h: Update prototype list to include all exported functions.
22587 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22588 no_c99_libc_has_function): Move to targhooks.c
22589 (build_string_literal, build_call_expr_loc_array,
22590 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22591 to tree.c.
22592 (expand_builtin_object_size, fold_builtin_object_size): Make static.
22593 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22594 no_c99_libc_has_function): Relocate from builtins.c.
22595 * tree.c: Include builtins.h.
22596 (build_call_expr_loc_array, build_call_expr_loc_vec,
22597 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22598 from builtins.c.
22599 * fold-const.h (fold_fma): Move prototype to builtins.h.
22600 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22601 * asan.c: Include builtins.h.
22602 * cfgexpand.c: Likewise.
22603 * convert.c: Likewise.
22604 * emit-rtl.c: Likewise.
22605 * except.c: Likewise.
22606 * expr.c: Likewise.
22607 * fold-const.c: Likewise.
22608 * gimple-fold.c: Likewise.
22609 * gimple-ssa-strength-reduction.c: Likewise.
22610 * gimplify.c: Likewise.
22611 * ipa-inline.c: Likewise.
22612 * ipa-prop.c: Likewise.
22613 * lto-streamer-out.c: Likewise.
22614 * stmt.c: Likewise.
22615 * tree-inline.c: Likewise.
22616 * tree-object-size.c: Likewise.
22617 * tree-sra.c: Likewise.
22618 * tree-ssa-ccp.c: Likewise.
22619 * tree-ssa-forwprop.c: Likewise.
22620 * tree-ssa-loop-ivcanon.c: Likewise.
22621 * tree-ssa-loop-ivopts.c: Likewise.
22622 * tree-ssa-math-opts.c: Likewise.
22623 * tree-ssa-reassoc.c: Likewise.
22624 * tree-ssa-threadedge.c: Likewise.
22625 * tree-streamer-in.c: Likewise.
22626 * tree-vect-data-refs.c: Likewise.
22627 * tree-vect-patterns.c: Likewise.
22628 * tree-vect-stmts.c: Likewise.
22629 * config/aarch64/aarch64.c: Likewise.
22630 * config/alpha/alpha.c: Likewise.
22631 * config/arc/arc.c: Likewise.
22632 * config/arm/arm.c: Likewise.
22633 * config/avr/avr.c: Likewise.
22634 * config/bfin/bfin.c: Likewise.
22635 * config/c6x/c6x.c: Likewise.
22636 * config/cr16/cr16.c: Likewise.
22637 * config/cris/cris.c: Likewise.
22638 * config/epiphany/epiphany.c: Likewise.
22639 * config/fr30/fr30.c: Likewise.
22640 * config/frv/frv.c: Likewise.
22641 * config/h8300/h8300.c: Likewise.
22642 * config/i386/i386.c: Likewise.
22643 * config/i386/winnt.c: Likewise.
22644 * config/ia64/ia64.c: Likewise.
22645 * config/iq2000/iq2000.c: Likewise.
22646 * config/lm32/lm32.c: Likewise.
22647 * config/m32c/m32c.c: Likewise.
22648 * config/m32r/m32r.c: Likewise.
22649 * config/m68k/m68k.c: Likewise.
22650 * config/mcore/mcore.c: Likewise.
22651 * config/mep/mep.c: Likewise.
22652 * config/microblaze/microblaze.c: Likewise.
22653 * config/mips/mips.c: Likewise.
22654 * config/mmix/mmix.c: Likewise.
22655 * config/mn10300/mn10300.c: Likewise.
22656 * config/moxie/moxie.c: Likewise.
22657 * config/msp430/msp430.c: Likewise.
22658 * config/nds32/nds32.c: Likewise.
22659 * config/pa/pa.c: Likewise.
22660 * config/pdp11/pdp11.c: Likewise.
22661 * config/picochip/picochip.c: Likewise.
22662 * config/rl78/rl78.c: Likewise.
22663 * config/rs6000/rs6000.c: Likewise.
22664 * config/rx/rx.c: Likewise.
22665 * config/s390/s390.c: Likewise.
22666 * config/score/score.c: Likewise.
22667 * config/sh/sh.c: Likewise.
22668 * config/sparc/sparc.c: Likewise.
22669 * config/spu/spu.c: Likewise.
22670 * config/stormy16/stormy16.c: Likewise.
22671 * config/tilegx/tilegx.c: Likewise.
22672 * config/tilepro/tilepro.c: Likewise.
22673 * config/v850/v850.c: Likewise.
22674 * config/vax/vax.c: Likewise.
22675 * config/xtensa/xtensa.c: Likewise.
22676
22677 2014-06-02 Jeff Law <law@redhat.com>
22678
22679 PR rtl-optimization/61094
22680 * ree.c (combine_reaching_defs): Do not reextend an insn if it
22681 was marked as do_no_reextend. If a copy is needed to eliminate
22682 an extension, then mark it as do_not_reextend.
22683
22684 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
22685
22686 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22687
22688 2014-06-02 Richard Henderson <rth@redhat.com>
22689
22690 PR target/61336
22691 * config/alpha/alpha.c (print_operand_address): Allow symbolic
22692 addresses inside asms. Use output_operand_lossage instead of
22693 gcc_unreachable.
22694
22695 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
22696
22697 PR target/61239
22698 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22699 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22700
22701 2014-06-02 Tom de Vries <tom@codesourcery.com>
22702
22703 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22704 case that x has VOIDmode.
22705
22706 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
22707
22708 * varasm.c (copy_constant): Delete function.
22709 (build_constant_desc): Don't call it.
22710
22711 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22712
22713 PR target/61154
22714 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22715 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22716 with immediate_operand.
22717
22718 2014-06-02 Andreas Schwab <schwab@suse.de>
22719
22720 * config/ia64/ia64.c
22721 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22722 pending_data_specs first.
22723
22724 2014-06-02 Richard Biener <rguenther@suse.de>
22725
22726 PR tree-optimization/61378
22727 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22728 valueized_anything.
22729
22730 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
22731
22732 * config/i386/constraints.md (Bw): Rename from 'w'.
22733 (Bz): Rename from 'z'.
22734 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22735
22736 2014-06-01 Kai Tietz <ktietz@redhat.com>
22737
22738 PR target/61377
22739 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22740 * config/i386/i386.md (sibcall_insn_operand): Use Bs
22741 instead of m constraint.
22742
22743 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
22744
22745 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22746 a separate alternative where the scratch operand 2 is marked as
22747 early clobber.
22748
22749 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22750
22751 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22752 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22753 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22754 and __builtins_arm_get_fpscr.
22755 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22756 __builtins_arm_get_fpscr.
22757 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22758 __builtins_arm_ldfpscr.
22759 (arm_atomic_assign_expand_fenv): New function.
22760 * config/arm/vfp.md (set_fpscr): New pattern.
22761 (get_fpscr) : Likewise.
22762 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22763 VUNSPEC_SET_FPSCR.
22764 * doc/extend.texi (AARCH64 Built-in Functions) : Document
22765 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22766
22767 2014-05-30 Jakub Jelinek <jakub@redhat.com>
22768
22769 * asan.c (report_error_func): Add SLOW_P argument, use
22770 BUILT_IN_ASAN_*_N if set.
22771 (build_check_stmt): Likewise.
22772 (instrument_derefs): If T has insufficient alignment,
22773 force same handling as for odd sizes.
22774
22775 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22776 BUILT_IN_ASAN_REPORT_STORE_N): New.
22777 * asan.c (struct asan_mem_ref): Change access_size type to
22778 HOST_WIDE_INT.
22779 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22780 update_mem_ref_hash_table): Likewise.
22781 (asan_mem_ref_hasher::hash): Hash in a HWI.
22782 (report_error_func): Change size_in_bytes argument to HWI.
22783 Use *_N builtins if size_in_bytes is larger than 16 or not power of
22784 two.
22785 (build_shadow_mem_access): New function.
22786 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
22787 Handle size_in_bytes not power of two or larger than 16.
22788 (instrument_derefs): Don't give up if size_in_bytes is not
22789 power of two or is larger than 16.
22790
22791 2014-05-30 Kai Tietz <ktietz@redhat.com>
22792
22793 PR target/60104
22794 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22795 for sibling-tail-calls.
22796 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22797 to its use.
22798 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22799 (sibcall_insn_operand): Add check for sibcall_memory_operand.
22800
22801 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22802
22803 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22804 * config/avr/avr-tables.opt: Regenerate.
22805 * config/avr/t-multilib: Regenerate.
22806 * doc/avr-mmcu.texi: Regenerate.
22807
22808 2014-05-30 Ian Lance Taylor <iant@google.com>
22809
22810 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22811 target("sse").
22812
22813 2014-05-30 Tom de Vries <tom@codesourcery.com>
22814
22815 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22816 Redefine as true.
22817
22818 2014-05-30 Tom de Vries <tom@codesourcery.com>
22819
22820 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22821 * lra.c (initialize_lra_reg_info_element): Add init of
22822 actual_call_used_reg_set field.
22823 (lra): Call lra_create_live_ranges before lra_inheritance for
22824 -fuse-caller-save.
22825 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22826 -fuse-caller-save.
22827 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22828 instead of call_used_reg_set for -fuse-caller-save.
22829 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22830
22831 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22832
22833 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22834 to mov_imm.
22835 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22836
22837 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
22838
22839 * ira.c (ira_get_dup_out_num): Check for output operands at
22840 the start of the loop. Handle cases where an included alternative
22841 follows an excluded one.
22842
22843 2014-05-29 Mike Stump <mikestump@comcast.net>
22844
22845 PR debug/61352
22846 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22847 post ld passes when lto is used.
22848
22849 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
22850
22851 PR rtl-optimization/61325
22852 * lra-constraints.c (process_address): Rename to process_address_1.
22853 (process_address): New function.
22854
22855 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
22856
22857 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22858 TYPES_BINOPV): New static data.
22859 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22860 New builtin.
22861 * config/aarch64/aarch64-simd.md (aarch64_ext,
22862 aarch64_im_lane_boundsi): New patterns.
22863 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22864 patterns for EXT.
22865 (aarch64_evpc_ext): New function.
22866
22867 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22868
22869 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22870 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22871 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22872 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22873 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22874
22875 2014-05-29 Tom de Vries <tom@codesourcery.com>
22876
22877 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22878
22879 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
22880 Richard Sandiford <rdsandiford@googlemail.com>
22881
22882 * arm/iterators.md (shiftable_ops): New code iterator.
22883 (t2_binop0, arith_shift_insn): New code attributes.
22884 * arm/predicates.md (shift_nomul_operator): New predicate.
22885 * arm/arm.md (insn_enabled): Delete.
22886 (enabled): Remove insn_enabled test.
22887 (*arith_shiftsi): Delete. Replace with ...
22888 (*<arith_shift_insn>_multsi): ... new pattern.
22889 (*<arith_shift_insn>_shiftsi): ... new pattern.
22890 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22891
22892 2014-05-29 Radovan Obradovic <robradovic@mips.com>
22893 Tom de Vries <tom@codesourcery.com>
22894
22895 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22896 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22897 clobber.
22898 (mips_split_call): Use POST_CALL_TMP_REG.
22899 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22900
22901 2014-05-29 Tom de Vries <tom@codesourcery.com>
22902
22903 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22904 with #ifdef STACK_REGS.
22905
22906 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
22907
22908 * varasm.c (get_variable_section): Walk aliases.
22909 (place_block_symbol): Walk aliases.
22910
22911 2014-05-28 Tom de Vries <tom@codesourcery.com>
22912
22913 Revert:
22914 2014-05-28 Tom de Vries <tom@codesourcery.com>
22915
22916 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22917 * lra.c (initialize_lra_reg_info_element): Add init of
22918 actual_call_used_reg_set field.
22919 (lra): Call lra_create_live_ranges before lra_inheritance for
22920 -fuse-caller-save.
22921 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22922 -fuse-caller-save.
22923 * lra-constraints.c (need_for_call_save_p): Use
22924 actual_call_used_reg_set instead of call_used_reg_set for
22925 -fuse-caller-save.
22926 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22927
22928 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22929
22930 * doc/md.texi: Document that the % constraint character must
22931 be at the beginning of the string.
22932 * genoutput.c (validate_insn_alternatives): Check that '=',
22933 '+' and '%' only appear at the beginning of a constraint.
22934 * ira.c (commutative_constraint_p): Delete.
22935 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22936 at the start of the string.
22937 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22938 duplicate '='s.
22939 * config/arm/neon.md (bicdi3_neon): Likewise.
22940 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22941 (slt_si, sltu_si): Likewise.
22942 * config/vax/vax.md (sbcdi3): Likewise.
22943 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22944 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22945 (mul64): Move '%' to beginning of constraint.
22946 * config/arm/arm.md (*xordi3_insn): Likewise.
22947 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22948 (xorsi3): Likewise.
22949
22950 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22951
22952 * doc/md.texi: Document the restrictions on the "enabled" attribute.
22953
22954 2014-05-28 Jason Merrill <jason@redhat.com>
22955
22956 PR c++/47202
22957 * cgraph.h (symtab_node::get_comdat_group_id): New.
22958 * cgraphunit.c (analyze_functions): Call it.
22959 * symtab.c (dump_symtab_node): Likewise.
22960 * tree.c (decl_comdat_group_id): New.
22961 * tree.h: Declare it.
22962 * lto-streamer-out.c (write_symbol): Use it.
22963 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
22964
22965 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
22966
22967 PR bootstrap/PR61146
22968 * wide-int.cc: Do not include longlong.h when compiling with clang.
22969
22970 2014-05-28 Richard Biener <rguenther@suse.de>
22971
22972 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
22973 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
22974 (vrp_visit_assignment_or_call): Print less vertical space.
22975 (vrp_visit_stmt): Likewise.
22976 (vrp_visit_phi_node): Likewise. For a PHI argument with
22977 VR_VARYING range consider recording it as copy.
22978
22979 2014-05-28 Richard Biener <rguenther@suse.de>
22980
22981 Revert
22982 2014-05-28 Richard Biener <rguenther@suse.de>
22983
22984 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22985
22986 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22987
22988 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22989 sufficiently aligned and an offset is used at the same time.
22990 (expand_expr_real_1): Likewise.
22991
22992 2014-05-28 Richard Biener <rguenther@suse.de>
22993
22994 PR middle-end/61045
22995 * fold-const.c (fold_comparison): When folding
22996 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22997 the sign of the remaining constant operand stays the same.
22998
22999 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
23000
23001 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23002 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23003 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23004 to the assembler.
23005 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23006 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23007 (m32bit-doubles) Likewise.
23008 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23009 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23010 option for RL78.
23011
23012 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23013
23014 * configure.ac ($gcc_cv_ld_clearcap): New test.
23015 * configure: Regenerate.
23016 * config.in: Regenerate.
23017 * config/sol2.opt (mclear-hwcap): New option.
23018 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23019 * config/sol2-clearcap.map: Moved here from
23020 testsuite/gcc.target/i386/clearcap.map.
23021 * config/sol2-clearcapv2.map: Move here from
23022 gcc.target/i386/clearcapv2.map.
23023 * config/t-sol2 (install): Depend on install-clearcap-map.
23024 (install-clearcap-map): New target.
23025 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23026 -mclear-hwcap.
23027
23028 2014-05-28 Richard Biener <rguenther@suse.de>
23029
23030 * hwint.h (*_HALF_WIDE_INT*): Move to ...
23031 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23032 ... here and remove the rest.
23033 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23034
23035 2014-05-28 Richard Biener <rguenther@suse.de>
23036
23037 PR tree-optimization/61335
23038 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23039 new range fails, drop to varying.
23040
23041 2014-05-28 Olivier Hainque <hainque@adacore.com>
23042
23043 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23044 (CPP_SPEC): Add entry for -mcpu=8548.
23045 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23046 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23047
23048 2014-05-28 Tom de Vries <tom@codesourcery.com>
23049
23050 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23051 * lra.c (initialize_lra_reg_info_element): Add init of
23052 actual_call_used_reg_set field.
23053 (lra): Call lra_create_live_ranges before lra_inheritance for
23054 -fuse-caller-save.
23055 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23056 -fuse-caller-save.
23057 * lra-constraints.c (need_for_call_save_p): Use
23058 actual_call_used_reg_set instead of call_used_reg_set for
23059 -fuse-caller-save.
23060 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23061
23062 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23063 Tom de Vries <tom@codesourcery.com>
23064
23065 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23066 to gccoptlist.
23067 (@item -fuse-caller-save): New item.
23068
23069 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23070 Tom de Vries <tom@codesourcery.com>
23071
23072 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23073 OPT_fuse_caller_save.
23074
23075 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23076 Tom de Vries <tom@codesourcery.com>
23077
23078 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23079 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23080 get_call_reg_set_usage.
23081 * resource.c (mark_set_resources, mark_target_live_regs): Use
23082 get_call_reg_set_usage.
23083 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23084 field.
23085 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23086 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23087 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23088 * ira-build.c (ira_create_allocno): Init
23089 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23090 (create_cap_allocno, propagate_allocno_info)
23091 (propagate_some_info_from_allocno)
23092 (copy_info_to_removed_store_destinations): Handle
23093 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23094 * ira-costs.c (ira_tune_allocno_costs): Use
23095 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23096
23097 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23098 Tom de Vries <tom@codesourcery.com>
23099
23100 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23101 and function_used_regs_valid fields.
23102 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23103 find_all_hard_reg_sets.
23104 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23105 (get_call_reg_set_usage): New function.
23106 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23107 * regs.h (get_call_reg_set_usage): Declare.
23108
23109 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23110
23111 PR libgcc/61152
23112 * config/dbx.h (License): Add Runtime Library Exception.
23113 * config/newlib-stdint.h (License): Same.
23114 * config/rtems.h (License): Same
23115 * config/initfini-array.h (License): Same
23116 * config/v850/v850.h (License): Same.
23117 * config/v850/v850-opts.h (License): Same
23118 * config/v850/rtems.h (License): Same.
23119
23120 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23121
23122 PR target/61044
23123 * doc/extend.texi (Local Labels): Note that label differences are
23124 not supported for AVR.
23125
23126 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23127 Olivier Hainque <hainque@adacore.com>
23128
23129 * rtl.h (set_for_reg_notes): Declare.
23130 * emit-rtl.c (set_for_reg_notes): New function.
23131 (set_unique_reg_note): Use it.
23132 * optabs.c (add_equal_note): Likewise
23133
23134 2014-05-27 Andrew Pinski <apinski@cavium.com>
23135
23136 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23137 Use <w> for the register in assembly template.
23138 (stack_protect_test): Use the mode of operands[0] for the result.
23139 (stack_protect_test_<mode>): Use <w> for the register
23140 in assembly template.
23141
23142 2014-05-27 DJ Delorie <dj@redhat.com>
23143
23144 * config/rx/rx.c (add_vector_labels): New.
23145 (rx_output_function_prologue): Call it.
23146 (rx_handle_func_attribute): Don't require empty arguments.
23147 (rx_handle_vector_attribute): New.
23148 (rx_attribute_table): Add "vector" attribute.
23149 * doc/extend.texi (interrupt, vector): Document new/changed
23150 RX-specific attributes.
23151
23152 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23153
23154 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23155
23156 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23157 predicate to detect a negative quotient.
23158
23159 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23160
23161 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23162 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23163 Add X - Y CMP 0 to X CMP Y transformation.
23164 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23165
23166 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
23167
23168 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23169 before printing.
23170
23171 2014-05-27 Steve Ellcey <sellcey@mips.com>
23172
23173 * config/mips/mips.c: Add include of cgraph.h.
23174
23175 2014-05-27 Richard Biener <rguenther@suse.de>
23176
23177 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23178
23179 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23180
23181 PR libgcc/61152
23182 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23183 * config/arm/arm-cores.def (License): Same.
23184 * config/arm/arm-opts.h (License): Same.
23185 * config/arm/aout.h (License): Same.
23186 * config/arm/bpabi.h (License): Same.
23187 * config/arm/elf.h (License): Same.
23188 * config/arm/linux-elf.h (License): Same.
23189 * config/arm/linux-gas.h (License): Same.
23190 * config/arm/netbsd-elf.h (License): Same.
23191 * config/arm/uclinux-eabi.h (License): Same.
23192 * config/arm/uclinux-elf.h (License): Same.
23193 * config/arm/vxworks.h (License): Same.
23194
23195 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23196
23197 * config/arm/neon.md (neon_bswap<mode>): New pattern.
23198 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23199 (arm_init_neon_builtins): Handle NEON_BSWAP.
23200 Define required type nodes.
23201 (arm_expand_neon_builtin): Handle NEON_BSWAP.
23202 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23203 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23204 * config/arm/iterators.md (VDQHSD): New mode iterator.
23205
23206 2014-05-27 Richard Biener <rguenther@suse.de>
23207
23208 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23209 Try using literal operands when comparing value-ranges failed.
23210
23211 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23212
23213 * ira.c (commutative_operand): Adjust for change to recog_data.
23214 [Missing from previous commit.]
23215
23216 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23217
23218 * system.h (TEST_BIT): New macro.
23219 * recog.h (alternative_mask): New type.
23220 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23221 (recog_data_d): Replace alternative_enabled_p array with
23222 enabled_alternatives.
23223 (target_recog): New structure.
23224 (default_target_recog, this_target_recog): Declare.
23225 (get_enabled_alternatives, recog_init): Likewise.
23226 * recog.c (default_target_recog, this_target_recog): New variables.
23227 (get_enabled_alternatives): New function.
23228 (extract_insn): Use it.
23229 (recog_init): New function.
23230 (preprocess_constraints, constrain_operands): Adjust for change to
23231 recog_data.
23232 * postreload.c (reload_cse_simplify_operands): Likewise.
23233 * reload.c (find_reloads): Likewise.
23234 * ira-costs.c (record_reg_classes): Likewise.
23235 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
23236 all alternatives after a disabled one would be skipped.
23237 (ira_implicitly_set_insn_hard_regs): Likewise.
23238 * ira.c (ira_setup_alts): Adjust for change to recog_data.
23239 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23240 with enabled_alternatives.
23241 * lra.c (free_insn_recog_data): Update accordingly.
23242 (lra_update_insn_recog_data): Likewise.
23243 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
23244 * lra-constraints.c (process_alt_operands): Likewise. Handle
23245 only_alternative as part of the enabled mask.
23246 * target-globals.h (this_target_recog): Declare.
23247 (target_globals): Add a recog field.
23248 (restore_target_globals): Restore this_target_recog.
23249 * target-globals.c: Include recog.h.
23250 (default_target_globals): Initialize recog field.
23251 (save_target_globals): Likewise.
23252 * reginfo.c (reinit_regs): Call recog_init.
23253 * toplev.c (backend_init_target): Likewise.
23254
23255 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23256
23257 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23258 rather than any named insn's code.
23259
23260 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23261
23262 PR libgcc/61152
23263 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23264 * config/arm/arm-cores.def (License): Same.
23265
23266 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
23267
23268 * tree.h (decl_comdat_group): Declare.
23269 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23270 * tree.c (decl_comdat_group): Here.
23271
23272 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
23273
23274 PR rtl-optimization/61222
23275 * combine.c (simplify_shift_const_1): When moving a PLUS outside
23276 the shift, truncate the PLUS operand to the result mode.
23277
23278 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
23279
23280 PR target/61271
23281 * config/i386/i386.c (ix86_rtx_costs)
23282 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23283 Fix condition.
23284
23285 2014-05-26 Martin Jambor <mjambor@suse.cz>
23286
23287 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23288 subreg uses.
23289
23290 2014-05-26 Richard Biener <rguenther@suse.de>
23291
23292 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23293 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23294 Provide specializations.
23295 (wi::int_traits <HOST_WIDE_INT>,
23296 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23297
23298 2014-05-26 Alan Modra <amodra@gmail.com>
23299
23300 PR target/61098
23301 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23302 params and return a bool. Remove dead code. Update comment.
23303 Assert we have a const_int source. Remove bogus code from
23304 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
23305 handling of constants > 2G and reg_equal note, from..
23306 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
23307 return value. Update comment. If we can, use a new pseudo
23308 for intermediate calculations.
23309 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23310 prototype.
23311 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23312 call to rs6000_emit_set_const in splitter.
23313 (movdi_internal64+2, +3): Likewise.
23314
23315 2014-05-26 Richard Biener <rguenther@suse.de>
23316
23317 * system.h: Define __STDC_FORMAT_MACROS before
23318 including inttypes.h.
23319 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23320 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23321 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23322 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23323 HOST_WIDEST_INT_C): Remove.
23324 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23325 if C99 inttypes.h is not available.
23326 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23327 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23328 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23329 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23330 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23331 (struct output_info): Likewise.
23332 (print_statistics): Adjust.
23333 (dump_bitmap_statistics): Likewise.
23334 * bt-load.c (migrate_btr_defs): Print with PRId64.
23335 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23336 (MAX_SAFE_MULTIPLIER): Adjust.
23337 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23338 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23339 dump_cgraph_node): Likewise.
23340 * final.c (dump_basic_block_info): Likewise.
23341 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23342 * gcov.c (format_gcov): Likewise.
23343 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
23344 for calculation.
23345 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23346 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23347 (inline_small_functions, dump_overall_stats, dump_inline_stats):
23348 Use PRId64 for dumping.
23349 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23350 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23351 (add_allocno_hard_regs): Adjust.
23352 * loop-doloop.c (doloop_modify): Print using PRId64.
23353 * loop-iv.c (inverse): Compute in uint64_t.
23354 (determine_max_iter, iv_number_of_iterations): Likewise.
23355 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23356 Print using PRId64.
23357 * lto-streamer-out.c (write_symbol): Use uint64_t.
23358 * mcf.c (CAP_INFINITY): Use int64_t maximum.
23359 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23360 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23361 * modulo-sched.c (const_iteration_count): Use int64_t.
23362 (sms_schedule): Dump using PRId64.
23363 * predict.c (dump_prediction): Likewise.
23364 * pretty-print.h (pp_widest_integer): Remove.
23365 * profile.c (get_working_sets, is_edge_inconsistent,
23366 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23367 * tree-pretty-print.c (pp_double_int): Remove case handling
23368 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23369 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23370 and adjust users.
23371 (pass_optimize_bswap::execute): Remove restriction on hosts.
23372 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23373 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23374 * tree.c (widest_int_cst_value): Remove.
23375 * tree.h (widest_int_cst_value): Likewise.
23376 * value-prof.c (dump_histogram_value): Print using PRId64.
23377 * gengtype.c (main): Also inject int64_t.
23378 * ggc-page.c (struct max_alignment): Use int64_t.
23379 * alloc-pool.c (struct allocation_object_def): Likewise.
23380 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23381 for computation.
23382 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23383 * doc/tm.texi: Regenerated.
23384 * gengtype-lex.l (IWORD): Handle [u]int64_t.
23385 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23386 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23387 mmix_output_register_setting): Use [u]int64_t in prototypes.
23388 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23389 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23390 mmix_output_octa, mmix_output_shifted_value): Adjust.
23391 (mmix_intval): Adjust. Remove unreachable case.
23392 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23393
23394 2014-05-26 Richard Biener <rguenther@suse.de>
23395
23396 * configure.ac: Drop __int64 type check. Insist that we
23397 found uint64_t and int64_t.
23398 * hwint.h (HOST_BITS_PER___INT64): Remove.
23399 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23400 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23401 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23402 (HOST_WIDEST_FAST_INT): Remove __int64 case.
23403 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23404 for dst_q_src_df_rms_cdt.
23405 * configure: Regenerate.
23406 * config.in: Likewise.
23407
23408 2014-05-26 Michael Tautschnig <mt@debian.org>
23409
23410 PR target/61249
23411 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23412 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23413
23414 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23415
23416 PR rtl-optimization/61278
23417 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23418
23419 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23420
23421 PR rtl-optimization/61220
23422 Part of PR rtl-optimization/61225
23423 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23424 insn; skip split_edge for a block with only one successor.
23425
23426 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23427
23428 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23429 for variables.
23430
23431 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23432
23433 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23434 (update_vtable_references): New function.
23435 (function_and_variable_visibility): Rewrite also vtable initializers.
23436 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23437
23438 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23439
23440 * ggc.h (ggc_grow): New function.
23441 * ggc-none.c (ggc_grow): New function.
23442 * ggc-page.c (ggc_grow): Likewise.
23443
23444 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23445
23446 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23447 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23448 comdat_can_be_unshared_p, cgraph_externally_visible_p,
23449 varpool_externally_visible_p, can_replace_by_local_alias,
23450 update_visibility_by_resolution_info, function_and_variable_visibility,
23451 pass_data_ipa_function_and_variable_visibility,
23452 make_pass_ipa_function_and_variable_visibility,
23453 whole_program_function_and_variable_visibility,
23454 pass_data_ipa_whole_program_visibility,
23455 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23456 * cgraph.h (cgraph_local_node_p): Declare.
23457 * ipa-visibility.c: New file.
23458 * Makefile.in (OBJS): Add ipa-visiblity.o
23459
23460 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23461
23462 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23463 that var decl is available.
23464
23465 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23466
23467 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23468 symtab_node pointer.
23469 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23470 (find_decls_types_r): Do not walk COMDAT_GROUP.
23471 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23472 * varasm.c (make_decl_one_only): Use set_comdat_group;
23473 create node if needed.
23474 * ipa-inline-transform.c (save_inline_function_body): Update
23475 way we decl->symtab mapping.
23476 * symtab.c (symtab_hash, hash_node, eq_node
23477 symtab_insert_node_to_hashtable): Remove.
23478 (symtab_register_node): Update.
23479 (symtab_unregister_node): Update.
23480 (symtab_get_node): Reimplement as inline function.
23481 (symtab_add_to_same_comdat_group): Update.
23482 (symtab_dissolve_same_comdat_group_list): Update.
23483 (dump_symtab_base): Update.
23484 (verify_symtab_base): Update.
23485 (symtab_make_decl_local): Update.
23486 (fixup_same_cpp_alias_visibility): Update.
23487 (symtab_nonoverwritable_alias): Update.
23488 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23489 * ipa.c (update_visibility_by_resolution_info): UPdate.
23490 * bb-reorder.c: Include cgraph.h
23491 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23492 with comdat groups.
23493 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23494 * cgraph.c (cgraph_get_create_node): Update.
23495 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23496 and comdat_group_.
23497 (symtab_get_node): Make inline.
23498 (symtab_insert_node_to_hashtable): Remove.
23499 (symtab_can_be_discarded): Update.
23500 (decl_comdat_group): New function.
23501 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23502 Update.
23503 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23504 comdat group name.
23505 (read_comdat_group): New function.
23506 (input_node, input_varpool_node): Use it.
23507 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23508 comdat groups.
23509 * mips.c (mips_start_unique_function): Likewise.
23510 (ix86_code_end): Likewise.
23511 (rs6000_code_end): Likweise.
23512 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23513
23514 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23515
23516 * gengtype-state.c (fatal_reading_state): Bring offline.
23517 * optabs.c (widening_optab_handler): Bring offline.
23518 * optabs.h (widening_optab_handler): Likewise.
23519 * final.c (get_attr_length_1): Likewise.
23520
23521 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23522
23523 * sched-int.h (sd_iterator_cond): Manually tail recurse.
23524
23525 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23526
23527 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23528 (ppc440-compare): Include shift with dot.
23529 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23530 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23531 without dot.
23532 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23533 without dot.
23534 (e6500_sfx2): Include it.
23535 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23536 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23537 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23538 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23539 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23540 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23541 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23542 *lshiftrt_internal1le, *lshiftrt_internal1be,
23543 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23544 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23545 *rotldi3_internal10le, *rotldi3_internal10be,
23546 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23547 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23548 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23549 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23550 define_insns): Use type "shift" in the appropriate alternatives.
23551
23552 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23553
23554 * config/rs6000/rs6000.md (type): Add "logical". Delete
23555 "fast_compare".
23556 (dot): Adjust comment.
23557 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23558 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23559 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23560 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23561 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23562 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23563 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23564 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23565
23566 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23567 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23568 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23569 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23570 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23571 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23572 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23573 * config/rs6000/8540.md (ppc8540_su): Adjust.
23574 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23575 cell-cmp-microcoded): Adjust.
23576 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23577 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23578 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23579 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23580 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23581 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23582 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23583 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23584 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23585 Adjust.
23586 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23587 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23588 Adjust. Adjust comment.
23589 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23590 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23591
23592 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23593
23594 * config/rs6000/rs6000.md (type): Add "add".
23595 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23596 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23597 define_insns): Use it.
23598 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23599
23600 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23601 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23602 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23603 * config/rs6000/601.md (ppc601-integer): Adjust.
23604 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23605 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23606 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23607 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23608 * config/rs6000/8540.md (ppc8540_su): Adjust.
23609 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23610 cell-cmp-microcoded): Adjust.
23611 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23612 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23613 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23614 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23615 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23616 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23617 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23618 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23619 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23620 Adjust.
23621 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23622 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23623 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23624 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23625
23626 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23627
23628 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23629 "delayed_compare", "var_delayed_compare".
23630 (var_shift): New attribute.
23631 (cell_micro): Adjust.
23632 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23633 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23634 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23635 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23636 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23637 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23638 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23639 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23640 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23641 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23642 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23643 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23644 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23645 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23646 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23647 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23648 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23649 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23650 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23651 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23652 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23653 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23654 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23655 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23656 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23657
23658 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23659 * config/rs6000/440.md (ppc440-integer): Adjust.
23660 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23661 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23662 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23663 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23664 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23665 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23666 * config/rs6000/8540.md (ppc8540_su): Adjust.
23667 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23668 cell-cmp-microcoded): Adjust.
23669 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23670 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23671 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23672 e500mc64_delayed): Adjust.
23673 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23674 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23675 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23676 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23677 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23678 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23679 power6-delayed-compare, power6-var-delayed-compare): Adjust.
23680 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23681 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23682 Adjust comment.
23683 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23684 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23685
23686 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23687
23688 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
23689 (bits): New mode_attr.
23690 (idiv_ldiv): Delete mode_attr.
23691 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23692 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23693 rs6000_adjust_priority, is_nonpipeline_insn,
23694 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23695
23696 * config/rs6000/40x.md (ppc403-idiv): Adjust.
23697 * config/rs6000/440.md (ppc440-idiv): Adjust.
23698 * config/rs6000/476.md (ppc476-idiv): Adjust.
23699 * config/rs6000/601.md (ppc601-idiv): Adjust.
23700 * config/rs6000/603.md (ppc603-idiv): Adjust.
23701 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23702 ppc620-ldiv): Adjust.
23703 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23704 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23705 * config/rs6000/8540.md (ppc8540_divide): Adjust.
23706 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23707 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23708 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23709 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23710 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23711 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23712 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23713 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23714 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23715 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23716 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23717 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23718 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23719 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23720 * config/rs6000/titan.md (titan_fxu_div): Adjust.
23721
23722 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23723
23724 * config/rs6000/rs6000.md (type): Delete "insert_word",
23725 "insert_dword". Add "insert".
23726 (size): Update comment.
23727 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23728 insn_must_be_first_in_group): Adjust.
23729 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23730 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23731 *insvsi_internal6, insvdi_internal): Adjust.
23732
23733 * config/rs6000/40x.md (ppc403-integer): Adjust.
23734 * config/rs6000/440.md (ppc440-integer): Adjust.
23735 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23736 * config/rs6000/601.md (ppc601-integer): Adjust.
23737 * config/rs6000/603.md (ppc603-integer): Adjust.
23738 * config/rs6000/6xx.md (ppc604-integer): Adjust.
23739 * config/rs6000/7450.md (ppc7450-integer): Adjust.
23740 * config/rs6000/7xx.md (ppc750-integer): Adjust.
23741 * config/rs6000/8540.md (ppc8540_su): Adjust.
23742 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23743 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23744 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23745 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23746 * config/rs6000/e5500.md (e5500_sfx): Adjust.
23747 * config/rs6000/e6500.md (e6500_sfx): Adjust.
23748 * config/rs6000/mpc.md (mpccore-integer): Adjust.
23749 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23750 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23751 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23752 * config/rs6000/power7.md (power7-integer): Adjust.
23753 * config/rs6000/power8.md (power8-1cyc): Adjust.
23754 * config/rs6000/rs64.md (rs64a-integer): Adjust.
23755 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23756
23757 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23758
23759 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
23760 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23761 (size): New attribute.
23762 (dot): New attribute.
23763 (cell_micro): Adjust.
23764 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23765 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23766 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23767 umuldi3_highpart): Adjust.
23768 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23769 rs6000_adjust_priority, is_nonpipeline_insn,
23770 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23771
23772 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23773 ppc405-imul3): Adjust.
23774 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23775 * config/rs6000/476.md (ppc476-imul): Adjust.
23776 * config/rs6000/601.md (ppc601-imul): Adjust.
23777 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23778 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23779 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23780 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23781 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23782 Adjust.
23783 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23784 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23785 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23786 cell-imul): Adjust.
23787 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23788 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23789 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23790 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23791 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23792 * config/rs6000/mpc.md (mpccore-imul): Adjust.
23793 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23794 power4-lmul, power4-imul, power4-imul3): Adjust.
23795 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23796 power5-lmul, power5-imul, power5-imul3): Adjust.
23797 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23798 power6-lmul, power6-imul, power6-imul3): Adjust.
23799 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23800 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23801
23802 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23803 rs64a-lmul): Adjust.
23804 * config/rs6000/titan.md (titan_imul): Adjust.
23805
23806 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23807
23808 * config/rs6000/rs6000.md (type): Add new value "halfmul".
23809 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23810 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23811 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23812 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23813 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23814 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23815 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23816 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23817 * config/rs6000/titan.md: Delete nonsensical comment.
23818 (titan_imul): Add type imul3.
23819 (titan_mulhw): Remove type imul3; add type halfmul.
23820
23821 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23822
23823 * config/rs6000/rs6000.md (type): Reorder, reformat.
23824
23825 2014-05-23 Martin Jambor <mjambor@suse.cz>
23826
23827 PR tree-optimization/53787
23828 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23829 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23830 analysis_done, update all uses.
23831 * ipa-prop.c: Include domwalk.h
23832 (param_analysis_info): Removed.
23833 (param_aa_status): New type.
23834 (ipa_bb_info): Likewise.
23835 (func_body_info): Likewise.
23836 (ipa_get_bb_info): New function.
23837 (aa_overwalked): Likewise.
23838 (find_dominating_aa_status): Likewise.
23839 (parm_bb_aa_status_for_bb): Likewise.
23840 (parm_preserved_before_stmt_p): Changed to use new param AA info.
23841 (load_from_unmodified_param): Accept func_body_info as a parameter
23842 instead of parms_ainfo.
23843 (parm_ref_data_preserved_p): Changed to use new param AA info.
23844 (parm_ref_data_pass_through_p): Likewise.
23845 (ipa_load_from_parm_agg_1): Likewise. Update callers.
23846 (compute_complex_assign_jump_func): Changed to use new param AA info.
23847 (compute_complex_ancestor_jump_func): Likewise.
23848 (ipa_compute_jump_functions_for_edge): Likewise.
23849 (ipa_compute_jump_functions): Removed.
23850 (ipa_compute_jump_functions_for_bb): New function.
23851 (ipa_analyze_indirect_call_uses): Likewise, moved variable
23852 declarations down.
23853 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23854 and info, moved variable declarations down.
23855 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23856 node and info.
23857 (ipa_analyze_stmt_uses): Likewise.
23858 (ipa_analyze_params_uses): Removed.
23859 (ipa_analyze_params_uses_in_bb): New function.
23860 (ipa_analyze_controlled_uses): Likewise.
23861 (free_ipa_bb_info): Likewise.
23862 (analysis_dom_walker): New class.
23863 (ipa_analyze_node): Handle node-specific forbidden analysis,
23864 initialize and free func_body_info, use dominator walker.
23865 (ipcp_modif_dom_walker): New class.
23866 (ipcp_transform_function): Create and free func_body_info, use
23867 ipcp_modif_dom_walker, moved a lot of functionality there.
23868
23869 2014-05-23 Marek Polacek <polacek@redhat.com>
23870 Jakub Jelinek <jakub@redhat.com>
23871
23872 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23873 * gcc.c (sanitize_spec_function): Likewise.
23874 * convert.c (convert_to_integer): Include "ubsan.h". Add
23875 floating-point to integer instrumentation.
23876 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23877 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23878 SANITIZE_NONDEFAULT.
23879 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23880 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23881 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23882 * ubsan.c: Include "realmpfr.h" and "dfp.h".
23883 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23884 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23885 float/double/long double.
23886 (ubsan_instrument_float_cast): New function.
23887 * ubsan.h (ubsan_instrument_float_cast): Declare.
23888
23889 2014-05-23 Jiong Wang <jiong.wang@arm.com>
23890
23891 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23892 predicate.
23893 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
23894 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23895 Adjust for tailcalling through registers.
23896 * config/aarch64/aarch64.h (enum reg_class): New caller save
23897 register class.
23898 (REG_CLASS_NAMES): Likewise.
23899 (REG_CLASS_CONTENTS): Likewise.
23900 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23901 Allow tailcalling without decls.
23902
23903 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23904
23905 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23906 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23907
23908 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23909 gsi, and variables v_* to v*.
23910
23911 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
23912
23913 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23914
23915 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23916
23917 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23918 * omp-low.c: Update accordingly.
23919
23920 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23921 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23922 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23923 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23924 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23925 GF_OMP_TARGET_KIND_UPDATE.
23926
23927 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23928 Explicitly enumerate the expected region types.
23929
23930 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
23931
23932 PR other/56955
23933 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
23934 documentation; the old documentation didn't clearly state the
23935 constraints on the contents of the pointed-to storage.
23936
23937 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23938
23939 Fix bootstrap error on ia64
23940 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23941 Return default value.
23942
23943 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
23944
23945 PR tree-optimization/54733
23946 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23947 (CMPNOP): Define.
23948 (find_bswap_or_nop_load): New.
23949 (find_bswap_1): Renamed to ...
23950 (find_bswap_or_nop_1): This. Also add support for memory source.
23951 (find_bswap): Renamed to ...
23952 (find_bswap_or_nop): This. Also add support for memory source and
23953 detection of bitwise operations equivalent to load in target
23954 endianness.
23955 (execute_optimize_bswap): Likewise. Also move its leading comment back
23956 in place and split statement transformation into ...
23957 (bswap_replace): This.
23958
23959 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23960
23961 PR rtl-optimization/61215
23962 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
23963 simplify_gen_subreg until final substitution.
23964
23965 2014-05-23 Alan Modra <amodra@gmail.com>
23966
23967 PR target/61231
23968 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
23969 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
23970 Use "Y" constraint rather than "m".
23971
23972 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
23973
23974 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
23975 define.
23976 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
23977 New function declaration.
23978 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23979 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23980 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23981 (aarch64_init_builtins) : Initialize builtins
23982 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23983 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23984 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23985 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23986 and __builtins_aarch64_set_fpsr.
23987 (aarch64_atomic_assign_expand_fenv): New function.
23988 * config/aarch64/aarch64.md (set_fpcr): New pattern.
23989 (get_fpcr) : Likewise.
23990 (set_fpsr) : Likewise.
23991 (get_fpsr) : Likewise.
23992 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23993 and UNSPECV_SET_FPSR.
23994 * doc/extend.texi (AARCH64 Built-in Functions) : Document
23995 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23996 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23997
23998 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23999
24000 PR rtl-optimization/60969
24001 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24002 constraints. Set up mem cost for NO_REGS case.
24003
24004 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
24005
24006 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24007
24008 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
24009
24010 * config/darwin.c: Include "lto-section-names.h".
24011 (LTO_SEGMENT_NAME): Don't define.
24012 * config/i386/winnt.c: Include "lto-section-names.h".
24013 * lto-streamer.c: Include "lto-section-names.h".
24014 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24015 * lto-wrapper.c: Include "lto-section-names.h".
24016 (LTO_SECTION_NAME_PREFIX): Don't define.
24017 * lto-section-names.h: New file.
24018 * cgraphunit.c: Include "lto-section-names.h".
24019
24020 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
24021
24022 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24023
24024 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
24025
24026 PR target/61208
24027 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24028
24029 2014-05-22 Nick Clifton <nickc@redhat.com>
24030
24031 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24032
24033 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
24034
24035 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24036 -> (T)A transformation to integer types.
24037
24038 2014-05-22 Teresa Johnson <tejohnson@google.com>
24039
24040 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24041 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24042 (gcov_rewrite): Use gcov_nonruntime_assert.
24043 (gcov_open): Ditto.
24044 (gcov_write_words): Ditto.
24045 (gcov_write_length): Ditto.
24046 (gcov_read_words): Use gcov_nonruntime_assert, and remove
24047 gcc_assert from IN_LIBGCOV code.
24048 (gcov_read_summary): Use gcov_error to flag profile corruption.
24049 (gcov_sync): Use gcov_nonruntime_assert.
24050 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24051 (gcov_histo_index): Use gcov_nonruntime_assert.
24052 (static void gcov_histogram_merge): Ditto.
24053 (compute_working_sets): Ditto.
24054 * gcov-io.h (gcov_nonruntime_assert): Define.
24055 (gcov_error): Define for !IN_LIBGCOV
24056
24057 2014-05-22 Richard Biener <rguenther@suse.de>
24058
24059 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24060 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24061 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24062 and deallocation site.
24063 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24064 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24065 passing through the incoming points-to set.
24066 (handle_lhs_call): Use flags argument instead of recomputing it.
24067 (find_func_aliases_for_call): Call handle_lhs_call with proper
24068 call return flags.
24069
24070 2014-05-22 Jakub Jelinek <jakub@redhat.com>
24071
24072 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24073 all padding bits in REAL_VALUE_TYPE are cleared.
24074
24075 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24076
24077 Cleanup and improve multipass_dfa_lookahead_guard
24078 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24079 (core2i7_first_cycle_multipass_begin,)
24080 (core2i7_first_cycle_multipass_issue,)
24081 (core2i7_first_cycle_multipass_backtrack): Update signature.
24082 * config/ia64/ia64.c
24083 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24084 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24085 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24086 hook definition.
24087 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24088 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
24089 values.
24090 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24091 return values.
24092 * doc/tm.texi: Regenerate.
24093 * doc/tm.texi.in
24094 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24095 * haifa-sched.c (ready_try): Make signed to allow negative values.
24096 (rebug_ready_list_1): Update.
24097 (choose_ready): Simplify.
24098 (sched_extend_ready_list): Update.
24099
24100 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24101
24102 Remove IA64 speculation tweaking flags
24103 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24104 speculation tuning flags.
24105 (msched-prefer-non-data-spec-insns,)
24106 (msched-prefer-non-control-spec-insns): Obsolete options.
24107 * haifa-sched.c (choose_ready): Remove handling of
24108 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24109 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24110 and PREFER_NON_DATA_SPEC.
24111 * sel-sched.c (process_spec_exprs): Remove handling of
24112 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24113
24114 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24115
24116 Improve scheduling debug output
24117 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24118 (advance_one_cycle): Update.
24119 (schedule_insn, queue_to_ready): Add debug printouts.
24120 (debug_ready_list_1): New static function.
24121 (debug_ready_list): Update.
24122 (max_issue): Add debug printouts.
24123 (dump_insn_stream): New static function.
24124 (schedule_block): Use it. Also better indent printouts.
24125
24126 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24127
24128 Fix sched_insn debug counter
24129 * haifa-sched.c (schedule_insn): Update.
24130 (struct haifa_saved_data): Add nonscheduled_insns_begin.
24131 (save_backtrack_point, restore_backtrack_point): Update.
24132 (first_nonscheduled_insn): New static function.
24133 (queue_to_ready, choose_ready): Use it.
24134 (schedule_block): Init nonscheduled_insns_begin.
24135 (sched_emit_insn): Update.
24136
24137
24138 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24139
24140 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24141 to GENERAL_REGS.
24142 (aarch64_secondary_reload) : LikeWise.
24143 (aarch64_class_max_nregs) : Remove CORE_REGS.
24144 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24145 (REG_CLASS_NAMES) : Likewise.
24146 (REG_CLASS_CONTENTS) : LikeWise.
24147 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24148
24149 2014-05-21 Guozhi Wei <carrot@google.com>
24150
24151 PR target/61202
24152 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24153 constraint.
24154 (vqdmulhq_n_s16): Likewise.
24155
24156 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24157
24158 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24159
24160 2014-05-21 Marek Polacek <polacek@redhat.com>
24161
24162 PR sanitizer/61272
24163 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24164
24165 2014-05-21 Martin Jambor <mjambor@suse.cz>
24166
24167 * doc/invoke.texi (Optimize Options): Document parameters
24168 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24169 ipa-cp-array-index-hint-bonus.
24170
24171 2014-05-21 Mark Wielaard <mjw@redhat.com>
24172
24173 PR debug/16063
24174 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24175 version >= 3 or not strict DWARF.
24176 * langhooks.h (struct lang_hooks_for_types): Add
24177 enum_underlying_base_type.
24178 * langhooks.c (lhd_enum_underlying_base_type): New function.
24179 * gcc/langhooks.h (struct lang_hooks_for_types): Add
24180 enum_underlying_base_type.
24181 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24182 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24183 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24184
24185 2014-05-21 Richard Biener <rguenther@suse.de>
24186
24187 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24188
24189 2014-05-21 John Marino <gnugcc@marino.st>
24190
24191 * config.gcc (*-*-dragonfly*): New target.
24192 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24193 * configure: Regenerate.
24194 * config/dragonfly-stdint.h: New.
24195 * config/dragonfly.h: New.
24196 * config/dragonfly.opt: New.
24197 * config/i386/dragonfly.h: New.
24198 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24199
24200 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24201
24202 * tree.def (VOID_CST): New.
24203 * tree-core.h (TI_VOID): New.
24204 * tree.h (void_node): New.
24205 * tree.c (tree_node_structure_for_code, tree_code_size)
24206 (iterative_hash_expr): Handle VOID_CST.
24207 (build_common_tree_nodes): Initialize void_node.
24208
24209 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
24210
24211 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24212 functions.
24213 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24214
24215 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24216 more places.
24217
24218 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24219 flag_reorder_blocks_and_partition.
24220 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24221
24222 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24223
24224 PR target/54236
24225 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
24226 constraints.
24227 (*addc_r_t): Add new insn_and_split.
24228
24229 2014-05-21 Jakub Jelinek <jakub@redhat.com>
24230
24231 PR middle-end/61252
24232 * omp-low.c (handle_simd_reference): New function.
24233 (lower_rec_input_clauses): Use it. Defer adding reference
24234 initialization even for reduction without placeholder if in simd,
24235 handle it properly later on.
24236
24237 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24238
24239 PR tree-optimization/60899
24240 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24241 assume all static symbols will have definition wile parsing and
24242 check the do have definition later in compilation; check that
24243 variable referring symbol will be output before concluding that
24244 reference is safe; be conservative for referring local statics;
24245 be more precise about when comdat is output in other partition.
24246
24247 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24248
24249 PR bootstrap/60984
24250 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24251 parameter.
24252 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24253 (ipa_inline): Loop inline_to_all_callers until no more aliases
24254 are removed.
24255
24256 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24257
24258 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24259 set writeonly flag only for vars actually written to.
24260
24261 2014-05-20 Dehao Chen <dehao@google.com>
24262
24263 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24264 and callee count to get clone count.
24265 * tree-inline.c (expand_call_inline): Use callee count instead of bb
24266 count in copy_body.
24267
24268 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
24269
24270 PR rtl-optimization/61243
24271 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24272
24273 2014-05-20 Xinliang David Li <davidxl@google.com>
24274
24275 * cgraphunit.c (walk_polymorphic_call_targets): Add
24276 dbgcnt and fopt-info support.
24277 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24278 * ipa-devirt.c (ipa_devirt): Ditto.
24279 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24280 * ipa.c (walk_polymorphic_call_targets): Ditto.
24281 * gimple-fold.c (fold_gimple_assign): Ditto.
24282 (gimple_fold_call): Ditto.
24283 * dbgcnt.def: New counter.
24284
24285 2014-05-20 DJ Delorie <dj@redhat.com>
24286
24287 * config/msp430/msp430.md (split): Don't allow subregs when
24288 splitting SImode adds.
24289 (andneghi): Fix subtraction logic.
24290 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24291
24292 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24293
24294 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24295 symbols.
24296 * except.c (switch_to_exception_section, resolve_unique_section,
24297 get_named_text_section, default_function_rodata_section,
24298 align_variable, get_block_for_decl, default_section_type_flags):
24299 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24300 * symtab.c (symtab_add_to_same_comdat_group,
24301 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24302 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24303 Likewise.
24304 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24305 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24306 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24307 (c6x_function_in_section_p): Likewise.
24308 * config/darwin.c (machopic_select_section): Likewise.
24309 * config/arm/arm.c (arm_function_in_section_p): Likewise.
24310 * config/mips/mips.c (mips_function_rodata_section): Likewise.
24311 * config/mep/mep.c (mep_select_section): LIkewise.
24312 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24313
24314 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
24315
24316 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24317 EH region of calls to pure functions that can throw an exception.
24318 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24319 (copy_reference_ops_from_call): Also copy the EH region of the call if
24320 it can throw an exception.
24321
24322 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24323
24324 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24325 nested VEC_SELECTs that are inverses of each other.
24326
24327 2014-05-20 Richard Biener <rguenther@suse.de>
24328
24329 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24330 (extract_and_process_scc_for_name): not here.
24331 (cond_dom_walker::before_dom_children): Only process
24332 stmts that end the BB in interesting ways.
24333 (run_scc_vn): Mark param uses as visited.
24334
24335 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24336
24337 * config/arm/arm.md (arith_shiftsi): Do not predicate for
24338 arm_restrict_it.
24339
24340 2014-05-20 Nick Clifton <nickc@redhat.com>
24341
24342 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24343 (msp430_gimplify_va_arg_expr): New function.
24344 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24345
24346 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24347 operand 0 in order to prevent confusion about the number of
24348 registers involved.
24349
24350 2014-05-20 Richard Biener <rguenther@suse.de>
24351
24352 PR tree-optimization/61221
24353 * tree-ssa-pre.c (el_to_update): Remove.
24354 (eliminate_dom_walker::before_dom_children): Handle released
24355 VDEFs by value-numbering them to the associated VUSE. Update
24356 stmt immediately for substituted call address.
24357 (eliminate): Remove delayed stmt updating code.
24358 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24359 possibly late re-numbered vuses.
24360 (vn_reference_lookup_2): Adjust.
24361 (vn_reference_lookup_pieces): Likewise.
24362 (vn_reference_lookup): Likewise.
24363
24364 2014-05-20 Richard Biener <rguenther@suse.de>
24365
24366 * config.gcc: Remove need_64bit_hwint.
24367 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24368 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24369 it to be true.
24370 * config.in: Regenerate.
24371 * configure: Likewise.
24372
24373 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
24374
24375 * doc/extend.texi: Create Label Attributes section,
24376 move all label attributes into it and reference it.
24377
24378 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
24379
24380 * arm.c (thumb1_reorg): When scanning backwards skip anything
24381 that's not a proper insn.
24382
24383 2014-05-19 Richard Biener <rguenther@suse.de>
24384
24385 PR tree-optimization/61221
24386 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24387 Do nothing for unreachable blocks.
24388 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24389 Improve unreachability detection.
24390
24391 2014-05-19 Richard Biener <rguenther@suse.de>
24392
24393 PR tree-optimization/61209
24394 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24395
24396 2014-05-19 Nick Clifton <nickc@redhat.com>
24397
24398 * except.c (init_eh): Fix computation of builtin setjmp buffer
24399 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24400
24401 2014-05-19 Richard Biener <rguenther@suse.de>
24402
24403 PR tree-optimization/61184
24404 * tree-vrp.c (is_negative_overflow_infinity): Use
24405 TREE_OVERFLOW_P and do that check first.
24406 (is_positive_overflow_infinity): Likewise.
24407 (is_overflow_infinity): Likewise.
24408 (vrp_operand_equal_p): Properly treat operands with
24409 differing overflow as not equal.
24410
24411 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
24412
24413 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24414 shift simplification where it was intended.
24415
24416 2014-05-19 Christian Bruel <christian.bruel@st.com>
24417
24418 PR target/61195
24419 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24420
24421 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
24422
24423 PR target/61084
24424 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24425 than wide_int.
24426
24427 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24428
24429 * reg-notes.def (CROSSING_JUMP): Likewise.
24430 * rtl.h (rtx_def): Update comment for jump flag.
24431 (CROSSING_JUMP_P): Define.
24432 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24433 of a REG_CROSSING_JUMP note.
24434 * cfghooks.c (tidy_fallthru_edges): Likewise.
24435 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24436 * emit-rtl.c (try_split): Likewise.
24437 * haifa-sched.c (sched_create_recovery_edges): Likewise.
24438 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24439 * jump.c (redirect_jump_2): Likewise.
24440 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24441 (relax_delay_slots): Likewise.
24442 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24443 (bbit_di): Likewise.
24444 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24445 * config/sh/sh.md (jump_compact): Likewise.
24446 * bb-reorder.c (rotate_loop): Likewise.
24447 (pass_duplicate_computed_gotos::execute): Likewise.
24448 (add_reg_crossing_jump_notes): Rename to...
24449 (update_crossing_jump_flags): ...this.
24450 (pass_partition_blocks::execute): Update accordingly.
24451
24452 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24453
24454 * tree.h: Remove extraneous template <>.
24455
24456 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24457
24458 * ipa.c (symtab_remove_unreachable_nodes): Remove
24459 symbol from comdat group if its body was eliminated.
24460 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24461 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24462 (symtab_unregister_node): ... this one.
24463 (verify_symtab_base): More strict checking of comdats.
24464 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24465
24466 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24467
24468 * tree-pass.h (make_pass_ipa_comdats): New pass.
24469 * timevar.def (TV_IPA_COMDATS): New timevar.
24470 * passes.def (pass_ipa_comdats): Add.
24471 * Makefile.in (OBJS): Add ipa-comdats.o
24472 * ipa-comdats.c: New file.
24473
24474 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24475
24476 * ipa.c (update_visibility_by_resolution_info): New function.
24477 (function_and_variable_visibility): Use it.
24478
24479 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24480
24481 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24482 New functions.
24483 (FOR_EACH_DEFINED_SYMBOL): New macro.
24484 (varpool_first_static_initializer, varpool_next_static_initializer,
24485 varpool_first_defined_variable, varpool_next_defined_variable):
24486 Fix comments.
24487 (symtab_in_same_comdat_p): Correctly deal with inline functions.
24488
24489 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24490
24491 * ggc-page.c (ggc_handle_finalizers): Add comment.
24492
24493 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24494
24495 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24496 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24497 (ggc_internal_cleared_alloc): Likewise.
24498 * ggc-page.c (finalizer): New class.
24499 (vec_finalizer): Likewise.
24500 (globals::finalizers): New member.
24501 (globals::vec_finalizers): Likewise.
24502 (ggc_internal_alloc): Record the finalizer if any for the block being
24503 allocated.
24504 (ggc_handle_finalizers): New function.
24505 (ggc_collect): Call ggc_handle_finalizers.
24506 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24507 finalizer.
24508 (ggc_internal_cleared_alloc): Likewise.
24509 (finalize): New function.
24510 (need_finalization_p): Likewise.
24511 (ggc_alloc): Install the type's destructor as the finalizer if it
24512 might do something.
24513 (ggc_cleared_alloc): Likewise.
24514 (ggc_vec_alloc): Likewise.
24515 (ggc_cleared_vec_alloc): Likewise.
24516
24517 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24518
24519 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24520
24521 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24522
24523 * alias.c (record_alias_subset): Adjust.
24524 * bitmap.c (bitmap_element_allocate): Likewise.
24525 (bitmap_gc_alloc_stat): Likewise.
24526 * cfg.c (init_flow): Likewise.
24527 (alloc_block): Likewise.
24528 (unchecked_make_edge): Likewise.
24529 * cfgloop.c (alloc_loop): Likewise.
24530 (flow_loops_find): Likewise.
24531 (rescan_loop_exit): Likewise.
24532 * cfgrtl.c (init_rtl_bb_info): Likewise.
24533 * cgraph.c (insert_new_cgraph_node_version): Likewise.
24534 (cgraph_allocate_node): Likewise.
24535 (cgraph_create_edge_1): Likewise.
24536 (cgraph_allocate_init_indirect_info): Likewise.
24537 * cgraphclones.c (cgraph_clone_edge): Likewise.
24538 * cgraphunit.c (add_asm_node): Likewise.
24539 (init_lowered_empty_function): Likewise.
24540 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24541 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24542 (alpha_use_linkage): Likewise.
24543 * config/arc/arc.c (arc_init_machine_status): Likewise.
24544 * config/arm/arm.c (arm_init_machine_status): Likewise.
24545 * config/avr/avr.c (avr_init_machine_status): Likewise.
24546 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24547 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24548 * config/cris/cris.c (cris_init_machine_status): Likewise.
24549 * config/darwin.c (machopic_indirection_name): Likewise.
24550 (darwin_build_constant_cfstring): Likewise.
24551 (darwin_enter_string_into_cfstring_table): Likewise.
24552 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24553 * config/frv/frv.c (frv_init_machine_status): Likewise.
24554 * config/i386/i386.c (get_dllimport_decl): Likewise.
24555 (ix86_init_machine_status): Likewise.
24556 (assign_386_stack_local): Likewise.
24557 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24558 (i386_pe_maybe_record_exported_symbol): Likewise.
24559 (i386_pe_record_stub): Likewise.
24560 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24561 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24562 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24563 (m32c_note_pragma_address): Likewise.
24564 * config/mep/mep.c (mep_init_machine_status): Likewise.
24565 (mep_note_pragma_flag): Likewise.
24566 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24567 (mips16_local_alias): Likewise.
24568 (mips_init_machine_status): Likewise.
24569 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24570 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24571 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24572 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24573 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24574 * config/pa/pa.c (pa_init_machine_status): Likewise.
24575 (pa_get_deferred_plabel): Likewise.
24576 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24577 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24578 (rs6000_init_machine_status): Likewise.
24579 (output_toc): Likewise.
24580 * config/s390/s390.c (s390_init_machine_status): Likewise.
24581 * config/score/score.c (score_output_external): Likewise.
24582 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24583 * config/spu/spu.c (spu_init_machine_status): Likewise.
24584 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24585 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24586 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24587 * coverage.c (coverage_end_function): Likewise.
24588 * dbxout.c (dbxout_init): Likewise.
24589 * doc/gty.texi: Don't mention variable_size attribute.
24590 * dwarf2cfi.c (new_cfi): Adjust.
24591 (new_cfi_row): Likewise.
24592 (copy_cfi_row): Likewise.
24593 (create_cie_data): Likewise.
24594 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24595 (new_loc_descr): Likewise.
24596 (find_AT_string_in_table): Likewise.
24597 (add_addr_table_entry): Likewise.
24598 (new_die): Likewise.
24599 (add_var_loc_to_decl): Likewise.
24600 (clone_die): Likewise.
24601 (clone_as_declaration): Likewise.
24602 (break_out_comdat_types): Likewise.
24603 (new_loc_list): Likewise.
24604 (add_loc_descr_to_each): Likewise.
24605 (add_location_or_const_value_attribute): Likewise.
24606 (add_linkage_name): Likewise.
24607 (lookup_filename): Likewise.
24608 (dwarf2out_var_location): Likewise.
24609 (new_line_info_table): Likewise.
24610 (dwarf2out_init): Likewise.
24611 (mem_loc_descriptor): Likewise.
24612 (loc_descriptor): Likewise.
24613 (add_const_value_attribute): Likewise.
24614 (tree_add_const_value_attribute): Likewise.
24615 (comp_dir_string): Likewise.
24616 (dwarf2out_vms_debug_main_pointer): Likewise.
24617 (string_cst_pool_decl): Likewise.
24618 * emit-rtl.c (set_mem_attrs): Likewise.
24619 (get_reg_attrs): Likewise.
24620 (start_sequence): Likewise.
24621 (init_emit): Likewise.
24622 (init_emit_regs): Likewise.
24623 * except.c (init_eh_for_function): Likewise.
24624 (gen_eh_region): Likewise.
24625 (gen_eh_region_catch): Likewise.
24626 (gen_eh_landing_pad): Likewise.
24627 (add_call_site): Likewise.
24628 * function.c (add_frame_space): Likewise.
24629 (insert_temp_slot_address): Likewise.
24630 (assign_stack_temp_for_type): Likewise.
24631 (get_hard_reg_initial_val): Likewise.
24632 (allocate_struct_function): Likewise.
24633 (prepare_function_start): Likewise.
24634 (types_used_by_var_decl_insert): Likewise.
24635 * gengtype.c (variable_size_p): Remove function.
24636 (enum alloc_quantity): Remove enum.
24637 (write_typed_alloc_def): Remove function.
24638 (write_typed_struct_alloc_def): Likewise.
24639 (write_typed_typedef_alloc_def): Likewise.
24640 (write_typed_alloc_defns): Likewise.
24641 (main): Adjust.
24642 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24643 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24644 * ggc.h (ggc_alloc): new function.
24645 (ggc_cleared_alloc): Likewise.
24646 (ggc_vec_alloc): Template on type of vector element, and remove
24647 element size argument.
24648 (ggc_cleared_vec_alloc): Likewise.
24649 * gimple.c (gimple_build_omp_for): Adjust.
24650 (gimple_copy): Likewise.
24651 * ipa-cp.c (get_replacement_map): Likewise.
24652 (find_aggregate_values_for_callers_subset): Likewise.
24653 (known_aggs_to_agg_replacement_list): Likewise.
24654 * ipa-devirt.c (get_odr_type): Likewise.
24655 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24656 (read_agg_replacement_chain): Likewise.
24657 * loop-iv.c (get_simple_loop_desc): Likewise.
24658 * lto-cgraph.c (input_node_opt_summary): Likewise.
24659 * lto-section-in.c (lto_new_in_decl_state): Likewise.
24660 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24661 (input_eh_region): Likewise.
24662 (input_eh_lp): Likewise.
24663 (input_cfg): Likewise.
24664 * optabs.c (set_optab_libfunc): Likewise.
24665 (init_tree_optimization_optabs): Likewise.
24666 (set_conv_libfunc): Likewise.
24667 * passes.c (do_per_function_toporder): Likewise.
24668 * rtl.h: Don't use variable_size gty attribute.
24669 * sese.c (if_region_set_false_region): Adjust.
24670 * stringpool.c (gt_pch_save_stringpool): Likewise.
24671 * target-globals.c (save_target_globals): Likewise.
24672 * toplev.c (general_init): Likewise.
24673 * trans-mem.c (record_tm_replacement): Likewise.
24674 (split_bb_make_tm_edge): Likewise.
24675 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24676 * tree-data-ref.h (lambda_vector_new): Likewise.
24677 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24678 * tree-iterator.c (tsi_link_before): Likewise.
24679 (tsi_link_after): Likewise.
24680 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24681 * tree-ssa-loop-niter.c (record_estimate): Likewise.
24682 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24683 * tree-ssa-operands.h: Don't use variable_size gty attribute.
24684 * tree-ssa.c (init_tree_ssa): Adjust.
24685 * tree-ssanames.c (set_range_info): Likewise.
24686 (get_ptr_info): Likewise.
24687 (duplicate_ssa_name_ptr_info): Likewise.
24688 (duplicate_ssa_name_range_info): Likewise.
24689 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24690 (unpack_ts_fixed_cst_value_fields): Likewise.
24691 * tree.c (build_fixed): Likewise.
24692 (build_real): Likewise.
24693 (build_string): Likewise.
24694 (decl_priority_info): Likewise.
24695 (decl_debug_expr_insert): Likewise.
24696 (decl_value_expr_insert): Likewise.
24697 (decl_debug_args_insert): Likewise.
24698 (type_hash_add): Likewise.
24699 (build_omp_clause): Likewise.
24700 * ubsan.c (decl_for_type_insert): Likewise.
24701 * varasm.c (get_unnamed_section): Likewise.
24702 (get_noswitch_section): Likewise.
24703 (get_section): Likewise.
24704 (get_block_for_section): Likewise.
24705 (create_block_symbol): Likewise.
24706 (build_constant_desc): Likewise.
24707 (create_constant_pool): Likewise.
24708 (force_const_mem): Likewise.
24709 (record_tm_clone_pair): Likewise.
24710 * varpool.c (varpool_create_empty_node): Likewise.
24711
24712 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24713
24714 * dwarf2out.c (tree_add_const_value_attribute): Call
24715 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24716 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24717 instead of ggc_internal_<x>alloc_stat.
24718 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24719 (ggc_realloc): Likewise.
24720 * ggc-none.c (ggc_internal_alloc): Likewise.
24721 (ggc_internal_cleared_alloc): Likewise.
24722 * ggc-page.c: Likewise.
24723 * ggc.h (ggc_internal_alloc_stat): Likewise.
24724 (ggc_internal_alloc): Remove macro.
24725 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24726 (ggc_internal_cleared_alloc): Remove macro.
24727 (GGC_RESIZEVEC): Adjust.
24728 (ggc_resizevar): Remove macro.
24729 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24730 (ggc_internal_cleared_vec_alloc_stat): Likewise.
24731 (ggc_internal_vec_cleared_alloc): Remove macro.
24732 (ggc_alloc_atomic_stat): Drop _stat suffix.
24733 (ggc_alloc_atomic): Remove macro.
24734 (ggc_alloc_cleared_atomic): Remove macro.
24735 (ggc_alloc_string_stat): Drop _stat suffix.
24736 (ggc_alloc_string): Remove macro.
24737 (ggc_alloc_rtx_def_stat): Adjust.
24738 (ggc_alloc_tree_node_stat): Likewise.
24739 (ggc_alloc_cleared_tree_node_stat): Likewise.
24740 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24741 (ggc_alloc_cleared_simd_clone_stat): Likewise.
24742 * gimple.c (gimple_build_omp_for): Likewise.
24743 (gimple_copy): Likewise.
24744 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24745 * toplev.c (realloc_for_line_map): Adjust.
24746 * tree-data-ref.h (lambda_vector_new): Likewise.
24747 * tree-phinodes.c (allocate_phi_node): Likewise.
24748 * tree.c (grow_tree_vec_stat): Likewise.
24749 * vec.h (va_gc::reserve): Adjust.
24750
24751 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
24752
24753 * config/microblaze/microblaze.c (break_handler): New Declaration.
24754 (microblaze_break_function_p,microblaze_is_break_handler): New.
24755 (compute_frame_size): Use microblaze_break_function_p.
24756 Add the test of break_handler.
24757 (microblaze_function_prologue) : Add the test of variable
24758 break_handler. Check the fnname by BREAK_HANDLER_NAME.
24759 (microblaze_function_epilogue) : Add the test of break_handler.
24760 (microblaze_globalize_label) : Add the test of break_handler.
24761 Check the name by BREAK_HANDLER_NAME.
24762
24763 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24764
24765 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24766 microblaze_is_break_handler test.
24767 (call_internal1,call_value_intern): Use microblaze_break_function_p.
24768 Use SYMBOL_REF_DECL.
24769
24770 * config/microblaze/microblaze-protos.h
24771 (microblaze_break_function_p,microblaze_is_break_handler):
24772 New Declaration.
24773
24774 * doc/extend.texi (MicroBlaze break_handler Functions): Document
24775 new MicroBlaze break_handler functions.
24776
24777 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24778
24779 * doc/extend.texi (Size of an asm): Move node text according
24780 to its @menu entry position.
24781
24782 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
24783
24784 PR tree-optimization/61140
24785 PR tree-optimization/61150
24786 PR tree-optimization/61197
24787 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24788
24789 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24790
24791 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
24792
24793 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
24794
24795 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24796 __SIZEOF_INT128__ is defined.
24797
24798 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24799
24800 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24801 (rs6000_delegitimize_address): Use it.
24802
24803 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24804
24805 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24806 inplace argument. Store the new address in the original MEM when true.
24807 * emit-rtl.c (change_address_1): Likewise.
24808 (adjust_address_1, adjust_automodify_address_1, offset_address):
24809 Update accordingly.
24810 * rtl.h (plus_constant): Add an inplace argument.
24811 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
24812 when true. Avoid generating (plus X (const_int 0)).
24813 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24814 in-place. Pass true to plus_constant.
24815 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24816
24817 2014-05-16 Dehao Chen <dehao@google.com>
24818
24819 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24820
24821 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24822
24823 PR target/54089
24824 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24825 patterns.
24826 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24827
24828 2014-05-16 Dehao Chen <dehao@google.com>
24829
24830 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24831 optimize_function_for_size_p.
24832 * regs.h (REG_FREQ_FROM_BB): Likewise.
24833
24834 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24835
24836 PR target/51244
24837 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24838 negt_reg_operand cases.
24839 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24840 predicate.
24841 * config/sh/predicates.md (cbranch_treg_value): Simplify.
24842
24843 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24844
24845 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24846 target variants.
24847
24848 2014-05-16 David Malcolm <dmalcolm@redhat.com>
24849
24850 Revert:
24851 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24852
24853 * tree-cfg.c (dump_function_to_file): Dump the return type of
24854 functions, in a line to itself before the function body, mimicking
24855 the layout of a C function.
24856
24857 2014-05-16 Dehao Chen <dehao@google.com>
24858
24859 * cfghooks.c (make_forwarder_block): Use direct computation to
24860 get fall-through edge's count and frequency.
24861
24862 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
24863
24864 * config/arc/arc.c (arc_init): Fix typo in error message.
24865 * config/i386/i386.c (ix86_expand_builtin): Likewise.
24866 (split_stack_prologue_scratch_regno): Likewise.
24867 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24868 word from error message.
24869
24870 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24871
24872 * ira-costs.c: Fix typo in comment.
24873
24874 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
24875
24876 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24877
24878 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
24879
24880 * varpool.c (dump_varpool_node): Dump write-only flag.
24881 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24882 write-only flag.
24883 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24884 write-only variables.
24885 * ipa.c (process_references): New function.
24886 (set_readonly_bit): New function.
24887 (set_writeonly_bit): New function.
24888 (clear_addressable_bit): New function.
24889 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24890 fix handling of aliases.
24891 * cgraph.h (struct varpool_node): Add writeonly flag.
24892
24893 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
24894
24895 PR rtl-optimization/60969
24896 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24897 Calculate costs for this case.
24898
24899 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
24900
24901 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24902 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24903
24904 2014-05-16 Richard Biener <rguenther@suse.de>
24905
24906 PR tree-optimization/61194
24907 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24908 bool patterns ending in a COND_EXPR.
24909
24910 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24911
24912 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24913
24914 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24915
24916 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24917 where we were unable to cost an RTX.
24918
24919 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24920
24921 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24922 HIGH, LO_SUM.
24923
24924 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24925 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24926
24927 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24928
24929 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24930 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24931
24932 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24933 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24934
24935 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24936 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24937
24938 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24939 operators.
24940
24941 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24942 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24943
24944 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24945 DIV/MOD.
24946
24947 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24948 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24949
24950 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24951 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24952
24953 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24954 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24955
24956 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24957 rotates and shifts.
24958
24959 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24960 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24961
24962 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
24963 ZERO_EXTEND and SIGN_EXTEND better.
24964
24965 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24966 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24967
24968 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
24969 logical operations.
24970
24971 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24972 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24973
24974 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
24975 costs when costing loads and stores to memory.
24976
24977 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24978 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
24979
24980 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24981 for SET RTX.
24982
24983 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24984
24985 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24986
24987 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24988 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24989
24990 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24991 to...
24992 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24993 well formed.
24994 (aarch64_rtx_mult_cost): New.
24995 (aarch64_rtx_costs): Use it, refactor as appropriate.
24996
24997 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24998 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24999
25000 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25001 emit instructions, return number of instructions which would
25002 be emitted.
25003 (aarch64_add_constant): Update call to aarch64_build_constant.
25004 (aarch64_output_mi_thunk): Likewise.
25005 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25006 a CONST_DOUBLE.
25007
25008 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25009
25010 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25011 (TARGET_RTX_COSTS): Call it.
25012
25013 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25014
25015 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25016 (cortexa57_vector_cost): Likewise.
25017 (cortexa57_tunings): Use them.
25018
25019 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25020
25021 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25022 (cpu_addrcost_table): Use it.
25023 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25024 (aarch64_address_cost): Rewrite using aarch64_classify_address,
25025 move it.
25026
25027 2014-05-16 Richard Biener <rguenther@suse.de>
25028
25029 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25030 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25031 (visit_phi): Ignore edges marked as not executable.
25032 (class cond_dom_walker): New.
25033 (cond_dom_walker::before_dom_children): Value-number
25034 control statements and mark successor edges as not
25035 executable if possible.
25036 (run_scc_vn): First walk all control statements in
25037 dominator order, marking edges as not executable.
25038 * tree-inline.c (copy_edges_for_bb): Be not confused
25039 about random edge flags.
25040
25041 2014-05-16 Richard Biener <rguenther@suse.de>
25042
25043 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25044
25045 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
25046
25047 PR target/61193
25048 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25049 (__TM_simple_begin): Use it.
25050 (__TM_begin): Likewise.
25051
25052 2014-05-15 Martin Jambor <mjambor@suse.cz>
25053
25054 PR ipa/61085
25055 * ipa-prop.c (update_indirect_edges_after_inlining): Check
25056 type_preserved flag when the indirect edge is polymorphic.
25057
25058 2014-05-15 Martin Jambor <mjambor@suse.cz>
25059
25060 PR tree-optimization/61090
25061 * tree-sra.c (sra_modify_expr): Pass the current gsi to
25062 build_ref_for_model.
25063
25064 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25065
25066 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25067 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25068
25069 2014-05-15 Jakub Jelinek <jakub@redhat.com>
25070
25071 PR tree-optimization/61158
25072 * fold-const.c (fold_binary_loc): If X is zero-extended and
25073 shiftc >= prec, make sure zerobits is all ones instead of
25074 invoking undefined behavior.
25075
25076 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25077
25078 * regcprop.h: New file.
25079 * regcprop.c (skip_debug_insn_p): New decl.
25080 (replace_oldest_value_reg): Check skip_debug_insn_p.
25081 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25082 * shrink-wrap.c: Include regcprop.h.
25083 (prepare_shrink_wrap): Call
25084 copyprop_hardreg_forward_bb_without_debug_insn.
25085
25086 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25087
25088 * shrink-wrap.h: Update comment.
25089 * shrink-wrap.c: Update comment.
25090 (next_block_for_reg): Rename to live_edge_for_reg.
25091 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25092 (move_insn_for_shrink_wrap): Split live_edge.
25093 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25094
25095 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25096
25097 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25098 Delete.
25099 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25100 * config/sparc/sparc.md (fptype_ut699): New attribute.
25101 (in_branch_delay): Return false if -mfix-ut699 is specified and
25102 fptype_ut699 is set to single.
25103 (truncdfsf2): Add fptype_ut699 attribute.
25104 (fix_truncdfsi2): Likewise.
25105 (floatsisf2): Change fptype attribute.
25106 (fix_truncsfsi2): Likewise.
25107 (negtf2_notv9): Delete.
25108 (negtf2_v9): Likewise.
25109 (negtf2_hq): New instruction.
25110 (negtf2): New instruction and splitter.
25111 (negdf2_notv9): Rewrite.
25112 (abstf2_notv9): Delete.
25113 (abstf2_hq_v9): Likewise.
25114 (abstf2_v9): Likewise.
25115 (abstf2_hq): New instruction.
25116 (abstf2): New instruction and splitter.
25117 (absdf2_notv9): Rewrite.
25118
25119 2014-05-14 Cary Coutant <ccoutant@google.com>
25120
25121 PR debug/61013
25122 * opts.c (common_handle_option): Don't special-case "-g".
25123 (set_debug_level): Default to at least level 2 with "-g".
25124
25125 2014-05-14 DJ Delorie <dj@redhat.com>
25126
25127 * config/msp430/msp430.c (msp430_builtin): Add
25128 MSP430_BUILTIN_DELAY_CYCLES.
25129 (msp430_init_builtins): Register void __delay_cycles(long long).
25130 (msp430_builtin_decl): Add it.
25131 (cg_magic_constant): New.
25132 (msp430_expand_delay_cycles): New.
25133 (msp430_expand_builtin): Call it.
25134 (msp430_print_operand_raw): Change integer printing from "int" to
25135 HOST_WIDE_INT.
25136 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25137 (delay_cycles_start): New.
25138 (delay_cycles_end): New.
25139 (delay_cycles_32): New.
25140 (delay_cycles_32x): New.
25141 (delay_cycles_16): New.
25142 (delay_cycles_16x): New.
25143 (delay_cycles_2): New.
25144 (delay_cycles_1): New.
25145 * doc/extend.texi: Document __delay_cycles().
25146
25147 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
25148
25149 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25150 length attribute computation.
25151
25152 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
25153
25154 PR debug/61188
25155 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25156
25157 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
25158
25159 PR target/61084
25160 * config/sparc/sparc.md: Fix types of low and high in DI constant
25161 splitter. Use gen_int_mode in some other splitters.
25162
25163 2014-05-14 Martin Jambor <mjambor@suse.cz>
25164
25165 PR ipa/60897
25166 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25167
25168 2014-05-14 James Norris <jnorris@codesourcery.com>
25169
25170 * omp-low.c (expand_parallel_call): Remove shadow variable.
25171 (expand_omp_taskreg): Likewise.
25172
25173 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
25174
25175 * common/config/i386/i386-common.c
25176 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25177 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25178 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25179 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25180 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25181 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25182 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25183 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25184 xsavecintrin.h, xsavesintrin.h.
25185 (x86_64-*-*): Ditto.
25186 * config/i386/clflushoptintrin.h: New.
25187 * config/i386/xsavecintrin.h: Ditto.
25188 * config/i386/xsavesintrin.h: Ditto.
25189 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25190 (bit_XSAVES): Ditto.
25191 (bit_XSAVES): Ditto.
25192 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25193 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25194 -mno-clflushopt.
25195 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25196 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25197 OPTION_MASK_ISA_XSAVES.
25198 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25199 -mxsavec, -mxsaves.
25200 (PTA_CLFLUSHOPT) Define.
25201 (PTA_XSAVEC): Ditto.
25202 (PTA_XSAVES): Ditto.
25203 (ix86_option_override_internal): Handle new options.
25204 (ix86_valid_target_attribute_inner_p): Ditto.
25205 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25206 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25207 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25208 (bdesc_special_args): Add __builtin_ia32_xsaves,
25209 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25210 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25211 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25212 (ix86_expand_builtin): Handle new builtins.
25213 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25214 (TARGET_CLFLUSHOPT_P): Ditto.
25215 (TARGET_XSAVEC): Ditto.
25216 (TARGET_XSAVEC_P): Ditto.
25217 (TARGET_XSAVES): Ditto.
25218 (TARGET_XSAVES_P): Ditto.
25219 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25220 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25221 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25222 (ANY_XRSTOR): New.
25223 (ANY_XRSTOR64): Ditto.
25224 (xrstor): Ditto.
25225 (xrstor): Change into <xrstor>.
25226 (xrstor_rex64): Change into <xrstor>_rex64.
25227 (xrstor64): Change into <xrstor>64
25228 (clflushopt): New.
25229 * config/i386/i386.opt (mclflushopt): New.
25230 (mxsavec): Ditto.
25231 (mxsaves): Ditto.
25232 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25233 xsavecintrin.h.
25234 * doc/invoke.texi: Document new options.
25235
25236 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25237
25238 PR rtl-optimization/60866
25239 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25240 Default it to -1. Pass it down to init_simplejump_data.
25241 (init_simplejump_data): New parameter old_seqno. Pass it down
25242 to get_seqno_for_a_jump.
25243 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
25244 initializing new jump seqno as a last resort. Add comment.
25245 (sel_redirect_edge_and_branch): Save old seqno of the conditional
25246 jump and pass it down to sel_init_new_insn.
25247 (sel_redirect_edge_and_branch_force): Likewise.
25248
25249 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
25250
25251 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25252 shifted values to avoid build warning.
25253
25254 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25255
25256 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25257 * cfgrtl.c (rtl_merge_blocks): Fix comment.
25258 (cfg_layout_merge_blocks): Likewise.
25259 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25260
25261 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25262
25263 PR rtl-optimization/60901
25264 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25265 bb predecessor belongs to the same scheduling region. Adjust comment.
25266
25267 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
25268
25269 * doc/sourcebuild.texi: (dfp_hw): Document.
25270 (p8vector_hw): Likewise.
25271 (powerpc_eabi_ok): Likewise.
25272 (powerpc_elfv2): Likewise.
25273 (powerpc_htm_ok): Likewise.
25274 (ppc_recip_hw): Likewise.
25275 (vsx_hw): Likewise.
25276
25277 2014-05-13 Cary Coutant <ccoutant@google.com>
25278
25279 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25280
25281 2014-05-13 David Malcolm <dmalcolm@redhat.com>
25282
25283 * gengtype-parse.c (require3): Eliminate in favor of...
25284 (require4): New.
25285 (require_template_declaration): Update to support optional single *
25286 on a type.
25287
25288 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25289 (create_user_defined_type): Handle a single level of explicit
25290 pointerness within template arguments.
25291 (struct write_types_data): Add field "kind".
25292 (filter_type_name): Handle "*" character.
25293 (write_user_func_for_structure_ptr): Require a write_types_data
25294 rather than just a prefix string, so that we can look up the kind
25295 of the wtd and use it as an index into wrote_user_func_for_ptr,
25296 ensuring that such functions are written at most once. Support
25297 subclasses by invoking the marking function of the ultimate base class.
25298 (write_user_func_for_structure_body): Require a write_types_data
25299 rather than just a prefix string, so that we can pass this to
25300 write_user_func_for_structure_ptr.
25301 (write_func_for_structure): Likewise.
25302 (ggc_wtd): Add initializer of new "kind" field.
25303 (pch_wtd): Likewise.
25304
25305 * gengtype.h (enum write_types_kinds): New.
25306 (struct type): Add field wrote_user_func_for_ptr to the "s"
25307 union member.
25308
25309 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25310
25311 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25312 instead of const_binop.
25313 (fold_binary_loc): Likewise.
25314
25315 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25316
25317 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25318 calculation to match get_ref_base_and_extent.
25319
25320 2014-05-13 Catherine Moore <clm@codesourcery.com>
25321 Sandra Loosemore <sandra@codesourcery.com>
25322
25323 * configure.ac: Fix assembly for explicit JALR relocation check.
25324 * configure: Regenerate.
25325
25326 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25327
25328 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25329 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25330 Remove associated type declarations and initialisations.
25331 (arm_expand_neon_builtin): Likewise.
25332 (neon_emit_pair_result_insn): Delete.
25333 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25334 * config/arm/neon.md (neon_vtrn<mode>): Delete.
25335 (neon_vzip<mode>): Likewise.
25336 (neon_vuzp<mode>): Likewise.
25337
25338 2014-05-13 Richard Biener <rguenther@suse.de>
25339
25340 PR ipa/60973
25341 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25342 it needs revisiting whether the call still may be tail-called.
25343
25344 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25345
25346 * rtl.def (SYMBOL_REF): Remove middle "0" field.
25347 * rtl.h (block_symbol): Reduce number of fields to 2.
25348 (rtx_def): Add u2.symbol_ref_flags.
25349 (SYMBOL_REF_FLAGS): Use it.
25350 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25351 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25352 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25353 Lower index of SYMBOL_REF_DATA.
25354 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25355 Print SYMBOL_REF_FLAGS at the same time.
25356 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25357
25358 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25359
25360 * rtl.def (VAR_LOCATION): Remove "i" field.
25361 * rtl.h (rtx_def): Add u2.var_location_status.
25362 (PAT_VAR_LOCATION_STATUS): Use it.
25363 (gen_rtx_VAR_LOCATION): Declare.
25364 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25365 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25366 * var-tracking.c (emit_note_insn_var_location): Remove casts.
25367
25368 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25369
25370 * rtl.def (scratch): Fix outdated comment and remove "0" field.
25371 * gengtype.c (adjust_field_rtx_def): Update accordingly.
25372
25373 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25374
25375 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25376 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25377 * rtl.h (rtx_def): Add insn_uid to u2 field.
25378 (RTX_FLAG_CHECK8): Delete in favor of...
25379 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25380 (INSN_DELETED_P): Update accordingly.
25381 (INSN_UID): Use u2.insn_uid.
25382 (INSN_CHAIN_CODE_P): Define.
25383 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25384 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25385 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25386 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25387 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25388 indices accordingly.
25389 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25390 Update indices for insn-chain rtxes.
25391 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25392 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25393 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25394 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25395 * combine.c (try_combine): Likewise.
25396 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25397
25398 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25399
25400 * rtl.def (REG): Remove middle field.
25401 * rtl.h (rtx_def): Add orignal_regno to u2.
25402 (ORIGINAL_REGNO): Use it instead of field 1.
25403 (REG_ATTRS): Lower field index accordingly.
25404 * gengtype.c (adjust_field_rtx_def): Remove handling of
25405 ORIGINAL_REGNO. Move REG_ATTRS index down.
25406 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25407 code that prints the REGNO.
25408
25409 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25410
25411 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25412 GENERATOR_FILE.
25413
25414 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25415
25416 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25417
25418 2014-05-13 Bin Cheng <bin.cheng@arm.com>
25419
25420 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25421 (alloc_iv): Lower base expressions containing ADDR_EXPR.
25422
25423 2014-05-13 Ian Bolton <ian.bolton@arm.com>
25424
25425 * config/aarch64/aarch64-protos.h
25426 (aarch64_hard_regno_caller_save_mode): New prototype.
25427 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25428 New function.
25429 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25430
25431 2014-05-13 Christian Bruel <christian.bruel@st.com>
25432
25433 * target.def (mode_switching): New hook vector.
25434 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25435 (mode_exit, modepriority_to_mode): Likewise.
25436 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25437 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25438 * target.h: Include tm.h and hard-reg-set.h.
25439 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25440 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25441 * doc/tm.texi Regenerate.
25442 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25443 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25444 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25445 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25446 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25447 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25448 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25449 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25450 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25451 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25452 (ix86_emit_mode_set): Hookify.
25453 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25454 Delete.
25455 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25456 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25457 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25458 (epiphany_mode_priority_to_mode): Remove declaration.
25459 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25460 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25461 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25462 Likewise.
25463 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
25464 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25465 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25466
25467 2014-05-13 Jakub Jelinek <jakub@redhat.com>
25468
25469 PR target/61060
25470 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25471 is const0_rtx, return immediately. Don't test count == 0 when
25472 it is always true.
25473
25474 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25475
25476 * Makefile.in: add shrink-wrap.o.
25477 * config/i386/i386.c: include "shrink-wrap.h"
25478 * function.c: Likewise.
25479 (requires_stack_frame_p, next_block_for_reg,
25480 move_insn_for_shrink_wrap, prepare_shrink_wrap,
25481 dup_block_and_redirect): Move to shrink-wrap.c
25482 (thread_prologue_and_epilogue_insns): Extract three code segments
25483 as functions in shrink-wrap.c
25484 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25485 shrink-wrap.h
25486 * shrink-wrap.c: New file.
25487 * shrink-wrap.h: New file.
25488
25489 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25490
25491 * doc/extend.texi: Reflect current numbers of pragmas. Remove
25492 reference to Solaris.
25493
25494 2014-05-12 Mike Stump <mikestump@comcast.net>
25495
25496 PR other/31778
25497 * genattrtab.c (filename): Add.
25498 (convert_set_attr_alternative): Improve error message.
25499 (check_defs): Restore read_md_filename for error messages.
25500 (gen_insn): Save filename.
25501
25502 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
25503
25504 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25505 -fno-local-ivars and -fivar-visibility.
25506 * c-family/c.opt: Make -Wshadow also implicitly enable
25507 -Wshadow-ivar.
25508
25509 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25510
25511 * doc/tm.texi: Remove reference to deleted macro.
25512 * doc/tm.texi.in: Likewise.
25513
25514 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25515
25516 PR target/60991
25517 * config/avr/avr.c (avr_out_store_psi): Use correct constant
25518 to restore Y.
25519
25520 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
25521
25522 PR libgcc/61152
25523 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25524 * config/arm/aout.h (License): Same.
25525 * config/arm/bpabi.h (License): Same.
25526 * config/arm/elf.h (License): Same.
25527 * config/arm/linux-elf.h (License): Same.
25528 * config/arm/linux-gas.h (License): Same.
25529 * config/arm/netbsd-elf.h (License): Same.
25530 * config/arm/uclinux-eabi.h (License): Same.
25531 * config/arm/uclinux-elf.h (License): Same.
25532 * config/arm/vxworks.h (License): Same.
25533
25534 2014-05-11 Jakub Jelinek <jakub@redhat.com>
25535
25536 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25537 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25538 number of operands to 3.
25539 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25540 * tree-nested.c (convert_nonlocal_omp_clauses,
25541 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25542 * gimplify.c (gimplify_scan_omp_clauses): Handle
25543 OMP_CLAUSE_LINEAR_STMT.
25544 * omp-low.c (lower_rec_input_clauses): Fix typo.
25545 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25546 cast between Fortran boolean_type_node and C _Bool if
25547 needed.
25548
25549 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
25550
25551 PR tree-optimization/61136
25552 * wide-int.h (multiple_of_p): Define a version that doesn't return
25553 the quotient.
25554 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25555 integer_zerop/const_binop pair.
25556 (multiple_of_p): Likewise, converting both operands to widest_int
25557 precision.
25558
25559 2014-05-09 Teresa Johnson <tejohnson@google.com>
25560
25561 * cgraphunit.c (analyze_functions): Use correct dump file.
25562
25563 2014-05-09 Florian Weimer <fweimer@redhat.com>
25564
25565 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25566 expand_used_vars.
25567 (stack_protect_return_slot_p): New function.
25568 (expand_used_vars): Call stack_protect_decl_p and
25569 stack_protect_return_slot_p for -fstack-protector-strong.
25570
25571 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
25572 Andrew Haley <aph@redhat.com>
25573 Richard Sandiford <rdsandiford@googlemail.com>
25574
25575 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25576 pages.
25577
25578 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
25579
25580 PR middle-end/61111
25581 * fold-const.c (fold_binary_loc): Changed width of mask.
25582
25583 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25584
25585 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25586 unsigned int initializers for regno_in, regno_out.
25587
25588 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25589
25590 PR target/61055
25591 * config/avr/avr.md (cc): Add new attribute set_vzn.
25592 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25593 Set cc insn attribute to set_vzn instead of set_zn for alternatives
25594 with INC, DEC or NEG.
25595 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25596 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25597 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25598
25599 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25600
25601 Revert:
25602 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25603
25604 * wide-int.cc (UTItype): Define.
25605 (UDWtype): Define for appropriate W_TYPE_SIZE.
25606
25607 2014-05-09 Richard Biener <rguenther@suse.de>
25608
25609 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25610 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25611 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25612 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25613 ssa_propagate): Adjust.
25614
25615 2014-05-08 Jeff Law <law@redhat.com>
25616
25617 PR tree-optimization/61009
25618 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25619 tri-state rather than a boolean. When a block is too big to
25620 thread through, inform caller via negative return value.
25621 (thread_across_edge): If a block was too big for normal threading,
25622 then it's too big for a joiner too, so remove temporary equivalences
25623 and return immediately.
25624
25625 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
25626 Matthias Klose <doko@ubuntu.com>
25627
25628 PR driver/61106
25629 * optc-gen.awk: Fix option handling for -Wunused-parameter.
25630
25631 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25632
25633 PR target/59952
25634 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25635
25636 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25637
25638 PR target/61092
25639 * config/alpha/alpha.c: Include gimple-iterator.h.
25640 (alpha_gimple_fold_builtin): New function. Move
25641 ALPHA_BUILTIN_UMULH folding from ...
25642 (alpha_fold_builtin): ... here.
25643 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25644
25645 2014-05-08 Wei Mi <wmi@google.com>
25646
25647 PR target/58066
25648 * config/i386/i386.c (ix86_compute_frame_layout): Update
25649 preferred_stack_boundary for call, expanded from tls descriptor.
25650 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25651 to depend on SP register.
25652 (*tls_local_dynamic_base_32_gnu): Ditto.
25653 (*tls_local_dynamic_32_once): Ditto.
25654 (tls_global_dynamic_64_<mode>): Set
25655 ix86_tls_descriptor_calls_expanded_in_cfun.
25656 (tls_local_dynamic_base_64_<mode>): Ditto.
25657 (tls_global_dynamic_32): Set
25658 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25659 to depend on SP register.
25660 (tls_local_dynamic_base_32): Ditto.
25661
25662 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25663
25664 * config/arm/arm_neon.h: Update comment.
25665 * config/arm/neon-docgen.ml: Delete.
25666 * config/arm/neon-gen.ml: Delete.
25667 * doc/arm-neon-intrinsics.texi: Update comment.
25668
25669 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25670
25671 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25672 and v4sf versions.
25673 (vand, vorr, veor, vorn, vbic): Remove.
25674 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25675 iterator.
25676 (neon_vsub_unspec): Likewise.
25677 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25678
25679 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25680
25681 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25682 (vadd_s16): Likewise.
25683 (vadd_s32): Likewise.
25684 (vadd_f32): Likewise.
25685 (vadd_u8): Likewise.
25686 (vadd_u16): Likewise.
25687 (vadd_u32): Likewise.
25688 (vadd_s64): Likewise.
25689 (vadd_u64): Likewise.
25690 (vaddq_s8): Likewise.
25691 (vaddq_s16): Likewise.
25692 (vaddq_s32): Likewise.
25693 (vaddq_s64): Likewise.
25694 (vaddq_f32): Likewise.
25695 (vaddq_u8): Likewise.
25696 (vaddq_u16): Likewise.
25697 (vaddq_u32): Likewise.
25698 (vaddq_u64): Likewise.
25699 (vmul_s8): Likewise.
25700 (vmul_s16): Likewise.
25701 (vmul_s32): Likewise.
25702 (vmul_f32): Likewise.
25703 (vmul_u8): Likewise.
25704 (vmul_u16): Likewise.
25705 (vmul_u32): Likewise.
25706 (vmul_p8): Likewise.
25707 (vmulq_s8): Likewise.
25708 (vmulq_s16): Likewise.
25709 (vmulq_s32): Likewise.
25710 (vmulq_f32): Likewise.
25711 (vmulq_u8): Likewise.
25712 (vmulq_u16): Likewise.
25713 (vmulq_u32): Likewise.
25714 (vsub_s8): Likewise.
25715 (vsub_s16): Likewise.
25716 (vsub_s32): Likewise.
25717 (vsub_f32): Likewise.
25718 (vsub_u8): Likewise.
25719 (vsub_u16): Likewise.
25720 (vsub_u32): Likewise.
25721 (vsub_s64): Likewise.
25722 (vsub_u64): Likewise.
25723 (vsubq_s8): Likewise.
25724 (vsubq_s16): Likewise.
25725 (vsubq_s32): Likewise.
25726 (vsubq_s64): Likewise.
25727 (vsubq_f32): Likewise.
25728 (vsubq_u8): Likewise.
25729 (vsubq_u16): Likewise.
25730 (vsubq_u32): Likewise.
25731 (vsubq_u64): Likewise.
25732 (vand_s8): Likewise.
25733 (vand_s16): Likewise.
25734 (vand_s32): Likewise.
25735 (vand_u8): Likewise.
25736 (vand_u16): Likewise.
25737 (vand_u32): Likewise.
25738 (vand_s64): Likewise.
25739 (vand_u64): Likewise.
25740 (vandq_s8): Likewise.
25741 (vandq_s16): Likewise.
25742 (vandq_s32): Likewise.
25743 (vandq_s64): Likewise.
25744 (vandq_u8): Likewise.
25745 (vandq_u16): Likewise.
25746 (vandq_u32): Likewise.
25747 (vandq_u64): Likewise.
25748 (vorr_s8): Likewise.
25749 (vorr_s16): Likewise.
25750 (vorr_s32): Likewise.
25751 (vorr_u8): Likewise.
25752 (vorr_u16): Likewise.
25753 (vorr_u32): Likewise.
25754 (vorr_s64): Likewise.
25755 (vorr_u64): Likewise.
25756 (vorrq_s8): Likewise.
25757 (vorrq_s16): Likewise.
25758 (vorrq_s32): Likewise.
25759 (vorrq_s64): Likewise.
25760 (vorrq_u8): Likewise.
25761 (vorrq_u16): Likewise.
25762 (vorrq_u32): Likewise.
25763 (vorrq_u64): Likewise.
25764 (veor_s8): Likewise.
25765 (veor_s16): Likewise.
25766 (veor_s32): Likewise.
25767 (veor_u8): Likewise.
25768 (veor_u16): Likewise.
25769 (veor_u32): Likewise.
25770 (veor_s64): Likewise.
25771 (veor_u64): Likewise.
25772 (veorq_s8): Likewise.
25773 (veorq_s16): Likewise.
25774 (veorq_s32): Likewise.
25775 (veorq_s64): Likewise.
25776 (veorq_u8): Likewise.
25777 (veorq_u16): Likewise.
25778 (veorq_u32): Likewise.
25779 (veorq_u64): Likewise.
25780 (vbic_s8): Likewise.
25781 (vbic_s16): Likewise.
25782 (vbic_s32): Likewise.
25783 (vbic_u8): Likewise.
25784 (vbic_u16): Likewise.
25785 (vbic_u32): Likewise.
25786 (vbic_s64): Likewise.
25787 (vbic_u64): Likewise.
25788 (vbicq_s8): Likewise.
25789 (vbicq_s16): Likewise.
25790 (vbicq_s32): Likewise.
25791 (vbicq_s64): Likewise.
25792 (vbicq_u8): Likewise.
25793 (vbicq_u16): Likewise.
25794 (vbicq_u32): Likewise.
25795 (vbicq_u64): Likewise.
25796 (vorn_s8): Likewise.
25797 (vorn_s16): Likewise.
25798 (vorn_s32): Likewise.
25799 (vorn_u8): Likewise.
25800 (vorn_u16): Likewise.
25801 (vorn_u32): Likewise.
25802 (vorn_s64): Likewise.
25803 (vorn_u64): Likewise.
25804 (vornq_s8): Likewise.
25805 (vornq_s16): Likewise.
25806 (vornq_s32): Likewise.
25807 (vornq_s64): Likewise.
25808 (vornq_u8): Likewise.
25809 (vornq_u16): Likewise.
25810 (vornq_u32): Likewise.
25811 (vornq_u64): Likewise.
25812
25813 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25814
25815 * wide-int.cc (UTItype): Define.
25816 (UDWtype): Define for appropriate W_TYPE_SIZE.
25817
25818 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
25819
25820 PR tree-optimization/59100
25821 * tree-ssa-phiopt.c: Include tree-inline.h.
25822 (neutral_element_p, absorbing_element_p): New functions.
25823 (value_replacement): Handle conditional binary operations with a
25824 neutral or absorbing element.
25825
25826 2014-05-08 Richard Biener <rguenther@suse.de>
25827
25828 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25829 folding the expression.
25830 (valueize_expr): Remove.
25831 (visit_reference_op_load): Do not valueize the result of
25832 vn_get_expr_for.
25833 (simplify_binary_expression): Likewise.
25834 (simplify_unary_expression): Likewise.
25835
25836 2014-05-08 Richard Biener <rguenther@suse.de>
25837
25838 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25839 looking at TYPE_ARG_TYPES.
25840
25841 2014-05-08 Richard Biener <rguenther@suse.de>
25842
25843 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25844 pointer propagation special-case.
25845
25846 2014-05-08 Bin Cheng <bin.cheng@arm.com>
25847
25848 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25849 core part of address expressions.
25850
25851 2014-05-08 Alan Modra <amodra@gmail.com>
25852
25853 PR target/60737
25854 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25855 loads and stores when -mno-strict-align at any alignment.
25856 (expand_block_clear): Similarly. Also correct calculation of
25857 instruction count.
25858
25859 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
25860
25861 PR middle-end/39246
25862 * tree-complex.c (expand_complex_move): Keep line info when expanding
25863 complex move.
25864 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25865 of complex expression. Use new argument to display correct location
25866 for values coming from phi statement.
25867 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25868 (warn_uninitialized_phi): Pass location of phi argument to
25869 warn_uninit.
25870 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25871 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25872
25873 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25874
25875 * config/rs6000/predicates.md (indexed_address_mem): New.
25876 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25877 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25878 fpstore_ux, fpstore_u.
25879 (sign_extend, indexed, update): New.
25880 (cell_micro): Adjust.
25881 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25882 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25883 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25884 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25885 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25886 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25887 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25888 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25889 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25890 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25891 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25892 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25893 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25894 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25895 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25896
25897 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25898 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25899 *vsx_extract_<mode>_store): Adjust.
25900 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25901 is_cracked_insn, insn_must_be_first_in_group,
25902 insn_must_be_last_in_group): Adjust.
25903
25904 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25905 Adjust.
25906 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25907 ppc440-fpstore): Adjust.
25908 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25909 ppc476-fpstore): Adjust.
25910 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25911 ppc601-fpstore): Adjust.
25912 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25913 Adjust.
25914 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25915 Adjust.
25916 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25917 ppc7450-fpstore): Adjust.
25918 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25919 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25920 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25921 Adjust.
25922 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25923 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25924 cell-fpstore, cell-fpstore-update): Adjust.
25925 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25926 ppce300c3_store, ppce300c3_fpstore): Adjust.
25927 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25928 e500mc_fpstore): Adjust.
25929 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25930 e500mc64_store, e500mc64_fpstore): Adjust.
25931 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25932 e5500_fpstore): Adjust.
25933 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25934 e6500_fpstore): Adjust.
25935 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25936 Adjust.
25937 * config/rs6000/power4.md (power4-load, power4-load-ext,
25938 power4-load-ext-update, power4-load-ext-update-indexed,
25939 power4-load-update-indexed, power4-load-update, power4-fpload,
25940 power4-fpload-update, power4-store, power4-store-update,
25941 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25942 Adjust.
25943 * config/rs6000/power5.md (power5-load, power5-load-ext,
25944 power5-load-ext-update, power5-load-ext-update-indexed,
25945 power5-load-update-indexed, power5-load-update, power5-fpload,
25946 power5-fpload-update, power5-store, power5-store-update,
25947 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25948 Adjust.
25949 * config/rs6000/power6.md (power6-load, power6-load-ext,
25950 power6-load-update, power6-load-update-indexed,
25951 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25952 power6-fpload-update, power6-store, power6-store-update,
25953 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25954 Adjust.
25955 * config/rs6000/power7.md (power7-load, power7-load-ext,
25956 power7-load-update, power7-load-update-indexed,
25957 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25958 power7-fpload-update, power7-store, power7-store-update,
25959 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25960 Adjust.
25961 * config/rs6000/power8.md (power8-load, power8-load-update,
25962 power8-load-ext, power8-load-ext-update, power8-fpload,
25963 power8-fpload-update, power8-store, power8-store-update-indexed,
25964 power8-fpstore, power8-fpstore-update): Adjust.
25965 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
25966 Adjust.
25967 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
25968 titan_lsu_store, titan_lsu_fpstore): Adjust.
25969 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
25970
25971 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25972
25973 PR target/60884
25974 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
25975 unrolled byte insns. Emit address increments after move insns.
25976
25977 2014-05-07 David Malcolm <dmalcolm@redhat.com>
25978
25979 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25980 const_gimple, rather than a gimple.
25981 (gimple_call_builtin_p): Likewise, for the three variants.
25982
25983 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25984 (gimple_call_builtin_p): Likewise, for the three variants.
25985
25986 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25987
25988 PR tree-optimization/61095
25989 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25990
25991 2014-05-07 Richard Biener <rguenther@suse.de>
25992
25993 PR tree-optimization/61034
25994 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25995 (maybe_skip_until): Use translate to take into account
25996 lattices when trying to do disambiguations.
25997 (get_continuation_for_phi_1): Likewise.
25998 (get_continuation_for_phi): Adjust for added translate arguments.
25999 (walk_non_aliased_vuses): Likewise.
26000 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26001 (walk_non_aliased_vuses): Likewise.
26002 (call_may_clobber_ref_p_1): Declare.
26003 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26004 calls. Stop early if we are only supposed to disambiguate.
26005 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26006
26007 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
26008
26009 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26010 Emit an error when the function has arguments.
26011
26012 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26013
26014 * cfgloop.h (unswitch_loops): Remove.
26015 * doc/passes.texi: Remove references to loop-unswitch.c
26016 * timevar.def (TV_LOOP_UNSWITCH): Remove.
26017
26018 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
26019
26020 * tree-vect-data-refs.c (vect_grouped_load_supported): New
26021 check for loads group of length 3.
26022 (vect_permute_load_chain): New permutations for loads group of
26023 length 3.
26024 * tree-vect-stmts.c (vect_model_load_cost): Change cost
26025 of vec_perm_shuffle for the new permutations.
26026
26027 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
26028
26029 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26030 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26031 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26032 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26033 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26034 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26035 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26036 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26037
26038 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26039
26040 * loop-unswitch.c: Delete.
26041
26042 2014-05-07 Richard Biener <rguenther@suse.de>
26043
26044 * config.gcc: Always set need_64bit_hwint to yes.
26045
26046 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
26047
26048 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26049 of using optimize_size.
26050
26051 2014-05-06 Mike Stump <mikestump@comcast.net>
26052
26053 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26054
26055 2014-05-06 Joseph Myers <joseph@codesourcery.com>
26056
26057 * config/i386/sse.md (*mov<mode>_internal)
26058 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26059 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26060 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26061 (*<code><mode>3, *andnot<mode>3<mask_name>)
26062 (<mask_codefor><code><mode>3<mask_name>): Only consider
26063 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26064
26065 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26066
26067 Revert:
26068 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26069
26070 * lra-constraints.c (valid_address_p): Move earlier in file.
26071 Add a constraint argument to the address_info version.
26072 (satisfies_memory_constraint_p): New function.
26073 (satisfies_address_constraint_p): Likewise.
26074 (process_alt_operands, curr_insn_transform): Use them.
26075 (process_address): Pass the constraint to valid_address_p when
26076 checking address operands.
26077
26078 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
26079
26080 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26081 to their respective blocks. Fix inadvertent use of "node".
26082
26083 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26084
26085 * emit-rtl.c (init_derived_machine_modes): New functionm, split
26086 out from...
26087 (init_emit_once): ...here.
26088 * rtl.h (init_derived_machine_modes): Declare.
26089 * toplev.c (do_compile): Call it even if no_backend.
26090
26091 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
26092 Mike Stump <mikestump@comcast.net>
26093 Richard Sandiford <rdsandiford@googlemail.com>
26094 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26095
26096 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26097 (rtx_equal_for_memref_p): Update comment.
26098 (adjust_offset_for_component_ref): Use wide-int interfaces.
26099 * builtins.c (get_object_alignment_2): Likewise.
26100 (c_readstr): Likewise.
26101 (target_char_cast): Add comment.
26102 (determine_block_size): Use wide-int interfaces.
26103 (expand_builtin_signbit): Likewise.
26104 (fold_builtin_int_roundingfn): Likewise.
26105 (fold_builtin_bitop): Likewise.
26106 (fold_builtin_bswap): Likewise.
26107 (fold_builtin_logarithm): Use signop.
26108 (fold_builtin_pow): Likewise.
26109 (fold_builtin_memory_op): Use wide-int interfaces.
26110 (fold_builtin_object_size): Likewise.
26111 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26112 nb_iterations_estimate.
26113 (record_niter_bound): Use wide-int interfaces.
26114 (get_estimated_loop_iterations_int): Likewise.
26115 (get_estimated_loop_iterations): Likewise.
26116 (get_max_loop_iterations): Likewise.
26117 * cfgloop.h: Include wide-int.h.
26118 (struct nb_iter_bound): Change bound to widest_int.
26119 (struct loop): Change nb_iterations_upper_bound and
26120 nb_iterations_estimate to widest_int.
26121 (record_niter_bound): Switch to use widest_int.
26122 (get_estimated_loop_iterations): Likewise.
26123 (get_max_loop_iterations): Likewise.
26124 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26125 update for wide-int.
26126 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26127 * combine.c (try_combine): Likewise.
26128 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26129 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26130 interfaces.
26131 (aarch64_float_const_representable_p): Likewise.
26132 * config/arc/arc.c: Include wide-int.h.
26133 (arc_can_use_doloop_p): Use wide-int interfaces.
26134 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26135 (vfp3_const_double_index): Likewise.
26136 * config/avr/avr.c (avr_out_round): Likewise.
26137 (avr_fold_builtin): Likewise.
26138 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26139 (bfin_can_use_doloop_p): Likewise.
26140 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26141 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26142 * config/i386/i386.c: Include wide-int.h.
26143 (ix86_data_alignment): Use wide-int interfaces.
26144 (ix86_local_alignment): Likewise.
26145 (ix86_emit_swsqrtsf): Update real_from_integer.
26146 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26147 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26148 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26149 (zero_constant): Likewise.
26150 (input_operand): Likewise.
26151 (splat_input_operand): Likewise.
26152 (non_logical_cint_operand): Change const_double to const_wide_int.
26153 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26154 (easy_altivec_constant): Remove comment.
26155 (paired_expand_vector_init): Use CONSTANT_P.
26156 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26157 (rs6000_emit_move): Update checks.
26158 (rs6000_aggregate_candidate): Use wide-int interfaces.
26159 (rs6000_expand_ternop_builtin): Likewise.
26160 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26161 (rs6000_assemble_integer): Likewise.
26162 (rs6000_hash_constant): Likewise.
26163 (output_toc): Likewise.
26164 (rs6000_rtx_costs): Likewise.
26165 (rs6000_emit_swrsqrt); Update call to real_from_integer.
26166 * config/rs6000/rs6000-c.c: Include wide-int.h.
26167 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26168 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26169 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26170 Handle CONST_WIDE_INT.
26171 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26172 Use tree_fits_uhwi_p.
26173 * config/sparc/sparc.c: Include wide-int.h.
26174 (sparc_fold_builtin): Use wide-int interfaces.
26175 * config/vax/vax.c: Include wide-int.h.
26176 (vax_float_literal): Use real_from_integer.
26177 * coretypes.h (struct hwivec_def): New.
26178 (hwivec): New.
26179 (const_hwivec): New.
26180 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26181 (equiv_constant): Handle CONST_WIDE_INT.
26182 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26183 (cselib_hash_rtx): Handle CONST_WIDE_INT.
26184 * dbxout.c (stabstr_U): Use wide-int interfaces.
26185 (dbxout_type): Update to use cst_fits_shwi_p.
26186 * defaults.h (LOG2_BITS_PER_UNIT): Define.
26187 (TARGET_SUPPORTS_WIDE_INT): Add default.
26188 * dfp.c: Include wide-int.h.
26189 (decimal_real_to_integer2): Use wide-int interfaces and rename to
26190 decimal_real_to_integer.
26191 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26192 decimal_real_to_integer.
26193 * doc/generic.texi (Constant expressions): Update for wide_int.
26194 * doc/rtl.texi (const_double): Likewise.
26195 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26196 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26197 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26198 (REAL_VALUE_FROM_INT): Remove.
26199 (TARGET_SUPPORTS_WIDE_INT): New.
26200 * doc/tm.texi: Regenerate.
26201 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26202 * double-int.h: Include wide-int.h.
26203 (struct wi::int_traits): New.
26204 * dwarf2out.c (get_full_len): New.
26205 (dw_val_equal_p): Add case dw_val_class_wide_int.
26206 (size_of_loc_descr): Likewise.
26207 (output_loc_operands): Likewise.
26208 (insert_double): Remove.
26209 (insert_wide_int): New.
26210 (add_AT_wide): New.
26211 (print_die): Add case dw_val_class_wide_int.
26212 (attr_checksum): Likewise.
26213 (attr_checksum_ordered): Likewise.
26214 (same_dw_val_p): Likewise.
26215 (size_of_die): Likewise.
26216 (value_format): Likewise.
26217 (output_die): Likewise.
26218 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26219 Use wide-int.
26220 (clz_loc_descriptor): Use wide-int interfaces.
26221 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
26222 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
26223 (round_up_to_align): Use wide-int interfaces.
26224 (field_byte_offset): Likewise.
26225 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
26226 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
26227 CONST_DOUBLE handling. Use wide-int interfaces.
26228 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
26229 (gen_enumeration_type_die): Use add_AT_wide.
26230 (hash_loc_operands): Add case dw_val_class_wide_int.
26231 (compare_loc_operands): Likewise.
26232 * dwarf2out.h: Include wide-int.h.
26233 (wide_int_ptr): New.
26234 (enum dw_val_class): Add dw_val_class_wide_int.
26235 (struct dw_val_struct): Add val_wide.
26236 * emit-rtl.c (const_wide_int_htab): New.
26237 (const_wide_int_htab_hash): New.
26238 (const_wide_int_htab_eq): New.
26239 (lookup_const_wide_int): New.
26240 (const_double_htab_hash): Use wide-int interfaces.
26241 (const_double_htab_eq): Likewise.
26242 (rtx_to_double_int): Conditionally compile for wide-int.
26243 (immed_double_int_const): Rename to immed_wide_int_const and
26244 update for wide-int.
26245 (immed_double_const): Conditionally compile for wide-int.
26246 (init_emit_once): Use wide-int interfaces.
26247 * explow.c (plus_constant): Likewise.
26248 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
26249 (lshift_value): Use wide-int interfaces.
26250 (expand_mult): Likewise.
26251 (choose_multiplier): Likewise.
26252 (expand_smod_pow2): Likewise.
26253 (make_tree): Likewise.
26254 * expr.c (convert_modes): Consolidate handling of constants.
26255 Use wide-int interfaces.
26256 (emit_group_load_1): Add note.
26257 (store_expr): Update comment.
26258 (get_inner_reference): Use wide-int interfaces.
26259 (expand_constructor): Update comment.
26260 (expand_expr_real_2): Use wide-int interfaces.
26261 (expand_expr_real_1): Likewise.
26262 (reduce_to_bit_field_precision): Likewise.
26263 (const_vector_from_tree): Likewise.
26264 * final.c: Include wide-int-print.h.
26265 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
26266 * fixed-value.c: Include wide-int.h.
26267 (fixed_from_string): Use wide-int interfaces.
26268 (fixed_to_decimal): Likewise.
26269 (fixed_convert_from_real): Likewise.
26270 (real_convert_from_fixed): Likewise.
26271 * fold-const.h (mem_ref_offset): Return an offset_int.
26272 (div_if_zero_remainder): Remove code parameter.
26273 * fold-const.c (div_if_zero_remainder): Remove code parameter.
26274 Use wide-int interfaces.
26275 (may_negate_without_overflow_p): Use wide-int interfaces.
26276 (negate_expr_p): Likewise.
26277 (fold_negate_expr): Likewise.
26278 (int_const_binop_1): Likewise.
26279 (const_binop): Likewise.
26280 (fold_convert_const_int_from_int): Likewise.
26281 (fold_convert_const_int_from_real): Likewise.
26282 (fold_convert_const_int_from_fixed): Likewise.
26283 (fold_convert_const_fixed_from_int): Likewise.
26284 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
26285 (sign_bit_p): Use wide-int interfaces.
26286 (make_range_step): Likewise.
26287 (build_range_check): Likewise. Pass an integer of the correct type
26288 instead of using integer_one_node.
26289 (range_predecessor): Pass an integer of the correct type instead
26290 of using integer_one_node.
26291 (range_successor): Likewise.
26292 (merge_ranges): Likewise.
26293 (unextend): Use wide-int interfaces.
26294 (extract_muldiv_1): Likewise.
26295 (fold_div_compare): Likewise.
26296 (fold_single_bit_test): Likewise.
26297 (fold_sign_changed_comparison): Likewise.
26298 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26299 (fold_plusminus_mult_expr): Use wide-int interfaces.
26300 (native_encode_int): Likewise.
26301 (native_interpret_int): Likewise.
26302 (fold_unary_loc): Likewise.
26303 (pointer_may_wrap_p): Likewise.
26304 (size_low_cst): Likewise.
26305 (mask_with_tz): Likewise.
26306 (fold_binary_loc): Likewise.
26307 (fold_ternary_loc): Likewise.
26308 (multiple_of_p): Likewise.
26309 (tree_call_nonnegative_warnv_p): Update calls to
26310 tree_int_cst_min_precision and real_from_integer.
26311 (fold_negate_const): Use wide-int interfaces.
26312 (fold_abs_const): Likewise.
26313 (fold_relational_const): Use tree_int_cst_lt.
26314 (round_up_loc): Use wide-int interfaces.
26315 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26316 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26317 * gengtype.c: Remove include of double-int.h.
26318 (do_typedef): Use wide-int interfaces.
26319 (open_base_files): Add wide-int.h.
26320 (main): Add offset_int and widest_int typedefs.
26321 * gengtype-lex.l: Handle "^".
26322 (CXX_KEYWORD): Add "static".
26323 * gengtype-parse.c (require3): New.
26324 (require_template_declaration): Handle constant template arguments
26325 and nested templates.
26326 * gengtype-state.c: Don't include "double-int.h".
26327 * genpreds.c (write_one_predicate_function): Update comment.
26328 (write_tm_constrs_h): Add check for hval and lval use in
26329 CONST_WIDE_INT.
26330 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26331 (add_to_sequence): Likewise.
26332 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26333 and const_double_operand.
26334 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26335 interfaces.
26336 * gimple-fold.c (get_base_constructor): Likewise.
26337 (fold_array_ctor_reference): Likewise.
26338 (fold_nonarray_ctor_reference): Likewise.
26339 (fold_const_aggregate_ref_1): Likewise.
26340 (gimple_val_nonnegative_real_p): Likewise.
26341 (gimple_fold_indirect_ref): Likewise.
26342 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26343 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26344 (struct slsr_cand_d): Change index to be widest_int.
26345 (struct incr_info_d): Change incr to be widest_int.
26346 (alloc_cand_and_find_basis): Use wide-int interfaces.
26347 (slsr_process_phi): Likewise.
26348 (backtrace_base_for_ref): Likewise. Return a widest_int.
26349 (restructure_reference): Take a widest_int instead of a double_int.
26350 (slsr_process_ref): Use wide-int interfaces.
26351 (create_mul_ssa_cand): Likewise.
26352 (create_mul_imm_cand): Likewise.
26353 (create_add_ssa_cand): Likewise.
26354 (create_add_imm_cand): Take a widest_int instead of a double_int.
26355 (slsr_process_add): Use wide-int interfaces.
26356 (slsr_process_cast): Likewise.
26357 (slsr_process_copy): Likewise.
26358 (dump_candidate): Likewise.
26359 (dump_incr_vec): Likewise.
26360 (replace_ref): Likewise.
26361 (cand_increment): Likewise. Return a widest_int.
26362 (cand_abs_increment): Likewise.
26363 (replace_mult_candidate): Take a widest_int instead of a double_int.
26364 (replace_unconditional_candidate): Use wide-int interfaces.
26365 (incr_vec_index): Take a widest_int instead of a double_int.
26366 (create_add_on_incoming_edge): Likewise.
26367 (create_phi_basis): Use wide-int interfaces.
26368 (replace_conditional_candidate): Likewise.
26369 (record_increment): Take a widest_int instead of a double_int.
26370 (record_phi_increments): Use wide-int interfaces.
26371 (phi_incr_cost): Take a widest_int instead of a double_int.
26372 (lowest_cost_path): Likewise.
26373 (total_savings): Likewise.
26374 (analyze_increments): Use wide-int interfaces.
26375 (ncd_with_phi): Take a widest_int instead of a double_int.
26376 (ncd_of_cand_and_phis): Likewise.
26377 (nearest_common_dominator_for_cands): Likewise.
26378 (insert_initializers): Use wide-int interfaces.
26379 (all_phi_incrs_profitable): Likewise.
26380 (replace_one_candidate): Likewise.
26381 (replace_profitable_candidates): Likewise.
26382 * godump.c: Include wide-int-print.h.
26383 (go_output_typedef): Use wide-int interfaces.
26384 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26385 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26386 (build_loop_iteration_domains): Likewise.
26387 * hooks.h: Include wide-int.h rather than double-int.h.
26388 (hook_bool_dint_dint_uint_bool_true): Delete.
26389 (hook_bool_wint_wint_uint_bool_true): Declare.
26390 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26391 (hook_bool_wint_wint_uint_bool_true): New.
26392 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26393 interfaces.
26394 (ubsan_expand_si_overflow_mul_check): Likewise.
26395 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26396 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26397 (get_ancestor_addr_info): Likewise.
26398 (ipa_modify_call_arguments): Likewise.
26399 * loop-doloop.c (doloop_modify): Likewise.
26400 (doloop_optimize): Likewise.
26401 * loop-iv.c (iv_number_of_iterations): Likewise.
26402 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26403 (unroll_loop_constant_iterations): Likewise.
26404 (decide_unroll_runtime_iterations): Likewise.
26405 (unroll_loop_runtime_iterations): Likewise.
26406 (decide_peel_simple): Likewise.
26407 (decide_unroll_stupid): Likewise.
26408 * lto-streamer-in.c (streamer_read_wi): Add.
26409 (input_cfg): Use wide-int interfaces.
26410 (lto_input_tree_1): Likewise.
26411 * lto-streamer-out.c (streamer_write_wi): Add.
26412 (hash_tree): Use wide-int interfaces.
26413 (output_cfg): Likewise.
26414 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26415 (GTFILES): Add wide-int.h and signop.h.
26416 (TAGS): Look for .cc files too.
26417 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26418 * optabs.c (expand_subword_shift): Likewise.
26419 (expand_doubleword_shift): Likewise.
26420 (expand_absneg_bit): Likewise.
26421 (expand_copysign_absneg): Likewise.
26422 (expand_copysign_bit): Likewise.
26423 * postreload.c (reload_cse_simplify_set): Likewise.
26424 * predict.c (predict_iv_comparison): Likewise.
26425 * pretty-print.h: Include wide-int-print.h.
26426 (pp_wide_int) New.
26427 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26428 * print-tree.c: Include wide-int-print.h.
26429 (print_node_brief): Use wide-int interfaces.
26430 (print_node): Likewise.
26431 * read-rtl.c (validate_const_wide_int): New.
26432 (read_rtx_code): Add CONST_WIDE_INT case.
26433 * real.c: Include wide-int.h.
26434 (real_to_integer2): Delete.
26435 (real_to_integer): New function, returning a wide_int.
26436 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26437 (ten_to_ptwo): Update call to real_from_integer.
26438 (real_digit): Likewise.
26439 * real.h: Include signop.h, wide-int.h and insn-modes.h.
26440 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26441 (REAL_VALUE_TO_INT): Delete.
26442 (real_to_integer): Declare a wide-int form.
26443 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26444 * recog.c (const_int_operand): Improve comment.
26445 (const_scalar_int_operand): New.
26446 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26447 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26448 (split_double): Likewise.
26449 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26450 (rtx_size): Likewise.
26451 (rtx_alloc_stat_v): New.
26452 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26453 (cwi_output_hex): New.
26454 (iterative_hash_rtx): Handle CONST_WIDE_INT.
26455 (cwi_check_failed_bounds): New.
26456 * rtl.def (CONST_WIDE_INT): New.
26457 * rtl.h: Include <utility> and wide-int.h.
26458 (struct hwivec_def): New.
26459 (CWI_GET_NUM_ELEM): New.
26460 (CWI_PUT_NUM_ELEM): New.
26461 (struct rtx_def): Add num_elem and hwiv.
26462 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26463 (CASE_CONST_UNIQUE): Likewise.
26464 (CASE_CONST_ANY): Likewise.
26465 (CONST_SCALAR_INT_P): Likewise.
26466 (CONST_WIDE_INT_P): New.
26467 (CWI_ELT): New.
26468 (HWIVEC_CHECK): New.
26469 (cwi_check_failed_bounds): New.
26470 (CWI_ELT): New.
26471 (HWIVEC_CHECK): New.
26472 (CONST_WIDE_INT_VEC) New.
26473 (CONST_WIDE_INT_NUNITS) New.
26474 (CONST_WIDE_INT_ELT) New.
26475 (rtx_mode_t): New type.
26476 (wi::int_traits <rtx_mode_t>): New.
26477 (wi::shwi): New.
26478 (wi::min_value): New.
26479 (wi::max_value): New.
26480 (rtx_alloc_v) New.
26481 (const_wide_int_alloc): New.
26482 (immed_wide_int_const): New.
26483 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26484 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26485 * signop.h: New file.
26486 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26487 (simplify_const_unary_operation): Use wide-int interfaces.
26488 (simplify_binary_operation_1): Likewise.
26489 (simplify_const_binary_operation): Likewise.
26490 (simplify_const_relational_operation): Likewise.
26491 (simplify_immed_subreg): Likewise.
26492 * stmt.c (expand_case): Likewise.
26493 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26494 signop rather than a bool.
26495 * stor-layout.c (layout_type): Use wide-int interfaces.
26496 (initialize_sizetypes): Update calls to
26497 set_min_and_max_values_for_integral_type.
26498 (set_min_and_max_values_for_integral_type): Take a signop rather
26499 than a bool. Use wide-int interfaces.
26500 (fixup_signed_type): Update accordingly. Remove
26501 HOST_BITS_PER_DOUBLE_INT limit.
26502 (fixup_unsigned_type): Likewise.
26503 * system.h (STATIC_CONSTANT_P): New.
26504 (STATIC_ASSERT): New.
26505 * target.def (can_use_doloop_p): Take widest_ints rather than
26506 double_ints.
26507 * target.h: Include wide-int.h rather than double-int.h.
26508 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26509 than double_ints.
26510 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26511 rather than INT_CST_LT_UNSIGNED.
26512 (can_use_doloop_if_innermost): Take widest_ints rather than
26513 double_ints.
26514 * tree-affine.c: Include wide-int-print.h.
26515 (double_int_ext_for_comb): Delete.
26516 (wide_int_ext_for_comb): New.
26517 (aff_combination_zero): Use wide-int interfaces.
26518 (aff_combination_const): Take a widest_int instead of a double_int.
26519 (aff_combination_elt): Use wide-int interfaces.
26520 (aff_combination_scale): Take a widest_int instead of a double_int.
26521 (aff_combination_add_elt): Likewise.
26522 (aff_combination_add_cst): Likewise.
26523 (aff_combination_add): Use wide-int interfaces.
26524 (aff_combination_convert): Likewise.
26525 (tree_to_aff_combination): Likewise.
26526 (add_elt_to_tree): Take a widest_int instead of a double_int.
26527 (aff_combination_to_tree): Use wide-int interfaces.
26528 (aff_combination_remove_elt): Likewise.
26529 (aff_combination_add_product): Take a widest_int instead of
26530 a double_int.
26531 (aff_combination_mult): Use wide-int interfaces.
26532 (aff_combination_expand): Likewise.
26533 (double_int_constant_multiple_p): Delete.
26534 (wide_int_constant_multiple_p): New.
26535 (aff_combination_constant_multiple_p): Take a widest_int pointer
26536 instead of a double_int pointer.
26537 (print_aff): Use wide-int interfaces.
26538 (get_inner_reference_aff): Take a widest_int pointer
26539 instead of a double_int pointer.
26540 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26541 * tree-affine.h: Include wide-int.h.
26542 (struct aff_comb_elt): Change type of coef to widest_int.
26543 (struct affine_tree_combination): Change type of offset to widest_int.
26544 (double_int_ext_for_comb): Delete.
26545 (wide_int_ext_for_comb): New.
26546 (aff_combination_const): Use widest_int instead of double_int.
26547 (aff_combination_scale): Likewise.
26548 (aff_combination_add_elt): Likewise.
26549 (aff_combination_constant_multiple_p): Likewise.
26550 (get_inner_reference_aff): Likewise.
26551 (aff_comb_cannot_overlap_p): Likewise.
26552 (aff_combination_zero_p): Use wide-int interfaces.
26553 * tree.c: Include tree.h.
26554 (init_ttree): Use make_int_cst.
26555 (tree_code_size): Removed code for INTEGER_CST case.
26556 (tree_size): Add INTEGER_CST case.
26557 (make_node_stat): Update comment.
26558 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26559 (build_int_cst_type): Use wide-int interfaces.
26560 (double_int_to_tree): Likewise.
26561 (double_int_fits_to_tree_p): Delete.
26562 (force_fit_type_double): Delete.
26563 (force_fit_type): New.
26564 (int_cst_hash_hash): Use wide-int interfaces.
26565 (int_cst_hash_eq): Likewise.
26566 (build_int_cst_wide): Delete.
26567 (wide_int_to_tree): New.
26568 (cache_integer_cst): Use wide-int interfaces.
26569 (build_low_bits_mask): Likewise.
26570 (cst_and_fits_in_hwi): Likewise.
26571 (real_value_from_int_cst): Likewise.
26572 (make_int_cst_stat): New.
26573 (integer_zerop): Use wide_int interfaces.
26574 (integer_onep): Likewise.
26575 (integer_all_onesp): Likewise.
26576 (integer_pow2p): Likewise.
26577 (integer_nonzerop): Likewise.
26578 (tree_log2): Likewise.
26579 (tree_floor_log2): Likewise.
26580 (tree_ctz): Likewise.
26581 (int_size_in_bytes): Likewise.
26582 (mem_ref_offset): Return an offset_int rather than a double_int.
26583 (build_type_attribute_qual_variant): Use wide_int interfaces.
26584 (type_hash_eq): Likewise
26585 (tree_int_cst_equal): Likewise.
26586 (tree_int_cst_lt): Delete.
26587 (tree_int_cst_compare): Likewise.
26588 (tree_fits_shwi_p): Use wide_int interfaces.
26589 (tree_fits_uhwi_p): Likewise.
26590 (tree_int_cst_sign_bit): Likewise.
26591 (tree_int_cst_sgn): Likewise.
26592 (tree_int_cst_min_precision): Take a signop rather than a bool.
26593 (simple_cst_equal): Use wide_int interfaces.
26594 (compare_tree_int): Likewise.
26595 (iterative_hash_expr): Likewise.
26596 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
26597 INT_CST_LT.
26598 (get_type_static_bounds): Use wide_int interfaces.
26599 (tree_int_cst_elt_check_failed): New.
26600 (build_common_tree_nodes): Reordered to set prec before filling in
26601 value.
26602 (int_cst_value): Check cst_and_fits_in_hwi.
26603 (widest_int_cst_value): Use wide_int interfaces.
26604 (upper_bound_in_type): Likewise.
26605 (lower_bound_in_type): Likewise.
26606 (num_ending_zeros): Likewise.
26607 (drop_tree_overflow): Likewise.
26608 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26609 (gen_conditions_for_pow_cst_base): Likewise.
26610 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26611 (group_case_labels_stmt): Use wide-int interfaces.
26612 (verify_gimple_assign_binary): Likewise.
26613 (print_loop): Likewise.
26614 * tree-chrec.c (tree_fold_binomial): Likewise.
26615 * tree-core.h (struct tree_base): Add int_length.
26616 (struct tree_int_cst): Change rep of value.
26617 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26618 (dr_may_alias_p): Likewise.
26619 (max_stmt_executions_tree): Likewise.
26620 * tree.def (INTEGER_CST): Update comment.
26621 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26622 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26623 * tree-dump.c: Include wide-int.h and wide-int-print.h.
26624 (dequeue_and_dump): Use wide-int interfaces.
26625 * tree.h: Include wide-int.h.
26626 (NULL_TREE): Moved to earlier loc in file.
26627 (TREE_INT_CST_ELT_CHECK): New.
26628 (tree_int_cst_elt_check_failed): New.
26629 (TYPE_SIGN): New.
26630 (TREE_INT_CST): Delete.
26631 (TREE_INT_CST_LOW): Use wide-int interfaces.
26632 (TREE_INT_CST_HIGH): Delete.
26633 (TREE_INT_CST_NUNITS): New.
26634 (TREE_INT_CST_EXT_NUNITS): Likewise.
26635 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26636 (TREE_INT_CST_ELT): Likewise.
26637 (INT_CST_LT): Delete.
26638 (tree_int_cst_elt_check): New (two forms).
26639 (type_code_size): Update comment.
26640 (make_int_cst_stat, make_int_cst): New.
26641 (tree_to_double_int): Delete.
26642 (double_int_fits_to_tree_p): Delete.
26643 (force_fit_type_double): Delete.
26644 (build_int_cstu): Replace with out-of-line function.
26645 (build_int_cst_wide): Delete.
26646 (tree_int_cst_lt): Define inline.
26647 (tree_int_cst_le): New.
26648 (tree_int_cst_compare): Define inline.
26649 (tree_int_cst_min_precision): Take a signop rather than a bool.
26650 (wi::int_traits <const_tree>): New.
26651 (wi::int_traits <tree>): New.
26652 (wi::extended_tree): New.
26653 (wi::int_traits <wi::extended_tree>): New.
26654 (wi::to_widest): New.
26655 (wi::to_offset): New.
26656 (wi::fits_to_tree_p): New.
26657 (wi::min_value): New.
26658 (wi::max_value): New.
26659 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26660 (copy_tree_body_r): Likewise.
26661 * tree-object-size.c (compute_object_offset): Likewise.
26662 (addr_object_size): Likewise.
26663 * tree-predcom.c: Include wide-int-print.h.
26664 (struct dref_d): Change type of offset to widest_int.
26665 (dump_dref): Call wide-int printer.
26666 (aff_combination_dr_offset): Use wide-int interfaces.
26667 (determine_offset): Take a widest_int pointer rather than a
26668 double_int pointer.
26669 (split_data_refs_to_components): Use wide-int interfaces.
26670 (suitable_component_p): Likewise.
26671 (order_drefs): Likewise.
26672 (add_ref_to_chain): Likewise.
26673 (valid_initializer_p): Likewise.
26674 (determine_roots_comp): Likewise.
26675 * tree-pretty-print.c: Include wide-int-print.h.
26676 (dump_generic_node): Use wide-int interfaces.
26677 * tree-sra.c (sra_ipa_modify_expr): Likewise.
26678 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26679 (move_fixed_address_to_symbol): Likewise.
26680 (move_hint_to_base): Likewise.
26681 (move_pointer_to_base): Likewise.
26682 (move_variant_to_index): Likewise.
26683 (most_expensive_mult_to_index): Likewise.
26684 (addr_to_parts): Likewise.
26685 (copy_ref_info): Likewise.
26686 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26687 (indirect_refs_may_alias_p): Likewise.
26688 (stmt_kills_ref_p_1): Likewise.
26689 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26690 * tree-ssa-ccp.c: Update comment at top of file. Include
26691 wide-int-print.h.
26692 (struct prop_value_d): Change type of mask to widest_int.
26693 (extend_mask): New function.
26694 (dump_lattice_value): Use wide-int interfaces.
26695 (get_default_value): Likewise.
26696 (set_constant_value): Likewise.
26697 (set_value_varying): Likewise.
26698 (valid_lattice_transition): Likewise.
26699 (set_lattice_value): Likewise.
26700 (value_to_double_int): Delete.
26701 (value_to_wide_int): New.
26702 (get_value_from_alignment): Use wide-int interfaces.
26703 (get_value_for_expr): Likewise.
26704 (do_dbg_cnt): Likewise.
26705 (ccp_finalize): Likewise.
26706 (ccp_lattice_meet): Likewise.
26707 (bit_value_unop_1): Use widest_ints rather than double_ints.
26708 (bit_value_binop_1): Likewise.
26709 (bit_value_unop): Use wide-int interfaces.
26710 (bit_value_binop): Likewise.
26711 (bit_value_assume_aligned): Likewise.
26712 (evaluate_stmt): Likewise.
26713 (ccp_fold_stmt): Likewise.
26714 (visit_cond_stmt): Likewise.
26715 (ccp_visit_stmt): Likewise.
26716 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26717 (constant_pointer_difference): Likewise.
26718 (associate_pointerplus): Likewise.
26719 (combine_conversions): Likewise.
26720 * tree-ssa-loop.h: Include wide-int.h.
26721 (struct tree_niter_desc): Change type of max to widest_int.
26722 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26723 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26724 (remove_redundant_iv_tests): Likewise.
26725 (canonicalize_loop_induction_variables): Likewise.
26726 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26727 (constant_multiple_of): Take a widest_int pointer instead of
26728 a double_int pointer.
26729 (get_computation_aff): Use wide-int interfaces.
26730 (ptr_difference_cost): Likewise.
26731 (difference_cost): Likewise.
26732 (get_loop_invariant_expr_id): Likewise.
26733 (get_computation_cost_at): Likewise.
26734 (iv_elimination_compare_lt): Likewise.
26735 (may_eliminate_iv): Likewise.
26736 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26737 instead of double_int.
26738 (max_loop_iterations): Likewise.
26739 (max_stmt_executions): Likewise.
26740 (estimated_stmt_executions): Likewise.
26741 * tree-ssa-loop-niter.c: Include wide-int-print.h.
26742 (split_to_var_and_offset): Use wide-int interfaces.
26743 (determine_value_range): Likewise.
26744 (bound_difference_of_offsetted_base): Likewise.
26745 (bounds_add): Take a widest_int instead of a double_int.
26746 (number_of_iterations_ne_max): Use wide-int interfaces.
26747 (number_of_iterations_ne): Likewise.
26748 (number_of_iterations_lt_to_ne): Likewise.
26749 (assert_loop_rolls_lt): Likewise.
26750 (number_of_iterations_lt): Likewise.
26751 (number_of_iterations_le): Likewise.
26752 (number_of_iterations_cond): Likewise.
26753 (number_of_iterations_exit): Likewise.
26754 (finite_loop_p): Likewise.
26755 (derive_constant_upper_bound_assign): Likewise.
26756 (derive_constant_upper_bound): Return a widest_int.
26757 (derive_constant_upper_bound_ops): Likewise.
26758 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26759 (record_estimate): Take a widest_int rather than a double_int.
26760 (record_nonwrapping_iv): Use wide-int interfaces.
26761 (double_int_cmp): Delete.
26762 (wide_int_cmp): New.
26763 (bound_index): Take a widest_int rather than a double_int.
26764 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26765 (maybe_lower_iteration_bound): Likewise.
26766 (estimate_numbers_of_iterations_loop): Likewise.
26767 (estimated_loop_iterations): Take a widest_int pointer than than
26768 a double_int pointer.
26769 (estimated_loop_iterations_int): Use wide-int interfaces.
26770 (max_loop_iterations): Take a widest_int pointer than than
26771 a double_int pointer.
26772 (max_loop_iterations_int): Use wide-int interfaces.
26773 (max_stmt_executions): Take a widest_int pointer than than
26774 a double_int pointer.
26775 (estimated_stmt_executions): Likewise.
26776 (n_of_executions_at_most): Use wide-int interfaces.
26777 (scev_probably_wraps_p): Likewise.
26778 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26779 to real_to_integer.
26780 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26781 interfaces.
26782 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26783 double_ints. Adjust for trailing_wide_ints <3> representation.
26784 (set_nonzero_bits): Likewise.
26785 (get_range_info): Return wide_ints rather than double_ints.
26786 Adjust for trailing_wide_ints <3> representation.
26787 (get_nonzero_bits): Likewise.
26788 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26789 representation.
26790 * tree-ssanames.h (struct range_info_def): Replace min, max and
26791 nonzero_bits with a trailing_wide_ints <3>.
26792 (set_range_info): Use wide_int_refs rather than double_ints.
26793 (set_nonzero_bits): Likewise.
26794 (get_range_info): Return wide_ints rather than double_ints.
26795 (get_nonzero_bits): Likewise.
26796 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26797 * tree-ssa-pre.c (phi_translate_1): Likewise.
26798 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26799 (acceptable_pow_call): Likewise.
26800 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26801 interfaces.
26802 (vn_reference_fold_indirect): Likewise.
26803 (vn_reference_maybe_forwprop_address): Likewise.
26804 (valueize_refs_1): Likewise.
26805 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26806 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26807 tree_int_cst_lt and tree_int_cst_le.
26808 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26809 interfaces.
26810 (streamer_alloc_tree): Likewise.
26811 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26812 (streamer_write_tree_header): Likewise.
26813 (streamer_write_integer_cst): Likewise.
26814 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26815 (build_constructors): Likewise.
26816 (array_value_type): Likewise.
26817 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26818 (vect_check_gather): Likewise.
26819 * tree-vect-generic.c (build_replicated_const): Likewise.
26820 (expand_vector_divmod): Likewise.
26821 * tree-vect-loop.c (vect_transform_loop): Likewise.
26822 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26823 (vect_do_peeling_for_alignment): Likewise.
26824 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26825 * tree-vrp.c: Include wide-int.h.
26826 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26827 (extract_range_from_assert): Use wide-int interfaces.
26828 (vrp_int_const_binop): Likewise.
26829 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26830 double_int pointers.
26831 (ranges_from_anti_range): Use wide-int interfaces.
26832 (quad_int_cmp): Delete.
26833 (quad_int_pair_sort): Likewise.
26834 (extract_range_from_binary_expr_1): Use wide-int interfaces.
26835 (extract_range_from_unary_expr_1): Likewise.
26836 (adjust_range_with_scev): Likewise.
26837 (masked_increment): Take and return wide_ints rather than double_ints.
26838 (register_edge_assert_for_2): Use wide-int interfaces.
26839 (check_array_ref): Likewise.
26840 (search_for_addr_array): Likewise.
26841 (maybe_set_nonzero_bits): Likewise.
26842 (union_ranges): Pass an integer of the correct type instead of
26843 using integer_one_node.
26844 (intersect_ranges): Likewise.
26845 (simplify_truth_ops_using_ranges): Likewise.
26846 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26847 (range_fits_type_p): Likewise.
26848 (simplify_cond_using_ranges): Likewise. Take a signop rather than
26849 a bool.
26850 (simplify_conversion_using_ranges): Use wide-int interfaces.
26851 (simplify_float_conversion_using_ranges): Likewise.
26852 (vrp_finalize): Likewise.
26853 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26854 (gimple_stringops_transform): Likewise.
26855 * varasm.c (decode_addr_const): Likewise.
26856 (const_hash_1): Likewise.
26857 (const_rtx_hash_1): Likewise
26858 (output_constant): Likewise.
26859 (array_size_for_constructor): Likewise.
26860 (output_constructor_regular_field): Likewise.
26861 (output_constructor_bitfield): Likewise.
26862 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26863 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26864 GENERATOR_FILEs.
26865 * gencheck.c: Define BITS_PER_UNIT.
26866 * wide-int.cc: New.
26867 * wide-int.h: New.
26868 * wide-int-print.cc: New.
26869 * wide-int-print.h: New.
26870
26871 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26872
26873 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26874
26875 2014-05-06 Richard Biener <rguenther@suse.de>
26876
26877 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26878 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26879 (TODO_verify_all): Adjust.
26880 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26881 TODO_verify_stmts and TODO_verify_rtl_sharing.
26882 * bb-reorder.c: Likewise.
26883 * cfgexpand.c: Likewise.
26884 * cprop.c: Likewise.
26885 * cse.c: Likewise.
26886 * function.c: Likewise.
26887 * fwprop.c: Likewise.
26888 * gcse.c: Likewise.
26889 * gimple-ssa-isolate-paths.c: Likewise.
26890 * gimple-ssa-strength-reduction.c: Likewise.
26891 * ipa-split.c: Likewise.
26892 * loop-init.c: Likewise.
26893 * loop-unroll.c: Likewise.
26894 * lower-subreg.c: Likewise.
26895 * modulo-sched.c: Likewise.
26896 * postreload-gcse.c: Likewise.
26897 * predict.c: Likewise.
26898 * recog.c: Likewise.
26899 * sched-rgn.c: Likewise.
26900 * store-motion.c: Likewise.
26901 * tracer.c: Likewise.
26902 * trans-mem.c: Likewise.
26903 * tree-call-cdce.c: Likewise.
26904 * tree-cfg.c: Likewise.
26905 * tree-cfgcleanup.c: Likewise.
26906 * tree-complex.c: Likewise.
26907 * tree-eh.c: Likewise.
26908 * tree-emutls.c: Likewise.
26909 * tree-if-conv.c: Likewise.
26910 * tree-into-ssa.c: Likewise.
26911 * tree-loop-distribution.c: Likewise.
26912 * tree-object-size.c: Likewise.
26913 * tree-parloops.c: Likewise.
26914 * tree-pass.h: Likewise.
26915 * tree-sra.c: Likewise.
26916 * tree-ssa-ccp.c: Likewise.
26917 * tree-ssa-copy.c: Likewise.
26918 * tree-ssa-copyrename.c: Likewise.
26919 * tree-ssa-dce.c: Likewise.
26920 * tree-ssa-dom.c: Likewise.
26921 * tree-ssa-dse.c: Likewise.
26922 * tree-ssa-forwprop.c: Likewise.
26923 * tree-ssa-ifcombine.c: Likewise.
26924 * tree-ssa-loop-ch.c: Likewise.
26925 * tree-ssa-loop-ivcanon.c: Likewise.
26926 * tree-ssa-loop.c: Likewise.
26927 * tree-ssa-math-opts.c: Likewise.
26928 * tree-ssa-phiopt.c: Likewise.
26929 * tree-ssa-phiprop.c: Likewise.
26930 * tree-ssa-pre.c: Likewise.
26931 * tree-ssa-reassoc.c: Likewise.
26932 * tree-ssa-sink.c: Likewise.
26933 * tree-ssa-strlen.c: Likewise.
26934 * tree-ssa-tail-merge.c: Likewise.
26935 * tree-ssa-uncprop.c: Likewise.
26936 * tree-switch-conversion.c: Likewise.
26937 * tree-tailcall.c: Likewise.
26938 * tree-vect-generic.c: Likewise.
26939 * tree-vectorizer.c: Likewise.
26940 * tree-vrp.c: Likewise.
26941 * tsan.c: Likewise.
26942 * var-tracking.c: Likewise.
26943 * bt-load.c: Likewise.
26944 * cfgcleanup.c: Likewise.
26945 * combine-stack-adj.c: Likewise.
26946 * combine.c: Likewise.
26947 * compare-elim.c: Likewise.
26948 * config/epiphany/resolve-sw-modes.c: Likewise.
26949 * config/i386/i386.c: Likewise.
26950 * config/mips/mips.c: Likewise.
26951 * config/s390/s390.c: Likewise.
26952 * config/sh/sh_treg_combine.cc: Likewise.
26953 * config/sparc/sparc.c: Likewise.
26954 * dce.c: Likewise.
26955 * dse.c: Likewise.
26956 * final.c: Likewise.
26957 * ifcvt.c: Likewise.
26958 * mode-switching.c: Likewise.
26959 * passes.c: Likewise.
26960 * postreload.c: Likewise.
26961 * ree.c: Likewise.
26962 * reg-stack.c: Likewise.
26963 * regcprop.c: Likewise.
26964 * regrename.c: Likewise.
26965 * web.c: Likewise.
26966
26967 2014-05-06 Richard Biener <rguenther@suse.de>
26968
26969 PR middle-end/61070
26970 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
26971 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
26972
26973 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
26974
26975 PR ipa/60965
26976 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
26977
26978 2014-05-05 Radovan Obradovic <robradovic@mips.com>
26979 Tom de Vries <tom@codesourcery.com>
26980
26981 * target.def (call_fusage_contains_non_callee_clobbers): New
26982 DEFHOOKPOD.
26983 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26984 Hooks to @menu.
26985 (@node Miscellaneous Register Hooks): New node.
26986 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26987 * doc/tm.texi: Regenerate.
26988
26989 2014-05-05 Marek Polacek <polacek@redhat.com>
26990
26991 PR driver/61065
26992 * opts.c (common_handle_option): Call error_at instead of warning_at.
26993
26994 2014-05-05 Richard Biener <rguenther@suse.de>
26995
26996 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26997 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
26998 under the TODO_verify_il umbrella.
26999
27000 2014-05-05 Richard Biener <rguenther@suse.de>
27001
27002 * passes.c (execute_function_todo): Move TODO_verify_flow under
27003 the TODO_verify_ul umbrella.
27004
27005 2014-05-05 Richard Biener <rguenther@suse.de>
27006
27007 PR middle-end/61010
27008 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27009 X & CST away from a CST that is the mask of a mode.
27010
27011 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27012
27013 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27014 int argument to enum machine_mode.
27015 (picochip_class_max_nregs): Ditto.
27016 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27017 (picochip_class_max_nregs): Ditto.
27018
27019 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27020
27021 * target.def: Add new target hook.
27022 * doc/tm.texi: Regenerate.
27023 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27024 * targhooks.c (default_keep_leaf_when_profiled): New function.
27025
27026 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27027 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27028
27029 2014-05-05 Bin Cheng <bin.cheng@arm.com>
27030
27031 PR tree-optimization/60363
27032 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27033 (copy_phi_args): New parameters. Call get_value_locus_in_path.
27034 (update_destination_phis): New parameter.
27035 (create_edge_and_update_destination_phis): Ditto.
27036 (ssa_fix_duplicate_block_edges): Pass new arguments.
27037 (thread_single_edge): Ditto.
27038
27039 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
27040
27041 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27042 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27043 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27044 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27045 Use RS6000_BTM_HARD_FLOAT.
27046 (BU_MISC_2): Likewise.
27047 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27048 RS6000_BTM_HARD_FLOAT.
27049 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27050 is explicitly used.
27051 (rs6000_invalid_builtin): Add hard floating builtin support.
27052 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27053 hard float builtins.
27054 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27055
27056 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27057
27058 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27059 Add missing function* argument.
27060
27061 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27062
27063 * lra-constraints.c (valid_address_p): Move earlier in file.
27064 Add a constraint argument to the address_info version.
27065 (satisfies_memory_constraint_p): New function.
27066 (satisfies_address_constraint_p): Likewise.
27067 (process_alt_operands, curr_insn_transform): Use them.
27068 (process_address): Pass the constraint to valid_address_p when
27069 checking address operands.
27070
27071 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27072
27073 * config/mips/mips.c (mips_isa_rev): New variable.
27074 (mips_set_architecture): Set it.
27075 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27076 from mips_isa_rev.
27077 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27078 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27079 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27080 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27081 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27082 conditions in terms of mips_isa_rev.
27083 (mips_isa_rev): Declare.
27084
27085 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27086
27087 * config/sh/sh-mem.cc: Use tabs instead of spaces.
27088 (prob_unlikely, prob_likely): Make variables const.
27089
27090 2014-05-03 Denis Chertykov <chertykov@gmail.com>
27091
27092 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27093
27094 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27095
27096 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27097
27098 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27099
27100 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27101 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27102 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27103 functions.
27104 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27105 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27106 sh_pass_in_reg_p.
27107 Replace usage of ROUND_REG with sh_round_reg.
27108 Use CEIL instead of ROUND_ADVANCE.
27109
27110 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27111
27112 PR target/61026
27113 * config/sh/sh.c: Include stdlib headers before everything else.
27114
27115 2014-05-02 Jakub Jelinek <jakub@redhat.com>
27116
27117 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27118 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27119 (gimplify_adjust_omp_clauses): Simd region is never
27120 directly nested in combined parallel. Instead, for linear
27121 with copyin/copyout, if in combined for simd loop, make decl
27122 firstprivate/lastprivate on OMP_FOR.
27123 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27124 expand_omp_for_static_chunk): When setting endvar, also set
27125 fd->loop.v to the same value.
27126
27127 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27128
27129 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27130
27131 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
27132
27133 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27134 expression.
27135
27136 2014-05-02 Marek Polacek <polacek@redhat.com>
27137
27138 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27139
27140 2014-05-02 Kito Cheng <kito@0xlab.org>
27141
27142 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27143 to a C expression marco.
27144 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27145 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27146 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27147 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27148 HONOR_REG_ALLOC_ORDER.
27149 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27150
27151 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27152
27153 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27154
27155 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27156
27157 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27158
27159 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27160
27161 * tree-if-conv.c (is_cond_scalar_reduction): New function.
27162 (convert_scalar_cond_reduction): Likewise.
27163 (predicate_scalar_phi): Add recognition and transformation
27164 of simple conditioanl reduction to be vectorizable.
27165
27166 2014-05-01 Marek Polacek <polacek@redhat.com>
27167
27168 PR c/43245
27169 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27170
27171 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
27172
27173 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27174 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27175 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27176 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27177 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27178 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27179 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27180 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27181
27182 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
27183
27184 * config/arc/arc.opt (mlra): Move comment above option name
27185 to avoid mis-parsing as language options.
27186
27187 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27188
27189 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27190 * config/sol2.h: ... here.
27191 * config/sol2-10.h: Remove.
27192
27193 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27194 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27195 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27196 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27197 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27198 * config/sol2.h: ... here.
27199 (SECTION_NAME_FORMAT): Don't redefine.
27200 (STARTFILE_ARCH32_SPEC): Rename to ...
27201 (STARTFILE_ARCH_SPEC): ... this.
27202 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27203 * config/sparc/sol2.h: ... here.
27204 (SECTION_NAME_FORMAT): Don't undef.
27205 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27206 (SUBTARGET_EXTRA_SPECS): Remove.
27207 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27208
27209 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27210 (MD_STARTFILE_PREFIX): Remove.
27211 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27212 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27213 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27214 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27215 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27216 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27217 * config/i386/sol2.h: ... here.
27218 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27219 * config/i386/sol2-bi.h: Remove.
27220 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27221 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27222
27223 * config/i386/t-sol2-64: Rename to ...
27224 * config/i386/t-sol2: ... this.
27225 * config/sparc/t-sol2-64: Rename to ...
27226 * config/sparc/t-sol2: ... this.
27227
27228 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27229 sol2_tm_file_head, sol2_tm_file_tail.
27230 Include ${cpu_type}/sol2.h before sol2.h.
27231 Remove sol2-10.h.
27232 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27233 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27234 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27235 Reflect i386/t-sol2-64 renaming.
27236 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27237 Reflect sparc/t-sol2-64 renaming.
27238
27239 2014-04-30 Richard Biener <rguenther@suse.de>
27240
27241 * passes.c (execute_function_todo): Move TODO_verify_stmts
27242 and TODO_verify_ssa under the TODO_verify_il umbrella.
27243 * tree-ssa.h (verify_ssa): Adjust prototype.
27244 * tree-ssa.c (verify_ssa): Add parameter to tell whether
27245 we should verify SSA operands.
27246 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27247 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27248 whether we should verify whether not throwing stmts have EH info.
27249 * graphite-scop-detection.c (create_sese_edges): Adjust.
27250 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27251 * tree-eh.c (lower_try_finally_switch): Do not add the
27252 default case label twice.
27253
27254 2014-04-30 Marek Polacek <polacek@redhat.com>
27255
27256 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27257 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27258 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27259 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27260
27261 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
27262
27263 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27264 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27265 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27266 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27267 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27268 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27269 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27270 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27271
27272 2014-04-29 David Malcolm <dmalcolm@redhat.com>
27273
27274 * tree-cfg.c (dump_function_to_file): Dump the return type of
27275 functions, in a line to itself before the function body, mimicking
27276 the layout of a C function.
27277
27278 2014-04-29 Jakub Jelinek <jakub@redhat.com>
27279
27280 PR tree-optimization/60971
27281 * tree-tailcall.c (process_assignment): Reject conversions which
27282 reduce precision.
27283
27284 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27285
27286 * calls.c (initialize_argument_information): Always treat
27287 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27288 (expand_call): Likewise.
27289 (emit_library_call_calue_1): Likewise.
27290 * expr.c (PUSH_ARGS_REVERSED): Do not define.
27291 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27292 code accordingly.
27293
27294 2014-04-29 Nick Clifton <nickc@redhat.com>
27295
27296 * config/msp430/msp430.md (umulsidi): Fix typo.
27297 (mulhisi3): Enable even inside interrupt handlers.
27298 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27299 bigger return address pushed in large mode.
27300
27301 2014-04-29 Nick Clifton <nickc@redhat.com>
27302
27303 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27304 (arc_init_reg_tables): Use a machine_mode enum to iterate over
27305 available modes.
27306 * config/m32r/m32r.c (init_reg_tables): Likewise.
27307 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27308 enum to hold the modes.
27309
27310 2014-04-29 Richard Biener <rguenther@suse.de>
27311
27312 * dominance.c (free_dominance_info): Add overload with
27313 function parameter.
27314 (dom_info_state): Likewise.
27315 (dom_info_available_p): Likewise.
27316 * basic-block.h (free_dominance_info, dom_info_state,
27317 dom_info_available_p): Declare overloads.
27318 * passes.c (execute_function_todo): Verify that verifiers
27319 don't change dominator info state. Drop dominator info
27320 for IPA pass invocations.
27321 * cgraph.c (release_function_body): Restore asserts that
27322 dominator information is released.
27323
27324 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
27325
27326 * doc/invoke.texi: Fix typo.
27327 * tree-vrp.c: Fix typos.
27328 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27329
27330 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27331
27332 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27333
27334 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27335
27336 * config/aarch64/aarch64-builtins.c
27337 (aarch64_types_storestruct_lane_qualifiers): New.
27338 (TYPES_STORESTRUCT_LANE): Likewise.
27339 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27340 (st3_lane): Likewise.
27341 (st4_lane): Likewise.
27342 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27343 (vec_store_lanesci_lane<mode>): Likewise.
27344 (vec_store_lanesxi_lane<mode>): Likewise.
27345 (aarch64_st2_lane<VQ:mode>): Likewise.
27346 (aarch64_st3_lane<VQ:mode>): Likewise.
27347 (aarch64_st4_lane<VQ:mode>): Likewise.
27348 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27349 * config/aarch64/arm_neon.h
27350 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27351 use new macro arguments.
27352 (__ST3_LANE_FUNC): Likewise.
27353 (__ST4_LANE_FUNC): Likewise.
27354 * config/aarch64/iterators.md (V_TWO_ELEM): New.
27355 (V_THREE_ELEM): Likewise.
27356 (V_FOUR_ELEM): Likewise.
27357
27358 2014-04-28 David Malcolm <dmalcolm@redhat.com>
27359
27360 * doc/gimple.texi: Replace the description of the now-defunct
27361 union gimple_statement_d with a diagram showing the
27362 gimple_statement_base class hierarchy and its relationships to
27363 the GSS_ and GIMPLE_ enums.
27364
27365 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27366
27367 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27368 * config/aarch64/aarch64.c
27369 (aarch64_cannot_change_mode_class): Weaken conditions.
27370 (aarch64_modes_tieable_p): New.
27371 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27372
27373 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
27374
27375 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27376 (loadsync_<mode>): Change mode.
27377 (load_quadpti, store_quadpti): New.
27378 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27379 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27380
27381 2014-04-28 Martin Jambor <mjambor@suse.cz>
27382
27383 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27384 same alias type as the original statement.
27385 (subreplacement_assignment_data): New type.
27386 (handle_unscalarized_data_in_subtree): New type of parameter,
27387 generate new memory accesses with same alias type as the original
27388 statement.
27389 (load_assign_lhs_subreplacements): Likewise.
27390 (sra_modify_constructor_assign): Generate new memory accesses with
27391 same alias type as the original statement.
27392
27393 2014-04-28 Richard Biener <rguenther@suse.de>
27394
27395 * tree-pass.h (TODO_verify_il): Define.
27396 (TODO_verify_all): Complete properly.
27397 * passes.c (execute_function_todo): Move existing loop-closed
27398 SSA verification under TODO_verify_il.
27399 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27400 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27401 Fix tree sharing issue.
27402
27403 2014-04-28 Richard Biener <rguenther@suse.de>
27404
27405 PR middle-end/60092
27406 * builtins.def (DEF_C11_BUILTIN): Add.
27407 (BUILT_IN_ALIGNED_ALLOC): Likewise.
27408 * coretypes.h (enum function_class): Add function_c11_misc.
27409 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27410 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27411 (call_may_clobber_ref_p_1): Likewise.
27412 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27413 (mark_all_reaching_defs_necessary_1): Likewise.
27414 (propagate_necessity): Likewise.
27415 (eliminate_unnecessary_stmts): Likewise.
27416 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27417
27418 2014-04-28 Richard Biener <rguenther@suse.de>
27419
27420 * tree-vrp.c (vrp_var_may_overflow): Remove.
27421 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27422 with overflow immediately bump to one before that value and
27423 let iteration figure out overflow status.
27424
27425 2014-04-28 Richard Biener <rguenther@suse.de>
27426
27427 * configure.ac: Do valgrind header checks unconditionally.
27428 Add --enable-valgrind-annotations.
27429 * system.h: Guard valgrind header inclusion with
27430 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27431 * alloc-pool.c (pool_alloc, pool_free): Use
27432 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27433 to guard possibly dead code.
27434 * config.in: Regenerated.
27435 * configure: Likewise.
27436
27437 2014-04-28 Jeff Law <law@redhat.com>
27438
27439 PR tree-optimization/60902
27440 * tree-ssa-threadedge.c
27441 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27442 over real defs when invalidating outputs from statements that do not
27443 produce useful outputs for threading.
27444
27445 2014-04-28 Richard Biener <rguenther@suse.de>
27446
27447 PR tree-optimization/60979
27448 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27449 SCOPs that end in a block with a successor with abnormal
27450 predecessors.
27451
27452 2014-04-28 Richard Biener <rguenther@suse.de>
27453
27454 * tree-pass.h (execute_pass_list): Adjust prototype.
27455 * passes.c (pass_manager::execute_early_local_passes): Adjust.
27456 (do_per_function): Change callback signature, push all actual
27457 work to the callbals.
27458 (do_per_function_toporder): Likewise.
27459 (execute_function_dump): Adjust.
27460 (execute_function_todo): Likewise.
27461 (clear_last_verified): Likewise.
27462 (verify_curr_properties): Likewise.
27463 (update_properties_after_pass): Likewise.
27464 (execute_pass_list_1): Split out from ...
27465 (execute_pass_list): ... here. Adjust.
27466 (execute_ipa_pass_list): Likewise.
27467 * cgraphunit.c (cgraph_add_new_function): Adjust.
27468 (analyze_function): Likewise.
27469 (expand_function): Likewise.
27470 * cgraph.c (release_function_body): Free dominance info
27471 here instead of asserting it was magically freed elsewhere.
27472
27473 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
27474
27475 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27476 * configure: Regenerate.
27477 * config/sparc/sparc.opt (muser-mode): New option.
27478 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27479 for LEON3.
27480 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27481 * doc/invoke.texi (SPARC options): Document -muser-mode.
27482
27483 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
27484
27485 * cselib.c (find_slot_memmode): Delete.
27486 (cselib_hasher): Change compare_type to a struct.
27487 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
27488 constants.
27489 (preserve_constants_and_equivs): Adjust for new compare_type.
27490 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
27491 (wrap_constant): Delete.
27492 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27493
27494 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27495
27496 * doc/install.texi (Building with profile feedback): Remove
27497 outdated sentence.
27498
27499 2014-04-26 Tom de Vries <tom@codesourcery.com>
27500
27501 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27502 array accesses.
27503
27504 2014-04-25 Cary Coutant <ccoutant@google.com>
27505
27506 PR debug/60929
27507 * dwarf2out.c (should_move_die_to_comdat): A type definition
27508 can contain a subprogram definition, but don't move it to a
27509 comdat unit.
27510 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27511 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27512 from original DIE.
27513 (clone_tree_hash): Rename to...
27514 (clone_tree_partial): ...this; change callers. Copy
27515 DW_TAG_subprogram DIEs as declarations.
27516 (copy_decls_walk): Don't copy children of a declaration into a
27517 type unit.
27518
27519 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
27520
27521 PR target/60969
27522 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27523 alternative 12.
27524
27525 2014-04-25 Jiong Wang <jiong.wang@arm.com>
27526
27527 * config/arm/predicates.md (call_insn_operand): Add long_call check.
27528 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27529 reg for long_call.
27530 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27531 restriction.
27532
27533 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27534
27535 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27536
27537 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27538
27539 PR tree-optimization/60930
27540 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
27541 creating a multiply candidate by folding two constant
27542 multiplicands when the result overflows.
27543
27544 2014-04-25 Jakub Jelinek <jakub@redhat.com>
27545
27546 PR tree-optimization/60960
27547 * tree-vect-generic.c (expand_vector_operation): Only call
27548 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27549
27550 2014-04-25 Tom de Vries <tom@codesourcery.com>
27551
27552 * expr.c (clobber_reg_mode): New function.
27553 * expr.h (clobber_reg): New function.
27554
27555 2014-04-25 Tom de Vries <tom@codesourcery.com>
27556
27557 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27558 clobbers.
27559
27560 2014-04-25 Radovan Obradovic <robradovic@mips.com>
27561 Tom de Vries <tom@codesourcery.com>
27562
27563 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27564 handle.
27565 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27566 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27567 new argument to find_all_hard_reg_sets call.
27568
27569 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27570
27571 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27572 Use HOST_WIDE_INT_C for mask literal.
27573 (aarch_rev16_shleft_mask_imm_p): Likewise.
27574
27575 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
27576
27577 PR target/60941
27578 * config/sparc/sparc.md (ashlsi3_extend): Delete.
27579
27580 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
27581
27582 PR preprocessor/56540
27583 * config/i386/i386-c.c (ix86_target_macros): Define
27584 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27585
27586 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27587
27588 * configure.ac (tga_func): Remove.
27589 (LIB_TLS_SPEC): Remove.
27590 * configure: Regenerate.
27591 * config.in: Regenerate.
27592 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27593
27594 2014-04-25 Richard Biener <rguenther@suse.de>
27595
27596 PR ipa/60912
27597 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27598 call stmt use/clobber sets during stmt walk instead of
27599 walking the possibly incomplete set of caller edges.
27600
27601 2014-04-25 Richard Biener <rguenther@suse.de>
27602
27603 PR ipa/60911
27604 * passes.c (apply_ipa_transforms): Inline into only caller ...
27605 (execute_one_pass): ... here. Properly bring in function
27606 bodies for nodes we want to apply IPA transforms to.
27607
27608 2014-04-24 Cong Hou <congh@google.com>
27609
27610 PR tree-optimization/60896
27611 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27612 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27613 (vect_mark_pattern_stmts): Set the def type of all statements in
27614 PATTERN_DEF_SEQ as vect_internal_def.
27615
27616 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27617
27618 * doc/extend.texi (PowerPC Built-in Functions): Document new
27619 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27620 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27621
27622 * config/rs6000/predicates.md (const_0_to_3_operand): New
27623 predicate to match 0..3 integer constants.
27624
27625 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27626 to support adding miscellaneous builtin functions.
27627 (BU_DFP_MISC_2): Likewise.
27628 (BU_P7_MISC_1): Likewise.
27629 (BU_P7_MISC_2): Likewise.
27630 (BU_P8V_MISC_3): Likewise.
27631 (BU_MISC_1): Likewise.
27632 (BU_MISC_2): Likewise.
27633 (DIVWE): Add extended divide builtin functions.
27634 (DIVWEO): Likewise.
27635 (DIVWEU): Likewise.
27636 (DIVWEUO): Likewise.
27637 (DIVDE): Likewise.
27638 (DIVDEO): Likewise.
27639 (DIVDEU): Likewise.
27640 (DIVDEUO): Likewise.
27641 (DXEX): Add decimal floating-point builtin functions.
27642 (DXEXQ): Likewise.
27643 (DDEDPD): Likewise.
27644 (DDEDPDQ): Likewise.
27645 (DENBCD): Likewise.
27646 (DENBCDQ): Likewise.
27647 (DIEX): Likewise.
27648 (DIEXQ): Likewise.
27649 (DSCLI): Likewise.
27650 (DSCLIQ): Likewise.
27651 (DSCRI): Likewise.
27652 (DSCRIQ): Likewise.
27653 (CDTBCD): Add new BCD builtin functions.
27654 (CBCDTD): Likewise.
27655 (ADDG6S): Likewise.
27656 (BCDADD): Likewise.
27657 (BCDADD_LT): Likewise.
27658 (BCDADD_EQ): Likewise.
27659 (BCDADD_GT): Likewise.
27660 (BCDADD_OV): Likewise.
27661 (BCDSUB): Likewise.
27662 (BCDSUB_LT): Likewise.
27663 (BCDSUB_EQ): Likewise.
27664 (BCDSUB_GT): Likewise.
27665 (BCDSUB_OV): Likewise.
27666 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27667 (UNPACK_TD): Likewise.
27668 (PACK_TF): Likewise.
27669 (UNPACK_TF): Likewise.
27670 (UNPACK_TF_0): Likewise.
27671 (UNPACK_TF_1): Likewise.
27672 (PACK_V1TI): Likewise.
27673 (UNPACK_V1TI): Likewise.
27674
27675 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27676 support for decimal floating point builtin functions.
27677 (rs6000_expand_ternop_builtin): Add checks for the new builtin
27678 functions that take constant arguments.
27679 (rs6000_invalid_builtin): Add decimal floating point builtin support.
27680 (rs6000_init_builtins): Setup long double, _Decimal64, and
27681 _Decimal128 types for new builtin functions.
27682 (builtin_function_type): Set the unsigned flags appropriately for
27683 the new builtin functions.
27684 (rs6000_opt_masks): Add support for decimal floating point builtin
27685 functions.
27686
27687 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27688 floating point builtin functions.
27689 (RS6000_BTM_COMMON): Likewise.
27690 (RS6000_BTI_long_double): Likewise.
27691 (RS6000_BTI_dfloat64): Likewise.
27692 (RS6000_BTI_dfloat128): Likewise.
27693 (long_double_type_internal_node): Likewise.
27694 (dfloat64_type_internal_node): Likewise.
27695 (dfloat128_type_internal_node): Likewise.
27696
27697 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27698 2.07 bcd arithmetic instructions.
27699 (UNSPEC_BCDSUB): Likewise.
27700 (UNSPEC_BCD_OVERFLOW): Likewise.
27701 (UNSPEC_BCD_ADD_SUB): Likewise.
27702 (bcd_add_sub): Likewise.
27703 (BCD_TEST): Likewise.
27704 (bcd<bcd_add_sub>): Likewise.
27705 (bcd<bcd_add_sub>_test): Likewise.
27706 (bcd<bcd_add_sub>_test2): Likewise.
27707 (bcd<bcd_add_sub>_<code>): Likewise.
27708 (peephole2 for combined bcd ops): Likewise.
27709
27710 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27711 decimal floating point builtin functions.
27712 (UNSPEC_DENBCD): Likewise.
27713 (UNSPEC_DXEX): Likewise.
27714 (UNSPEC_DIEX): Likewise.
27715 (UNSPEC_DSCLI): Likewise.
27716 (UNSPEC_DSCRI): Likewise.
27717 (D64_D128): Likewise.
27718 (dfp_suffix): Likewise.
27719 (dfp_ddedpd_<mode>): Likewise.
27720 (dfp_denbcd_<mode>): Likewise.
27721 (dfp_dxex_<mode>): Likewise.
27722 (dfp_diex_<mode>): Likewise.
27723 (dfp_dscli_<mode>): Likewise.
27724 (dfp_dscri_<mode>): Likewise.
27725
27726 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27727 builtin functions.
27728 (UNSPEC_CDTBCD): Likewise.
27729 (UNSPEC_CBCDTD): Likewise.
27730 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27731 (UNSPEC_DIVEO): Likewise.
27732 (UNSPEC_DIVEU): Likewise.
27733 (UNSPEC_DIVEUO): Likewise.
27734 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27735 pack/unpack 128-bit types.
27736 (UNSPEC_PACK_128BIT): Likewise.
27737 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27738 (udiv<mode>3): Use idiv_ldiv mode attribute.
27739 (div<mode>3): Likewise.
27740 (addg6s): Add new BCD builtin functions.
27741 (cdtbcd): Likewise.
27742 (cbcdtd): Likewise.
27743 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27744 (div_extend): Likewise.
27745 (div<div_extend>_<mode>"): Likewise.
27746 (FP128_64): Add support for new builtin functions to pack/unpack
27747 128-bit types.
27748 (unpack<mode>): Likewise.
27749 (unpacktf_0): Likewise.
27750 (unpacktf_1): Likewise.
27751 (unpack<mode>_dm): Likewise.
27752 (unpack<mode>_nodm): Likewise.
27753 (pack<mode>): Likewise.
27754 (unpackv1ti): Likewise.
27755 (packv1ti): Likewise.
27756
27757 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
27758
27759 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27760 is disabled.
27761
27762 2014-04-24 Jakub Jelinek <jakub@redhat.com>
27763
27764 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27765 * gimplify.c (omp_is_private): Change last argument's type to int.
27766 Only diagnose lastprivate if the simd argument is 1, only diagnose
27767 linear if the simd argument is 2.
27768 (gimplify_omp_for): Adjust omp_is_private callers. When adding
27769 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
27770 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
27771 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27772 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27773 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27774 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27775 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27776 * tree-nested.c (convert_nonlocal_omp_clauses,
27777 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27778
27779 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
27780
27781 PR target/60822
27782 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27783 operand 1.
27784
27785 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
27786
27787 * flag-types.h (enum ivar_visibility): Add.
27788
27789 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
27790
27791 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27792 function * argument.
27793
27794 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
27795
27796 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27797
27798 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27799 Tom de Vries <tom@codesourcery.com>
27800
27801 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27802 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27803 reg-note.
27804 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27805 * emit-rtl.c (try_split): Same.
27806
27807 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27808 Tom de Vries <tom@codesourcery.com>
27809
27810 * common.opt (fuse-caller-save): New option.
27811
27812 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
27813
27814 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27815 elements for big-endian.
27816
27817 2014-04-24 Richard Biener <rguenther@suse.de>
27818
27819 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27820 during TER and instead use the sepops interface for expanding
27821 non-GIMPLE_SINGLE_RHS.
27822
27823 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27824
27825 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27826 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27827
27828 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27829
27830 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27831 assembler 64-bit option.
27832 * configure: Regenerate.
27833
27834 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27835
27836 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27837 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27838 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27839 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27840 (TARGET_CRYPTO): Take TARGET_SIMD into account.
27841
27842 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27843
27844 * config/aarch64/aarch64-builtins.c
27845 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27846 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27847 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27848 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27849 builtins.
27850 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27851 (Vrevsuff): New mode attribute.
27852
27853 2014-04-24 Terry Guo <terry.guo@arm.com>
27854
27855 * config/arm/arm.h (machine_function): Define variable
27856 after_arm_reorg here.
27857 * config/arm/arm.c (after_arm_reorg): Remove the definition.
27858 (arm_split_constant): Update the way to access variable
27859 after_arm_reorg.
27860 (arm_reorg): Ditto.
27861 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27862
27863 2014-04-23 Tom de Vries <tom@codesourcery.com>
27864
27865 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27866
27867 2014-04-23 David Malcolm <dmalcolm@redhat.com>
27868
27869 * is-a.h: Update comments to reflect the following changes to the
27870 "pointerness" of the API, making the template parameter match the
27871 return type, allowing use of is-a.h with typedefs of pointers.
27872 (is_a_helper::cast): Return a T rather then a pointer to a T, so
27873 that the return type matches the parameter to the is_a_helper.
27874 (as_a): Likewise.
27875 (dyn_cast): Likewise.
27876
27877 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27878 pointer from the is-a.h API.
27879
27880 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27881 (is_a_helper <cgraph_node *>::test): ...this, matching change to
27882 is-a.h API.
27883 (is_a_helper <varpool_node>::test): Likewise, convert to...
27884 (is_a_helper <varpool_node *>::test): ...this.
27885
27886 (varpool_first_variable): Update for removal of implicit pointer
27887 from the is-a.h API.
27888 (varpool_next_variable): Likewise.
27889 (varpool_first_static_initializer): Likewise.
27890 (varpool_next_static_initializer): Likewise.
27891 (varpool_first_defined_variable): Likewise.
27892 (varpool_next_defined_variable): Likewise.
27893 (cgraph_first_defined_function): Likewise.
27894 (cgraph_next_defined_function): Likewise.
27895 (cgraph_first_function): Likewise.
27896 (cgraph_next_function): Likewise.
27897 (cgraph_first_function_with_gimple_body): Likewise.
27898 (cgraph_next_function_with_gimple_body): Likewise.
27899 (cgraph_alias_target): Likewise.
27900 (varpool_alias_target): Likewise.
27901 (cgraph_function_or_thunk_node): Likewise.
27902 (varpool_variable_node): Likewise.
27903 (symtab_real_symbol_p): Likewise.
27904 * cgraphunit.c (referred_to_p): Likewise.
27905 (analyze_functions): Likewise.
27906 (handle_alias_pairs): Likewise.
27907 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27908 * gimple-ssa.h (gimple_vuse_op): Likewise.
27909 (gimple_vdef_op): Likewise.
27910 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27911 * gimple.c (gimple_build_asm_1): Likewise.
27912 (gimple_build_try): Likewise.
27913 (gimple_build_resx): Likewise.
27914 (gimple_build_eh_dispatch): Likewise.
27915 (gimple_build_omp_for): Likewise.
27916 (gimple_omp_for_set_clauses): Likewise.
27917
27918 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27919 (is_a_helper <gimple_statement_asm *>::test): ...this.
27920 (is_a_helper <gimple_statement_bind>::test): Convert to...
27921 (is_a_helper <gimple_statement_bind *>::test): ...this.
27922 (is_a_helper <gimple_statement_call>::test): Convert to...
27923 (is_a_helper <gimple_statement_call *>::test): ...this.
27924 (is_a_helper <gimple_statement_catch>::test): Convert to...
27925 (is_a_helper <gimple_statement_catch *>::test): ...this.
27926 (is_a_helper <gimple_statement_resx>::test): Convert to...
27927 (is_a_helper <gimple_statement_resx *>::test): ...this.
27928 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27929 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27930 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27931 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27932 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27933 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27934 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27935 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27936 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27937 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27938 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27939 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27940 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27941 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27942 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27943 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27944 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27945 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27946 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27947 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27948 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27949 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27950 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27951 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27952 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27953 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27954 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27955 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27956 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27957 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27958 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27959 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27960 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27961 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27962 (is_a_helper <gimple_statement_phi>::test): Convert to...
27963 (is_a_helper <gimple_statement_phi *>::test): ...this.
27964 (is_a_helper <gimple_statement_transaction>::test): Convert to...
27965 (is_a_helper <gimple_statement_transaction *>::test): ...this.
27966 (is_a_helper <gimple_statement_try>::test): Convert to...
27967 (is_a_helper <gimple_statement_try *>::test): ...this.
27968 (is_a_helper <gimple_statement_wce>::test): Convert to...
27969 (is_a_helper <gimple_statement_wce *>::test): ...this.
27970 (is_a_helper <const gimple_statement_asm>::test): Convert to...
27971 (is_a_helper <const gimple_statement_asm *>::test): ...this.
27972 (is_a_helper <const gimple_statement_bind>::test): Convert to...
27973 (is_a_helper <const gimple_statement_bind *>::test): ...this.
27974 (is_a_helper <const gimple_statement_call>::test): Convert to...
27975 (is_a_helper <const gimple_statement_call *>::test): ...this.
27976 (is_a_helper <const gimple_statement_catch>::test): Convert to...
27977 (is_a_helper <const gimple_statement_catch *>::test): ...this.
27978 (is_a_helper <const gimple_statement_resx>::test): Convert to...
27979 (is_a_helper <const gimple_statement_resx *>::test): ...this.
27980 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27981 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27982 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27983 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27984 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27985 Convert to...
27986 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27987 ...this.
27988 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27989 Convert to...
27990 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27991 ...this.
27992 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27993 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27994 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27995 to...
27996 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27997 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27998 to...
27999 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28000 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28001 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28002 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28003 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28004 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28005 to...
28006 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28007 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28008 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28009 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28010 to...
28011 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28012 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28013 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28014 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28015 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28016 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28017 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28018 (is_a_helper <const gimple_statement_phi>::test): Convert to...
28019 (is_a_helper <const gimple_statement_phi *>::test): ...this.
28020 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28021 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28022 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28023 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28024 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28025 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28026 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28027 to...
28028 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28029 ...this.
28030 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28031 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28032
28033 (gimple_use_ops): Update for removal of implicit pointer from the
28034 is-a.h API.
28035 (gimple_set_use_ops): Likewise.
28036 (gimple_vuse): Likewise.
28037 (gimple_vdef): Likewise.
28038 (gimple_vuse_ptr): Likewise.
28039 (gimple_vdef_ptr): Likewise.
28040 (gimple_set_vuse): Likewise.
28041 (gimple_set_vdef): Likewise.
28042 (gimple_omp_return_set_lhs): Likewise.
28043 (gimple_omp_return_lhs): Likewise.
28044 (gimple_omp_return_lhs_ptr): Likewise.
28045 (gimple_call_fntype): Likewise.
28046 (gimple_call_set_fntype): Likewise.
28047 (gimple_call_set_internal_fn): Likewise.
28048 (gimple_call_use_set): Likewise.
28049 (gimple_call_clobber_set): Likewise.
28050 (gimple_bind_vars): Likewise.
28051 (gimple_bind_set_vars): Likewise.
28052 (gimple_bind_body_ptr): Likewise.
28053 (gimple_bind_set_body): Likewise.
28054 (gimple_bind_add_stmt): Likewise.
28055 (gimple_bind_block): Likewise.
28056 (gimple_bind_set_block): Likewise.
28057 (gimple_asm_ninputs): Likewise.
28058 (gimple_asm_noutputs): Likewise.
28059 (gimple_asm_nclobbers): Likewise.
28060 (gimple_asm_nlabels): Likewise.
28061 (gimple_asm_input_op): Likewise.
28062 (gimple_asm_input_op_ptr): Likewise.
28063 (gimple_asm_output_op): Likewise.
28064 (gimple_asm_output_op_ptr): Likewise.
28065 (gimple_asm_set_output_op): Likewise.
28066 (gimple_asm_clobber_op): Likewise.
28067 (gimple_asm_set_clobber_op): Likewise.
28068 (gimple_asm_label_op): Likewise.
28069 (gimple_asm_set_label_op): Likewise.
28070 (gimple_asm_string): Likewise.
28071 (gimple_catch_types): Likewise.
28072 (gimple_catch_types_ptr): Likewise.
28073 (gimple_catch_handler_ptr): Likewise.
28074 (gimple_catch_set_types): Likewise.
28075 (gimple_catch_set_handler): Likewise.
28076 (gimple_eh_filter_types): Likewise.
28077 (gimple_eh_filter_types_ptr): Likewise.
28078 (gimple_eh_filter_failure_ptr): Likewise.
28079 (gimple_eh_filter_set_types): Likewise.
28080 (gimple_eh_filter_set_failure): Likewise.
28081 (gimple_eh_must_not_throw_fndecl): Likewise.
28082 (gimple_eh_must_not_throw_set_fndecl): Likewise.
28083 (gimple_eh_else_n_body_ptr): Likewise.
28084 (gimple_eh_else_e_body_ptr): Likewise.
28085 (gimple_eh_else_set_n_body): Likewise.
28086 (gimple_eh_else_set_e_body): Likewise.
28087 (gimple_try_eval_ptr): Likewise.
28088 (gimple_try_cleanup_ptr): Likewise.
28089 (gimple_try_set_eval): Likewise.
28090 (gimple_try_set_cleanup): Likewise.
28091 (gimple_wce_cleanup_ptr): Likewise.
28092 (gimple_wce_set_cleanup): Likewise.
28093 (gimple_phi_capacity): Likewise.
28094 (gimple_phi_num_args): Likewise.
28095 (gimple_phi_result): Likewise.
28096 (gimple_phi_result_ptr): Likewise.
28097 (gimple_phi_set_result): Likewise.
28098 (gimple_phi_arg): Likewise.
28099 (gimple_phi_set_arg): Likewise.
28100 (gimple_resx_region): Likewise.
28101 (gimple_resx_set_region): Likewise.
28102 (gimple_eh_dispatch_region): Likewise.
28103 (gimple_eh_dispatch_set_region): Likewise.
28104 (gimple_omp_critical_name): Likewise.
28105 (gimple_omp_critical_name_ptr): Likewise.
28106 (gimple_omp_critical_set_name): Likewise.
28107 (gimple_omp_for_clauses): Likewise.
28108 (gimple_omp_for_clauses_ptr): Likewise.
28109 (gimple_omp_for_set_clauses): Likewise.
28110 (gimple_omp_for_collapse): Likewise.
28111 (gimple_omp_for_index): Likewise.
28112 (gimple_omp_for_index_ptr): Likewise.
28113 (gimple_omp_for_set_index): Likewise.
28114 (gimple_omp_for_initial): Likewise.
28115 (gimple_omp_for_initial_ptr): Likewise.
28116 (gimple_omp_for_set_initial): Likewise.
28117 (gimple_omp_for_final): Likewise.
28118 (gimple_omp_for_final_ptr): Likewise.
28119 (gimple_omp_for_set_final): Likewise.
28120 (gimple_omp_for_incr): Likewise.
28121 (gimple_omp_for_incr_ptr): Likewise.
28122 (gimple_omp_for_set_incr): Likewise.
28123 (gimple_omp_for_pre_body_ptr): Likewise.
28124 (gimple_omp_for_set_pre_body): Likewise.
28125 (gimple_omp_parallel_clauses): Likewise.
28126 (gimple_omp_parallel_clauses_ptr): Likewise.
28127 (gimple_omp_parallel_set_clauses): Likewise.
28128 (gimple_omp_parallel_child_fn): Likewise.
28129 (gimple_omp_parallel_child_fn_ptr): Likewise.
28130 (gimple_omp_parallel_set_child_fn): Likewise.
28131 (gimple_omp_parallel_data_arg): Likewise.
28132 (gimple_omp_parallel_data_arg_ptr): Likewise.
28133 (gimple_omp_parallel_set_data_arg): Likewise.
28134 (gimple_omp_task_clauses): Likewise.
28135 (gimple_omp_task_clauses_ptr): Likewise.
28136 (gimple_omp_task_set_clauses): Likewise.
28137 (gimple_omp_task_child_fn): Likewise.
28138 (gimple_omp_task_child_fn_ptr): Likewise.
28139 (gimple_omp_task_set_child_fn): Likewise.
28140 (gimple_omp_task_data_arg): Likewise.
28141 (gimple_omp_task_data_arg_ptr): Likewise.
28142 (gimple_omp_task_set_data_arg): Likewise.
28143 (gimple_omp_taskreg_clauses): Likewise.
28144 (gimple_omp_taskreg_clauses_ptr): Likewise.
28145 (gimple_omp_taskreg_set_clauses): Likewise.
28146 (gimple_omp_taskreg_child_fn): Likewise.
28147 (gimple_omp_taskreg_child_fn_ptr): Likewise.
28148 (gimple_omp_taskreg_set_child_fn): Likewise.
28149 (gimple_omp_taskreg_data_arg): Likewise.
28150 (gimple_omp_taskreg_data_arg_ptr): Likewise.
28151 (gimple_omp_taskreg_set_data_arg): Likewise.
28152 (gimple_omp_task_copy_fn): Likewise.
28153 (gimple_omp_task_copy_fn_ptr): Likewise.
28154 (gimple_omp_task_set_copy_fn): Likewise.
28155 (gimple_omp_task_arg_size): Likewise.
28156 (gimple_omp_task_arg_size_ptr): Likewise.
28157 (gimple_omp_task_set_arg_size): Likewise.
28158 (gimple_omp_task_arg_align): Likewise.
28159 (gimple_omp_task_arg_align_ptr): Likewise.
28160 (gimple_omp_task_set_arg_align): Likewise.
28161 (gimple_omp_single_clauses): Likewise.
28162 (gimple_omp_single_clauses_ptr): Likewise.
28163 (gimple_omp_single_set_clauses): Likewise.
28164 (gimple_omp_target_clauses): Likewise.
28165 (gimple_omp_target_clauses_ptr): Likewise.
28166 (gimple_omp_target_set_clauses): Likewise.
28167 (gimple_omp_target_child_fn): Likewise.
28168 (gimple_omp_target_child_fn_ptr): Likewise.
28169 (gimple_omp_target_set_child_fn): Likewise.
28170 (gimple_omp_target_data_arg): Likewise.
28171 (gimple_omp_target_data_arg_ptr): Likewise.
28172 (gimple_omp_target_set_data_arg): Likewise.
28173 (gimple_omp_teams_clauses): Likewise.
28174 (gimple_omp_teams_clauses_ptr): Likewise.
28175 (gimple_omp_teams_set_clauses): Likewise.
28176 (gimple_omp_sections_clauses): Likewise.
28177 (gimple_omp_sections_clauses_ptr): Likewise.
28178 (gimple_omp_sections_set_clauses): Likewise.
28179 (gimple_omp_sections_control): Likewise.
28180 (gimple_omp_sections_control_ptr): Likewise.
28181 (gimple_omp_sections_set_control): Likewise.
28182 (gimple_omp_for_set_cond): Likewise.
28183 (gimple_omp_for_cond): Likewise.
28184 (gimple_omp_atomic_store_set_val): Likewise.
28185 (gimple_omp_atomic_store_val): Likewise.
28186 (gimple_omp_atomic_store_val_ptr): Likewise.
28187 (gimple_omp_atomic_load_set_lhs): Likewise.
28188 (gimple_omp_atomic_load_lhs): Likewise.
28189 (gimple_omp_atomic_load_lhs_ptr): Likewise.
28190 (gimple_omp_atomic_load_set_rhs): Likewise.
28191 (gimple_omp_atomic_load_rhs): Likewise.
28192 (gimple_omp_atomic_load_rhs_ptr): Likewise.
28193 (gimple_omp_continue_control_def): Likewise.
28194 (gimple_omp_continue_control_def_ptr): Likewise.
28195 (gimple_omp_continue_set_control_def): Likewise.
28196 (gimple_omp_continue_control_use): Likewise.
28197 (gimple_omp_continue_control_use_ptr): Likewise.
28198 (gimple_omp_continue_set_control_use): Likewise.
28199 (gimple_transaction_body_ptr): Likewise.
28200 (gimple_transaction_label): Likewise.
28201 (gimple_transaction_label_ptr): Likewise.
28202 (gimple_transaction_set_body): Likewise.
28203 (gimple_transaction_set_label): Likewise.
28204
28205 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28206 * ipa-inline-analysis.c (inline_write_summary): Likewise.
28207 * ipa-ref.c (ipa_record_reference): Likewise.
28208 * ipa-reference.c (analyze_function): Likewise.
28209 (ipa_reference_write_optimization_summary): Likewise.
28210 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28211 (address_taken_from_non_vtable_p): Likewise.
28212 (comdat_can_be_unshared_p_1): Likewise.
28213 * lto-cgraph.c (lto_output_ref): Likewise.
28214 (add_references): Likewise.
28215 (compute_ltrans_boundary): Likewise.
28216 (output_symtab): Likewise.
28217 (input_ref): Likewise.
28218 (input_cgraph_1): Likewise.
28219 (output_cgraph_opt_summary): Likewise.
28220 * lto-streamer-out.c (lto_output): Likewise.
28221 (output_symbol_p): Likewise.
28222 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28223 (lsei_start_function_in_partition): Likewise.
28224 (lsei_next_variable_in_partition): Likewise.
28225 (lsei_start_variable_in_partition): Likewise.
28226 * symtab.c (insert_to_assembler_name_hash): Likewise.
28227 (unlink_from_assembler_name_hash): Likewise.
28228 (symtab_unregister_node): Likewise.
28229 (symtab_remove_node): Likewise.
28230 (dump_symtab_node): Likewise.
28231 (verify_symtab_base): Likewise.
28232 (verify_symtab_node): Likewise.
28233 (symtab_make_decl_local): Likewise.
28234 (symtab_alias_ultimate_target): Likewise.
28235 (symtab_resolve_alias): Likewise.
28236 (symtab_get_symbol_partitioning_class): Likewise.
28237 * tree-phinodes.c (allocate_phi_node): Likewise.
28238 (reserve_phi_args_for_new_edge): Likewise.
28239 (remove_phi_args): Likewise.
28240 * varpool.c (varpool_node_for_asm): Likewise.
28241 (varpool_remove_unreferenced_decls): Likewise.
28242
28243 2014-04-23 Jeff Law <law@redhat.com>
28244
28245 PR tree-optimization/60902
28246 * tree-ssa-threadedge.c
28247 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28248 invalidate outputs from statements that do not produce useful
28249 outputs for threading.
28250
28251 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
28252
28253 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28254 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28255 machine descriptions for Stack Smashing Protector.
28256
28257 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
28258
28259 * aarch64.md (<optab>_rol<mode>3): New pattern.
28260 (<optab>_rolsi3_uxtw): Likewise.
28261 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28262
28263 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
28264
28265 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28266 (arm_cortex_a12_tune): Likewise.
28267
28268 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28269
28270 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28271
28272 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28273
28274 * config/arm/arm.md (arm_rev16si2): New pattern.
28275 (arm_rev16si2_alt): Likewise.
28276 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28277
28278 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28279
28280 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28281 (rev16<mode>2_alt): Likewise.
28282 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28283 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28284 (aarch_rev16_shleft_mask_imm_p): Likewise.
28285 (aarch_rev16_p_1): Likewise.
28286 (aarch_rev16_p): Likewise.
28287 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28288 (aarch_rev16_shright_mask_imm_p): Likewise.
28289 (aarch_rev16_shleft_mask_imm_p): Likewise.
28290
28291 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28292
28293 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28294 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28295 rev cost.
28296 (cortex_a53_extra_costs): Likewise.
28297 (cortex_a57_extra_costs): Likewise.
28298 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28299 (cortexa7_extra_costs): Likewise.
28300 (cortexa8_extra_costs): Likewise.
28301 (cortexa12_extra_costs): Likewise.
28302 (cortexa15_extra_costs): Likewise.
28303 (v7m_extra_costs): Likewise.
28304 (arm_new_rtx_costs): Handle BSWAP.
28305
28306 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28307
28308 * config/arm/arm.c (cortexa8_extra_costs): New table.
28309 (arm_cortex_a8_tune): New tuning struct.
28310 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28311
28312 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28313
28314 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28315
28316 2014-04-23 Richard Biener <rguenther@suse.de>
28317
28318 * Makefile.in (OBJS): Remove loop-unswitch.o.
28319 * tree-pass.h (make_pass_rtl_unswitch): Remove.
28320 * passes.def (pass_rtl_unswitch): Likewise.
28321 * loop-init.c (gate_rtl_unswitch): Likewise.
28322 (rtl_unswitch): Likewise.
28323 (pass_data_rtl_unswitch): Likewise.
28324 (pass_rtl_unswitch): Likewise.
28325 (make_pass_rtl_unswitch): Likewise.
28326 * rtl.h (reversed_condition): Likewise.
28327 (compare_and_jump_seq): Likewise.
28328 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28329 and make static.
28330 * loop-unroll.c (compare_and_jump_seq): Likewise.
28331
28332 2014-04-23 Richard Biener <rguenther@suse.de>
28333
28334 PR tree-optimization/60903
28335 * tree-ssa-loop-im.c (analyze_memory_references): Remove
28336 commented code block.
28337 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28338 loop flags to newly created BBs and edges.
28339
28340 2014-04-23 Nick Clifton <nickc@redhat.com>
28341
28342 * config/msp430/msp430.c (msp430_handle_option): Move function
28343 to msp430-common.c
28344 (msp430_option_override): Simplify mcu and mcpu option handling.
28345 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
28346 support for -mhwmult command line option.
28347 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
28348 -mhwmult command line option.
28349 (msp430_hwmult_enabled): Delete.
28350 (msp43o_output_labelref): Add support for -mhwmult command line option.
28351 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28352 (umulsidi3): Likewise.
28353 * config/msp430/msp430.opt (mmcu): Add Report attribute.
28354 (mcpu, mlarge, msmall): Likewise.
28355 (mhwmult): New option.
28356 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28357 prototype.
28358 (msp430_is_f5_mcu): Remove prototype.
28359 (msp430_use_f5_series_hwmult): Add prototype.
28360 * config/msp430/msp430-opts.h: New file.
28361 * common/config/msp430: New directory.
28362 * common/config/msp430/msp430-common.c: New file.
28363 * config.gcc (msp430): Remove target_has_targetm_common.
28364 * doc/invoke.texi: Document -mhwmult command line option.
28365
28366 2014-04-23 Nick Clifton <nickc@redhat.com>
28367
28368 * config/i386/cygwin.h (ENDFILE_SPEC): Include
28369 default-manifest.o if it can be found in the search path.
28370 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28371
28372 2014-04-23 Terry Guo <terry.guo@arm.com>
28373
28374 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28375
28376 2014-04-23 Richard Biener <rguenther@suse.de>
28377
28378 PR middle-end/60895
28379 * tree-inline.c (declare_return_variable): Use mark_addressable.
28380
28381 2014-04-23 Richard Biener <rguenther@suse.de>
28382
28383 PR middle-end/60891
28384 * loop-init.c (loop_optimizer_init): Make sure to apply
28385 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28386
28387 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28388
28389 PR sanitizer/60275
28390 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28391 New options.
28392 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28393 if flag_sanitize_undefined_trap_on_error.
28394 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28395 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28396 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28397 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28398 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28399 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28400 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28401 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28402 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28403 * ubsan.c (ubsan_instrument_unreachable): Return
28404 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28405 (ubsan_expand_null_ifn): Emit __builtin_trap ()
28406 if flag_sanitize_undefined_trap_on_error and
28407 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28408 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28409 instrument_bool_enum_load): Emit __builtin_trap () if
28410 flag_sanitize_undefined_trap_on_error and
28411 __builtin_handle_*_abort () if !flag_sanitize_recover.
28412 * doc/invoke.texi (-fsanitize-recover,
28413 -fsanitize-undefined-trap-on-error): Document.
28414
28415 2014-04-22 Christian Bruel <christian.bruel@st.com>
28416
28417 * config/sh/sh.md (mov<mode>): Replace movQIHI.
28418 Force immediates to SImode.
28419
28420 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
28421
28422 * config/nios2/nios2.md (UNSPEC_ROUND): New.
28423 (lroundsfsi2): New.
28424 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28425 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28426 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28427 (nios2_fpu_insn): Add entry for round.
28428 (N2FPU_NO_ERRNO_P): Define.
28429 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28430 flag_errno_math.
28431 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28432
28433 2014-04-22 Richard Henderson <rth@redhat.com>
28434
28435 * config/aarch64/aarch64 (addti3, subti3): New expanders.
28436 (add<GPI>3_compare0): Remove leading * from name.
28437 (add<GPI>3_carryin): Likewise.
28438 (sub<GPI>3_compare0): Likewise.
28439 (sub<GPI>3_carryin): Likewise.
28440 (<su_optab>mulditi3): New expander.
28441 (multi3): New expander.
28442 (madd<GPI>): Remove leading * from name.
28443
28444 2014-04-22 Martin Jambor <mjambor@suse.cz>
28445
28446 * cgraphclones.c (cgraph_function_versioning): Copy
28447 ipa_transforms_to_apply instead of asserting it is empty.
28448
28449 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
28450
28451 PR target/60868
28452 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28453 on count_exp to get mode.
28454
28455 2014-04-22 Andrew Pinski <apinski@cavium.com>
28456
28457 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28458 Handle TLS for ILP32.
28459 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28460 (tlsie_small_<mode>): this and handle PTR.
28461 (tlsie_small_sidi): New pattern.
28462 (tlsle_small): Change to an expand to handle ILP32.
28463 (tlsle_small_<mode>): New pattern.
28464 (tlsdesc_small): Rename to ...
28465 (tlsdesc_small_<mode>): this and handle PTR.
28466
28467 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28468
28469 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28470
28471 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28472
28473 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28474 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28475 (aarch64_types_signed_poly_qualifiers): Likewise.
28476 (aarch64_types_unsigned_signed_qualifiers): Likewise.
28477 (aarch64_types_poly_signed_qualifiers): Likewise.
28478 (TYPES_REINTERP_SS): Type macro added.
28479 (TYPES_REINTERP_SU): Likewise.
28480 (TYPES_REINTERP_SP): Likewise.
28481 (TYPES_REINTERP_US): Likewise.
28482 (TYPES_REINTERP_PS): Likewise.
28483 (aarch64_fold_builtin): New expression folding added.
28484 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28485 Declarations removed.
28486 (REINTERP_SS): Declarations added.
28487 (REINTERP_US): Likewise.
28488 (REINTERP_PS): Likewise.
28489 (REINTERP_SU): Likewise.
28490 (REINTERP_SP): Likewise.
28491 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28492 (vreinterpretq_p8_f64): Likewise.
28493 (vreinterpret_p16_f64): Likewise.
28494 (vreinterpretq_p16_f64): Likewise.
28495 (vreinterpret_f32_f64): Likewise.
28496 (vreinterpretq_f32_f64): Likewise.
28497 (vreinterpret_f64_f32): Likewise.
28498 (vreinterpret_f64_p8): Likewise.
28499 (vreinterpret_f64_p16): Likewise.
28500 (vreinterpret_f64_s8): Likewise.
28501 (vreinterpret_f64_s16): Likewise.
28502 (vreinterpret_f64_s32): Likewise.
28503 (vreinterpret_f64_s64): Likewise.
28504 (vreinterpret_f64_u8): Likewise.
28505 (vreinterpret_f64_u16): Likewise.
28506 (vreinterpret_f64_u32): Likewise.
28507 (vreinterpret_f64_u64): Likewise.
28508 (vreinterpretq_f64_f32): Likewise.
28509 (vreinterpretq_f64_p8): Likewise.
28510 (vreinterpretq_f64_p16): Likewise.
28511 (vreinterpretq_f64_s8): Likewise.
28512 (vreinterpretq_f64_s16): Likewise.
28513 (vreinterpretq_f64_s32): Likewise.
28514 (vreinterpretq_f64_s64): Likewise.
28515 (vreinterpretq_f64_u8): Likewise.
28516 (vreinterpretq_f64_u16): Likewise.
28517 (vreinterpretq_f64_u32): Likewise.
28518 (vreinterpretq_f64_u64): Likewise.
28519 (vreinterpret_s64_f64): Likewise.
28520 (vreinterpretq_s64_f64): Likewise.
28521 (vreinterpret_u64_f64): Likewise.
28522 (vreinterpretq_u64_f64): Likewise.
28523 (vreinterpret_s8_f64): Likewise.
28524 (vreinterpretq_s8_f64): Likewise.
28525 (vreinterpret_s16_f64): Likewise.
28526 (vreinterpretq_s16_f64): Likewise.
28527 (vreinterpret_s32_f64): Likewise.
28528 (vreinterpretq_s32_f64): Likewise.
28529 (vreinterpret_u8_f64): Likewise.
28530 (vreinterpretq_u8_f64): Likewise.
28531 (vreinterpret_u16_f64): Likewise.
28532 (vreinterpretq_u16_f64): Likewise.
28533 (vreinterpret_u32_f64): Likewise.
28534 (vreinterpretq_u32_f64): Likewise.
28535
28536 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28537
28538 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28539 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28540 (vreinterpret_p8_s8): Likewise.
28541 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28542 (vreinterpret_p8_s16): Likewise.
28543 (vreinterpret_p8_s32): Likewise.
28544 (vreinterpret_p8_s64): Likewise.
28545 (vreinterpret_p8_f32): Likewise.
28546 (vreinterpret_p8_u8): Likewise.
28547 (vreinterpret_p8_u16): Likewise.
28548 (vreinterpret_p8_u32): Likewise.
28549 (vreinterpret_p8_u64): Likewise.
28550 (vreinterpret_p8_p16): Likewise.
28551 (vreinterpretq_p8_s8): Likewise.
28552 (vreinterpretq_p8_s16): Likewise.
28553 (vreinterpretq_p8_s32): Likewise.
28554 (vreinterpretq_p8_s64): Likewise.
28555 (vreinterpretq_p8_f32): Likewise.
28556 (vreinterpretq_p8_u8): Likewise.
28557 (vreinterpretq_p8_u16): Likewise.
28558 (vreinterpretq_p8_u32): Likewise.
28559 (vreinterpretq_p8_u64): Likewise.
28560 (vreinterpretq_p8_p16): Likewise.
28561 (vreinterpret_p16_s8): Likewise.
28562 (vreinterpret_p16_s16): Likewise.
28563 (vreinterpret_p16_s32): Likewise.
28564 (vreinterpret_p16_s64): Likewise.
28565 (vreinterpret_p16_f32): Likewise.
28566 (vreinterpret_p16_u8): Likewise.
28567 (vreinterpret_p16_u16): Likewise.
28568 (vreinterpret_p16_u32): Likewise.
28569 (vreinterpret_p16_u64): Likewise.
28570 (vreinterpret_p16_p8): Likewise.
28571 (vreinterpretq_p16_s8): Likewise.
28572 (vreinterpretq_p16_s16): Likewise.
28573 (vreinterpretq_p16_s32): Likewise.
28574 (vreinterpretq_p16_s64): Likewise.
28575 (vreinterpretq_p16_f32): Likewise.
28576 (vreinterpretq_p16_u8): Likewise.
28577 (vreinterpretq_p16_u16): Likewise.
28578 (vreinterpretq_p16_u32): Likewise.
28579 (vreinterpretq_p16_u64): Likewise.
28580 (vreinterpretq_p16_p8): Likewise.
28581 (vreinterpret_f32_s8): Likewise.
28582 (vreinterpret_f32_s16): Likewise.
28583 (vreinterpret_f32_s32): Likewise.
28584 (vreinterpret_f32_s64): Likewise.
28585 (vreinterpret_f32_u8): Likewise.
28586 (vreinterpret_f32_u16): Likewise.
28587 (vreinterpret_f32_u32): Likewise.
28588 (vreinterpret_f32_u64): Likewise.
28589 (vreinterpret_f32_p8): Likewise.
28590 (vreinterpret_f32_p16): Likewise.
28591 (vreinterpretq_f32_s8): Likewise.
28592 (vreinterpretq_f32_s16): Likewise.
28593 (vreinterpretq_f32_s32): Likewise.
28594 (vreinterpretq_f32_s64): Likewise.
28595 (vreinterpretq_f32_u8): Likewise.
28596 (vreinterpretq_f32_u16): Likewise.
28597 (vreinterpretq_f32_u32): Likewise.
28598 (vreinterpretq_f32_u64): Likewise.
28599 (vreinterpretq_f32_p8): Likewise.
28600 (vreinterpretq_f32_p16): Likewise.
28601 (vreinterpret_s64_s8): Likewise.
28602 (vreinterpret_s64_s16): Likewise.
28603 (vreinterpret_s64_s32): Likewise.
28604 (vreinterpret_s64_f32): Likewise.
28605 (vreinterpret_s64_u8): Likewise.
28606 (vreinterpret_s64_u16): Likewise.
28607 (vreinterpret_s64_u32): Likewise.
28608 (vreinterpret_s64_u64): Likewise.
28609 (vreinterpret_s64_p8): Likewise.
28610 (vreinterpret_s64_p16): Likewise.
28611 (vreinterpretq_s64_s8): Likewise.
28612 (vreinterpretq_s64_s16): Likewise.
28613 (vreinterpretq_s64_s32): Likewise.
28614 (vreinterpretq_s64_f32): Likewise.
28615 (vreinterpretq_s64_u8): Likewise.
28616 (vreinterpretq_s64_u16): Likewise.
28617 (vreinterpretq_s64_u32): Likewise.
28618 (vreinterpretq_s64_u64): Likewise.
28619 (vreinterpretq_s64_p8): Likewise.
28620 (vreinterpretq_s64_p16): Likewise.
28621 (vreinterpret_u64_s8): Likewise.
28622 (vreinterpret_u64_s16): Likewise.
28623 (vreinterpret_u64_s32): Likewise.
28624 (vreinterpret_u64_s64): Likewise.
28625 (vreinterpret_u64_f32): Likewise.
28626 (vreinterpret_u64_u8): Likewise.
28627 (vreinterpret_u64_u16): Likewise.
28628 (vreinterpret_u64_u32): Likewise.
28629 (vreinterpret_u64_p8): Likewise.
28630 (vreinterpret_u64_p16): Likewise.
28631 (vreinterpretq_u64_s8): Likewise.
28632 (vreinterpretq_u64_s16): Likewise.
28633 (vreinterpretq_u64_s32): Likewise.
28634 (vreinterpretq_u64_s64): Likewise.
28635 (vreinterpretq_u64_f32): Likewise.
28636 (vreinterpretq_u64_u8): Likewise.
28637 (vreinterpretq_u64_u16): Likewise.
28638 (vreinterpretq_u64_u32): Likewise.
28639 (vreinterpretq_u64_p8): Likewise.
28640 (vreinterpretq_u64_p16): Likewise.
28641 (vreinterpret_s8_s16): Likewise.
28642 (vreinterpret_s8_s32): Likewise.
28643 (vreinterpret_s8_s64): Likewise.
28644 (vreinterpret_s8_f32): Likewise.
28645 (vreinterpret_s8_u8): Likewise.
28646 (vreinterpret_s8_u16): Likewise.
28647 (vreinterpret_s8_u32): Likewise.
28648 (vreinterpret_s8_u64): Likewise.
28649 (vreinterpret_s8_p8): Likewise.
28650 (vreinterpret_s8_p16): Likewise.
28651 (vreinterpretq_s8_s16): Likewise.
28652 (vreinterpretq_s8_s32): Likewise.
28653 (vreinterpretq_s8_s64): Likewise.
28654 (vreinterpretq_s8_f32): Likewise.
28655 (vreinterpretq_s8_u8): Likewise.
28656 (vreinterpretq_s8_u16): Likewise.
28657 (vreinterpretq_s8_u32): Likewise.
28658 (vreinterpretq_s8_u64): Likewise.
28659 (vreinterpretq_s8_p8): Likewise.
28660 (vreinterpretq_s8_p16): Likewise.
28661 (vreinterpret_s16_s8): Likewise.
28662 (vreinterpret_s16_s32): Likewise.
28663 (vreinterpret_s16_s64): Likewise.
28664 (vreinterpret_s16_f32): Likewise.
28665 (vreinterpret_s16_u8): Likewise.
28666 (vreinterpret_s16_u16): Likewise.
28667 (vreinterpret_s16_u32): Likewise.
28668 (vreinterpret_s16_u64): Likewise.
28669 (vreinterpret_s16_p8): Likewise.
28670 (vreinterpret_s16_p16): Likewise.
28671 (vreinterpretq_s16_s8): Likewise.
28672 (vreinterpretq_s16_s32): Likewise.
28673 (vreinterpretq_s16_s64): Likewise.
28674 (vreinterpretq_s16_f32): Likewise.
28675 (vreinterpretq_s16_u8): Likewise.
28676 (vreinterpretq_s16_u16): Likewise.
28677 (vreinterpretq_s16_u32): Likewise.
28678 (vreinterpretq_s16_u64): Likewise.
28679 (vreinterpretq_s16_p8): Likewise.
28680 (vreinterpretq_s16_p16): Likewise.
28681 (vreinterpret_s32_s8): Likewise.
28682 (vreinterpret_s32_s16): Likewise.
28683 (vreinterpret_s32_s64): Likewise.
28684 (vreinterpret_s32_f32): Likewise.
28685 (vreinterpret_s32_u8): Likewise.
28686 (vreinterpret_s32_u16): Likewise.
28687 (vreinterpret_s32_u32): Likewise.
28688 (vreinterpret_s32_u64): Likewise.
28689 (vreinterpret_s32_p8): Likewise.
28690 (vreinterpret_s32_p16): Likewise.
28691 (vreinterpretq_s32_s8): Likewise.
28692 (vreinterpretq_s32_s16): Likewise.
28693 (vreinterpretq_s32_s64): Likewise.
28694 (vreinterpretq_s32_f32): Likewise.
28695 (vreinterpretq_s32_u8): Likewise.
28696 (vreinterpretq_s32_u16): Likewise.
28697 (vreinterpretq_s32_u32): Likewise.
28698 (vreinterpretq_s32_u64): Likewise.
28699 (vreinterpretq_s32_p8): Likewise.
28700 (vreinterpretq_s32_p16): Likewise.
28701 (vreinterpret_u8_s8): Likewise.
28702 (vreinterpret_u8_s16): Likewise.
28703 (vreinterpret_u8_s32): Likewise.
28704 (vreinterpret_u8_s64): Likewise.
28705 (vreinterpret_u8_f32): Likewise.
28706 (vreinterpret_u8_u16): Likewise.
28707 (vreinterpret_u8_u32): Likewise.
28708 (vreinterpret_u8_u64): Likewise.
28709 (vreinterpret_u8_p8): Likewise.
28710 (vreinterpret_u8_p16): Likewise.
28711 (vreinterpretq_u8_s8): Likewise.
28712 (vreinterpretq_u8_s16): Likewise.
28713 (vreinterpretq_u8_s32): Likewise.
28714 (vreinterpretq_u8_s64): Likewise.
28715 (vreinterpretq_u8_f32): Likewise.
28716 (vreinterpretq_u8_u16): Likewise.
28717 (vreinterpretq_u8_u32): Likewise.
28718 (vreinterpretq_u8_u64): Likewise.
28719 (vreinterpretq_u8_p8): Likewise.
28720 (vreinterpretq_u8_p16): Likewise.
28721 (vreinterpret_u16_s8): Likewise.
28722 (vreinterpret_u16_s16): Likewise.
28723 (vreinterpret_u16_s32): Likewise.
28724 (vreinterpret_u16_s64): Likewise.
28725 (vreinterpret_u16_f32): Likewise.
28726 (vreinterpret_u16_u8): Likewise.
28727 (vreinterpret_u16_u32): Likewise.
28728 (vreinterpret_u16_u64): Likewise.
28729 (vreinterpret_u16_p8): Likewise.
28730 (vreinterpret_u16_p16): Likewise.
28731 (vreinterpretq_u16_s8): Likewise.
28732 (vreinterpretq_u16_s16): Likewise.
28733 (vreinterpretq_u16_s32): Likewise.
28734 (vreinterpretq_u16_s64): Likewise.
28735 (vreinterpretq_u16_f32): Likewise.
28736 (vreinterpretq_u16_u8): Likewise.
28737 (vreinterpretq_u16_u32): Likewise.
28738 (vreinterpretq_u16_u64): Likewise.
28739 (vreinterpretq_u16_p8): Likewise.
28740 (vreinterpretq_u16_p16): Likewise.
28741 (vreinterpret_u32_s8): Likewise.
28742 (vreinterpret_u32_s16): Likewise.
28743 (vreinterpret_u32_s32): Likewise.
28744 (vreinterpret_u32_s64): Likewise.
28745 (vreinterpret_u32_f32): Likewise.
28746 (vreinterpret_u32_u8): Likewise.
28747 (vreinterpret_u32_u16): Likewise.
28748 (vreinterpret_u32_u64): Likewise.
28749 (vreinterpret_u32_p8): Likewise.
28750 (vreinterpret_u32_p16): Likewise.
28751 (vreinterpretq_u32_s8): Likewise.
28752 (vreinterpretq_u32_s16): Likewise.
28753 (vreinterpretq_u32_s32): Likewise.
28754 (vreinterpretq_u32_s64): Likewise.
28755 (vreinterpretq_u32_f32): Likewise.
28756 (vreinterpretq_u32_u8): Likewise.
28757 (vreinterpretq_u32_u16): Likewise.
28758 (vreinterpretq_u32_u64): Likewise.
28759 (vreinterpretq_u32_p8): Likewise.
28760 (vreinterpretq_u32_p16): Likewise.
28761
28762 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28763
28764 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28765 Pattern extended.
28766 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28767 (sqabs): Likewise.
28768 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28769 (vqnegd_s64): Likewise.
28770 (vqabs_s64): Likewise.
28771 (vqabsd_s64): Likewise.
28772
28773 2014-04-22 Richard Henderson <rth@redhat.com>
28774
28775 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28776 computation to the top of the loop.
28777
28778 2014-04-22 Renlin <renlin.li@arm.com>
28779 Jiong Wang <jiong.wang@arm.com>
28780
28781 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28782 * config/aarch64/aarch64.c (aarch64_layout_frame)
28783 (aarch64_initial_elimination_offset): Likewise.
28784
28785 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
28786
28787 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28788 Fix indentation.
28789
28790 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
28791
28792 * machmode.h (bitwise_mode_for_mode): Declare.
28793 * stor-layout.h (bitwise_type_for_mode): Likewise.
28794 * stor-layout.c (bitwise_mode_for_mode): New function.
28795 (bitwise_type_for_mode): Likewise.
28796 * builtins.c (fold_builtin_memory_op): Use it instead of
28797 int_mode_for_mode and build_nonstandard_integer_type.
28798
28799 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28800
28801 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28802 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28803 (*-*-solaris2*): Simplify.
28804 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28805 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28806 *-*-solaris2.9* handling.
28807
28808 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28809 as bug.
28810 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28811 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28812 handling, simplify.
28813 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28814 * configure: Regenerate.
28815
28816 * config/i386/sol2-9.h: Remove.
28817
28818 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28819 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28820 Remove Solaris 9 references.
28821
28822 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
28823
28824 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28825 (floatuns<GPI:mode><GPF:mode>2): Remove.
28826 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28827 and floatuns conversions.
28828 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28829 and floatuns conversions.
28830 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28831 (w1,w2): New mode attributes for inequal width conversions.
28832
28833 2014-04-22 Renlin Li <Renlin.Li@arm.com>
28834
28835 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28836 the output asm format.
28837
28838 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28839
28840 * config/aarch64/aarch64-simd.md
28841 (aarch64_cm<optab>di): Always split.
28842 (*aarch64_cm<optab>di): New.
28843 (aarch64_cmtstdi): Always split.
28844 (*aarch64_cmtstdi): New.
28845
28846 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28847
28848 PR tree-optimization/60823
28849 * omp-low.c (ipa_simd_modify_function_body): Go through
28850 all SSA_NAMEs and for those refering to vector arguments
28851 which are going to be replaced adjust SSA_NAME_VAR and,
28852 if it is a default definition, change it into a non-default
28853 definition assigned at the beginning of function from new_decl.
28854 (ipa_simd_modify_stmt_ops): Rewritten.
28855 * tree-dfa.c (set_ssa_default_def): When removing default def,
28856 check for NULL loc instead of NULL *loc.
28857
28858 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28859
28860 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28861 restrictions on core registers for DImode values in Thumb2.
28862
28863 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28864
28865 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28866 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28867
28868 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28869
28870 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28871 (*iordi_notzesidi_di): Likewise.
28872 (*iordi_notsesidi_di): Likewise.
28873
28874 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28875
28876 * config/arm/arm-protos.h (tune_params): New struct members.
28877 * config/arm/arm.c: Initialise tune_params per processor.
28878 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28879 for speed, based on new tune_params.
28880
28881 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28882
28883 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28884 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28885 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28886 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28887 * config/aarch64/arm_neon.h (vrnd_f64): Added.
28888 (vrnda_f64): Likewise.
28889 (vrndi_f64): Likewise.
28890 (vrndm_f64): Likewise.
28891 (vrndn_f64): Likewise.
28892 (vrndp_f64): Likewise.
28893 (vrndx_f64): Likewise.
28894
28895 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28896
28897 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28898 GET_MODE_SIZE argument is enum machine_mode.
28899
28900 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28901
28902 PR target/60910
28903 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28904 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28905
28906 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
28907
28908 PR middle-end/60281
28909 * asan.c (asan_emit_stack_protection): Force the base to align to
28910 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
28911 appropriate bits if STRICT_ALIGNMENT.
28912 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28913 when asan is on.
28914 (expand_used_vars): Leave a space in the stack frame for alignment
28915 if STRICT_ALIGNMENT.
28916
28917 2014-04-21 David Malcolm <dmalcolm@redhat.com>
28918
28919 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28920 than a gimple.
28921 (gimple_store_p): Likewise.
28922 (gimple_assign_load_p): Likewise.
28923 (gimple_assign_cast_p): Likewise.
28924 (gimple_clobber_p): Likewise.
28925
28926 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28927 rather than a gimple.
28928 (gimple_assign_cast_p): Likewise.
28929
28930 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28931
28932 PR target/60735
28933 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28934 If mode is DDmode and TARGET_E500_DOUBLE allow move.
28935
28936 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28937 more debug information for E500 if -mdebug=reg.
28938
28939 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
28940
28941 PR target/60909
28942 * config/i386/i386.c (ix86_expand_builtin)
28943 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28944 register for target RTX.
28945 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28946
28947 2014-04-18 Cong Hou <congh@google.com>
28948
28949 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28950 the widen-mult pattern by handling two operands with different sizes,
28951 and operands whose size is smaller than half of the result type.
28952
28953 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28954
28955 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28956 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28957 (do_estimate_edge_time): Compute it.
28958 * ipa-inline.c (want_inline_small_function_p): Bypass
28959 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28960
28961 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28962
28963 * ipa-inline.c (spec_rem): New static variable.
28964 (dump_overall_stats): New function.
28965 (dump_inline_stats): New function.
28966
28967 2014-04-18 Richard Henderson <rth@redhat.com>
28968
28969 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
28970 to GET_MODE_SIZE, not a reg_class_t.
28971
28972 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28973
28974 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
28975 (vsx_xxmrglw_<mode>): Likewise.
28976
28977 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
28978
28979 PR target/60876
28980 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28981 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28982 (rs6000_init_hard_regno_mode_ok): Likewise.
28983
28984 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
28985
28986 * ipa-inline.c (inline_small_functions): Account only non-cold
28987 functions.
28988 * doc/invoke.texi (inline-unit-growth): Update documentation.
28989
28990 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
28991
28992 * config/rs6000/rs6000.md (addti3, subti3): New.
28993
28994 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
28995
28996 PR target/60863
28997 * config/i386/i386.c (ix86_expand_clear): Remove outdated
28998 comment. Check optimize_insn_for_size_p instead of
28999 optimize_insn_for_speed_p.
29000
29001 2014-04-17 Martin Jambor <mjambor@suse.cz>
29002
29003 * gimple-iterator.c (gsi_start_edge): New function.
29004 * gimple-iterator.h (gsi_start_edge): Declare.
29005 * tree-sra.c (single_non_eh_succ): New function.
29006 (disqualify_ops_if_throwing_stmt): Renamed to
29007 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
29008 having one non-EH successor BB.
29009 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29010 generate loads into replacements.
29011 (sra_modify_assign): Likewise and and also use the simple path for
29012 such statements.
29013 (sra_modify_function_body): Commit statements on edges.
29014
29015 2014-04-17 Richard Biener <rguenther@suse.de>
29016
29017 PR middle-end/60849
29018 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29019 comparison results and add clarifying comment.
29020
29021 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29022
29023 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29024 (blank_mode): Initialize it.
29025 (emit_mode_size_inline, emit_mode_nunits_inline,
29026 emit_mode_inner_inline): New functions.
29027 (emit_insn_modes_h): Call them and surround their output with
29028 #if GCC_VERSION >= 4001 ... #endif.
29029 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29030 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29031 mode_* arrays if the argument is __builtin_constant_p.
29032 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29033 is enum machine_mode.
29034
29035 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29036
29037 * passes.c (opt_pass::execute): Adjust.
29038 (pass_manager::execute_pass_mode_switching): Likewise.
29039 (early_local_passes::execute): Likewise.
29040 (execute_one_pass): Pass cfun to the pass's execute method.
29041 * tree-pass.h (opt_pass::execute): Add function * argument.
29042 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29043 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29044 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29045 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29046 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29047 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29048 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29049 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29050 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29051 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29052 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29053 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29054 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29055 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29056 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29057 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29058 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29059 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29060 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29061 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29062 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29063 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29064 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29065 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29066 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29067 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29068 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29069 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29070 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29071 Adjust.
29072
29073 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29074
29075 * passes.c (opt_pass::gate): Take function * argument.
29076 (gate_all_early_local_passes): Merge into
29077 (early_local_passes::gate): this.
29078 (gate_all_early_optimizations): Merge into
29079 (all_early_optimizations::gate): this.
29080 (gate_all_optimizations): Mege into
29081 (all_optimizations::gate): this.
29082 (gate_all_optimizations_g): Merge into
29083 (all_optimizations_g::gate): this.
29084 (gate_rest_of_compilation): Mege into
29085 (rest_of_compilation::gate): this.
29086 (gate_postreload): Merge into
29087 (postreload::gate): this.
29088 (dump_one_pass): Pass cfun to the pass's gate method.
29089 (execute_ipa_summary_passes): Likewise.
29090 (execute_one_pass): Likewise.
29091 (ipa_write_summaries_2): Likewise.
29092 (ipa_write_optimization_summaries_1): Likewise.
29093 (ipa_read_summaries_1): Likewise.
29094 (ipa_read_optimization_summaries_1): Likewise.
29095 (execute_ipa_stmt_fixups): Likewise.
29096 * tree-pass.h (opt_pass::gate): Add function * argument.
29097 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29098 combine-stack-adj.c, combine.c, compare-elim.c,
29099 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29100 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29101 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29102 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
29103 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29104 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29105 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29106 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29107 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29108 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29109 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29110 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29111 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29112 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29113 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29114 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29115 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29116 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29117 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29118 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29119 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29120 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29121 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29122 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29123 var-tracking.c, vtable-verify.c, web.c: Adjust.
29124
29125 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29126
29127 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29128 * configure: Regenerate.
29129
29130 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29131
29132 * passes.c (dump_one_pass): don't check pass->has_gate.
29133 (execute_ipa_summary_passes): Likewise.
29134 (execute_one_pass): Likewise.
29135 (ipa_write_summaries_2): Likewise.
29136 (ipa_write_optimization_summaries_1): Likewise.
29137 (ipa_read_optimization_summaries_1): Likewise.
29138 (execute_ipa_stmt_fixups): Likewise.
29139 * tree-pass.h (pass_data::has_gate): Remove.
29140 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29141 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29142 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29143 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29144 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29145 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29146 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29147 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29148 gimple-low.c, gimple-ssa-isolate-paths.c,
29149 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29150 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29151 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29152 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29153 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29154 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29155 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29156 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29157 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29158 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29159 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29160 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29161 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29162 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29163 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29164 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29165 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29166 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29167 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29168 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29169 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29170 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29171 Adjust.
29172
29173 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29174
29175 * pass_manager.h (pass_manager::register_dump_files_1): Remove
29176 declaration.
29177 * passes.c (pass_manager::register_dump_files_1): Merge into
29178 (pass_manager::register_dump_files): this, and remove its handling of
29179 properties since the pass always has the properties anyway.
29180 (pass_manager::pass_manager): Adjust.
29181
29182 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29183
29184 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29185 * passes.c (pass_manager::register_dump_files_1): Remove dead code
29186 dealing with properties.
29187 (pass_manager::register_dump_files): Adjust.
29188
29189 2014-03-20 Mark Wielaard <mjw@redhat.com>
29190
29191 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29192 then represent the bound as normal constant value.
29193
29194 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29195
29196 PR target/60847
29197 Forward port from 4.8 branch
29198 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
29199
29200 * config/i386/bmiintrin.h (_blsi_u32): New.
29201 (_blsi_u64): Ditto.
29202 (_blsr_u32): Ditto.
29203 (_blsr_u64): Ditto.
29204 (_blsmsk_u32): Ditto.
29205 (_blsmsk_u64): Ditto.
29206 (_tzcnt_u32): Ditto.
29207 (_tzcnt_u64): Ditto.
29208
29209 2014-04-17 Kito Cheng <kito@0xlab.org>
29210
29211 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29212
29213 2014-04-17 Richard Biener <rguenther@suse.de>
29214
29215 PR middle-end/60849
29216 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29217 boolean results for comparisons.
29218
29219 2014-04-17 Richard Biener <rguenther@suse.de>
29220
29221 PR tree-optimization/60836
29222 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29223 initial PHI args to be gimple values.
29224
29225 2014-04-17 Richard Biener <rguenther@suse.de>
29226
29227 PR tree-optimization/60841
29228 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29229 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29230 of stmts to SLP build.
29231 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29232 (vect_analyze_slp): Likewise.
29233 (vect_analyze_slp_instance): Likewise.
29234 (vect_build_slp_tree): Limit overall SLP tree growth.
29235 * tree-vectorizer.h (vect_analyze_data_refs,
29236 vect_analyze_slp): Adjust prototypes.
29237
29238 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29239
29240 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29241 Silvermont.
29242
29243 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29244
29245 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29246 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29247 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29248 for TARGET_SLOW_PSHUFB
29249
29250 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29251
29252 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29253 * config/i386/i386.c (intel_cost): Ditto.
29254
29255 2014-04-17 Joey Ye <joey.ye@arm.com>
29256
29257 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29258
29259 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29260
29261 * opts.c (common_handle_option): Disable -fipa-reference coorectly
29262 with -fuse-profile.
29263
29264 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29265
29266 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29267 (type_all_derivations_known_p): New predicate.
29268 (type_all_ctors_visible_p): New predicate.
29269 (type_possibly_instantiated_p): New predicate.
29270 (get_odr_type): Compute all_derivations_known.
29271 (dump_odr_type): Dump the flag.
29272 (maybe_record_type): Cleanup.
29273 (record_target_from_binfo): Add bases_to_consider array;
29274 record bases for types w/o instances and skip CXX destructor.
29275 (possible_polymorphic_call_targets_1): Add bases_to_consider
29276 and consider_construction parameters; check if type may have instance.
29277 (get_polymorphic_call_info): Set maybe_in_construction to true
29278 when we know nothing.
29279 (record_targets_from_bases): Skip CXX destructors; they are
29280 never called for types in construction.
29281 (possible_polymorphic_call_targets): Do not record target when
29282 type may not have instance.
29283
29284 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29285
29286 PR ipa/60854
29287 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29288 external aliases alive, too.
29289
29290 2014-04-16 Andrew Pinski <apinski@cavium.com>
29291
29292 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29293 definition.
29294
29295 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29296
29297 * final.c (compute_alignments): Do not apply loop alignment to a block
29298 falling through to the exit.
29299
29300 2014-04-16 Catherine Moore <clm@codesourcery.com>
29301
29302 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29303 Adjust constraints for microMIPS store patterns.
29304
29305 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29306
29307 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29308
29309 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29310
29311 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29312 (append_use): Run at -O0.
29313 (append_vdef): Likewise.
29314 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29315 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29316
29317 2014-04-16 Jakub Jelinek <jakub@redhat.com>
29318
29319 PR tree-optimization/60844
29320 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29321 (propagate_op_to_single_use, remove_visited_stmt_chain,
29322 linearize_expr, repropagate_negates, reassociate_bb): Use it
29323 instead of gsi_remove.
29324
29325 2014-04-16 Martin Jambor <mjambor@suse.cz>
29326
29327 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29328 ipa_transforms_to_apply.
29329 (cgraph_function_versioning): Assert that old_node has empty
29330 ipa_transforms_to_apply.
29331 * trans-mem.c (ipa_tm_create_version): Likewise.
29332 * tree-inline.c (tree_function_versioning): Do not duplicate
29333 ipa_transforms_to_apply.
29334
29335 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29336
29337 PR target/60817
29338 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29339 x86_64-*-* cases.
29340 Pass necessary as flags on 64-bit Solaris/x86.
29341 Use lowercase relocs for x86_64-*-*.
29342 * configure: Regenerate.
29343
29344 2014-04-15 Jan Hubicka <jh@suse.cz>
29345
29346 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29347 (maybe_record_node, likely_target_p): Use it.
29348
29349 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29350
29351 PR target/60839
29352 Revert following patch
29353
29354 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29355
29356 PR target/60735
29357 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29358 software floating point or no floating point registers, do not
29359 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29360 in GPRs that occurs after we tested for GPRs that would never be
29361 true.
29362
29363 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29364 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29365 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29366 specifically allow DDmode, since that does not use the SPE SIMD
29367 instructions.
29368
29369 2014-03-21 Mark Wielaard <mjw@redhat.com>
29370
29371 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29372 as unsigned or int depending on type and value used.
29373
29374 2014-04-15 Richard Biener <rguenther@suse.de>
29375
29376 PR rtl-optimization/56965
29377 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29378 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29379 ... here.
29380 * alias.c (true_dependence_1): Do not call
29381 nonoverlapping_component_refs_p.
29382 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29383 nonoverlapping_component_refs_p.
29384 (indirect_refs_may_alias_p): Likewise.
29385
29386 2014-04-15 Teresa Johnson <tejohnson@google.com>
29387
29388 * cfg.c (dump_bb_info): Fix flags check.
29389 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29390
29391 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29392
29393 PR rtl-optimization/60663
29394 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29395 avoid 0 cost.
29396
29397 2014-04-15 Richard Biener <rguenther@suse.de>
29398
29399 * lto-streamer.h (LTO_major_version): Bump to 4.
29400
29401 2014-04-15 Richard Biener <rguenther@suse.de>
29402
29403 * common.opt (lto_partition_model): New enum.
29404 (flto-partition=): Merge separate options with a single with argument,
29405 add -flto-partition=one support.
29406 * flag-types.h (enum lto_partition_model): Declare.
29407 * opts.c (finish_options): Remove duplicate -flto-partition=
29408 option check.
29409 * lto-wrapper.c (run_gcc): Adjust.
29410
29411 2014-04-15 Richard Biener <rguenther@suse.de>
29412
29413 * alias.c (ncr_compar): New function.
29414 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29415
29416 2014-04-15 Richard Biener <rguenther@suse.de>
29417
29418 * alias.c (record_component_aliases): Do not walk BINFOs.
29419
29420 2014-04-15 Richard Biener <rguenther@suse.de>
29421
29422 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29423 Add struct function argument and adjust.
29424 (find_func_aliases_for_call): Likewise.
29425 (find_func_aliases): Likewise.
29426 (find_func_clobbers): Likewise.
29427 (intra_create_variable_infos): Likewise.
29428 (compute_points_to_sets): Likewise.
29429 (ipa_pta_execute): Adjust. Do not push/pop cfun.
29430
29431 2014-04-15 Richard Biener <rguenther@suse.de>
29432
29433 * tree.c (iterative_hash_expr): Use enum tree_code_class
29434 to store TREE_CODE_CLASS.
29435 (tree_block): Likewise.
29436 (tree_set_block): Likewise.
29437 * tree.h (fold_build_pointer_plus_loc): Use
29438 convert_to_ptrofftype_loc.
29439
29440 2014-04-15 Jakub Jelinek <jakub@redhat.com>
29441
29442 PR plugins/59335
29443 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29444 added in 4.9.
29445
29446 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
29447
29448 * cfgloop.h (struct loop): Move force_vectorize down.
29449 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29450 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29451 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29452 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29453 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29454 * tree-core.h (enum annot_expr_kind): Add new kind values.
29455 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29456 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29457 kinds.
29458 * tree.def (ANNOTATE_EXPR): Tweak comment.
29459
29460 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29461
29462 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29463 cxa_pure_virtual).
29464
29465 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
29466
29467 * tree.h (TYPE_IDENTIFIER): Declare.
29468 * tree.c (subrange_type_for_debug_p): Use it.
29469 * godump.c (go_format_type): Likewise.
29470 * dwarf2out.c (is_cxx_auto, modified_type_die,
29471 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29472 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29473
29474 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29475
29476 PR lto/60820
29477 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29478
29479 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
29480
29481 * config/i386/i386.c (examine_argument): Return bool. Return true if
29482 parameter should be passed in memory.
29483 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29484 (construct_container): Update calls to examine_argument.
29485 (function_arg_advance_64): Ditto.
29486 (return_in_memory_32): Merge with ix86_return_in_memory.
29487 (return_in_memory_64): Ditto.
29488 (return_in_memory_ms_64): Ditto.
29489
29490 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29491
29492 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29493 * coverage.c (coverage_compute_profile_id): Handle externally visible
29494 symbols.
29495
29496 2014-04-14 Martin Jambor <mjambor@suse.cz>
29497
29498 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29499 DECL_DISREGARD_INLINE_LIMITS functions.
29500
29501 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29502
29503 PR target/60827
29504 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29505
29506 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29507
29508 PR target/60827
29509 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29510 optimize_insn_for_speed_p instead of
29511 optimize_function_for_speed_p.
29512
29513 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
29514
29515 * doc/invoke.texi (free): Document AArch64.
29516
29517 2014-04-14 Richard Biener <rguenther@suse.de>
29518
29519 PR tree-optimization/60042
29520 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29521 (insert_into_preds_of_block): Do not prevent PHI insertion
29522 for REFERENCE exprs here ...
29523 (eliminate_dom_walker::before_dom_children): ... but prevent
29524 their use here under similar conditions when applied to the
29525 IL after PRE optimizations.
29526
29527 2014-04-14 Richard Biener <rguenther@suse.de>
29528
29529 * passes.def: Move early points-to after early SRA.
29530
29531 2014-04-14 Richard Biener <rguenther@suse.de>
29532
29533 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29534 check for which sign-changes we allow when forwarding
29535 a converted value into a switch.
29536
29537 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29538
29539 * stor-layout.c (place_field): Finalize non-constant offset for the
29540 field, if any.
29541
29542 2014-04-14 Richard Biener <rguenther@suse.de>
29543
29544 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29545 as argument.
29546 (expand_switch_using_bit_tests_p): Likewise.
29547 (process_switch): Compute and pass on speed_p based on the
29548 switch stmt.
29549 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29550 optimize_bb_for_speed_p.
29551
29552 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29553
29554 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29555 * function.h (struct function): Rename has_force_vect_loops into
29556 has_force_vectorize_loops.
29557 * lto-streamer-in.c (input_cfg): Adjust for renaming.
29558 (input_struct_function_base): Likewise.
29559 * lto-streamer-out.c (output_cfg): Likewise.
29560 (output_struct_function_base): Likewise.
29561 * omp-low.c (expand_omp_simd): Likewise.
29562 * tree-cfg.c (move_sese_region_to_fn): Likewise.
29563 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29564 (version_loop_for_if_conversion): Likewise.
29565 (tree_if_conversion): Likewise.
29566 (main_tree_if_conversion): Likewise.
29567 (gate_tree_if_conversion): Likewise.
29568 * tree-inline.c (copy_loops): Likewise.
29569 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29570 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29571 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29572 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29573 * tree-vectorizer.c (vectorize_loops): Likewise.
29574 * tree-vectorizer.h (unlimited_cost_model): Likewise.
29575
29576 2014-04-14 Richard Biener <rguenther@suse.de>
29577
29578 PR lto/60720
29579 * lto-streamer-out.c (wrap_refs): New function.
29580 (lto_output): Wrap symbol references in global initializes in
29581 type-preserving MEM_REFs.
29582
29583 2014-04-14 Christian Bruel <christian.bruel@st.com>
29584
29585 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29586
29587 2014-04-14 Christian Bruel <christian.bruel@st.com>
29588
29589 * config/sh/sh.md (setmemqi): New expand pattern.
29590 * config/sh/sh.h (CLEAR_RATIO): Define.
29591 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29592 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29593
29594 2014-04-14 Richard Biener <rguenther@suse.de>
29595
29596 PR middle-end/55022
29597 * fold-const.c (negate_expr_p): Don't negate directional rounding
29598 division.
29599 (fold_negate_expr): Likewise.
29600
29601 2014-04-14 Richard Biener <rguenther@suse.de>
29602
29603 PR tree-optimization/59817
29604 PR tree-optimization/60453
29605 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29606 recursion to catch all CHRECs in the scalar evolution and restrict
29607 the predicate for the remains appropriately.
29608
29609 2014-04-12 Catherine Moore <clm@codesourcery.com>
29610
29611 * config/mips/constraints.md: Add new register constraint "kb".
29612 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29613 (*movhi_internal): Likewise.
29614 (*movqi_internal): Likewise.
29615 * config/mips/mips.h (M16_STORE_REGS): New register class.
29616 (REG_CLASS_NAMES): Add M16_STORE_REGS.
29617 (REG_CLASS_CONTENTS): Likewise.
29618 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29619
29620 2014-04-11 Tobias Burnus <burnus@net-b.de>
29621
29622 PR c/60194
29623 * doc/invoke.texi (-Wformat-signedness): Document it.
29624 (Wformat=2): Mention that this enables -Wformat-signedness.
29625
29626 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29627
29628 * common/config/epiphany/epiphany-common.c
29629 (epiphany_option_optimization_table): Enable section anchors by
29630 default at -O1 or higher.
29631 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29632 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29633 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29634 carries no extra cost.
29635 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29636 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29637 * config/epiphany/predicates.md (memclob_operand): New predicate.
29638 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29639 Use memclob_operand predicate and X constraint for operand 3.
29640
29641 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29642
29643 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29644 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29645 its operands.
29646
29647 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29648
29649 PR rtl-optimization/60651
29650 * mode-switching.c (optimize_mode_switching): Make sure to emit
29651 sets of a lower numbered entity before sets of a higher numbered
29652 entity to a mode of the same or lower priority.
29653 When creating a seginfo for a basic block that starts with a code
29654 label, move the insertion point past the code label.
29655 (new_seginfo): Document and enforce requirement that
29656 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29657 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29658 * doc/tm.texi: Regenerate.
29659
29660 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
29661
29662 PR target/60811
29663 * config/arc/arc.c (arc_save_restore): Fix assert typo.
29664
29665 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29666
29667 * BASE-VER: Set to 4.10.0.
29668
29669 2014-04-11 Tobias Burnus <burnus@net-b.de>
29670
29671 PR other/59055
29672 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29673 * doc/gcc.texi (Service): Update description in the @menu
29674 * doc/invoke.texi (Option Summary): Remove misplaced and
29675 duplicated @menu.
29676
29677 2014-04-11 Steve Ellcey <sellcey@mips.com>
29678 Jakub Jelinek <jakub@redhat.com>
29679
29680 PR middle-end/60556
29681 * expr.c (convert_move): Use emit_store_flag_force instead of
29682 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
29683 argument to it.
29684
29685 2014-04-11 Richard Biener <rguenther@suse.de>
29686
29687 PR middle-end/60797
29688 * varasm.c (assemble_alias): Avoid endless error reporting
29689 recursion by setting TREE_ASM_WRITTEN.
29690
29691 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29692
29693 * config/s390/s390.md: Add a splitter for NOT rtx.
29694
29695 2014-04-11 Jakub Jelinek <jakub@redhat.com>
29696
29697 PR rtl-optimization/60663
29698 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29699
29700 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
29701 Jakub Jelinek <jakub@redhat.com>
29702
29703 PR lto/60567
29704 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29705 flag from decl_node to node.
29706
29707 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29708
29709 PR debug/60655
29710 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29711 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29712 ameliorating the cases where it can be.
29713
29714 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
29715
29716 Revert
29717 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29718
29719 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29720 (loadsync_<mode>): Change mode.
29721 (load_quadpti, store_quadpti): New.
29722 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29723 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29724 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29725
29726 2014-04-09 Cong Hou <congh@google.com>
29727
29728 PR testsuite/60773
29729 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29730 documentation.
29731
29732 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29733
29734 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29735 instead of vnor to exploit possible fusion opportunity in the
29736 future.
29737 (altivec_expand_vec_perm_const_le): Likewise.
29738
29739 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29740
29741 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29742 (loadsync_<mode>): Change mode.
29743 (load_quadpti, store_quadpti): New.
29744 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29745 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29746
29747 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
29748
29749 PR target/60763
29750 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29751 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29752 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29753
29754 2014-04-08 Richard Biener <rguenther@suse.de>
29755
29756 PR middle-end/60706
29757 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29758 a 64bit widest int print double-int similar to on HWI64 hosts.
29759
29760 2014-04-08 Richard Biener <rguenther@suse.de>
29761
29762 PR tree-optimization/60785
29763 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29764 default defs properly.
29765
29766 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
29767
29768 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29769 (Weffc++): Likewise.
29770
29771 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
29772
29773 * ipa-devirt.c (maybe_record_node): When node is not recorded,
29774 set completep to false rather than true.
29775
29776 2014-04-07 Douglas B Rupp <rupp@adacore.com>
29777
29778 PR target/60504
29779 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29780 ARM_TARGET2_DWARF_FORMAT.
29781
29782 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
29783
29784 PR target/60609
29785 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29786 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29787 ADDR_DIFF_VEC.
29788
29789 2014-04-07 Richard Biener <rguenther@suse.de>
29790
29791 PR tree-optimization/60766
29792 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29793 (may_eliminate_iv): Convert cand_value_at result to desired type.
29794
29795 2014-04-07 Jason Merrill <jason@redhat.com>
29796
29797 PR c++/60731
29798 * common.opt (-fno-gnu-unique): Add.
29799 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29800
29801 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29802
29803 * haifa-sched.c: Fix outdated function reference and minor
29804 grammar errors in introductory comment.
29805
29806 2014-04-07 Richard Biener <rguenther@suse.de>
29807
29808 PR middle-end/60750
29809 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29810 for noreturn calls.
29811 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29812
29813 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
29814
29815 PR debug/55794
29816 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29817 size accounting for thunks.
29818 (pa_asm_output_mi_thunk): Use final_start_function() and
29819 final_end_function() to output function start and end directives.
29820
29821 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29822
29823 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29824 device specific ISA/ feature information. Remove short_sp and
29825 errata_skip ds. Add avr_device_specific_features enum to have device
29826 specific info.
29827 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29828 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29829 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29830 updated device specific info.
29831 * config/avr/avr-mcus.def: Merge device specific details to
29832 dev_attribute field.
29833 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29834 errata_skip.
29835 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29836 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29837 assembler if RMW isa supported by current device.
29838 * config/avr/genmultilib.awk: Update as device info structure changed.
29839 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29840
29841 2014-04-04 Cong Hou <congh@google.com>
29842
29843 PR tree-optimization/60656
29844 * tree-vect-stmts.c (supportable_widening_operation):
29845 Fix a bug that elements in a vector with vect_used_by_reduction
29846 property are incorrectly reordered when the operation on it is not
29847 consistant with the one in reduction operation.
29848
29849 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
29850
29851 PR rtl-optimization/60155
29852 * gcse.c (record_set_data): New function.
29853 (single_set_gcse): New function.
29854 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29855 (hoist_code): Likewise.
29856 (get_pressure_class_and_nregs): Likewise.
29857
29858 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
29859
29860 * explow.c (probe_stack_range): Emit a final optimization blockage.
29861
29862 2014-04-04 Anthony Green <green@moxielogic.com>
29863
29864 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29865 typos.
29866
29867 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
29868
29869 PR ipa/59626
29870 * lto-cgraph.c (input_overwrite_node): Check that partitioning
29871 flags are set only during streaming.
29872 * ipa.c (process_references, walk_polymorphic_call_targets,
29873 symtab_remove_unreachable_nodes): Drop bodies of always inline
29874 after early inlining.
29875 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29876
29877 2014-04-04 Jakub Jelinek <jakub@redhat.com>
29878 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29879
29880 PR debug/60655
29881 * dwarf2out.c (const_ok_for_output_1): Reject expressions
29882 containing a NOT.
29883
29884 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29885
29886 PR bootstrap/60743
29887 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29888 duration.
29889 (cortex_a53_fdivd): Likewise.
29890
29891 2014-04-04 Martin Jambor <mjambor@suse.cz>
29892
29893 PR ipa/60640
29894 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29895 Adjust all callers.
29896 * cgraph.c (clone_of_p): Also return true if thunks match.
29897 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29898 cgraph_function_or_thunk_node and an obsolete comment.
29899 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29900 file.
29901 (build_function_decl_skip_args): Likewise.
29902 (set_new_clone_decl_and_node_flags): New function.
29903 (duplicate_thunk_for_node): Likewise.
29904 (redirect_edge_duplicating_thunks): Likewise.
29905 (cgraph_clone_node): New parameter args_to_skip, pass it to
29906 redirect_edge_duplicating_thunks which is called instead of
29907 cgraph_redirect_edge_callee.
29908 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29909 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29910
29911 2014-04-04 Jeff Law <law@redhat.com>
29912
29913 PR target/60657
29914 * config/arm/predicates.md (const_int_I_operand): New predicate.
29915 (const_int_M_operand): Similarly.
29916 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29917 const_int_operand.
29918 (insv_t2, extv_reg, extzv_t2): Likewise.
29919 (load_multiple_with_writeback): Similarly for const_int_I_operand.
29920 (pop_multiple_with_writeback_and_return): Likewise.
29921 (vfp_pop_multiple_with_writeback): Likewise
29922
29923 2014-04-04 Richard Biener <rguenther@suse.de>
29924
29925 PR ipa/60746
29926 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29927 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29928 non-GIMPLE_LABELs.
29929 * gimplify.h (gimple_add_tmp_var_fn): Declare.
29930 * gimplify.c (gimple_add_tmp_var_fn): New function.
29931 * gimple-expr.h (create_tmp_reg_fn): Declare.
29932 * gimple-expr.c (create_tmp_reg_fn): New function.
29933 * gimple-low.c (record_vars_into): Don't change cfun.
29934 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29935 code generation without cfun.
29936
29937 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
29938
29939 PR bootstrap/60719
29940 * Makefile.in (install-driver): Fix shell scripting.
29941
29942 2014-04-03 Cong Hou <congh@google.com>
29943
29944 PR tree-optimization/60505
29945 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29946 threshold of number of iterations below which no vectorization
29947 will be done.
29948 * tree-vect-loop.c (new_loop_vec_info):
29949 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29950 * tree-vect-loop.c (vect_analyze_loop_operations):
29951 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29952 * tree-vect-loop.c (vect_transform_loop):
29953 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29954 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29955 of iterations of the loop and see if we should build the epilogue.
29956
29957 2014-04-03 Richard Biener <rguenther@suse.de>
29958
29959 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29960 (streamer_tree_cache_create): Adjust.
29961 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29962 to allow optional nodes array.
29963 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
29964 (streamer_tree_cache_append): Likewise.
29965 (streamer_tree_cache_create): Create nodes array optionally
29966 as specified by parameter.
29967 * lto-streamer-out.c (create_output_block): Avoid maintaining
29968 the node array in the writer cache.
29969 (DFS_write_tree): Remove assertion.
29970 (produce_asm_for_decls): Free the out decl state hash table early.
29971 * lto-streamer-in.c (lto_data_in_create): Adjust for
29972 streamer_tree_cache_create prototype change.
29973
29974 2014-04-03 Richard Biener <rguenther@suse.de>
29975
29976 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
29977 set TREE_CHAIN to NULL_TREE.
29978
29979 2014-04-03 Richard Biener <rguenther@suse.de>
29980
29981 PR tree-optimization/60740
29982 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29983 over all GIMPLE_COND operands.
29984
29985 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
29986
29987 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29988 (Weffc++): Remove Scott's numbering, merge lists and reference
29989 Wnon-virtual-dtor.
29990
29991 2014-04-03 Nick Clifton <nickc@redhat.com>
29992
29993 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29994 properly.
29995
29996 2014-04-03 Martin Jambor <mjambor@suse.cz>
29997
29998 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29999 mention gcc_unreachable before failing.
30000 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30001 removed symbols.
30002
30003 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
30004
30005 PR ipa/60659
30006 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30007 inconsistent code and instead mark the context inconsistent.
30008 (possible_polymorphic_call_targets): For inconsistent contexts
30009 return empty complete list.
30010
30011 2014-04-02 Anthony Green <green@moxielogic.com>
30012
30013 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30014 (extendqisi2, extendhisi2): Define.
30015 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30016 (WCHAR_TYPE): Change to unsigned int.
30017
30018 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30019
30020 PR tree-optimization/60733
30021 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30022 insertion point for PHI candidates to be the end of the feeding
30023 block for the PHI argument.
30024
30025 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
30026
30027 PR rtl-optimization/60650
30028 * lra-constraints.c (process_alt_operands): Decrease reject for
30029 earlyclobber matching.
30030
30031 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30032
30033 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30034
30035 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30036
30037 * config/spu/spu.c (pad_bb): Do not crash when the last
30038 insn is CODE_FOR_blockage.
30039
30040 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30041
30042 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30043 lies outside the target mode.
30044
30045 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30046
30047 PR target/60735
30048 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30049 software floating point or no floating point registers, do not
30050 allow any type in the FPRs. Eliminate a test for SPE SIMD types
30051 in GPRs that occurs after we tested for GPRs that would never be
30052 true.
30053
30054 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30055 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30056 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
30057 specifically allow DDmode, since that does not use the SPE SIMD
30058 instructions.
30059
30060 2014-04-02 Richard Biener <rguenther@suse.de>
30061
30062 PR middle-end/60729
30063 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30064 MODE_INTs. Properly use negv_optab.
30065 (expand_abs): Likewise.
30066
30067 2014-04-02 Richard Biener <rguenther@suse.de>
30068
30069 PR bootstrap/60719
30070 * Makefile.in (install-driver): Guard extra installs with special
30071 names properly.
30072
30073 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
30074
30075 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30076 Document vec_vgbbd.
30077
30078 2014-04-01 Richard Henderson <rth@redhat.com>
30079
30080 PR target/60704
30081 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30082 alternative enabled before register allocation.
30083
30084 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
30085
30086 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30087 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30088 typo.
30089 (nios2_large_got_address): Remove unneeded 'sym' parameter.
30090 (nios2_got_address): Update nios2_large_got_address call site.
30091 (nios2_delegitimize_address): New function.
30092 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30093 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30094 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30095
30096 2014-04-01 Martin Husemann <martin@duskware.de>
30097
30098 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30099 for -mabi=32.
30100
30101 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
30102
30103 PR rtl-optimization/60604
30104 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30105 check from register_operand.
30106 (register_operand): Redefine in terms of general_operand.
30107 (nonmemory_operand): Use register_operand for the non-constant cases.
30108
30109 2014-04-01 Richard Biener <rguenther@suse.de>
30110
30111 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30112
30113 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
30114
30115 * doc/invoke.texi (mapp-regs): Clarify.
30116
30117 2014-03-31 Ulrich Drepper <drepper@gmail.com>
30118
30119 * config/i386/avx512fintrin.h (__v32hi): Define type.
30120 (__v64qi): Likewise.
30121 (_mm512_set1_epi8): Define.
30122 (_mm512_set1_epi16): Define.
30123 (_mm512_set4_epi32): Define.
30124 (_mm512_set4_epi64): Define.
30125 (_mm512_set4_pd): Define.
30126 (_mm512_set4_ps): Define.
30127 (_mm512_setr4_epi64): Define.
30128 (_mm512_setr4_epi32): Define.
30129 (_mm512_setr4_pd): Define.
30130 (_mm512_setr4_ps): Define.
30131 (_mm512_setzero_epi32): Define.
30132
30133 2014-03-31 Martin Jambor <mjambor@suse.cz>
30134
30135 PR middle-end/60647
30136 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30137 callsite_arguments_match_p. Updated all callers. Also check types of
30138 corresponding formal parameters and actual arguments.
30139 (not_all_callers_have_enough_arguments_p) Renamed to
30140 some_callers_have_mismatched_arguments_p.
30141
30142 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
30143
30144 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30145
30146 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
30147
30148 PR target/60034
30149 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30150 section anchor.
30151
30152 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
30153
30154 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30155 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30156 Split out
30157 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30158 Use FMAMODE_NOVF512 mode iterator.
30159 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30160 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30161 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30162 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30163 Split out
30164 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30165 Use VF_128_256 mode iterator.
30166 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30167 Ditto.
30168
30169 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30170
30171 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30172 static chain if needed.
30173
30174 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30175
30176 PR target/60697
30177 * lra-constraints.c (index_part_to_reg): New.
30178 (process_address): Use it.
30179
30180 2014-03-27 Jeff Law <law@redhat.com>
30181 Jakub Jelinek <jakub@redhat.com>
30182
30183 PR target/60648
30184 * expr.c (do_tablejump): Use simplify_gen_binary rather than
30185 gen_rtx_{PLUS,MULT} to build up the address expression.
30186
30187 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30188 creating non-canonical RTL.
30189
30190 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30191
30192 PR ipa/60243
30193 * ipa-inline.c (want_inline_small_function_p): Short circuit large
30194 functions; reorganize to make cheap checks first.
30195 (inline_small_functions): Do not estimate growth when dumping;
30196 it is expensive.
30197 * ipa-inline.h (inline_summary): Add min_size.
30198 (growth_likely_positive): New function.
30199 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30200 (set_cond_stmt_execution_predicate): Cleanup.
30201 (estimate_edge_size_and_time): Compute min_size.
30202 (estimate_calls_size_and_time): Likewise.
30203 (estimate_node_size_and_time): Likewise.
30204 (inline_update_overall_summary): Update min_size.
30205 (do_estimate_edge_time): Likewise.
30206 (do_estimate_edge_size): Update.
30207 (do_estimate_edge_hints): Update.
30208 (growth_likely_positive): New function.
30209
30210 2014-03-28 Jakub Jelinek <jakub@redhat.com>
30211
30212 PR target/60693
30213 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30214 also if addr has VOIDmode.
30215
30216 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30217
30218 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30219 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30220 Declare extern.
30221 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30222 instructions as well as AdvancedSIMD loads.
30223
30224 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30225
30226 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30227 Use crypto_aese type.
30228 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30229 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30230 crypto_aese, crypto_aesmc. Move to types.md.
30231 * config/arm/types.md (crypto_aes): Split into crypto_aese,
30232 crypto_aesmc.
30233 * config/arm/iterators.md (crypto_type): Likewise.
30234
30235 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30236
30237 * cgraph.c: Include expr.h and tree-dfa.h.
30238 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30239 remove LHS.
30240
30241 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30242
30243 PR target/60675
30244 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30245 regs from checking multi-reg pseudos.
30246
30247 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30248
30249 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30250
30251 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30252
30253 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30254 if it would clobber the stack pointer, even temporarily.
30255
30256 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
30257
30258 * mode-switching.c: Make small adjustments to the top comment.
30259
30260 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
30261
30262 * config/rs6000/constraints.md (wD constraint): New constraint to
30263 match the constant integer to get the top DImode/DFmode out of a
30264 vector in a VSX register.
30265
30266 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30267 match the constant integer to get the top DImode/DFmode out of a
30268 vector in a VSX register.
30269
30270 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30271 for ISA 2.07.
30272
30273 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30274 vbpermq builtins.
30275
30276 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30277 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30278
30279 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30280 Optimize vec_extract of 64-bit values, where the value being
30281 extracted is in the top word, where we can use scalar
30282 instructions. Add direct move and store support. Combine the big
30283 endian/little endian vector select load support into a single insn.
30284 (vsx_extract_<mode>_internal1): Likewise.
30285 (vsx_extract_<mode>_internal2): Likewise.
30286 (vsx_extract_<mode>_load): Likewise.
30287 (vsx_extract_<mode>_store): Likewise.
30288 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30289 combined into vsx_extract_<mode>_load.
30290 (vsx_extract_<mode>_one_le): Likewise.
30291
30292 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30293 define the top 64-bit vector element.
30294
30295 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30296 constraint.
30297
30298 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30299 Document vec_vbpermq builtin.
30300
30301 PR target/60672
30302 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30303 enable use of xxsldwi and xxpermdi builtin functions.
30304 (vec_xxpermdi): Likewise.
30305
30306 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30307 Document use of vec_xxsldwi and vec_xxpermdi builtins.
30308
30309 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
30310
30311 PR rtl-optimization/60650
30312 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30313 first_p. Use it.
30314 (find_spills_for): New.
30315 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30316 Spill all pseudos on the second iteration.
30317
30318 2014-03-27 Marek Polacek <polacek@redhat.com>
30319
30320 PR c/50347
30321 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30322 types.
30323
30324 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30325
30326 * config/s390/s390.c (s390_can_use_return_insn): Check for
30327 call-saved FPRs on 31 bit.
30328
30329 2014-03-27 Jakub Jelinek <jakub@redhat.com>
30330
30331 PR middle-end/60682
30332 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30333 if they need regimplification, just drop them instead of
30334 calling gimple_regimplify_operands on them.
30335
30336 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
30337
30338 PR target/60580
30339 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30340 (aarch64_frame_pointer_required): Adjust logic.
30341 (aarch64_can_eliminate): Adjust logic.
30342 (aarch64_override_options_after_change): Adjust logic.
30343
30344 2014-03-27 Dehao Chen <dehao@google.com>
30345
30346 * ipa-inline.c (early_inliner): Update node's inline info.
30347
30348 2014-03-26 Dehao Chen <dehao@google.com>
30349
30350 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30351 compiler inserted conditional jumps for NAN float check.
30352
30353 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30354
30355 * ubsan.h (ubsan_create_data): Change second argument's type
30356 to const location_t *.
30357 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30358 _("<unknown>").
30359 (ubsan_create_data): Change second argument to const location_t *PLOC.
30360 Create Loc field whenever PLOC is non-NULL.
30361 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30362 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30363 callers.
30364
30365 PR other/59545
30366 * real.c (real_to_integer2): Change type of low to UHWI.
30367
30368 2014-03-26 Tobias Burnus <burnus@net-b.de>
30369
30370 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30371 (CILK_SELF_SPECS): New define.
30372 (driver_self_specs): Use it.
30373
30374 2014-03-26 Richard Biener <rguenther@suse.de>
30375
30376 * tree-pretty-print.c (percent_K_format): Implement special
30377 case for LTO and its stripped down BLOCK tree.
30378
30379 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30380
30381 PR sanitizer/60636
30382 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30383
30384 * tree-vrp.c (simplify_internal_call_using_ranges): If only
30385 one range is range_int_cst_p, but not both, at least optimize
30386 addition/subtraction of 0 and multiplication by 0 or 1.
30387 * gimple-fold.c (gimple_fold_call): Fold
30388 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30389 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30390 INTEGER_CSTs, try to fold at least x * 0 and y - y.
30391
30392 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
30393
30394 PR rtl-optimization/60452
30395 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30396 <case REG>: Return 1 for invalid offsets from the frame pointer.
30397
30398 2014-03-26 Marek Polacek <polacek@redhat.com>
30399
30400 PR c/37428
30401 * doc/extend.texi (C Extensions): Mention variable-length arrays in
30402 a structure/union.
30403
30404 2014-03-26 Marek Polacek <polacek@redhat.com>
30405
30406 PR c/39525
30407 * doc/extend.texi (Designated Inits): Describe what happens to omitted
30408 field members.
30409
30410 2014-03-26 Marek Polacek <polacek@redhat.com>
30411
30412 PR other/59545
30413 * ira-color.c (update_conflict_hard_regno_costs): Perform the
30414 multiplication in unsigned type.
30415
30416 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30417
30418 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30419
30420 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30421
30422 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30423
30424 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30425
30426 PR ipa/60315
30427 * cif-code.def (UNREACHABLE) New code.
30428 * ipa-inline.c (inline_small_functions): Skip edges to
30429 __builtlin_unreachable.
30430 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30431 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30432 predicate to __bulitin_unreachable.
30433 (set_cond_stmt_execution_predicate): Fix issue when
30434 invert_tree_comparison returns ERROR_MARK.
30435 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30436 propagate to inline clones.
30437 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30438 to unreachable.
30439 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30440 * cgraphclones.c (cgraph_clone_node): If call destination is already
30441 ureachable, do not redirect it back.
30442 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30443 unreachable.
30444
30445 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30446
30447 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30448 Do not modify inline clones.
30449
30450 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30451
30452 * config/i386/i386.md (general_sext_operand): New mode attr.
30453 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30454 don't generate (sign_extend (const_int)).
30455 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30456 operands[2]. Use We constraint instead of <i> and
30457 <general_sext_operand> predicate instead of <general_operand>.
30458 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30459 * config/i386/constraints.md (We): New constraint.
30460 * config/i386/predicates.md (x86_64_sext_operand,
30461 sext_operand): New predicates.
30462
30463 2014-03-25 Martin Jambor <mjambor@suse.cz>
30464
30465 PR ipa/60600
30466 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30467 inconsistent devirtualizations to __builtin_unreachable.
30468
30469 2014-03-25 Marek Polacek <polacek@redhat.com>
30470
30471 PR c/35449
30472 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30473
30474 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
30475
30476 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30477 order of elements for big-endian.
30478
30479 2014-03-25 Richard Biener <rguenther@suse.de>
30480
30481 PR middle-end/60635
30482 * gimplify-me.c (gimple_regimplify_operands): Update the
30483 re-gimplifed stmt.
30484
30485 2014-03-25 Martin Jambor <mjambor@suse.cz>
30486
30487 PR ipa/59176
30488 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30489 (lto_output_varpool_node): Likewise.
30490 (input_overwrite_node): Likewise.
30491 (input_varpool_node): Likewise.
30492
30493 2014-03-25 Richard Biener <rguenther@suse.de>
30494
30495 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30496 (run_gcc): Likewise.
30497
30498 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30499
30500 * combine.c (simplify_compare_const): Add MODE argument.
30501 Handle mode_width 0 as very large mode_width.
30502 (try_combine, simplify_comparison): Adjust callers.
30503
30504 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30505 type to avoid signed integer overflow.
30506 * explow.c (plus_constant): Likewise.
30507
30508 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30509
30510 * doc/generic.texi: Correct typos.
30511
30512 2014-03-24 Tobias Burnus <burnus@net-b.de>
30513
30514 * doc/invoke.texi (-flto): Expand section about
30515 using static libraries with LTO.
30516
30517 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30518
30519 PR rtl-optimization/60501
30520 * optabs.def (addptr3_optab): New optab.
30521 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30522 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30523 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30524
30525 * lra.c (emit_add3_insn): Use the addptr pattern if available.
30526
30527 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30528
30529 2014-03-24 Ulrich Drepper <drepper@gmail.com>
30530
30531 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30532 _mm512_set1_pd.
30533
30534 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30535 (_mm256_undefined_ps): Define.
30536 (_mm256_undefined_pd): Define.
30537 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30538 (_mm_undefined_pd): Define.
30539 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30540 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30541 (_mm512_undefined_ps): Define.
30542 (_mm512_undefined_pd): Define.
30543 Use _mm*_undefined_*.
30544 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30545
30546 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
30547
30548 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30549 (lshr_simd): DI mode added.
30550 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30551 (aarch64_ushr_simddi): Likewise.
30552 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30553 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30554 (vshrd_n_u64): Likewise.
30555
30556 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30557
30558 * Makefile.in (s-macro_list): Depend on cc1.
30559
30560 2014-03-23 Teresa Johnson <tejohnson@google.com>
30561
30562 * ipa-utils.c (ipa_print_order): Use specified dump file.
30563
30564 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
30565
30566 PR rtl-optimization/60601
30567 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30568
30569 * gcc.c (eval_spec_function): Initialize save_growing_value.
30570
30571 2014-03-22 Jakub Jelinek <jakub@redhat.com>
30572
30573 PR sanitizer/60613
30574 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30575 code == MINUS_EXPR, never swap op0 with op1.
30576
30577 * toplev.c (init_local_tick): Avoid signed integer multiplication
30578 overflow.
30579 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30580 shift by first operand's bitsize.
30581
30582 2014-03-21 Jakub Jelinek <jakub@redhat.com>
30583
30584 PR target/60610
30585 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30586 redefine to 1 or 0.
30587 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30588 TARGET_ISA_64BIT_P(x).
30589
30590 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30591
30592 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30593 pattern for vector nor instead of subtract from splat(-1).
30594 (altivec_expand_vec_perm_const_le): Likewise.
30595
30596 2014-03-21 Richard Henderson <rth@twiddle.net>
30597
30598 PR target/60598
30599 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30600 related insns after epilogue_completed.
30601
30602 2014-03-21 Martin Jambor <mjambor@suse.cz>
30603
30604 PR ipa/59176
30605 * cgraph.h (symtab_node): New flag body_removed.
30606 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30607 when removing bodies.
30608 * symtab.c (dump_symtab_base): Dump body_removed flag.
30609 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30610 had their bodies removed.
30611
30612 2014-03-21 Martin Jambor <mjambor@suse.cz>
30613
30614 PR ipa/60419
30615 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30616 in the border.
30617
30618 2014-03-21 Richard Biener <rguenther@suse.de>
30619
30620 PR tree-optimization/60577
30621 * tree-core.h (struct tree_base): Document nothrow_flag use
30622 in DECL_NONALIASED.
30623 * tree.h (DECL_NONALIASED): New.
30624 (may_be_aliased): Adjust.
30625 * coverage.c (build_var): Set DECL_NONALIASED.
30626
30627 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30628
30629 * expr.c (expand_expr_real_1): Remove outdated comment.
30630
30631 2014-03-20 Jakub Jelinek <jakub@redhat.com>
30632
30633 PR middle-end/60597
30634 * ira.c (adjust_cleared_regs): Call copy_rtx on
30635 *reg_equiv[REGNO (loc)].src_p before passing it to
30636 simplify_replace_fn_rtx.
30637
30638 PR target/60568
30639 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30640 into CONST, put pic register as first operand of PLUS. Use
30641 gen_const_mem for both 32-bit and 64-bit PIC got loads.
30642
30643 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30644
30645 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30646
30647 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30648
30649 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30650 around for store forwarding issue in the FPU on the UT699.
30651 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30652 loads and operations if -mfix-ut699 is specified.
30653 (divtf3_hq): Tweak attribute.
30654 (sqrttf2_hq): Likewise.
30655
30656 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30657
30658 * calls.c (store_one_arg): Remove incorrect const qualification on the
30659 type of the temporary.
30660 * cfgexpand.c (expand_return): Likewise.
30661 * expr.c (expand_constructor): Likewise.
30662 (expand_expr_real_1): Likewise.
30663
30664 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30665
30666 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30667 of parts.
30668
30669 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
30670
30671 PR target/60039
30672 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30673
30674 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
30675
30676 * config/arm/aarch-common-protos.h
30677 (alu_cost_table): Fix spelling of "extend".
30678 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30679
30680 2014-03-19 Richard Biener <rguenther@suse.de>
30681
30682 PR middle-end/60553
30683 * tree-core.h (tree_type_common): Re-order pointer members
30684 to reduce recursion depth during GC walks.
30685
30686 2014-03-19 Marek Polacek <polacek@redhat.com>
30687
30688 PR sanitizer/60569
30689 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30690 before accessing it.
30691
30692 2014-03-19 Richard Biener <rguenther@suse.de>
30693
30694 PR lto/59543
30695 * lto-streamer-in.c (input_function): In WPA stage do not drop
30696 debug stmts.
30697
30698 2014-03-19 Jakub Jelinek <jakub@redhat.com>
30699
30700 PR tree-optimization/60559
30701 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30702 with build_zero_cst assignment.
30703
30704 2014-03-18 Kai Tietz <ktietz@redhat.com>
30705
30706 PR rtl-optimization/56356
30707 * sdbout.c (sdbout_parms): Verify that parms'
30708 incoming argument is valid.
30709 (sdbout_reg_parms): Likewise.
30710
30711 2014-03-18 Richard Henderson <rth@redhat.com>
30712
30713 PR target/60562
30714 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30715 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
30716 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30717
30718 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
30719
30720 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30721 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30722 Italicize plugin event names in description. Explain that
30723 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
30724 Remind that no GCC functions should be called after PLUGIN_FINISH.
30725 Explain what pragmas with expansion are.
30726
30727 2014-03-18 Martin Liska <mliska@suse.cz>
30728
30729 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30730 gimple call statement is update.
30731 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30732 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30733
30734 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30735
30736 PR sanitizer/60557
30737 * ubsan.c (ubsan_instrument_unreachable): Call
30738 initialize_sanitizer_builtins.
30739 (ubsan_pass): Likewise.
30740
30741 PR sanitizer/60535
30742 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30743 varpool_finalize_decl instead of rest_of_decl_compilation.
30744
30745 2014-03-18 Richard Biener <rguenther@suse.de>
30746
30747 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30748 by using bitmap_and_compl instead of bitmap_and_compl_into.
30749 (df_rd_transfer_function): Likewise.
30750
30751 2014-03-18 Richard Biener <rguenther@suse.de>
30752
30753 * doc/lto.texi (fresolution): Fix typo.
30754
30755 2014-03-18 Richard Biener <rguenther@suse.de>
30756
30757 * doc/invoke.texi (flto): Update for changes in 4.9.
30758
30759 2014-03-18 Richard Biener <rguenther@suse.de>
30760
30761 * doc/loop.texi: Remove section on the removed lambda framework.
30762 Update loop docs with recent changes in preserving loop structure.
30763
30764 2014-03-18 Richard Biener <rguenther@suse.de>
30765
30766 * doc/lto.texi (-fresolution): Document.
30767
30768 2014-03-18 Richard Biener <rguenther@suse.de>
30769
30770 * doc/contrib.texi: Adjust my name.
30771
30772 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30773
30774 PR ipa/58721
30775 * internal-fn.c: Include diagnostic-core.h.
30776 (expand_BUILTIN_EXPECT): New function.
30777 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30778 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30779 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30780 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30781 IFN_BUILTIN_EXPECT.
30782 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30783 Revert 3 argument __builtin_expect code.
30784 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30785 * gimple-fold.c (gimple_fold_call): Likewise.
30786 * tree.h (fold_builtin_expect): New prototype.
30787 * builtins.c (build_builtin_expect_predicate): Add predictor
30788 argument, if non-NULL, create 3 argument __builtin_expect.
30789 (fold_builtin_expect): No longer static. Add ARG2 argument,
30790 pass it through to build_builtin_expect_predicate.
30791 (fold_builtin_2): Adjust caller.
30792 (fold_builtin_3): Handle BUILT_IN_EXPECT.
30793 * internal-fn.def (BUILTIN_EXPECT): New.
30794
30795 2014-03-18 Tobias Burnus <burnus@net-b.de>
30796
30797 PR ipa/58721
30798 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30799 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30800 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30801
30802 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
30803
30804 PR ipa/58721
30805 * predict.c (combine_predictions_for_bb): Fix up formatting.
30806 (expr_expected_value_1, expr_expected_value): Add predictor argument,
30807 fill what it points to if non-NULL.
30808 (tree_predict_by_opcode): Adjust caller, use the predictor.
30809 * predict.def (PRED_COMPARE_AND_SWAP): Add.
30810
30811 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
30812
30813 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30814 proper constant for the store mode.
30815
30816 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
30817
30818 * symtab.c (change_decl_assembler_name): Fix transparent alias
30819 chain construction.
30820
30821 2014-03-16 Renlin Li <Renlin.Li@arm.com>
30822
30823 * config/aarch64/aarch64.c: Correct the comments about the
30824 aarch64 stack layout.
30825
30826 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
30827
30828 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30829 check for GF_OMP_FOR_KIND_FOR.
30830
30831 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
30832
30833 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30834 ymm and zmm register names.
30835
30836 2014-03-17 Jakub Jelinek <jakub@redhat.com>
30837
30838 PR target/60516
30839 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30840 note creation for the 2010-08-31 changes.
30841
30842 2014-03-17 Marek Polacek <polacek@redhat.com>
30843
30844 PR middle-end/60534
30845 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30846 as -fno-tree-loop-vectorize.
30847 (expand_omp_simd): Likewise.
30848
30849 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
30850
30851 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30852 (eligible_for_call_delay): New prototype.
30853 * config/sparc/sparc.c (tls_call_delay): Rename into...
30854 (eligible_for_call_delay): ...this. Return false if the instruction
30855 cannot be put in the delay slot of a branch.
30856 (eligible_for_restore_insn): Simplify.
30857 (eligible_for_return_delay): Return false if the instruction cannot be
30858 put in the delay slot of a branch and simplify.
30859 (eligible_for_sibcall_delay): Return false if the instruction cannot be
30860 put in the delay slot of a branch.
30861 * config/sparc/sparc.md (fix_ut699): New attribute.
30862 (tls_call_delay): Delete.
30863 (in_call_delay): Reimplement.
30864 (eligible_for_sibcall_delay): Rename into...
30865 (in_sibcall_delay): ...this.
30866 (eligible_for_return_delay): Rename into...
30867 (in_return_delay): ...this.
30868 (in_branch_delay): Reimplement.
30869 (in_uncond_branch_delay): Delete.
30870 (in_annul_branch_delay): Delete.
30871
30872 2014-03-14 Richard Henderson <rth@redhat.com>
30873
30874 PR target/60525
30875 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30876 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30877 (*floathi<X87MODEF>2_i387_with_temp): Remove.
30878 (floathi splitters): Remove.
30879 (float<SWI48x>xf2): New pattern.
30880 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
30881 code that tried to handle DImode for 32-bit, but which was excluded
30882 by the pattern's condition. Drop allocation of stack temporary.
30883 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30884 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30885 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30886 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30887 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30888 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30889 (*float<SWI48><MODEF>2_sse_interunit): Remove.
30890 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30891 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30892 (*float<SWI48x><X87MODEF>2_i387): Remove.
30893 (all float _with_temp splitters): Remove.
30894 (*float<SWI48x><MODEF>2_i387): New pattern.
30895 (*float<SWI48><MODEF>2_sse): New pattern.
30896 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30897 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30898
30899 2014-03-14 Jakub Jelinek <jakub@redhat.com>
30900 Marek Polacek <polacek@redhat.com>
30901
30902 PR middle-end/60484
30903 * common.opt (dump_base_name_prefixed): New Variable.
30904 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30905 if x_dump_base_name_prefixed is already set, set it at the end.
30906
30907 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
30908
30909 PR rtl-optimization/60508
30910 * lra-constraints.c (get_reload_reg): Add new parameter
30911 in_subreg_p.
30912 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30913 Pass the new parameter values.
30914
30915 2014-03-14 Richard Biener <rguenther@suse.de>
30916
30917 * common.opt: Revert unintented changes from r205065.
30918 * opts.c: Likewise.
30919
30920 2014-03-14 Richard Biener <rguenther@suse.de>
30921
30922 PR middle-end/60518
30923 * cfghooks.c (split_block): Properly adjust all loops the
30924 block was a latch of.
30925
30926 2014-03-14 Martin Jambor <mjambor@suse.cz>
30927
30928 PR lto/60461
30929 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30930 and simplify it.
30931
30932 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
30933
30934 PR target/59396
30935 * config/avr/avr.c (avr_set_current_function): Pass function name
30936 through default_strip_name_encoding before sanity checking instead
30937 of skipping the first char of the assembler name.
30938
30939 2014-03-13 Richard Henderson <rth@redhat.com>
30940
30941 PR debug/60438
30942 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30943 (ix86_force_to_memory, ix86_free_from_memory): Remove.
30944 * config/i386/i386-protos.h: Likewise.
30945 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30946 in the expander instead of a splitter.
30947 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30948 any possibility of requiring a memory.
30949 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30950 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30951 (fp branch splitters): Update for ix86_split_fp_branch.
30952 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30953 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30954 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30955 (*fop_<MODEF>_2_i387): Remove f/r alternative.
30956 (*fop_<MODEF>_3_i387): Likewise.
30957 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30958 (splitters for the fop_* register patterns): Remove.
30959 (fscalexf4_i387): Rename from *fscalexf4_i387.
30960 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30961
30962 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30963
30964 PR tree-optimization/59779
30965 * tree-dfa.c (get_ref_base_and_extent): Use double_int
30966 type for bitsize and maxsize instead of HOST_WIDE_INT.
30967
30968 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
30969
30970 PR rtl-optimization/57320
30971 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
30972 the CFG after thread_prologue_and_epilogue_insns.
30973
30974 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
30975
30976 PR rtl-optimization/57189
30977 * lra-constraints.c (process_alt_operands): Disfavor spilling
30978 vector pseudos.
30979
30980 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
30981
30982 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30983
30984 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30985
30986 PR tree-optimization/59025
30987 PR middle-end/60418
30988 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30989 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30990
30991 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
30992
30993 PR target/60486
30994 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30995 calls of avr_out_plus_1.
30996
30997 2014-03-13 Bin Cheng <bin.cheng@arm.com>
30998
30999 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31000 BB's single pred and update the father loop's latch info later.
31001
31002 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
31003
31004 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31005 (VEC_M): Likewise.
31006 (VEC_N): Likewise.
31007 (VEC_R): Likewise.
31008 (VEC_base): Likewise.
31009 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31010 registers, we need to swap double words in little endian mode.
31011
31012 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31013 to be a container mode for 128-bit integer operations added in ISA
31014 2.07. Unlike TImode and PTImode, the preferred register set is
31015 the Altivec/VMX registers for the 128-bit operations.
31016
31017 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31018 declarations.
31019 (rs6000_split_128bit_ok_p): Likewise.
31020
31021 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31022 macros for creating ISA 2.07 normal and overloaded builtin
31023 functions with 3 arguments.
31024 (BU_P8V_OVERLOAD_3): Likewise.
31025 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31026 for use as overloaded functions.
31027 (VPERM_1TI_UNS): Likewise.
31028 (VSEL_1TI): Likewise.
31029 (VSEL_1TI_UNS): Likewise.
31030 (ST_INTERNAL_1ti): Likewise.
31031 (LD_INTERNAL_1ti): Likewise.
31032 (XXSEL_1TI): Likewise.
31033 (XXSEL_1TI_UNS): Likewise.
31034 (VPERM_1TI): Likewise.
31035 (VPERM_1TI_UNS): Likewise.
31036 (XXPERMDI_1TI): Likewise.
31037 (SET_1TI): Likewise.
31038 (LXVD2X_V1TI): Likewise.
31039 (STXVD2X_V1TI): Likewise.
31040 (VEC_INIT_V1TI): Likewise.
31041 (VEC_SET_V1TI): Likewise.
31042 (VEC_EXT_V1TI): Likewise.
31043 (EQV_V1TI): Likewise.
31044 (NAND_V1TI): Likewise.
31045 (ORC_V1TI): Likewise.
31046 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31047 added in ISA 2.07. Add both normal 'altivec' builtins, and the
31048 overloaded builtin.
31049 (VADDUQM): Likewise.
31050 (VSUBCUQ): Likewise.
31051 (VADDEUQM): Likewise.
31052 (VADDECUQ): Likewise.
31053 (VSUBEUQM): Likewise.
31054 (VSUBECUQ): Likewise.
31055
31056 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31057 __int128_t and __uint128_t types.
31058 (__uint128_type): Likewise.
31059 (altivec_categorize_keyword): Add support for vector __int128_t,
31060 vector __uint128_t, vector __int128, and vector unsigned __int128
31061 as a container type for TImode operations that need to be done in
31062 VSX/Altivec registers.
31063 (rs6000_macro_to_expand): Likewise.
31064 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31065 to support 128-bit integer instructions vaddcuq, vadduqm,
31066 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31067 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31068
31069 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31070 for V1TImode, and set up preferences to use VSX/Altivec registers.
31071 Setup VSX reload handlers.
31072 (rs6000_debug_reg_global): Likewise.
31073 (rs6000_init_hard_regno_mode_ok): Likewise.
31074 (rs6000_preferred_simd_mode): Likewise.
31075 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31076 (easy_altivec_constant): Likewise.
31077 (output_vec_const_move): Likewise.
31078 (rs6000_expand_vector_set): Convert V1TImode set and extract to
31079 simple move.
31080 (rs6000_expand_vector_extract): Likewise.
31081 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31082 addressing.
31083 (rs6000_const_vec): Add support for V1TImode.
31084 (rs6000_emit_le_vsx_load): Swap double words when loading or
31085 storing TImode/V1TImode.
31086 (rs6000_emit_le_vsx_store): Likewise.
31087 (rs6000_emit_le_vsx_move): Likewise.
31088 (rs6000_emit_move): Add support for V1TImode.
31089 (altivec_expand_ld_builtin): Likewise.
31090 (altivec_expand_st_builtin): Likewise.
31091 (altivec_expand_vec_init_builtin): Likewise.
31092 (altivec_expand_builtin): Likewise.
31093 (rs6000_init_builtins): Add support for V1TImode type. Add
31094 support for ISA 2.07 128-bit integer builtins. Define type names
31095 for the VSX/Altivec vector types.
31096 (altivec_init_builtins): Add support for overloaded vector
31097 functions with V1TImode type.
31098 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31099 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31100 external function.
31101 (rs6000_split_128bit_ok_p): Likewise.
31102 (rs6000_handle_altivec_attribute): Create V1TImode from vector
31103 __int128_t and vector __uint128_t.
31104
31105 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31106 and mode attributes.
31107 (VSX_M): Likewise.
31108 (VSX_M2): Likewise.
31109 (VSm): Likewise.
31110 (VSs): Likewise.
31111 (VSr): Likewise.
31112 (VSv): Likewise.
31113 (VS_scalar): Likewise.
31114 (VS_double): Likewise.
31115 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31116
31117 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31118 we support the ISA 2.07 128-bit integer arithmetic instructions.
31119 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31120 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31121 and TImode types for use with the builtin functions.
31122 (V1TI_type_node): Likewise.
31123 (unsigned_V1TI_type_node): Likewise.
31124 (intTI_type_internal_node): Likewise.
31125 (uintTI_type_internal_node): Likewise.
31126
31127 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31128 128-bit builtin functions.
31129 (UNSPEC_VADDEUQM): Likewise.
31130 (UNSPEC_VADDECUQ): Likewise.
31131 (UNSPEC_VSUBCUQ): Likewise.
31132 (UNSPEC_VSUBEUQM): Likewise.
31133 (UNSPEC_VSUBECUQ): Likewise.
31134 (VM): Add V1TImode to vector mode iterators.
31135 (VM2): Likewise.
31136 (VI_unit): Likewise.
31137 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31138 (altivec_vaddcuq): Likewise.
31139 (altivec_vsubuqm): Likewise.
31140 (altivec_vsubcuq): Likewise.
31141 (altivec_vaddeuqm): Likewise.
31142 (altivec_vaddecuq): Likewise.
31143 (altivec_vsubeuqm): Likewise.
31144 (altivec_vsubecuq): Likewise.
31145
31146 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31147 mode iterators.
31148 (BOOL_128): Likewise.
31149 (BOOL_REGS_OUTPUT): Likewise.
31150 (BOOL_REGS_OP1): Likewise.
31151 (BOOL_REGS_OP2): Likewise.
31152 (BOOL_REGS_UNARY): Likewise.
31153 (BOOL_REGS_AND_CR0): Likewise.
31154
31155 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31156 128-bit integer builtin support.
31157 (vec_vadduqm): Likewise.
31158 (vec_vaddecuq): Likewise.
31159 (vec_vaddeuqm): Likewise.
31160 (vec_vsubecuq): Likewise.
31161 (vec_vsubeuqm): Likewise.
31162 (vec_vsubcuq): Likewise.
31163 (vec_vsubuqm): Likewise.
31164
31165 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31166 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31167 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31168 128-bit integer add/subtract to ISA 2.07.
31169
31170 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
31171
31172 * config/arc/arc.c (arc_predicate_delay_insns):
31173 Fix third argument passed to conditionalize_nonjump.
31174
31175 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
31176
31177 * config/aarch64/aarch64-builtins.c
31178 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31179 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31180 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31181 instead of __builtin_lfloor.
31182 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31183
31184 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31185
31186 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31187 (tree_ssa_ifcombine_bb_1): New function.
31188 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
31189 is an empty forwarder block to then_bb or vice versa and then_bb
31190 and else_bb are effectively swapped.
31191
31192 2014-03-12 Christian Bruel <christian.bruel@st.com>
31193
31194 PR target/60264
31195 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31196 REG_CFA_DEF_CFA note.
31197 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31198 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31199
31200 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31201
31202 PR tree-optimization/60454
31203 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31204
31205 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31206
31207 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31208 Do not define target_cpu_default2 to generic.
31209 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31210 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31211 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31212
31213 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31214 Marc Glisse <marc.glisse@inria.fr>
31215
31216 PR tree-optimization/60502
31217 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31218 instead of build_low_bits_mask.
31219
31220 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31221
31222 PR middle-end/60482
31223 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31224 if there are multiple uses, but op doesn't live on E edge.
31225 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31226 clobber stmts before __builtin_unreachable.
31227
31228 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
31229
31230 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31231 hard_frame_pointer_rtx.
31232 * cse.c (cse_insn): Remove volatile check.
31233 * cselib.c (cselib_process_insn): Likewise.
31234 * dse.c (scan_insn): Likewise.
31235
31236 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31237
31238 * config/arc/arc.c (conditionalize_nonjump): New function,
31239 broken out of ...
31240 (arc_ifcvt): ... this.
31241 (arc_predicate_delay_insns): Use it.
31242
31243 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31244
31245 * config/arc/predicates.md (extend_operand): During/after reload,
31246 allow const_int_operand.
31247 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31248 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
31249 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31250 to "i".
31251 (umulsi3_highpart_i): Likewise.
31252
31253 2014-03-11 Richard Biener <rguenther@suse.de>
31254
31255 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31256 Add asserts to guard possible wrong-code bugs.
31257
31258 2014-03-11 Richard Biener <rguenther@suse.de>
31259
31260 PR tree-optimization/60429
31261 PR tree-optimization/60485
31262 * tree-ssa-structalias.c (set_union_with_increment): Properly
31263 take into account all fields that overlap the shifted vars.
31264 (do_sd_constraint): Likewise.
31265 (do_ds_constraint): Likewise.
31266 (get_constraint_for_ptr_offset): Likewise.
31267
31268 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
31269
31270 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31271 (nios2_compute_frame_layout):
31272 Add calculation of cfun->machine->fp_save_offset.
31273 (nios2_expand_prologue): Correct setting of frame pointer register
31274 in prologue.
31275 (nios2_expand_epilogue): Update recovery of stack pointer from
31276 frame pointer accordingly.
31277 (nios2_initial_elimination_offset): Update calculation of offset
31278 for eliminating to HARD_FRAME_POINTER_REGNUM.
31279
31280 2014-03-10 Jakub Jelinek <jakub@redhat.com>
31281
31282 PR ipa/60457
31283 * ipa.c (symtab_remove_unreachable_nodes): Don't call
31284 cgraph_get_create_node on VAR_DECLs.
31285
31286 2014-03-10 Richard Biener <rguenther@suse.de>
31287
31288 PR middle-end/60474
31289 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31290
31291 2014-03-08 Douglas B Rupp <rupp@gnat.com>
31292
31293 * config/vms/vms.opt (vms_float_format): New variable.
31294
31295 2014-03-08 Tobias Burnus <burnus@net-b.de>
31296
31297 * doc/invoke.texi (-fcilkplus): Update implementation status.
31298
31299 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
31300 Richard Biener <rguenther@suse.de>
31301
31302 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31303 consistently accross all TUs.
31304 (run_gcc): Enable -fshort-double automatically at link at link-time
31305 and disallow override.
31306
31307 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
31308
31309 PR target/58271
31310 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31311 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31312 if they can't be used.
31313
31314 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31315
31316 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31317 for Solaris 11/x86 ld.
31318 * configure: Regenerate.
31319
31320 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31321
31322 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31323 (LIB_TLS_SPEC): Save as ld_tls_libs.
31324 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31325 (HAVE_AS_IX86_TLSLDM): New test.
31326 * configure, config.in: Regenerate.
31327 * config/i386/i386.c (legitimize_tls_address): Fall back to
31328 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31329 cannot support TLS_MODEL_LOCAL_DYNAMIC.
31330 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31331 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31332
31333 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
31334
31335 * common.opt (fira-loop-pressure): Mark as optimization.
31336
31337 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
31338
31339 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31340 an OpenMP mappable type.
31341
31342 2014-03-06 Matthias Klose <doko@ubuntu.com>
31343
31344 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31345 MULTILIB_OSDIRNAMES is not defined.
31346
31347 2014-03-06 Jakub Jelinek <jakub@redhat.com>
31348 Meador Inge <meadori@codesourcery.com>
31349
31350 PR target/58595
31351 * config/arm/arm.c (arm_tls_symbol_p): Remove.
31352 (arm_legitimize_address): Call legitimize_tls_address for any
31353 arm_tls_referenced_p expression, handle constant addend. Call it
31354 before testing for !TARGET_ARM.
31355 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31356
31357 2014-03-06 Richard Biener <rguenther@suse.de>
31358
31359 PR middle-end/60445
31360 PR lto/60424
31361 PR lto/60427
31362 Revert
31363 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31364
31365 * tree-streamer.c (record_common_node): Assert we don't record
31366 nodes with type double.
31367 (preload_common_node): Skip type double, complex double and double
31368 pointer since it is now frontend dependent due to fshort-double option.
31369
31370 2014-03-06 Richard Biener <rguenther@suse.de>
31371
31372 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31373 or -fno-lto is specified and the linker has full plugin support.
31374 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31375 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31376 * lto-wrapper.c (merge_and_complain): Merge compile-time
31377 optimization levels.
31378 (run_gcc): And pass it through to the link options.
31379
31380 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
31381
31382 PR debug/60381
31383 Revert:
31384 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31385 PR debug/59992
31386 * cselib.c (remove_useless_values): Skip to avoid quadratic
31387 behavior if the condition moved from...
31388 (cselib_process_insn): ... here holds.
31389
31390 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31391
31392 PR plugins/59335
31393 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31394 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31395
31396 PR plugins/59335
31397 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31398 (TM_H): Add x86-tune.def.
31399
31400 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31401
31402 * config/aarch64/aarch64.c (generic_tunings):
31403 Use cortexa57_extra_costs.
31404
31405 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31406
31407 PR lto/60404
31408 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31409 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31410 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31411 cost for in_lto_p.
31412
31413 2014-03-04 Heiher <r@hev.cc>
31414
31415 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31416 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31417
31418 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
31419
31420 * config/i386/predicates.md (const2356_operand): Change to ...
31421 (const2367_operand): ... this.
31422 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31423 const2367_operand.
31424 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31425 (*avx512pf_scatterpf<mode>sf): Ditto.
31426 (avx512pf_scatterpf<mode>df): Ditto.
31427 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31428 (*avx512pf_scatterpf<mode>df): Ditto.
31429 * config/i386/i386.c (ix86_expand_builtin): Update
31430 incorrect hint operand error message.
31431
31432 2014-03-04 Richard Biener <rguenther@suse.de>
31433
31434 * lto-section-in.c (lto_get_section_data): Fix const cast.
31435
31436 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31437
31438 * tree-streamer.c (record_common_node): Assert we don't record
31439 nodes with type double.
31440 (preload_common_node): Skip type double, complex double and double
31441 pointer since it is now frontend dependent due to fshort-double option.
31442
31443 2014-03-04 Richard Biener <rguenther@suse.de>
31444
31445 PR lto/60405
31446 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31447 (lto_input_toplevel_asms): Likewise.
31448 * lto-section-in.c (lto_get_section_data): Instead do it here
31449 for every section.
31450
31451 2014-03-04 Richard Biener <rguenther@suse.de>
31452
31453 PR tree-optimization/60382
31454 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31455 dead PHIs a reduction.
31456
31457 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
31458
31459 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31460 hint value.
31461 (_mm_prefetch): Move out of GCC target("sse") pragma.
31462 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31463 GCC target("prfchw") pragma.
31464 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31465 for locality <= 2.
31466 * config/i386/i386.c (ix86_option_override_internal): Enable
31467 -mprfchw with -mprefetchwt1.
31468
31469 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31470
31471 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31472 Mark as varying.
31473
31474 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31475
31476 * opts.h (CL_PCH_IGNORE): Define.
31477 * targhooks.c (option_affects_pch_p):
31478 Return false for options that have CL_PCH_IGNORE set.
31479 * opt-functions.awk: Process PchIgnore.
31480 * doc/options.texi: Document PchIgnore.
31481
31482 * config/arc/arc.opt (misize): Add PchIgnore property.
31483
31484 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31485
31486 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31487 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31488 constraint on constants to permit them being loaded into
31489 GENERAL_REGS or BASE_REGS.
31490
31491 2014-03-03 Nick Clifton <nickc@redhat.com>
31492
31493 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31494 anti-cacnonical alternatives.
31495 (negandhi3_real): New pattern.
31496 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31497
31498 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31499
31500 * config/avr/avr-mcus.def: Remove atxmega16x1.
31501 * config/avr/avr-tables.opt: Regenerate.
31502 * config/avr/t-multilib: Regenerate.
31503 * doc/avr-mmcu.texi: Regenerate.
31504
31505 2014-03-03 Tobias Grosser <tobias@grosser.es>
31506 Mircea Namolaru <mircea.namolaru@inria.fr>
31507
31508 PR tree-optimization/58028
31509 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31510 scalar dimensions.
31511
31512 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31513
31514 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31515 not handled by recognizers.
31516
31517 2014-03-03 Jakub Jelinek <jakub@redhat.com>
31518
31519 PR middle-end/60175
31520 * function.c (expand_function_end): Don't emit
31521 clobber_return_register sequence if clobber_after is a BARRIER.
31522 * cfgexpand.c (construct_exit_block): Append instructions before
31523 return_label to prev_bb.
31524
31525 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31526
31527 * config/rs6000/constraints.md: Document reserved use of "wc".
31528
31529 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31530
31531 PR ipa/60150
31532 * ipa.c (function_and_variable_visibility): When dissolving comdat
31533 group, also set all symbols to local.
31534
31535 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31536
31537 PR ipa/60306
31538
31539 Revert:
31540 2013-12-14 Jan Hubicka <jh@suse.cz>
31541 PR middle-end/58477
31542 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31543
31544 2014-03-02 Jon Beniston <jon@beniston.com>
31545
31546 PR bootstrap/48230
31547 PR bootstrap/50927
31548 PR bootstrap/52466
31549 PR target/46898
31550 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31551 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31552 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31553 (simple_return, *simple_return): New patterns
31554 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31555 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31556
31557 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
31558
31559 * dwarf2out.c (gen_subprogram_die): Tidy.
31560
31561 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31562
31563 PR target/60071
31564 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31565 (*mov_t_msb_neg_negc): ... this new insn.
31566
31567 2014-02-28 Jason Merrill <jason@redhat.com>
31568
31569 PR c++/58678
31570 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31571 function.
31572
31573 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31574
31575 PR c++/60314
31576 * dwarf2out.c (decltype_auto_die): New static.
31577 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31578 (gen_type_die_with_usage): Handle 'decltype(auto)'.
31579 (is_cxx_auto): Likewise.
31580
31581 2014-02-28 Ian Bolton <ian.bolton@arm.com>
31582
31583 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31584 we are not using general regs only.
31585
31586 2014-02-28 Richard Biener <rguenther@suse.de>
31587
31588 PR target/60280
31589 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31590 previous fix and only allow to remove trivial pre-headers
31591 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31592 (remove_forwarder_block): Properly update the latch of a loop.
31593
31594 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31595
31596 PR debug/59992
31597 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31598 (cselib_preserved_hash_table): New.
31599 (preserve_constants_and_equivs): Move preserved vals to it.
31600 (cselib_find_slot): Look it up first.
31601 (cselib_init): Initialize it.
31602 (cselib_finish): Release it.
31603 (dump_cselib_table): Dump it.
31604
31605 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31606
31607 PR debug/59992
31608 * cselib.c (remove_useless_values): Skip to avoid quadratic
31609 behavior if the condition moved from...
31610 (cselib_process_insn): ... here holds.
31611
31612 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31613
31614 PR debug/57232
31615 * var-tracking.c (vt_initialize): Apply the same condition to
31616 preserve the CFA base value.
31617
31618 2014-02-28 Joey Ye <joey.ye@arm.com>
31619
31620 PR target/PR60169
31621 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31622 if reload in progress or completed.
31623
31624 2014-02-28 Tobias Burnus <burnus@net-b.de>
31625
31626 PR middle-end/60147
31627 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31628 NAMELIST_DECL.
31629
31630 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
31631
31632 * doc/tm.texi.in (Condition Code Status): Update documention for
31633 relative locations of cc0-setter and cc0-user.
31634
31635 2014-02-27 Jeff Law <law@redhat.com>
31636
31637 PR rtl-optimization/52714
31638 * combine.c (try_combine): When splitting an unrecognized PARALLEL
31639 into two independent simple sets, if I3 is a jump, ensure the
31640 pattern we place into I3 is a (set (pc) ...).
31641
31642 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
31643 Jeff Law <law@redhat.com>
31644
31645 PR rtl-optimization/49847
31646 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31647 are in different blocks.
31648 * doc/tm.texi (Condition Code Status): Update documention for
31649 relative locations of cc0-setter and cc0-user.
31650
31651 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
31652
31653 PR target/59222
31654 * lra.c (lra_emit_add): Check SUBREG too.
31655
31656 2014-02-27 Andreas Schwab <schwab@suse.de>
31657
31658 * config/m68k/m68k.c (m68k_option_override): Disable
31659 -flive-range-shrinkage for classic m68k.
31660 (m68k_override_options_after_change): Likewise.
31661
31662 2014-02-27 Marek Polacek <polacek@redhat.com>
31663
31664 PR middle-end/59223
31665 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31666 -Wmaybe-uninitialized.
31667
31668 2014-02-27 Alan Modra <amodra@gmail.com>
31669
31670 PR target/57936
31671 * reload1.c (emit_input_reload_insns): When reload_override_in,
31672 set old to rl->in_reg when rl->in_reg is a subreg.
31673
31674 2014-02-26 Richard Biener <rguenther@suse.de>
31675
31676 PR bootstrap/60343
31677 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31678
31679 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31680
31681 * common/config/i386/predicates.md (const1256_operand): Remove.
31682 (const2356_operand): New.
31683 (const_1_to_2_operand): Remove.
31684 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31685 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31686 (*avx512pf_gatherpf<mode>sf): Ditto.
31687 (avx512pf_gatherpf<mode>df): Ditto.
31688 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31689 (*avx512pf_gatherpf<mode>df): Ditto.
31690 (avx512pf_scatterpf<mode>sf): Ditto.
31691 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31692 (*avx512pf_scatterpf<mode>sf): Ditto.
31693 (avx512pf_scatterpf<mode>df): Ditto.
31694 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31695 (*avx512pf_scatterpf<mode>df): Ditto.
31696 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31697
31698 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
31699
31700 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31701 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31702 (_mm512_mask_testn_epi64_mask): Move to ...
31703 * config/i386/avx512cdintrin.h: Here.
31704 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31705 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31706 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31707 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31708 TARGET_AVX512F from TARGET_AVX512CD.
31709
31710 2014-02-26 Richard Biener <rguenther@suse.de>
31711
31712 PR ipa/60327
31713 * ipa.c (walk_polymorphic_call_targets): Properly guard
31714 call to inline_update_overall_summary.
31715
31716 2014-02-26 Bin Cheng <bin.cheng@arm.com>
31717
31718 PR target/60280
31719 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31720 and latches only if requested. Fix latch if it is removed.
31721 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31722 LOOPS_HAVE_PREHEADERS.
31723
31724 2014-02-25 Andrew Pinski <apinski@cavium.com>
31725
31726 * builtins.c (expand_builtin_thread_pointer): Create a new target
31727 when the target is NULL.
31728
31729 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
31730
31731 PR rtl-optimization/60317
31732 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31733 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31734 * lra-assigns.c: Include params.h.
31735 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31736 other reload pseudos considerations.
31737
31738 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31739
31740 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31741 to use canonical form for nor<mode>3.
31742
31743 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31744
31745 PR target/55426
31746 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31747 conversions.
31748
31749 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31750
31751 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31752 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31753 (ix86_handle_option): Handle OPT_mprefetchwt1.
31754 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31755 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31756 PREFETCHWT1 CPUID.
31757 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31758 OPTION_MASK_ISA_PREFETCHWT1.
31759 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31760 (PTA_PREFETCHWT1): New.
31761 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31762 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31763 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31764 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31765 (*prefetch_avx512pf_<mode>_: Change into ...
31766 (*prefetch_prefetchwt1_<mode>: This.
31767 * config/i386/i386.opt (mprefetchwt1): New.
31768 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31769 (_mm_prefetch): Handle intent to write.
31770 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31771
31772 2014-02-25 Richard Biener <rguenther@suse.de>
31773
31774 PR middle-end/60291
31775 * emit-rtl.c (mem_attrs_htab): Remove.
31776 (mem_attrs_htab_hash): Likewise.
31777 (mem_attrs_htab_eq): Likewise.
31778 (set_mem_attrs): Always allocate new mem-attrs when something changed.
31779 (init_emit_once): Do not allocate mem_attrs_htab.
31780
31781 2014-02-25 Richard Biener <rguenther@suse.de>
31782
31783 PR lto/60319
31784 * lto-opts.c (lto_write_options): Output non-explicit conservative
31785 -fwrapv, -fno-trapv and -fno-strict-overflow.
31786 * lto-wrapper.c (merge_and_complain): Handle merging those options.
31787 (run_gcc): And pass them through.
31788
31789 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31790
31791 * sel-sched.c (calculate_new_fences): New parameter ptime.
31792 Calculate it as a maximum over all fence cycles.
31793 (sel_sched_region_2): Adjust the call to calculate_new_fences.
31794 Print the final schedule timing when sched_verbose.
31795
31796 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31797
31798 PR rtl-optimization/60292
31799 * sel-sched.c (fill_vec_av_set): Do not reset target availability
31800 bit fot the fence instruction.
31801
31802 2014-02-24 Alangi Derick <alangiderick@gmail.com>
31803
31804 * calls.h: Fix typo in comment.
31805
31806 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
31807
31808 * config/pa/pa.c (pa_output_move_double): Don't valididate when
31809 adjusting offsetable addresses.
31810
31811 2014-02-24 Guozhi Wei <carrot@google.com>
31812
31813 * sparseset.h (sparseset_pop): Fix the wrong index.
31814
31815 2014-02-24 Walter Lee <walt@tilera.com>
31816
31817 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31818 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31819 triplet.
31820 * common/config/tilegx/tilegx-common.c
31821 (TARGET_DEFAULT_TARGET_FLAGS): Define.
31822 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31823 (LINK_SPEC): Ditto.
31824 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31825 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31826 (tilegx_gimplify_va_arg_expr): Handle big endian.
31827 (tilegx_expand_unaligned_load): Ditto.
31828 (tilegx_expand_unaligned_store): Ditto.
31829 (TARGET_RETURN_IN_MSB): New.
31830 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31831 (TARGET_ENDIAN_DEFAULT): New.
31832 (TARGET_BIG_ENDIAN): Handle big endian.
31833 (BYTES_BIG_ENDIAN): Ditto.
31834 (WORDS_BIG_ENDIAN): Ditto.
31835 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31836 (ENDIAN_SPEC): New.
31837 (EXTRA_SPECS): New.
31838 * config/tilegx/tilegx.md (extv): Handle big endian.
31839 (extzv): Ditto.
31840 (insn_st<n>): Ditto.
31841 (insn_st<n>_add<bitsuffix>): Ditto.
31842 (insn_stnt<n>): Ditto.
31843 (insn_stnt<n>_add<bitsuffix>):Ditto.
31844 (vec_interleave_highv8qi): Handle big endian.
31845 (vec_interleave_highv8qi_be): New.
31846 (vec_interleave_highv8qi_le): New.
31847 (insn_v1int_h): Handle big endian.
31848 (vec_interleave_lowv8qi): Handle big endian.
31849 (vec_interleave_lowv8qi_be): New.
31850 (vec_interleave_lowv8qi_le): New.
31851 (insn_v1int_l): Handle big endian.
31852 (vec_interleave_highv4hi): Handle big endian.
31853 (vec_interleave_highv4hi_be): New.
31854 (vec_interleave_highv4hi_le): New.
31855 (insn_v2int_h): Handle big endian.
31856 (vec_interleave_lowv4hi): Handle big endian.
31857 (vec_interleave_lowv4hi_be): New.
31858 (vec_interleave_lowv4hi_le): New.
31859 (insn_v2int_l): Handle big endian.
31860 (vec_interleave_highv2si): Handle big endian.
31861 (vec_interleave_highv2si_be): New.
31862 (vec_interleave_highv2si_le): New.
31863 (insn_v4int_h): Handle big endian.
31864 (vec_interleave_lowv2si): Handle big endian.
31865 (vec_interleave_lowv2si_be): New.
31866 (vec_interleave_lowv2si_le): New.
31867 (insn_v4int_l): Handle big endian.
31868 * config/tilegx/tilegx.opt (mbig-endian): New option.
31869 (mlittle-endian): New option.
31870 * doc/install.texi: Document tilegxbe-linux.
31871 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31872
31873 2014-02-24 Martin Jambor <mjambor@suse.cz>
31874
31875 PR ipa/60266
31876 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31877 there are no parameter descriptors.
31878
31879 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
31880
31881 PR rtl-optimization/60268
31882 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31883 initialization to ...
31884 (sched_rgn_init): ... here.
31885 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31886
31887 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31888
31889 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31890 names.
31891
31892 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31893
31894 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31895 definition.
31896
31897 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31898
31899 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31900 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31901
31902 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31903
31904 * config/microblaze/predicates.md: Add cmp_op predicate.
31905 * config/microblaze/microblaze.md: Add branch_compare instruction
31906 which uses cmp_op predicate and emits cmp insn before branch.
31907 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31908 to microblaze_expand_conditional_branch and consolidate logic.
31909 (microblaze_expand_conditional_branch): emit branch_compare
31910 insn instead of handling cmp op separate from branch insn.
31911
31912 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31913
31914 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31915 to permit subregs.
31916
31917 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31918
31919 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31920 define_insn with define_expand and new define_insn
31921 *altivec_lve<VI_char>x_internal.
31922 (altivec_stve<VI_char>x): Replace define_insn with define_expand
31923 and new define_insn *altivec_stve<VI_char>x_internal.
31924 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31925 prototype.
31926 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31927 lve*x built-ins.
31928 (altivec_expand_stvex_be): New function.
31929
31930 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
31931
31932 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31933 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31934 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31935 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31936
31937 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
31938
31939 PR target/60298
31940 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31941 instead of emit_move_insn.
31942
31943 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31944
31945 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31946 vspltw with vsldoi.
31947 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31948 gen_altivec_vsumsws.
31949
31950 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31951
31952 * config/rs6000/altivec.md (altivec_lvxl): Rename as
31953 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31954 (altivec_lvxl_<mode>): New define_expand incorporating
31955 -maltivec=be semantics where needed.
31956 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31957 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31958 semantics where needed.
31959 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31960 (altivec_stvx_<mode>): New define_expand incorporating
31961 -maltivec=be semantics where needed.
31962 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
31963 VM2 iterator instead of V4SI.
31964 (altivec_stvxl_<mode>): New define_expand incorporating
31965 -maltivec=be semantics where needed.
31966 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
31967 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
31968 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
31969 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
31970 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
31971 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
31972 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
31973 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
31974 ALTIVEC_BUILTIN_STVXL.
31975 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
31976 (altivec_expand_stvx_be): Likewise.
31977 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
31978 (altivec_expand_lvx_be): Likewise.
31979 (altivec_expand_stvx_be): Likewise.
31980 (altivec_expand_builtin): Add cases for
31981 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31982 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31983 (altivec_init_builtins): Add definitions for
31984 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31985 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31986
31987 2014-02-21 Catherine Moore <clm@codesourcery.com>
31988
31989 * doc/invoke.texi (mvirt, mno-virt): Document.
31990 * config/mips/mips.opt (mvirt): New option.
31991 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31992
31993 2014-02-21 Richard Biener <rguenther@suse.de>
31994
31995 PR tree-optimization/60276
31996 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31997 (STMT_VINFO_MIN_NEG_DIST): New macro.
31998 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31999 STMT_VINFO_MIN_NEG_DIST.
32000 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32001 made for negative dependence distances still hold.
32002
32003 2014-02-21 Richard Biener <rguenther@suse.de>
32004
32005 PR middle-end/60291
32006 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32007 DECL_INITIAL for globals not in the current function context.
32008
32009 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32010
32011 PR tree-optimization/56490
32012 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32013 * tree-ssa-uninit.c: Include params.h.
32014 (compute_control_dep_chain): Add num_calls argument, return false
32015 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32016 num_calls to recursive call.
32017 (find_predicates): Change dep_chain into normal array,
32018 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32019 variable and adjust compute_control_dep_chain caller.
32020 (find_def_preds): Likewise.
32021
32022 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
32023
32024 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32025 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32026
32027 2014-02-21 Nick Clifton <nickc@redhat.com>
32028
32029 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32030 (pushhi1): Likewise.
32031 (popqi1): Add mode to pre_dec.
32032 (pophi1): Likewise.
32033
32034 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32035
32036 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32037 mode for mask of V8SFmode permutation.
32038
32039 2014-02-20 Richard Henderson <rth@redhat.com>
32040
32041 PR c++/60272
32042 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32043 a new pseudo for OLDVAL.
32044
32045 2014-02-20 Jakub Jelinek <jakub@redhat.com>
32046
32047 PR target/57896
32048 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32049 gen_reg_rtx if d->testing_p.
32050 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32051 if d->testing_p and we will certainly return true.
32052 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
32053 if d->testing_p.
32054
32055 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
32056
32057 * emit-rtl.c (gen_reg_rtx): Assert that
32058 crtl->emit.regno_pointer_align_length is non-zero.
32059
32060 2014-02-20 Richard Henderson <rth@redhat.com>
32061
32062 PR c++/60272
32063 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32064 on failure the store back into EXPECT.
32065
32066 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
32067 Sandra Loosemore <sandra@codesourcery.com>
32068
32069 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32070 * config/nios2/nios2.c (nios2_function_profiler): Add
32071 -fPIC (flag_pic == 2) support.
32072 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32073 (nios2_large_offset_p): New function.
32074 (nios2_unspec_reloc_p): Move up position, update to use
32075 nios2_large_offset_p.
32076 (nios2_unspec_address): Remove function.
32077 (nios2_unspec_offset): New function.
32078 (nios2_large_got_address): New function.
32079 (nios2_got_address): Add large offset support.
32080 (nios2_legitimize_tls_address): Update usage of removed and new
32081 functions.
32082 (nios2_symbol_binds_local_p): New function.
32083 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32084 (nios2_legitimize_address): Update to use nios2_large_offset_p.
32085 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32086 (nios2_print_operand): Merge H/L processing, add hiadj/lo
32087 processing for (const (unspec ...)).
32088 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32089
32090 2014-02-20 Richard Biener <rguenther@suse.de>
32091
32092 * tree-cfg.c (replace_uses_by): Mark altered BBs before
32093 doing the substitution.
32094 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32095
32096 2014-02-20 Martin Jambor <mjambor@suse.cz>
32097
32098 PR ipa/55260
32099 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32100 info when checking whether lattices are bottom.
32101
32102 2014-02-20 Richard Biener <rguenther@suse.de>
32103
32104 PR middle-end/60221
32105 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32106 regions at -O0.
32107
32108 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
32109
32110 PR ipa/58555
32111 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32112 parameter specifying the scaling.
32113 (inline_call): Update.
32114 (want_inline_recursively): Guard division by zero.
32115 (recursive_inlining): Update.
32116 * ipa-inline.h (clone_inlined_nodes): Update.
32117
32118 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32119
32120 PR target/60204
32121 * config/i386/i386.c (classify_argument): Pass structures of size
32122 64 bytes or less in register.
32123
32124 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32125 Kirill Yukhin <kirill.yukhin@intel.com>
32126
32127 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32128 (_mm_rcp28_round_ss): Ditto.
32129 (_mm_rsqrt28_round_sd): Ditto.
32130 (_mm_rsqrt28_round_ss): Ditto.
32131 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32132 (_mm_rcp14_round_ss): Ditto.
32133 (_mm_rsqrt14_round_sd): Ditto.
32134 (_mm_rsqrt14_round_ss): Ditto.
32135 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32136 the first input operand, get rid of match_dup.
32137 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32138 attribute to sse.
32139 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32140 Ditto.
32141 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32142 operand as the first input operand, set type attribute.
32143 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32144 Set type attribute.
32145 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32146 operand as the first input operand, set type attribute.
32147
32148 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32149
32150 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32151 bit of zero.
32152
32153 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
32154
32155 PR target/60207
32156 * config/i386/i386.c (construct_container): Remove TFmode check
32157 for X86_64_INTEGER_CLASS.
32158
32159 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
32160
32161 PR target/59794
32162 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32163 only when -Wpsabi is enabled.
32164
32165 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
32166
32167 PR target/59799
32168 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32169 passing arrays in registers are the same as for structs, so remove the
32170 special case for them.
32171
32172 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
32173
32174 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32175 destination type, extract only the valid bits if the source type is not
32176 integral and has a different mode.
32177
32178 2014-02-19 Richard Biener <rguenther@suse.de>
32179
32180 PR ipa/60243
32181 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32182 for all calls.
32183
32184 2014-02-19 Richard Biener <rguenther@suse.de>
32185
32186 PR ipa/60243
32187 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32188 (ipa_modify_call_arguments): Emit an argument load explicitely and
32189 preserve virtual SSA form there and for the replacement call.
32190 Do not update SSA form nor free dominance info.
32191
32192 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32193
32194 * ipa.c (function_and_variable_visibility): Also clear WEAK
32195 flag when disolving COMDAT_GROUP.
32196
32197 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32198
32199 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32200 * ipa-prop.c (ipa_set_jf_known_type): Return early when
32201 not devirtualizing.
32202 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32203 do more sanity checks.
32204 (detect_type_change): Return true when giving up early.
32205 (compute_complex_assign_jump_func): Fix type parameter of
32206 ipa_set_ancestor_jf.
32207 (compute_complex_ancestor_jump_func): Likewise.
32208 (update_jump_functions_after_inlining): Fix updating of
32209 ancestor function.
32210 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32211
32212 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32213
32214 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32215 inline clones when edge disappears.
32216
32217 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
32218
32219 PR target/60203
32220 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32221 Split 64-bit moves into 2 patterns. Do not allow the use of
32222 direct move for TDmode in little endian, since the decimal value
32223 has little endian bytes within a word, but the 64-bit pieces are
32224 ordered in a big endian fashion, and normal subreg's of TDmode are
32225 not allowed.
32226 (mov<mode>_64bit_dm): Likewise.
32227 (movtd_64bit_nodm): Likewise.
32228
32229 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32230
32231 PR tree-optimization/60174
32232 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32233 statement of an SSA_NAME that occurs in an abnormal PHI node.
32234
32235 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32236
32237 PR sanitizer/60142
32238 * final.c (SEEN_BB): Remove.
32239 (SEEN_NOTE, SEEN_EMITTED): Renumber.
32240 (final_scan_insn): Don't force_source_line on second
32241 NOTE_INSN_BASIC_BLOCK.
32242
32243 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
32244
32245 PR target/60205
32246 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32247 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32248 (type_natural_mode): Warn ABI change when %zmm register is not
32249 available for AVX512F vector value passing.
32250
32251 2014-02-18 Kai Tietz <ktietz@redhat.com>
32252
32253 PR target/60193
32254 * config/i386/i386.c (ix86_expand_prologue): Use value in
32255 rax register as displacement when restoring %r10 or %rax.
32256 Fix wrong offset when restoring both registers.
32257
32258 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32259
32260 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32261 assertion with conditional return.
32262
32263 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32264 Uros Bizjak <ubizjak@gmail.com>
32265
32266 PR driver/60233
32267 * config/i386/driver-i386.c (host_detect_local_cpu): If
32268 YMM state is not saved by the OS, also clear has_f16c. Move
32269 CPUID 0x80000001 handling before YMM state saving checking.
32270
32271 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
32272
32273 PR rtl-optimization/58960
32274 * haifa-sched.c (alloc_global_sched_pressure_data): New,
32275 factored out from ...
32276 (sched_init): ... here.
32277 (free_global_sched_pressure_data): New, factored out from ...
32278 (sched_finish): ... here.
32279 * sched-int.h (free_global_sched_pressure_data): Declare.
32280 * sched-rgn.c (nr_regions_initial): New static global.
32281 (haifa_find_rgns): Initialize it.
32282 (schedule_region): Disable sched-pressure for the newly
32283 generated regions.
32284
32285 2014-02-17 Richard Biener <rguenther@suse.de>
32286
32287 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32288 release SSA defs of pattern stmts.
32289
32290 2014-02-17 Richard Biener <rguenther@suse.de>
32291
32292 * tree-inline.c (expand_call_inline): Release the virtual
32293 operand defined by the call we are about to inline.
32294
32295 2014-02-17 Richard Biener <rguenther@suse.de>
32296
32297 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32298
32299 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
32300 Ilya Tocar <ilya.tocar@intel.com>
32301
32302 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32303 arguments order in builtin.
32304 (_mm512_permutexvar_epi64): Ditto.
32305 (_mm512_mask_permutexvar_epi64): Ditto
32306 (_mm512_maskz_permutexvar_epi32): Ditto
32307 (_mm512_permutexvar_epi32): Ditto
32308 (_mm512_mask_permutexvar_epi32): Ditto
32309
32310 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32311
32312 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32313 (p8_vmrgow): Likewise.
32314
32315 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32316
32317 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32318 endian targets.
32319
32320 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32321
32322 PR target/60203
32323 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32324 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32325 into 64-bit and 32-bit moves. On 64-bit moves, add support for
32326 using direct move instructions on ISA 2.07. Also adjust
32327 instruction length for 64-bit.
32328 (mov<mode>_64bit, TFmode/TDmode): Likewise.
32329 (mov<mode>_32bit, TFmode/TDmode): Likewise.
32330
32331 2014-02-15 Alan Modra <amodra@gmail.com>
32332
32333 PR target/58675
32334 PR target/57935
32335 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32336 find_replacement on parts of insn rtl that might be reloaded.
32337
32338 2014-02-15 Richard Biener <rguenther@suse.de>
32339
32340 PR tree-optimization/60183
32341 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32342 (tree_ssa_phiprop): Calculate and free post-dominators.
32343
32344 2014-02-14 Jeff Law <law@redhat.com>
32345
32346 PR rtl-optimization/60131
32347 * ree.c (get_extended_src_reg): New function.
32348 (combine_reaching_defs): Use it rather than assuming location of REG.
32349 (find_and_remove_re): Verify first operand of extension is
32350 a REG before adding the insns to the copy list.
32351
32352 2014-02-14 Roland McGrath <mcgrathr@google.com>
32353
32354 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32355 * configure: Regenerated.
32356 * config.in: Regenerated.
32357 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32358 instead of ASM_SHORT.
32359
32360 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
32361 Richard Earnshaw <rearnsha@arm.com>
32362
32363 PR rtl-optimization/59535
32364 * lra-constraints.c (process_alt_operands): Encourage alternative
32365 when unassigned pseudo class is superset of the alternative class.
32366 (inherit_reload_reg): Don't inherit when optimizing for code size.
32367 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32368 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32369 modes not less than 4 for Thumb1.
32370
32371 2014-02-14 Kyle McMartin <kyle@redhat.com>
32372
32373 PR pch/60010
32374 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32375
32376 2014-02-14 Richard Biener <rguenther@suse.de>
32377
32378 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32379 (get_frame_arg): Drop the assert with langhook types_compatible_p.
32380 Do not strip INDIRECT_REFs.
32381
32382 2014-02-14 Richard Biener <rguenther@suse.de>
32383
32384 PR lto/60179
32385 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32386 DECL_FUNCTION_SPECIFIC_TARGET.
32387 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32388 * tree-streamer-out.c (pack_ts_target_option): Remove.
32389 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32390 (write_ts_function_decl_tree_pointers): Do not stream
32391 DECL_FUNCTION_SPECIFIC_TARGET.
32392 * tree-streamer-in.c (unpack_ts_target_option): Remove.
32393 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32394 (lto_input_ts_function_decl_tree_pointers): Do not stream
32395 DECL_FUNCTION_SPECIFIC_TARGET.
32396
32397 2014-02-14 Jakub Jelinek <jakub@redhat.com>
32398
32399 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32400 (get_initial_def_for_induction, vectorizable_induction): Ignore
32401 debug stmts when looking for exit_phi.
32402 (vectorizable_live_operation): Fix up condition.
32403
32404 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32405
32406 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32407 nreverse() because it changes the content of original tree list.
32408
32409 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32410
32411 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32412 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32413
32414 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32415
32416 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32417 GNU coding standards.
32418
32419 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32420
32421 PR debug/60152
32422 * dwarf2out.c (gen_subprogram_die): Don't call
32423 add_calling_convention_attribute if subr_die is old_die.
32424
32425 2014-02-13 Sharad Singhai <singhai@google.com>
32426
32427 * doc/optinfo.texi: Fix order of nodes.
32428
32429 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
32430
32431 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32432 operands[2], not operands[3].
32433
32434 2014-02-13 Richard Biener <rguenther@suse.de>
32435
32436 PR bootstrap/59878
32437 * doc/install.texi (ISL): Update recommended version to 0.12.2,
32438 mention the possibility of an in-tree build.
32439 (CLooG): Update recommended version to 0.18.1, mention the
32440 possibility of an in-tree build and clarify that the ISL
32441 bundled with CLooG does not work.
32442
32443 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32444
32445 PR target/43546
32446 * expr.c (compress_float_constant): If x is a hard register,
32447 extend into a pseudo and then move to x.
32448
32449 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
32450
32451 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32452 caused by bad second argument to warning_at() with -mhotpatch and
32453 nested functions (e.g. with gfortran).
32454
32455 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
32456
32457 * opts.c (option_name): Remove "enabled by default" rider.
32458
32459 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
32460
32461 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32462
32463 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
32464 Uros Bizjak <ubizjak@gmail.com>
32465
32466 PR target/60151
32467 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32468 * configure: Regenerated.
32469
32470 2014-02-12 Richard Biener <rguenther@suse.de>
32471
32472 * vec.c (vec_prefix::calculate_allocation): Move as
32473 inline variant to vec.h.
32474 (vec_prefix::calculate_allocation_1): New out-of-line version.
32475 * vec.h (vec_prefix::calculate_allocation_1): Declare.
32476 (vec_prefix::m_has_auto_buf): Rename to ...
32477 (vec_prefix::m_using_auto_storage): ... this.
32478 (vec_prefix::calculate_allocation): Inline the easy cases
32479 and dispatch to calculate_allocation_1 which doesn't need the
32480 prefix address.
32481 (va_heap::reserve): Use gcc_checking_assert.
32482 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32483 m_using_auto_storage.
32484 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32485 member and adjust.
32486 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32487 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32488 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32489
32490 2014-02-12 Richard Biener <rguenther@suse.de>
32491
32492 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32493 when we found a dependence.
32494
32495 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
32496
32497 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32498 common code...
32499 (maybe_fold_stmt): ... into this new function.
32500 * omp-low.c (lower_omp): Update comment.
32501
32502 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32503 last use.
32504
32505 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32506 dereference.
32507
32508 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
32509
32510 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32511 identifiers in comments.
32512 (cortexa53_extra_costs): Likewise.
32513 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32514 (cortexa7_extra_costs): Likewise.
32515 (cortexa12_extra_costs): Likewise.
32516 (cortexa15_extra_costs): Likewise.
32517 (v7m_extra_costs): Likewise.
32518
32519 2014-02-12 Richard Biener <rguenther@suse.de>
32520
32521 PR middle-end/60092
32522 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32523 of posix_memalign being successful.
32524 (lower_stmt): Restrict lowering of posix_memalign to when
32525 -ftree-bit-ccp is enabled.
32526
32527 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32528
32529 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32530 arg_loc.
32531 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32532
32533 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
32534
32535 PR rtl-optimization/60116
32536 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32537 other_insn once the combination has been validated.
32538
32539 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
32540
32541 PR lto/59468
32542 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32543 and wrapper.
32544 * ipa-devirt.c: Include demangle.h
32545 (odr_violation_reported): New static variable.
32546 (add_type_duplicate): Update odr_violations.
32547 (maybe_record_node): Add completep parameter; update it.
32548 (record_target_from_binfo): Add COMPLETEP parameter;
32549 update it as needed.
32550 (possible_polymorphic_call_targets_1): Likewise.
32551 (struct polymorphic_call_target_d): Add nonconstruction_targets;
32552 rename FINAL to COMPLETE.
32553 (record_targets_from_bases): Sanity check we found the binfo;
32554 fix COMPLETEP updating.
32555 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32556 parameter, fix computing of COMPLETEP.
32557 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32558 at LTO time do demangling.
32559 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32560 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32561 parameter.
32562 (gimple_get_virt_method_for_binfo): Likewise.
32563 * gimple-fold.h (gimple_get_virt_method_for_binfo,
32564 gimple_get_virt_method_for_vtable): Update prototypes.
32565
32566 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
32567
32568 PR target/49008
32569 * genautomata.c (add_presence_absence): Fix typo with
32570 {final_}presence_list.
32571
32572 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32573
32574 PR target/60137
32575 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32576 for VSX/Altivec vectors that land in GPR registers.
32577
32578 2014-02-11 Richard Henderson <rth@redhat.com>
32579 Jakub Jelinek <jakub@redhat.com>
32580
32581 PR debug/59776
32582 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32583 around drhs if type conversion to lacc->type is not useless.
32584
32585 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32586
32587 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32588 tuning struct.
32589 (cortex-a57.cortex-a53): Likewise.
32590 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32591
32592 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32593
32594 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32595 arm_restrict_it.
32596
32597 2014-02-11 Renlin Li <Renlin.Li@arm.com>
32598
32599 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32600 add_options_for_arm_vfp3.
32601
32602 2014-02-11 Jeff Law <law@redhat.com>
32603
32604 PR middle-end/54041
32605 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32606 object with an undesirable mode.
32607
32608 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32609
32610 PR libgomp/60107
32611 * config/i386/sol2-9.h: New file.
32612 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32613 *-*-solaris2.9*): Use it.
32614
32615 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32616
32617 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32618 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32619
32620 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32621
32622 * config/microblaze/microblaze.c: Extend mcpu version format
32623
32624 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
32625
32626 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32627
32628 2014-02-10 Richard Henderson <rth@redhat.com>
32629
32630 PR target/59927
32631 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32632 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32633 ms-abi vs -mno-accumulate-outgoing-args.
32634 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32635 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32636 respect to ms-abi.
32637
32638 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
32639
32640 PR middle-end/60080
32641 * cfgexpand.c (expand_asm_operands): Attach source location to
32642 ASM_INPUT rtx objects.
32643 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32644
32645 2014-02-10 Nick Clifton <nickc@redhat.com>
32646
32647 * config/mn10300/mn10300.c (popcount): New function.
32648 (mn10300_expand_prologue): Include saved registers in stack usage
32649 count.
32650
32651 2014-02-10 Jeff Law <law@redhat.com>
32652
32653 PR middle-end/52306
32654 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32655 when changing the SET_DEST of a prior insn to avoid an input reload.
32656
32657 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32658
32659 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32660 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32661 -mcall-openbsd, or -mcall-linux.
32662 (CC1_ENDIAN_BIG_SPEC): Remove.
32663 (CC1_ENDIAN_LITTLE_SPEC): Remove.
32664 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32665 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32666 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32667 and %cc1_endian_default.
32668 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32669
32670 2014-02-10 Richard Biener <rguenther@suse.de>
32671
32672 PR tree-optimization/60115
32673 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32674 MEM_REF handling. Properly verify that the accesses are not
32675 out of the objects bound.
32676
32677 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32678
32679 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32680 coretex to cortex.
32681
32682 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
32683
32684 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32685 proper constants and fix formatting.
32686 (possible_polymorphic_call_targets): Fix formatting.
32687
32688 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
32689 Ilya Tocar <ilya.tocar@intel.com>
32690
32691 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32692 (_mm512_loadu_epi32): Renamed into...
32693 (_mm512_loadu_si512): This.
32694 (_mm512_storeu_epi32): Renamed into...
32695 (_mm512_storeu_si512): This.
32696 (_mm512_maskz_ceil_ps): Removed.
32697 (_mm512_maskz_ceil_pd): Ditto.
32698 (_mm512_maskz_floor_ps): Ditto.
32699 (_mm512_maskz_floor_pd): Ditto.
32700 (_mm512_floor_round_ps): Ditto.
32701 (_mm512_floor_round_pd): Ditto.
32702 (_mm512_ceil_round_ps): Ditto.
32703 (_mm512_ceil_round_pd): Ditto.
32704 (_mm512_mask_floor_round_ps): Ditto.
32705 (_mm512_mask_floor_round_pd): Ditto.
32706 (_mm512_mask_ceil_round_ps): Ditto.
32707 (_mm512_mask_ceil_round_pd): Ditto.
32708 (_mm512_maskz_floor_round_ps): Ditto.
32709 (_mm512_maskz_floor_round_pd): Ditto.
32710 (_mm512_maskz_ceil_round_ps): Ditto.
32711 (_mm512_maskz_ceil_round_pd): Ditto.
32712 (_mm512_expand_pd): Ditto.
32713 (_mm512_expand_ps): Ditto.
32714 * config/i386/i386.c (ix86_builtins): Remove
32715 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32716 (bdesc_args): Ditto.
32717 * config/i386/predicates.md (const1256_operand): New.
32718 (const_1_to_2_operand): Ditto.
32719 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32720 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32721 (*avx512pf_gatherpf<mode>sf): Ditto.
32722 (avx512pf_gatherpf<mode>df): Ditto.
32723 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32724 (*avx512pf_gatherpf<mode>df): Ditto.
32725 (avx512pf_scatterpf<mode>sf): Ditto.
32726 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32727 (*avx512pf_scatterpf<mode>sf): Ditto.
32728 (avx512pf_scatterpf<mode>df): Ditto.
32729 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32730 (*avx512pf_scatterpf<mode>df): Ditto.
32731 (avx512f_expand<mode>): Removed.
32732 (<shift_insn><mode>3<mask_name>): Change predicate type.
32733
32734 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32735
32736 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32737 not at the end of datarefs vector use ordered_remove to avoid
32738 reordering datarefs vector.
32739
32740 PR c/59984
32741 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32742 mark local addressable non-static vars as GOVD_PRIVATE
32743 instead of GOVD_LOCAL.
32744 * omp-low.c (lower_omp_for): Move gimple_bind_vars
32745 and BLOCK_VARS of gimple_bind_block to new_stmt rather
32746 than copying them.
32747
32748 PR middle-end/60092
32749 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32750 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32751 assume_aligned or alloc_align attributes.
32752 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32753 arguments. Handle also assume_aligned and alloc_align attributes.
32754 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
32755 calls to functions with assume_aligned or alloc_align attributes.
32756 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32757
32758 2014-02-08 Terry Guo <terry.guo@arm.com>
32759
32760 * doc/invoke.texi: Document ARM -march=armv7e-m.
32761
32762 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32763
32764 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32765 flag on __cilkrts_rethrow builtin.
32766
32767 PR ipa/60026
32768 * ipa-cp.c (determine_versionability): Fail at -O0
32769 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32770 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32771
32772 Revert:
32773 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32774
32775 PR ipa/60026
32776 * tree-inline.c (copy_forbidden): Fail for
32777 __attribute__((optimize (0))) functions.
32778
32779 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32780
32781 * varpool.c: Include pointer-set.h.
32782 (varpool_remove_unreferenced_decls): Variables in other partitions
32783 will not be output; be however careful to not lose information
32784 about partitioning.
32785
32786 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32787
32788 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32789 lookup in the vtable constructor.
32790
32791 2014-02-07 Jeff Law <law@redhat.com>
32792
32793 PR target/40977
32794 * config/m68k/m68k.md (ashldi_extsi): Turn into a
32795 define_insn_and_split.
32796
32797 * ipa-inline.c (inline_small_functions): Fix typos.
32798
32799 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32800
32801 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32802 (s390_can_use_return_insn): Declare.
32803 * config/s390/s390.h (EPILOGUE_USES): Define.
32804 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32805 instructions.
32806 (s390_chunkify_start): Handle return JUMP_LABELs.
32807 (s390_early_mach): Emit a main_pool instruction on the entry edge.
32808 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32809 (s390_can_use_return_insn): New functions.
32810 (s390_fix_long_loop_prediction): Handle conditional returns.
32811 (TARGET_SET_UP_BY_PROLOGUE): Define.
32812 * config/s390/s390.md (ANY_RETURN): New code iterator.
32813 (*creturn, *csimple_return, return, simple_return): New patterns.
32814
32815 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32816
32817 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32818 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
32819 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
32820 REG_CFA_RESTORE list when deciding not to restore a register.
32821
32822 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32823
32824 * config/s390/s390.c: Include tree-pass.h and context.h.
32825 (s390_early_mach): New function, split out from...
32826 (s390_emit_prologue): ...here.
32827 (pass_data_s390_early_mach): New pass structure.
32828 (pass_s390_early_mach): New class.
32829 (s390_option_override): Create and register early_mach pass.
32830 Move to end of file.
32831
32832 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32833
32834 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32835 to match for the exit block.
32836
32837 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32838
32839 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32840 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32841 Reject misaligned operands.
32842
32843 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32844
32845 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32846
32847 2014-02-07 Richard Biener <rguenther@suse.de>
32848
32849 PR middle-end/60092
32850 * gimple-low.c (lower_builtin_posix_memalign): New function.
32851 (lower_stmt): Call it to lower posix_memalign in a way
32852 to make alignment info accessible.
32853
32854 2014-02-07 Jakub Jelinek <jakub@redhat.com>
32855
32856 PR c++/60082
32857 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32858 __builtin_setjmp_receiver.
32859
32860 2014-02-07 Richard Biener <rguenther@suse.de>
32861
32862 PR middle-end/60092
32863 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32864 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32865 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32866 Handle BUILT_IN_POSIX_MEMALIGN.
32867 (find_func_clobbers): Likewise.
32868 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32869 (call_may_clobber_ref_p_1): Likewise.
32870
32871 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32872
32873 PR ipa/59918
32874 * ipa-devirt.c (record_target_from_binfo): Remove overactive
32875 sanity check.
32876
32877 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32878
32879 PR ipa/59469
32880 * lto-cgraph.c (lto_output_node): Use
32881 symtab_get_symbol_partitioning_class.
32882 (lto_output_varpool_node): likewise.
32883 (symtab_get_symbol_partitioning_class): Move here from
32884 lto/lto-partition.c
32885 * cgraph.h (symbol_partitioning_class): Likewise.
32886 (symtab_get_symbol_partitioning_class): Declare.
32887
32888 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32889
32890 * ggc.h (ggc_internal_cleared_alloc): New macro.
32891 * vec.h (vec_safe_copy): Handle memory stats.
32892 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32893 * target-globals.c (save_target_globals): Likewise.
32894
32895 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32896
32897 PR target/60077
32898 * expr.c (emit_move_resolve_push): Export; be bit more selective
32899 on when to clear alias set.
32900 * expr.h (emit_move_resolve_push): Declare.
32901 * function.h (struct function): Add tail_call_marked.
32902 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32903 * config/i386/i386-protos.h (ix86_expand_push): Remove.
32904 * config/i386/i386.md (TImode move expander): De not call
32905 ix86_expand_push.
32906 (FP push expanders): Preserve memory attributes.
32907 * config/i386/sse.md (push<mode>1): Remove.
32908 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32909 (ix86_expand_push): Remove.
32910 * config/i386/mmx.md (push<mode>1): Remove.
32911
32912 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32913
32914 PR rtl-optimization/60030
32915 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32916 lopart with paradoxical subreg before shifting it up by hprec.
32917
32918 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32919
32920 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32921 Remove extra newline at end of file.
32922 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32923 (arm_issue_rate): Handle cortexa57.
32924 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32925 (cortex-a57.cortex-a53): Likewise.
32926
32927 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32928
32929 PR target/59575
32930 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32931 don't record in REG_FRAME_RELATED_EXPR registers not set in that
32932 bitmask.
32933 (arm_expand_prologue): Adjust all callers.
32934 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32935 info, registers also at the lowest numbered registers side. Use
32936 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32937 XEXP.
32938
32939 PR debug/59992
32940 * var-tracking.c (adjust_mems): Before adding a SET to
32941 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32942
32943 2014-02-06 Alan Modra <amodra@gmail.com>
32944
32945 PR target/60032
32946 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32947 change SDmode to DDmode when lra_in_progress.
32948
32949 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32950
32951 PR middle-end/59150
32952 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32953 free_data_ref on the dr first, and before goto again also set dr
32954 to the next dr. For simd_lane_access, free old datarefs[i] before
32955 overwriting it. For get_vectype_for_scalar_type failure, don't
32956 free_data_ref if simd_lane_access.
32957
32958 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32959
32960 PR target/60062
32961 * tree.h (opts_for_fn): New inline function.
32962 (opt_for_fn): Define.
32963 * config/i386/i386.c (ix86_function_regparm): Use
32964 opt_for_fn (decl, optimize) instead of optimize.
32965
32966 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
32967
32968 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
32969 for SYMBOL_REF in large memory model.
32970
32971 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32972
32973 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
32974 and crypto support.
32975 (cortex-a57): Likewise.
32976 (cortex-a57.cortex-a53): Likewise.
32977
32978 2014-02-06 Yury Gribov <y.gribov@samsung.com>
32979 Kugan Vivekanandarajah <kuganv@linaro.org>
32980
32981 * config/arm/arm.c (arm_vector_alignment_reachable): Check
32982 unaligned_access.
32983 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32984
32985 2014-02-06 Richard Biener <rguenther@suse.de>
32986
32987 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32988 set_loop_copy and initialize_original_copy_tables.
32989
32990 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
32991
32992 * config/aarch64/aarch64-simd.md
32993 (aarch64_ashr_simddi): Change QI to SI.
32994
32995 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32996 Jakub Jelinek <jakub@redhat.com>
32997
32998 PR middle-end/60013
32999 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33000 of the dataflow.
33001
33002 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33003
33004 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33005 CODE_FOR_altivec_vpku[hw]um to
33006 CODE_FOR_altivec_vpku[hw]um_direct.
33007 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33008 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33009 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33010 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33011
33012 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33013
33014 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33015 generation for -maltivec=be.
33016 (altivec_vsumsws): Simplify redundant test.
33017
33018 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33019
33020 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33021 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33022 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33023 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33024 gen_altivec_vpkuwum.
33025 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33026 BYTES_BIG_ENDIAN.
33027 (altivec_vpks<VI_char>ss): Likewise.
33028 (altivec_vpks<VI_char>us): Likewise.
33029 (altivec_vpku<VI_char>us): Likewise.
33030 (altivec_vpku<VI_char>um): Likewise.
33031 (altivec_vpku<VI_char>um_direct): New (copy of
33032 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33033 internal use).
33034 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33035 target is little endian and -maltivec=be is not specified.
33036 (*altivec_vupkhs<VU_char>_direct): New (copy of
33037 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33038 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33039 target is little endian and -maltivec=be is not specified.
33040 (*altivec_vupkls<VU_char>_direct): New (copy of
33041 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33042 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33043 little endian and -maltivec=be is not specified.
33044 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33045 little endian and -maltivec=be is not specified.
33046
33047 2014-02-05 Richard Henderson <rth@redhat.com>
33048
33049 PR debug/52727
33050 * combine-stack-adj.c: Revert r206943.
33051 * sched-int.h (struct deps_desc): Add last_args_size.
33052 * sched-deps.c (init_deps): Initialize it.
33053 (sched_analyze_insn): Add OUTPUT dependencies between insns that
33054 contain REG_ARGS_SIZE notes.
33055
33056 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33057
33058 * lto-cgraph.c (asm_nodes_output): Make global.
33059 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33060 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33061 (driver_handle_option): Handle OPT_fwpa.
33062
33063 2014-02-05 Jakub Jelinek <jakub@redhat.com>
33064
33065 PR ipa/59947
33066 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33067 a comment typo and formatting issue. If odr_hash hasn't been
33068 created, return vNULL and set *completep to false.
33069
33070 PR middle-end/57499
33071 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33072 bb with no successors.
33073
33074 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
33075
33076 PR target/59718
33077 * doc/invoke.texi (-march): Clarify documentation for ARM.
33078 (-mtune): Likewise.
33079 (-mcpu): Likewise.
33080
33081 2014-02-05 Richard Biener <rguenther@suse.de>
33082
33083 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33084 when not vectorizing because of too many alias checks.
33085 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33086 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33087
33088 2014-02-05 Nick Clifton <nickc@redhat.com>
33089
33090 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33091 accept extended registers in any mode when compiling for the MN10300.
33092
33093 2014-02-05 Yury Gribov <y.gribov@samsung.com>
33094
33095 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33096 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33097 sanitization attributes.
33098 (can_inline_edge_p): Likewise.
33099 (sanitize_attrs_match_for_inline_p): New function.
33100
33101 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33102
33103 * ipa-prop.c (detect_type_change): Shor circuit testing of
33104 type changes on THIS pointer.
33105
33106 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
33107
33108 PR target/59777
33109 * config/pa/pa.c (legitimize_tls_address): Return original address
33110 if not passed a SYMBOL_REF rtx.
33111 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33112 addresses.
33113 (pa_emit_move_sequence): Simplify TLS source operands.
33114 (pa_legitimate_constant_p): Reject all TLS constants.
33115 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33116 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33117
33118 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33119
33120 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33121 groups when we know they are controlled by LTO.
33122 * varasm.c (default_binds_local_p_1): If object is in other partition,
33123 it will be resolved locally.
33124
33125 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33126
33127 * config/host-linux.c (linux_gt_pch_use_address): Don't
33128 use SSIZE_MAX because it is not always defined.
33129
33130 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
33131
33132 PR bootstrap/59913
33133 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33134 threshold for pseudo splitting.
33135 (update_ebb_live_info): Process call argument hard registers and
33136 hard registers from insn definition too.
33137 (max_small_class_regs_num): New constant.
33138 (inherit_in_ebb): Update live hard regs through EBBs. Update
33139 reloads_num only for small register classes. Don't split for
33140 outputs of jumps.
33141
33142 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
33143
33144 PR ipa/60058
33145 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33146 is non-null.
33147
33148 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33149
33150 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33151 visibility is safe.
33152
33153 2014-02-04 Marek Polacek <polacek@redhat.com>
33154
33155 * gdbinit.in (pel): Define.
33156
33157 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33158
33159 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33160 behavior.
33161
33162 2014-02-04 Richard Biener <rguenther@suse.de>
33163
33164 PR lto/59723
33165 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33166 in function context local.
33167 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33168 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33169 similar to LTO_imported_decl_ref.
33170
33171 2014-02-04 Jakub Jelinek <jakub@redhat.com>
33172
33173 PR tree-optimization/60002
33174 * cgraphclones.c (build_function_decl_skip_args): Clear
33175 DECL_LANG_SPECIFIC.
33176
33177 PR tree-optimization/60023
33178 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33179 false to gsi_replace.
33180 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33181 has been in some EH region and vec_stmt could throw, add
33182 vec_stmt into the same EH region.
33183 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33184 has no lhs, ignore it.
33185 * internal-fn.c (expand_MASK_LOAD): Likewise.
33186
33187 PR ipa/60026
33188 * tree-inline.c (copy_forbidden): Fail for
33189 __attribute__((optimize (0))) functions.
33190
33191 PR other/58712
33192 * omp-low.c (simd_clone_struct_copy): If from->inbranch
33193 is set, copy one less argument.
33194 (expand_simd_clones): Don't subtract clone_info->inbranch
33195 from simd_clone_struct_alloc argument.
33196
33197 PR rtl-optimization/57915
33198 * recog.c (simplify_while_replacing): If all unary/binary/relational
33199 operation arguments are constant, attempt to simplify those.
33200
33201 PR middle-end/59261
33202 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33203 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33204
33205 2014-02-04 Richard Biener <rguenther@suse.de>
33206
33207 PR tree-optimization/60012
33208 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33209 TBAA disambiguation to all DDRs.
33210
33211 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33212
33213 PR target/59788
33214 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33215 (LINK_SPEC): Use it for -shared, -shared-libgcc.
33216
33217 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33218
33219 PR ipa/59882
33220 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33221
33222 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33223
33224 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33225 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33226
33227 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33228
33229 PR ipa/59831
33230 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33231 to figure out targets of polymorphic calls with known decl.
33232 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33233 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33234 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33235 (get_polymorphic_call_info): ... here.
33236 (get_polymorphic_call_info_from_invariant): New function.
33237
33238 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33239
33240 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33241 lookup via vtable pointer; check for type consistency
33242 and turn inconsitent facts into UNREACHABLE.
33243 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33244 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33245 type inconsistent querries; return UNREACHABLE instead.
33246
33247 2014-02-03 Richard Henderson <rth@twiddle.net>
33248
33249 PR tree-opt/59924
33250 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33251 already processed this node.
33252 (normalize_one_pred_1): Pass along mark_set.
33253 (normalize_one_pred): Create and destroy a pointer_set_t.
33254 (normalize_one_pred_chain): Likewise.
33255
33256 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
33257
33258 PR gcov-profile/58602
33259 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33260
33261 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33262
33263 PR ipa/59831
33264 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33265 -fno-devirtualize; try to devirtualize by the knowledge of
33266 virtual table pointer given by aggregate propagation.
33267 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33268 (ipa_print_node_jump_functions): Dump also offset that
33269 is relevant for polymorphic calls.
33270 (determine_known_aggregate_parts): Add arg_type parameter; use it
33271 instead of determining the type from pointer type.
33272 (ipa_compute_jump_functions_for_edge): Update call of
33273 determine_known_aggregate_parts.
33274 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33275 (gimple_get_virt_method_for_binfo): ... here; simplify using
33276 vtable_pointer_value_to_vtable.
33277 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33278 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33279 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33280 (vtable_pointer_value_to_vtable): Break out from ...; handle also
33281 POINTER_PLUS_EXPR.
33282 (vtable_pointer_value_to_binfo): ... here.
33283 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33284
33285 2014-02-03 Teresa Johnson <tejohnson@google.com>
33286
33287 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33288 redef of outer loop index variable.
33289
33290 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
33291
33292 PR c++/53017
33293 PR c++/59211
33294 * doc/extend.texi (Function Attributes): Typo.
33295
33296 2014-02-03 Cong Hou <congh@google.com>
33297
33298 PR tree-optimization/60000
33299 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33300 if the vectorized statement is a store. A store statement can only
33301 appear at the end of pattern statements.
33302
33303 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33304
33305 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33306 (ix86_option_override_internal): Default long double to 64-bit for
33307 32-bit Bionic and to 128-bit for 64-bit Bionic.
33308
33309 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33310 TARGET_LONG_DOUBLE_128 is true.
33311 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33312
33313 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33314 (mlong-double-64): Negate -mlong-double-128.
33315 (mlong-double-128): New option.
33316
33317 * config/i386/i386-c.c (ix86_target_macros): Define
33318 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33319
33320 * doc/invoke.texi: Document -mlong-double-128.
33321
33322 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33323
33324 PR rtl-optimization/60024
33325 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33326
33327 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
33328
33329 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33330
33331 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33332
33333 PR rtl-optimization/57662
33334 * sel-sched.c (code_motion_path_driver): Do not mark already not
33335 existing blocks in the visiting bitmap.
33336
33337 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33338
33339 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33340 on the insn being emitted.
33341
33342 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
33343 Will Deacon <will.deacon@arm.com>
33344
33345 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33346
33347 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33348
33349 * config/arm/arm-tables.opt: Regenerate.
33350
33351 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33352
33353 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33354 for vector types other than V16QImode.
33355 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33356 define_expand, and call altivec_expand_vec_perm_le when producing
33357 code with little endian element order.
33358 (*altivec_vperm_<mode>_internal): New insn having previous
33359 behavior of altivec_vperm_<mode>.
33360 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33361 altivec_expand_vec_perm_le when producing code with little endian
33362 element order.
33363 (*altivec_vperm_<mode>_uns_internal): New insn having previous
33364 behavior of altivec_vperm_<mode>_uns.
33365
33366 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33367
33368 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33369 (altivec_vsumsws): Add handling for -maltivec=be with a little
33370 endian target.
33371 (altivec_vsumsws_direct): New.
33372 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33373 gen_altivec_vsumsws.
33374
33375 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33376
33377 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33378 vtable_pointer_value_to_binfo): New functions.
33379 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33380 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33381
33382 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
33383
33384 * config/nios2/nios2.md (load_got_register): Initialize GOT
33385 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33386 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33387
33388 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33389
33390 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33391 preserverd by passthrough, do not propagate the type.
33392
33393 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33394
33395 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33396 (mips_atomic_assign_expand_fenv): New function.
33397 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33398
33399 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33400
33401 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33402 (__builtin_mips_set_fcsr): Likewise.
33403 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33404 MIPS_USI_FTYPE_VOID.
33405 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33406 (mips16_expand_set_fcsr): Likewise.
33407 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33408 (mips16_set_fcsr_stub): Likewise.
33409 (mips16_get_fcsr_one_only_stub): New class.
33410 (mips16_set_fcsr_one_only_stub): Likewise.
33411 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33412 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33413 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33414 (hard_float): New availability predicate.
33415 (mips_builtins): Add get_fcsr and set_fcsr.
33416 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33417 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33418 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33419 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33420 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33421 patterns.
33422
33423 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33424
33425 * config/mips/mips.c (mips_one_only_stub): New class.
33426 (mips_need_mips16_rdhwr_p): Replace with...
33427 (mips16_rdhwr_stub): ...this new variable.
33428 (mips16_stub_call_address): New function.
33429 (mips16_rdhwr_one_only_stub): New class.
33430 (mips_expand_thread_pointer): Use mips16_stub_call_address.
33431 (mips_output_mips16_rdhwr): Delete.
33432 (mips_finish_stub): New function.
33433 (mips_code_end): Use it to handle rdhwr stubs.
33434
33435 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
33436
33437 PR target/60017
33438 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33439 when calculating size of integer atomic types.
33440
33441 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
33442
33443 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33444
33445 2014-02-01 Jakub Jelinek <jakub@redhat.com>
33446
33447 PR tree-optimization/60003
33448 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33449 * profile.c (branch_prob): Use gimple_call_builtin_p
33450 to check for BUILT_IN_SETJMP_RECEIVER.
33451 * tree-inline.c (copy_bb): Call notice_special_calls.
33452
33453 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
33454
33455 PR bootstrap/59985
33456 * lra-constraints.c (process_alt_operands): Update reload_sum only
33457 on the first pass.
33458
33459 2014-01-31 Richard Henderson <rth@redhat.com>
33460
33461 PR middle-end/60004
33462 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33463 until after else_eh is processed.
33464
33465 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33466
33467 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33468 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33469 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33470 in smmintrin.h, remove them.
33471 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33472 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33473 * config/i386/i386.md (ROUND_SAE): Fix value.
33474 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33475 (const48_operand): New.
33476 * config/i386/subst.md (round), (round_expand): Use
33477 const_4_or_8_to_11_operand.
33478 (round_saeonly), (round_saeonly_expand): Use const48_operand.
33479
33480 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33481
33482 * config/i386/constraints.md (Yk): Swap meaning with k.
33483 * config/i386/i386.md (movhi_internal): Change Yk to k.
33484 (movqi_internal): Ditto.
33485 (*k<logic><mode>): Ditto.
33486 (*andhi_1): Ditto.
33487 (*andqi_1): Ditto.
33488 (kandn<mode>): Ditto.
33489 (*<code>hi_1): Ditto.
33490 (*<code>qi_1): Ditto.
33491 (kxnor<mode>): Ditto.
33492 (kortestzhi): Ditto.
33493 (kortestchi): Ditto.
33494 (kunpckhi): Ditto.
33495 (*one_cmplhi2_1): Ditto.
33496 (*one_cmplqi2_1): Ditto.
33497 * config/i386/sse.md (): Change k to Yk.
33498 (avx512f_load<mode>_mask): Ditto.
33499 (avx512f_blendm<mode>): Ditto.
33500 (avx512f_store<mode>_mask): Ditto.
33501 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33502 (avx512f_storedqu<mode>_mask): Ditto.
33503 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33504 Ditto.
33505 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33506 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33507 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33508 (avx512f_maskcmp<mode>3): Ditto.
33509 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33510 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33511 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33512 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33513 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33514 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33515 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33516 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33517 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33518 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33519 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33520 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33521 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33522 (vec_extract_lo_<mode>_maskm): Ditto.
33523 (vec_extract_hi_<mode>_maskm): Ditto.
33524 (avx512f_vternlog<mode>_mask): Ditto.
33525 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33526 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33527 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33528 (avx512f_<code>v8div16qi2_mask): Ditto.
33529 (avx512f_<code>v8div16qi2_mask_store): Ditto.
33530 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33531 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33532 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33533 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33534 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33535 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33536 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33537 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33538 (avx512cd_maskb_vec_dupv8di): Ditto.
33539 (avx512cd_maskw_vec_dupv16si): Ditto.
33540 (avx512f_vpermi2var<mode>3_maskz): Ditto.
33541 (avx512f_vpermi2var<mode>3_mask): Ditto.
33542 (avx512f_vpermi2var<mode>3_mask): Ditto.
33543 (avx512f_vpermt2var<mode>3_maskz): Ditto.
33544 (*avx512f_gathersi<mode>): Ditto.
33545 (*avx512f_gathersi<mode>_2): Ditto.
33546 (*avx512f_gatherdi<mode>): Ditto.
33547 (*avx512f_gatherdi<mode>_2): Ditto.
33548 (*avx512f_scattersi<mode>): Ditto.
33549 (*avx512f_scatterdi<mode>): Ditto.
33550 (avx512f_compress<mode>_mask): Ditto.
33551 (avx512f_compressstore<mode>_mask): Ditto.
33552 (avx512f_expand<mode>_mask): Ditto.
33553 * config/i386/subst.md (mask): Change k to Yk.
33554 (mask_scalar_merge): Ditto.
33555 (sd): Ditto.
33556
33557 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
33558
33559 * doc/extend.texi (Vector Extensions): Document ?: in C++.
33560
33561 2014-01-31 Richard Biener <rguenther@suse.de>
33562
33563 PR middle-end/59990
33564 * builtins.c (fold_builtin_memory_op): Make sure to not
33565 use a floating-point mode or a boolean or enumeral type for
33566 the copy operation.
33567
33568 2014-01-30 DJ Delorie <dj@redhat.com>
33569
33570 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33571 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33572 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33573 whenever main() has an epilogue.
33574
33575 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33576
33577 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33578 unused variable "field".
33579 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33580 (vsx_mergeh_<mode>): Likewise.
33581 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33582 (altivec_vmrghh): Likewise.
33583 (altivec_vmrghw): Likewise.
33584 (altivec_vmrglb): Likewise.
33585 (altivec_vmrglh): Likewise.
33586 (altivec_vmrglw): Likewise.
33587 (altivec_vspltb): Add missing uses.
33588 (altivec_vsplth): Likewise.
33589 (altivec_vspltw): Likewise.
33590 (altivec_vspltsf): Likewise.
33591
33592 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33593
33594 PR target/59923
33595 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33596 frame related instructions.
33597
33598 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
33599
33600 PR rtl-optimization/59959
33601 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33602 any reload of register whose subreg is invalid.
33603
33604 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33605
33606 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33607 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33608 Add missing return type - void.
33609
33610 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33611
33612 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33613 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33614 remove element index adjustment for endian (now handled in vsx.md
33615 and altivec.md).
33616 (altivec_expand_vec_perm_const): Use
33617 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33618 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33619 (vsx_xxspltw_<mode>): Adjust element index for little endian.
33620 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33621 define_expand and a new define_insn *altivec_vspltb_internal;
33622 adjust for -maltivec=be on a little endian target.
33623 (altivec_vspltb_direct): New.
33624 (altivec_vsplth): Divide into a define_expand and a new
33625 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33626 little endian target.
33627 (altivec_vsplth_direct): New.
33628 (altivec_vspltw): Divide into a define_expand and a new
33629 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33630 little endian target.
33631 (altivec_vspltw_direct): New.
33632 (altivec_vspltsf): Divide into a define_expand and a new
33633 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33634 a little endian target.
33635
33636 2014-01-30 Richard Biener <rguenther@suse.de>
33637
33638 PR tree-optimization/59993
33639 * tree-ssa-forwprop.c (associate_pointerplus): Check we
33640 can propagate form the earlier stmt and avoid the transform
33641 when the intermediate result is needed.
33642
33643 2014-01-30 Alangi Derick <alangiderick@gmail.com>
33644
33645 * README.Portability: Fix typo.
33646
33647 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
33648
33649 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33650 comparison_operator with ordered_comparison_operator.
33651
33652 2014-01-30 Nick Clifton <nickc@redhat.com>
33653
33654 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33655 Rename to mn10300_store_multiple_regs.
33656 * config/mn10300/mn10300.c: Likewise.
33657 * config/mn10300/mn10300.md (store_movm): Fix typo: call
33658 store_multiple_regs.
33659 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33660 Call mn10300_store_multiple_regs.
33661
33662 2014-01-30 Nick Clifton <nickc@redhat.com>
33663 DJ Delorie <dj@redhat.com>
33664
33665 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33666 %fp 2 to keep registers after it properly word-aligned.
33667 (rl78_alloc_physical_registers_umul): Handle the case where both
33668 input operands are the same.
33669
33670 2014-01-30 Richard Biener <rguenther@suse.de>
33671
33672 PR tree-optimization/59903
33673 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33674 check properly.
33675
33676 2014-01-30 Jason Merrill <jason@redhat.com>
33677
33678 PR c++/59633
33679 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33680
33681 PR c++/59645
33682 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33683
33684 2014-01-30 Richard Biener <rguenther@suse.de>
33685
33686 PR tree-optimization/59951
33687 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33688
33689 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
33690
33691 PR target/59784
33692 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33693 SFmode to DFmode case.
33694
33695 2014-01-29 DJ Delorie <dj@redhat.com>
33696
33697 * config/msp430/msp430.opt (-minrt): New.
33698 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33699 if -minrt given.
33700 (ENDFILE_SPEC): Likewise.
33701
33702 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
33703
33704 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33705 (estimate_function_body_sizes): Use it.
33706
33707 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
33708
33709 PR c++/58561
33710 * dwarf2out.c (is_cxx_auto): New.
33711 (is_base_type): Use it.
33712 (gen_type_die_with_usage): Likewise.
33713
33714 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33715
33716 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
33717 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33718 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33719 -maltivec=be with LE targets.
33720 (vsx_mergeh_<mode>): Likewise.
33721 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33722 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33723 (altivec_vmrghb): Replace with define_expand and new
33724 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33725 (altivec_vmrghb_direct): New define_insn.
33726 (altivec_vmrghh): Replace with define_expand and new
33727 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33728 (altivec_vmrghh_direct): New define_insn.
33729 (altivec_vmrghw): Replace with define_expand and new
33730 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33731 (altivec_vmrghw_direct): New define_insn.
33732 (*altivec_vmrghsf): Adjust for endianness.
33733 (altivec_vmrglb): Replace with define_expand and new
33734 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33735 (altivec_vmrglb_direct): New define_insn.
33736 (altivec_vmrglh): Replace with define_expand and new
33737 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33738 (altivec_vmrglh_direct): New define_insn.
33739 (altivec_vmrglw): Replace with define_expand and new
33740 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33741 (altivec_vmrglw_direct): New define_insn.
33742 (*altivec_vmrglsf): Adjust for endianness.
33743 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33744 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33745 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33746 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33747 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33748 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33749 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33750 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33751
33752 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
33753
33754 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33755 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33756 whitespace.
33757
33758 2014-01-29 Richard Biener <rguenther@suse.de>
33759
33760 PR tree-optimization/58742
33761 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33762 associate_pointerplus_align.
33763 (associate_pointerplus_diff): New function.
33764 (associate_pointerplus): Likewise. Call associate_pointerplus_align
33765 and associate_pointerplus_diff.
33766
33767 2014-01-29 Richard Biener <rguenther@suse.de>
33768
33769 * lto-streamer.h (LTO_major_version): Bump to 3.
33770 (LTO_minor_version): Reset to 0.
33771
33772 2014-01-29 Renlin Li <Renlin.Li@arm.com>
33773
33774 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33775 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33776 (arm_file_start): Generate correct asm header for armv7ve.
33777 * config/arm/bpabi.h: Add multilib support for armv7ve.
33778 * config/arm/driver-arm.c: Change the architectures of cortex-a7
33779 and cortex-a15 to armv7ve.
33780 * config/arm/t-aprofile: Add multilib support for armv7ve.
33781 * doc/invoke.texi: Document -march=armv7ve.
33782
33783 2014-01-29 Richard Biener <rguenther@suse.de>
33784
33785 PR tree-optimization/58742
33786 * tree-ssa-forwprop.c (associate_plusminus): Return true
33787 if we changed sth, defer EH cleanup to ...
33788 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
33789 (simplify_mult): New function.
33790
33791 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33792
33793 PR middle-end/59917
33794 PR tree-optimization/59920
33795 * tree.c (build_common_builtin_nodes): Remove
33796 __builtin_setjmp_dispatcher initialization.
33797 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33798 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33799 instead of gsi_after_labels + manually skipping debug stmts.
33800 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33801 ignore bbs with IFN_ABNORMAL_DISPATCHER.
33802 * tree-inline.c (copy_edges_for_bb): Remove
33803 can_make_abnormal_goto argument, instead add abnormal_goto_dest
33804 argument. Ignore computed_goto_p stmts. Don't call
33805 make_abnormal_goto_edges. If a call might need abnormal edges
33806 for non-local gotos, see if it already has an edge to
33807 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33808 with true argument, don't do anything then, otherwise add
33809 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33810 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33811 caller.
33812 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33813 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33814 (lower_stmt): Don't set data->calls_builtin_setjmp.
33815 (lower_builtin_setjmp): Adjust comment.
33816 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33817 * tree-cfg.c (found_computed_goto): Remove.
33818 (factor_computed_gotos): Remove.
33819 (make_goto_expr_edges): Return bool, true for computed gotos.
33820 Don't call make_abnormal_goto_edges.
33821 (build_gimple_cfg): Don't set found_computed_goto, don't call
33822 factor_computed_gotos.
33823 (computed_goto_p): No longer static.
33824 (make_blocks): Don't set found_computed_goto.
33825 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33826 (make_edges): If make_goto_expr_edges returns true, push bb
33827 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33828 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33829 vector. Record mapping between bbs and OpenMP regions if there
33830 are any, adjust make_gimple_omp_edges caller. Call
33831 handle_abnormal_edges.
33832 (make_abnormal_goto_edges): Remove.
33833 * tree-cfg.h (make_abnormal_goto_edges): Remove.
33834 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33835 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33836 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33837 * internal-fn.def (ABNORMAL_DISPATCHER): New.
33838 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33839 filling *region also set *region_idx to (*region)->entry->index.
33840
33841 PR other/58712
33842 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33843 For REGs set ORIGINAL_REGNO.
33844
33845 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
33846
33847 * doc/md.texi: Mention that a target shouldn't implement
33848 vec_widen_(s|u)mul_even/odd pair if it is less efficient
33849 than hi/lo pair.
33850
33851 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33852
33853 PR tree-optimization/59594
33854 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33855 a copy of the datarefs vector rather than the vector itself.
33856
33857 2014-01-28 Jason Merrill <jason@redhat.com>
33858
33859 PR c++/53756
33860 * dwarf2out.c (auto_die): New static.
33861 (gen_type_die_with_usage): Handle C++1y 'auto'.
33862 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33863 on definition.
33864
33865 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
33866
33867 PR target/59672
33868 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33869 (SPEC_X32): Likewise.
33870 (SPEC_64): Likewise.
33871 * config/i386/i386.c (ix86_option_override_internal): Turn off
33872 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33873 for TARGET_16BIT.
33874 (x86_file_start): Output .code16gcc for TARGET_16BIT.
33875 * config/i386/i386.h (TARGET_16BIT): New macro.
33876 (TARGET_16BIT_P): Likewise.
33877 * config/i386/i386.opt: Add m16.
33878 * doc/invoke.texi: Document -m16.
33879
33880 2014-01-28 Jakub Jelinek <jakub@redhat.com>
33881
33882 PR preprocessor/59935
33883 * input.c (location_get_source_line): Bail out on when line number
33884 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33885
33886 2014-01-28 Richard Biener <rguenther@suse.de>
33887
33888 PR tree-optimization/58742
33889 * tree-ssa-forwprop.c (associate_plusminus): Handle
33890 pointer subtraction of the form (T)(P + A) - (T)P.
33891
33892 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33893
33894 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33895 at const_int_cost.
33896
33897 2014-01-28 Richard Biener <rguenther@suse.de>
33898
33899 Revert
33900 2014-01-28 Richard Biener <rguenther@suse.de>
33901
33902 PR rtl-optimization/45364
33903 PR rtl-optimization/59890
33904 * var-tracking.c (local_get_addr_clear_given_value): Handle
33905 already cleared slot.
33906 (val_reset): Handle not allocated local_get_addr_cache.
33907 (vt_find_locations): Use post-order on the inverted CFG.
33908
33909 2014-01-28 Richard Biener <rguenther@suse.de>
33910
33911 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33912
33913 2014-01-28 Richard Biener <rguenther@suse.de>
33914
33915 PR rtl-optimization/45364
33916 PR rtl-optimization/59890
33917 * var-tracking.c (local_get_addr_clear_given_value): Handle
33918 already cleared slot.
33919 (val_reset): Handle not allocated local_get_addr_cache.
33920 (vt_find_locations): Use post-order on the inverted CFG.
33921
33922 2014-01-28 Alan Modra <amodra@gmail.com>
33923
33924 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33925 * configure.ac <recursive call for build != host>: Define
33926 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33927 and LD_FOR_BUILD too.
33928 * configure: Regenerate.
33929
33930 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
33931
33932 * config/i386/i386.c (get_builtin_code_for_version): Separate
33933 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33934 Broadwell from Haswell.
33935
33936 2014-01-27 Steve Ellcey <sellcey@mips.com>
33937
33938 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33939 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33940 * config/mips/mips.c (mips_option_override): Change setting
33941 of TARGET_DSP.
33942 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33943 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33944 Change from Mask to Var.
33945
33946 2014-01-27 Jeff Law <law@redhat.com>
33947
33948 * ipa-inline.c (inline_small_functions): Fix typo.
33949
33950 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
33951
33952 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33953 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33954 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33955 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33956 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33957 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33958 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33959 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33960 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33961 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33962 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
33963 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
33964 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
33965 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
33966 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
33967 (_mm512_storeu_epi64): Ditto.
33968 (_mm512_cmpge_epi32_mask): Ditto.
33969 (_mm512_cmpge_epu32_mask): Ditto.
33970 (_mm512_cmpge_epi64_mask): Ditto.
33971 (_mm512_cmpge_epu64_mask): Ditto.
33972 (_mm512_cmple_epi32_mask): Ditto.
33973 (_mm512_cmple_epu32_mask): Ditto.
33974 (_mm512_cmple_epi64_mask): Ditto.
33975 (_mm512_cmple_epu64_mask): Ditto.
33976 (_mm512_cmplt_epi32_mask): Ditto.
33977 (_mm512_cmplt_epu32_mask): Ditto.
33978 (_mm512_cmplt_epi64_mask): Ditto.
33979 (_mm512_cmplt_epu64_mask): Ditto.
33980 (_mm512_cmpneq_epi32_mask): Ditto.
33981 (_mm512_cmpneq_epu32_mask): Ditto.
33982 (_mm512_cmpneq_epi64_mask): Ditto.
33983 (_mm512_cmpneq_epu64_mask): Ditto.
33984 (_mm512_expand_pd): Ditto.
33985 (_mm512_expand_ps): Ditto.
33986 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33987 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33988 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33989 * config/i386/i386.c (ix86_builtins): Add
33990 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33991 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33992 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33993 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33994 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33995 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33996 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33997 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33998 IX86_BUILTIN_PMOVUSQW512_MEM.
33999 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34000 __builtin_ia32_pmovsqd512mem_mask,
34001 __builtin_ia32_pmovqd512mem_mask,
34002 __builtin_ia32_pmovusqw512mem_mask,
34003 __builtin_ia32_pmovsqw512mem_mask,
34004 __builtin_ia32_pmovqw512mem_mask,
34005 __builtin_ia32_pmovusdw512mem_mask,
34006 __builtin_ia32_pmovsdw512mem_mask,
34007 __builtin_ia32_pmovdw512mem_mask,
34008 __builtin_ia32_pmovqb512mem_mask,
34009 __builtin_ia32_pmovusqb512mem_mask,
34010 __builtin_ia32_pmovsqb512mem_mask,
34011 __builtin_ia32_pmovusdb512mem_mask,
34012 __builtin_ia32_pmovsdb512mem_mask,
34013 __builtin_ia32_pmovdb512mem_mask.
34014 (bdesc_args): Add __builtin_ia32_expanddf512,
34015 __builtin_ia32_expandsf512.
34016 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34017 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34018 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34019 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34020 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34021 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34022 (avx512f_<code>v8div16qi2_mask_store): This.
34023 (avx512f_expand<mode>): New.
34024
34025 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
34026
34027 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34028 New.
34029 (_mm512_mask_prefetch_i64gather_pd): Ditto.
34030 (_mm512_prefetch_i32scatter_pd): Ditto.
34031 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34032 (_mm512_prefetch_i64scatter_pd): Ditto.
34033 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34034 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34035 (_mm512_mask_prefetch_i64gather_ps): Ditto.
34036 (_mm512_prefetch_i32scatter_ps): Ditto.
34037 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34038 (_mm512_prefetch_i64scatter_ps): Ditto.
34039 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34040 * config/i386/i386-builtin-types.def: Define
34041 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34042 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34043 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34044 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34045 IX86_BUILTIN_SCATTERPFQPD.
34046 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34047 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34048 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34049 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34050 __builtin_ia32_scatterpfqps.
34051 (ix86_expand_builtin): Expand new built-ins.
34052 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34053 fix memory access data type.
34054 (*avx512pf_gatherpf<mode>_mask): Ditto.
34055 (*avx512pf_gatherpf<mode>): Ditto.
34056 (avx512pf_scatterpf<mode>): Ditto.
34057 (*avx512pf_scatterpf<mode>_mask): Ditto.
34058 (*avx512pf_scatterpf<mode>): Ditto.
34059 (GATHER_SCATTER_SF_MEM_MODE): New.
34060 (avx512pf_gatherpf<mode>df): Ditto.
34061 (*avx512pf_gatherpf<mode>df_mask): Ditto.
34062 (*avx512pf_scatterpf<mode>df): Ditto.
34063
34064 2014-01-27 Jakub Jelinek <jakub@redhat.com>
34065
34066 PR bootstrap/59934
34067 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34068 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34069 reached.
34070
34071 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34072
34073 * common/config/arm/arm-common.c
34074 (arm_rewrite_mcpu): Handle multiple names.
34075 * config/arm/arm.h
34076 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34077
34078 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34079
34080 * gimple-builder.h (create_gimple_tmp): Delete.
34081
34082 2014-01-27 Christian Bruel <christian.bruel@st.com>
34083
34084 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34085 words comparisons.
34086
34087 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
34088
34089 * config/pa/pa.md (call): Generate indirect long calls to non-local
34090 functions when outputing 32-bit code.
34091 (call_value): Likewise except for special call to buggy powf function.
34092
34093 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34094 portable runtime and PIC indirect calls.
34095 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34096 and PIC call sequences. Use ldo instead of blr to set return register
34097 in PIC call sequence.
34098
34099 2014-01-25 Walter Lee <walt@tilera.com>
34100
34101 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34102 avoid clobbering a live register.
34103
34104 2014-01-25 Walter Lee <walt@tilera.com>
34105
34106 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34107 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34108 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34109 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34110
34111 2014-01-25 Walter Lee <walt@tilera.com>
34112
34113 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34114 arguments on even registers.
34115 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34116 STACK_BOUNDARY.
34117 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34118 (BIGGEST_ALIGNMENT): Ditto.
34119 (BIGGEST_FIELD_ALIGNMENT): Ditto.
34120
34121 2014-01-25 Walter Lee <walt@tilera.com>
34122
34123 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34124 insns before bundling.
34125 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34126
34127 2014-01-25 Walter Lee <walt@tilera.com>
34128
34129 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34130 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34131 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34132
34133 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34134
34135 * config/mips/constraints.md (kl): Delete.
34136 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34137 define expands, using...
34138 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34139 instructions for MIPS16.
34140 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34141 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34142
34143 2014-01-25 Walter Lee <walt@tilera.com>
34144
34145 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34146 (clzdi2): Ditto.
34147 (ffsdi2): Ditto.
34148
34149 2014-01-25 Walter Lee <walt@tilera.com>
34150
34151 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34152 (TARGET_EXPAND_TO_RTL_HOOK): Define.
34153
34154 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34155
34156 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34157 Handle XOR.
34158
34159 2014-01-25 Jakub Jelinek <jakub@redhat.com>
34160
34161 * print-rtl.c (in_call_function_usage): New var.
34162 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34163 EXPR_LIST mode as mode and not as reg note name.
34164
34165 PR middle-end/59561
34166 * cfgloopmanip.c (copy_loop_info): If
34167 loop->warned_aggressive_loop_optimizations, make sure
34168 the flag is set in target loop too.
34169
34170 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
34171
34172 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34173 flag_cilkplus.
34174 * builtins.def: Likewise.
34175 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34176 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34177 * ira.c (ira_setup_eliminable_regset): Likewise.
34178 * omp-low.c (gate_expand_omp): Likewise.
34179 (execute_lower_omp): Likewise.
34180 (diagnose_sb_0): Likewise.
34181 (gate_diagnose_omp_blocks): Likewise.
34182 (simd_clone_clauses_extract): Likewise.
34183 (gate): Likewise.
34184
34185 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34186
34187 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34188 correction for little endian...
34189 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34190 here.
34191
34192 2014-01-24 Jeff Law <law@redhat.com>
34193
34194 PR tree-optimization/59919
34195 * tree-vrp.c (find_assert_locations_1): Do not register asserts
34196 for non-returning calls.
34197
34198 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
34199
34200 * common/config/aarch64/aarch64-common.c
34201 (aarch64_rewrite_mcpu): Handle multiple names.
34202 * config/aarch64/aarch64.h
34203 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34204
34205 2014-01-24 Dodji Seketeli <dodji@redhat.com>
34206
34207 * input.c (add_file_to_cache_tab): Handle the case where fopen
34208 returns NULL.
34209
34210 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
34211
34212 PR target/59929
34213 * config/i386/i386.md (pushsf splitter): Get stack adjustment
34214 from push operand if code of push isn't PRE_DEC.
34215
34216 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
34217
34218 PR target/59909
34219 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34220 -mquad-memory-atomic. Update -mquad-memory documentation to say
34221 it is only used for non-atomic loads/stores.
34222
34223 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34224 -mquad-memory or -mquad-memory-atomic switches.
34225
34226 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34227 -mquad-memory-atomic to ISA 2.07 support.
34228
34229 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34230 to separate support of normal quad word memory operations (ldq, stq)
34231 from the atomic quad word memory operations.
34232
34233 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34234 support to separate non-atomic quad word operations from atomic
34235 quad word operations. Disable non-atomic quad word operations in
34236 little endian mode so that we don't have to swap words after the
34237 load and before the store.
34238 (quad_load_store_p): Add comment about atomic quad word support.
34239 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34240 options printed with -mdebug=reg.
34241
34242 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34243 -mquad-memory-atomic as the test for whether we have quad word
34244 atomic instructions.
34245 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34246 or -mp8-vector are used, allow byte/half-word atomic operations.
34247
34248 * config/rs6000/sync.md (load_lockedti): Insure that the address
34249 is a proper indexed or indirect address for the lqarx instruction.
34250 On little endian systems, swap the hi/lo registers after the lqarx
34251 instruction.
34252 (load_lockedpti): Use indexed_or_indirect_operand predicate to
34253 insure the address is valid for the lqarx instruction.
34254 (store_conditionalti): Insure that the address is a proper indexed
34255 or indirect address for the stqcrx. instruction. On little endian
34256 systems, swap the hi/lo registers before doing the stqcrx.
34257 instruction.
34258 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34259 insure the address is valid for the stqcrx. instruction.
34260
34261 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34262 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34263 type of quad memory support is available.
34264
34265 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
34266
34267 PR regression/59915
34268 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34269 there is a danger of looping.
34270
34271 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
34272
34273 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34274 force flag_ira_loop_pressure if set via command line.
34275
34276 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34277
34278 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34279 (ashr_simd): New builtin handling DI mode.
34280 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34281 (aarch64_sshr_simddi): New match pattern.
34282 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34283 (vshrd_n_s64): Likewise.
34284 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34285
34286 2014-01-23 Nick Clifton <nickc@redhat.com>
34287
34288 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34289 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34290 favour of mcu specific scripts.
34291 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34292 430x multilibs.
34293
34294 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34295 Alex Velenko <Alex.Velenko@arm.com>
34296
34297 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34298 (vaddv_s16): Likewise.
34299 (vaddv_s32): Likewise.
34300 (vaddv_u8): Likewise.
34301 (vaddv_u16): Likewise.
34302 (vaddv_u32): Likewise.
34303 (vaddvq_s8): Likewise.
34304 (vaddvq_s16): Likewise.
34305 (vaddvq_s32): Likewise.
34306 (vaddvq_s64): Likewise.
34307 (vaddvq_u8): Likewise.
34308 (vaddvq_u16): Likewise.
34309 (vaddvq_u32): Likewise.
34310 (vaddvq_u64): Likewise.
34311 (vaddv_f32): Likewise.
34312 (vaddvq_f32): Likewise.
34313 (vaddvq_f64): Likewise.
34314 (vmaxv_f32): Likewise.
34315 (vmaxv_s8): Likewise.
34316 (vmaxv_s16): Likewise.
34317 (vmaxv_s32): Likewise.
34318 (vmaxv_u8): Likewise.
34319 (vmaxv_u16): Likewise.
34320 (vmaxv_u32): Likewise.
34321 (vmaxvq_f32): Likewise.
34322 (vmaxvq_f64): Likewise.
34323 (vmaxvq_s8): Likewise.
34324 (vmaxvq_s16): Likewise.
34325 (vmaxvq_s32): Likewise.
34326 (vmaxvq_u8): Likewise.
34327 (vmaxvq_u16): Likewise.
34328 (vmaxvq_u32): Likewise.
34329 (vmaxnmv_f32): Likewise.
34330 (vmaxnmvq_f32): Likewise.
34331 (vmaxnmvq_f64): Likewise.
34332 (vminv_f32): Likewise.
34333 (vminv_s8): Likewise.
34334 (vminv_s16): Likewise.
34335 (vminv_s32): Likewise.
34336 (vminv_u8): Likewise.
34337 (vminv_u16): Likewise.
34338 (vminv_u32): Likewise.
34339 (vminvq_f32): Likewise.
34340 (vminvq_f64): Likewise.
34341 (vminvq_s8): Likewise.
34342 (vminvq_s16): Likewise.
34343 (vminvq_s32): Likewise.
34344 (vminvq_u8): Likewise.
34345 (vminvq_u16): Likewise.
34346 (vminvq_u32): Likewise.
34347 (vminnmv_f32): Likewise.
34348 (vminnmvq_f32): Likewise.
34349 (vminnmvq_f64): Likewise.
34350
34351 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34352
34353 * config/aarch64/aarch64-simd.md
34354 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34355 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34356 (*aarch64_mul3_elt<mode>): Likewise.
34357 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34358 (*aarch64_mul3_elt_to_64v2df): Likewise.
34359 (*aarch64_mla_elt<mode>): Likewise.
34360 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34361 (*aarch64_mls_elt<mode>): Likewise.
34362 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34363 (*aarch64_fma4_elt<mode>): Likewise.
34364 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34365 (*aarch64_fma4_elt_to_64v2df): Likewise.
34366 (*aarch64_fnma4_elt<mode>): Likewise.
34367 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34368 (*aarch64_fnma4_elt_to_64v2df): Likewise.
34369 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34370 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34371 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34372 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34373 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34374 (aarch64_sqdmull_lane<mode>_internal): Likewise.
34375 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34376
34377 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
34378
34379 * config/aarch64/aarch64-simd.md
34380 (aarch64_be_checked_get_lane<mode>): New define_expand.
34381 * config/aarch64/aarch64-simd-builtins.def
34382 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34383 New builtin definition.
34384 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34385 Use new safe be builtin.
34386
34387 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34388
34389 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34390 New define_insn.
34391 (aarch64_be_st1<mode>): Likewise.
34392 (aarch_ld1<VALL:mode>): Define_expand modified.
34393 (aarch_st1<VALL:mode>): Likewise.
34394 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34395 (UNSPEC_ST1): Likewise.
34396
34397 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
34398
34399 * config/microblaze/microblaze.md: Add trap insn and attribute
34400
34401 2014-01-23 Dodji Seketeli <dodji@redhat.com>
34402
34403 PR preprocessor/58580
34404 * input.h (location_get_source_line): Take an additional line_size
34405 parameter.
34406 (void diagnostics_file_cache_fini): Declare new function.
34407 * input.c (struct fcache): New type.
34408 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34409 New static constants.
34410 (diagnostic_file_cache_init, total_lines_num)
34411 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34412 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34413 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34414 (get_next_line, read_next_line, goto_next_line, read_line_num):
34415 New static function definitions.
34416 (diagnostic_file_cache_fini): New function.
34417 (location_get_source_line): Take an additional output line_len
34418 parameter. Re-write using lookup_or_add_file_to_cache_tab and
34419 read_line_num.
34420 * diagnostic.c (diagnostic_finish): Call
34421 diagnostic_file_cache_fini.
34422 (adjust_line): Take an additional input parameter for the length
34423 of the line, rather than calculating it with strlen.
34424 (diagnostic_show_locus): Adjust the use of
34425 location_get_source_line and adjust_line with respect to their new
34426 signature. While displaying a line now, do not stop at the first
34427 null byte. Rather, display the zero byte as a space and keep
34428 going until we reach the size of the line.
34429 * Makefile.in: Add vec.o to OBJS-libcommon
34430
34431 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34432 Ilya Tocar <ilya.tocar@intel.com>
34433
34434 * config/i386/avx512fintrin.h (_mm512_kmov): New.
34435 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34436 (__builtin_ia32_kmov16): Ditto.
34437 * config/i386/i386.md (UNSPEC_KMOV): New.
34438 (kmovw): Ditto.
34439
34440 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34441
34442 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34443 (_mm512_storeu_si512): Ditto.
34444
34445 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
34446
34447 PR target/52125
34448 * rtl.h (get_referenced_operands): Declare.
34449 * recog.c (get_referenced_operands): New function.
34450 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34451 operands have been referenced when recording LO_SUM references.
34452
34453 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
34454
34455 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34456
34457 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34458
34459 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34460 Enable for generic and recent AMD targets.
34461
34462 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34463
34464 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34465 ARG_SIZE note when adjustment was eliminated.
34466
34467 2014-01-22 Jeff Law <law@redhat.com>
34468
34469 PR tree-optimization/59597
34470 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34471 in file. Accept new argument REGISTERING and use it to modify
34472 dump output appropriately.
34473 (register_jump_thread): Corresponding changes.
34474 (mark_threaded_blocks): Reinstate code to cancel unprofitable
34475 thread paths involving joiner blocks. Add code to dump cancelled
34476 jump threading paths.
34477
34478 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
34479
34480 PR rtl-optimization/59477
34481 * lra-constraints.c (inherit_in_ebb): Process call for living hard
34482 regs. Update reloads_num and potential_reload_hard_regs for all insns.
34483
34484 2014-01-22 Tom Tromey <tromey@redhat.com>
34485
34486 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34487 PARAMS.
34488 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34489
34490 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34491
34492 PR rtl-optimization/59896
34493 * lra-constraints.c (process_alt_operands): Check unused note for
34494 matched operands of insn with no output reloads.
34495
34496 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
34497
34498 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34499 (mips_move_from_gpr_cost): Likewise.
34500
34501 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34502
34503 PR rtl-optimization/59858
34504 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34505 ira_class_hard_regs_num.
34506 (process_alt_operands): Increase reject for dying matched operand.
34507
34508 2014-01-21 Jakub Jelinek <jakub@redhat.com>
34509
34510 PR target/59003
34511 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34512 smaller than size, perform several stores or loads and stores
34513 at dst + count - size to store or copy all of size bytes, rather
34514 than just last modesize bytes.
34515
34516 2014-01-20 DJ Delorie <dj@redhat.com>
34517
34518 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34519 that CLOBBERs are REGs before propogating their values.
34520
34521 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
34522
34523 PR middle-end/59789
34524 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34525 (cgraph_inline_failed_type): New function.
34526 * cgraph.h (DEFCIFCODE): Add type.
34527 (cgraph_inline_failed_type_t): New enum.
34528 (cgraph_inline_failed_type): New prototype.
34529 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34530 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34531 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34532 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34533 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34534 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34535 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34536 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34537 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34538 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34539 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34540 OPTIMIZATION_MISMATCH.
34541 * tree-inline.c (expand_call_inline): Emit errors during
34542 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34543
34544 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34545
34546 PR target/59685
34547 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34548 mode attribute in insn output.
34549
34550 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
34551
34552 * output.h (output_constant): Delete.
34553 * varasm.c (output_constant): Make private.
34554
34555 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
34556
34557 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34558
34559 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34560
34561 PR middle-end/59860
34562 * tree.h (fold_builtin_strcat): New prototype.
34563 * builtins.c (fold_builtin_strcat): No longer static. Add len
34564 argument, if non-NULL, don't call c_strlen. Optimize
34565 directly into __builtin_memcpy instead of __builtin_strcpy.
34566 (fold_builtin_2): Adjust fold_builtin_strcat caller.
34567 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34568
34569 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34570
34571 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34572 for SImode_address_operand operands, having only a REG argument.
34573
34574 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
34575
34576 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34577 loader name using mbig-endian.
34578 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34579
34580 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34581
34582 * doc/invoke.texi (-march): Clarify documentation for AArch64.
34583 (-mtune): Likewise.
34584 (-mcpu): Likewise.
34585
34586 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
34587
34588 * config/aarch64/aarch64-protos.h
34589 (aarch64_cannot_change_mode_class_ptr): Declare.
34590 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34591 aarch64_cannot_change_mode_class_ptr): New.
34592 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34593 backend hook aarch64_cannot_change_mode_class.
34594
34595 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34596
34597 * common/config/aarch64/aarch64-common.c
34598 (aarch64_handle_option): Don't handle any option order logic here.
34599 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34600 selected_cpu, warn on architecture version mismatch.
34601 (aarch64_override_options): Fix parsing order for option strings.
34602
34603 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34604 Iain Sandoe <iain@codesourcery.com>
34605
34606 PR bootstrap/59496
34607 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34608 warning. Amend comment to reflect current functionality.
34609
34610 2014-01-20 Richard Biener <rguenther@suse.de>
34611
34612 PR middle-end/59860
34613 * builtins.c (fold_builtin_strcat): Remove case better handled
34614 by tree-ssa-strlen.c.
34615
34616 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
34617
34618 * config/aarch64/aarch64.opt
34619 (mcpu, march, mtune): Make case-insensitive.
34620
34621 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34622
34623 PR target/59880
34624 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34625 if operands[1] is a REG or ZERO_EXTEND of a REG.
34626
34627 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
34628
34629 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34630
34631 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
34632
34633 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34634 long non-pic millicode calls.
34635
34636 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34637
34638 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34639
34640 2014-01-19 Kito Cheng <kito@0xlab.org>
34641
34642 * builtins.c (expand_movstr): Check movstr expand done or fail.
34643
34644 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34645 H.J. Lu <hongjiu.lu@intel.com>
34646
34647 PR target/59379
34648 * config/i386/i386.md (*lea<mode>): Zero-extend return register
34649 to DImode for zero-extended addresses.
34650
34651 2014-01-19 Jakub Jelinek <jakub@redhat.com>
34652
34653 PR rtl-optimization/57763
34654 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34655 on the new indirect jump_insn and increment LABEL_NUSES (label).
34656
34657 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
34658
34659 PR bootstrap/59580
34660 PR bootstrap/59583
34661 * config.gcc (x86_archs): New variable.
34662 (x86_64_archs): Likewise.
34663 (x86_cpus): Likewise.
34664 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34665 --with-arch/--with-cpu= options.
34666 Support --with-arch=/--with-cpu={nehalem,westmere,
34667 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34668
34669 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34670
34671 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34672 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
34673
34674 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34675
34676 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34677
34678 2014-01-18 Jakub Jelinek <jakub@redhat.com>
34679
34680 PR target/58944
34681 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34682 clear cpp_get_options (parse_in)->warn_unused_macros for
34683 ix86_target_macros_internal with cpp_define.
34684
34685 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
34686
34687 * jump.c (delete_related_insns): Keep (use (insn))s.
34688 * reorg.c (redundant_insn): Check for barriers too.
34689
34690 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34691
34692 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34693
34694 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
34695
34696 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34697 call to $$dyncall when TARGET_LONG_CALLS is true.
34698
34699 2014-01-17 Jeff Law <law@redhat.com>
34700
34701 * ree.c (combine_set_extension): Temporarily disable test for
34702 changing number of hard registers.
34703
34704 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34705
34706 PR middle-end/58125
34707 * ipa-inline-analysis.c (inline_free_summary):
34708 Do not free summary of aliases.
34709
34710 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34711
34712 PR middle-end/59706
34713 * gimplify.c (gimplify_expr): Use create_tmp_var
34714 instead of create_tmp_var_raw. If cond doesn't have
34715 integral type, don't add the IFN_ANNOTATE builtin at all.
34716
34717 2014-01-17 Martin Jambor <mjambor@suse.cz>
34718
34719 PR ipa/59736
34720 * ipa-cp.c (prev_edge_clone): New variable.
34721 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34722 Also resize prev_edge_clone vector.
34723 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34724 (ipcp_edge_removal_hook): New function.
34725 (ipcp_driver): Register ipcp_edge_removal_hook.
34726
34727 2014-01-17 Andrew Pinski <apinski@cavium.com>
34728 Steve Ellcey <sellcey@mips.com>
34729
34730 PR target/59462
34731 * config/mips/mips.c (mips_print_operand): Check operand mode instead
34732 of operator mode.
34733
34734 2014-01-17 Jeff Law <law@redhat.com>
34735
34736 PR middle-end/57904
34737 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34738 so that pass_ccp runs first.
34739
34740 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34741
34742 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34743 (ix86_adjust_cost): Use !TARGET_XXX.
34744 (do_reorder_for_imul): Likewise.
34745 (swap_top_of_ready_list): Likewise.
34746 (ix86_sched_reorder): Likewise.
34747
34748 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34749
34750 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34751 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
34752 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
34753 (intel_memset): New. Duplicate slm_memset.
34754 (intel_cost): New. Duplicate slm_cost.
34755 (m_INTEL): New macro.
34756 (processor_target_table): Add "intel".
34757 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34758 with PROCESSOR_INTEL for "intel".
34759 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
34760 PROCESSOR_SILVERMONT.
34761 (ix86_issue_rate): Likewise.
34762 (ix86_adjust_cost): Likewise.
34763 (ia32_multipass_dfa_lookahead): Likewise.
34764 (swap_top_of_ready_list): Likewise.
34765 (ix86_sched_reorder): Likewise.
34766 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34767 instead of TARGET_OPT_AGU.
34768 * config/i386/i386.h (TARGET_INTEL): New.
34769 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34770 (processor_type): Add PROCESSOR_INTEL.
34771 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34772 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34773
34774 2014-01-17 Marek Polacek <polacek@redhat.com>
34775
34776 PR c/58346
34777 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34778 size is zero.
34779
34780 2014-01-17 Richard Biener <rguenther@suse.de>
34781
34782 PR tree-optimization/46590
34783 * opts.c (default_options_table): Add entries for
34784 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34785 all enabled at -O1 but not for -Og.
34786 * common.opt (fbranch-count-reg): Remove Init(1).
34787 (fmove-loop-invariants): Likewise.
34788 (ftree-pta): Likewise.
34789
34790 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34791
34792 * config/i386/i386.c (ix86_data_alignment): For compatibility with
34793 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34794 decls to at least the GCC 4.8 used alignments.
34795
34796 PR fortran/59440
34797 * tree-nested.c (convert_nonlocal_reference_stmt,
34798 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34799 of GIMPLE_BIND stmts, adjust associated decls.
34800
34801 2014-01-17 Richard Biener <rguenther@suse.de>
34802
34803 PR tree-optimization/46590
34804 * vec.h (vec<>::bseach): New member function implementing
34805 binary search according to C89 bsearch.
34806 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34807 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34808 bitmap pointer again. Make accesses_in_loop a flat array.
34809 (mem_ref_obstack): New global.
34810 (outermost_indep_loop): Adjust for mem_ref->stored changes.
34811 (mark_ref_stored): Likewise.
34812 (ref_indep_loop_p_2): Likewise.
34813 (set_ref_stored_in_loop): New helper function.
34814 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34815 (memref_free): Adjust.
34816 (record_mem_ref_loc): Simplify.
34817 (gather_mem_refs_stmt): Adjust.
34818 (sort_locs_in_loop_postorder_cmp): New function.
34819 (analyze_memory_references): Sort accesses_in_loop after
34820 loop postorder number.
34821 (find_ref_loc_in_loop_cmp): New function.
34822 (for_all_locs_in_loop): Find relevant cluster of locs in
34823 accesses_in_loop and iterate without recursion.
34824 (execute_sm): Avoid uninit warning.
34825 (struct ref_always_accessed): Simplify.
34826 (ref_always_accessed::operator ()): Likewise.
34827 (ref_always_accessed_p): Likewise.
34828 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34829 loop postorder numbers here.
34830 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34831 numbers.
34832
34833 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34834
34835 PR c++/57945
34836 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34837 on decls for which assemble_alias has been called.
34838
34839 2014-01-17 Nick Clifton <nickc@redhat.com>
34840
34841 * config/msp430/msp430.opt: (mcpu): New option.
34842 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34843 (msp430_option_override): Parse target_cpu. If the MCU name
34844 matches a generic string, clear target_mcu.
34845 (msp430_attr): Allow numeric interrupt values up to 63.
34846 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34847 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34848 option.
34849 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34850 Add mcpu matches.
34851 * config/msp430/msp430.md (popm): Use %J rather than %I.
34852 (addsi3): Use msp430_nonimmediate_operand for operand 2.
34853 (addhi_cy_i): Use immediate_operand for operand 2.
34854 * doc/invoke.texi: Document -mcpu option.
34855
34856 2014-01-17 Richard Biener <rguenther@suse.de>
34857
34858 PR rtl-optimization/38518
34859 * df.h (df_analyze_loop): Declare.
34860 * df-core.c: Include cfgloop.h.
34861 (df_analyze_1): Split out main part of df_analyze.
34862 (df_analyze): Adjust.
34863 (loop_inverted_post_order_compute): New function.
34864 (loop_post_order_compute): Likewise.
34865 (df_analyze_loop): New function avoiding whole-function
34866 postorder computes.
34867 * loop-invariant.c (find_defs): Use df_analyze_loop.
34868 (find_invariants): Adjust.
34869 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34870
34871 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
34872
34873 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34874 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34875
34876 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34877
34878 * ipa-ref.c (ipa_remove_stmt_references): Fix references
34879 traversal when removing references.
34880
34881 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
34882
34883 PR ipa/59775
34884 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34885
34886 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
34887
34888 PR middle-end/56791
34889 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34890 pushing a reload for an autoinc when we had previously reloaded an
34891 inner part of the address.
34892
34893 2014-01-16 Jakub Jelinek <jakub@redhat.com>
34894
34895 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34896 field.
34897 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34898 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34899 when not giving up or versioning for alias only because of
34900 loop->safelen.
34901 (vect_analyze_data_ref_dependences): Set to true.
34902 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34903 is a GIMPLE_PHI.
34904 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34905 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34906 to the condition.
34907
34908 PR middle-end/58344
34909 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34910
34911 PR target/59839
34912 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34913 operand 0 predicate for gathers, use a new pseudo as subtarget.
34914
34915 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34916
34917 PR middle-end/59609
34918 * lra-constraints.c (process_alt_operands): Add printing debug info.
34919 Check absence of input/output reloads for matched operands too.
34920
34921 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34922
34923 PR rtl-optimization/59835
34924 * ira.c (ira_init_register_move_cost): Increase cost for
34925 impossible modes.
34926
34927 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
34928
34929 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34930
34931 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
34932
34933 PR target/59780
34934 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34935 non-register objects. Use gen_(high/low)part more consistently.
34936 Fix assertions.
34937
34938 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
34939
34940 PR target/59844
34941 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34942 endian support, remove tests for WORDS_BIG_ENDIAN.
34943 (p8_mfvsrd_3_<mode>): Likewise.
34944 (reload_gpr_from_vsx<mode>): Likewise.
34945 (reload_gpr_from_vsxsf): Likewise.
34946 (p8_mfvsrd_4_disf): Likewise.
34947
34948 2014-01-16 Richard Biener <rguenther@suse.de>
34949
34950 PR rtl-optimization/46590
34951 * lcm.c (compute_antinout_edge): Use postorder iteration.
34952 (compute_laterin): Use inverted postorder iteration.
34953
34954 2014-01-16 Nick Clifton <nickc@redhat.com>
34955
34956 PR middle-end/28865
34957 * varasm.c (output_constant): Return the number of bytes actually
34958 emitted.
34959 (output_constructor_array_range): Update the field size with the
34960 number of bytes emitted by output_constant.
34961 (output_constructor_regular_field): Likewise. Also do not
34962 complain if the total number of bytes emitted is now greater
34963 than the expected fieldpos.
34964 * output.h (output_constant): Update prototype and descriptive comment.
34965
34966 2014-01-16 Marek Polacek <polacek@redhat.com>
34967
34968 PR middle-end/59827
34969 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
34970 it is error_mark_node.
34971
34972 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
34973
34974 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
34975 VALID_AVX256_REG_OR_OI_MODE.
34976
34977 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
34978
34979 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34980 current procedure should be profiled.
34981
34982 2014-01-15 Andrew Pinski <apinski@cavium.com>
34983
34984 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34985 of moving from/to the STACK_REG register class.
34986
34987 2014-01-15 Richard Henderson <rth@redhat.com>
34988
34989 PR debug/54694
34990 * reginfo.c (global_regs_decl): Globalize.
34991 * rtl.h (global_regs_decl): Declare.
34992 * ira.c (do_reload): Diagnose frame_pointer_needed and it
34993 reserved via global_regs.
34994
34995 2014-01-15 Teresa Johnson <tejohnson@google.com>
34996
34997 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34998
34999 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
35000
35001 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35002 and vmulosh rather than call gen_vec_widen_smult_*.
35003 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35004 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35005 (vec_widen_smult_even_v16qi): Likewise.
35006 (vec_widen_umult_even_v8hi): Likewise.
35007 (vec_widen_smult_even_v8hi): Likewise.
35008 (vec_widen_umult_odd_v16qi): Likewise.
35009 (vec_widen_smult_odd_v16qi): Likewise.
35010 (vec_widen_umult_odd_v8hi): Likewise.
35011 (vec_widen_smult_odd_v8hi): Likewise.
35012 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35013 vmuloub rather than call gen_vec_widen_umult_*.
35014 (vec_widen_umult_lo_v16qi): Likewise.
35015 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35016 vmulosb rather than call gen_vec_widen_smult_*.
35017 (vec_widen_smult_lo_v16qi): Likewise.
35018 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35019 rather than call gen_vec_widen_umult_*.
35020 (vec_widen_umult_lo_v8hi): Likewise.
35021 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35022 rather than call gen_vec_widen_smult_*.
35023 (vec_widen_smult_lo_v8hi): Likewise.
35024
35025 2014-01-15 Jeff Law <law@redhat.com>
35026
35027 PR tree-optimization/59747
35028 * ree.c (find_and_remove_re): Properly handle case where a second
35029 eliminated extension requires widening a copy created for elimination
35030 of a prior extension.
35031 (combine_set_extension): Ensure that the number of hard regs needed
35032 for a destination register does not change when we widen it.
35033
35034 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
35035
35036 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35037 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35038 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35039 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35040 (avr-*-rtems*): Likewise.
35041 (bfin*-rtems*): Likewise.
35042 (moxie-*-rtems*): Likewise.
35043 (h8300-*-rtems*): Likewise.
35044 (i[34567]86-*-rtems*): Likewise.
35045 (lm32-*-rtems*): Likewise.
35046 (m32r-*-rtems*): Likewise.
35047 (m68k-*-rtems*): Likewise.
35048 (microblaze*-*-rtems*): Likewise.
35049 (mips*-*-rtems*): Likewise.
35050 (powerpc-*-rtems*): Likewise.
35051 (sh-*-rtems*): Likewise.
35052 (sparc-*-rtems*): Likewise.
35053 (sparc64-*-rtems*): Likewise.
35054 (v850-*-rtems*): Likewise.
35055 (m32c-*-rtems*): Likewise.
35056
35057 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
35058
35059 PR rtl-optimization/59511
35060 * ira.c (ira_init_register_move_cost): Use memory costs for some
35061 cases of register move cost calculations.
35062 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35063 instead of BB frequency.
35064 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35065 * lra-assigns.c (find_hard_regno_for): Ditto.
35066
35067 2014-01-15 Richard Biener <rguenther@suse.de>
35068
35069 PR tree-optimization/59822
35070 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35071 (vectorizable_load): Use it to hoist defs of uses of invariant
35072 loads out of the loop.
35073
35074 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35075 Kugan Vivekanandarajah <kuganv@linaro.org>
35076
35077 PR target/59695
35078 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35079 truncation.
35080
35081 2014-01-15 Richard Biener <rguenther@suse.de>
35082
35083 PR rtl-optimization/59802
35084 * lcm.c (compute_available): Use inverted postorder to seed
35085 the initial worklist.
35086
35087 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35088
35089 PR target/59803
35090 * config/s390/s390.c (s390_preferred_reload_class): Don't return
35091 ADDR_REGS for invalid symrefs in non-PIC code.
35092
35093 2014-01-15 Jakub Jelinek <jakub@redhat.com>
35094
35095 PR other/58712
35096 * builtins.c (determine_block_size): Initialize *probable_max_size
35097 even if len_rtx is CONST_INT.
35098
35099 2014-01-14 Andrew Pinski <apinski@cavium.com>
35100
35101 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35102 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35103 (cortexa53_tunings): Likewise.
35104 (aarch64_sched_issue_rate): New function.
35105 (TARGET_SCHED_ISSUE_RATE): Define.
35106
35107 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35108
35109 * ira-costs.c (find_costs_and_classes): Add missed
35110 ira_init_register_move_cost_if_necessary.
35111
35112 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35113
35114 PR target/59787
35115 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35116
35117 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
35118
35119 PR target/59794
35120 * config/i386/i386.c (type_natural_mode): Add a bool parameter
35121 to indicate if type is used for function return value. Warn ABI
35122 change if the vector mode isn't available for function return value.
35123 (ix86_function_arg_advance): Pass false to type_natural_mode.
35124 (ix86_function_arg): Likewise.
35125 (ix86_gimplify_va_arg): Likewise.
35126 (function_arg_32): Don't warn ABI change.
35127 (ix86_function_value): Pass true to type_natural_mode.
35128 (ix86_return_in_memory): Likewise.
35129 (ix86_struct_value_rtx): Removed.
35130 (TARGET_STRUCT_VALUE_RTX): Likewise.
35131
35132 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
35133
35134 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35135 converting a conditional jump into a conditional return.
35136
35137 2014-01-14 Richard Biener <rguenther@suse.de>
35138
35139 PR tree-optimization/58921
35140 PR tree-optimization/59006
35141 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35142 hoisting invariant stmts.
35143 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35144 invariant loads on the preheader edge if possible.
35145
35146 2014-01-14 Joey Ye <joey.ye@arm.com>
35147
35148 * doc/plugin.texi (Building GCC plugins): Update to C++.
35149
35150 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
35151
35152 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35153 (_mm_rcp28_round_ss): Ditto.
35154 (_mm_rsqrt28_round_sd): Ditto.
35155 (_mm_rsqrt28_round_ss): Ditto.
35156 (_mm_rcp28_sd): Ditto.
35157 (_mm_rcp28_ss): Ditto.
35158 (_mm_rsqrt28_sd): Ditto.
35159 (_mm_rsqrt28_ss): Ditto.
35160 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35161 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35162 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35163 (IX86_BUILTIN_RCP28SD): Ditto.
35164 (IX86_BUILTIN_RCP28SS): Ditto.
35165 (IX86_BUILTIN_RSQRT28SD): Ditto.
35166 (IX86_BUILTIN_RSQRT28SS): Ditto.
35167 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35168 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35169 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35170 (ix86_expand_special_args_builtin): Expand new FTYPE.
35171 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35172 (srcp14<mode>): Make insn unary.
35173 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35174 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35175 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35176 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35177 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35178 Fix rounding: make it SAE only.
35179 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35180 Ditto.
35181 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35182 Ditto.
35183 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35184 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35185 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35186 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35187 (round_saeonly_mask_scalar_operand4): Ditto.
35188 (round_saeonly_mask_scalar_op3): Ditto.
35189 (round_saeonly_mask_scalar_op4): Ditto.
35190
35191 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35192
35193 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35194 Implement -maltivec=be for vec_insert and vec_extract.
35195
35196 2014-01-10 DJ Delorie <dj@redhat.com>
35197
35198 * config/msp430/msp430.md (call_internal): Don't allow memory
35199 references with SP as the base register.
35200 (call_value_internal): Likewise.
35201 * config/msp430/constraints.md (Yc): New. For memory references
35202 that don't use SP as a base register.
35203
35204 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35205 "an integer without a # prefix"
35206 * config/msp430/msp430.md (epilogue_helper): Use it.
35207
35208 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35209
35210 PR target/59617
35211 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35212 AVX512F gather builtins.
35213 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35214 on gather decls with INTEGER_TYPE masktype.
35215 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35216 directly into the builtin rather than hoisting it before loop.
35217
35218 PR tree-optimization/59387
35219 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35220 (scev_const_prop): If folded_casts and type has undefined overflow,
35221 use force_gimple_operand instead of force_gimple_operand_gsi and
35222 for each added stmt if it is assign with
35223 arith_code_with_undefined_signed_overflow, call
35224 rewrite_to_defined_overflow.
35225 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35226 gimple-fold.h instead.
35227 (arith_code_with_undefined_signed_overflow,
35228 rewrite_to_defined_overflow): Moved to ...
35229 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35230 rewrite_to_defined_overflow): ... here. No longer static.
35231 Include gimplify-me.h.
35232 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35233 rewrite_to_defined_overflow): New prototypes.
35234
35235 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35236
35237 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35238
35239 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
35240
35241 * builtins.c (get_object_alignment_2): Minor tweak.
35242 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35243
35244 2014-01-13 Christian Bruel <christian.bruel@st.com>
35245
35246 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35247 optimized non constant lengths.
35248
35249 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35250
35251 PR libgomp/59194
35252 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35253 load as __atomic_load_N if possible.
35254
35255 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35256
35257 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35258 target parameter.
35259 (rs6000_expand_builtin): Adjust call.
35260
35261 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35262
35263 PR target/58115
35264 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35265 * config/rs6000/rs6000.c: Include target-globals.h.
35266 (rs6000_set_current_function): Instead of doing target_reinit
35267 unconditionally, use save_target_globals_default_opts and
35268 restore_target_globals.
35269
35270 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35271 FPSCR.
35272 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35273 (rs6000_expand_builtin): Handle mffs and mtfsf.
35274 (rs6000_init_builtins): Define mffs and mtfsf.
35275 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35276 (rs6000_mffs): New pattern.
35277 (rs6000_mtfsf): New pattern.
35278
35279 2014-01-11 Bin Cheng <bin.cheng@arm.com>
35280
35281 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35282 Start narrowing with START. Apply candidate-use pair
35283 and check overall cost in narrowing.
35284 (iv_ca_prune): Pass new argument.
35285
35286 2014-01-10 Jeff Law <law@redhat.com>
35287
35288 PR middle-end/59743
35289 * ree.c (combine_reaching_defs): Ensure the defining statement
35290 occurs before the extension when optimizing extensions with
35291 different source and destination hard registers.
35292
35293 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35294
35295 PR ipa/58585
35296 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35297 vtables into the type inheritance graph.
35298
35299 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35300
35301 PR rtl-optimization/59754
35302 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35303 modes in the REGNO != REGNO case.
35304
35305 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35306
35307 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35308
35309 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35310
35311 PR tree-optimization/59745
35312 * tree-predcom.c (tree_predictive_commoning_loop): Call
35313 free_affine_expand_cache if giving up because components is NULL.
35314
35315 * target-globals.c (save_target_globals): Allocate < 4KB structs using
35316 GC in payload of target_globals struct instead of allocating them on
35317 the heap and the larger structs separately using GC.
35318 * target-globals.h (struct target_globals): Make regs, hard_regs,
35319 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35320 of GTY((skip)) and change type to void *.
35321 (reset_target_globals): Cast loads from those fields to corresponding
35322 types.
35323
35324 2014-01-10 Steve Ellcey <sellcey@mips.com>
35325
35326 PR plugins/59335
35327 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35328 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35329 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35330
35331 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
35332
35333 PR target/59744
35334 * aarch64-modes.def (CC_Zmode): New flags mode.
35335 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35336 represents an equality.
35337 (aarch64_get_condition_code): Handle CC_Zmode.
35338 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35339
35340 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35341
35342 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35343 extraction in good case.
35344
35345 2014-01-10 Richard Biener <rguenther@suse.de>
35346
35347 PR tree-optimization/59374
35348 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35349 checking after SLP discovery. Mark stmts not participating
35350 in any SLP instance properly.
35351
35352 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35353
35354 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35355 when handling a SET rtx.
35356
35357 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35358
35359 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35360 (cortex-a57): Likewise.
35361 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35362
35363 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35364
35365 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35366 non-iwmmxt builtins.
35367
35368 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35369
35370 PR ipa/58252
35371 PR ipa/59226
35372 * ipa-devirt.c record_target_from_binfo): Take as argument
35373 stack of binfos and lookup matching one for virtual inheritance.
35374 (possible_polymorphic_call_targets_1): Update.
35375
35376 2014-01-10 Huacai Chen <chenhc@lemote.com>
35377
35378 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35379 kernel strings for Loongson-2E/2F/3A.
35380
35381 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35382
35383 PR middle-end/59670
35384 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35385 is_gimple_call before calling gimple_call_internal_p.
35386
35387 2014-01-09 Steve Ellcey <sellcey@mips.com>
35388
35389 * Makefile.in (TREE_FLOW_H): Remove.
35390 (TREE_SSA_H): Add file names from tree-flow.h.
35391 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35392 * tree.h: Remove tree-flow.h reference.
35393 * hash-table.h: Remove tree-flow.h reference.
35394 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35395 reference with tree-ssa-loop.h.
35396
35397 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35398
35399 * doc/invoke.texi: Add -maltivec={be,le} options, and document
35400 default element-order behavior for -maltivec.
35401 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35402 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35403 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35404 when targeting big endian, at least for now.
35405 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35406
35407 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35408
35409 PR middle-end/47735
35410 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35411 var satisfies use_register_for_decl, just take into account type
35412 alignment, rather than decl alignment.
35413
35414 PR tree-optimization/59622
35415 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
35416 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35417 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35418 Don't devirtualize for inplace at all. For targets.length () == 1,
35419 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35420
35421 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35422
35423 * config/i386/i386.md (cpu): Remove the unused btver1.
35424
35425 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35426
35427 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35428
35429 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35430
35431 PR target/58115
35432 * tree-core.h (struct target_globals): New forward declaration.
35433 (struct tree_target_option): Add globals field.
35434 * tree.h (TREE_TARGET_GLOBALS): Define.
35435 (prepare_target_option_nodes_for_pch): New prototype.
35436 * target-globals.h (struct target_globals): Define even if
35437 !SWITCHABLE_TARGET.
35438 * tree.c (prepare_target_option_node_for_pch,
35439 prepare_target_option_nodes_for_pch): New functions.
35440 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35441 * config/i386/i386.c: Include target-globals.h.
35442 (ix86_set_current_function): Instead of doing target_reinit
35443 unconditionally, use save_target_globals_default_opts and
35444 restore_target_globals.
35445
35446 2014-01-09 Richard Biener <rguenther@suse.de>
35447
35448 PR tree-optimization/59715
35449 * tree-cfg.h (split_critical_edges): Declare.
35450 * tree-cfg.c (split_critical_edges): Export.
35451 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35452
35453 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
35454
35455 * cfgexpand.c (expand_stack_vars): Optionally disable
35456 asan stack protection.
35457 (expand_used_vars): Likewise.
35458 (partition_stack_vars): Likewise.
35459 * asan.c (asan_emit_stack_protection): Optionally disable
35460 after return stack usage.
35461 (instrument_derefs): Optionally disable memory access instrumentation.
35462 (instrument_builtin_call): Likewise.
35463 (instrument_strlen_call): Likewise.
35464 (asan_protect_global): Optionally disable global variables protection.
35465 * doc/invoke.texi: Added doc for new options.
35466 * params.def: Added new options.
35467 * params.h: Likewise.
35468
35469 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35470
35471 PR rtl-optimization/59724
35472 * ifcvt.c (cond_exec_process_if_block): Don't call
35473 flow_find_head_matching_sequence with 0 longest_match.
35474 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35475 non-active insns if !stop_after.
35476 (try_head_merge_bb): Revert 2014-01-07 changes.
35477
35478 2014-01-08 Jeff Law <law@redhat.com>
35479
35480 * ree.c (get_sub_rtx): New function, extracted from...
35481 (merge_def_and_ext): Here.
35482 (combine_reaching_defs): Use get_sub_rtx.
35483
35484 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
35485
35486 * cgraph.h (varpool_variable_node): Do not choke on null node.
35487
35488 2014-01-08 Catherine Moore <clm@codesourcery.com>
35489
35490 * config/mips/mips.md (simple_return): Attempt to use JRC
35491 for microMIPS.
35492 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35493
35494 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35495
35496 PR rtl-optimization/59137
35497 * reorg.c (steal_delay_list_from_target): Call update_block for
35498 elided insns.
35499 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35500
35501 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35502
35503 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35504 two duplicate entries.
35505
35506 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35507
35508 Revert:
35509 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
35510
35511 * config/mips/mips.c (mips_truncated_op_cost): New function.
35512 (mips_rtx_costs): Adjust test for BADDU.
35513 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35514
35515 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
35516
35517 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35518 (*baddu_si): ...this new pattern.
35519
35520 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35521
35522 PR ipa/59722
35523 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35524
35525 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
35526
35527 PR middle-end/57748
35528 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35529 inner_reference_p.
35530 (expand_expr, expand_normal): Adjust.
35531 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35532 inner_reference_p. Use inner_reference_p to expand inner references.
35533 (store_expr): Adjust.
35534 * cfgexpand.c (expand_call_stmt): Adjust.
35535
35536 2014-01-08 Rong Xu <xur@google.com>
35537
35538 * gcov-io.c (gcov_var): Move from gcov-io.h.
35539 (gcov_position): Ditto.
35540 (gcov_is_error): Ditto.
35541 (gcov_rewrite): Ditto.
35542 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35543 only part to libgcc/libgcov.h.
35544
35545 2014-01-08 Marek Polacek <polacek@redhat.com>
35546
35547 PR middle-end/59669
35548 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35549
35550 2014-01-08 Marek Polacek <polacek@redhat.com>
35551
35552 PR sanitizer/59667
35553 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35554
35555 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35556
35557 PR rtl-optimization/59649
35558 * stor-layout.c (get_mode_bounds): For BImode return
35559 0 and STORE_FLAG_VALUE.
35560
35561 2014-01-08 Richard Biener <rguenther@suse.de>
35562
35563 PR middle-end/59630
35564 * gimple.h (is_gimple_builtin_call): Remove.
35565 (gimple_builtin_call_types_compatible_p): New.
35566 (gimple_call_builtin_p): New overload.
35567 * gimple.c (is_gimple_builtin_call): Remove.
35568 (validate_call): Rename to ...
35569 (gimple_builtin_call_types_compatible_p): ... this and export. Also
35570 check return types.
35571 (validate_type): New static function.
35572 (gimple_call_builtin_p): New overload and adjust.
35573 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35574 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
35575 (gimple_fold_stmt_to_constant_1): Likewise.
35576 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35577
35578 2014-01-08 Richard Biener <rguenther@suse.de>
35579
35580 PR middle-end/59471
35581 * gimplify.c (gimplify_expr): Gimplify register-register type
35582 VIEW_CONVERT_EXPRs to separate stmts.
35583
35584 2014-01-07 Jeff Law <law@redhat.com>
35585
35586 PR middle-end/53623
35587 * ree.c (combine_set_extension): Handle case where source
35588 and destination registers in an extension insn are different.
35589 (combine_reaching_defs): Allow source and destination registers
35590 in extension to be different under limited circumstances.
35591 (add_removable_extension): Remove restriction that the
35592 source and destination registers in the extension are the same.
35593 (find_and_remove_re): Emit a copy from the extension's
35594 destination to its source after the defining insn if
35595 the source and destination registers are different.
35596
35597 PR middle-end/59285
35598 * ifcvt.c (merge_if_block): If we are merging a block with more than
35599 one successor with a block with no successors, remove any BARRIER
35600 after the second block.
35601
35602 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
35603
35604 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35605
35606 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
35607
35608 PR target/59652
35609 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35610 for 14-bit register offsets when INT14_OK_STRICT is false.
35611
35612 2014-01-07 Roland Stigge <stigge@antcom.de>
35613 Michael Meissner <meissner@linux.vnet.ibm.com>
35614
35615 PR 57386/target
35616 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35617 Only check TFmode for SPE constants. Don't check TImode or TDmode.
35618
35619 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35620
35621 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35622 -mcpu.
35623
35624 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
35625
35626 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35627 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35628 rtx is const0_rtx or not.
35629
35630 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
35631
35632 PR target/58115
35633 * target-globals.c (save_target_globals): Remove this_fn_optab
35634 handling.
35635 * toplev.c: Include optabs.h.
35636 (target_reinit): Temporarily restore the global options if another
35637 set of options are in force.
35638
35639 2014-01-07 Jakub Jelinek <jakub@redhat.com>
35640
35641 PR rtl-optimization/58668
35642 * cfgcleanup.c (flow_find_cross_jump): Don't count
35643 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
35644 to determine what is counted.
35645 (flow_find_head_matching_sequence): Use active_insn_p to determine
35646 what is counted.
35647 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35648 counting change.
35649 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35650 determine what is counted.
35651
35652 PR tree-optimization/59643
35653 * tree-predcom.c (split_data_refs_to_components): If one dr is
35654 read and one write, determine_offset fails and the write isn't
35655 in the bad component, just put the read into the bad component.
35656
35657 2014-01-07 Mike Stump <mikestump@comcast.net>
35658 Jakub Jelinek <jakub@redhat.com>
35659
35660 PR pch/59436
35661 * tree-core.h (struct tree_optimization_option): Change optabs
35662 type from unsigned char * to void *.
35663 * optabs.c (init_tree_optimization_optabs): Adjust
35664 TREE_OPTIMIZATION_OPTABS initialization.
35665
35666 2014-01-06 Jakub Jelinek <jakub@redhat.com>
35667
35668 PR target/59644
35669 * config/i386/i386.h (struct machine_function): Add
35670 no_drap_save_restore field.
35671 * config/i386/i386.c (ix86_save_reg): Use
35672 !cfun->machine->no_drap_save_restore instead of
35673 crtl->stack_realign_needed.
35674 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35675 this function clears frame_pointer_needed. Set
35676 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35677 and DRAP reg is needed.
35678
35679 2014-01-06 Marek Polacek <polacek@redhat.com>
35680
35681 PR c/57773
35682 * doc/implement-c.texi: Mention that other integer types are
35683 permitted as bit-field types in strictly conforming mode.
35684
35685 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
35686
35687 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35688 is newly allocated.
35689
35690 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
35691
35692 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35693
35694 2014-01-06 Martin Jambor <mjambor@suse.cz>
35695
35696 PR ipa/59008
35697 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35698 to int.
35699 * ipa-prop.c (ipa_print_node_params): Fix indentation.
35700
35701 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
35702
35703 PR debug/59350
35704 PR debug/59510
35705 * var-tracking.c (add_stores): Preserve the value of the source even if
35706 we don't record the store.
35707
35708 2014-01-06 Terry Guo <terry.guo@arm.com>
35709
35710 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35711
35712 2014-01-05 Iain Sandoe <iain@codesourcery.com>
35713
35714 PR bootstrap/59541
35715 * config/darwin.c (darwin_function_section): Adjust return values to
35716 correspond to optimisation changes made in r206070.
35717
35718 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
35719
35720 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35721 from prefetch_block tune setting.
35722 (nocona_cost): Correct size of prefetch block to 64.
35723
35724 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
35725
35726 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35727 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35728 used to save the static chain register in the computation of the offset
35729 from which the FP registers need to be restored.
35730
35731 2014-01-04 Jakub Jelinek <jakub@redhat.com>
35732
35733 PR tree-optimization/59519
35734 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35735 ICE if get_current_def (current_new_name) is already non-NULL, as long
35736 as it is a phi result of some other phi in *new_exit_bb that has
35737 the same argument.
35738
35739 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35740 or vmovdqu* for misaligned_operand.
35741 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35742 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35743 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35744 aligned_mem for AVX512F masked aligned load and store builtins and for
35745 non-temporal moves.
35746
35747 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
35748
35749 PR tree-optimization/59651
35750 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35751 Address range for negative step should be added by TYPE_SIZE_UNIT.
35752
35753 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
35754
35755 * config/m68k/m68k.c (handle_move_double): Handle pushes with
35756 overlapping registers also for registers other than the stack pointer.
35757
35758 2014-01-03 Marek Polacek <polacek@redhat.com>
35759
35760 PR other/59661
35761 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35762 __builtin_FILE.
35763
35764 2014-01-03 Jakub Jelinek <jakub@redhat.com>
35765
35766 PR target/59625
35767 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35768 asm goto as jump.
35769
35770 * config/i386/i386.md (MODE_SIZE): New mode attribute.
35771 (push splitter): Use <P:MODE_SIZE> instead of
35772 GET_MODE_SIZE (<P:MODE>mode).
35773 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35774 (mov -1, reg peephole2): Likewise.
35775 * config/i386/sse.md (*mov<mode>_internal,
35776 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35777 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35778 *<code><mode>3, *andnot<mode>3<mask_name>,
35779 <mask_codefor><code><mode>3<mask_name>): Likewise.
35780 * config/i386/subst.md (mask_mode512bit_condition,
35781 sd_mask_mode512bit_condition): Likewise.
35782
35783 2014-01-02 Xinliang David Li <davidxl@google.com>
35784
35785 PR tree-optimization/59303
35786 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35787 (dump_predicates): Better output format.
35788 (pred_equal_p): New function.
35789 (is_neq_relop_p): Ditto.
35790 (is_neq_zero_form_p): Ditto.
35791 (pred_expr_equal_p): Ditto.
35792 (pred_neg_p): Ditto.
35793 (simplify_pred): Ditto.
35794 (simplify_preds_2): Ditto.
35795 (simplify_preds_3): Ditto.
35796 (simplify_preds_4): Ditto.
35797 (simplify_preds): Ditto.
35798 (push_pred): Ditto.
35799 (push_to_worklist): Ditto.
35800 (get_pred_info_from_cmp): Ditto.
35801 (is_degenerated_phi): Ditto.
35802 (normalize_one_pred_1): Ditto.
35803 (normalize_one_pred): Ditto.
35804 (normalize_one_pred_chain): Ditto.
35805 (normalize_preds): Ditto.
35806 (normalize_cond_1): Remove function.
35807 (normalize_cond): Ditto.
35808 (is_gcond_subset_of): Ditto.
35809 (is_subset_of_any): Ditto.
35810 (is_or_set_subset_of): Ditto.
35811 (is_and_set_subset_of): Ditto.
35812 (is_norm_cond_subset_of): Ditto.
35813 (pred_chain_length_cmp): Ditto.
35814 (convert_control_dep_chain_into_preds): Type change.
35815 (find_predicates): Ditto.
35816 (find_def_preds): Ditto.
35817 (destroy_predicates_vecs): Ditto.
35818 (find_matching_predicates_in_rest_chains): Ditto.
35819 (use_pred_not_overlap_with_undef_path_pred): Ditto.
35820 (is_pred_expr_subset): Ditto.
35821 (is_pred_chain_subset_of): Ditto.
35822 (is_included_in): Ditto.
35823 (is_superset_of): Ditto.
35824
35825 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35826
35827 Update copyright years.
35828
35829 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35830
35831 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35832 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35833 config/arc/arc.md, config/arc/arc.opt,
35834 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35835 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35836 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35837 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35838 config/linux-protos.h, config/linux.c, config/winnt-c.c,
35839 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35840 vtable-verify.c, vtable-verify.h: Use the standard form for the
35841 copyright notice.
35842
35843 2014-01-02 Tobias Burnus <burnus@net-b.de>
35844
35845 * gcc.c (process_command): Update copyright notice dates.
35846 * gcov-dump.c: Ditto.
35847 * gcov.c: Ditto.
35848 * doc/cpp.texi: Bump @copying's copyright year.
35849 * doc/cppinternals.texi: Ditto.
35850 * doc/gcc.texi: Ditto.
35851 * doc/gccint.texi: Ditto.
35852 * doc/gcov.texi: Ditto.
35853 * doc/install.texi: Ditto.
35854 * doc/invoke.texi: Ditto.
35855
35856 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35857
35858 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35859
35860 2014-01-01 Jakub Jelinek <jakub@redhat.com>
35861
35862 * config/i386/sse.md (*mov<mode>_internal): Guard
35863 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35864
35865 PR rtl-optimization/59647
35866 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35867 new_rtx into UNSIGNED_FLOAT rtxes.
35868 \f
35869 Copyright (C) 2014 Free Software Foundation, Inc.
35870
35871 Copying and distribution of this file, with or without modification,
35872 are permitted in any medium without royalty provided the copyright
35873 notice and this notice are preserved.