905eb3921b266f843f1cb8fc15390836ec02e8f3
[gcc.git] / gcc / ChangeLog
1 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2
3 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4 to rtx_insn *.
5 (struct btr_def_s): Likewise.
6 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
7 const rtx_insn *.
8 (add_btr_def): Likewise.
9 (new_btr_user): Likewise.
10 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
11 rtx to rtx_insn *.
12 (link_btr_uses): Likewise.
13 (move_btr_def): Likewise for locals "insp", "old_insn",
14 "new_insn". Add checked cast to rtx_insn * for now on result of
15 gen_move_insn.
16 (can_move_up): Strengthen param "insn" from const_rtx to
17 const rtx_insn *.
18
19 2014-08-21 David Malcolm <dmalcolm@redhat.com>
20
21 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
22 rtx_insn *.
23 (get_uncond_jump_length): Likewise for locals "label", "jump".
24 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
25 "jump", "insn".
26 (add_labels_and_missing_jumps): Likewise for local "new_jump".
27 (fix_up_fall_thru_edges): Likewise for local "old_jump".
28 (find_jump_block): Likewise for local "insn".
29 (fix_crossing_conditional_branches): Likewise for locals
30 "old_jump", "new_jump".
31 (fix_crossing_unconditional_branches): Likewise for locals
32 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
33 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
34
35 2014-08-21 David Malcolm <dmalcolm@redhat.com>
36
37 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
38 rtx to rtx_insn *.
39 (struct mem_insn): Likewise for field "insn".
40 (reg_next_use): Strengthen from rtx * to rtx_insn **.
41 (reg_next_inc_use): Likewise.
42 (reg_next_def): Likewise.
43 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
44 from rtx to rtx_insn *.
45 (move_insn_before): Likewise for param "next_insn" and local "insns".
46 (attempt_change): Likewise for local "mov_insn".
47 (try_merge): Likewise for param "last_insn".
48 (get_next_ref): Likewise for return type and local "insn".
49 Strengthen param "next_array" from rtx * to rtx_insn **.
50 (parse_add_or_inc): Strengthen param "insn" from rtx to
51 rtx_insn *.
52 (find_inc): Likewise for locals "insn" and "other_insn" (three of
53 the latter).
54 (merge_in_block): Likewise for locals "insn", "curr",
55 "other_insn".
56 (pass_inc_dec::execute): Update allocations of the arrays to
57 reflect the stronger types.
58
59 2014-08-21 David Malcolm <dmalcolm@redhat.com>
60
61 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
62 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
63 from rtx to rtx_code_label *.
64
65 2014-08-21 David Malcolm <dmalcolm@redhat.com>
66
67 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
68 to rtx_insn *.
69
70 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
71
72 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
73 generated a warning and prevented bootstrapping the compiler.
74
75 2014-08-21 David Malcolm <dmalcolm@redhat.com>
76
77 * rtl.h (delete_related_insns): Strengthen return type from rtx to
78 rtx_insn *.
79
80 * jump.c (delete_related_insns): Likewise, also for locals "next"
81 and "prev".
82
83 2014-08-21 David Malcolm <dmalcolm@redhat.com>
84
85 * genautomata.c (output_internal_insn_latency_func): When writing
86 the function "internal_insn_latency" to insn-automata.c,
87 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
88 allowing the optional guard function of (define_bypass) clauses to
89 expect a pair of rtx_insn *, rather than a pair of rtx.
90 (output_insn_latency_func): When writing the function
91 "insn_latency", add an "uncast_" prefix to params "insn" and
92 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
93 using checked casts from the params, thus enabling the above
94 change to the generated "internal_insn_latency" function.
95
96 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
97
98 PR tree-optimization/62091
99 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
100 handle correctly arrays.
101 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
102 inheritance binfos.
103 (record_known_type): Walk into inner type.
104 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
105 condition on no type changes.
106
107 2014-08-21 David Malcolm <dmalcolm@redhat.com>
108
109 * genattrtab.c (write_attr_get): Within the generated get_attr_
110 functions, rename param "insn" to "uncast_insn" and reintroduce
111 "insn" as an local rtx_insn * using a checked cast, so that "insn"
112 is an rtx_insn * within insn-attrtab.c
113
114 2014-08-21 David Malcolm <dmalcolm@redhat.com>
115
116 * output.h (peephole): Strengthen return type from rtx to
117 rtx_insn *.
118 * rtl.h (delete_for_peephole): Likewise for both params.
119 * genpeep.c (main): In generated "peephole" function, strengthen
120 return type and local "insn" from rtx to rtx_insn *. For now,
121 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
122 rtx_insn *, with a checked cast.
123 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
124 locals "insn", "next", "prev" from rtx to rtx_insn *.
125
126 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
127
128 PR tree-optimization/62112
129 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
130 * gimple-iterator.h (gsi_replace): Return bool.
131 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
132 moved from ref_may_alias_global_p.
133 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
134 New overloads.
135 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
136 (stmt_kills_ref_p_1): Rename...
137 (stmt_kills_ref_p): ... to this.
138 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
139 stmt_kills_ref_p): Declare.
140 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
141 Move the self-assignment case...
142 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
143
144 2014-08-21 David Malcolm <dmalcolm@redhat.com>
145
146 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
147
148 * emit-rtl.c (try_split): Likewise, also for locals "before" and
149 "after". For now, don't strengthen param "trial", which requires
150 adding checked casts when returning it.
151
152 2014-08-21 David Malcolm <dmalcolm@redhat.com>
153
154 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
155 "label" from rtx to rtx_code_label *. Strengthen param 1 of
156 "var_location" hook from rtx to rtx_insn *.
157 (debug_nothing_rtx): Delete in favor of...
158 (debug_nothing_rtx_code_label): New prototype.
159 (debug_nothing_rtx_rtx): Delete unused prototype.
160 (debug_nothing_rtx_insn): New prototype.
161
162 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
163 invoking debug_hooks->var_location (in two places, one in a NOTE
164 case of a switch statement, the other guarded by a CALL_P
165 conditional. Add checked cast to rtx_code_label * when invoking
166 debug_hooks->label (within CODE_LABEL case of switch statement).
167
168 * dbxout.c (dbx_debug_hooks): Update "label" hook from
169 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
170 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
171 (xcoff_debug_hooks): Likewise.
172 * debug.c (do_nothing_debug_hooks): Likewise.
173 (debug_nothing_rtx): Delete in favor of...
174 (debug_nothing_rtx_insn): New function.
175 (debug_nothing_rtx_rtx): Delete unused function.
176 (debug_nothing_rtx_code_label): New function.
177 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
178 debug_nothing_rtx to debug_nothing_rtx_code_label.
179 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
180 to rtx_insn *.
181 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
182 debug_nothing_rtx to debug_nothing_rtx_insn.
183 (sdbout_label): Strengthen param "insn" from rtx to
184 rtx_code_label *.
185 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
186 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
187 "var_location" hook from debug_nothing_rtx to
188 debug_nothing_rtx_insn.
189
190 2014-08-21 David Malcolm <dmalcolm@redhat.com>
191
192 * recog.h (insn_output_fn): Update this function typedef to match
193 the changes below to the generated output functions, strengthening
194 the 2nd param from rtx to rtx_insn *.
195
196 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
197 insn when invoking an output function, to match the new signature
198 of insn_output_fn with a stronger second param.
199
200 * genconditions.c (write_header): In the generated code for
201 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
202 to match the other changes in this patch.
203
204 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
205 the generated "gen_" functions from rtx to rtx_insn * within their
206 implementations.
207
208 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
209 the subfunctions within the generated "recog_", "split", "peephole2"
210 function trees from rtx to rtx_insn *. For now, the top-level
211 generated functions ("recog", "split", "peephole2") continue to
212 take a plain rtx for "insn", to avoid introducing dependencies on
213 other patches. Rename this 2nd param from "insn" to
214 "uncast_insn", and reintroduce "insn" as a local variable of type
215 rtx_insn *, initialized at the top of the generated function with
216 a checked cast on "uncast_insn".
217 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
218 the generated "gen_" functions from rtx to rtx_insn * within their
219 prototypes.
220
221 * genoutput.c (process_template): Strengthen the 2nd param within
222 the generated "output_" functions "insn" from rtx to rtx_insn *.
223
224 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
225
226 * tree-profile.c (tree_profiling): Skip external functions
227 when doing coverage instrumentation.
228 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
229
230 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
231
232 * config/rs6000/altivec.h (vec_cpsgn): New #define.
233 (vec_mergee): Likewise.
234 (vec_mergeo): Likewise.
235 (vec_cntlz): Likewise.
236 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
237 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
238 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
239 VMRGEW, and VMRGOW.
240 * doc/extend.texi: Document various forms of vec_cpsgn,
241 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
242 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
243 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
244 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
245 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
246
247 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
248
249 * config/rs6000/rs6000.c (context.h): New include.
250 (tree-pass.h): Likewise.
251 (make_pass_analyze_swaps): New decl.
252 (rs6000_option_override): Register pass_analyze_swaps.
253 (swap_web_entry): New subsclass of web_entry_base (df.h).
254 (special_handling_values): New enum.
255 (union_defs): New function.
256 (union_uses): Likewise.
257 (insn_is_load_p): Likewise.
258 (insn_is_store_p): Likewise.
259 (insn_is_swap_p): Likewise.
260 (rtx_is_swappable_p): Likewise.
261 (insn_is_swappable_p): Likewise.
262 (chain_purpose): New enum.
263 (chain_contains_only_swaps): New function.
264 (mark_swaps_for_removal): Likewise.
265 (swap_const_vector_halves): Likewise.
266 (adjust_subreg_index): Likewise.
267 (permute_load): Likewise.
268 (permute_store): Likewise.
269 (handle_special_swappables): Likewise.
270 (replace_swap_with_copy): Likewise.
271 (dump_swap_insn_table): Likewise.
272 (rs6000_analyze_swaps): Likewise.
273 (pass_data_analyze_swaps): New pass_data.
274 (pass_analyze_swaps): New rtl_opt_pass.
275 (make_pass_analyze_swaps): New function.
276 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
277
278 2014-08-21 David Malcolm <dmalcolm@redhat.com>
279
280 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
281 type from rtx to rtx_insn *.
282 (create_copy_of_insn_rtx): Likewise.
283 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
284 (create_copy_of_insn_rtx): Likewise, also for local "res".
285
286 2014-08-21 David Malcolm <dmalcolm@redhat.com>
287
288 * rtl.h (find_first_parameter_load): Strengthen return type from
289 rtx to rtx_insn *.
290 * rtlanal.c (find_first_parameter_load): Strengthen return type
291 from rtx to rtx_insn *. Add checked cast for now, to postpone
292 strengthening the params.
293
294 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
295
296 PR fortran/44054
297 * diagnostic.c: Set default caret.
298 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
299 line is needed.
300 * diagnostic.h (struct diagnostic_context):
301
302 2014-08-21 David Malcolm <dmalcolm@redhat.com>
303
304 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
305 (sel_bb_head): Strengthen return type insn_t (currently just an
306 rtx) to rtx_insn *.
307 (sel_bb_end): Likewise.
308
309 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
310 (sel_bb_head): Strengthen return type and local "head" from
311 insn_t (currently just an rtx) to rtx_insn *.
312 (sel_bb_end): Likewise for return type.
313 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
314 working with insn.
315
316 2014-08-21 David Malcolm <dmalcolm@redhat.com>
317
318 * basic-block.h (get_last_bb_insn): Strengthen return type from
319 rtx to rtx_insn *.
320 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
321 end".
322
323 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
324
325 PR fortran/44054
326 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
327 to here ...
328 (diagnostic_report_diagnostic): ... from here.
329 * toplev.c (general_init): Move code to c-family.
330
331 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
332
333 * df.h (web_entry_base): Replace existing struct web_entry with a
334 new class web_entry_base with only the predecessor member.
335 (unionfind_root): Remove declaration and move to class member.
336 (unionfind_union): Remove declaration and move to friend
337 function.
338 (union_defs): Remove declaration.
339 * web.c (web_entry_base::unionfind_root): Modify to be member
340 function and adjust accessors.
341 (unionfind_union): Modify to be friend function and adjust
342 accessors.
343 (web_entry): New subclass of web_entry_base containing the reg
344 member.
345 (union_match_dups): Modify for struct -> class changes.
346 (union_defs): Likewise.
347 (entry_register): Likewise.
348 (pass_web::execute): Likewise.
349
350 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
351
352 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
353 builtin define __VEC_ELEMENT_REG_ORDER__.
354
355 2014-08-20 Martin Jambor <mjambor@suse.cz>
356 Wei Mi <wmi@google.com>
357
358 PR ipa/60449
359 PR middle-end/61776
360 * tree-ssa-operands.c (update_stmt_operands): Remove
361 MODIFIED_NORETURN_CALLS.
362 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
363 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
364 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
365 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
366 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
367 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
368 (gimple_call_set_ctrl_altering): New func.
369 (gimple_call_ctrl_altering_p): Ditto.
370 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
371 (make_blocks): Use gimple_call_initialize_ctrl_altering.
372 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
373 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
374 remove MODIFIED_NORETURN_CALLS.
375
376 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
377
378 * coverage.c (coverage_compute_profile_id): Return non-0;
379 also handle symbols with unique name.
380 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
381
382 2014-08-20 Steve Ellcey <sellcey@mips.com>
383
384 PR middle-end/49191
385 * doc/sourcebuild.texi (non_strict_align): New.
386
387 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
388
389 * cgraphunit.c (ipa_passes, compile): Reshedule
390 symtab_remove_unreachable_nodes passes; update comments.
391 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
392 TODO_remove_functions before the pass; the functions ought to be
393 already removed.
394 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
395 TODO_remove_functions.
396 * passes.c (pass_data_early_local_passes): Do not schedule function
397 removal.
398 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
399
400 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
401
402 PR c/59304
403 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
404 before setting the option.
405 * diagnostic.c (diagnostic_classify_diagnostic): Record
406 command-line status.
407
408 2014-08-20 Richard Biener <rguenther@suse.de>
409
410 PR lto/62190
411 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
412 to build uint{16,32,64}_type_node.
413
414 2014-08-20 Terry Guo <terry.guo@arm.com>
415
416 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
417 with immediate_operand.
418
419 2014-08-20 David Malcolm <dmalcolm@redhat.com>
420
421 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
422 "insn" from an as_a to a safe_as_a, for the case when "insn" is
423 NULL.
424
425 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
426
427 PR preprocessor/51303
428 * incpath.c (remove_duplicates): Use cpp_warning.
429
430 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
431
432 PR c/60975
433 PR c/53063
434 * doc/options.texi (CPP): Document it.
435 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
436 * optc-gen.awk: Handle CPP.
437 * opth-gen.awk: Likewise.
438
439 2014-08-19 David Malcolm <dmalcolm@redhat.com>
440
441 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
442 rtx_insn *.
443 (duplicate_insn_chain): Likewise.
444 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
445 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
446 checked cast for now (until we can strengthen the params in the
447 same way).
448 (duplicate_insn_chain): Likewise.
449
450 2014-08-19 David Malcolm <dmalcolm@redhat.com>
451
452 * rtl.h (next_cc0_user): Strengthen return type from rtx to
453 rtx_insn *.
454 (prev_cc0_setter): Likewise.
455
456 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
457 rtx_insn *, adding checked casts for now as necessary.
458 (prev_cc0_setter): Likewise.
459
460 2014-08-19 David Malcolm <dmalcolm@redhat.com>
461
462 * expr.h (emit_move_insn): Strengthen return type from rtx to
463 rtx_insn *.
464 (emit_move_insn_1): Likewise.
465 (emit_move_complex_push): Likewise.
466 (emit_move_complex_parts): Likewise.
467
468 * expr.c (emit_move_via_integer): Strengthen return type from rtx
469 to rtx_insn *. Replace use of NULL_RTX with NULL when working
470 with insns.
471 (emit_move_complex_push): Strengthen return type from rtx to
472 rtx_insn *.
473 (emit_move_complex): Likewise, also for local "ret".
474 (emit_move_ccmode): Likewise.
475 (emit_move_multi_word): Likewise for return type and locals
476 "last_insn", "seq".
477 (emit_move_insn_1): Likewise for return type and locals "result",
478 "ret".
479 (emit_move_insn): Likewise for return type and local "last_insn".
480 (compress_float_constant): Likewise.
481
482 2014-08-19 David Malcolm <dmalcolm@redhat.com>
483
484 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
485 from rtx to rtx_insn *.
486
487 * rtl.h (emit_insn_before): Likewise.
488 (emit_insn_before_noloc): Likewise.
489 (emit_insn_before_setloc): Likewise.
490 (emit_jump_insn_before): Likewise.
491 (emit_jump_insn_before_noloc): Likewise.
492 (emit_jump_insn_before_setloc): Likewise.
493 (emit_call_insn_before): Likewise.
494 (emit_call_insn_before_noloc): Likewise.
495 (emit_call_insn_before_setloc): Likewise.
496 (emit_debug_insn_before): Likewise.
497 (emit_debug_insn_before_noloc): Likewise.
498 (emit_debug_insn_before_setloc): Likewise.
499 (emit_label_before): Likewise.
500 (emit_insn_after): Likewise.
501 (emit_insn_after_noloc): Likewise.
502 (emit_insn_after_setloc): Likewise.
503 (emit_jump_insn_after): Likewise.
504 (emit_jump_insn_after_noloc): Likewise.
505 (emit_jump_insn_after_setloc): Likewise.
506 (emit_call_insn_after): Likewise.
507 (emit_call_insn_after_noloc): Likewise.
508 (emit_call_insn_after_setloc): Likewise.
509 (emit_debug_insn_after): Likewise.
510 (emit_debug_insn_after_noloc): Likewise.
511 (emit_debug_insn_after_setloc): Likewise.
512 (emit_label_after): Likewise.
513 (emit_insn): Likewise.
514 (emit_debug_insn): Likewise.
515 (emit_jump_insn): Likewise.
516 (emit_call_insn): Likewise.
517 (emit_label): Likewise.
518 (gen_clobber): Likewise.
519 (emit_clobber): Likewise.
520 (gen_use): Likewise.
521 (emit_use): Likewise.
522 (emit): Likewise.
523
524 (emit_barrier_before): Strengthen return type from rtx to
525 rtx_barrier *.
526 (emit_barrier_after): Likewise.
527 (emit_barrier): Likewise.
528
529 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
530 from rtx to rtx_insn *. Add checked casts for now when converting
531 "last" from rtx to rtx_insn *.
532 (emit_insn_before_noloc): Likewise for return type.
533 (emit_jump_insn_before_noloc): Likewise.
534 (emit_call_insn_before_noloc): Likewise.
535 (emit_debug_insn_before_noloc): Likewise.
536 (emit_barrier_before): Strengthen return type and local "insn"
537 from rtx to rtx_barrier *.
538 (emit_label_before): Strengthen return type from rtx to
539 rtx_insn *. Add checked cast for now when returning param
540 (emit_pattern_after_noloc): Strengthen return type from rtx to
541 rtx_insn *. Add checked casts for now when converting "last" from
542 rtx to rtx_insn *.
543 (emit_insn_after_noloc): Strengthen return type from rtx to
544 rtx_insn *.
545 (emit_jump_insn_after_noloc): Likewise.
546 (emit_call_insn_after_noloc): Likewise.
547 (emit_debug_insn_after_noloc): Likewise.
548 (emit_barrier_after): Strengthen return type from rtx to
549 rtx_barrier *.
550 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
551 Add checked cast for now when converting "label" from rtx to
552 rtx_insn *.
553 (emit_pattern_after_setloc): Strengthen return type from rtx to
554 rtx_insn *. Add checked casts for now when converting "last" from
555 rtx to rtx_insn *.
556 (emit_pattern_after): Strengthen return type from rtx to
557 rtx_insn *.
558 (emit_insn_after_setloc): Likewise.
559 (emit_insn_after): Likewise.
560 (emit_jump_insn_after_setloc): Likewise.
561 (emit_jump_insn_after): Likewise.
562 (emit_call_insn_after_setloc): Likewise.
563 (emit_call_insn_after): Likewise.
564 (emit_debug_insn_after_setloc): Likewise.
565 (emit_debug_insn_after): Likewise.
566 (emit_pattern_before_setloc): Likewise. Add checked casts for now
567 when converting "last" from rtx to rtx_insn *.
568 (emit_pattern_before): Strengthen return type from rtx to
569 rtx_insn *.
570 (emit_insn_before_setloc): Likewise.
571 (emit_insn_before): Likewise.
572 (emit_jump_insn_before_setloc): Likewise.
573 (emit_jump_insn_before): Likewise.
574 (emit_call_insn_before_setloc): Likewise.
575 (emit_call_insn_before): Likewise.
576 (emit_debug_insn_before_setloc): Likewise.
577 (emit_debug_insn_before): Likewise.
578 (emit_insn): Strengthen return type and locals "last", "insn",
579 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
580 within cases where we know we have an insn.
581 (emit_debug_insn): Likewise.
582 (emit_jump_insn): Likewise.
583 (emit_call_insn): Strengthen return type and local "insn" from rtx
584 to rtx_insn *.
585 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
586 a checked cast to rtx_insn * for now on "label".
587 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
588 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
589 (emit_use): Likewise.
590 (gen_use): Likewise, also for local "seq".
591 (emit): Likewise for return type and local "insn".
592 (rtx_insn): Likewise for return type and local "new_rtx".
593
594 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
595 from rtx to rtx_barrier *.
596
597 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
598 changed return type from rtx to rtx_insn *, we must update
599 "emit_fn" type, and this in turn means updating...
600 (frame_insn): ...this. Strengthen return type from rtx to
601 rtx_insn *. Introduce a new local "insn" of the appropriate type.
602
603 2014-08-19 David Malcolm <dmalcolm@redhat.com>
604
605 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
606 rtx to rtx_jump_table_data *. Also for local.
607 * rtl.h (emit_jump_table_data): Likewise.
608
609 2014-08-19 David Malcolm <dmalcolm@redhat.com>
610
611 * basic-block.h (create_basic_block_structure): Strengthen third
612 param "bb_note" from rtx to rtx_note *.
613 * rtl.h (emit_note_before): Strengthen return type from rtx to
614 rtx_note *.
615 (emit_note_after): Likewise.
616 (emit_note): Likewise.
617 (emit_note_copy): Likewise. Also, strengthen param similarly.
618 * function.h (struct rtl_data): Strengthen field
619 "x_stack_check_probe_note" from rtx to rtx_note *.
620
621 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
622 from rtx to rtx_note *.
623 * cfgrtl.c (create_basic_block_structure): Strengthen third param
624 "bb_note" from rtx to rtx_note *.
625 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
626 when calling emit_note_copy.
627 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
628 rtx_note *.
629 (emit_note_after): Likewise.
630 (emit_note_before): Likewise.
631 (emit_note_copy): Likewise. Also, strengthen param similarly.
632 (emit_note): Likewise.
633 * except.c (emit_note_eh_region_end): Likewise for return type.
634 Strengthen local "next" from rtx to rtx_insn *.
635 (convert_to_eh_region_ranges): Strengthen local "note"
636 from rtx to rtx_note *.
637 * final.c (change_scope): Likewise.
638 (reemit_insn_block_notes): Likewise, for both locals named "note".
639 Also, strengthen local "insn" from rtx to rtx_insn *.
640 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
641 rtx to rtx_note *.
642 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
643 strengthen local "seq" from rtx to rtx_insn *.
644 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
645 to rtx_note *.
646 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
647 vec<rtx_note *>.
648 (get_bb_note_from_pool): Strengthen return type from rtx to
649 rtx_note *.
650 (sel_create_basic_block): Strengthen local "new_bb_note" from
651 insn_t to rtx_note *.
652 * var-tracking.c (emit_note_insn_var_location): Strengthen local
653 "note" from rtx to rtx_note *.
654 (emit_notes_in_bb): Likewise.
655
656 2014-08-19 David Malcolm <dmalcolm@redhat.com>
657
658 * function.h (struct rtl_data): Strengthen field
659 "x_parm_birth_insn" from rtx to rtx_insn *.
660 * function.c (struct assign_parm_data_all): Strengthen fields
661 "first_conversion_insn" and "last_conversion_insn" from rtx to
662 rtx_insn *.
663
664 2014-08-19 David Malcolm <dmalcolm@redhat.com>
665
666 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
667 to rtx_insn *; also for local "var_end_seq".
668 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
669 (maybe_cleanup_end_of_block): Likewise for param "last" and local
670 "insn".
671 (expand_gimple_cond): Likewise for locals "last2" and "last".
672 (mark_transaction_restart_calls): Likewise for local "insn".
673 (expand_gimple_stmt): Likewise for return type and locals "last"
674 and "insn".
675 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
676 (avoid_complex_debug_insns): Likewise for param "insn".
677 (expand_debug_locations): Likewise for locals "insn", "last",
678 "prev_insn" and "insn2".
679 (expand_gimple_basic_block): Likewise for local "last".
680 (construct_exit_block): Likewise for locals "head", "end",
681 "orig_end".
682 (pass_expand::execute): Likewise for locals "var_seq",
683 "var_ret_seq", "next".
684
685 2014-08-19 David Malcolm <dmalcolm@redhat.com>
686
687 * asan.h (asan_emit_stack_protection): Strengthen return type from
688 rtx to rtx_insn *.
689 * asan.c (asan_emit_stack_protection): Likewise. Add local
690 "insns" to hold the return value.
691
692 2014-08-19 David Malcolm <dmalcolm@redhat.com>
693
694 * basic-block.h (bb_note): Strengthen return type from rtx to
695 rtx_note *.
696 * sched-int.h (bb_note): Likewise.
697 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
698
699 2014-08-19 David Malcolm <dmalcolm@redhat.com>
700
701 * rtl.h (make_insn_raw): Strengthen return type from rtx to
702 rtx_insn *.
703
704 * emit-rtl.c (make_insn_raw): Strengthen return type and local
705 "insn" from rtx to rtx_insn *.
706 (make_debug_insn_raw): Strengthen return type from rtx to
707 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
708 (make_jump_insn_raw): Strengthen return type from rtx to
709 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
710 (make_call_insn_raw): Strengthen return type from rtx to
711 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
712 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
713 callback from rtx to rtx_insn *; likewise for local "insn" and
714 "next", adding a checked cast to rtx_insn in the relevant cases of
715 the switch statement.
716 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
717 callback from rtx to rtx_insn *.
718 (emit_pattern_after_setloc): Likewise.
719 (emit_pattern_after): Likewise.
720 (emit_pattern_before_setloc): Likewise.
721 (emit_pattern_before): Likewise.
722
723 2014-08-19 David Malcolm <dmalcolm@redhat.com>
724
725 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
726 rtx_call_insn *.
727 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
728 accepting an rtx_insn *.
729 (last_call_insn): Strengthen return type from rtx to
730 rtx_call_insn *.
731
732 2014-08-19 David Malcolm <dmalcolm@redhat.com>
733
734 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
735 "insns" from rtx to rtx_insn *.
736 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
737 locals "insn" and "prev".
738
739 2014-08-19 David Malcolm <dmalcolm@redhat.com>
740
741 * rtl.h (tablejump_p): Strengthen third param from rtx * to
742 rtx_jump_table_data **.
743
744 * cfgbuild.c (make_edges): Introduce local "table", using it in
745 place of "tmp" for jump table data.
746 (find_bb_boundaries): Strengthen local "table" from rtx to
747 rtx_jump_table_data *.
748 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
749 (outgoing_edges_match): Likewise for locals "table1" and "table2".
750 (try_crossjump_to_edge): Likewise.
751 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
752 "table".
753 (patch_jump_insn): Introduce local "table", using it in place of
754 "tmp" for jump table data.
755 (force_nonfallthru_and_redirect): Introduce local "table", so that
756 call to tablejump_p can receive an rtx_jump_table_data **. Update
757 logic around the call to overwrite "note" appropriately if
758 tablejump_p returns non-zero.
759 (get_last_bb_insn): Introduce local "table", using it in place of
760 "tmp" for jump table data.
761 * dwarf2cfi.c (create_trace_edges): Likewise.
762
763 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
764 from rtx to rtx_jump_table_data *.
765 (create_fix_barrier): Strengthen local "tmp" from rtx to
766 rtx_jump_table_data *.
767 (arm_reorg): Likewise for local "table".
768
769 * config/s390/s390.c (s390_chunkify_start): Likewise.
770
771 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
772
773 * jump.c (delete_related_insns): Strengthen local "lab_next" from
774 rtx to rtx_jump_table_data *.
775
776 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
777 rtx_jump_table_data **. Add a checked cast when writing through
778 the pointer: we know there that local "table" is non-NULL and that
779 JUMP_TABLE_DATA_P (table) holds.
780 (label_is_jump_target_p): Introduce local "table", using it in
781 place of "tmp" for jump table data.
782
783 2014-08-19 Marek Polacek <polacek@redhat.com>
784
785 PR c++/62153
786 * doc/invoke.texi: Document -Wbool-compare.
787
788 2014-08-19 David Malcolm <dmalcolm@redhat.com>
789
790 * rtl.h (entry_of_function): Strengthen return type from rtx to
791 rtx_insn *.
792 * cfgrtl.c (entry_of_function): Likewise.
793
794 2014-08-19 David Malcolm <dmalcolm@redhat.com>
795
796 * emit-rtl.h (get_insns): Strengthen return type from rtx to
797 rtx_insn *, adding a checked cast for now.
798 (get_last_insn): Likewise.
799
800 2014-08-19 David Malcolm <dmalcolm@redhat.com>
801
802 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
803 rtx_code_label *.
804
805 * emit-rtl.c (gen_label_rtx): Likewise.
806
807 2014-08-19 David Malcolm <dmalcolm@redhat.com>
808
809 * rtl.h (previous_insn): Strengthen return type from rtx to
810 rtx_insn *.
811 (next_insn): Likewise.
812 (prev_nonnote_insn): Likewise.
813 (prev_nonnote_insn_bb): Likewise.
814 (next_nonnote_insn): Likewise.
815 (next_nonnote_insn_bb): Likewise.
816 (prev_nondebug_insn): Likewise.
817 (next_nondebug_insn): Likewise.
818 (prev_nonnote_nondebug_insn): Likewise.
819 (next_nonnote_nondebug_insn): Likewise.
820 (prev_real_insn): Likewise.
821 (next_real_insn): Likewise.
822 (prev_active_insn): Likewise.
823 (next_active_insn): Likewise.
824
825 * emit-rtl.c (next_insn): Strengthen return type from rtx to
826 rtx_insn *, adding a checked cast.
827 (previous_insn): Likewise.
828 (next_nonnote_insn): Likewise.
829 (next_nonnote_insn_bb): Likewise.
830 (prev_nonnote_insn): Likewise.
831 (prev_nonnote_insn_bb): Likewise.
832 (next_nondebug_insn): Likewise.
833 (prev_nondebug_insn): Likewise.
834 (next_nonnote_nondebug_insn): Likewise.
835 (prev_nonnote_nondebug_insn): Likewise.
836 (next_real_insn): Likewise.
837 (prev_real_insn): Likewise.
838 (next_active_insn): Likewise.
839 (prev_active_insn): Likewise.
840
841 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
842 param "stepfunc" so that it returns an rtx_insn * rather than an
843 rtx, to track the change to prev_nonnote_insn_bb, which is the
844 only function this is called with.
845 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
846
847 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
848
849 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
850 assert.
851
852 2014-08-19 David Malcolm <dmalcolm@redhat.com>
853
854 * coretypes.h (class rtx_debug_insn): Add forward declaration.
855 (class rtx_nonjump_insn): Likewise.
856 (class rtx_jump_insn): Likewise.
857 (class rtx_call_insn): Likewise.
858 (class rtx_jump_table_data): Likewise.
859 (class rtx_barrier): Likewise.
860 (class rtx_code_label): Likewise.
861 (class rtx_note): Likewise.
862
863 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
864 adding the invariant DEBUG_INSN_P (X).
865 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
866 the invariant NONJUMP_INSN_P (X).
867 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
868 the invariant JUMP_P (X).
869 (class rtx_call_insn): New, a subclass of rtx_insn, adding
870 the invariant CALL_P (X).
871 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
872 invariant JUMP_TABLE_DATA_P (X).
873 (class rtx_barrier): New, a subclass of rtx_insn, adding the
874 invariant BARRIER_P (X).
875 (class rtx_code_label): New, a subclass of rtx_insn, adding
876 the invariant LABEL_P (X).
877 (class rtx_note): New, a subclass of rtx_insn, adding
878 the invariant NOTE_P(X).
879 (is_a_helper <rtx_debug_insn *>::test): New.
880 (is_a_helper <rtx_nonjump_insn *>::test): New.
881 (is_a_helper <rtx_jump_insn *>::test): New.
882 (is_a_helper <rtx_call_insn *>::test): New.
883 (is_a_helper <rtx_jump_table_data *>::test): New functions,
884 overloaded for both rtx and rtx_insn *.
885 (is_a_helper <rtx_barrier *>::test): New.
886 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
887 for both rtx and rtx_insn *.
888 (is_a_helper <rtx_note *>::test): New.
889
890 2014-08-19 Marek Polacek <polacek@redhat.com>
891
892 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
893 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
894 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
895 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
896
897 2014-08-19 David Malcolm <dmalcolm@redhat.com>
898
899 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
900 rtx_insn *. To help with transition, for now, convert from an
901 access macro into a pair of functions: BND_TO, returning an
902 rtx_insn *, and...
903 (SET_BND_TO): New function, for use where BND_TO is used as an
904 lvalue.
905
906 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
907 SET_BND_TO.
908 (BND_TO): New function, adding a checked cast.
909 (SET_BND_TO): New function.
910
911 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
912 SET_BND_TO.
913 (compute_av_set_on_boundaries): Likewise.
914
915 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
916
917 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
918 destination if it is used in source.
919 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
920 (*popcount<mode>2_falsedep_1): Likewise.
921
922 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
923
924 PR other/62168
925 * configure.ac: Set install_gold_as_default to no first.
926 * configure: Regenerated.
927
928 2014-08-19 David Malcolm <dmalcolm@redhat.com>
929
930 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
931 "note_list" field will eventually be an rtx_insn *. To help with
932 transition, for now, convert from an access macro into a pair of
933 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
934 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
935 used as an lvalue.
936
937 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
938 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
939
940 * sel-sched-ir.c (init_bb): Likewise.
941 (sel_restore_notes): Likewise.
942 (move_bb_info): Likewise.
943 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
944 (SET_BB_NOTE_LIST): New function.
945
946 2014-08-19 David Malcolm <dmalcolm@redhat.com>
947
948 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
949 field will eventually be an rtx_insn *. To help with transition,
950 for now, convert from an access macro into a pair of functions:
951 VINSN_INSN_RTX, returning an rtx_insn *, and...
952 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
953 is used as an lvalue.
954
955 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
956 SET_VINSN_INSN_RTX where it's used as an lvalue.
957 (VINSN_INSN_RTX): New function.
958 (SET_VINSN_INSN_RTX): New function.
959
960 2014-08-19 David Malcolm <dmalcolm@redhat.com>
961
962 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
963 eventually be rtx_insn *, but to help with transition, for now,
964 convert from an access macro into a pair of functions: DEP_PRO
965 returning an rtx_insn * and...
966 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
967 lvalue, returning an rtx&.
968 (DEP_CON): Analogous changes to DEP_PRO above.
969 (SET_DEP_CON): Likewise.
970
971 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
972 an lvalue to SET_DEP_CON.
973 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
974 (sd_copy_back_deps): Likewise for DEP_CON.
975 (DEP_PRO): New function, adding a checked cast for now.
976 (DEP_CON): Likewise.
977 (SET_DEP_PRO): New function.
978 (SET_DEP_CON): Likewise.
979
980 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
981
982 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
983 (extra_options): Add i386/cygwin.opt.
984 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
985 (CPP_SPEC): Accept -pthread.
986 (LINK_SPEC): Ditto.
987 (GOMP_SELF_SPECS): Update comment.
988 * config/i386/cygwin.opt: New file for -pthread flag.
989
990 2014-08-19 David Malcolm <dmalcolm@redhat.com>
991
992 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
993 * df.h (DF_REF_INSN): Convert from a macro to a function, so
994 that we can return an rtx_insn *.
995
996 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
997
998 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
999 when building executables, not DLLs. Add --large-address-aware
1000 under the same conditions.
1001 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
1002 when building executables, not DLLs. Add --large-address-aware
1003 under the same conditions when using -m32.
1004
1005 * config/i386/cygwin-stdint.h: Throughout, make type
1006 definitions dependent on target architecture, not host.
1007
1008 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1009
1010 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
1011 the return type from rtx to rtx_insn *, which will enable various
1012 conversions in followup patches. For now this is is done by a
1013 checked cast.
1014 (NEXT_INSN): Likewise.
1015 (SET_PREV_INSN): Convert to an inline function. This is intended
1016 for use as an lvalue, and so returns an rtx& to allow in-place
1017 modification.
1018 (SET_NEXT_INSN): Likewise.
1019
1020 2014-07-08 Mark Wielaard <mjw@redhat.com>
1021
1022 PR debug/59051
1023 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
1024
1025 2014-08-19 Marek Polacek <polacek@redhat.com>
1026
1027 PR c/61271
1028 * cgraphunit.c (handle_alias_pairs): Fix condition.
1029
1030 2014-08-19 Richard Biener <rguenther@suse.de>
1031
1032 * gimple-fold.c (fold_gimple_assign): Properly build a
1033 null-pointer constant when devirtualizing addresses.
1034
1035 2014-07-07 Mark Wielaard <mjw@redhat.com>
1036
1037 * dwarf2out.c (decl_quals): New function.
1038 (modified_type_die): Take one cv_quals argument instead of two,
1039 one for const and one for volatile.
1040 (add_type_attribute): Likewise.
1041 (generic_parameter_die): Call add_type_attribute with one modifier
1042 argument.
1043 (base_type_for_mode): Likewise.
1044 (add_bounds_info): Likewise.
1045 (add_subscript_info): Likewise.
1046 (gen_array_type_die): Likewise.
1047 (gen_descr_array_type_die): Likewise.
1048 (gen_entry_point_die): Likewise.
1049 (gen_enumeration_type_die): Likewise.
1050 (gen_formal_parameter_die): Likewise.
1051 (gen_subprogram_die): Likewise.
1052 (gen_variable_die): Likewise.
1053 (gen_const_die): Likewise.
1054 (gen_field_die): Likewise.
1055 (gen_pointer_type_die): Likewise.
1056 (gen_reference_type_die): Likewise.
1057 (gen_ptr_to_mbr_type_die): Likewise.
1058 (gen_inheritance_die): Likewise.
1059 (gen_subroutine_type_die): Likewise.
1060 (gen_typedef_die): Likewise.
1061 (force_type_die): Likewise.
1062
1063 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1064
1065 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
1066 if unset.
1067 * configure: Regenerate.
1068
1069 2014-08-19 Richard Biener <rguenther@suse.de>
1070
1071 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
1072 DECL_EXTERNALs in BLOCKs as non-references.
1073 * tree-streamer-out.c (streamer_write_chain): Likewise.
1074
1075 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
1076 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1077 Anna Tikhonova <anna.tikhonova@intel.com>
1078 Ilya Tocar <ilya.tocar@intel.com>
1079 Andrey Turetskiy <andrey.turetskiy@intel.com>
1080 Ilya Verbin <ilya.verbin@intel.com>
1081 Kirill Yukhin <kirill.yukhin@intel.com>
1082 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1083
1084 * config/i386/sse.md
1085 (define_mode_iterator VI48_AVX512F): Delete.
1086 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
1087 (define_mode_iterator VI2_AVX512VL): Ditto.
1088 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
1089 Delete.
1090 (define_insn
1091 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
1092 New.
1093 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
1094 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
1095 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1096 with VI48_AVX512F_AVX512VL): New.
1097 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1098 with VI2_AVX512VL): Ditto.
1099
1100 2014-08-19 Marek Polacek <polacek@redhat.com>
1101
1102 * doc/invoke.texi: Document -Wc99-c11-compat.
1103
1104 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1105
1106 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1107 for rvalues, and...
1108 (SET_PREV_INSN): New macro, for use as an lvalue.
1109 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1110
1111 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1112 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1113 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1114 (fixup_abnormal_edges): Likewise.
1115 (unlink_insn_chain): Likewise.
1116 (fixup_reorder_chain): Likewise.
1117 (cfg_layout_delete_block): Likewise.
1118 (cfg_layout_merge_blocks): Likewise.
1119 * combine.c (update_cfg_for_uncondjump): Likewise.
1120 * emit-rtl.c (link_insn_into_chain): Likewise.
1121 (remove_insn): Likewise.
1122 (delete_insns_since): Likewise.
1123 (reorder_insns_nobb): Likewise.
1124 (emit_insn_after_1): Likewise.
1125 * final.c (rest_of_clean_state): Likewise.
1126 (final_scan_insn): Likewise.
1127 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1128 * haifa-sched.c (concat_note_lists): Likewise.
1129 (remove_notes): Likewise.
1130 (restore_other_notes): Likewise.
1131 (move_insn): Likewise.
1132 (unlink_bb_notes): Likewise.
1133 (restore_bb_notes): Likewise.
1134 * jump.c (delete_for_peephole): Likewise.
1135 * optabs.c (emit_libcall_block_1): Likewise.
1136 * reorg.c (emit_delay_sequence): Likewise.
1137 (fill_simple_delay_slots): Likewise.
1138 * sel-sched-ir.c (sel_move_insn): Likewise.
1139 (sel_remove_insn): Likewise.
1140 (get_bb_note_from_pool): Likewise.
1141 * sel-sched.c (move_nop_to_previous_block): Likewise.
1142
1143 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1144 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1145 (c6x_gen_bundles): Likewise.
1146 (hwloop_optimize): Likewise.
1147 * config/frv/frv.c (frv_function_prologue): Likewise.
1148 (frv_register_nop): Likewise.
1149 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1150 (ia64_reorg): Likewise.
1151 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1152 (mep_make_bundle): Likewise.
1153 (mep_bundle_insns): Likewise.
1154 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1155 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1156 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1157
1158 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1159
1160 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1161 return type from rtx to rtx_insn *.
1162 (BB_END): Likewise.
1163 (BB_HEADER): Likewise.
1164 (BB_FOOTER): Likewise.
1165 (SET_BB_HEAD): Convert to a function.
1166 (SET_BB_END): Likewise.
1167 (SET_BB_HEADER): Likewise.
1168 (SET_BB_FOOTER): Likewise.
1169
1170 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1171 Strengthen the return type from rtx to rtx_insn *. For now, this
1172 is done by adding a checked cast, but this will eventually
1173 become a field lookup.
1174 (BB_END): Likewise.
1175 (BB_HEADER): Likewise.
1176 (BB_FOOTER): Likewise.
1177 (SET_BB_HEAD): New function, from macro of same name. This is
1178 intended for use as an lvalue, and so returns an rtx& to allow
1179 in-place modification.
1180 (SET_BB_END): Likewise.
1181 (SET_BB_HEADER): Likewise.
1182 (SET_BB_FOOTER): Likewise.
1183
1184 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1185
1186 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1187 for rvalues, and...
1188 (SET_BB_HEAD): New macro, for use as a lvalue.
1189 (BB_END, SET_BB_END): Likewise.
1190 (BB_HEADER, SET_BB_HEADER): Likewise.
1191 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1192
1193 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1194 of BB_* macros into SET_BB_* macros.
1195 (fix_crossing_unconditional_branches): Likewise.
1196 * caller-save.c (save_call_clobbered_regs): Likewise.
1197 (insert_one_insn): Likewise.
1198 * cfgbuild.c (find_bb_boundaries): Likewise.
1199 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1200 (outgoing_edges_match): Likewise.
1201 (try_optimize_cfg): Likewise.
1202 * cfgexpand.c (expand_gimple_cond): Likewise.
1203 (expand_gimple_tailcall): Likewise.
1204 (expand_gimple_basic_block): Likewise.
1205 (construct_exit_block): Likewise.
1206 * cfgrtl.c (delete_insn): Likewise.
1207 (create_basic_block_structure): Likewise.
1208 (rtl_delete_block): Likewise.
1209 (rtl_split_block): Likewise.
1210 (emit_nop_for_unique_locus_between): Likewise.
1211 (rtl_merge_blocks): Likewise.
1212 (block_label): Likewise.
1213 (try_redirect_by_replacing_jump): Likewise.
1214 (emit_barrier_after_bb): Likewise.
1215 (fixup_abnormal_edges): Likewise.
1216 (record_effective_endpoints): Likewise.
1217 (relink_block_chain): Likewise.
1218 (fixup_reorder_chain): Likewise.
1219 (fixup_fallthru_exit_predecessor): Likewise.
1220 (cfg_layout_duplicate_bb): Likewise.
1221 (cfg_layout_split_block): Likewise.
1222 (cfg_layout_delete_block): Likewise.
1223 (cfg_layout_merge_blocks): Likewise.
1224 * combine.c (update_cfg_for_uncondjump): Likewise.
1225 * emit-rtl.c (add_insn_after): Likewise.
1226 (remove_insn): Likewise.
1227 (reorder_insns): Likewise.
1228 (emit_insn_after_1): Likewise.
1229 * haifa-sched.c (get_ebb_head_tail): Likewise.
1230 (restore_other_notes): Likewise.
1231 (move_insn): Likewise.
1232 (sched_extend_bb): Likewise.
1233 (fix_jump_move): Likewise.
1234 * ifcvt.c (noce_process_if_block): Likewise.
1235 (dead_or_predicable): Likewise.
1236 * ira.c (update_equiv_regs): Likewise.
1237 * reg-stack.c (change_stack): Likewise.
1238 * sel-sched-ir.c (sel_move_insn): Likewise.
1239 * sel-sched.c (move_nop_to_previous_block): Likewise.
1240
1241 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1242 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1243
1244 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1245
1246 * rtl.h (for_each_rtx_in_insn): New function.
1247 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1248
1249 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1250
1251 * coretypes.h (class rtx_insn): Add forward declaration.
1252
1253 * rtl.h: Include is-a.h.
1254 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1255 workaround to ensure gengtype knows inheritance is occurring,
1256 whilst continuing to use the pre-existing special-casing for
1257 rtx_def.
1258 (class rtx_insn): New subclass of rtx_def, adding the
1259 invariant that we're dealing with something we can sanely use
1260 INSN_UID, NEXT_INSN, PREV_INSN on.
1261 (is_a_helper <rtx_insn *>::test): New.
1262 (is_a_helper <const rtx_insn *>::test): New.
1263
1264 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1265
1266 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1267
1268 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1269
1270 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1271 comdats as extern.
1272
1273 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1274
1275 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1276 to BUILT_IN_UNREACHABLE.
1277
1278 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1279
1280 PR target/62011
1281 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1282 New tune flag.
1283 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1284 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1285 (ffs<mode>2): Do not expand with tzcnt for
1286 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1287 (ffssi2_no_cmove): Ditto.
1288 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1289 (ctz<mode>2): New expander.
1290 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1291 (*ctz<mode>2_falsedep): New insn.
1292 (*ctz<mode>2): Rename from ctz<mode>2.
1293 (clz<mode>2_lzcnt): New expander.
1294 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1295 (*clz<mode>2_lzcnt_falsedep): New insn.
1296 (*clz<mode>2): Rename from ctz<mode>2.
1297 (popcount<mode>2): New expander.
1298 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1299 (*popcount<mode>2_falsedep): New insn.
1300 (*popcount<mode>2): Rename from ctz<mode>2.
1301 (*popcount<mode>2_cmp): Remove.
1302 (*popcountsi2_cmp_zext): Ditto.
1303
1304 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1305
1306 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1307 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1308 * config/microblaze/microblaze.h
1309 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1310
1311 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1312
1313 PR other/62168
1314 * configure.ac: Set install_gold_as_default to no for
1315 --enable-gold=no.
1316 * configure: Regenerated.
1317
1318 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1319
1320 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1321 * config.in: Add undef of HAVE_isl.
1322 * configure: Regenerate.
1323 * configure.ac: Add definition of HAVE_isl.
1324 * graphite-blocking.c: Add checking of HAVE_isl.
1325 * graphite-dependences.c: Likewise.
1326 * graphite-interchange.c: Likewise.
1327 * graphite-isl-ast-to-gimple.c: Likewise.
1328 * graphite-optimize-isl.c: Likewise.
1329 * graphite-poly.c: Likewise.
1330 * graphite-scop-detection.c: Likewise.
1331 * graphite-sese-to-poly.c: Likewise.
1332 * graphite.c: Likewise.
1333 * toplev.c: Replace the checking of HAVE_cloog with the checking
1334 of HAVE_isl.
1335
1336 2014-08-18 Richard Biener <rguenther@suse.de>
1337
1338 PR tree-optimization/62090
1339 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1340 (fold_builtin_3): Do not fold snprintf.
1341 (fold_builtin_4): Likewise.
1342 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1343 moved from builtins.c.
1344 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1345 (gimple_fold_builtin): Do not fold sprintf here.
1346
1347 2014-08-18 Richard Biener <rguenther@suse.de>
1348
1349 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1350 code to ...
1351 (maybe_canonicalize_mem_ref_addr): ... this function.
1352 (fold_stmt_1): Apply it here before all simplification.
1353
1354 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1355
1356 PR ipa/61800
1357 * cgraph.h (cgraph_node::create_indirect_edge): Add
1358 compute_indirect_info param.
1359 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1360 indirect_info only when it is required.
1361 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1362 indirect_info fore cloned indirect edge.
1363
1364 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1365 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1366 Anna Tikhonova <anna.tikhonova@intel.com>
1367 Ilya Tocar <ilya.tocar@intel.com>
1368 Andrey Turetskiy <andrey.turetskiy@intel.com>
1369 Ilya Verbin <ilya.verbin@intel.com>
1370 Kirill Yukhin <kirill.yukhin@intel.com>
1371 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1372
1373 * config/i386/sse.md
1374 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1375 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1376
1377 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1378 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1379 Anna Tikhonova <anna.tikhonova@intel.com>
1380 Ilya Tocar <ilya.tocar@intel.com>
1381 Andrey Turetskiy <andrey.turetskiy@intel.com>
1382 Ilya Verbin <ilya.verbin@intel.com>
1383 Kirill Yukhin <kirill.yukhin@intel.com>
1384 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1385
1386 * config/i386/sse.md
1387 (define_mode_iterator VF1_AVX512VL): New.
1388 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1389 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1390 New.
1391
1392 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1393 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1394 Anna Tikhonova <anna.tikhonova@intel.com>
1395 Ilya Tocar <ilya.tocar@intel.com>
1396 Andrey Turetskiy <andrey.turetskiy@intel.com>
1397 Ilya Verbin <ilya.verbin@intel.com>
1398 Kirill Yukhin <kirill.yukhin@intel.com>
1399 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1400
1401 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1402 * config/i386/i386.md
1403 (define_code_iterator any_float): New.
1404 (define_code_attr floatsuffix): New.
1405 * config/i386/sse.md
1406 (define_mode_iterator VF1_128_256VL): New.
1407 (define_mode_iterator VF2_512_256VL): New.
1408 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1409 TARGET check.
1410 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1411 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1412 New.
1413 (define_mode_attr qq2pssuff): New.
1414 (define_mode_attr sselongvecmode): New.
1415 (define_mode_attr sselongvecmodelower): New.
1416 (define_mode_attr sseintvecmode3): New.
1417 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1418 New.
1419 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1420 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1421 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1422 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1423
1424 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1425 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1426 Anna Tikhonova <anna.tikhonova@intel.com>
1427 Ilya Tocar <ilya.tocar@intel.com>
1428 Andrey Turetskiy <andrey.turetskiy@intel.com>
1429 Ilya Verbin <ilya.verbin@intel.com>
1430 Kirill Yukhin <kirill.yukhin@intel.com>
1431 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1432
1433 * config/i386/sse.md
1434 (define_mode_iterator VF2_AVX512VL): New.
1435 (define_mode_attr sseintvecmode2): New.
1436 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1437 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1438 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1439 (define_insn
1440 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1441 Ditto.
1442 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1443 Ditto.
1444 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1445 Ditto.
1446
1447 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1449 Anna Tikhonova <anna.tikhonova@intel.com>
1450 Ilya Tocar <ilya.tocar@intel.com>
1451 Andrey Turetskiy <andrey.turetskiy@intel.com>
1452 Ilya Verbin <ilya.verbin@intel.com>
1453 Kirill Yukhin <kirill.yukhin@intel.com>
1454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1455
1456 * config/i386/i386.md
1457 (define_insn "*movoi_internal_avx"): Add evex version.
1458 (define_insn "*movti_internal"): Ditto.
1459
1460 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1461 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1462 Anna Tikhonova <anna.tikhonova@intel.com>
1463 Ilya Tocar <ilya.tocar@intel.com>
1464 Andrey Turetskiy <andrey.turetskiy@intel.com>
1465 Ilya Verbin <ilya.verbin@intel.com>
1466 Kirill Yukhin <kirill.yukhin@intel.com>
1467 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1468
1469 * config/i386/i386.md
1470 (define_attr "isa"): Add avx512dq, noavx512dq.
1471 (define_attr "enabled"): Ditto.
1472 * config/i386/sse.md
1473 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1474
1475 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1476 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1477 Anna Tikhonova <anna.tikhonova@intel.com>
1478 Ilya Tocar <ilya.tocar@intel.com>
1479 Andrey Turetskiy <andrey.turetskiy@intel.com>
1480 Ilya Verbin <ilya.verbin@intel.com>
1481 Kirill Yukhin <kirill.yukhin@intel.com>
1482 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1483
1484 * config/i386/i386.c
1485 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1486 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1487 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1488 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1489 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1490 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1491 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1492 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1493 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1494 * config/i386/sse.md
1495 (define_mode_iterator VMOVE): Allow V4TI mode.
1496 (define_mode_iterator V_AVX512VL): New.
1497 (define_mode_iterator V): New handling for AVX512VL.
1498 (define_insn "avx512f_load<mode>_mask"): Delete.
1499 (define_insn "<avx512>_load<mode>_mask"): New.
1500 (define_insn "avx512f_store<mode>_mask"): Delete.
1501 (define_insn "<avx512>_store<mode>_mask"): New.
1502
1503
1504 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1505
1506 PR sanitizer/62089
1507 * asan.c (instrument_derefs): Fix bitfield check.
1508
1509 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1510
1511 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1512 * config/rs6000/htm.md (ttest): Remove clobber.
1513 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1514 (and_operand): Reformat.
1515 (and_2rld_operand): New predicate.
1516 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1517 parameter.
1518 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1519 parameter. Handle AND directly.
1520 (rs6000_split_logical_di): Remove last parameter.
1521 (rs6000_split_logical): Remove last parameter. Remove obsolete
1522 comment.
1523 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1524 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1525 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1526 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1527 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1528 and 5 anonymous splitters): Delete.
1529 (and<mode>3): New expander.
1530 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1531 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1532 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1533 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1534 (floatdisf2_internal1): Remove clobbers.
1535 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1536 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1537 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1538 (and<mode>3 for BOOL_128): Remove clobber.
1539 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1540 rs6000_split_logical.
1541 (*bool<mode>3_internal for BOOL_128): Adjust call of
1542 rs6000_split_logical.
1543 (*boolc<mode>3_internal1 for BOOL_128,
1544 *boolc<mode>3_internal2 for BOOL_128,
1545 *boolcc<mode>3_internal1 for BOOL_128,
1546 *boolcc<mode>3_internal2 for BOOL_128,
1547 *eqv<mode>3_internal1 for BOOL_128,
1548 *eqv<mode>3_internal2 for BOOL_128,
1549 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1550 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1551 clobber.
1552 (*vec_reload_and_reg_<mptrsize>): Delete.
1553
1554 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1555
1556 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1557 and split, *boolccsi3_internal3 and split): Delete.
1558 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1559 *boolccdi3_internal3 and split): Delete.
1560 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1561 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1562
1563 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1564
1565 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1566 and split, *boolcsi3_internal3 and split): Delete.
1567 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1568 *boolcdi3_internal3 and split): Delete.
1569 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1570
1571 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1572
1573 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1574 <'u'>: Also support printing the low-order 16 bits.
1575 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1576 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1577 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1578 *booldi3_internal3 and split): Delete.
1579 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1580 *bool<mode>3_dot2): New.
1581 (two anonymous define_splits for non_logical_cint_operand): Merge.
1582
1583 2014-08-17 Marek Polacek <polacek@redhat.com>
1584 Manuel López-Ibáñez <manu@gcc.gnu.org>
1585
1586 PR c/62059
1587 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1588 (diagnostic_show_locus): Don't print caret diagnostic
1589 if a column is larger than the line_width.
1590
1591 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1592
1593 * common.opt: Make the ISL AST generator to be the main code generator
1594 of Graphite.
1595
1596 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1597
1598 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1599
1600 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1601
1602 PR target/61641
1603 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1604 Declare.
1605 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1606 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1607 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1608 Define.
1609 * config/pa/pa.md (begin_brtab): Delete insn.
1610 (end_brtab): Likewise.
1611
1612 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1613
1614 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1615
1616 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1617
1618 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1619 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1620 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1621 (get_dynamic_type): Remove.
1622 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1623 (clear_speculation): Bring to ipa-deivrt.h
1624 (get_class_context): Rename to ...
1625 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1626 (contains_type_p): Update.
1627 (get_dynamic_type): Rename to ...
1628 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1629 (possible_polymorphic_call_targets): UPdate.
1630 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1631 * ipa-prop.c (ipa_analyze_call_uses): Update.
1632
1633 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1634
1635 * doc/invoke.texi (SH options): Document missing processor variant
1636 options. Remove references to Hitachi. Undocument deprecated mspace
1637 option.
1638
1639 2014-08-15 Jason Merrill <jason@redhat.com>
1640
1641 * tree.c (type_hash_canon): Uncomment assert.
1642
1643 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1644
1645 * input.h (in_system_header_at): Add comment.
1646
1647 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1648
1649 PR fortran/44054
1650 * diagnostic.c (build_message_string): Make it extern.
1651 * diagnostic.h (build_message_string): Make it extern.
1652
1653 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1654
1655 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1656 load/store from/to non-floating class pseudo.
1657
1658 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1659
1660 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1661
1662 2014-08-15 Richard Biener <rguenther@suse.de>
1663
1664 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1665 (get_constraint_for_ssa_var): Remove dead code.
1666 (get_constraint_for_1): Adjust.
1667 (find_what_var_points_to): Likewise.
1668 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1669
1670 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1671
1672 PR target/61878
1673 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1674 (_mm512_mask_cmpge_epu32_mask): Ditto.
1675 (_mm512_cmpge_epu32_mask): Ditto.
1676 (_mm512_mask_cmpge_epi64_mask): Ditto.
1677 (_mm512_cmpge_epi64_mask): Ditto.
1678 (_mm512_mask_cmpge_epu64_mask): Ditto.
1679 (_mm512_cmpge_epu64_mask): Ditto.
1680 (_mm512_mask_cmple_epi32_mask): Ditto.
1681 (_mm512_cmple_epi32_mask): Ditto.
1682 (_mm512_mask_cmple_epu32_mask): Ditto.
1683 (_mm512_cmple_epu32_mask): Ditto.
1684 (_mm512_mask_cmple_epi64_mask): Ditto.
1685 (_mm512_cmple_epi64_mask): Ditto.
1686 (_mm512_mask_cmple_epu64_mask): Ditto.
1687 (_mm512_cmple_epu64_mask): Ditto.
1688 (_mm512_mask_cmplt_epi32_mask): Ditto.
1689 (_mm512_cmplt_epi32_mask): Ditto.
1690 (_mm512_mask_cmplt_epu32_mask): Ditto.
1691 (_mm512_cmplt_epu32_mask): Ditto.
1692 (_mm512_mask_cmplt_epi64_mask): Ditto.
1693 (_mm512_cmplt_epi64_mask): Ditto.
1694 (_mm512_mask_cmplt_epu64_mask): Ditto.
1695 (_mm512_cmplt_epu64_mask): Ditto.
1696 (_mm512_mask_cmpneq_epi32_mask): Ditto.
1697 (_mm512_mask_cmpneq_epu32_mask): Ditto.
1698 (_mm512_cmpneq_epu32_mask): Ditto.
1699 (_mm512_mask_cmpneq_epi64_mask): Ditto.
1700 (_mm512_cmpneq_epi64_mask): Ditto.
1701 (_mm512_mask_cmpneq_epu64_mask): Ditto.
1702 (_mm512_cmpneq_epu64_mask): Ditto.
1703 (_mm512_castpd_ps): Ditto.
1704 (_mm512_castpd_si512): Ditto.
1705 (_mm512_castps_pd): Ditto.
1706 (_mm512_castps_si512): Ditto.
1707 (_mm512_castsi512_ps): Ditto.
1708 (_mm512_castsi512_pd): Ditto.
1709 (_mm512_castpd512_pd128): Ditto.
1710 (_mm512_castps512_ps128): Ditto.
1711 (_mm512_castsi512_si128): Ditto.
1712 (_mm512_castpd512_pd256): Ditto.
1713 (_mm512_castps512_ps256): Ditto.
1714 (_mm512_castsi512_si256): Ditto.
1715 (_mm512_castpd128_pd512): Ditto.
1716 (_mm512_castps128_ps512): Ditto.
1717 (_mm512_castsi128_si512): Ditto.
1718 (_mm512_castpd256_pd512): Ditto.
1719 (_mm512_castps256_ps512): Ditto.
1720 (_mm512_castsi256_si512): Ditto.
1721 (_mm512_cmpeq_epu32_mask): Ditto.
1722 (_mm512_mask_cmpeq_epu32_mask): Ditto.
1723 (_mm512_mask_cmpeq_epu64_mask): Ditto.
1724 (_mm512_cmpeq_epu64_mask): Ditto.
1725 (_mm512_cmpgt_epu32_mask): Ditto.
1726 (_mm512_mask_cmpgt_epu32_mask): Ditto.
1727 (_mm512_mask_cmpgt_epu64_mask): Ditto.
1728 (_mm512_cmpgt_epu64_mask): Ditto.
1729 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
1730 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
1731 * config/i386/i386.c (enum ix86_builtins): Add
1732 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
1733 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
1734 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
1735 (bdesc_args): Add __builtin_ia32_si512_256si,
1736 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
1737 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
1738 __builtin_ia32_pd512_pd.
1739 (ix86_expand_args_builtin): Handle new FTYPEs.
1740 * config/i386/sse.md (castmode): Add 512-bit modes.
1741 (AVX512MODE2P): New.
1742 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
1743 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
1744
1745 2014-08-15 Richard Biener <rguenther@suse.de>
1746
1747 * fold-const.c (tree_swap_operands_p): Put all constants
1748 last, also strip sign-changing NOPs when considering further
1749 canonicalization. Canonicalize also when optimizing for size.
1750
1751 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1752
1753 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
1754 one_match > zero_match case to just before simple_sequence.
1755
1756 2014-08-15 Richard Biener <rguenther@suse.de>
1757
1758 * data-streamer.h (streamer_string_index, string_for_index):
1759 Remove.
1760 * data-streamer-out.c (streamer_string_index): Make static.
1761 * data-streamer-in.c (string_for_index): Likewise.
1762 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
1763 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
1764
1765 2014-08-15 Richard Biener <rguenther@suse.de>
1766
1767 PR tree-optimization/62031
1768 * tree-data-ref.c (dr_analyze_indices): Do not set
1769 DR_UNCONSTRAINED_BASE.
1770 (dr_may_alias_p): All indirect accesses have to go the
1771 formerly DR_UNCONSTRAINED_BASE path.
1772 * tree-data-ref.h (struct indices): Remove
1773 unconstrained_base member.
1774 (DR_UNCONSTRAINED_BASE): Remove.
1775
1776 2014-08-15 Jakub Jelinek <jakub@redhat.com>
1777
1778 PR middle-end/62092
1779 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1780 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1781 in OMP_CLAUSE_MAP in some outer target region.
1782
1783 2014-08-15 Bin Cheng <bin.cheng@arm.com>
1784
1785 * tree-ssa-loop-ivopts.c (ivopts_data): New field
1786 name_expansion_cache.
1787 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
1788 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
1789 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
1790 (difference_cannot_overflow_p): New parameter. Use affine
1791 expansion for equality check.
1792 (iv_elimination_compare_lt): Pass new argument.
1793
1794 2014-08-14 DJ Delorie <dj@redhat.com>
1795
1796 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
1797 variables to the accumulator.
1798
1799 * config/rl78/predicates.md (rl78_near_mem_operand): New.
1800 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
1801 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
1802 with far-far moves.
1803
1804 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
1805 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
1806 (umulqihi3_virt): Likewise.
1807 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
1808 (umulqihi3_real): Likewise.
1809
1810 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
1811
1812 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1813
1814 PR tree-optimization/62091
1815 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
1816 function_entry_reached.
1817 (walk_aliased_vdefs): Clear it here.
1818 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
1819
1820 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1821
1822 * ipa-utils.h (compare_virtual_tables): Declare.
1823 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
1824
1825 2014-08-14 Marek Polacek <polacek@redhat.com>
1826
1827 DR 458
1828 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
1829 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
1830
1831 2014-08-14 Tom de Vries <tom@codesourcery.com>
1832
1833 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
1834
1835 2014-08-14 Tom de Vries <tom@codesourcery.com>
1836
1837 PR rtl-optimization/62004
1838 PR rtl-optimization/62030
1839 * ifcvt.c (rtx_interchangeable_p): New function.
1840 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1841 * emit-rtl.h (mem_attrs_eq_p): Declare.
1842
1843 2014-08-14 Roman Gareev <gareevroman@gmail.com>
1844
1845 * graphite-scop-detection.c:
1846 Add inclusion of cp-tree.h.
1847 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
1848 in case they are pointers to object types
1849
1850 2014-08-14 Richard Biener <rguenther@suse.de>
1851
1852 * BASE-VER: Change to 5.0.0
1853
1854 2014-08-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 (define_mode_attr avx512): New.
1864 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
1865 V4DI modes.
1866 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
1867 (define_mode_attr ssse3_avx2): Ditto.
1868 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
1869 (define_mode_attr avx2_avx512bw): New.
1870 (define_mode_attr ssedoublemodelower): New.
1871 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
1872 V32HI, V64QI modes.
1873 (define_mode_attr ssebytemode): Allow V8DI modes.
1874 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
1875 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
1876 (define_mode_attr ssePSmode2): New.
1877 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
1878 V16HI, V32HI modes.
1879 (define_mode_attr dbpsadbwmode): New.
1880 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
1881 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
1882 (vi8_sse4_1_avx2_avx512): New.
1883 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
1884 mode attribute.
1885 (define_mode_attr blendbits): Move before its immediate use.
1886
1887 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1889 Anna Tikhonova <anna.tikhonova@intel.com>
1890 Ilya Tocar <ilya.tocar@intel.com>
1891 Andrey Turetskiy <andrey.turetskiy@intel.com>
1892 Ilya Verbin <ilya.verbin@intel.com>
1893 Kirill Yukhin <kirill.yukhin@intel.com>
1894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1895
1896 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
1897 * config/i386/subst.md
1898 (define_mode_iterator SUBST_V): Update.
1899 (define_mode_iterator SUBST_A): Ditto.
1900 (define_subst_attr "mask_operand7"): New.
1901 (define_subst_attr "mask_operand10"): New.
1902 (define_subst_attr "mask_operand_arg34") : New.
1903 (define_subst_attr "mask_expand_op3"): New.
1904 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
1905 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
1906 (define_subst_attr "mask_avx512vl_condition"): New.
1907 (define_subst_attr "round_mask_operand4"): Ditto.
1908 (define_subst_attr "round_mask_scalar_op3"): Delete.
1909 (define_subst_attr "round_mask_op4"): New.
1910 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
1911 V16SImode.
1912 (define_subst_attr "round_modev8sf_condition"): New.
1913 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
1914 <MODE>mode.
1915 (define_subst_attr "round_saeonly_mask_operand4"): New.
1916 (define_subst_attr "round_saeonly_mask_op4"): New.
1917 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
1918 V8DImode, V16SImode.
1919 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
1920 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
1921 (define_subst_attr "mask_expand4_args"): New.
1922 (define_subst "mask_expand4"): New.
1923
1924 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1925 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1926 Anna Tikhonova <anna.tikhonova@intel.com>
1927 Ilya Tocar <ilya.tocar@intel.com>
1928 Andrey Turetskiy <andrey.turetskiy@intel.com>
1929 Ilya Verbin <ilya.verbin@intel.com>
1930 Kirill Yukhin <kirill.yukhin@intel.com>
1931 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1932
1933 * config/i386/i386.md
1934 (define_attr "isa"): Add avx512bw,noavx512bw.
1935 (define_attr "enabled"): Ditto.
1936 (define_split): Add 32/64-bit mask logic.
1937 (define_insn "*k<logic>qi"): New.
1938 (define_insn "*k<logic>hi"): New.
1939 (define_insn "*anddi_1"): Add mask version.
1940 (define_insn "*andsi_1"): Ditto.
1941 (define_insn "*<code><mode>_1"): Ditto.
1942 (define_insn "*<code>hi_1"): Ditto.
1943 (define_insn "kxnor<mode>"): New.
1944 (define_insn "kunpcksi"): New.
1945 (define_insn "kunpckdi"): New.
1946 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
1947 (define_insn "*one_cmplhi2_1"): Ditto.
1948
1949 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1950 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1951 Anna Tikhonova <anna.tikhonova@intel.com>
1952 Ilya Tocar <ilya.tocar@intel.com>
1953 Andrey Turetskiy <andrey.turetskiy@intel.com>
1954 Ilya Verbin <ilya.verbin@intel.com>
1955 Kirill Yukhin <kirill.yukhin@intel.com>
1956 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1957
1958 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
1959 V32HImode.
1960
1961 2014-08-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 (print_reg): Сorrectly print 64-bit mask
1971 registers.
1972 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
1973 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
1974 xmm/ymm16+ when availble.
1975 * config/i386/i386.h
1976 (HARD_REGNO_NREGS): Add mask regs.
1977 (VALID_AVX512F_REG_MODE): Ditto.
1978 (VALID_AVX512F_REG_MODE) : Define.
1979 (VALID_MASK_AVX512BW_MODE): Ditto.
1980 (reg_class) (MASK_REG_P(X)): Define.
1981 * config/i386/i386.md: Do not split long moves with mask register,
1982 use kmovb if avx512bw is availible.
1983 (movdi_internal): Handle mask registers.
1984
1985 2014-08-14 Richard Biener <rguenther@suse.de>
1986
1987 PR tree-optimization/62081
1988 * tree-ssa-loop.c (pass_fix_loops): New pass.
1989 (pass_tree_loop::gate): Do not fixup loops here.
1990 * tree-pass.h (make_pass_fix_loops): Declare.
1991 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
1992
1993 2014-08-14 Richard Biener <rguenther@suse.de>
1994
1995 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
1996 (type_hash_canon): ... this and avoid 2nd lookup for the add.
1997
1998 2014-08-14 Richard Biener <rguenther@suse.de>
1999
2000 PR tree-optimization/62090
2001 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
2002 (fold_builtin_2): Do not fold sprintf.
2003 (fold_builtin_3): Likewise.
2004 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
2005 moved from builtins.c.
2006 (gimple_fold_builtin): Fold sprintf.
2007
2008 2014-08-14 Richard Biener <rguenther@suse.de>
2009
2010 PR rtl-optimization/62079
2011 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
2012 run cleanup_cfg.
2013
2014 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2015
2016 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
2017 current_function_decl.
2018
2019 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2020
2021 * cgraph.c (cgraph_node::function_symbol): Fix wrong
2022 cgraph_function_node to cgraph_node::function_symbol
2023 refactoring.
2024
2025 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
2026
2027 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
2028 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
2029
2030 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
2031
2032 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
2033 warning.
2034
2035 2014-08-13 Roman Gareev <gareevroman@gmail.com>
2036
2037 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
2038 generator.
2039
2040 2014-08-12 Jakub Jelinek <jakub@redhat.com>
2041
2042 PR target/62025
2043 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
2044 any registers that are used in mem_insn.
2045
2046 2014-08-12 Steve Ellcey <sellcey@mips.com>
2047
2048 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
2049
2050 2014-08-12 Steve Ellcey <sellcey@mips.com>
2051
2052 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
2053 (MULTILIB_DIRNAMES): Ditto.
2054 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
2055 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
2056 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
2057 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
2058 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
2059 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
2060
2061 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2062
2063 PR target/61413
2064 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
2065 of __ARM_SIZEOF_WCHAR_T.
2066
2067 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2068
2069 PR target/62098
2070 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
2071 Remove unnecessary attributes.
2072
2073 2014-08-12 Yury Gribov <y.gribov@samsung.com>
2074
2075 * internal-fn.c (init_internal_fns): Fix off-by-one.
2076
2077 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2078 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2079 Anna Tikhonova <anna.tikhonova@intel.com>
2080 Ilya Tocar <ilya.tocar@intel.com>
2081 Andrey Turetskiy <andrey.turetskiy@intel.com>
2082 Ilya Verbin <ilya.verbin@intel.com>
2083 Kirill Yukhin <kirill.yukhin@intel.com>
2084 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2085
2086 * config/i386/i386.c (standard_sse_constant_opcode): Use
2087 vpxord/vpternlog if avx512 is availible.
2088
2089 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2090
2091 PR middle-end/62103
2092 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
2093 bitfields, that is when size doesn't match the size of type or the
2094 size of the constructor.
2095
2096 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2097
2098 * config/rs6000/constraints.md (wh constraint): New constraint,
2099 for FP registers if direct move is available.
2100 (wi constraint): New constraint, for VSX/FP registers that can
2101 handle 64-bit integers.
2102 (wj constraint): New constraint for VSX/FP registers that can
2103 handle 64-bit integers for direct moves.
2104 (wk constraint): New constraint for VSX/FP registers that can
2105 handle 64-bit doubles for direct moves.
2106 (wy constraint): Make documentation match implementation.
2107
2108 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2109 scalar_in_vmx_p field to simplify tests of whether SFmode or
2110 DFmode can go in the Altivec registers.
2111 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2112 (rs6000_setup_reg_addr_masks): Likewise.
2113 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2114 field, and wh/wi/wj/wk constraints.
2115 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2116 the wh/wi/wj/wk constraints.
2117 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2118 upper registers, prefer VSX registers unless the operation is a
2119 memory operation with REG+OFFSET addressing.
2120
2121 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2122 DImode. Change SFmode to use ww constraint instead of d to allow
2123 SF registers in the upper registers.
2124 (VSr2): Likewise.
2125 (VSr3): Likewise.
2126 (VSr5): Fix thinko in comment.
2127 (VSa): New mode attribute that is an alternative to wa, that
2128 returns the VSX register class that a mode can go in, but may not
2129 be the preferred register class.
2130 (VS_64dm): New mode attribute for appropriate register classes for
2131 referencing 64-bit elements of vectors for direct moves and normal
2132 moves.
2133 (VS_64reg): Likewise.
2134 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2135 register allocator to only registers the data type can handle.
2136 (vsx_le_perm_load_<mode>): Likewise.
2137 (vsx_le_perm_store_<mode>): Likewise.
2138 (vsx_xxpermdi2_le_<mode>): Likewise.
2139 (vsx_xxpermdi4_le_<mode>): Likewise.
2140 (vsx_lxvd2x2_le_<mode>): Likewise.
2141 (vsx_lxvd2x4_le_<mode>): Likewise.
2142 (vsx_stxvd2x2_le_<mode>): Likewise.
2143 (vsx_add<mode>3): Likewise.
2144 (vsx_sub<mode>3): Likewise.
2145 (vsx_mul<mode>3): Likewise.
2146 (vsx_div<mode>3): Likewise.
2147 (vsx_tdiv<mode>3_internal): Likewise.
2148 (vsx_fre<mode>2): Likewise.
2149 (vsx_neg<mode>2): Likewise.
2150 (vsx_abs<mode>2): Likewise.
2151 (vsx_nabs<mode>2): Likewise.
2152 (vsx_smax<mode>3): Likewise.
2153 (vsx_smin<mode>3): Likewise.
2154 (vsx_sqrt<mode>2): Likewise.
2155 (vsx_rsqrte<mode>2): Likewise.
2156 (vsx_tsqrt<mode>2_internal): Likewise.
2157 (vsx_fms<mode>4): Likewise.
2158 (vsx_nfma<mode>4): Likewise.
2159 (vsx_eq<mode>): Likewise.
2160 (vsx_gt<mode>): Likewise.
2161 (vsx_ge<mode>): Likewise.
2162 (vsx_eq<mode>_p): Likewise.
2163 (vsx_gt<mode>_p): Likewise.
2164 (vsx_ge<mode>_p): Likewise.
2165 (vsx_xxsel<mode>): Likewise.
2166 (vsx_xxsel<mode>_uns): Likewise.
2167 (vsx_copysign<mode>3): Likewise.
2168 (vsx_float<VSi><mode>2): Likewise.
2169 (vsx_floatuns<VSi><mode>2): Likewise.
2170 (vsx_fix_trunc<mode><VSi>2): Likewise.
2171 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2172 (vsx_x<VSv>r<VSs>i): Likewise.
2173 (vsx_x<VSv>r<VSs>ic): Likewise.
2174 (vsx_btrunc<mode>2): Likewise.
2175 (vsx_b2trunc<mode>2): Likewise.
2176 (vsx_floor<mode>2): Likewise.
2177 (vsx_ceil<mode>2): Likewise.
2178 (vsx_<VS_spdp_insn>): Likewise.
2179 (vsx_xscvspdp): Likewise.
2180 (vsx_xvcvspuxds): Likewise.
2181 (vsx_float_fix_<mode>2): Likewise.
2182 (vsx_set_<mode>): Likewise.
2183 (vsx_extract_<mode>_internal1): Likewise.
2184 (vsx_extract_<mode>_internal2): Likewise.
2185 (vsx_extract_<mode>_load): Likewise.
2186 (vsx_extract_<mode>_store): Likewise.
2187 (vsx_splat_<mode>): Likewise.
2188 (vsx_xxspltw_<mode>): Likewise.
2189 (vsx_xxspltw_<mode>_direct): Likewise.
2190 (vsx_xxmrghw_<mode>): Likewise.
2191 (vsx_xxmrglw_<mode>): Likewise.
2192 (vsx_xxsldwi_<mode>): Likewise.
2193 (vsx_xscvdpspn): Tighten constraints to only use register classes
2194 the types use.
2195 (vsx_xscvspdpn): Likewise.
2196 (vsx_xscvdpspn_scalar): Likewise.
2197
2198 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2199 wj, and wk constraints.
2200 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2201 general purpose registers.
2202
2203 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2204 direct moves.
2205 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2206 DImode instead of wm. Use wk constraint for direct move of DFmode
2207 instead of wm.
2208 (extendsidi2_lfiwax): Likewise.
2209 (lfiwax): Likewise.
2210 (lfiwzx): Likewise.
2211 (movdi_internal64): Likewise.
2212
2213 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2214 wk constraints. Make the wy constraint documentation match them
2215 implementation.
2216
2217 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2218
2219 Replacement of isl_int by isl_val
2220 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2221 (compute_bounds_for_param): use isl_val instead of isl_int
2222 (compute_bounds_for_loop): likewise
2223 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2224 (build_linearized_memory_access): use isl_val instead of isl_int
2225 (pdr_stride_in_loop): likewise
2226 * graphite-optimize-isl.c:
2227 (getPrevectorMap): use isl_val instead of isl_int
2228 * graphite-poly.c:
2229 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2230 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2231 (extern the_isl_ctx): declare
2232 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2233 (extract_affine_gmp): likewise
2234 (wrap): likewise
2235 (build_loop_iteration_domains): likewise
2236 (add_param_constraints): likewise
2237
2238 2014-08-11 Richard Biener <rguenther@suse.de>
2239
2240 PR tree-optimization/62075
2241 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2242 handle uses in patterns.
2243
2244 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2245 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2246 Anna Tikhonova <anna.tikhonova@intel.com>
2247 Ilya Tocar <ilya.tocar@intel.com>
2248 Andrey Turetskiy <andrey.turetskiy@intel.com>
2249 Ilya Verbin <ilya.verbin@intel.com>
2250 Kirill Yukhin <kirill.yukhin@intel.com>
2251 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2252
2253 * common/config/i386/i386-common.c
2254 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2255 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2256 (ix86_handle_option): Handle OPT_mavx512vl.
2257 * config/i386/cpuid.h (bit_AVX512VL): Define.
2258 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2259 set -mavx512vl accordingly.
2260 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2261 OPTION_MASK_ISA_AVX512VL.
2262 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2263 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2264 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2265 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2266 * config/i386/i386.h (TARGET_AVX512VL): Define.
2267 (TARGET_AVX512VL_P(x)): Ditto.
2268 * config/i386/i386.opt: Add mavx512vl.
2269
2270 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2271
2272 PR tree-optimization/62073
2273 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2274 a basic block.
2275
2276 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2277 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2278 Anna Tikhonova <anna.tikhonova@intel.com>
2279 Ilya Tocar <ilya.tocar@intel.com>
2280 Andrey Turetskiy <andrey.turetskiy@intel.com>
2281 Ilya Verbin <ilya.verbin@intel.com>
2282 Kirill Yukhin <kirill.yukhin@intel.com>
2283 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2284
2285 * common/config/i386/i386-common.c
2286 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2287 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2288 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2289 (ix86_handle_option): Handle OPT_mavx512bw.
2290 * config/i386/cpuid.h (bit_AVX512BW): Define.
2291 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2292 set -mavx512bw accordingly.
2293 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2294 OPTION_MASK_ISA_AVX512BW.
2295 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2296 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2297 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2298 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2299 * config/i386/i386.h (TARGET_AVX512BW): Define.
2300 (TARGET_AVX512BW_P(x)): Ditto.
2301 * config/i386/i386.opt: Add mavx512bw.
2302
2303 2014-08-11 Richard Biener <rguenther@suse.de>
2304
2305 PR tree-optimization/62070
2306 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2307 Remove SSA checking.
2308
2309 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2310
2311 * asan.c (asan_check_flags): New enum.
2312 (build_check_stmt_with_calls): Removed function.
2313 (build_check_stmt): Split inlining logic to
2314 asan_expand_check_ifn.
2315 (instrument_derefs): Rename parameter.
2316 (instrument_mem_region_access): Rename parameter.
2317 (instrument_strlen_call): Likewise.
2318 (asan_expand_check_ifn): New function.
2319 (asan_instrument): Remove old code.
2320 (pass_sanopt::execute): Change handling of
2321 asan-instrumentation-with-call-threshold.
2322 (asan_clear_shadow): Fix formatting.
2323 (asan_function_start): Likewise.
2324 (asan_emit_stack_protection): Likewise.
2325 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2326 Update description.
2327 * internal-fn.c (expand_ASAN_CHECK): New function.
2328 * internal-fn.def (ASAN_CHECK): New internal function.
2329 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2330 Update description.
2331 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2332 * tree.c: Small comment fix.
2333
2334 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2335
2336 * gimple.c (gimple_call_fnspec): Support internal functions.
2337 (gimple_call_return_flags): Use const.
2338 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2339 * internal-fn.def: Add fnspec information.
2340 * internal-fn.h (internal_fn_fnspec): New function.
2341 (init_internal_fns): Declare new function.
2342 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2343 (init_internal_fns): New function.
2344 * tree-core.h: Update macro call.
2345 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2346
2347 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2348
2349 * lto-streamer.h (struct output_block::symbol): Change from
2350 struct symtab_node to plain symtab_node.
2351 (referenced_from_this_partition_p): Change first parameter
2352 from struct symtab_node to plain symtab_node.
2353
2354 2014-08-10 Marek Polacek <polacek@redhat.com>
2355
2356 PR c/51849
2357 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2358
2359 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2360
2361 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2362 DECL correctly; do not give up on types in static storage.
2363
2364 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2365
2366 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2367
2368 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2369
2370 * graphite-isl-ast-to-gimple.c:
2371 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2372
2373 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2374
2375 2014-08-08 Guozhi Wei <carrot@google.com>
2376
2377 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2378
2379 2014-08-08 Cary Coutant <ccoutant@google.com>
2380
2381 * dwarf2out.c (get_skeleton_type_unit): Remove.
2382 (output_skeleton_debug_sections): Remove skeleton type units.
2383 (output_comdat_type_unit): Likewise.
2384 (dwarf2out_finish): Likewise.
2385
2386 2014-08-07 Yi Yang <ahyangyi@google.com>
2387
2388 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2389
2390 2014-08-08 Richard Biener <rguenther@suse.de>
2391
2392 * lto-streamer.h (struct lto_input_block): Make it a class
2393 with a constructor.
2394 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2395 (struct lto_function_header, struct lto_simple_header,
2396 struct lto_simple_header_with_strings,
2397 struct lto_decl_header, struct lto_function_header): Make
2398 a simple inheritance hieararchy. Remove unused fields.
2399 (struct lto_asm_header): Remove.
2400 * lto-streamer-out.c (produce_asm): Adjust.
2401 (lto_output_toplevel_asms): Likewise.
2402 (produce_asm_for_decls): Likewise.
2403 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2404 * data-streamer-in.c (string_for_index): Likewise.
2405 * ipa-inline-analysis.c (inline_read_section): Likewise.
2406 * ipa-prop.c (ipa_prop_read_section): Likewise.
2407 (read_replacements_section): Likewise.
2408 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2409 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2410 (lto_destroy_simple_input_block): Likewise.
2411 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2412 (lto_input_toplevel_asms): Likewise.
2413
2414 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2415 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2416 Anna Tikhonova <anna.tikhonova@intel.com>
2417 Ilya Tocar <ilya.tocar@intel.com>
2418 Andrey Turetskiy <andrey.turetskiy@intel.com>
2419 Ilya Verbin <ilya.verbin@intel.com>
2420 Kirill Yukhin <kirill.yukhin@intel.com>
2421 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2422
2423 * common/config/i386/i386-common.c
2424 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2425 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2426 (ix86_handle_option): Handle OPT_mavx512dq.
2427 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2428 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2429 set -mavx512dq accordingly.
2430 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2431 OPTION_MASK_ISA_AVX512DQ.
2432 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2433 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2434 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2435 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2436 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2437 (TARGET_AVX512DQ_P(x)): Ditto.
2438 * config/i386/i386.opt: Add mavx512dq.
2439
2440 2014-08-08 Richard Biener <rguenther@suse.de>
2441
2442 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2443 target_percent, target_percent_s): Export.
2444 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2445 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2446 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2447 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2448 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2449 Move to gimple-fold.c.
2450 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2451 strcat and strcpy.
2452 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2453 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2454 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2455 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2456 (rewrite_call_expr_array): Remove.
2457 (fold_builtin_sprintf_chk): Likewise.
2458 (fold_builtin_snprintf_chk): Likewise.
2459 (fold_builtin_varargs): Remove handling of sprintf_chk,
2460 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2461 (gimple_fold_builtin_sprintf_chk): Remove.
2462 (gimple_fold_builtin_snprintf_chk): Likewise.
2463 (gimple_fold_builtin_varargs): Likewise.
2464 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2465 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2466 * gimple.c (gimple_seq_add_seq_without_update): New function.
2467 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2468 * gimple-fold.c: Include output.h.
2469 (gsi_replace_with_seq_vops): New function, split out from ...
2470 (gimplify_and_update_call_from_tree): ... here.
2471 (replace_call_with_value): New function.
2472 (replace_call_with_call_and_fold): Likewise.
2473 (var_decl_component_p): Moved from builtins.c.
2474 (gimple_fold_builtin_memory_op): Moved from builtins.c
2475 fold_builtin_memory_op and rewritten to GIMPLE.
2476 (gimple_fold_builtin_memset): Likewise.
2477 (gimple_fold_builtin_strcpy): Likewise.
2478 (gimple_fold_builtin_strncpy): Likewise.
2479 (gimple_fold_builtin_strcat): Likewise.
2480 (gimple_fold_builtin_fputs): Likewise.
2481 (gimple_fold_builtin_memory_chk): Likewise.
2482 (gimple_fold_builtin_stxcpy_chk): Likewise.
2483 (gimple_fold_builtin_stxncpy_chk): Likewise.
2484 (gimple_fold_builtin_snprintf_chk): Likewise.
2485 (gimple_fold_builtin_sprintf_chk): Likewise.
2486 (gimple_fold_builtin_strlen): New function.
2487 (gimple_fold_builtin_with_strlen): New function split out from
2488 gimple_fold_builtin.
2489 (gimple_fold_builtin): Change signature and handle
2490 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2491 here. Call gimple_fold_builtin_with_strlen.
2492 (gimple_fold_call): Adjust.
2493
2494 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2495
2496 * calls.c (precompute_arguments): Check
2497 promoted_for_signed_and_unsigned_p and set the promoted mode.
2498 (promoted_for_signed_and_unsigned_p): New function.
2499 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2500 and set the promoted mode.
2501 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2502 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2503 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2504
2505
2506 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2507
2508 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2509 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2510 (expand_call): Likewise.
2511 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2512 to get promoted mode.
2513 * combine.c (record_promoted_value): Skip > 0 comparison with
2514 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2515 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2516 of SUBREG_PROMOTED_UNSIGNED_P.
2517 (convert_modes): Likewise.
2518 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2519 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2520 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2521 SUBREG_PROMOTED_UNSIGNED_SET.
2522 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2523 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2524 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2525 SUBREG_PROMOTED_SET.
2526 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2527 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2528 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2529 of SUBREG_PROMOTED_UNSIGNED_P.
2530 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2531 (SUBREG_PROMOTED_SET): New define.
2532 (SUBREG_PROMOTED_GET): Likewise.
2533 (SUBREG_PROMOTED_SIGN): Likewise.
2534 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2535 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2536 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2537 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2538 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2539 (nonzero_bits1): Skip > 0 comparison with the results as
2540 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2541 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2542 of !SUBREG_PROMOTED_UNSIGNED_P.
2543 * simplify-rtx.c (simplify_unary_operation_1): Use new
2544 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2545 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2546 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2547 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2548
2549 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2550
2551 * ipa-devirt.c: Include gimple-pretty-print.h
2552 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2553 further tests.
2554 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2555 (get_polymorphic_call_info): Fix return value
2556 (type_change_info): New sturcture based on ipa-prop
2557 variant.
2558 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2559 based on ipa-prop variant.
2560 (extr_type_from_vtbl_ptr_store): New function
2561 based on ipa-prop variant.
2562 (record_known_type): New function.
2563 (check_stmt_for_type_change): New function.
2564 (get_dynamic_type): New function.
2565 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2566 * tree-ssa-pre.c: ipa-utils.h
2567 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2568 machinery; sanity check with ipa-prop devirtualization.
2569 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2570 polymorphic flag.
2571
2572 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2573
2574 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2575 * alias.c, cfgexpand.c, cgraphbuild.c,
2576 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2577 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2578 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2579 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2580 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2581 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2582 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2583 dse.c, except.c, gengtype.c, gimple-expr.c,
2584 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2585 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2586 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2587 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2588 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2589 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2590 pointer-set.h.
2591 * pointer-set.c: Remove file.
2592 * pointer-set.h: Remove file.
2593
2594 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2595
2596 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2597 * config/arm/types.md (f_sels, f_seld): Delete.
2598
2599 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2600
2601 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2602 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2603 (aarch64_movdi_<mode>high): Likewise.
2604 (aarch64_mov<mode>high_di): Likewise.
2605 (aarch64_movdi_<mode>low): Likewise.
2606 (aarch64_mov<mode>low_di): Likewise.
2607 (aarch64_movtilow_tilow): Likewise.
2608 Add comment explaining usage of fp,simd attributes and of
2609 TARGET_FLOAT and TARGET_SIMD.
2610
2611 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2612 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2613
2614 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2615 Use MOVN when one of the half-words is 0xffff.
2616
2617 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2618
2619 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2620
2621 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2622
2623 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2624 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2625 (rfs_str): String corresponding to RFS_* constants.
2626 (rank_for_schedule_stats_t): New typedef.
2627 (rank_for_schedule_stats): New static variable.
2628 (rfs_result): New static function.
2629 (rank_for_schedule): Track statistics for deciding heuristics.
2630 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2631 static functions.
2632 (ready_sort): Use them for debug printouts.
2633 (schedule_block): Init statistics state. Print statistics on
2634 rank_for_schedule decisions.
2635
2636 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2637
2638 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2639
2640 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2641
2642 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2643 constraint.
2644
2645 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2646
2647 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2648 function to not conflict.
2649 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2650 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2651 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2652 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2653 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2654 of pointer_map.
2655
2656 2014-08-07 Marek Polacek <polacek@redhat.com>
2657
2658 * fold-const.c (fold_binary_loc): Add folding of
2659 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2660
2661 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2662
2663 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2664 instead of type size.
2665 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2666
2667 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2668
2669 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2670 (*thumb1_movqi_insn): Likewise.
2671 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2672
2673 2014-08-07 Tom de Vries <tom@codesourcery.com>
2674
2675 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2676 (glibc_2_11_or_earlier): Remove effective-target keywords.
2677
2678 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2679
2680 * config/arm/arm.c (bdesc_2arg): Fix typo.
2681 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2682
2683 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2684
2685 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2686
2687 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2688
2689 PR debug/61923
2690 * haifa-sched.c (advance_one_cycle): Fix dump.
2691 (schedule_block): Don't advance cycle if we are already at the
2692 beginning of the cycle.
2693
2694 2014-08-06 Martin Jambor <mjambor@suse.cz>
2695
2696 PR ipa/61393
2697 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
2698
2699 2014-08-06 Richard Biener <rguenther@suse.de>
2700
2701 PR lto/62034
2702 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
2703 SCCs here.
2704 (lto_input_tree): Pop SCCs here.
2705
2706 2014-08-06 Richard Biener <rguenther@suse.de>
2707
2708 PR tree-optimization/61320
2709 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
2710 handle misaligned loads.
2711
2712 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
2713
2714 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
2715 (aarch64_expand_vec_perm_const): Check for dup before zip.
2716
2717 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2718
2719 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
2720 CONST_INT_P instead of GET_CODE and compare.
2721 (aarch64_select_cc_mode): Likewise.
2722 (aarch64_print_operand): Likewise.
2723 (aarch64_rtx_costs): Likewise.
2724 (aarch64_simd_valid_immediate): Likewise.
2725 (aarch64_simd_check_vect_par_cnst_half): Likewise.
2726 (aarch64_simd_emit_pair_result_insn): Likewise.
2727
2728 2014-08-05 David Malcolm <dmalcolm@redhat.com>
2729
2730 * gdbhooks.py (find_gcc_source_dir): New helper function.
2731 (class PassNames): New class, locating and parsing passes.def.
2732 (class BreakOnPass): New command "break-on-pass".
2733
2734 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
2735
2736 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
2737 getting olde.
2738
2739 2014-08-05 Richard Biener <rguenther@suse.de>
2740
2741 PR rtl-optimization/61672
2742 * emit-rtl.h (mem_attrs_eq_p): Declare.
2743 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
2744 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
2745 * cfgcleanup.c (merge_memattrs): Likewise.
2746 Include emit-rtl.h.
2747
2748 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2749
2750 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
2751 rather than singleton vectors.
2752 (vqdmlsls_lane_s32): Likewise.
2753
2754 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2755
2756 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
2757 Use VSDQ_HSI mode iterator.
2758 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2759 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
2760 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
2761 Use BUILTIN_VDQHS macro.
2762 (sqrdmulh_laneq): Likewise.
2763 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
2764 (vqdmlals_laneq_s32): Likewise.
2765 (vqdmlslh_laneq_s16): Likewise.
2766 (vqdmlsls_laneq_s32): Likewise.
2767 (vqdmulhh_laneq_s16): Likewise.
2768 (vqdmulhs_laneq_s32): Likewise.
2769 (vqrdmulhh_laneq_s16): Likewise.
2770 (vqrdmulhs_laneq_s32): Likewise.
2771
2772 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2773
2774 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
2775 (vmuld_laneq_f64): Likewise.
2776 (vmuls_laneq_f32): Likewise.
2777 (vmul_n_f64): Likewise.
2778 (vmuld_lane_f64): Reimplement in C.
2779 (vmuls_lane_f32): Likewise.
2780
2781 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2782
2783 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
2784 to reservation.
2785 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2786
2787 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2788
2789 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
2790 (rbitsi2): Likewise.
2791 (*arm_rev): Set predicable and predicable_short_it attributes.
2792
2793 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2794
2795 * convert.c (convert_to_integer): Guard transformation to lrint by
2796 -fno-math-errno.
2797
2798 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
2799
2800 * config/aarch64/aarch64-builtins.c
2801 (aarch64_simd_builtin_type_mode): Delete.
2802 (v8qi_UP): Remap to V8QImode.
2803 (v4hi_UP): Remap to V4HImode.
2804 (v2si_UP): Remap to V2SImode.
2805 (v2sf_UP): Remap to V2SFmode.
2806 (v1df_UP): Remap to V1DFmode.
2807 (di_UP): Remap to DImode.
2808 (df_UP): Remap to DFmode.
2809 (v16qi_UP):V16QImode.
2810 (v8hi_UP): Remap to V8HImode.
2811 (v4si_UP): Remap to V4SImode.
2812 (v4sf_UP): Remap to V4SFmode.
2813 (v2di_UP): Remap to V2DImode.
2814 (v2df_UP): Remap to V2DFmode.
2815 (ti_UP): Remap to TImode.
2816 (ei_UP): Remap to EImode.
2817 (oi_UP): Remap to OImode.
2818 (ci_UP): Map to CImode.
2819 (xi_UP): Remap to XImode.
2820 (si_UP): Remap to SImode.
2821 (sf_UP): Remap to SFmode.
2822 (hi_UP): Remap to HImode.
2823 (qi_UP): Remap to QImode.
2824 (aarch64_simd_builtin_datum): Make mode a machine_mode.
2825 (VAR1): Build builtin name.
2826 (aarch64_init_simd_builtins): Remove dead code.
2827
2828 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2829
2830 * graphite-isl-ast-to-gimple.c:
2831 (set_options): New function.
2832 (scop_to_isl_ast): Add calling of set_options.
2833
2834 2014-08-05 Jakub Jelinek <jakub@redhat.com>
2835
2836 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
2837 (analyze_iv_to_split_insn): Don't initialize them.
2838 (get_ivts_expr): Removed.
2839 (allocate_basic_variable, insert_base_initialization): Use
2840 SET_SRC instead of *get_ivts_expr.
2841 (split_iv): Use &SET_SRC instead of get_ivts_expr.
2842
2843 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2844
2845 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
2846 (translate_isl_ast_for_loop): Add checking of the
2847 flag_loop_parallelize_all.
2848 (ast_build_before_for): New function.
2849 (scop_to_isl_ast): Add checking of the
2850 flag_loop_parallelize_all.
2851 * graphite-dependences.c: Move the defenition of the
2852 scop_get_dependences from graphite-optimize-isl.c to this file.
2853 (apply_schedule_on_deps): Add checking of the ux's emptiness.
2854 (carries_deps): Add checking of the x's value.
2855 * graphite-optimize-isl.c: Move the defenition of the
2856 scop_get_dependences to graphite-dependences.c.
2857 * graphite-poly.h: Add declarations of scop_get_dependences
2858 and carries_deps.
2859
2860 2014-08-04 Rohit <rohitarulraj@freescale.com>
2861
2862 PR target/60102
2863 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
2864 names.
2865 (alt_reg_names): Likewise.
2866 (rs6000_dwarf_register_span): For SPE high registers, replace
2867 dwarf register numbers with GCC hard register numbers.
2868 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
2869 (rs6000_dbx_register_number): For SPE high registers, return dwarf
2870 register number for the corresponding GCC hard register number.
2871 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
2872 newly added GCC hard register numbers for SPE high registers.
2873 (DWARF_FRAME_REGISTERS): Likewise.
2874 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
2875 (DWARF_FRAME_REGNUM): Likewise.
2876 (FIXED_REGISTERS): Likewise.
2877 (CALL_USED_REGISTERS): Likewise.
2878 (CALL_REALLY_USED_REGISTERS): Likewise.
2879 (REG_ALLOC_ORDER): Likewise.
2880 (enum reg_class): Likewise.
2881 (REG_CLASS_NAMES): Likewise.
2882 (REG_CLASS_CONTENTS): Likewise.
2883 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
2884
2885 2014-08-04 Richard Biener <rguenther@suse.de>
2886
2887 * gimple-fold.h (gimple_fold_builtin): Remove.
2888 * gimple-fold.c (gimple_fold_builtin): Make static.
2889 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
2890 fold_stmt, not gimple_fold_builtin.
2891
2892 2014-08-04 Martin Liska <mliska@suse.cz>
2893
2894 * cgraph.h (csi_end_p): Removed.
2895 (csi_next): Likewise.
2896 (csi_node): Likewise.
2897 (csi_start): Likewise.
2898 (cgraph_node_in_set_p): Likewise.
2899 (cgraph_node_set_size): Likewise.
2900 (vsi_end_p): Likewise.
2901 (vsi_next): Likewise.
2902 (vsi_node): Likewise.
2903 (vsi_start): Likewise.
2904 (varpool_node_set_size): Likewise.
2905 (cgraph_node_set_nonempty_p): Likewise.
2906 (varpool_node_set_nonempty_p): Likewise.
2907 * cgraphunit.c (cgraph_process_new_functions): vec replaces
2908 cgraph_node_set.
2909 * ipa-inline-transform.c: Likewise.
2910 * ipa-utils.c (cgraph_node_set_new): Removed.
2911 (cgraph_node_set_add): Likewise.
2912 (cgraph_node_set_remove): Likewise.
2913 (cgraph_node_set_find): Likewise.
2914 (dump_cgraph_node_set): Likewise.
2915 (debug_cgraph_node_set): Likewise.
2916 (free_cgraph_node_set): Likewise.
2917 (varpool_node_set_new): Likewise.
2918 (varpool_node_set_add): Likewise.
2919 (varpool_node_set_remove): Likewise.
2920 (varpool_node_set_find): Likewise.
2921 (dump_varpool_node_set): Likewise.
2922 (free_varpool_node_set): Likewise.
2923 (debug_varpool_node_set): Likewise.
2924 * tree-emutls.c (struct tls_var_data):
2925 (emutls_index): Removed.
2926 (emutls_decl): Likewise.
2927 (gen_emutls_addr): Function implementation uses newly added
2928 hash_map<varpool_node *, tls_var_data>.
2929 (clear_access_vars): Likewise.
2930 (create_emultls_var): Likewise.
2931 (ipa_lower_emutls): Likewise.
2932 (reset_access): New function.
2933
2934 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2935
2936 * config/i386/i386.c (ix86_option_override_internal): Add
2937 PTA_RDRND and PTA_MOVBE for bdver4.
2938
2939 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2940 James Greenhalgh <james.greenhalgh@arm.com>
2941
2942 * doc/md.texi (clrsb): Document.
2943 (clz): Change reference to x into operand 1.
2944 (ctz): Likewise.
2945 (popcount): Likewise.
2946
2947 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2948
2949 PR target/61713
2950 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
2951 move to subtarget in serial version if result is ignored.
2952
2953 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2954 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2955
2956 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
2957 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
2958 (sched_analyze_insn): Update use of try_group_insn to
2959 sched_macro_fuse_insns.
2960 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
2961 arguments that are not conditional jumps.
2962
2963 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2964
2965 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
2966 family information. Handle BTVER2 cpu with cpuid family value.
2967
2968 2014-08-04 Tom de Vries <tom@codesourcery.com>
2969
2970 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2971 (glibc_2_11_or_earlier): Document effective-target keywords.
2972
2973 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2974
2975 * ipa-devirt.c (odr_type_warn_count): Add type.
2976 (possible_polymorphic_call_targets): Set it.
2977 (ipa_devirt): Use it.
2978
2979 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2980
2981 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
2982 Document.
2983 * ipa-devirt.c: Include hash-map.h
2984 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
2985 (clear_speculation): Break out of ...
2986 (get_class_context): ... here; speed up handling obviously useless
2987 speculations.
2988 (odr_type_warn_count, decl_warn_count): New structures.
2989 (final_warning_record): New structure.
2990 (final_warning_records): New static variable.
2991 (possible_polymorphic_call_targets): Cleanup handling of
2992 speculative info; do not build speculation when user do not care;
2993 record info about warnings when asked for.
2994 (add_decl_warning): New function.
2995 (type_warning_cmp): New function.
2996 (decl_warning_cmp): New function.
2997 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
2998 (gate): Enable pass when warnings are requested.
2999 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
3000 options.
3001
3002 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3003
3004 * hash-map.h (default_hashmap_traits::mark_key_deleted):
3005 Fix cast.
3006 (hash_map::remove): New method.
3007 (hash_map::traverse): New method.
3008 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
3009 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
3010 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
3011 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
3012 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
3013 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
3014 pointer_map.
3015
3016 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3017
3018 * hash-set.h: new File.
3019 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
3020 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
3021 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
3022 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
3023 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
3024 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
3025 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
3026 varpool.c: Use hash_set instead of pointer_set.
3027
3028 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
3029
3030 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
3031
3032 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3033
3034 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
3035 for frame access when strict_p is false.
3036
3037 2014-08-01 Renlin Li <renlin.li@arm.com>
3038 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3039
3040 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
3041 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
3042 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
3043 Declaration.
3044 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
3045 predicate.
3046 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
3047 aarch64_mem_pair_offset.
3048
3049 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3050
3051 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
3052 offset.
3053 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
3054 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
3055
3056 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
3057
3058 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
3059
3060 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
3061
3062 PR regression/61510
3063 * cgraphunit.c (analyze_functions): Use get_create rather than get
3064 for decls which are clones of abstract functions.
3065
3066 2014-08-01 Martin Liska <mliska@suse.cz>
3067
3068 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
3069 * ipa-prop.h (count_formal_params): Global function created from static.
3070 * ipa-prop.c (count_formal_params): Likewise.
3071 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
3072 profiles for semantically equivalent functions.
3073 * passes.c (do_per_function): If we load body of a function
3074 during WPA, this condition should behave same.
3075 * varpool.c (ctor_for_folding): More tolerant assert for variable
3076 aliases created during WPA.
3077
3078 2014-08-01 Martin Liska <mliska@suse.cz>
3079
3080 * doc/invoke.texi (Options That Control Optimization): Documentation
3081 for -foptimize-strlen introduced. Optimization levels default options
3082 fixed.
3083
3084 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3085
3086 * opts.c (common_handle_option): Handle -fsanitize=alignment.
3087 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
3088 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
3089 type to bool.
3090 * stor-layout.h (min_align_of_type): New prototype.
3091 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
3092 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
3093 check.
3094 * ubsan.c: Include builtins.h.
3095 (ubsan_expand_bounds_ifn): Change return type to bool,
3096 always return true.
3097 (ubsan_expand_null_ifn): Change return type to bool, change
3098 argument to gimple_stmt_iterator *. Handle both null and alignment
3099 sanitization, take type from ckind argument's type rather than
3100 first argument.
3101 (instrument_member_call): Removed.
3102 (instrument_mem_ref): Remove t argument, add mem and base arguments.
3103 Handle both null and alignment sanitization, don't say whole
3104 struct access is member access. Build 3 argument IFN_UBSAN_NULL
3105 call instead of 2 argument.
3106 (instrument_null): Adjust instrument_mem_ref caller. Don't
3107 instrument calls here.
3108 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3109 like SANITIZE_NULL.
3110 * stor-layout.c (min_align_of_type): New function.
3111 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3112 Or it into SANITIZE_UNDEFINED.
3113 * doc/invoke.texi (-fsanitize=alignment): Document.
3114
3115 2014-07-31 Andi Kleen <ak@linux.intel.com>
3116
3117 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3118
3119 2014-07-31 Andi Kleen <ak@linux.intel.com>
3120
3121 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3122 inchash.
3123 (vn_reference_compute_hash): Dito.
3124 (vn_nary_op_compute_hash): Dito.
3125 (vn_phi_compute_hash): Dito.
3126 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3127
3128 2014-07-31 Andi Kleen <ak@linux.intel.com>
3129
3130 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3131 Rename to inchash:add_expr_commutative. Convert to inchash.
3132 (iterative_hash_hashable_expr): Rename to
3133 inchash:add_hashable_expr. Convert to inchash.
3134 (avail_expr_hash): Dito.
3135
3136 2014-07-31 Andi Kleen <ak@linux.intel.com>
3137
3138 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3139 Convert to inchash.
3140
3141 2014-07-31 Andi Kleen <ak@linux.intel.com>
3142
3143 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3144
3145 2014-07-31 Andi Kleen <ak@linux.intel.com>
3146
3147 * Makefile.in (OBJS): Add rtlhash.o
3148 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3149 (loc_checksum): Dito.
3150 (loc_checksum_ordered): Dito.
3151 (hash_loc_operands): Dito.
3152 (hash_locs): Dito.
3153 (hash_loc_list): Dito.
3154 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3155 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3156 * rtlhash.c: New file.
3157 * rtlhash.h: New file.
3158
3159 2014-07-31 Andi Kleen <ak@linux.intel.com>
3160
3161 * inchash.h (inchash): Change inchash class to namespace.
3162 (class hash): ... Rename from inchash.
3163 (add_object): Move from macro to class template.
3164 * lto-streamer-out.c (hash_tree): Change inchash
3165 to inchash::hash.
3166 * tree.c (build_type_attribute_qual_variant): Dito.
3167 (type_hash_list): Dito.
3168 (attribute_hash_list): Dito.
3169 (iterative_hstate_expr): Rename to inchash::add_expr
3170 (build_range_type_1): Change inchash to inchash::hash
3171 and use hash::add_expr.
3172 (build_array_type_1): Dito.
3173 (build_function_type): Dito
3174 (build_method_type_directly): Dito.
3175 (build_offset_type): Dito.
3176 (build_complex_type): Dito.
3177 (make_vector_type): Dito.
3178 * tree.h (iterative_hash_expr): Dito.
3179
3180 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3181
3182 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3183
3184 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3185
3186 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3187 correct alphabetical position.
3188 (vpaddd_f64): Rewrite using builtins.
3189 (vpaddd_s64): Move to correct alphabetical position.
3190 (vpaddd_u64): New.
3191
3192 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3193
3194 PR target/61844
3195 * config/sh/sh.c (sh_legitimate_address_p,
3196 sh_legitimize_reload_address): Handle reg+reg address modes when
3197 ALLOW_INDEXED_ADDRESS is false.
3198 * config/sh/predicates.md (general_movsrc_operand,
3199 general_movdst_operand): Likewise.
3200
3201 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3202
3203 * config/aarch64/aarch64-builtins.c
3204 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3205 BYTES_BIG_ENDIAN.
3206
3207 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3208
3209 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3210 the generated mask based on BYTES_BIG_ENDIAN.
3211 (aarch64_simd_check_vect_par_cnst_half): New.
3212 * config/aarch64/aarch64-protos.h
3213 (aarch64_simd_check_vect_par_cnst_half): New.
3214 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3215 the check out to aarch64_simd_check_vect_par_cnst_half.
3216 (vect_par_cnst_lo_half): Likewise.
3217 * config/aarch64/aarch64-simd.md
3218 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3219 (move_hi_quad_<mode>): Always generate a low mask.
3220
3221 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3222
3223 * doc/invoke.texi (AVR Options): Add documentation about
3224 __AVR_DEVICE_NAME__ built-in macro.
3225
3226 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3227
3228 PR target/61948
3229 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3230 constraints are satisfied.
3231 (<shift>di3_neon): Likewise.
3232
3233 2014-07-31 Richard Biener <rguenther@suse.de>
3234
3235 PR tree-optimization/61964
3236 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3237 by structural equality.
3238
3239 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3240
3241 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3242 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3243 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3244 New enums.
3245 * gcc.c (sanitize_spec_function): Support new option.
3246 (SANITIZER_SPEC): Remove now redundant check.
3247 * opts.c (common_handle_option): Support new option.
3248 (finish_options): Check for incompatibilities.
3249 * toplev.c (process_options): Split userspace-specific checks.
3250
3251 2014-07-31 Richard Biener <rguenther@suse.de>
3252
3253 * lto-streamer.h (struct output_block): Remove global.
3254 (struct data_in): Remove labels, num_named_labels and
3255 num_unnamed_labels.
3256 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3257 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3258
3259 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3260
3261 PR c++/60517
3262 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3263 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3264 (isolate_path): New argument to avoid inserting a trap.
3265 (find_implicit_erroneous_behaviour): Handle returning the address
3266 of a local variable.
3267 (find_explicit_erroneous_behaviour): Likewise.
3268
3269 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3270
3271 PR lto/61868
3272 * toplev.c (init_random_seed): Move piece of code never called to
3273 set_random_seed.
3274 (set_random_seed): see above.
3275
3276 2014-07-31 Tom de Vries <tom@codesourcery.com>
3277
3278 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3279
3280 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3281
3282 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3283 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3284
3285 2014-07-31 Richard Biener <rguenther@suse.de>
3286
3287 * data-streamer.h (streamer_write_data_stream): Declare here,
3288 renamed from ...
3289 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3290 * lto-cgraph.c (lto_output_node): Adjust.
3291 (lto_output_varpool_node): Likewise.
3292 * data-streamer-out.c (streamer_string_index): Likewise.
3293 (streamer_write_data_stream, lto_append_block): Move from ...
3294 * lto-section-out.c (lto_output_data_stream,
3295 lto_append_block): ... here.
3296
3297 2014-07-30 Mike Stump <mikestump@comcast.net>
3298
3299 * configure.ac: Also check for popen.
3300 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3301 * configure: Regenerate.
3302 * config.in: Regenerate.
3303
3304 2014-07-30 Martin Jambor <mjambor@suse.cz>
3305
3306 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3307 parameter to gimple.
3308
3309 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3310
3311 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3312 address as second parameter to __tpf_eh_return routine.
3313
3314 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3315
3316 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3317 Thumb2.
3318
3319 2014-07-30 Tom Tromey <tromey@redhat.com>
3320
3321 PR c/59855
3322 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3323 * doc/extend.texi (Type Attributes): Document designated_init
3324 attribute.
3325
3326 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3327
3328 * graphite-isl-ast-to-gimple.c:
3329 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3330 (gcc_expression_from_isl_expression): Pass type to
3331 gcc_expression_from_isl_ast_expr_id.
3332
3333 2014-07-30 Richard Biener <rguenther@suse.de>
3334
3335 * lto-streamer.h (lto_write_data): New function.
3336 * langhooks.c (lhd_append_data): Do not free block.
3337 * lto-section-out.c (lto_write_data): New function writing
3338 raw data to the current section.
3339 (lto_write_stream): Adjust for langhook semantic change.
3340 (lto_destroy_simple_output_block): Write header directly.
3341 * lto-opts.c (lto_write_options): Write options directly.
3342 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3343 (lto_output_toplevel_asms): Likewise.
3344 (copy_function_or_variable): Copy data directly.
3345 (write_global_references): Output index table directly.
3346 (lto_output_decl_state_refs): Likewise.
3347 (write_symbol): Write data directly.
3348 (produce_symtab): Adjust.
3349 (produce_asm_for_decls): Output header and refs directly.
3350
3351 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3352
3353 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3354 to speculative_targets
3355 (get_class_context): Fix handling of contextes without outer type;
3356 avoid matching non-polymorphic types in LTO.
3357 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3358 parameter to speculative_targetsp; handle speculation.
3359 (dump_possible_polymorphic_call_targets): Update dumping.
3360
3361 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3362
3363 * common.opt (Wodr): Enable by default.
3364
3365 2014-07-29 Olivier Hainque <hainque@adacore.com>
3366
3367 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3368
3369 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3370
3371 PR bootstrap/61914
3372 * gengtype.c (strtoken): New function.
3373 (create_user_defined_type): Replace strtok with strtoken.
3374
3375 2014-07-29 Nathan Sidwell <nathan@acm.org>
3376
3377 * gcov-io.c (gcov_var): Make hidden.
3378 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3379 (gcov_do_dump): Declare.
3380 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3381
3382 2014-07-29 Martin Jambor <mjambor@suse.cz>
3383
3384 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3385 parameter to gimple.
3386 (sra_modify_assign): Likewise.
3387
3388 2014-07-29 Richard Biener <rguenther@suse.de>
3389
3390 PR middle-end/52478
3391 * expr.c (expand_expr_real_2): Revert last change.
3392
3393 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3394
3395 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3396 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3397 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3398 call.
3399 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3400 (contains_type_p): Forward declare.
3401 (polymorphic_call_target_hasher::hash): Hash speculative info.
3402 (polymorphic_call_target_hasher::equal): Compare speculative info.
3403 (get_class_context): Handle speuclation.
3404 (contains_type_p): Update.
3405 (get_polymorphic_call_info_for_decl): Update.
3406 (walk_ssa_copies): Break out from ...
3407 (get_polymorphic_call_info): ... here; set speculative context
3408 before giving up.
3409 * ipa-prop.c (ipa_write_indirect_edge_info,
3410 ipa_read_indirect_edge_info): Stream speculative context.
3411 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3412 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3413 SPECULATIVE_MAYBE_DERIVED_TYPE).
3414 (possible_polymorphic_call_targets overriders): Update.
3415 (dump_possible_polymorphic_call_targets overriders): Update.
3416 (dump_possible_polymorphic_call_target_p overriders): Update.
3417
3418 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3419
3420 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3421 ipa-devirt path; fix thinko there.
3422
3423 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3424
3425 * config/i386/i386.c (ix86_return_in_memory): Replace one
3426 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3427
3428 2014-07-28 Marek Polacek <polacek@redhat.com>
3429
3430 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3431
3432 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3433
3434 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3435 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3436 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3437 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3438 (USE_LD_AS_NEEDED): Likewise.
3439 (ASM_APP_ON): Likewise.
3440 (ASM_APP_OFF): Likewise.
3441 (TARGET_POSIX_IO): Likewise.
3442 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3443 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3444 (USE_LD_AS_NEEDED): Likewise.
3445 (ASM_APP_ON): Likewise.
3446 (ASM_APP_OFF): Likewise.
3447 (TARGET_POSIX_IO): Likewise.
3448
3449 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3450
3451 PR middle-end/61734
3452 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3453 operators other than the equality operators.
3454
3455 2014-07-28 Richard Biener <rguenther@suse.de>
3456
3457 PR middle-end/52478
3458 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3459 sure to register SImode ones, not only >= word_mode ones.
3460 * expr.c (expand_expr_real_2): When expanding -ftrapv
3461 binops do not use OPTAB_LIB_WIDEN.
3462
3463 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3464
3465 PR middle-end/61919
3466 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3467 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3468 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3469 inserting them in the insn stream.
3470
3471 2014-07-28 Marek Polacek <polacek@redhat.com>
3472
3473 PR middle-end/61913
3474 * common.opt (Wodr): Add Var.
3475
3476 2014-07-28 Richard Biener <rguenther@suse.de>
3477
3478 PR tree-optimization/61921
3479 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3480 if there is a varpool node before dereferencing it.
3481
3482 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3483
3484 * graphite-sese-to-poly.c:
3485 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3486 id of the pbb), which contains pointer to the pbb1.
3487
3488 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3489
3490 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3491
3492 * graphite-isl-ast-to-gimple.c:
3493 (graphite_create_new_guard): New function.
3494 (translate_isl_ast_node_if): New function.
3495 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3496
3497 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3498
3499 2014-07-27 Anthony Green <green@moxielogic.com>
3500
3501 * config.gcc: Add moxie-*-moxiebox* configuration.
3502 * config/moxie/moxiebox.h: New file.
3503
3504 2014-07-26 Andrew Pinski <apinski@cavium.com>
3505
3506 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3507 from the read only register.
3508
3509 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3510
3511 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3512 as the allocation class if it isn't likely to be spilled.
3513
3514 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3515
3516 * rtl.h (tls_referenced_p): Declare.
3517 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3518 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3519 (mips_cannot_force_const_mem): Use tls_referenced_p.
3520 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3521 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3522 instead of pa_tls_referenced_p.
3523 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3524 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3525 (pa_legitimate_constant_p): Likewise.
3526 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3527 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3528 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3529 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3530 rs6000_tls_referenced_p.
3531 (rs6000_tls_symbol_ref_1): Delete.
3532
3533 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3534
3535 PR target/44551
3536 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3537 Optimize inverse of a VEC_CONCAT.
3538
3539 2014-07-25 Xinliang David Li <davidxl@google.com>
3540
3541 * params.def: New parameter.
3542 * coverage.c (get_coverage_counts): Check new flag.
3543 (coverage_compute_profile_id): Check new flag.
3544 (coverage_begin_function): Check new flag.
3545 (coverage_end_function): Check new flag.
3546 * value-prof.c (coverage_node_map_initialized_p): New function.
3547 (init_node_map): Populate map with all functions.
3548 * doc/invoke.texi: Document new parameter.
3549
3550 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3551 Richard Biener <rguenther@suse.de>
3552
3553 * lto-streamer-out.c (struct sccs): Turn to ...
3554 (class DFS): ... this one; refactor the DFS walk so it can
3555 be re-done on per-SCC basis.
3556 (DFS::DFS): New constructor.
3557 (DFS::~DFS): New destructor.
3558 (hash_tree): Add new MAP argument holding in-SCC hash values;
3559 remove POINTER_TYPE hashing hack.
3560 (scc_entry_compare): Rename to ...
3561 (DFS::scc_entry_compare): ... this one.
3562 (hash_scc): Rename to ...
3563 (DFS::hash_scc): ... this one; pass output_block instead
3564 of streamer_cache; work harder to get unique and stable SCC
3565 hashes.
3566 (DFS_write_tree): Rename to ...
3567 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3568 (lto_output_tree): Update.
3569
3570 2014-07-25 Andi Kleen <ak@linux.intel.com>
3571
3572 * lto-streamer-out.c (hash_tree): Convert to inchash.
3573
3574 2014-07-25 Andi Kleen <ak@linux.intel.com>
3575
3576 * tree.c (build_type_attribute_qual_variant): Use inchash.
3577 (type_hash_list): Dito.
3578 (attribute_hash_list): Dito
3579 (iterative_hstate_expr): Dito.
3580 (iterative_hash_expr): Dito.
3581 (build_range_type_1): Dito.
3582 (build_array_type_1): Dito.
3583 (build_function_type): Dito.
3584 (build_method_type_directly): Dito.
3585 (build_offset_type): Dito.
3586 (build_complex_type): Dito.
3587 (make_vector_type): Dito.
3588 * tree.h (iterative_hash_expr): Add compat wrapper.
3589 (iterative_hstate_expr): Add.
3590
3591 2014-07-25 Andi Kleen <ak@linux.intel.com>
3592
3593 * Makefile.in (OBJS): Add inchash.o.
3594 (PLUGIN_HEADERS): Add inchash.h.
3595 * ipa-devirt.c: Include inchash.h.
3596 * lto-streamer-out.c: Dito.
3597 * tree-ssa-dom.c: Dito.
3598 * tree-ssa-pre.c: Dito.
3599 * tree-ssa-sccvn.c: Dito.
3600 * tree-ssa-tail-merge.c: Dito.
3601 * asan.c: Dito.
3602 * tree.c (iterative_hash_hashval_t): Move to ...
3603 (iterative_hash_host_wide_int): Move to ...
3604 * inchash.c: Here. New file.
3605 * tree.h (iterative_hash_hashval_t): Move to ...
3606 (iterative_hash_host_wide_int): Move to ...
3607 * inchash.h: Here. New file.
3608
3609 2014-07-25 Richard Biener <rguenther@suse.de>
3610
3611 PR middle-end/61762
3612 PR middle-end/61894
3613 * fold-const.c (native_encode_int): Add and handle offset
3614 parameter to do partial encodings of expr.
3615 (native_encode_fixed): Likewise.
3616 (native_encode_real): Likewise.
3617 (native_encode_complex): Likewise.
3618 (native_encode_vector): Likewise.
3619 (native_encode_string): Likewise.
3620 (native_encode_expr): Likewise.
3621 * fold-const.c (native_encode_expr): Add offset parameter
3622 defaulting to -1.
3623 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3624 (fold_ctor_reference): Handle all reads from tcc_constant
3625 ctors.
3626
3627 2014-07-25 Richard Biener <rguenther@suse.de>
3628
3629 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3630 as possibly unused.
3631
3632 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3633
3634 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3635
3636 2014-07-24 Kyle McMartin <kyle@redhat.com>
3637
3638 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3639
3640 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3641
3642 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3643 Add prototype.
3644 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3645 function.
3646 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3647 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3648 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3649
3650 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3651
3652 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3653 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3654 aggregate types. Instead, *all* aggregate types, except for single-
3655 element or homogeneous float/vector aggregates, are quadword-aligned
3656 if required by their type alignment. Issue -Wpsabi note when a type
3657 is now treated differently than before.
3658
3659 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3660
3661 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3662 does not fit fully into floating-point registers, and there is still
3663 space in the register parameter area, use GPRs to pass those parts
3664 of the argument. Issue -Wpsabi note if any parameter is now treated
3665 differently than before.
3666 (rs6000_arg_partial_bytes): Update.
3667
3668 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3669
3670 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3671
3672 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3673
3674 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3675 * toplev.c (initialize_rtl): Don't use it. Move previously
3676 "language-dependent" calls to...
3677 (backend_init): ...here.
3678 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3679 Assert that RTL initialization hasn't happend yet.
3680
3681 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3682
3683 PR rtl-optimization/61629
3684 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3685 they have already been initialized.
3686
3687 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3688
3689 PR middle-end/61268
3690 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3691 DECL_INCOMING_RTL and entry_parm.
3692 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3693 * calls.c (load_register_parameters): Likewise argument values.
3694 (emit_library_call_value_1, store_one_arg): Likewise argument
3695 save areas.
3696 * config/i386/i386.c (assign_386_stack_local): Likewise the local
3697 stack slot.
3698 * explow.c (validize_mem): Modify the argument in-place.
3699
3700 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3701
3702 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
3703 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
3704
3705 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3706
3707 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
3708 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
3709
3710 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3711
3712 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
3713 (aarch64_save_callee_saves): New parameter "skip_wb".
3714 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
3715
3716 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3717
3718 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
3719 "wb_candidate2".
3720 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
3721
3722 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3723
3724 * graphite-isl-ast-to-gimple.c:
3725 (graphite_create_new_loop): Add calling of isl_id_free to properly
3726 decrement reference counts.
3727
3728 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
3729
3730 2014-07-24 Martin Liska <mliska@suse.cz>
3731 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
3732 function used.
3733 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
3734 (rs6000_code_end): Likewise.
3735
3736 2014-07-24 Martin Liska <mliska@suse.cz>
3737
3738 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
3739 symtab_node funtion used.
3740 (rs6000_xcoff_declare_object_name): Likewise.
3741
3742 2014-07-24 Martin Liska <mliska@suse.cz>
3743
3744 * cgraphunit.c (compile): Correct function used.
3745
3746 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3747
3748 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
3749 as non-indexable.
3750
3751 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3752
3753 PR lto/61802
3754 * varasm.c (bss_initializer_p): Handle offlined ctors.
3755 (align_variable, get_variable_align): Likewise.
3756 (make_decl_one_only): Likewise.
3757 (default_binds_local_p_1): Likewise.
3758 (decl_binds_to_current_def_p): Likewise.
3759 (get_variable_section): Get constructor if it is offlined.
3760 (assemble_variable_contents): Sanity check that the caller
3761 streamed in the ctor in LTO.
3762
3763 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3764
3765 * graphite-isl-ast-to-gimple.c:
3766 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
3767 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
3768 isl_ast_op_pdiv_r to the different case.
3769
3770 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
3771
3772 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3773
3774 PR middle-end/61876
3775 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
3776 when flag_errno_math is on.
3777
3778 2014-07-24 Martin Liska <mliska@suse.cz>
3779
3780 * cgraph.h (varpool_node):
3781 (availability get_availability (void)):
3782 created from cgraph_variable_initializer_availability
3783 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
3784 created from: cgraph_variable_initializer_availability
3785 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
3786 (void finalize_named_section_flags (void)):
3787 created from varpool_finalize_named_section_flags
3788 (bool assemble_decl (void)): created from varpool_assemble_decl
3789 (void analyze (void)): created from varpool_analyze_node
3790 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
3791 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
3792 (void remove_initializer (void)): created from varpool_remove_initializer
3793 (tree get_constructor (void)): created from varpool_get_constructor
3794 (bool externally_visible_p (void)): created from varpool_externally_visible_p
3795 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
3796 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
3797 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
3798 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
3799 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
3800 (static bool output_variables (void)): created from varpool_output_variables
3801 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
3802 created from varpool_extra_name_alias
3803 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
3804 (static void dump_varpool (FILE *f)): created from dump_varpool
3805 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
3806 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
3807 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
3808 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
3809 (void assemble_aliases (void)): created from assemble_aliases
3810
3811 2014-07-24 Martin Liska <mliska@suse.cz>
3812
3813 * cgraph.h (symtab_node):
3814 (void register_symbol (void)): created from symtab_register_node
3815 (void remove (void)): created from symtab_remove_node
3816 (void dump (FILE *f)): created from dump_symtab_node
3817 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
3818 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
3819 (struct ipa_ref *add_reference (symtab_node *referred_node,
3820 enum ipa_ref_use use_type)): created from add_reference
3821 (struct ipa_ref *add_reference (symtab_node *referred_node,
3822 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
3823 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
3824 gimple stmt)): created from maybe_add_reference
3825 (bool semantically_equivalent_p (symtab_node *target)): created from
3826 symtab_semantically_equivalent_p
3827 (void remove_from_same_comdat_group (void)): created from
3828 remove_from_same_comdat_group
3829 (void add_to_same_comdat_group (symtab_node *old_node)): created from
3830 symtab_add_to_same_comdat_group
3831 (void dissolve_same_comdat_group_list (void)): created from
3832 symtab_dissolve_same_comdat_group_list
3833 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
3834 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
3835 created from symtab_alias_ultimate_target
3836 (inline symtab_node *next_defined_symbol (void)): created from
3837 symtab_next_defined_symbol
3838 (bool resolve_alias (symtab_node *target)): created from
3839 symtab_resolve_alias
3840 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
3841 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
3842 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
3843 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
3844 (void set_section (const char *section)): created from set_section_1
3845 (enum availability get_availability (void)): created from symtab_node_availability
3846 (void make_decl_local (void)): created from symtab_make_decl_local
3847 (bool real_symbol_p (void)): created from symtab_read_node
3848 (can_be_discarded_p (void)): created from symtab_can_be_discarded
3849 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
3850 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
3851 symtab_in_same_comdat_p;
3852 (bool address_taken_from_non_vtable_p (void)): created from
3853 address_taken_from_non_vtable_p
3854 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
3855 (static void dump_table (FILE *)): created from dump_symtab
3856 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
3857 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
3858 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
3859 symtab_used_from_object_file_p
3860 (void dump_base (FILE *)): created from dump_symtab_base
3861 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
3862 (void unregister (void)): created from symtab_unregister_node
3863 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
3864 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
3865 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
3866 symtab_nonoverwritable_alias_1
3867 * cgraph.h (cgraph_node):
3868 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
3869 created from cgraph_remove_node_and_inline_clones
3870 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
3871 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
3872 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
3873 (cgraph_node *function_symbol (enum availability *avail = NULL)):
3874 created from cgraph_function_node
3875 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
3876 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
3877 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
3878 created from cgraph_create_clone
3879 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
3880 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
3881 created from cgraph_create_virtual_clone
3882 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
3883 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
3884 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
3885 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
3886 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
3887 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
3888 created from cgraph_function_version_info
3889 (struct cgraph_function_version_info *insert_new_function_version (void)):
3890 created from insert_new_cgraph_node_version
3891 (struct cgraph_function_version_info *function_version (void)): created from
3892 get_cgraph_node_version
3893 (void analyze (void)): created from analyze_function
3894 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
3895 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
3896 tree real_alias) cgraph_add_thunk
3897 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
3898 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
3899 created from cgraph_function_or_thunk_node
3900 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
3901 created from expand_thunk
3902 (void reset (void)): created from cgraph_reset_node
3903 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
3904 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
3905 (void remove (void)): created from cgraph_remove_node
3906 (void dump (FILE *f)): created from dump_cgraph_node
3907 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
3908 (bool get_body (void)): created from cgraph_get_body
3909 (void release_body (void)): created from cgraph_release_function_body
3910 (void unnest (void)): created from cgraph_unnest_node
3911 (void make_local (void)): created from cgraph_make_node_local
3912 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
3913 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
3914 gcov_type count, int freq)): created from cgraph_create_edge
3915 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
3916 gcov_type count, int freq)): created from cgraph_create_indirect_edge
3917 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
3918 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
3919 created from cgraph_create_edge_including_clones
3920 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
3921 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
3922 (void remove_callers (void)): created from cgraph_node_remove_callers
3923 (void remove_callees (void)): created from cgraph_node_remove_callees
3924 (enum availability get_availability (void)): created from cgraph_function_body_availability
3925 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
3926 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
3927 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
3928 (void call_duplication_hooks (cgraph_node *node2)): created from
3929 cgraph_call_node_duplication_hooks
3930 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
3931 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
3932 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
3933 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
3934 (void call_function_insertion_hooks (void)):
3935 created from cgraph_call_function_insertion_hooks
3936 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
3937 (bool local_p (void)): created from cgraph_local_node
3938 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
3939 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
3940 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
3941 (inline bool only_called_directly_or_aliased_p (void)):
3942 created from cgraph_only_called_directly_or_aliased_p
3943 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
3944 created from cgraph_will_be_removed_from_program_if_no_direct_calls
3945 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
3946 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
3947 (bool can_remove_if_no_direct_calls_p (void)):
3948 created from cgraph_can_remove_if_no_direct_calls_p
3949 (inline bool has_gimple_body_p (void)):
3950 created from cgraph_function_with_gimple_body_p
3951 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
3952 (static void dump_cgraph (FILE *f)): created from dump_cgraph
3953 (static inline void debug_cgraph (void)): created from debug_cgraph
3954 (static void record_function_versions (tree decl1, tree decl2)):
3955 created from record_function_versions
3956 (static void delete_function_version (tree decl)):
3957 created from delete_function_version
3958 (static void add_new_function (tree fndecl, bool lowered)):
3959 created from cgraph_add_new_function
3960 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
3961 (static cgraph_node * create (tree decl)): created from cgraph_create_node
3962 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
3963 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
3964 (static cgraph_node *get_for_asmname (tree asmname)):
3965 created from cgraph_node_for_asm
3966 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
3967 created from cgraph_same_body_alias
3968 (static bool used_from_object_file_p_worker (cgraph_node *node,
3969 void *): new function
3970 (static bool non_local_p (cgraph_node *node, void *)):
3971 created from cgraph_non_local_node_p_1
3972 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
3973 created from verify_cgraph
3974 (static bool make_local (cgraph_node *node, void *)):
3975 created from cgraph_make_node_local
3976 (static cgraph_node *create_alias (tree alias, tree target)):
3977 created from cgraph_create_function_alias
3978 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
3979 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
3980 created from cgraph_create_edge_1
3981 * cgraph.h (varpool_node):
3982 (void remove (void)): created from varpool_remove_node
3983 (void dump (FILE *f)): created from dump_varpool_node
3984
3985 2014-07-24 Richard Biener <rguenther@suse.de>
3986
3987 PR ipa/61823
3988 * tree-ssa-structalias.c (create_variable_info_for_1):
3989 Use varpool_get_constructor.
3990 (create_variable_info_for): Likewise.
3991
3992 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3993
3994 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
3995 subtract outgoing area size when restoring stack_pointer_rtx.
3996
3997 2014-07-24 Nick Clifton <nickc@redhat.com>
3998
3999 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
4000 that operations are taking place in parallel.
4001 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
4002
4003 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
4004
4005 * omp-low.c (extract_omp_for_data): Add missing break statement.
4006
4007 2014-07-24 Richard Biener <rguenther@suse.de>
4008
4009 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
4010 * tree-inline.c (estimate_move_cost): Add speed_p parameter
4011 and adjust MOVE_RATIO query accordingly.
4012 (estimate_num_insns): Adjust callers.
4013 * ipa-prop.c (ipa_populate_param_decls): Likewise.
4014 * ipa-cp.c (gather_context_independent_values,
4015 estimate_local_effects): Likewise.
4016 * ipa-split.c (consider_split): Likewise.
4017
4018 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
4019
4020 * config/i386/driver-i386.c: Remove names of unused arguments and
4021 unnecessary unused attributes.
4022 * config/i386/host-mingw32.c: Likewise.
4023 * config/i386/i386.c: Likewise.
4024 * config/i386/winnt-stubs.c: Likewise.
4025 * config/i386/winnt.c: Likewise.
4026
4027 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4028
4029 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
4030 (aarch64_gen_loadwb_pair): New helper function.
4031 (aarch64_expand_epilogue): Simplify code using new helper functions.
4032 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
4033
4034 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4035
4036 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
4037 (aarch64_gen_storewb_pair): New helper function.
4038 (aarch64_expand_prologue): Simplify code using new helper functions.
4039 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
4040
4041 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4042
4043 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
4044 Rename to aarch64_save_callee_saves, remove restore code.
4045 (aarch64_restore_callee_saves): New function.
4046
4047 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4048
4049 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
4050 (aarch64_save_callee_saves): New function to handle reg save
4051 for both core and vectore regs.
4052
4053 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4054
4055 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
4056 (aarch64_gen_store_pair): New helper function.
4057 (aarch64_save_or_restore_callee_save_registers)
4058 (aarch64_save_or_restore_fprs): Use new helper functions.
4059
4060 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4061
4062 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
4063 (aarch64_save_or_restore_callee_save_registers)
4064 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
4065
4066 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4067
4068 * config/aarch64/aarch64.c
4069 (aarch64_save_or_restore_callee_save_registers)
4070 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
4071
4072 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4073
4074 * config/aarch64/aarch64.c
4075 (aarch64_save_or_restore_callee_save_registers)
4076 (aarch64_save_or_restore_fprs): Remove 'increment'.
4077
4078 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4079
4080 * config/aarch64/aarch64.c
4081 (aarch64_save_or_restore_callee_save_registers)
4082 (aarch64_save_or_restore_fprs): Use register offset in
4083 cfun->machine->frame.reg_offset.
4084
4085 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4086
4087 * config/aarch64/aarch64.c
4088 (aarch64_save_or_restore_callee_save_registers)
4089 (aarch64_save_or_restore_fprs): Remove base_rtx.
4090
4091 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4092
4093 * config/aarch64/aarch64.c
4094 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
4095 to 'start_offset'. Remove local variable 'start_offset'.
4096
4097 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4098
4099 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
4100 type to HOST_WIDE_INT.
4101
4102 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4103
4104 * config/aarch64/aarch64.c (aarch64_expand_prologue)
4105 (aarch64_save_or_restore_fprs)
4106 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4107
4108 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4109
4110 * config/arm/t-rtems-eabi: Add
4111 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4112 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4113 mbig-endian/mthumb/march=armv7-r, and
4114 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4115 multilibs.
4116
4117 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4118 Chris Johns <chrisj@rtems.org>
4119 Joel Sherrill <joel.sherrill@oarcorp.com>
4120
4121 * config.gcc: Add nios2-*-rtems*.
4122 * config/nios2/rtems.h: New file.
4123 * gcc/config/nios2/t-rtems: New file.
4124
4125 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4126
4127 PR target/61396
4128 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4129 constant numbers, not general constants.
4130 (rs6000_expand_vector_init): Ditto.
4131
4132 2014-07-23 Nathan Sidwell <nathan@acm.org>
4133
4134 * gcov-tool.c (gcov_list): Declare here.
4135 (set_gcov_list): Remove.
4136 (gcov_output_files): Set gcov_list directly.
4137
4138 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4139
4140 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4141
4142 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4143
4144 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4145 callee-saved registers are available for padding purpose
4146 and r3 is not mandatory, then prefer use those callee-saved
4147 instead of r3.
4148
4149 2014-07-23 Richard Biener <rguenther@suse.de>
4150
4151 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4152 * combine.c: Include statistics.h and params.h.
4153 (combine_instructions): Guard three and four insn combines
4154 with max-combine-insns value. Record statistics for combines
4155 performed.
4156 * doc/invoke.texi (max-combine-insns): Document new param.
4157
4158 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4159
4160 * graphite-isl-ast-to-gimple.c:
4161 (translate_isl_ast_node_block): New function.
4162 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4163
4164 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4165 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4166
4167 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4168
4169 * graphite-isl-ast-to-gimple.c:
4170 (get_max_schedule_dimensions): New function.
4171 (extend_schedule): Likewise.
4172 (generate_isl_schedule): Add calling of extend_schedule and
4173 get_max_schedule_dimensions.
4174
4175 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4176
4177 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4178 (case UNSPEC): Handle UNSPEC_RBIT.
4179
4180 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4181
4182 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4183 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4184
4185 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4186
4187 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4188
4189 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4190
4191 * graphite-isl-ast-to-gimple.c:
4192 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4193 (ivs_params_clear):
4194 (build_iv_mapping): New function.
4195 (translate_isl_ast_node_user): Likewise.
4196 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4197
4198 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4199 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4200 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4201
4202 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4203
4204 PR target/55701
4205 * config/arm/arm.md (setmem): New pattern.
4206 * config/arm/arm-protos.h (struct tune_params): New fields.
4207 (arm_gen_setmem): New prototype.
4208 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4209 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4210 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4211 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4212 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4213 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4214 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4215 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4216 (arm_const_inline_cost): New function.
4217 (arm_block_set_max_insns): New function.
4218 (arm_block_set_non_vect_profit_p): New function.
4219 (arm_block_set_vect_profit_p): New function.
4220 (arm_block_set_unaligned_vect): New function.
4221 (arm_block_set_aligned_vect): New function.
4222 (arm_block_set_unaligned_non_vect): New function.
4223 (arm_block_set_aligned_non_vect): New function.
4224 (arm_block_set_vect, arm_gen_setmem): New functions.
4225
4226 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4227
4228 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4229
4230 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4231
4232 PR target/61855
4233 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4234 out of #ifdef __OPTIMIZE__.
4235
4236 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4237
4238 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4239 different trapping status if -fnon-call-exceptions is enabled.
4240
4241 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4242
4243 * expr.c (store_field): Handle VOIDmode for calls that return values
4244 in multiple locations.
4245
4246 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4247
4248 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4249 (altivec_vsldoi_<mode>): Likewise.
4250
4251 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4252
4253 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4254 to the number of characters in the line.
4255
4256 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4257
4258 * graphite-isl-ast-to-gimple.c: Add using of
4259 build_nonstandard_integer_type instead of int128_integer_type_node.
4260
4261 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4262
4263 * toplev.c (output_stack_usage): Adjust the location of the warning.
4264
4265 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4266
4267 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4268 (*membar_storeload): Disable for LEON3.
4269
4270 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4271
4272 PR rtl-optimization/61461
4273 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4274
4275 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4276
4277 PR target/61794
4278 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4279 Fix instruction constraint.
4280 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4281
4282 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4283
4284 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4285
4286 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4287
4288 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4289 GNU coding standards.
4290 (nds32_register_move_cost): Likewise.
4291 (nds32_memory_move_cost): Likewise.
4292 (nds32_address_cost): Likewise.
4293
4294 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4295
4296 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4297
4298 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4299
4300 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4301 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4302 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4303 (HAVE_sync_compare_and_swapqi): Define.
4304 (HAVE_sync_compare_and_swaphi): Likewise.
4305 (HAVE_sync_compare_and_swapsi): Likewise.
4306
4307 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4308
4309 * config/mips/p5600.md: Add missing cpu tests.
4310
4311 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4312
4313 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4314 (vmla_f64): Likewise.
4315 (vfms_f64): Likewise.
4316 (vmls_f64): Likewise.
4317
4318 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4319
4320 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4321 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4322
4323 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4324
4325 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4326 (vmlal_high_lane_s32): Likewise.
4327 (vmlal_high_lane_u16): Likewise.
4328 (vmlal_high_lane_u32): Likewise.
4329 (vmlsl_high_lane_s16): Likewise.
4330 (vmlsl_high_lane_s32): Likewise.
4331 (vmlsl_high_lane_u16): Likewise.
4332 (vmlsl_high_lane_u32): Likewise.
4333
4334 2014-07-17 Terry Guo <terry.guo@arm.com>
4335
4336 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4337 (alus_reg): Renamed to alus_sreg.
4338 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4339 from alu_reg to alu_sreg. Change type of dsp instructions from
4340 alu_reg to alu_dsp_reg.
4341 * config/arm/thumb1.md: Likewise.
4342 * config/arm/thumb2.md: Likewise.
4343 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4344 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4345 with alu_sreg and alus_sreg.
4346 * config/arm/arm1026ejs.md (alu_op): Likewise.
4347 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4348 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4349 * config/arm/fa526.md (526_alu_op): Likewise.
4350 * config/arm/fa606te.md (606te_alu_op): Likewise.
4351 * config/arm/fa626te.md (626te_alu_op): Likewise.
4352 * config/arm/fa726te.md (726te_alu_op): Likewise.
4353 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4354 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4355 alu_sreg, alu_dsp_reg and alus_sreg.
4356 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4357 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4358 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4359 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4360 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4361 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4362 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4363 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4364 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4365 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4366 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4367 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4368 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4369 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4370 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4371 alus_reg to alus_sreg.
4372
4373 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4374
4375 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4376 infinity format.
4377
4378 2014-07-17 Richard Biener <rguenther@suse.de>
4379
4380 PR rtl-optimization/61801
4381 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4382 don't set reg_pending_barrier if it appears in a debug-insn.
4383
4384 2014-07-16 DJ Delorie <dj@redhat.com>
4385
4386 * config/rx/rx.c (rx_option_override): Fix alignment values.
4387 (rx_align_for_label): Likewise.
4388
4389 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4390
4391 PR target/61737.
4392 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4393 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4394 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4395 functions.
4396 (cris_print_index, cris_print_operand, cris_constant_index_p)
4397 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4398 (cris_address_cost): Ditto last CONSTANT_P.
4399 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4400 callers changed. Yield cris_offsettable_symbol for non-PIC
4401 constant symbolic expressions including labels. Yield cris_unspec
4402 for all unspecs.
4403 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4404 target to pic_offset_table_rtx for calls that will likely go
4405 through PLT, const0_rtx when they can't. All callers changed.
4406 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4407 symbolic expressions to be PICified. Remove second, redundant,
4408 assert on can_create_pseudo_p returning non-zero. Use
4409 replace_equiv_address_nv, not replace_equiv_address, for final
4410 operand update.
4411 * config/cris/cris.md ("movsi"): Move variable t to pattern
4412 toplevel. Adjust assert for new cris_symbol_type member. Use
4413 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4414 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4415 for lapc stricter.
4416 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4417 ("call", "call_value"): Use second incoming operand as a marker
4418 for pic-offset-table-register being used.
4419 ("*expanded_call_non_v32", "*expanded_call_v32")
4420 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4421 second incoming operand to CALL, match cris_call_type_marker.
4422 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4423 ("*expanded_call_side"): Ditto. Fix typo in comment.
4424 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4425 CONSTANT_P.
4426 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4427 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4428 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4429 users changed. Add members cris_offsettable_symbol and cris_unspec.
4430 (cris_symbol_type): Rename from cris_pic_symbol_type.
4431 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4432 just CONSTANT_P.
4433 * config/cris/cris-protos.h (cris_symbol_type_of,
4434 cris_expand_pic_call_address): Adjust prototypes.
4435 (cris_legitimate_constant_p): New prototype.
4436
4437 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4438 an existing tmake_file. Don't add t-slibgcc and t-linux.
4439
4440 2014-07-17 Jason Merrill <jason@redhat.com>
4441
4442 PR c++/61623
4443 * symtab.c (symtab_remove_from_same_comdat_group): Also
4444 set_comdat_group to NULL_TREE.
4445 (verify_symtab): Fix diagnostic.
4446
4447 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4448
4449 PR target/61662
4450 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4451
4452 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4453
4454 Support location tracking for built-in macro tokens
4455 * input.h (is_location_from_builtin_token): New function declaration.
4456 * input.c (is_location_from_builtin_token): New function definition.
4457 * toplev.c (general_init): Tell libcpp what the pre-defined
4458 spelling location for built-in tokens is.
4459
4460 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4461
4462 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4463 on the FUNCTION_DECL.
4464
4465 2014-07-16 Richard Biener <rguenther@suse.de>
4466
4467 PR other/61782
4468 * doc/extend.texi (always_inline): Clarify.
4469
4470 2014-07-15 Eric Christopher <echristo@gmail.com>
4471
4472 * doc/invoke.texi (Link Options): Document -z option.
4473
4474 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4475
4476 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4477 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4478
4479 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4480
4481 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4482
4483 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4484
4485 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4486 varpool_assemble_decl.
4487 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4488 true.
4489
4490 2014-07-15 Michael Matz <matz@suse.de>
4491
4492 PR rtl-optimization/61772
4493 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4494
4495 2014-07-15 Richard Biener <rguenther@suse.de>
4496
4497 * opts.c (default_options_table): Disable bit-ccp at -Og.
4498
4499 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4500
4501 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4502
4503 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4504
4505 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4506 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4507 call langhook for unknown declaration.
4508 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4509 * tree.h (DECL_ARGUMENTS): Update.
4510 * print-tree.c (print_node): Update.
4511 * tree-core.h (tree_decl_non_common): Remove arguments.
4512 (tree_function_decl): Add arguments.
4513
4514 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4515
4516 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4517
4518 2014-07-14 Richard Biener <rguenther@suse.de>
4519
4520 PR tree-optimization/61779
4521 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4522 simplifying a condition.
4523
4524 2014-07-14 Richard Biener <rguenther@suse.de>
4525
4526 * builtins.c (c_strlen): Make only_value == 2 really only
4527 affect warning generation.
4528
4529 2014-07-14 Richard Biener <rguenther@suse.de>
4530
4531 PR tree-optimization/61757
4532 PR tree-optimization/61783
4533 PR tree-optimization/61787
4534 * tree-ssa-dom.c (record_equality): Revert canonicalization
4535 change and add comment.
4536 (propagate_rhs_into_lhs): Revert previous fix, removing
4537 loop depth restriction again.
4538
4539 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4540
4541 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4542 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4543 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4544 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4545 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4546 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4547 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4548
4549 2014-07-14 Richard Biener <rguenther@suse.de>
4550
4551 * cgraph.h (decl_in_symtab_p): Make inline.
4552
4553 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4554
4555 PR middle-end/61294
4556 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4557
4558 PR target/61656
4559 * config/i386/i386.c (classify_argument): Don't merge classes above
4560 number of words.
4561
4562 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4563
4564 * cgraph.h (symtab_node): Add nonzero_address.
4565 (decl_in_symtab_p): Break out from ...
4566 (symtab_get_node): ... here.
4567 * fold-const.c: Include cgraph.h
4568 (tree_single_nonzero_warnv_p): Use symtab to determine
4569 if symbol is non-zero.
4570 * symtab.c (symtab_node::nonzero_address): New method.
4571
4572 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4573
4574 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4575 forgotten in previous commit.
4576
4577 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4578
4579 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4580 on builtin types.
4581 * ipa-devirt.c: Include stor-layout.h and intl.h
4582 (odr_subtypes_equivalent_p): New function.
4583 (warn_odr): New function.
4584 (warn_type_mismatch): New function.
4585 (odr_types_equivalent_p): New function.
4586 (add_type_duplicate): Use it.
4587 * common.opt (Wodr): New flag.
4588 * doc/invoke.texi (Wodr): Document new warning.
4589
4590 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4591
4592 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4593 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4594 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4595 (varpool_get_constructor): Push CTORS_IN timevar.
4596 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4597
4598 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4599
4600 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4601 Remove VOID_FTYPE_PUSHORT.
4602 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4603 Change code to USHORT_FTYPE_VOID.
4604 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4605 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4606 (ix86_atomic_assign_expand_fenv): Update for
4607 __builtin_ia32_fnstsw changes.
4608 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4609 (fnstsw): Change operand 0 to nonimmediate operand.
4610
4611 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4612
4613 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4614 (varpool_get_constructor): New function.
4615 (varpool_ctor_useable_for_folding_p): Break out from ...
4616 (ctor_for_folding): ... here; use varpool_get_constructor.
4617 (varpool_assemble_decl): Likewise.
4618 * lto-streamer.h (struct output_block): Turn cgraph_node
4619 to symbol filed.
4620 (lto_input_variable_constructor): Declare.
4621 * ipa-visibility.c (function_and_variable_visibility): Use
4622 varpool_get_constructor.
4623 * cgraph.h (varpool_get_constructor): Declare.
4624 (varpool_ctor_useable_for_folding_p): New function.
4625 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4626 parameter; return error_mark_node for non-trivial constructors.
4627 (lto_write_tree_1, DFS_write_tree): Update use of
4628 get_symbol_initial_value.
4629 (output_function): Update initialization of symbol.
4630 (output_constructor): New function.
4631 (copy_function): Rename to ..
4632 (copy_function_or_variable): ... this one; handle vars too.
4633 (lto_output): Output variable sections.
4634 * lto-streamer-in.c (input_constructor): New function.
4635 (lto_read_body): Rename from ...
4636 (lto_read_body_or_constructor): ... this one; handle vars too.
4637 (lto_input_variable_constructor): New function.
4638 * ipa-prop.c (ipa_prop_write_jump_functions,
4639 ipa_prop_write_all_agg_replacement): Update.
4640 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4641 (output_cgraph_opt_summary): Set symbol to NULL.
4642
4643 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4644
4645 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4646 non-polymorphic types.
4647 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4648 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4649 of types is not polymorphic.
4650
4651 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4652
4653 * lra-constraints.c (remove_inheritance_pseudos): Process
4654 destination pseudo too.
4655
4656 2014-07-11 Rong Xu <xur@google.com>
4657
4658 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4659 commit r212448.
4660
4661 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4662
4663 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4664 * config/avr/avr-devices.c (AVR_MCU): Same.
4665 (avr_mcu_types): add text start value to end of device list.
4666 * config/avr/avr-mcus.def: Add text section start for all devices.
4667 (ata5782): Add new avr5 device.
4668 (ata5831): Same.
4669 * config/avr/avr-tables.opt: Regenerate.
4670 * config/avr/avr.h: Add declaration for text section start handler.
4671 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4672 SPEC functions.
4673 (LINK_SPEC): Include text section start handler to linker spec.
4674 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4675 pass -Ttext option to linker if the text section start for the device
4676 is not zero.
4677 * config/avr/t-multilib: Regenerate.
4678 * doc/avr-mmcu.texi: Regenerate.
4679
4680 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4681
4682 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4683 * config/rs6000/aix52.h (LINK_SPEC): Same.
4684 * config/rs6000/aix53.h (LINK_SPEC): Same.
4685 * config/rs6000/aix61.h (LINK_SPEC): Same.
4686 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4687
4688 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4689
4690 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4691 (graphite_verify): New function.
4692 (ivs_params_clear): New function.
4693 (gcc_expression_from_isl_ast_expr_id): New function.
4694 (gcc_expression_from_isl_expr_int): New function.
4695 (binary_op_to_tree): New function.
4696 (ternary_op_to_tree): New function.
4697 (unary_op_to_tree): New function.
4698 (nary_op_to_tree): New function.
4699 (gcc_expression_from_isl_expr_op): New function.
4700 (gcc_expression_from_isl_expression): New function.
4701 (graphite_create_new_loop): New function.
4702 (translate_isl_ast_for_loop): New function.
4703 (get_upper_bound): New function.
4704 (graphite_create_new_loop_guard): New function.
4705 (translate_isl_ast_node_for): New function.
4706 (translate_isl_ast): New function.
4707 (add_parameters_to_ivs_params): New function.
4708 (scop_to_isl_ast): New parameter ip.
4709 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
4710
4711 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4712
4713 * config/xtensa/predicates.md (call expander): Update for
4714 DECL_SECTION_NAME being string.
4715
4716 2014-07-11 Richard Biener <rguenther@suse.de>
4717
4718 PR middle-end/61473
4719 * builtins.c (fold_builtin_memory_op): Inline memory moves that
4720 can be implemented with a single load followed by a single store.
4721 (c_strlen): Only warn when only_value is not 2.
4722
4723 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
4724
4725 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
4726
4727 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
4728
4729 PR target/61561
4730 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
4731 (*movhi_bytes): Likewise.
4732 (*arm_movqi_insn): Likewise.
4733
4734 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
4735
4736 PR target/56858
4737 * config/alpha/alpha.c: Include tree-pass.h, context.h
4738 and pass_manager.h.
4739 (pass_data_handle_trap_shadows): New pass.
4740 (pass_handle_trap_shadows::gate): New pass gate function.
4741 (make_pass_handle_trap_shadows): New function.
4742 (rest_of_handle_trap_shadows): Ditto.
4743
4744 (alpha_align_insns_1): Rename from alpha_align_insns.
4745 (pass_data_align_insns): New pass.
4746 (pass_align_insns::gate): New pass gate function.
4747 (make_pass_aling_insns): New function.
4748 (rest_of_align_insns): Ditto.
4749 (alpha_align_insns): Ditto.
4750
4751 (alpha_option_override): Declare handle_trap_shadows info
4752 and align_insns_info. Register handle_trap_shadows and align_insns
4753 passes here.
4754 (alpha_reorg): Do not call alpha_trap_shadows and
4755 alpha_align_insn from here.
4756
4757 (alpha_pad_function_end): Do not skip BARRIERs.
4758
4759 2014-07-10 Rong Xu <xur@google.com>
4760
4761 Add gcov-tool: an offline gcda profile processing tool support.
4762 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
4763 (gcov_is_error): Ditto.
4764 (gcov_read_string): Ditto.
4765 (gcov_read_sync): Ditto.
4766 * gcov-io.h: Move counter defines to gcov-counter.def.
4767 * gcov-dump.c (tag_counters): Use gcov-counter.def.
4768 * coverage.c: Ditto.
4769 * gcov-tool.c: Offline gcda profile processing tool.
4770 (unlink_gcda_file): Remove one gcda file.
4771 (unlink_profile_dir): Remove gcda files from the profile path.
4772 (gcov_output_files): Output gcda files to an output dir.
4773 (profile_merge): Merge two profiles in directory.
4774 (print_merge_usage_message): Print merge usage.
4775 (merge_usage): Print merge usage and exit.
4776 (do_merge): Driver for profile merge sub-command.
4777 (profile_rewrite): Rewrite profile.
4778 (print_rewrite_usage_message): Print rewrite usage.
4779 (rewrite_usage): Print rewrite usage and exit.
4780 (do_rewrite): Driver for profile rewrite sub-command.
4781 (print_usage): Print gcov-info usage and exit.
4782 (print_version): Print gcov-info version.
4783 (process_args): Process arguments.
4784 (main): Main routine for gcov-tool.
4785 * Makefile.in: Build and install gcov-tool.
4786 * gcov-counter.def: New file split from gcov-io.h.
4787 * doc/gcc.texi: Include gcov-tool.texi.
4788 * doc/gcov-tool.texi: Document for gcov-tool.
4789
4790 2014-07-10 Richard Biener <rguenther@suse.de>
4791
4792 PR tree-optimization/61757
4793 * tree-ssa-dom.c (loop_depth_of_name): Restore.
4794 (propagate_rhs_into_lhs): Revert part of last change.
4795
4796 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
4797
4798 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
4799 FUNCTION_DECLs.
4800
4801 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
4802
4803 PR middle-end/53590
4804 * function.c (allocate_struct_function): Revert r188667 change.
4805
4806 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
4807
4808 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
4809
4810 * doc/install.texi: Remove links to defunct package providers for
4811 Solaris.
4812
4813 2014-07-09 Tom de Vries <tom@codesourcery.com>
4814
4815 * final.c (get_call_fndecl): Declare.
4816 (self_recursive_call_p): New function.
4817 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
4818
4819 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4820
4821 * ipa-devirt.c (record_node): Walk through aliases.
4822
4823 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4824
4825 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
4826
4827 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4828
4829 Revert:
4830 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
4831
4832 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4833
4834 * ipa-visibility.c (function_and_variable_visibility): Remove
4835 temporary hack disabling local aliases on AIX.
4836
4837 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4838
4839 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
4840 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
4841
4842 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4843
4844 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
4845 * rs6000/rs6000.c: Inline output of .set instruction.
4846 (declare_alias_data): New struct.
4847 (rs6000_declare_alias): New function.
4848 (rs6000_xcoff_declare_function_name): Use it.
4849 (rs6000_xcoff_declare_object_name): New function.
4850 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
4851 (ASM_OUTPUT_DEF): Turn to empty definition.
4852
4853 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4854
4855 PR bootstrap/61679
4856 * hash-table.h: use hash_table::value_type instead of
4857 Descriptor::value_type in the return types of several methods.
4858
4859 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4860
4861 * tree-pass.h (pass_data): Remove has_execute member.
4862 * passes.c (execute_one_pass): Don't check pass->has_execute.
4863 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
4864 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
4865 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
4866 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
4867 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
4868 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
4869 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
4870 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
4871 gimple-low.c, gimple-ssa-isolate-paths.c,
4872 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
4873 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
4874 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
4875 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
4876 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4877 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
4878 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
4879 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
4880 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
4881 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
4882 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
4883 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4884 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
4885 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4886 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
4887 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
4888 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
4889 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
4890 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
4891 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
4892 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
4893 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
4894 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
4895 web.c: Remove initializer for pass_data::has_execute.
4896
4897 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4898
4899 * graphite-htab.h: Use hash_map instead of hash_table.
4900 * graphite-clast-to-gimple.c: Adjust.
4901 * passes.c: Use hash_map instead of hash_table.
4902 * sese.c: Likewise.
4903 * sese.h: Remove now unused code.
4904
4905 2014-07-08 Sriraman Tallam <tmsriram@google.com>
4906
4907 PR target/61599
4908 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
4909 than zero.
4910
4911 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4912
4913 PR rtl-optimization/61673
4914 * combine.c (simplify_comparison): Test just mode's sign bit
4915 in tmode rather than the sign bit and any bits above it.
4916
4917 2014-07-08 Roman Gareev <gareevroman@gmail.com>
4918
4919 * graphite-isl-ast-to-gimple.c (generate_isl_context):
4920 Add __isl_give to the declaration.
4921 (generate_isl_schedule): Likewise.
4922 (scop_to_isl_ast): Likewise.
4923
4924 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4925
4926 * config/arm/arm.c (cortexa5_extra_costs): New table.
4927 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
4928
4929 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4930
4931 PR tree-optimization/61725
4932 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
4933 range, use range_includes_zerop_p instead of integer_zerop on
4934 vr0->min, only use log2 of max if min is not negative.
4935
4936 2014-07-08 Richard Biener <rguenther@suse.de>
4937
4938 * tree-ssa-dom.h (loop_depth_of_name): Remove.
4939 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
4940 restriction on loop depth difference.
4941 (record_equality): Likewise.
4942 (propagate_rhs_into_lhs): Likewise. Simplify condition.
4943 (loop_depth_of_name): Remove.
4944 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
4945 restriction on loop depth difference.
4946 (init_copy_prop): Likewise.
4947
4948 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4949
4950 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
4951 parameter.
4952 (walk_aliased_vdefs): Likewise.
4953 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
4954 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
4955 (detect_type_change_from_memory_writes): Check if entry was reached.
4956
4957 2014-07-08 Richard Biener <rguenther@suse.de>
4958
4959 PR tree-optimization/61681
4960 * tree-ssa-structalias.c (find_what_var_points_to): Expand
4961 NONLOCAL inside ESCAPED.
4962
4963 2014-07-08 Richard Biener <rguenther@suse.de>
4964
4965 PR tree-optimization/61680
4966 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4967 Handle properly all read-write dependences with group accesses.
4968
4969 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4970
4971 PR tree-optimization/61576
4972 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
4973 block containing reduction statement is predecessor of phi basi block.
4974
4975 2014-07-08 Marek Polacek <polacek@redhat.com>
4976
4977 PR c/60226
4978 * fold-const.c (round_up_loc): Change the parameter type.
4979 Remove assert.
4980 * fold-const.h (round_up_loc): Adjust declaration.
4981 * stor-layout.c (finalize_record_size): Check for too large types.
4982
4983 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
4984
4985 * symtab.c: Include calls.h.
4986 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
4987
4988 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
4989
4990 * config/rs6000/rs6000.c (output_vec_const_move): Handle
4991 little-endian code generation.
4992 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4993 (vec_perm00_v2si): ... this. Handle little-endian code generation.
4994 (spe_evmergehilo): Rename to...
4995 (vec_perm01_v2si): ... this. Handle little-endian code generation.
4996 (spe_evmergelo): Rename to...
4997 (vec_perm11_v2si): ... this. Handle little-endian code generation.
4998 (spe_evmergelohi): Rename to...
4999 (vec_perm10_v2si): ... this. Handle little-endian code generation.
5000 (spe_evmergehi, spe_evmergehilo): New expanders.
5001 (spe_evmergelo, spe_evmergelohi): Likewise.
5002 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
5003 (*frob_tf_ti): Likewise.
5004 (*frob_<mode>_di_2): Likewise.
5005 (*frob_tf_di_8_2): Likewise.
5006 (*frob_di_<mode>): Likewise.
5007 (*frob_ti_tf): Likewise.
5008 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
5009 (*frob_ti_<mode>_8_2): Likewise.
5010 (*frob_ti_tf_2): Likewise.
5011 (mov_si<mode>_e500_subreg0): Rename to...
5012 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
5013 endianness only.
5014 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
5015 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
5016 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
5017 the big endianness only.
5018 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
5019 (*mov_si<mode>_e500_subreg0_2): Rename to...
5020 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
5021 big big endianness only.
5022 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
5023 (*mov_si<mode>_e500_subreg4): Rename to...
5024 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
5025 endianness only.
5026 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
5027 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
5028 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
5029 the big endianness only.
5030 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
5031 pattern.
5032 (*mov_si<mode>_e500_subreg4_2): Rename to...
5033 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
5034 endianness only.
5035 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
5036 (*mov_sitf_e500_subreg8): Rename to...
5037 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
5038 endianness only.
5039 (*mov_sitf_e500_subreg8_le): New instruction pattern.
5040 (*mov_sitf_e500_subreg8_2): Rename to...
5041 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
5042 endianness only.
5043 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
5044 (*mov_sitf_e500_subreg12): Rename to...
5045 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
5046 endianness only.
5047 (*mov_sitf_e500_subreg12_le): New instruction pattern.
5048 (*mov_sitf_e500_subreg12_2): Rename to...
5049 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
5050 endianness only.
5051 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
5052
5053 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
5054
5055 * asan.c (instrument_strlen_call): Do not instrument first byte
5056 in strlen if already instrumented.
5057
5058 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5059
5060 * config/arm/arm.opt (mwords-little-endian): Delete.
5061 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
5062 of TARGET_LITTLE_WORDS.
5063 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
5064 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
5065 warning.
5066 * doc/invoke.texi: Remove references to -mwords-little-endian.
5067
5068 2014-07-07 Jakub Jelinek <jakub@redhat.com>
5069
5070 * expmed.c (struct init_expmed_rtl): Change all fields but
5071 pow2 and cint from struct rtx_def to rtx.
5072 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
5073 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
5074 at the end again.
5075
5076 2014-07-06 Marek Polacek <polacek@redhat.com>
5077
5078 PR c/6940
5079 * doc/invoke.texi: Document -Wsizeof-array-argument.
5080
5081 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5082
5083 * wide-int.h (wide_int_storage): Change declaration from struct
5084 to class.
5085
5086 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
5087
5088 * cgraph.c (cgraph_create_indirect_edge): Update call of
5089 get_polymorphic_call_info.
5090 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
5091 (possible_polymorphic_call_targets): Add parameter call.
5092 (decl_maybe_in_construction_p): New predicate.
5093 (get_polymorphic_call_info): Add parameter call;
5094 use decl_maybe_in_construction_p.
5095 * gimple-fold.c (fold_gimple_assign): Update use of
5096 possible_polymorphic_call_targets.
5097 (gimple_fold_call): Likewise.
5098 * ipa-prop.c: Inlcude calls.h
5099 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
5100 (param_type_may_change_p): New predicate.
5101 (detect_type_change_from_memory_writes): Break out from ...
5102 (detect_type_change): ... this one; use param_type_may_change_p.
5103 (detect_type_change_ssa): Use param_type_may_change_p.
5104 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5105
5106 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5107
5108 PR target/49423
5109 * config/arm/arm-protos.h (arm_legitimate_address_p,
5110 arm_is_constant_pool_ref): Add prototypes.
5111 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5112 (arm_is_constant_pool_ref) New function.
5113 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5114 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5115 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5116 operand. Remove pool_range and neg_pool_range attributes.
5117 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5118 pool_range and neg_pool_range attributes.
5119 * config/arm/constraints.md (Uh): New constraint.
5120 (Uq): Don't allow constant pool references.
5121
5122 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5123
5124 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5125 (move_lo_quad_internal_be_<mode>): Likewise.
5126 (move_lo_quad_<mode>): Convert to define_expand.
5127 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5128 (aarch64_simd_move_hi_quad_be_<mode>): New.
5129 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5130 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5131 (aarch64_combinez_be<mode>): New.
5132 (aarch64_combine<mode>): Convert to define_expand.
5133 (aarch64_combine_internal<mode>): New.
5134 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5135
5136 2014-07-04 Tom de Vries <tom@codesourcery.com>
5137
5138 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5139 combination of earlyclobber and read/write modifiers.
5140
5141 2014-07-04 Tom de Vries <tom@codesourcery.com>
5142
5143 * config/aarch64/aarch64-simd.md
5144 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5145
5146 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5147
5148 PR target/61714
5149 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5150
5151 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5152
5153 PR middle-end/61654
5154 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5155
5156 PR tree-optimization/61684
5157 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5158 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5159
5160 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5161 Kito Cheng <kito@0xlab.org>
5162 Monk Chiang <sh.chiang04@gmail.com>
5163
5164 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5165 (nds32_symbol_load_store_p): Move to ...
5166 (nds32_fp_as_gp_check_available): Move to ...
5167 * config/nds32/nds32-fp-as-gp.c: ... here.
5168 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5169 extern declaration.
5170
5171 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5172 Kito Cheng <kito@0xlab.org>
5173 Monk Chiang <sh.chiang04@gmail.com>
5174
5175 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5176 (nds32_expand_store_multiple): Move to ...
5177 (nds32_expand_movmemqi): Move to ...
5178 * config/nds32/nds32-memory-manipulation.c: ... here.
5179
5180 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5181 Kito Cheng <kito@0xlab.org>
5182 Monk Chiang <sh.chiang04@gmail.com>
5183
5184 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5185 (nds32_output_casesi_pc_relative): Move to ...
5186 (nds32_output_casesi): Move to ...
5187 (nds32_mem_format): Move to ...
5188 (nds32_output_16bit_store): Move to ...
5189 (nds32_output_16bit_load): Move to ...
5190 (nds32_output_32bit_store): Move to ...
5191 (nds32_output_32bit_load): Move to ...
5192 (nds32_output_32bit_load_s): Move to ...
5193 (nds32_output_stack_push): Move to ...
5194 (nds32_output_stack_pop): Move to ...
5195 * config/nds32/nds32-md-auxiliary.c: ... here.
5196
5197 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5198 Ling-Hua Tseng <uranus@tinlans.org>
5199
5200 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5201 the purpose of this file.
5202
5203 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5204 Kito Cheng <kito@0xlab.org>
5205 Monk Chiang <sh.chiang04@gmail.com>
5206
5207 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5208 (nds32_address_cost): Move implementation to ...
5209 * config/nds32/nds32-cost.c: ... here.
5210 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5211 (nds32_address_cost_impl): Declare.
5212
5213 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5214 Kito Cheng <kito@0xlab.org>
5215 Monk Chiang <sh.chiang04@gmail.com>
5216
5217 * config/nds32/nds32.c
5218 (nds32_consecutive_registers_load_store_p): Move to ...
5219 (nds32_valid_multiple_load_store): Move to ...
5220 (nds32_valid_stack_push_pop): Move to ...
5221 (nds32_can_use_bclr_p): Move to ...
5222 (nds32_can_use_bset_p): Move to ...
5223 (nds32_can_use_btgl_p): Move to ...
5224 (nds32_can_use_bitci_p): Move to ...
5225 * config/nds32/nds32-predicates.c: ... here.
5226
5227 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5228 Kito Cheng <kito@0xlab.org>
5229 Monk Chiang <sh.chiang04@gmail.com>
5230
5231 * config/nds32/nds32.c
5232 (nds32_expand_builtin_null_ftype_reg): Move to ...
5233 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5234 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5235 (nds32_init_builtins): Move implementation to ...
5236 (nds32_expand_builtin): Move implementation to ...
5237 * config/nds32/nds32-intrinsic.c: ... here.
5238 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5239 (nds32_expand_builtin_impl): Declare.
5240
5241 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5242 Kito Cheng <kito@0xlab.org>
5243 Monk Chiang <sh.chiang04@gmail.com>
5244
5245 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5246 (nds32_emit_section_tail_template): Move to ...
5247 (nds32_emit_isr_jmptbl_section): Move to ...
5248 (nds32_emit_isr_vector_section): Move to ...
5249 (nds32_emit_isr_reset_conten): Move to ...
5250 (nds32_check_isr_attrs_conflict): Move to ...
5251 (nds32_construct_isr_vectors_information): Move to ...
5252 (nds32_asm_file_start): Move implementation to ...
5253 (nds32_asm_file_end): Move implementation to ...
5254 * config/nds32/nds32-isr.c: ... here.
5255 * config/nds32/nds32-protos.h
5256 (nds32_check_isr_attrs_conflict): Declare.
5257 (nds32_construct_isr_vectors_information): Declare.
5258 (nds32_asm_file_start_for_isr): Declare.
5259 (nds32_asm_file_end_for_isr): Declare.
5260
5261 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5262 Kito Cheng <kito@0xlab.org>
5263 Monk Chiang <sh.chiang04@gmail.com>
5264
5265 * config.gcc (nds32*): Add new modules to extra_objs.
5266 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5267 (nds32be-*-*): Likewise.
5268 * config/nds32/nds32-cost.c: New file.
5269 * config/nds32/nds32-fp-as-gp.c: New file.
5270 * config/nds32/nds32-intrinsic.c: New file.
5271 * config/nds32/nds32-isr.c: New file.
5272 * config/nds32/nds32-md-auxiliary.c: New file.
5273 * config/nds32/nds32-memory-manipulation.c: New file.
5274 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5275 * config/nds32/nds32-predicates.c: New file.
5276 * config/nds32/t-nds32: New file.
5277
5278 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5279
5280 PR tree-optimization/61682
5281 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5282 using cases and when one of the operands is equal to 1.
5283
5284 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5285
5286 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5287 ashr<mode>3): Correct mode of operands[2].
5288 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5289 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5290 Correct mode of operands[2]. Fix split condition.
5291
5292 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5293
5294 * arm.md (arch): Add armv6_or_vfpv3.
5295 (arch_enabled): Add test for the above.
5296 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5297 on VFP9.
5298 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5299
5300 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5301
5302 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5303 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5304 HWI 1 and negate the unsigned value.
5305 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5306 use AND instead of shift.
5307 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5308
5309 2014-07-03 Marek Polacek <polacek@redhat.com>
5310
5311 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5312 (-fsanitize=float-divide-by-zero): Move to the table with
5313 -fsanitize=undefined suboptions.
5314 (-fsanitize=float-cast-overflow): Likewise.
5315
5316 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5317
5318 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5319 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5320 endianness.
5321
5322 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5323
5324 * loop-invariant.c (struct invariant): Add a new member: eqno;
5325 (find_identical_invariants): Update eqno;
5326 (create_new_invariant): Init eqno;
5327 (get_inv_cost): Compute comp_cost with eqno;
5328
5329 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5330
5331 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5332 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5333 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5334 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5335 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5336
5337 2014-07-02 Christian Bruel <christian.bruel@st.com>
5338
5339 PR target/29349
5340 PR target/53513
5341 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5342 (make_preds_opaque): Delete.
5343 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5344 (commit_mode_sets): New function.
5345 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5346 Process all modes at once.
5347 * basic-block.h (pre_edge_lcm_avs): Declare.
5348 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5349 Call clear_aux_for_edges. Fix comments.
5350 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5351 (pre_edge_rev_lcm): Idem.
5352 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5353 parameter.
5354 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5355 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5356 Idem.
5357 * config/i386/i386.c (x96_emit_mode_set): Idem.
5358 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5359 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5360 (fpscr_toggle) Disallow from delay slot.
5361 * target.def (emit_mode_set): Add prev_mode parameter.
5362 * doc/tm.texi: Regenerate.
5363
5364 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5365
5366 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5367 variable i.
5368
5369 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5370
5371 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5372 vtable_pointer_value_to_vtable): Constify.
5373 (contains_polymorphic_type_p): Declare.
5374 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5375 vtable_pointer_value_to_vtable): Constify.
5376 (contains_polymorphic_type_p): New predicate.
5377 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5378 polymorphic types.
5379 (ipa_set_ancestor_jf): Likewise.
5380 (detect_type_change): Return false in easy cases.
5381 (compute_complex_assign_jump_func): Require type to contain
5382 polymorphic type.
5383 (compute_known_type_jump_func): Likewise.
5384
5385 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5386
5387 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5388 Remove.
5389 (type_in_anonymous_namespace_p): Constify argument.
5390 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5391 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5392 (main_odr_variant): New function.
5393 (hash_type_name): Make static; update assert; do not ICE on
5394 non-records.
5395 (types_same_for_odr): Bring here from tree.c; simplify and remove
5396 old structural comparing code that doesn't work for templates.
5397 (odr_hasher::equal): Update assert.
5398 (add_type_duplicate): Return true when bases should be computed;
5399 replace incomplete loader by complete; do not output duplicated
5400 warnings; do not ICE on non-records; set odr_violated flag.
5401 (get_odr_type): Be ready to replace incomplete type by complete
5402 one; work on ODR variants instead of main variants; reorder item
5403 in array so bases have still smaller indexes.
5404 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5405 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5406
5407 2014-07-01 Cary Coutant <ccoutant@google.com>
5408
5409 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5410 lookup.
5411 (resolve_addr_in_expr): When replacing the rtx in a location list
5412 entry, get a new address table entry.
5413 (dwarf2out_finish): Call index_location_lists even if there are no
5414 addr_index_table entries yet.
5415
5416 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5417
5418 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5419 change for not being obvious.
5420
5421 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5422
5423 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5424 unused argument.
5425
5426 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5427
5428 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5429 (vcagt_f64): Likewise.
5430 (vcale_f64): Likewise.
5431 (vcaled_f64): Likewise.
5432 (vcales_f32): Likewise.
5433 (vcalt_f64): Likewise.
5434 (vcaltd_f64): Likewise.
5435 (vcalts_f32): Likewise.
5436
5437 2014-07-01 Marek Polacek <polacek@redhat.com>
5438
5439 * doc/invoke.texi: Document -Wint-conversion.
5440
5441 2014-07-01 Marek Polacek <polacek@redhat.com>
5442
5443 PR c/58286
5444 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5445
5446 2014-07-01 Martin Liska <mliska@suse.cz>
5447
5448 IPA REF alias refactoring
5449 * cgraph.h (iterate_direct_aliases): New function.
5450 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5451 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5452 FOR_EACH_ALIAS added.
5453 (cgraph_for_node_and_aliases): Likewise.
5454 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5455 * ipa-inline.c (reset_edge_caches): Likewise.
5456 (update_caller_keys): Likewise.
5457 * trans-mem.c (ipa_tm_execute): Likewise.
5458 *varpool.c (varpool_analyze_node): Likewise.
5459 (varpool_for_node_and_aliases): Likewise.
5460 * ipa-ref.h (first_alias): New function.
5461 (last_alias): Likewise.
5462 (has_aliases_p): Likewise.
5463 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5464 is sensitive to IPA_REF_ALIASes.
5465 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5466 are put at the beginning of the list.
5467 (symtab_node::iterate_direct_aliases): New function.
5468
5469 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5470
5471 Revert:
5472 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5473 type is complete.
5474 (write_ts_type_common_tree_pointers): Do not stream fields not set
5475 for incomplete types; do not stream duplicated fields for variants;
5476 sanity check that variant and type match.
5477 (write_ts_type_non_common_tree_pointers): Likewise.
5478 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5479 TYPE_SIZE whether type is complete.
5480 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5481 write_ts_type_common_tree_pointers
5482 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5483
5484 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5485
5486 * var-tracking.c (add_stores): Return instead of asserting if old
5487 and new values for conditional store are the same.
5488
5489 2014-06-30 Richard Henderson <rth@redhat.com>
5490
5491 PR rtl-opt/61608
5492 PR target/39284
5493 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5494 the cfg if there were any changes.
5495 * passes.def: Revert move of peephole2 after reorder_blocks;
5496 move duplicate_computed_gotos before peephole2.
5497
5498 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5499
5500 * except.c (emit_note_eh_region_end): New helper function.
5501 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5502 emit EH_REGION_END note.
5503 * jump.c (cleanup_barriers): Do not split a call and its
5504 corresponding CALL_ARG_LOCATION note.
5505
5506 2014-06-30 Jeff Law <law@redhat.com>
5507
5508 PR tree-optimization/61607
5509 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5510 deeper into the SSA_NAME_VALUE chain.
5511
5512 2014-06-30 Marek Polacek <polacek@redhat.com>
5513
5514 * convert.c (convert_to_integer): Don't instrument conversions if the
5515 function has no_sanitize_undefined attribute.
5516 * ubsan.c: Don't run the ubsan pass if the function has
5517 no_sanitize_undefined attribute.
5518
5519 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5520
5521 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5522 -fsanitize=undefined suboptions.
5523
5524 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5525
5526 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5527 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5528 against bigendian and adjust indices.
5529
5530 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5531
5532 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5533
5534 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5535
5536 PR target/61633
5537 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5538 Add alternative; make early clobber. Adjust both split patterns
5539 to use operand 0 as the working register.
5540
5541 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5542
5543 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5544 as ira_object_id_map might be NULL, or 1.
5545
5546 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5547
5548 * loop-invariant.c (get_inv_cost): Handle register class.
5549 (gain_for_invariant): Check the register pressure of the inv
5550 and its overlapped register class, other than all.
5551
5552 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5553
5554 * doc/invoke.texi (Optimize Options): Fix descriptions of
5555 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5556
5557 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5558
5559 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5560 documentation.
5561
5562 2014-06-29 Tobias Grosser <tobias@grosser.es>
5563
5564 PR bootstrap/61650
5565 * graphite-isl-ast-to-gimple.c: Add missing guards.
5566
5567 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5568
5569 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5570 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5571 * flag-types.h: Add new enum fgraphite_generator.
5572 * graphite-isl-ast-to-gimple.c: New.
5573 * graphite-isl-ast-to-gimple.h: New.
5574 * graphite.c (graphite_transform_loops): Add choice of Graphite
5575 code generator, which depends on flag_graphite_code_gen.
5576
5577 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5578
5579 * graphite-dependences.c (subtract_commutative_associative_deps):
5580 Add NULL checking of the following variables: must_raw_no_source,
5581 may_raw_no_source, must_war_no_source, may_war_no_source,
5582 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5583 must_war, may_war, must_waw, may_waw.
5584
5585 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5586
5587 * graphite-clast-to-gimple.c: gloog is renamed to
5588 graphite_regenerate_ast_cloog. gloog_error is renamed to
5589 graphite_regenerate_error.
5590 * graphite-clast-to-gimple.h: The definition of the struct
5591 bb_pbb_def is moved to graphite-htab.h.
5592 Add inclusion of the hash-table.h.
5593 * graphite-htab.h: The declaration of the function gloog is moved
5594 to graphite-clast-to-gimple.h and renamed to
5595 graphite_regenerate_ast_cloog.
5596 * graphite.c (graphite_transform_loops): gloog is renamed
5597 to graphite_regenerate_ast_cloog.
5598
5599 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5600
5601 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5602 type is complete.
5603 (write_ts_type_common_tree_pointers): Do not stream fields not set
5604 for incomplete types; do not stream duplicated fields for variants;
5605 sanity check that variant and type match.
5606 (write_ts_type_non_common_tree_pointers): Likewise.
5607 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5608 TYPE_SIZE whether type is complete.
5609 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5610 write_ts_type_common_tree_pointers
5611 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5612
5613 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5614
5615 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5616
5617 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5618
5619 * tree-inline.c (remap_type_1): Do not duplicate fields
5620 that are shared in between type and its main variant.
5621
5622 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5623
5624 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5625 of the type.
5626 (ipa_set_ancestor_jf) Likewise.
5627 (check_stmt_for_type_change): Check that we work on main variant.
5628 (detect_type_change): Look into main variant.
5629 (compute_known_type_jump_func): Check that main variant has BINFO.
5630
5631 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5632
5633 * ipa-devirt.c (set_type_binfo): New function.
5634 (add_type_duplicate): Use it.
5635 (get_odr_type): Sanity check that binfos points to main variants.
5636 (get_class_context): Be sure the context's outer_type is main variant.
5637 (contains_type_p): Walk main variant.
5638 (get_polymorphic_call_info_for_decl): Set outer_type to be
5639 main variant.
5640 (get_polymorphic_call_info): Likewise.
5641 (possible_polymorphic_call_targets): Sanity check that we operate
5642 on main variant.
5643
5644 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5645
5646 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5647
5648 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5649
5650 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5651 accidental change due to wide-int branch merge.
5652
5653 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5654
5655 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5656 compressed debug support.
5657 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5658 * configure: Regenerate.
5659 * config.in: Regenerate.
5660 * common.opt (compressed_debug_sections): New enum.
5661 (gz, gz=): New options.
5662 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5663 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5664 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5665 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5666 LINK_COMPRESS_DEBUG_SPEC.
5667 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5668 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5669 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5670 (Debugging Options): Document -gz[=type].
5671
5672 2014-06-27 Martin Jambor <mjambor@suse.cz>
5673
5674 PR ipa/61160
5675 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5676 args_to_skip, use those from node instead. Copy args_to_skip and
5677 combined_args_to_skip from node to the new thunk.
5678 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5679 (cgraph_create_virtual_clone): Moved computation of
5680 combined_args_to_skip...
5681 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5682
5683 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5684
5685 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5686 redundant diagnostic machinary.
5687
5688 2014-06-27 Richard Biener <rguenther@suse.de>
5689
5690 * tree-ssa-math-opts.c (bswap_replace): Fix
5691 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5692
5693 2014-06-27 Martin Liska <mliska@suse.cz>
5694
5695 * gimple.h (gimple_location_safe): New function introduced.
5696 * cgraphunit.c (walk_polymorphic_call_targets): Usage
5697 of gimple_location_safe replaces gimple_location.
5698 (gimple_fold_call): Likewise.
5699 * ipa-devirt.c (ipa_devirt): Likewise.
5700 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5701 * ipa.c (walk_polymorphic_call_targets): Likewise.
5702 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5703
5704 2014-06-27 Jakub Jelinek <jakub@redhat.com>
5705
5706 PR tree-optimization/57233
5707 PR tree-optimization/61299
5708 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
5709 functions.
5710 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
5711 would be lowered to scalar shifts, check if corresponding
5712 shifts and vector BIT_IOR_EXPR are supported and don't lower
5713 or lower just to narrower vector type in that case.
5714 * expmed.c (expand_shift_1): Fix up handling of vector
5715 shifts and rotates.
5716
5717 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
5718
5719 PR target/61586
5720 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
5721
5722 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
5723
5724 * doc/invoke.texi (-fsemantic-interposition): Document.
5725 * common.opt (fsemantic-interposition): New flag.
5726 * varasm.c (decl_replaceable_p): Use it.
5727
5728 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5729
5730 PR target/61542
5731 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
5732 extraction other than index 3.
5733
5734 2014-06-26 Teresa Johnson <tejohnson@google.com>
5735
5736 * doc/invoke.texi: Fix typo.
5737 * dumpfile.c: Add support for documented -fdump-* options
5738 optimized/missed/note/optall.
5739
5740 2014-06-26 Martin Jambor <mjambor@suse.cz>
5741
5742 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
5743 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
5744 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
5745 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
5746 * opts.c (default_options_optimization): Set
5747 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
5748 * doc/invoke.texi (allow-load-data-races)
5749 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
5750 (allow-store-data-races): Document the new default.
5751
5752 2014-06-26 Martin Jambor <mjambor@suse.cz>
5753
5754 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
5755 renamed to ipa_impossible_devirt_target. Fix typo.
5756 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
5757 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
5758 ipa_impossible_devirt_target.
5759
5760 2014-06-26 Richard Biener <rguenther@suse.de>
5761
5762 PR tree-optimization/61607
5763 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
5764 explaining why we restrict copies on loop depth.
5765 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5766 on loop depth.
5767 (record_equivalences_from_phis): Instead add it here.
5768
5769 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
5770
5771 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
5772 (LTO_WRAPPER_OBJS): New variable.
5773 (lto-wrapper$(exeext)): Use it.
5774 * collect2.c: Include "collect-utils.h".
5775 (verbose, debug): Remove variables.
5776 (at_file_supplied): No longer static.
5777 (tool_name): New variable.
5778 (do_wait, fork_execute, maybe_unlink): Don't declare.
5779 (tool_cleanup): No longer static.
5780 (notice): Remove function.
5781 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
5782 fork_execute calls.
5783 (collect_wait, do_wait, collect_execute): Remove functions.
5784 (maybe_unlink): No longer static.
5785 * collect2.h (verbose, debug): Don't declare.
5786 (at_file_supplied): Declare.
5787 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
5788 changed.
5789 (collect_execute): Replace with implementation from collect2, plus a
5790 new arg use_atfile. All callers changed.
5791 (collect_wait): Replace with implementation from collect2.
5792 (maybe_unlink_file): Remove function.
5793 (fork_execute): Replace with implementation from collect2, plus a
5794 new arg use_atfile. All callers changed.
5795 (do_wait): Add call to utils_cleanup to the error path.
5796 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
5797 (tool_cleanup): Adjust declarations.
5798 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
5799 * tlink.c: Include "collect-utils.h".
5800 (tlink_execute): New arg use_atfile. All callers changed.
5801 (tlink_init, tlink_execute): Remove declarations.
5802
5803 * collect-utils.c (save_temps): New variable.
5804 (do_wait): Use it instead of debug. Use fatal_error.
5805 * collect-utils.h (save_temps): Declare.
5806 * collect2.c (verbose): Rename from vflag. All uses changed.
5807 (tool_cleanup): New function, copied from collect_atexit.
5808 (collect_atexit, handler): Just call it.
5809 * collect2.h (verbose): Declaration renamed from vflag.
5810 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
5811 debug.
5812
5813 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
5814 (lto-wrapper$(exeext)): Link with collect-utils.o.
5815 * collect-utils.c: New file.
5816 * collect-utils.h: New file.
5817 * lto-wrapper.c: Include "collect-utils.h".
5818 (args_name): Delete variable.
5819 (tool_name): New variable.
5820 (tool_cleanup): New function.
5821 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
5822 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
5823 (fork_execute): Remove functions.
5824
5825 2014-06-26 Nick Clifton <nickc@redhat.com>
5826
5827 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
5828
5829 * doc/extend.texi (Function Attributes): Fix typo in description
5830 of RX vector attribute.
5831
5832 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5833
5834 * config.gcc (supported_defaults): Error when passing either
5835 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
5836
5837 2014-06-26 Richard Biener <rguenther@suse.de>
5838
5839 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5840 propagating volatile pointers.
5841
5842 2014-06-26 Richard Biener <rguenther@suse.de>
5843
5844 PR tree-optimization/61607
5845 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
5846 loop if we redirected its latch edge.
5847 (thread_block_1): Do not cancel loops prematurely.
5848
5849 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
5850
5851 * toplev.c (backend_init_target): Move init_emit_regs and
5852 init_regs to...
5853 (backend_init) ... here; skip ira_init_once and backend_init_target.
5854 (target_reinit) ... and here; clear
5855 this_target_rtl->lang_dependent_initialized.
5856 (lang_dependent_init_target): Clear
5857 this_target_rtl->lang_dependent_initialized;
5858 break out rtl initialization to ...
5859 (initialize_rtl): ... here; call also backend_init_target
5860 and ira_init_once.
5861 * toplev.h (initialize_rtl): New function.
5862 * function.c: Include toplev.h
5863 (init_function_start): Call initialize_rtl.
5864 * rtl.h (target_rtl): Add target_specific_initialized,
5865 lang_dependent_initialized.
5866
5867 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
5868 Jakub Jelinek <jakub@redhat.com>
5869
5870 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
5871
5872 2014-06-25 Tom de Vries <tom@codesourcery.com>
5873
5874 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
5875
5876 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5877
5878 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
5879 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
5880 Issue a strict overflow warning if appropriate.
5881
5882 2014-06-25 Martin Liska <mliska@suse.cz>
5883
5884 IPA REF refactoring
5885 * Makefile.in: Removed header file (ipa-ref-inline.h).
5886 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
5887 called.
5888 (cgraph_speculative_call_info): Likewise.
5889 (cgraph_for_node_thunks_and_aliases): Likewise.
5890 (cgraph_for_node_and_aliases): Likewise.
5891 (verify_cgraph_node): Likewise.
5892 * cgraph.h: Batch of IPA REF functions become member functions of
5893 symtab_node: add_reference, maybe_add_reference, clone_references,
5894 clone_referring, clone_reference, find_reference,
5895 remove_stmt_references, remove_all_references,
5896 remove_all_referring, dump_references, dump_referring,
5897 has_alias_p, iterate_reference, iterate_referring.
5898 * cgraphbuild.c (record_reference): New IPA REF function used.
5899 (record_type_list): Likewise.
5900 (record_eh_tables): Likewise.
5901 (mark_address): Likewise.
5902 (mark_load): Likewise.
5903 (mark_store): Likewise.
5904 (pass_build_cgraph_edges): Likewise.
5905 (rebuild_cgraph_edge): Likewise.
5906 (cgraph_rebuild_references): Likewise.
5907 (pass_remove_cgraph_callee_edges): Likewise.
5908 * cgraphclones.c (cgraph_clone_node): Likewise.
5909 (cgraph_create_virtual_clone): Likewise.
5910 (cgraph_materialize_clone): Likewise.
5911 (cgraph_materialize_all_clones): Likewise.
5912 * cgraphunit.c (cgraph_reset_node): Likewise.
5913 (cgraph_reset_node): Likewise.
5914 (analyze_function): Likewise.
5915 (assemble_thunks_and_aliases): Likewise.
5916 (expand_function): Likewise.
5917 * ipa-comdats.c (propagate_comdat_group): Likewise.
5918 (enqueue_references): Likewise.
5919 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
5920 (create_specialized_node): Likewise.
5921 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
5922 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
5923 * ipa-inline.c (reset_edge_caches): Likewise.
5924 (update_caller_keys): Likewise.
5925 (execute): Likewise.
5926 * ipa-prop.c (remove_described_reference): Likewise.
5927 (propagate_controlled_uses): Likewise.
5928 (ipa_edge_duplication_hook): Likewise.
5929 (ipa_modify_call_arguments): Likewise.
5930 * ipa-pure-const.c (propagate_pure_const): Likewise.
5931 * ipa-ref-inline.h: Header file removed, functions moved
5932 to symtab_node class.
5933 * ipa-ref.c (remove_reference): New class member function.
5934 (cannot_lead_to_return): New class member function.
5935 (referring_ref_list): Likewise.
5936 (referred_ref_list): Likewise.
5937 Rest of functions moved to symtab_node class.
5938 * ipa-ref.h: New member functions remove_reference,
5939 cannot_lead_to_return, referring_ref_list, referred_ref_list added
5940 to ipa_ref class.
5941 ipa_ref_list class has new member functions: first_reference,
5942 first_referring, clear, nreferences.
5943 * ipa-reference.c (analyze_function): New IPA REF function used.
5944 (write_node_summary_p): Likewise.
5945 (ipa_reference_write_optimization_summary): Likewise.
5946 * ipa-split.c (split_function): Likewise.
5947 * ipa-utils.c (ipa_reverse_postorder): Likewise.
5948 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
5949 (function_and_variable_visibility): Likewise.
5950 * ipa.c (has_addr_references_p): Likewise.
5951 (process_references): Argument type changed.
5952 (symtab_remove_unreachable_nodes): New IPA REF function used.
5953 (process_references): Likewise.
5954 (set_writeonly_bit): Likewise.
5955 * lto-cgraph.c: Implementation of new symtab_node member functions
5956 that uses new IPA REF functions.
5957 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
5958 function used.
5959 * lto-streamer-out.c (output_symbol_p): Likewise.
5960 * lto-streamer.h (referenced_from_this_partition_p): Argument type
5961 changed.
5962 * symtab.c: Implementation of new IPA REF API.
5963 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
5964 (ipa_tm_create_version): Likewise.
5965 (ipa_tm_execute): Likewise.
5966 * tree-emutls.c (gen_emutls_addr): Likewise.
5967 * tree-inline.c (copy_bb): Likewise.
5968 (delete_unreachable_blocks_update_callgraph): Likewise.
5969 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
5970 (varpool_for_node_and_aliases): Likewise.
5971
5972 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5973
5974 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
5975
5976 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5977
5978 PR bootstrap/61598
5979 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5980 tree_node * instead of tree_node *.
5981 (fold): Adjust.
5982 (print_fold_checksum): Likewise.
5983 (fold_check_failed): Likewise.
5984 (debug_fold_checksum): Likewise.
5985 (fold_build1_stat_loc): Likewise.
5986 (fold_build2_stat_loc): Likewise.
5987 (fold_build3_stat_loc): Likewise.
5988 (fold_build_call_array_loc): Likewise.
5989
5990 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
5991
5992 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
5993 implementation with call to...
5994 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
5995 function.
5996 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
5997 Declare.
5998
5999 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
6000
6001 PR tree-optimization/57742
6002 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
6003 after replacing the statement.
6004
6005 2014-06-25 Nick Clifton <nickc@redhat.com>
6006
6007 * config/v850/v850.c (GHS_default_section_names): Change to const
6008 char * type.
6009 (GHS_current_section_names): Likewise.
6010 (v850_insert_attributes): Do not build strings, just assign the
6011 names directly. Change the type of 'chosen_section' to const
6012 char*.
6013 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
6014 directly to the array entry.
6015 * config/v850/v850.h (GHS_default_section_names): Change to const
6016 char * type.
6017 (GHS_current_section_names): Likewise.
6018
6019 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6020
6021 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
6022 (LANG_HOOKS_DECLS): Add it.
6023 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
6024 has correct type.
6025 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
6026 * langhooks.h (struct lang_hooks_for_decls): Add
6027 omp_clause_linear_ctor hook.
6028 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
6029 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
6030 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
6031 combined simd loop use omp_clause_linear_ctor hook.
6032
6033 2014-06-24 Cong Hou <congh@google.com>
6034
6035 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
6036 pattern recognition.
6037 (type_conversion_p): PROMOTION is true if it's a type promotion
6038 conversion, and false otherwise. Return true if the given expression
6039 is a type conversion one.
6040 * tree-vectorizer.h: Adjust the number of patterns.
6041 * tree.def: Add SAD_EXPR.
6042 * optabs.def: Add sad_optab.
6043 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
6044 * expr.c (expand_expr_real_2): Likewise.
6045 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6046 * gimple.c (get_gimple_rhs_num_ops): Likewise.
6047 * optabs.c (optab_for_tree_code): Likewise.
6048 * tree-cfg.c (estimate_operator_cost): Likewise.
6049 * tree-ssa-operands.c (get_expr_operands): Likewise.
6050 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
6051 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
6052 * doc/generic.texi: Add document for SAD_EXPR.
6053 * doc/md.texi: Add document for ssad and usad.
6054
6055 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6056
6057 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
6058 qualification in cast.
6059
6060 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
6061
6062 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
6063 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
6064 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
6065 (tree_function_decl): ... here.
6066 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
6067 streaming of vindex to ...
6068 (write_ts_function_decl_tree_pointers): ... here.
6069 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
6070 Do not stream DECL_VINDEX.
6071 (lto_input_ts_function_decl_tree_pointers): Stream it here.
6072
6073 2014-06-24 Catherine Moore <clm@codesourcery.com>
6074 Sandra Loosemore <sandra@codesourcery.com>
6075
6076 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
6077 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
6078 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
6079
6080 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6081
6082 * doc/invoke.texi (Warning Options): Remove duplicated
6083 -Wmaybe-uninitialized.
6084
6085 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6086
6087 PR tree-optimization/57742
6088 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
6089 (handle_builtin_malloc, handle_builtin_memset): New functions.
6090 (strlen_optimize_stmt): Call them.
6091 * passes.def: Move strlen after loop+dom but before vrp.
6092
6093 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6094
6095 PR target/61570
6096 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
6097 model family 6 CPU with has_longmode never use a CPU without
6098 64-bit support.
6099
6100 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
6101
6102 PR target/61570
6103 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6104 the last change.
6105
6106 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6107
6108 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6109 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6110 pointer_map.
6111 * hash-map.h: New file.
6112 * ipa-comdats.c: Use hash_map instead of pointer_map.
6113 * ipa.c: Likewise.
6114 * lto-section-out.c: Adjust.
6115 * lto-streamer.h: Replace pointer_map with hash_map.
6116 * symtab.c (verify_symtab): Likewise.
6117 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6118 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6119 * tree-streamer.h: Likewise.
6120 * tree-streamer.c: Adjust.
6121 * pointer-set.h: Remove pointer_map.
6122
6123 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6124
6125 * hash-table.h: Add a template arg to choose between storing values
6126 and storing pointers to values, and then provide partial
6127 specializations for both.
6128 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6129 should store, not the type values should point to.
6130 * tree-into-ssa.c (var_info_hasher): Likewise.
6131 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6132 * tree-complex.c: Adjust.
6133 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6134 table instead of int_tree_map *.
6135 * tree-parloops.c: Adjust.
6136 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6137 type is being stored.
6138 * tree-vectorizer.c: Adjust.
6139
6140 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6141
6142 * hash-table.h: Remove a layer of indirection from hash_table so that
6143 it contains the hash table's data instead of a pointer to the data.
6144 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6145 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6146 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6147 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6148 fold-const.c, gcse.c, ggc-common.c,
6149 gimple-ssa-strength-reduction.c, gimplify.c,
6150 graphite-clast-to-gimple.c, graphite-dependences.c,
6151 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6152 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6153 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6154 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6155 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6156 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6157 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6158 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6159 tree-ssa-live.c, tree-ssa-loop-im.c,
6160 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6161 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6162 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6163 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6164 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6165 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6166 vtable-verify.c, vtable-verify.h: Adjust.
6167
6168 2014-06-24 Richard Biener <rguenther@suse.de>
6169
6170 PR tree-optimization/61572
6171 * tree-ssa-sink.c (statement_sink_location): Do not sink
6172 loads from hard registers.
6173
6174 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6175
6176 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6177 not mentioned in clauses use private clause if the iterator is
6178 declared in #pragma omp for simd, and when adding lastprivate
6179 instead, add it to the outer #pragma omp for too. Diagnose
6180 if the variable is private in outer context. For simd collapse > 1
6181 loops, replace all iterators with temporaries.
6182 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6183 same even in collapse > 1 loops.
6184
6185 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6186 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6187 non-NULL.
6188 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6189 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6190 non-NULL.
6191 (gimplify_adjust_omp_clauses): Likewise.
6192 * omp-low.c (lower_rec_simd_input_clauses,
6193 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6194 safelen the same as safelen(1).
6195 * tree-nested.c (convert_nonlocal_omp_clauses,
6196 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6197 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6198 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6199 Fixup handling of GIMPLE_OMP_TARGET.
6200 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6201 GIMPLE_OMP_TARGET.
6202
6203 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6204
6205 PR tree-optimization/61554
6206 * tree-ssa-propagate.c: Include "bitmap.h".
6207 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6208 properly update constructor/destructor.
6209 (substitute_and_fold_dom_walker::before_dom_children):
6210 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6211 need_eh_cleaup instead.
6212 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6213 need_eh_cleanup.
6214
6215 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6216
6217 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6218 * tree-pass.h (make_pass_ipa_single_use): New pass.
6219 * cgraph.h (used_by_single_function): New flag.
6220 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6221 Stream it.
6222 * passes.def (pass_ipa_single_use): Scedule.
6223 * ipa.c (BOTTOM): New macro.
6224 (meet): New function
6225 (propagate_single_user): New function.
6226 (ipa_single_use): New function.
6227 (pass_data_ipa_single_use): New pass.
6228 (pass_ipa_single_use): New pass.
6229 (pass_ipa_single_use::gate): New gate.
6230 (make_pass_ipa_single_use): New function.
6231
6232 2014-06-23 Kai Tietz <ktietz@redhat.com>
6233
6234 PR target/39284
6235 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6236 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6237
6238 2014-06-23 Richard Biener <rguenther@suse.de>
6239
6240 * tree-ssa-loop.c (gate_loop): New function.
6241 (pass_tree_loop::gate): Call it.
6242 (pass_data_tree_no_loop, pass_tree_no_loop,
6243 make_pass_tree_no_loop): New.
6244 * tree-vectorizer.c: Include tree-scalar-evolution.c
6245 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6246 required.
6247 (pass_slp_vectorize::clone): New method.
6248 * timevar.def (TV_TREE_NOLOOP): New.
6249 * tree-pass.h (make_pass_tree_no_loop): Declare.
6250 * passes.def (pass_tree_no_loop): New pass group with
6251 SLP vectorizer.
6252
6253 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6254
6255 PR target/61570
6256 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6257 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6258
6259 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6260
6261 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6262 "yes" where needed.
6263
6264 2014-06-23 Alan Modra <amodra@gmail.com>
6265
6266 PR bootstrap/61583
6267 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6268 to zero on debug statements.
6269
6270 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6271
6272 PR target/60825
6273 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6274 Ignore third operand if present by marking qualifier_internal.
6275
6276 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6277
6278 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6279 vector extension.
6280 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6281 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6282 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6283 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6284 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6285 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6286 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6287 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6288 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6289 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6290 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6291 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6292 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6293 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6294 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6295 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6296 logic in GCC vector extensions
6297
6298 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6299 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6300 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6301 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6302 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6303 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6304 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6305 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6306 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6307 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6308
6309 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6310
6311 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6312 extensions.
6313
6314 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6315 (vget_low_s64): Use __GET_LOW macro.
6316 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6317 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6318 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6319 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6320 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6321
6322 (vcombine_s64): Use GCC vector extensions; remove cast.
6323 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6324 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6325 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6326 Fix type signature; remove cast.
6327
6328 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6329
6330 PR target/60825
6331 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6332 V1DFmode.
6333 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6334 add V1DFmode
6335 (BUILTIN_VD1): New.
6336 (BUILTIN_VD_RE): Remove.
6337 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6338 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6339 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6340 variant but not df.
6341 (vreinterpretv1df*, vreinterpret*v1df): New.
6342 (vreinterpretdf*, vreinterpret*df): Remove.
6343 * config/aarch64/aarch64-simd.md (aarch64_create,
6344 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6345 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6346 (VD1): New.
6347 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6348 (vcreate_f64): Remove cast, use v1df builtin.
6349 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6350 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6351 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6352 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6353 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6354 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6355 add range check using __builtin_aarch64_im_lane_boundsi.
6356 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6357 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6358 type signature, use gcc vector extensions.
6359 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6360 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6361 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6362 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6363 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6364 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6365 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6366 vreinterpret_u64_f64): Use v1df builtin not df.
6367
6368 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6369
6370 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6371 vector registers.
6372
6373 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6374
6375 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6376 priority directly.
6377
6378 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6379
6380 * loop-invariant.c (pre_check_invariant_p): New function.
6381 (find_invariant_insn): Call pre_check_invariant_p.
6382
6383 2014-06-22 Richard Henderson <rth@redhat.com>
6384
6385 PR target/61565
6386 * compare-elim.c (struct comparison): Add eh_note.
6387 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6388 a redundant comparison in a different EH region. Purge EH edges if
6389 necessary.
6390
6391 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6392
6393 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6394 (var_shift): Use it.
6395 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6396 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6397 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6398 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6399 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6400 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6401 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6402 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6403 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6404 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6405 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6406 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6407 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6408 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6409 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6410 *rotldi3_internal15be): Use the new attribute. Merge register and
6411 integer alternatives.
6412
6413 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6414
6415 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6416 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6417 split, *ashrdi3_internal3 and split): Delete, merge into...
6418 (ashr<mode>3): New expander.
6419 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6420 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6421
6422 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6423
6424 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6425 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6426 *rotldi3_internal3 and split): Delete, merge into...
6427 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6428 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6429 Use "rotlw" extended mnemonic.
6430
6431 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6432
6433 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6434 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6435 and split, *ashldi3_internal3 and split): Delete, merge into...
6436 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6437 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6438
6439 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6440
6441 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6442 (lshrsi3, two anonymous define_insns and define_splits,
6443 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6444 *lshrdi3_internal3 and split): Delete, merge into...
6445 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6446 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6447
6448 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6449
6450 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6451 Remove "O" alternative.
6452
6453 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6454
6455 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6456 (mips_move_from_gpr_cost): Likewise.
6457 (mips_register_move_cost): Update accordingly.
6458 (mips_secondary_reload_class): Remove name of in_p.
6459
6460 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6461
6462 PR target/61503
6463 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6464 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6465
6466 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6467
6468 * config/nios2/nios2.c: Include "builtins.h".
6469
6470 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6471
6472 * cgraph.h (tls_model_names): New variable.
6473 * print-tree.c (print_node): Simplify.
6474 * varpool.c (tls_model_names): New variable.
6475 (dump_varpool_node): Output tls model.
6476
6477 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6478
6479 * ipa-visibility.c (function_and_variable_visibility): Disable
6480 temporarily local aliases for some targets.
6481
6482 2014-06-20 Marek Polacek <polacek@redhat.com>
6483
6484 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6485 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6486 into SANITIZE_UNDEFINED.
6487 * doc/invoke.texi: Describe -fsanitize=bounds.
6488 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6489 functions created in the FEs.
6490 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6491 (expand_UBSAN_BOUNDS): New function.
6492 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6493 * internal-fn.h: Don't define internal functions here.
6494 * opts.c (common_handle_option): Add -fsanitize=bounds.
6495 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6496 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6497 * tree-core.h: Define internal functions here.
6498 (struct tree_base): Add ifn field.
6499 * tree-pretty-print.c: Include "internal-fn.h".
6500 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6501 * tree.c (get_callee_fndecl): Likewise.
6502 (build_call_expr_internal_loc): New function.
6503 * tree.def (CALL_EXPR): Update description.
6504 * tree.h (CALL_EXPR_IFN): Define.
6505 (build_call_expr_internal_loc): Declare.
6506 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6507 types.
6508 (ubsan_type_descriptor): Change bool parameter to enum
6509 ubsan_print_style. Adjust the code. Add handling of
6510 UBSAN_PRINT_ARRAY.
6511 (ubsan_expand_bounds_ifn): New function.
6512 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6513 (ubsan_build_overflow_builtin): Likewise.
6514 (instrument_bool_enum_load): Likewise.
6515 (ubsan_instrument_float_cast): Likewise.
6516 * ubsan.h (enum ubsan_print_style): New enum.
6517 (ubsan_expand_bounds_ifn): Declare.
6518 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6519
6520 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6521
6522 * config/rs6000/rs6000.md: Append `DONE' to preparation
6523 statements of `bswap' pattern splitters.
6524
6525 2014-06-20 Tom de Vries <tom@codesourcery.com>
6526
6527 * target.def (call_fusage_contains_non_callee_clobbers): Update
6528 definition.
6529 * doc/tm.texi: Regenerate.
6530
6531 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6532 Max Ostapenko <m.ostapenko@partner.samsung.com>
6533
6534 PR sanitizer/61547
6535 * asan.c (instrument_strlen_call): Fixed instrumentation of
6536 trailing byte.
6537
6538 2014-06-20 Martin Jambor <mjambor@suse.cz>
6539
6540 PR ipa/61540
6541 * ipa-prop.c (impossible_devirt_target): New function.
6542 (try_make_edge_direct_virtual_call): Use it, also instead of
6543 asserting.
6544
6545 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6546 Max Ostapenko <m.ostapenko@partner.samsung.com>
6547
6548 PR sanitizer/61530
6549 * asan.c (build_check_stmt): Add condition.
6550
6551 2014-06-20 Martin Jambor <mjambor@suse.cz>
6552
6553 PR ipa/61211
6554 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6555 expanded clones.
6556
6557 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6558
6559 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6560 Update comments.
6561 (VCONQ): Make comment more helpful.
6562 (VCON): Delete.
6563 * config/aarch64/aarch64-simd.md
6564 (aarch64_sqdmulh_lane<mode>):
6565 Use VCOND for operands 2. Update lane checking and flipping logic.
6566 (aarch64_sqrdmulh_lane<mode>): Likewise.
6567 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6568 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6569 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6570 attribute of operand 3 to VCOND.
6571 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6572 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6573 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6574 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6575 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6576 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6577 define_insn.
6578 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6579 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6580 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6581 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6582 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6583 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6584 operand to VCOND. Update lane flipping and bounds checking logic.
6585 (aarch64_sqdmlal2_lane<mode>): Likewise.
6586 (aarch64_sqdmlsl_lane<mode>): Likewise.
6587 (aarch64_sqdmull_lane<mode>): Likewise.
6588 (aarch64_sqdmull2_lane<mode>): Likewise.
6589 (aarch64_sqdmlal_laneq<mode>):
6590 Replace VCON usage with VCONQ.
6591 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6592 (aarch64_sqdmlal2_laneq<mode>): Emit
6593 aarch64_sqdmlal2_laneq<mode>_internal insn.
6594 Replace VCON with VCONQ.
6595 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6596 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6597 (aarch64_sqdmull_laneq<mode>): Emit
6598 aarch64_sqdmull_laneq<mode>_internal insn.
6599 Replace VCON with VCONQ.
6600 (aarch64_sqdmull2_laneq<mode>): Emit
6601 aarch64_sqdmull2_laneq<mode>_internal insn.
6602 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6603 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6604 of 3rd argument to int16x4_t.
6605 (vqdmlalh_lane_s16): Likewise.
6606 (vqdmlslh_lane_s16): Likewise.
6607 (vqdmull_high_lane_s16): Likewise.
6608 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6609 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6610 (vqdmlsl_lane_s16): Likewise.
6611 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6612 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6613 (vqdmlals_lane_s32): Likewise.
6614 (vqdmlsls_lane_s32): Likewise.
6615 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6616 (vqdmulls_lane_s32): Likewise.
6617 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6618 (vqdmlsl_lane_s32): Likewise.
6619 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6620 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6621 (vqrdmulhh_lane_s16): Likewise.
6622 (vqdmlsl_high_lane_s16): Likewise.
6623 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6624 (vqdmlsl_high_lane_s32): Likewise.
6625 (vqrdmulhs_lane_s32): Likewise.
6626
6627 2014-06-20 Tom de Vries <tom@codesourcery.com>
6628
6629 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6630 get_call_reg_set_usage.
6631
6632 2014-06-20 Tom de Vries <tom@codesourcery.com>
6633
6634 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6635 it contains all call_used_regs.
6636
6637 2014-06-20 Tom de Vries <tom@codesourcery.com>
6638
6639 * final.c (collect_fn_hard_reg_usage): Add and use variable
6640 function_used_regs.
6641
6642 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6643
6644 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6645 (set_init_priority, get_init_priority, set_fini_priority,
6646 get_fini_priority): New methods.
6647 * tree.c (init_priority_for_decl): Remove.
6648 (init_ttree): Do not initialize init priority.
6649 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6650 (decl_priority_info): Remove.
6651 (decl_init_priority_insert): Rewrite.
6652 (decl_fini_priority_insert): Rewrite.
6653 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6654 tree_priority_map_marked_p): Remove.
6655 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6656 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6657 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6658 not output priorities.
6659 (pack_ts_function_decl_value_fields): Likewise.
6660 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6661 not input priorities.
6662 (unpack_ts_function_decl_value_fields): Likewise.
6663 * symtab.c (symbol_priority_map): Declare.
6664 (init_priority_hash): Declare.
6665 (symtab_unregister_node): Unregister from priority hash, too.
6666 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6667 New methods.
6668 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6669 (symbol_priority_info): New function.
6670 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6671 New methods.
6672 * tree-core.h (tree_priority_map): Remove.
6673
6674 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6675
6676 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6677 0xff to uint64_t before shifting it up.
6678
6679 2014-06-20 Julian Brown <julian@codesourcery.com>
6680 Chung-Lin Tang <cltang@codesourcery.com>
6681
6682 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6683 TARGET_THUMB1_ONLY. Add comments.
6684
6685 2014-06-19 Tom de Vries <tom@codesourcery.com>
6686
6687 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6688 return type to void.
6689 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6690
6691 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6692
6693 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6694 as "move", from depends_on.
6695
6696 2014-06-19 Terry Guo <terry.guo@arm.com>
6697
6698 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
6699 stage.
6700
6701 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
6702
6703 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
6704 Remove cr5.
6705 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
6706
6707 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
6708
6709 PR target/61550
6710 * config/sh/sh.c (prepare_move_operands): Don't process TLS
6711 addresses here if reload in progress or completed.
6712
6713 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6714
6715 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
6716 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
6717 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
6718 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
6719 (mips_register_priority): New function that implements the target
6720 hook TARGET_REGISTER_PRIORITY.
6721 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
6722 (mips_lra_p): Likewise for TARGET_LRA_P.
6723 (TARGET_REGISTER_PRIORITY): Define macro.
6724 (TARGET_SPILL_CLASS): Likewise.
6725 (TARGET_LRA_P): Likewise.
6726 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
6727 classes.
6728 (REG_CLASS_NAMES): Likewise.
6729 (REG_CLASS_CONTENTS): Likewise.
6730 (BASE_REG_CLASS): Use M16_SP_REGS.
6731 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
6732 New set attribute to enable alternatives depending on the register
6733 allocator used.
6734 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
6735 (*lea64): Disable pattern for MIPS16.
6736 * config/mips/mips.opt (mlra): New option.
6737
6738 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6739
6740 * lra-constraints.c (base_to_reg): New function.
6741 (process_address): Use new function.
6742
6743 2014-06-18 Tom de Vries <tom@codesourcery.com>
6744
6745 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
6746 * config/aarch64/aarch64.c
6747 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
6748 (aarch64_emit_call_insn): New function.
6749 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
6750 of emit_call_insn.
6751 * config/aarch64/aarch64.md (define_expand "call_internal")
6752 (define_expand "call_value_internal", define_expand "sibcall_internal")
6753 (define_expand "sibcall_value_internal"): New.
6754 (define_expand "call", define_expand "call_value")
6755 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
6756 expand variant and aarch64_emit_call_insn.
6757
6758 2014-06-18 Radovan Obradovic <robradovic@mips.com>
6759 Tom de Vries <tom@codesourcery.com>
6760
6761 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
6762 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6763 Redefine to true.
6764 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
6765 clobbers to CALL_INSN_FUNCTION_USAGE.
6766 (define_expand "sibcall_internal")
6767 (define_expand "sibcall_value_internal"): New.
6768 (define_expand "call", define_expand "call_value"): Add argument to
6769 arm_emit_call_insn.
6770 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
6771 (define_expand "sibcall_value"): Use sibcall_value_internal and
6772 arm_emit_call_insn.
6773
6774 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6775
6776 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
6777
6778 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6779
6780 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
6781 __udivmoddi4.
6782
6783 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6784
6785 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
6786 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
6787 annotations. Fix DWARF information.
6788
6789 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6790
6791 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
6792 __udivmoddi4, and fixups for negative operands.
6793
6794 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6795
6796 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
6797
6798 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6799
6800 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
6801 to __udivmoddi4.
6802
6803 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6804
6805 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
6806 manipulation.
6807
6808 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6809
6810 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
6811 describing register usage on function entry and exit.
6812
6813 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6814
6815 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
6816 (__aeabi_ldivmod): Fix whitespace.
6817
6818 2014-06-18 Andreas Schwab <schwab@suse.de>
6819
6820 * doc/md.texi (Standard Names): Use @itemx for grouped items.
6821 Remove blank line after @item.
6822
6823 2014-06-18 Richard Henderson <rth@redhat.com>
6824
6825 PR target/61545
6826 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
6827
6828 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6829
6830 * config/arm/arm.c (neon_vector_mem_operand): Allow register
6831 POST_MODIFY for neon loads and stores.
6832 (arm_print_operand): Output post-index register for neon loads and
6833 stores.
6834
6835 2014-06-18 Richard Biener <rguenther@suse.de>
6836
6837 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
6838
6839 2014-06-18 Richard Biener <rguenther@suse.de>
6840
6841 * tree-pass.h (make_pass_dce_loop): Remove.
6842 * passes.def: Replace pass_dce_loop with pass_dce.
6843 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
6844 changed free niter estimates and reset the scev cache.
6845 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
6846 make_pass_dce_loop): Remove.
6847 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
6848 (fini_copy_prop): Return whether something changed. Always
6849 let substitute_and_fold perform DCE and free niter estimates
6850 and reset the scev cache if so.
6851 (execute_copy_prop): If sth changed schedule cleanup-cfg.
6852 (pass_data_copy_prop): Do not unconditionally schedule
6853 cleanup-cfg or update-ssa.
6854
6855 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6856
6857 PR tree-optimization/61518
6858 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6859 reduction var is used in reduction stmt or phi-function only.
6860
6861 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6862
6863 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
6864
6865 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6866
6867 PR tree-optimization/61517
6868 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
6869 whose rhs's first tree is the source expression instead of the
6870 expression itself.
6871 (find_bswap_or_nop): Likewise.
6872 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
6873 gimple stmt whose rhs's first tree is the source. In the memory source
6874 case, move the stmt to be replaced close to one of the original load to
6875 avoid the problem of a store between the load and the stmt's original
6876 location.
6877 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
6878 signature.
6879
6880 2014-06-18 Andreas Schwab <schwab@suse.de>
6881
6882 PR rtl-optimization/54555
6883 * postreload.c (move2add_use_add2_insn): Substitute
6884 STRICT_LOW_PART only if it is cheaper.
6885
6886 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
6887
6888 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
6889 Do not use unspec as call operand. Use memory_operand instead of
6890 memory_nox32_operand and add "m" operand constraint. Disable
6891 pattern for TARGET_X32.
6892 (*sibcall_pop_memory): Ditto.
6893 (*sibcall_value_memory): Ditto.
6894 (*sibcall_value_pop_memory): Ditto.
6895 (sibcall peepholes): Merge SImode and DImode patterns using
6896 W mode iterator. Use memory_operand instead of memory_nox32_operand.
6897 Disable pattern for TARGET_X32. Check if eliminated register is
6898 really dead after call insn. Generate call RTX without unspec operand.
6899 (sibcall_value peepholes): Ditto.
6900 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
6901 instead of memory_nox32_operand. Check if eliminated register is
6902 really dead after call insn. Generate call RTX without unspec operand.
6903 (sibcall_value_pop peepholes): Ditto.
6904 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
6905
6906 2014-06-18 Terry Guo <terry.guo@arm.com>
6907
6908 PR target/61544
6909 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
6910 reach the head.
6911
6912 2014-06-18 Olivier Hainque <hainque@adacore.com>
6913
6914 * tree-core.h (tree_block): Add an "end_locus" field, allowing
6915 memorization of the end of block source location.
6916 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
6917 * gimplify.c (gimplify_bind_expr): Propagate the block start and
6918 end source location info we have on the block entry/exit code we
6919 generate.
6920
6921 2014-06-18 Richard Biener <rguenther@suse.de>
6922
6923 * common.opt (fssa-phiopt): New option.
6924 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
6925 but not with -Og.
6926 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
6927 * doc/invoke.texi (-fssa-phiopt): Document.
6928
6929 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6930
6931 * genattrtab.c (n_bypassed): New variable.
6932 (process_bypasses): Initialise n_bypassed.
6933 Count number of bypassed reservations.
6934 (make_automaton_attrs): Allocate space for bypassed reservations
6935 rather than number of bypasses.
6936
6937 2014-06-18 Richard Biener <rguenther@suse.de>
6938
6939 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
6940 we propagated anything.
6941 (substitute_and_fold_dom_walker::before_dom_children): Something
6942 changed if we propagated into PHI arguments.
6943 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
6944 we removed a stmt.
6945
6946 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
6947
6948 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
6949 vector case.
6950 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
6951 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
6952 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
6953 Introduces alternative way of loads group permutaions.
6954 (vect_transform_grouped_load): Try alternative way of permutations.
6955
6956 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6957
6958 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
6959 changed in ORT_TARGET region, don't jump to do_outer.
6960 (struct gimplify_adjust_omp_clauses_data): New type.
6961 (gimplify_adjust_omp_clauses_1): Adjust for data being
6962 a struct gimplify_adjust_omp_clauses_data pointer instead
6963 of tree *. Pass pre_p as a new argument to
6964 lang_hooks.decls.omp_finish_clause hook.
6965 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
6966 splay_tree_foreach to pass both list_p and pre_p.
6967 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
6968 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
6969 gimplify_adjust_omp_clauses callers.
6970 * langhooks.c (lhd_omp_finish_clause): New function.
6971 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
6972 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
6973 * langhooks.h (struct lang_hooks_for_decls): Add a new
6974 gimple_seq * argument to omp_finish_clause hook.
6975 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
6976 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
6977 (scan_omp_parallel, lower_omp_for): When adding
6978 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
6979 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
6980 * tree-nested.c (convert_nonlocal_omp_clauses,
6981 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
6982 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
6983
6984 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
6985
6986 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
6987 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
6988
6989 2014-06-17 Xinliang David Li <davidxl@google.com>
6990
6991 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
6992 * passes.c (pass_init_dump_file): Do not set initialize
6993 flag to false unconditionally.
6994
6995 2014-06-17 Richard Biener <rguenther@suse.de>
6996
6997 * genopinit.c (main): Use vec<>::qsort method.
6998 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6999 Likewise.
7000 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
7001
7002 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
7003
7004 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
7005 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
7006 (mips_move_to_gpr_cost): Remove ST_REGS case.
7007 (mips_move_from_gpr_cost): Likewise.
7008 (mips_register_move_cost): Likewise.
7009 (mips_secondary_reload_class): Likewise.
7010
7011 2014-06-17 Richard Biener <rguenther@suse.de>
7012
7013 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
7014 (pass_all_optimizations): Move 3rd copy-prop pass from after
7015 fre to before ifcombine/phiopt.
7016
7017 2014-06-17 Richard Biener <rguenther@suse.de>
7018
7019 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
7020 and allow all blocks to be forwarders.
7021
7022 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
7023
7024 PR target/61483
7025 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
7026 variable 'size'; calculate 'size' right in the front; use
7027 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
7028 pcum->aapcs_stack_words.
7029
7030 2014-06-17 Nick Clifton <nickc@redhat.com>
7031
7032 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
7033 (umulhi3, mulsidi3, umulsidi3): Likewise.
7034
7035 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
7036
7037 PR middle-end/61508
7038 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
7039 check for section name.
7040
7041 2014-06-17 Richard Biener <rguenther@suse.de>
7042
7043 * tree-ssa-propagate.c: Include domwalk.h.
7044 (substitute_and_fold): Outline main worker into a domwalker ...
7045 (substitute_and_fold_dom_walker::before_dom_children): ... here.
7046 Schedule stmts we can fully propagate for removal. Remove
7047 poor-mans DCE.
7048 (substitute_and_fold): Apply a dominator walk to perform
7049 substitution. Process stmts scheduled for removal here.
7050
7051 2014-06-17 Richard Biener <rguenther@suse.de>
7052
7053 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
7054 of PHI node moving.
7055
7056 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7057
7058 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
7059 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
7060 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
7061 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
7062 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
7063 TARGET_HARD_FLOAT.
7064 (get_fpscr) : Likewise.
7065
7066 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7067
7068 PR rtl-optimization/61325
7069 * lra-constraints.c (valid_address_p): Add forward declaration.
7070 (simplify_operand_subreg): Check address validity before and after
7071 alter_reg of memory subreg.
7072
7073 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
7074
7075 * config/i386/i386.c (decide_alg): Correctly handle
7076 maximum size of stringop algorithm.
7077
7078 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7079
7080 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
7081
7082 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7083
7084 PR rtl-optimization/61522
7085 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
7086
7087 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
7088
7089 Revert:
7090 * symtab.c (symtab_node::reset_section): New method.
7091 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7092 for localization.
7093 * cgraph.h (reset_section): Declare.
7094 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7095 do not consider comdat locals.
7096 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7097 for new symbol.
7098 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7099 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7100 reset sections of symbols dragged out of the comdats.
7101 (function_and_variable_visibility): Reset sections of
7102 localized symbols.
7103
7104 2014-06-16 Richard Biener <rguenther@suse.de>
7105
7106 PR tree-optimization/61482
7107 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7108 [-INF(OVF), +INF(OVF)] range.
7109
7110 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7111
7112 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7113 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7114 handling 32-bit multiplication.
7115
7116 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7117
7118 PR middle-end/61430
7119 * lra-lives.c (process_bb_lives): Skip creating copy during
7120 insn scan when src/dest has constrained to same regno.
7121
7122 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7123
7124 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7125 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7126
7127 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7128
7129 * asan.c (check_func): New function.
7130 (maybe_create_ssa_name): Likewise.
7131 (build_check_stmt_with_calls): Likewise.
7132 (use_calls_p): Likewise.
7133 (report_error_func): Change interface.
7134 (build_check_stmt): Allow non-integer lengths; add support
7135 for new parameter.
7136 (asan_instrument): Likewise.
7137 (instrument_mem_region_access): Moved code to build_check_stmt.
7138 (instrument_derefs): Likewise.
7139 (instrument_strlen_call): Likewise.
7140 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7141 * doc/invoke.texi: Describe new parameter.
7142 * params.def: Define new parameter.
7143 * params.h: Likewise.
7144 * sanitizer.def: Describe new builtins.
7145
7146 2014-06-16 Richard Biener <rguenther@suse.de>
7147
7148 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7149 Make all defs available at the end.
7150 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7151
7152 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7153
7154 PR plugins/45078
7155 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7156
7157 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7158
7159 PR bootstrap/61516
7160 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7161 initialization. Replace remaining use of uid.
7162
7163 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7164
7165 * c-family/c-common.c (handle_tls_model_attribute): Use
7166 set_decl_tls_model.
7167 * c-family/c-common.c (handle_tls_model_attribute): Use
7168 set_decl_tls_model.
7169 * cgraph.h (struct varpool_node): Add tls_model.
7170 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7171 * tree.h (DECL_TLS_MODEL): Update.
7172 (DECL_THREAD_LOCAL_P): Check that variable is static.
7173 (decl_tls_model): Declare.
7174 (set_decl_tls_model): Declare.
7175 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7176 set symbol prorperties.
7177 (get_emutls_init_templ_addr): Cleanup.
7178 (new_emutls_decl): Update.
7179 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7180 (lto_input_varpool_node): Likewise.
7181 * lto-streamer-out.c (hash_tree): Likewise.
7182 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7183 not stream DECL_TLS_MODEL.
7184 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7185 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7186
7187 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7188
7189 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7190
7191 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7192
7193 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7194 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7195 lists.
7196 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7197 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7198 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7199 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7200 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7201 (df_get_artificial_defs, df_get_artificial_uses)
7202 (df_single_def, df_single_use): Update accordingly.
7203 (df_refs_chain_dump): Take the first element in a linked list as
7204 parameter, rather than a pointer to an array of pointers.
7205 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7206 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7207 (df_chain_create_bb_process_use): Likewise.
7208 (df_md_bb_local_compute_process_def): Likewise.
7209 * fwprop.c (process_defs, process_uses): Likewise.
7210 (register_active_defs, update_uses): Likewise.
7211 (forward_propagate_asm): Update for new df_ref linking.
7212 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7213 (df_null_ref_rec, df_null_mw_rec): Likewise.
7214 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7215 explicitly.
7216 (df_scan_free_bb_info): Remove check for null artificial_defs.
7217 (df_install_ref_incremental): Adjust for new df_ref linking.
7218 Use a single-element insertion rather than a full sort.
7219 (df_ref_chain_delete_du_chain): Take the first element
7220 in a linked list as parameter, rather than a pointer to an array of
7221 pointers.
7222 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7223 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7224 (df_insn_info_delete): Remove check for null defs and call to
7225 df_scan_free_mws_vec.
7226 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7227 null rather than df_null_*_rec.
7228 (df_insn_rescan_debug_internal): Likewise, and update null
7229 checks in the same way. Remove check for null defs.
7230 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7231 Move a single element rather doing a full sort.
7232 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7233 linking.
7234 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7235 Initialize df_ref and df_mw_hardreg lists to null rather than
7236 df_null_*_rec.
7237 (df_ref_compare): Take df_refs as parameter, transferring the
7238 old interface to...
7239 (df_ref_ptr_compare): ...this new function.
7240 (df_sort_and_compress_refs): Update accordingly.
7241 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7242 old interface to...
7243 (df_mw_ptr_compare): ...this new function.
7244 (df_sort_and_compress_mws): Update accordingly.
7245 (df_install_refs, df_install_mws): Return a linked list rather than
7246 an array of pointers.
7247 (df_refs_add_to_chains): Assert that old lists are empty rather
7248 than freeing them.
7249 (df_insn_refs_verify): Don't handle null defs speciailly.
7250 * web.c (union_match_dups): Update for new df_ref linking.
7251
7252 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7253
7254 * df.h (df_ref_create, df_ref_remove): Delete.
7255 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7256 (df_ref_remove): Likewise.
7257
7258 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7259
7260 * df.h (df_single_def, df_single_use): New functions.
7261 * ira.c (find_moveable_pseudos): Use them.
7262
7263 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7264
7265 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7266 * df-problems.c (df_note_bb_compute): Use it.
7267 * regstat.c (regstat_bb_compute_ri): Likewise.
7268
7269 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7270
7271 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7272 * cse.c (cse_extended_basic_block): Use them.
7273 * dce.c (mark_artificial_use): Likewise.
7274 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7275 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7276 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7277 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7278 (df_simulate_initialize_backwards): Likewise.
7279 (df_simulate_finalize_backwards): Likewise.
7280 (df_simulate_initialize_forwards): Likewise.
7281 (df_md_simulate_artificial_defs_at_top): Likewise.
7282 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7283 * regrename.c (init_rename_info): Likewise.
7284 * regstat.c (regstat_bb_compute_ri): Likewise.
7285 (regstat_bb_compute_calls_crossed): Likewise.
7286
7287 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7288
7289 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7290 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7291 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7292 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7293 * combine.c (create_log_links): Likewise.
7294 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7295 (try_eliminate_compare): Likewise.
7296 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7297 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7298 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7299 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7300 (word_dce_process_block, dce_process_block): Likewise.
7301 * ddg.c (def_has_ccmode_p): Likewise.
7302 * df-core.c (df_bb_regno_first_def_find): Likewise.
7303 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7304 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7305 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7306 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7307 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7308 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7309 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7310 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7311 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7312 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7313 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7314 * fwprop.c (local_ref_killed_between_p): Likewise.
7315 (all_uses_available_at, free_load_extend): Likewise.
7316 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7317 * hw-doloop.c (scan_loop): Likewise.
7318 * ifcvt.c (dead_or_predicable): Likewise.
7319 * init-regs.c (initialize_uninitialized_regs): Likewise.
7320 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7321 (process_bb_node_lives): Likewise.
7322 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7323 (find_moveable_pseudos): Likewise.
7324 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7325 * recog.c (peep2_find_free_register): Likewise.
7326 * ree.c (get_defs): Likewise.
7327 * regstat.c (regstat_bb_compute_ri): Likewise.
7328 (regstat_bb_compute_calls_crossed): Likewise.
7329 * sched-deps.c (find_inc, find_mem): Likewise.
7330 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7331 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7332 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7333 (prepare_shrink_wrap): Likewise.
7334 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7335 * web.c (union_defs, pass_web::execute): Likewise.
7336 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7337 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7338
7339 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7340
7341 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7342 to inheritance pseudos.
7343 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7344
7345 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7346
7347 PR target/61415
7348 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7349 (BU_MISC_2): Rename to ...
7350 (BU_LDBL128_2): ... this.
7351 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7352 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7353 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7354 RS6000_BTM_LDBL128.
7355 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7356 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7357 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7358 (unpacktf_1): Likewise.
7359 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7360 (__builtin_longdouble_dw1): Likewise.
7361 * doc/sourcebuild.texi (longdouble128): Document.
7362
7363 2014-06-13 Jeff Law <law@redhat.com>
7364
7365 PR rtl-optimization/61094
7366 PR rtl-optimization/61446
7367 * ree.c (combine_reaching_defs): Get the mode for the copy from
7368 the extension insn rather than the defining insn.
7369
7370 2014-06-13 Dehao Chen <dehao@google.com>
7371
7372 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7373
7374 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7375
7376 * doc/install.texi (--enable-linker-plugin-configure-flags)
7377 (--enable-linker-plugin-flags): Document new flags.
7378
7379 2014-06-13 Martin Jambor <mjambor@suse.cz>
7380
7381 PR ipa/61186
7382 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7383 cache_token if returning early.
7384
7385 2014-06-13 Nick Clifton <nickc@redhat.com>
7386
7387 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7388 requested alignment is active.
7389 (LABEL_ALIGN): Likewise.
7390 (LOOP_ALIGN): Likewise.
7391
7392 2014-06-13 Richard Biener <rguenther@suse.de>
7393
7394 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7395 Rewrite to propagate the VN result into all uses where
7396 possible and to remove stmts becoming dead because of that.
7397 (eliminate): Generalize stmt removal handling, remove in
7398 reverse dominator order to support proper debug stmt
7399 generation. Update stmts before removing stmts.
7400 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7401
7402 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7403
7404 PR tree-optimization/61375
7405 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7406 symbolic number cannot be represented in an uint64_t.
7407 (find_bswap_or_nop_1): Likewise.
7408
7409 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7410
7411 * symtab.c (symtab_node::reset_section): New method.
7412 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7413 for localization.
7414 * cgraph.h (reset_section): Declare.
7415 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7416 do not consider comdat locals.
7417 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7418 for new symbol.
7419 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7420 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7421 reset sections of symbols dragged out of the comdats.
7422 (function_and_variable_visibility): Reset sections of
7423 localized symbols.
7424
7425 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7426
7427 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7428 to use symtab and decl_binds_to_current_def_p
7429 * tree-vectorizer.c (increase_alignment): Increase alignment
7430 of alias target, too.
7431
7432 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7433
7434 PR middle-end/61486
7435 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7436 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7437 if outer combined construct is distribute.
7438 (gimplify_omp_for): For OMP_DISTRIBUTE set
7439 gimplify_omp_ctxp->distribute.
7440 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7441 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7442 mapping into decl map.
7443
7444 2014-06-12 Jason Merrill <jason@redhat.com>
7445
7446 * common.opt (fabi-version): Change default to 0.
7447
7448 2014-06-12 Jason Merrill <jason@redhat.com>
7449
7450 * toplev.c (process_options): Reject -fabi-version=1.
7451
7452 2014-06-12 Jeff Law <law@redhat.com>
7453
7454 PR tree-optimization/61009
7455 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7456 value when we stop processing a block due to problematic PHIs.
7457
7458 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7459
7460 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7461 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7462 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7463 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7464 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7465 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7466 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7467 are not in the spec.
7468
7469 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7470
7471 PR target/59843
7472 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7473 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7474 Support V1DFmode.
7475
7476 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7477
7478 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7479
7480 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7481
7482 PR target/61443
7483 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7484 loading from address spaces.
7485
7486 2014-06-12 Martin Liska <mliska@suse.cz>
7487
7488 PR ipa/61462
7489 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7490 statement is reachable.
7491
7492 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7493
7494 * symtab.c (section_hash): New hash.
7495 (symtab_unregister_node): Clear section before freeing.
7496 (hash_section_hash_entry): New haser.
7497 (eq_sections): New function.
7498 (symtab_node::set_section_for_node): New method.
7499 (set_section_1): Update.
7500 (symtab_node::set_section): Take string instead of tree as parameter.
7501 (symtab_resolve_alias): Update.
7502 * cgraph.h (section_hash_entry_d): New structure.
7503 (section_hash_entry): New typedef.
7504 (cgraph_node): Change comdat_group_ to x_comdat_group,
7505 change section_ to x_section and turn into section_hash_entry;
7506 update accestors; put set_section_for_node offline.
7507 * tree.c (decl_section_name): Turn into string.
7508 (set_decl_section_name): Change parameter to be string.
7509 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7510 * sdbout.c (sdbout_one_type): Update.
7511 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7512 * varasm.c (IN_NAMED_SECTION, get_named_section,
7513 resolve_unique_section, hot_function_section, get_named_text_section,
7514 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7515 make_decl_rtl, default_unique_section): Update.
7516 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7517 (c6x_elf_unique_section): Update.
7518 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7519 * config/pa/pa.c (pa_function_section): Update.
7520 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7521 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7522 * config/arc/arc.c (arc_in_small_data_p): Update.
7523 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7524 * config/mcore/mcore.c (mcore_unique_section): Update.
7525 * config/mips/mips.c (mips16_build_function_stub): Update.
7526 (mips16_build_call_stub): Update.
7527 (mips_function_rodata_section): Update.
7528 (mips_in_small_data_p): Update.
7529 * config/score/score.c (score_in_small_data_p): Update.
7530 * config/rx/rx.c (rx_in_small_data): Update.
7531 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7532 (rs6000_xcoff_asm_named_section): Update.
7533 (rs6000_xcoff_unique_section): Update.
7534 * config/frv/frv.c (frv_string_begins_with): Update.
7535 (frv_in_small_data_p): Update.
7536 * config/v850/v850.c (v850_encode_data_area): Update.
7537 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7538 (bfin_handle_l1_data_attribute): Update.
7539 (bfin_handle_l2_attribute): Update.
7540 * config/mep/mep.c (mep_unique_section): Update.
7541 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7542 Update.
7543 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7544 (h8300_handle_tiny_data_attribute): Update.
7545 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7546 (m32r_in_small_data_p): Update.
7547 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7548 * config/i386/i386.c (ix86_in_large_data_p): Update.
7549 * config/i386/winnt.c (i386_pe_unique_section): Update.
7550 * config/darwin.c (darwin_function_section): Update.
7551 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7552 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7553 (new_emutls_decl): Update.
7554 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7555 input_varpool_node): Update.
7556 (ead_string_cst): Turn to ...
7557 (read_string): ... this one.
7558 * dwarf2out.c (secname_for_decl): Update.
7559 * asan.c (asan_protect_global): Update.
7560
7561 2014-06-11 DJ Delorie <dj@redhat.com>
7562
7563 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7564 cache lines.
7565 * config/rx/rx.c (rx_option_override): Likewise.
7566 (rx_align_for_label): Likewise.
7567
7568 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7569
7570 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7571
7572 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7573 prototype.
7574
7575 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7576
7577 * common.md: New file.
7578 * doc/md.texi: Update description of generic, machine-independent
7579 constraints.
7580 * config/s390/constraints.md (e): Delete.
7581 * Makefile.in (md_file): Include common.md.
7582 * config/m32c/t-m32c (md_file): Likewise.
7583 * genpreds.c (general_mem): New array.
7584 (generic_constraint_letters): Remove constraints now defined by
7585 common.md.
7586 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7587 Allow the first character to be '<' or '>' as well.
7588 * genoutput.c (general_mem): New array.
7589 (indep_constraints): Remove constraints now defined by common.md.
7590 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7591 Remove special handling of 'm'.
7592 * ira-costs.c (record_reg_classes): Remove special handling of
7593 constraints now defined by common.md.
7594 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7595 * ira-lives.c (single_reg_class): Likewise.
7596 (ira_implicitly_set_insn_hard_regs): Likewise.
7597 * lra-constraints.c (reg_class_from_constraints): Likewise.
7598 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7599 * postreload.c (reload_cse_simplify_operands): Likewise.
7600 * reload.c (push_secondary_reload, scratch_reload_class)
7601 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7602 * reload1.c (maybe_fix_stack_asms): Likewise.
7603 * targhooks.c (default_secondary_reload): Likewise.
7604 * stmt.c (parse_output_constraint): Likewise.
7605 * recog.c (preprocess_constraints): Likewise.
7606 (constrain_operands, peep2_find_free_register): Likewise.
7607 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7608 must be handled specially.
7609
7610 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7611
7612 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7613 * genpreds.c (have_const_dbl_constraints): Delete.
7614 (add_constraint): Don't set it.
7615 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7616 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7617 constraints using the lookup_constraint logic.
7618 * ira-lives.c (single_reg_class): Likewise.
7619 * ira.c (ira_setup_alts): Likewise.
7620 * lra-constraints.c (process_alt_operands): Likewise.
7621 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7622 * reload.c (find_reloads): Likewise.
7623
7624 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7625
7626 * genpreds.c (const_int_start, const_int_end): New variables.
7627 (choose_enum_order): Output CONST_INT constraints before memory
7628 constraints.
7629 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7630 Add CT_CONST_INT.
7631 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7632 * ira.c (ira_setup_alts): Likewise.
7633 * lra-constraints.c (process_alt_operands): Likewise.
7634 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7635 * reload.c (find_reloads): Likewise.
7636
7637 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7638
7639 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7640 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7641 * recog.c (preprocess_constraints): Update accordingly.
7642
7643 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7644
7645 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7646 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7647 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7648 * genpreds.c (print_type_tree): New function.
7649 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7650 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7651 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7652 Write out enum constraint_type and get_constraint_type.
7653 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7654 constraint_num rather than a constraint string.
7655 (satisfies_address_constraint_p): Likewise.
7656 (reg_class_from_constraints): Avoid old constraint macros.
7657 (process_alt_operands, process_address_1): Likewise.
7658 (curr_insn_transform): Likewise.
7659 * ira-costs.c (record_reg_classes): Likewise.
7660 (record_operand_costs): Likewise.
7661 * ira-lives.c (single_reg_class): Likewise.
7662 (ira_implicitly_set_insn_hard_regs): Likewise.
7663 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7664 * postreload.c (reload_cse_simplify_operands): Likewise.
7665 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7666 (constrain_operands, peep2_find_free_register): Likewise.
7667 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7668 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7669 * reload1.c (maybe_fix_stack_asms): Likewise.
7670 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7671 * targhooks.c (default_secondary_reload): Likewise.
7672 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7673 to EXTRA_CONSTRAINT_STR.
7674 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7675
7676 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7677
7678 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7679 (write_constraint_satisfied_p_array): ...this new function.
7680 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7681 an array.
7682 (write_insn_preds_c): Update accordingly.
7683
7684 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7685
7686 * genpreds.c (write_lookup_constraint): Rename to...
7687 (write_lookup_constraint_1): ...this.
7688 (write_lookup_constraint_array): New function.
7689 (write_tm_preds_h): Define lookup_constraint as an inline function
7690 that uses write_lookup_constraint_array where possible.
7691 (write_insn_preds_c): Update for the changes above.
7692
7693 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7694
7695 * doc/md.texi (regclass_for_constraint): Rename to...
7696 (reg_class_for_constraint): ...this.
7697 * genpreds.c (num_constraints, enum_order, register_start)
7698 (register_end, satisfied_start, memory_start, memory_end)
7699 (address_start, address_end): New variables.
7700 (add_constraint): Count the number of constraints.
7701 (choose_enum_order): New function.
7702 (write_enum_constraint_num): Iterate over enum_order.
7703 (write_regclass_for_constraint): Rename to...
7704 (write_reg_class_for_constraint_1): ...this and update output
7705 accordingly.
7706 (write_constraint_satisfied_p): Rename to...
7707 (write_constraint_satisfied_p_1): ...this and update output
7708 accordingly. Do nothing if all extra constraints are register
7709 constraints.
7710 (write_insn_extra_memory_constraint): Delete.
7711 (write_insn_extra_address_constraint): Delete.
7712 (write_range_function): New function.
7713 (write_tm_preds_h): Define constraint_satisfied_p and
7714 reg_class_for_constraint as inline functions that do a range check
7715 before calling the out-of-line function. Use write_range_function
7716 to implement insn_extra_{register,memory,address}_constraint,
7717 the first of which is new.
7718 (write_insn_preds_c): Update after above changes to write_* functions.
7719 (main): Call choose_enum_order.
7720
7721 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7722
7723 PR tree-optimization/61306
7724 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
7725 expression instead of its size.
7726 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
7727 false to prevent optimization when the result is unpredictable due to
7728 arithmetic right shift of signed type with highest byte is set.
7729 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
7730 (init_symbolic_number): Likewise.
7731 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
7732 when the result is unpredictable due to sign extension.
7733
7734 2014-06-11 Terry Guo <terry.guo@arm.com>
7735
7736 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
7737 (*thumb1_addsi3): Ditto.
7738 (*thumb_subdi3): Ditto.
7739 (thumb1_subsi3_insn): Ditto.
7740 (*thumb_mulsi3): Ditto.
7741 (*thumb_mulsi3_v6): Ditto.
7742 (*thumb1_andsi3_insn): Ditto.
7743 (thumb1_bicsi3): Ditto.
7744 (*thumb1_iorsi3_insn): Ditto.
7745 (*thumb1_xorsi3_insn): Ditto.
7746 (*thumb1_ashlsi3): Ditto.
7747 (*thumb1_ashrsi3): Ditto.
7748 (*thumb1_lshrsi3): Ditto.
7749 (*thumb1_rotrsi3): Ditto.
7750 (*thumb1_negdi2): Ditto.
7751 (*thumb1_negsi2): Ditto.
7752 (*thumb1_abssi2): Ditto.
7753 (*thumb1_neg_abssi2): Ditto.
7754 (*thumb1_one_cmplsi2): Ditto.
7755 (*thumb1_zero_extendhisi2): Ditto.
7756 (*thumb1_zero_extendqisi2): Ditto.
7757 (*thumb1_zero_extendqisi2_v6): Ditto.
7758 (thumb1_extendhisi2): Ditto.
7759 (thumb1_extendqisi2): Ditto.
7760 (*thumb1_movdi_insn): Ditto.
7761 (*thumb1_movsi_insn): Ditto.
7762 (*thumb1_movhi_insn): Ditto.
7763 (thumb_movhi_clobber): Ditto.
7764 (*thumb1_movqi_insn): Ditto.
7765 (*thumb1_movhf): Ditto.
7766 (*thumb1_movsf_insn): Ditto.
7767 (*thumb_movdf_insn): Ditto.
7768 (movmem12b): Ditto.
7769 (movmem8b): Ditto.
7770 (cbranchqi4): Ditto.
7771 (cbranchsi4_insn): Ditto.
7772 (cbranchsi4_scratch): Ditto.
7773 (*negated_cbranchsi4): Ditto.
7774 (*tbit_cbranch): Ditto.
7775 (*tlobits_cbranch): Ditto.
7776 (*tstsi3_cbranch): Ditto.
7777 (*cbranchne_decr1): Ditto.
7778 (*addsi3_cbranch): Ditto.
7779 (*addsi3_cbranch_scratch): Ditto.
7780 (*thumb_cmpdi_zero): Ditto.
7781 (cstoresi_eq0_thumb1): Ditto.
7782 (cstoresi_ne0_thumb1): Ditto.
7783 (*cstoresi_eq0_thumb1_insn): Ditto.
7784 (*cstoresi_ne0_thumb1_insn): Ditto.
7785 (cstoresi_nltu_thumb1): Ditto.
7786 (cstoresi_ltu_thumb1): Ditto.
7787 (thumb1_addsi3_addgeu): Ditto.
7788 (*thumb_jump): Ditto.
7789 (*call_reg_thumb1_v5): Ditto.
7790 (*call_reg_thumb1): Ditto.
7791 (*call_value_reg_thumb1_v5): Ditto.
7792 (*call_value_reg_thumb1): Ditto.
7793 (*call_insn): Ditto.
7794 (*call_value_insn): Ditto.
7795 (thumb1_casesi_internal_pic): Ditto.
7796 (thumb1_casesi_dispatch): Ditto.
7797 (*thumb1_indirect_jump): Ditto.
7798 (prologue_thumb1_interwork): Ditto.
7799 (*epilogue_insns): Ditto.
7800 (consttable_1): Ditto.
7801 (consttable_2): Ditto.
7802 (tablejump): Ditto.
7803 (*thumb1_tablejump): Ditto.
7804 (thumb_eh_return): Ditto.
7805 (define_peephole2): Two of them are thumb1 only and got moved into
7806 new file thumb1.md.
7807 (define_split): Six of them are thumb1 only and got moved into new
7808 file thumb1.md.
7809 * config/arm/thumb1.md: New file comprised of above thumb1 only
7810 patterns.
7811
7812 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7813
7814 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
7815 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
7816 dependencies.
7817 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
7818 (aarch64_crc_builtin_datum): New struct.
7819 (aarch64_crc_builtin_data): New.
7820 (aarch64_init_crc32_builtins): New function.
7821 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
7822 (aarch64_crc32_expand_builtin): New.
7823 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
7824 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7825 __ARM_FEATURE_CRC32 when appropriate.
7826 (TARGET_CRC32): Define.
7827 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
7828 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
7829 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
7830 (aarch64_<crc_variant>): New pattern.
7831 * config/aarch64/arm_acle.h: New file.
7832 * config/aarch64/iterators.md (CRC): New int iterator.
7833 (crc_variant, crc_mode): New int attributes.
7834 * doc/aarch64-acle-intrinsics.texi: New file.
7835 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
7836 Include aarch64-acle-intrinsics.texi.
7837
7838 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
7839
7840 * tree-vect-data-refs.c (vect_grouped_store_supported): New
7841 check for stores group of length 3.
7842 (vect_permute_store_chain): New permutations for stores group of
7843 length 3.
7844 * tree-vect-stmts.c (vect_model_store_cost): Change cost
7845 of vec_perm_shuffle for the new permutations.
7846
7847 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7848
7849 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
7850 table rewriting temporarily on targets not supporting ONE_ONLY.
7851
7852 2014-06-11 Richard Biener <rguenther@suse.de>
7853
7854 PR middle-end/61437
7855 Revert
7856 2014-06-04 Richard Biener <rguenther@suse.de>
7857
7858 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
7859 TREE_PUBLIC and DECL_EXTERNAL decls.
7860
7861 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7862
7863 * varasm.c (set_implicit_section): New function.
7864 (resolve_unique_section): Use it to set implicit section
7865 for aliases, too.
7866 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
7867 (default_function_section): Likewise.
7868 (decl_binds_to_current_def_p): Constify argument.
7869 * varasm.h (decl_binds_to_current_def_p): Update prototype.
7870 * asan.c (asan_protect_global): Use
7871 symtab_get_node (decl)->implicit_section.
7872 * symtab.c (dump_symtab_base): Dump implicit sections.
7873 (verify_symtab_base): Verify sanity of sectoins and comdats.
7874 (symtab_resolve_alias): Alias share the section of its target.
7875 (set_section_1): New function.
7876 (symtab_node::set_section): Move here, recurse to aliases.
7877 (verify_symtab): Check for duplicated symtab lists.
7878 * tree-core.h (implicit_section_name_p): Remove.
7879 * tree-vect-data-refs.c: Include varasm.h.
7880 (vect_can_force_dr_alignment_p): Fix conditional on when
7881 decl bints to current definition; use
7882 symtab_get_node (decl)->implicit_section.
7883 * cgraph.c (cgraph_make_node_local_1): Fix section set.
7884 * cgraph.h (struct symtab_node): Add implicit_section.
7885 (set_section): Rename to ...
7886 (set_section_for_node): ... this one.
7887 (set_section): Declare.
7888 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
7889 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7890 input_overwrite_node, input_varpool_node): Stream implicit_section.
7891 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
7892 removal; it will fail in LTO.
7893
7894 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7895
7896 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
7897 Change second alternative type to f_mcr.
7898 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
7899 and 12th alternatives' types to f_mcr and f_mrc.
7900 (*movdi_aarch64): Same for 12th and 13th alternatives.
7901 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
7902 (aarch64_movtilow_tilow): Change type to fmov.
7903
7904 2014-06-10 Jiong Wang <jiong.wang@arm.com>
7905
7906 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
7907 (aarch64_save_or_restore_callee_save_registers): Fix layout.
7908
7909 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7910
7911 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
7912 New expander.
7913 (aarch64_sqrdmulh_lane<mode>): Likewise.
7914 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7915 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7916 (aarch64_sqdmulh_laneq<mode>): New expander.
7917 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7918 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
7919 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
7920 (aarch64_sqdmulh_lane<mode>): New expander.
7921 (aarch64_sqrdmulh_lane<mode>): Likewise.
7922 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7923 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7924 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
7925 (aarch64_sqdmlal_laneq<mode>): Likewise.
7926 (aarch64_sqdmlsl_lane<mode>): Likewise.
7927 (aarch64_sqdmlsl_laneq<mode>): Likewise.
7928 (aarch64_sqdmlal2_lane<mode>): Likewise.
7929 (aarch64_sqdmlal2_laneq<mode>): Likewise.
7930 (aarch64_sqdmlsl2_lane<mode>): Likewise.
7931 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7932 (aarch64_sqdmull_lane<mode>): Likewise.
7933 (aarch64_sqdmull_laneq<mode>): Likewise.
7934 (aarch64_sqdmull2_lane<mode>): Likewise.
7935 (aarch64_sqdmull2_laneq<mode>): Likewise.
7936
7937 2014-06-10 Richard Biener <rguenther@suse.de>
7938
7939 PR tree-optimization/61438
7940 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
7941 (eliminate_dom_walker::before_dom_children): Only try to inhibit
7942 insertion of IVs if running PRE.
7943 (eliminate): Adjust.
7944 (pass_pre::execute): Likewise.
7945 (pass_fre::execute): Likewise.
7946
7947 2014-06-10 Richard Biener <rguenther@suse.de>
7948
7949 PR middle-end/61456
7950 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7951 Do not use the main variant for the type comparison.
7952 (ncr_compar): Likewise.
7953 (nonoverlapping_component_refs_p): Likewise.
7954
7955 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
7956
7957 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
7958 REG_CFA_RESTORE mode.
7959
7960 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
7961
7962 * config/i386/i386.c (expand_vec_perm_pblendv): New.
7963 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
7964 expand_vec_perm_pblendv.
7965
7966 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7967
7968 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
7969 available.
7970 Simplify description of __crc32d and __crc32cd intrinsics.
7971 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
7972 availability.
7973
7974 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
7975
7976 PR lto/61334
7977 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
7978 * config.in: Regenerate.
7979 * configure: Likewise.
7980
7981 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7982
7983 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
7984 and public vars.
7985 (intersect_static_var_sets): Remove.
7986 (propagate): Do not prune local statics.
7987
7988 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7989
7990 PR fortran/60928
7991 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
7992 Set lastprivate_firstprivate even if omp_private_outer_ref
7993 langhook returns true.
7994 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
7995 langhook, call unshare_expr on new_var and call
7996 build_outer_var_ref to get the last argument.
7997
7998 2014-06-10 Marek Polacek <polacek@redhat.com>
7999
8000 PR c/60988
8001 * doc/extend.texi: Add cindex for transparent_union.
8002
8003 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
8004
8005 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
8006 init_symbolic_number ().
8007
8008 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
8009
8010 PR middle-end/61141
8011 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
8012 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
8013 (verify_rtl_sharing): Likewise.
8014
8015 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
8016
8017 PR c++/54442
8018 * tree.c (build_qualified_type): Use a canonical type for
8019 TYPE_CANONICAL.
8020
8021 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8022
8023 * config/arm/arm-modes.def: Remove XFmode.
8024
8025 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
8026
8027 PR target/61062
8028 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
8029 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
8030 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
8031 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
8032 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
8033 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
8034 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
8035 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
8036 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
8037
8038 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
8039
8040 * tree-core.h (tree_decl_with_vis): Remove section_name.
8041
8042 2014-06-09 Kito Cheng <kito@0xlab.org>
8043
8044 * ira.c (ira): Don't call init_caller_save if LRA enabled
8045 since LRA use its own infrastructure to handle that.
8046
8047 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8048
8049 * symtab.c (dump_symtab_base): Update dumping.
8050 (symtab_make_decl_local): Clear only DECL_COMDAT.
8051 * tree-vect-data-refs.c (Check that variable is static before
8052 tampering with sections.
8053 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
8054 (cgraph_create_virtual_clone): Likewise.
8055 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
8056 (decl_section_name, set_decl_section_name): New accessors.
8057 (find_decls_types_r): Do not walk section name
8058 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
8059 (decl_comdat_group, decl_comdat_group_id): Constify.
8060 (decl_section_name, set_decl_section_name): Update.
8061 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
8062 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
8063 (cgraph_make_node_local_1): Clear section and comdat group.
8064 * cgraph.h (set_comdat_group): Sanity check.
8065 (get_section, set_section): New.
8066 * ipa-comdats.c (ipa_comdats): Use get_section.
8067 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
8068 * lto-streamer-out.c: Do not follow section names.
8069 * c-family/c-common.c (handle_section_attribute): Update.
8070 * lto-cgraph.c (lto_output_node): Output section.
8071 (lto_output_varpool_node): Likewise.
8072 (read_comdat_group): Rename to ...
8073 (read_identifier): ... this one.
8074 (read_string_cst): New function.
8075 (input_node, input_varpool_node): Input section names.
8076 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8077 (new_emutls_decl): Update.
8078 (secname_for_decl): Check section names only of static vars.
8079 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
8080 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
8081 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8082 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8083 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
8084 * config/mcore/mcore.c (mcore_unique_section): Likewise.
8085 * config/mips/mips.c (mips16_build_function_stub): Likewise.
8086 * config/v850/v850.c (v850_insert_attributes): Likewise.
8087 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
8088 Likewise.
8089 (h8300_handle_tiny_data_attribute): Likewise.
8090 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
8091 (bfin_handle_l2_attribute): Likewise.
8092
8093 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8094
8095 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
8096 remove static initializer.
8097
8098 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8099
8100 * varasm.c (use_blocks_for_decl_p): Check symbol table
8101 instead of alias attribute.
8102 (place_block_symbol): Recurse on aliases.
8103
8104 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8105
8106 * ipa-visibility.c: Include varasm.h
8107 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8108
8109 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8110
8111 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8112 outputting aliases.
8113
8114 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8115
8116 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8117 from test_insn into GGC space escape via SET_SRC.
8118
8119 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8120
8121 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8122 call statement, if any.
8123 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8124 statements, if any. Tidy up.
8125
8126 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8127
8128 PR target/61431
8129 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8130 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8131 handles swapping the two 64-bit double words on little endian
8132 systems. Include V1TImode and optionally TImode in VSX_LE so that
8133 these types are properly swapped. Change all of the insns and
8134 splits that do the 64-bit swaps to use VSX_LE.
8135 (vsx_le_perm_load_<mode>): Likewise.
8136 (vsx_le_perm_store_<mode>): Likewise.
8137 (splitters for little endian memory operations): Likewise.
8138 (vsx_xxpermdi2_le_<mode>): Likewise.
8139 (vsx_lxvd2x2_le_<mode>): Likewise.
8140 (vsx_stxvd2x2_le_<mode>): Likewise.
8141
8142 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8143
8144 PR target/61423
8145 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8146 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8147 and corresponding splitters. Zero extend general register
8148 or memory input operand to XMM temporary. Enable for
8149 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8150 (floatunssi<mode>2): Update expander predicate.
8151
8152 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8153
8154 PR rtl-optimization/61325
8155 * lra-constraints.c (process_address_1): Check scale equal to one
8156 to prevent transformation: base + scale * index => base + new_reg.
8157
8158 2014-06-06 Richard Biener <rguenther@suse.de>
8159
8160 PR tree-optimization/59299
8161 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8162 a def operand.
8163 (nearest_common_dominator_of_uses): Likewise.
8164 (statement_sink_location): Adjust. Support sinking loads.
8165
8166 2014-06-06 Martin Jambor <mjambor@suse.cz>
8167
8168 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8169 (build_agg_jump_func_from_list): Likewise.
8170 (determine_known_aggregate_parts): Renamed to
8171 determine_locally_known_aggregate_parts. Moved some functionality
8172 to the two functions above, removed bound checks.
8173
8174 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8175
8176 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8177 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8178 (aarch64_progress_pointer): Likewise.
8179 (aarch64_copy_one_part_and_move_pointers): Likewise.
8180 (aarch64_expand_movmen): Likewise.
8181 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8182 * config/aarch64/aarch64.md (movmem<mode>): New.
8183
8184 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8185
8186 * targhooks.c (default_add_stmt_cost): Call target specific
8187 hook instead of default one.
8188
8189 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8190
8191 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8192 endianness instead of host endianness.
8193 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8194 comments.
8195
8196 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8197
8198 PR debug/53927
8199 * function.c (instantiate_decls): Process the saved static chain.
8200 (expand_function_start): If not optimizing, save the static chain
8201 onto the stack.
8202 * tree-nested.c (convert_all_function_calls): Always create the static
8203 chain for nested functions if not optimizing.
8204
8205 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8206
8207 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8208
8209 2014-06-06 Richard Biener <rguenther@suse.de>
8210
8211 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8212 (construct_init_block): Likewise.
8213 (construct_exit_block): Likewise.
8214 (pass_expand::execute): Likewise.
8215 * graphite.c (graphite_transforms): Replace check for current_loops
8216 with a check for > 1 loops.
8217 (pass_graphite_transforms::execute): Adjust.
8218 * ipa-split.c (split_function): Remove check for current_loops.
8219 * omp-low.c (expand_parallel_call): Likewise.
8220 (expand_omp_for_init_counts): Likewise.
8221 (extract_omp_for_update_vars): Likewise.
8222 (expand_omp_for_generic): Likewise.
8223 (expand_omp_sections): Likewise.
8224 (expand_omp_target): Likewise.
8225 * tracer.c (tail_duplicate): Likewise.
8226 (pass_tracer::execute): Likewise.
8227 * trans-mem.c (expand_transaction): Likewise.
8228 * tree-complex.c (expand_complex_div_wide): Likewise.
8229 * tree-eh.c (lower_resx): Likewise.
8230 (cleanup_empty_eh_merge_phis): Likewise.
8231 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8232 current_loops with a check for > 1 loops.
8233 (pass_predcom::execute): Adjust.
8234 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8235 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8236 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8237 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8238 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8239 * tree-switch-conversion.c (process_switch): Likewise.
8240 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8241 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8242 (execute_vrp): Likewise.
8243 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8244
8245 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8246
8247 * rtl.h (insn_location): Declare.
8248 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8249 with UNKNOWN_LOCATION.
8250 * emit-rtl.c (insn_location): New function.
8251 * final.c (notice_source_line): Check that the instruction has a
8252 location before retrieving it and use insn_location.
8253 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8254 * print-rtl.c (print_rtx): Likewise.
8255
8256 2014-06-06 Richard Biener <rguenther@suse.de>
8257
8258 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8259
8260 2014-06-06 Christian Bruel <christian.bruel@st.com>
8261
8262 PR tree-optimization/43934
8263 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8264 cost.
8265
8266 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8267
8268 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8269 return NO_REGS for extra address and memory constraints. Handle
8270 operands that match (or are equivalent to something that matches)
8271 extra constant constraints. Ignore other non-register operands.
8272
8273 2014-06-06 Alan Modra <amodra@gmail.com>
8274
8275 PR target/61300
8276 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8277 * doc/tm.texi: Regenerate.
8278 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8279 Use throughout in place of REG_PARM_STACK_SPACE.
8280 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8281 "incoming" param. Pass to rs6000_function_parms_need_stack.
8282 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8283 prototype_p when incoming. Use function decl when incoming
8284 to handle K&R style functions.
8285 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8286 (INCOMING_REG_PARM_STACK_SPACE): Define.
8287
8288 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8289
8290 PR target/52472
8291 * cfgexpand.c (expand_debug_expr): Use address space of nested
8292 TREE_TYPE for ADDR_EXPR and MEM_REF.
8293
8294 2014-06-05 Jeff Law <law@redhat.com>
8295
8296 PR tree-optimization/61289
8297 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8298 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8299 looking for those which match LHS. All callers changed.
8300 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8301 parameters and code which manipulated them. All callers changed.
8302 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8303 and DST_MAP parameters. Simplify invalidation code by just calling
8304 invalidate_equivalences. All callers changed.
8305 (thread_across_edge): Simplify now that we don't need to maintain
8306 the map of equivalences to invalidate.
8307
8308 2014-06-05 Kai Tietz <ktietz@redhat.com>
8309 Richard Henderson <rth@redhat.com>
8310
8311 PR target/46219
8312 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8313 checking for !TARGET_X32.
8314 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8315 (sibcall_intern): New define_insn, plus required peepholes.
8316 (sibcall_pop_intern): Likewise.
8317 (sibcall_value_intern): Likewise.
8318 (sibcall_value_pop_intern): Likewise.
8319
8320 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8321
8322 * tree-inline.c (tree_function_versioning): Check DF info existence
8323 before accessing it.
8324
8325 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8326
8327 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8328 frame_size.
8329 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8330 aarch64_frame hard_fp_offset and frame_size.
8331 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8332 frame_size; remove original_frame_size.
8333 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8334 (aarch64_initial_elimination_offset): Remove frame_size and
8335 offset. Use aarch64_frame frame_size.
8336
8337 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8338 Jiong Wang <jiong.wang@arm.com>
8339 Renlin <renlin.li@arm.com>
8340
8341 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8342 initialization of R30 offset. Update offset. Iterate core
8343 regisers upto X30. Remove X29, X30 specific code.
8344
8345 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8346 Jiong Wang <jiong.wang@arm.com>
8347
8348 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8349 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8350 (aarch64_register_saved_on_entry): Adjust test.
8351
8352 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8353
8354 * config/aarch64/aarch64.h (machine_function): Move
8355 saved_varargs_size from here...
8356 (aarch64_frame): ... to here.
8357
8358 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8359 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8360 (aarch64_initial_elimination_offset)
8361 (aarch64_setup_incoming_varargs): Adjust location of
8362 saved_varargs_size.
8363
8364 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8365
8366 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8367 layout comment.
8368
8369 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8370 Prachi Godbole <Prachi.Godbole@imgtec.com>
8371
8372 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8373 mips32r5 entry to use PROCESSOR_P5600.
8374 * config/mips/mips-tables.opt: Regenerate.
8375 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8376 * config/mips/mips.c (mips_fmadd_bypass): New function.
8377 (mips_rtx_cost_data): Add costs for p5600.
8378 (mips_issue_rate): Add support for p5600.
8379 (mips_multipass_dfa_lookahead): Likewise.
8380 * config/mips/mips.h (TUNE_P5600): New define.
8381 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8382 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8383 * config/mips/mips.md: Include p5600.md.
8384 (processor): Add p5600.
8385 * config/mips/p5600.md: New file.
8386
8387 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8388
8389 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8390 * config/i386/predicates.md (palignr_operand): New.
8391 Indicates if permutation is suitable for palignr instruction.
8392
8393 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8394
8395 PR tree-optimization/61319
8396 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8397 stmt belongs to loop.
8398
8399 2014-06-05 Richard Biener <rguenther@suse.de>
8400
8401 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8402 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8403 (lookup_tmp_var): Adjust.
8404 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8405
8406 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8407
8408 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8409
8410 2014-06-05 Marek Polacek <polacek@redhat.com>
8411
8412 PR c/49706
8413 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8414
8415 2014-06-04 Tom de Vries <tom@codesourcery.com>
8416
8417 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8418 CONST_INT.
8419
8420 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8421
8422 PR tree-optimization/61385
8423 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8424
8425 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8426
8427 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8428 changed to use fatal_error.
8429 (main): Ensure lto_wrapper_cleanup is run atexit.
8430
8431 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8432
8433 * lra-constraints.c (valid_address_p): Move earlier in file.
8434 (address_eliminator): New structure.
8435 (satisfies_memory_constraint_p): New function.
8436 (satisfies_address_constraint_p): Likewise.
8437 (process_alt_operands, process_address, curr_insn_transform): Use them.
8438
8439 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8440
8441 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8442 const pointer.
8443 (target_lra_int, default_target_lra_int, this_target_lra_int)
8444 (op_alt_data): Delete.
8445 * lra.h (lra_init): Delete.
8446 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8447 (init_insn_code_data_once): Remove op_alt_data handling.
8448 (finish_insn_code_data_once): Likewise.
8449 (init_op_alt_data): Delete.
8450 (get_static_insn_data): Initialize operand_alternative to null.
8451 (free_insn_recog_data): Cast operand_alternative before freeing it.
8452 (setup_operand_alternative): Take the operand_alternative as
8453 parameter and assume it isn't already cached in the static
8454 insn data.
8455 (lra_set_insn_recog_data): Update accordingly.
8456 (lra_init): Delete.
8457 * ira.c (ira_init): Don't call lra_init.
8458 * target-globals.h (this_target_lra_int): Declare.
8459 (target_globals): Remove lra_int.
8460 (restore_target_globals): Update accordingly.
8461 * target-globals.c: Don't include lra-int.h.
8462 (default_target_globals, save_target_globals): Remove lra_int.
8463
8464 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8465
8466 * recog.h (operand_alternative): Convert reg_class, reject,
8467 matched and matches into bitfields.
8468 (preprocess_constraints): New overload.
8469 (preprocess_insn_constraints): New function.
8470 (preprocess_constraints): Take the insn as parameter.
8471 (recog_op_alt): Change into a pointer.
8472 (target_recog): Add x_op_alt.
8473 * recog.c (asm_op_alt): New variable.
8474 (recog_op_alt): Change into a pointer.
8475 (preprocess_constraints): New overload, replacing the old function
8476 definition with one that doesn't use global state.
8477 (preprocess_insn_constraints): New function.
8478 (preprocess_constraints): Use them. Take the insn as parameter.
8479 Use asm_op_alt for asms.
8480 (recog_init): Free existing x_op_alt entries.
8481 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8482 pointer const.
8483 (make_early_clobber_and_input_conflicts): Likewise.
8484 (process_bb_node_lives): Pass the insn to process_constraints.
8485 * reg-stack.c (check_asm_stack_operands): Likewise.
8486 (subst_asm_stack_regs): Likewise.
8487 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8488 * regrename.c (build_def_use): Likewise.
8489 * sched-deps.c (sched_analyze_insn): Likewise.
8490 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8491 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8492 (note_invalid_constants): Likewise.
8493 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8494 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8495 const.
8496
8497 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8498
8499 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8500 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8501 alternatives.
8502 (make_early_clobber_and_input_conflicts): Likewise.
8503 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8504
8505 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8506
8507 * recog.h (alternative_class): New function.
8508 (which_op_alt): Return a const recog_op_alt.
8509 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8510 (subst_asm_stack_regs): Likewise.
8511 * config/arm/arm.c (note_invalid_constants): Likewise.
8512 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8513 the operand_alternative; use alternative class instead.
8514 * sel-sched.c (get_reg_class): Likewise.
8515 * regrename.c (build_def_use): Likewise.
8516 (hide_operands, restore_operands, record_out_operands): Update type
8517 accordingly.
8518
8519 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8520
8521 * recog.h (recog_op_alt): Convert to a flat array.
8522 (which_op_alt): New function.
8523 * recog.c (recog_op_alt): Convert to a flat array.
8524 (preprocess_constraints): Update accordingly, grouping all
8525 operands of the same alternative together, rather than the
8526 other way around.
8527 * ira-lives.c (check_and_make_def_conflict): Likewise.
8528 (make_early_clobber_and_input_conflicts): Likewise.
8529 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8530 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8531 (subst_asm_stack_regs): Likewise.
8532 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8533 * regrename.c (hide_operands, record_out_operands): Likewise.
8534 (build_def_use): Likewise.
8535 * sel-sched.c (get_reg_class): Likewise.
8536 * config/arm/arm.c (note_invalid_constants): Likewise.
8537
8538 2014-06-04 Jason Merrill <jason@redhat.com>
8539
8540 PR c++/51253
8541 PR c++/61382
8542 * gimplify.c (gimplify_arg): Non-static.
8543 * gimplify.h: Declare it.
8544
8545 2014-06-04 Richard Biener <rguenther@suse.de>
8546
8547 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8548 TREE_PUBLIC and DECL_EXTERNAL decls.
8549
8550 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8551
8552 * regcprop.c (copyprop_hardreg_forward_1): Account for
8553 HARD_REGNO_CALL_PART_CLOBBERED.
8554
8555 2014-06-04 Richard Biener <rguenther@suse.de>
8556
8557 * configure.ac: Check whether the underlying type of int64_t
8558 is long or long long.
8559 * configure: Regenerate.
8560 * config.in: Likewise.
8561 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8562 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8563
8564 2014-06-04 Richard Biener <rguenther@suse.de>
8565
8566 PR tree-optimization/60098
8567 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8568 we hit a kill.
8569 (dse_optimize_stmt): Simplify, now that we found a kill
8570 earlier.
8571
8572 2014-06-04 Richard Biener <rguenther@suse.de>
8573
8574 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8575 of accesses with non-invariant address.
8576
8577 2014-06-04 Martin Liska <mliska@suse.cz>
8578
8579 * cgraph.h (cgraph_make_wrapper): New function introduced.
8580 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8581 * ipa-inline.h (inline_analyze_function): The function is global.
8582 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8583
8584 2014-06-04 Martin Liska <mliska@suse.cz>
8585
8586 * tree.h (private_lookup_attribute_starting): New function.
8587 (lookup_attribute_starting): Likewise.
8588 * tree.c (private_lookup_attribute_starting): Likewise.
8589
8590 2014-06-04 Martin Liska <mliska@suse.cz>
8591
8592 * cgraph.h (expand_thunk): New argument added.
8593 (address_taken_from_non_vtable_p): New global function.
8594 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8595 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8596 * cgraphunit.c (analyze_function): Likewise.
8597 (assemble_thunks_and_aliases): Argument added to call.
8598 (expand_thunk): New argument forces to produce GIMPLE thunk.
8599
8600 2014-06-04 Martin Liska <mliska@suse.cz>
8601
8602 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8603 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8604 * profile.c (branch_prob): Likewise.
8605
8606 2014-06-04 Martin Jambor <mjambor@suse.cz>
8607
8608 PR ipa/61340
8609 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8610 handler for switch on an ipa_ref_use enum.
8611 * ipa-reference.c (analyze_function): Likewise.
8612
8613 2014-06-04 Kai Tietz <ktietz@redhat.com>
8614
8615 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8616 from old call-instruction.
8617
8618 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8619
8620 * config/aarch64/aarch64.c (aarch64_classify_address)
8621 (aarch64_legitimize_reload_address): Support full addressing modes
8622 for vector modes.
8623 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8624 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8625
8626 2014-06-03 Andrew Pinski <apinski@cavium.com>
8627
8628 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8629 for OP0.
8630
8631 2014-06-03 Andrew Pinski <apinski@cavium.com>
8632
8633 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8634 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8635
8636 2014-06-03 Kai Tietz <ktietz@redhat.com>
8637
8638 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8639 for 64-bit ms-abi.
8640
8641 2014-06-03 Dehao Chen <dehao@google.com>
8642
8643 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8644 the same loop.
8645
8646 2014-06-03 Marek Polacek <polacek@redhat.com>
8647
8648 PR c/60439
8649 * doc/invoke.texi: Document -Wswitch-bool.
8650 * function.c (stack_protect_epilogue): Cast controlling expression of
8651 the switch to int.
8652 * gengtype.c (walk_type): Generate switch expression with its
8653 controlling expression cast to int.
8654
8655 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8656
8657 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8658 and attiny841.
8659 * config/avr/avr-tables.opt: Regenerate.
8660 * config/avr/t-multilib: Regenerate.
8661 * doc/avr-mmcu.texi: Regenerate.
8662
8663 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8664 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8665
8666 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8667 (ata6617c, ata664251): Add new avr35 devices.
8668 (ata6612c): Add new avr4 device.
8669 (ata6613c, ata6614q): Add new avr5 devices.
8670 * config/avr/avr-tables.opt: Regenerate.
8671 * config/avr/t-multilib: Regenerate.
8672 * doc/avr-mmcu.texi: Regenerate.
8673
8674 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8675
8676 * gcc/config/aarch64/aarch64-builtins.c
8677 (aarch64_types_binop_ssu_qualifiers): New static data.
8678 (TYPES_BINOP_SSU): Define.
8679 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8680 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8681 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8682 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8683 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8684 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8685 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8686 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8687 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8688 suffix to builtin function name, remove cast.
8689 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8690 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8691 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8692
8693 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8694
8695 * gcc/config/aarch64/aarch64-builtins.c
8696 (aarch64_types_binop_uus_qualifiers,
8697 aarch64_types_shift_to_unsigned_qualifiers,
8698 aarch64_types_unsigned_shiftacc_qualifiers): Define.
8699 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
8700 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
8701 sqshlu_n, uqshl_n): Update qualifiers.
8702 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
8703 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
8704 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
8705 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
8706 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
8707 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
8708 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
8709 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
8710 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
8711 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
8712 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
8713 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
8714 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
8715 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
8716 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
8717 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
8718 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
8719 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
8720 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
8721 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
8722 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
8723 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
8724 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
8725 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
8726 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
8727 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
8728 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
8729
8730 2014-06-03 Teresa Johnson <tejohnson@google.com>
8731
8732 * tree-sra.c (modify_function): Record caller nodes after rebuild.
8733
8734 2014-06-02 Jason Merrill <jason@redhat.com>
8735
8736 PR c++/61020
8737 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
8738
8739 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8740
8741 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
8742 location == 0.
8743
8744 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8745
8746 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
8747 New pattern.
8748 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
8749 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
8750 * config/aarch64/iterators.md (REVERSE): New iterator.
8751 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
8752 (rev_op): New int_attribute.
8753 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
8754 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
8755 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
8756 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
8757 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
8758 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
8759 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
8760 Replace temporary __asm__ with __builtin_shuffle.
8761
8762 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8763
8764 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
8765 mips64r5.
8766 * config/mips/mips-tables.opt: Regenerate.
8767 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
8768 to use mips_isa_rev rather than ISA_MIPS32R2.
8769 * config/mips/mips.h (ISA_MIPS32R3): New define.
8770 (ISA_MIPS32R5): New define.
8771 (ISA_MIPS64R3): New define.
8772 (ISA_MIPS64R5): New define.
8773 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
8774 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
8775 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
8776 and mips64r5.
8777 (MIPS_ISA_SYNCI_SPEC): Likewise.
8778 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
8779 (LINK_SPEC): Added mips32r3 and mips32r5.
8780 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
8781 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
8782 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
8783 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
8784 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
8785 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
8786 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
8787
8788 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8789
8790 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
8791 options.
8792 * config/mips/mips.opt (mxpa): New option.
8793 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
8794 assembler.
8795
8796 2014-06-03 Martin Jambor <mjambor@suse.cz>
8797
8798 PR ipa/61160
8799 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
8800 thunks.
8801
8802 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8803
8804 PR tree-optimization/61328
8805 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
8806 initialization from find_bswap_or_nop_1.
8807 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
8808 in source_expr2 before using the size value the function sets. Also
8809 make use of init_symbolic_number () in both the old place and
8810 find_bswap_or_nop_load () to avoid reading uninitialized memory when
8811 doing recursion in the GIMPLE_BINARY_RHS case.
8812
8813 2014-06-03 Richard Biener <rguenther@suse.de>
8814
8815 PR tree-optimization/61383
8816 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
8817 stmts can't trap.
8818
8819 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8820
8821 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
8822 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
8823 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
8824 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
8825 in this file.
8826 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8827 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
8828 * system.h: ...here and make it unconditional.
8829 * target.def (conditional_register_usage): Mention
8830 define_register_constraint instead of old-style constraint macros.
8831 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
8832 * doc/tm.texi: Regenerate.
8833 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
8834 protected by !USE_MD_CONSTRAINTS.
8835 * config/frv/frv.md: Remove quote from old version of documentation.
8836 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
8837 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
8838 CONST_DOUBLE_OK_FOR_LETTER.
8839 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
8840
8841 2014-06-02 Andrew Pinski <apinski@cavium.com>
8842
8843 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
8844 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
8845 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
8846 file whose name depends on -mabi= and -mbig-endian.
8847 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
8848 Handle LP64 better and handle ilp32 too.
8849 (MULTILIB_OPTIONS): Delete.
8850 (MULTILIB_DIRNAMES): Delete.
8851
8852 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
8853
8854 * expr.h: Remove prototypes of functions defined in builtins.c.
8855 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
8856 Remove prototypes of functions defined in builtins.c.
8857 * builtins.h: Update prototype list to include all exported functions.
8858 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
8859 no_c99_libc_has_function): Move to targhooks.c
8860 (build_string_literal, build_call_expr_loc_array,
8861 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
8862 to tree.c.
8863 (expand_builtin_object_size, fold_builtin_object_size): Make static.
8864 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
8865 no_c99_libc_has_function): Relocate from builtins.c.
8866 * tree.c: Include builtins.h.
8867 (build_call_expr_loc_array, build_call_expr_loc_vec,
8868 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
8869 from builtins.c.
8870 * fold-const.h (fold_fma): Move prototype to builtins.h.
8871 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
8872 * asan.c: Include builtins.h.
8873 * cfgexpand.c: Likewise.
8874 * convert.c: Likewise.
8875 * emit-rtl.c: Likewise.
8876 * except.c: Likewise.
8877 * expr.c: Likewise.
8878 * fold-const.c: Likewise.
8879 * gimple-fold.c: Likewise.
8880 * gimple-ssa-strength-reduction.c: Likewise.
8881 * gimplify.c: Likewise.
8882 * ipa-inline.c: Likewise.
8883 * ipa-prop.c: Likewise.
8884 * lto-streamer-out.c: Likewise.
8885 * stmt.c: Likewise.
8886 * tree-inline.c: Likewise.
8887 * tree-object-size.c: Likewise.
8888 * tree-sra.c: Likewise.
8889 * tree-ssa-ccp.c: Likewise.
8890 * tree-ssa-forwprop.c: Likewise.
8891 * tree-ssa-loop-ivcanon.c: Likewise.
8892 * tree-ssa-loop-ivopts.c: Likewise.
8893 * tree-ssa-math-opts.c: Likewise.
8894 * tree-ssa-reassoc.c: Likewise.
8895 * tree-ssa-threadedge.c: Likewise.
8896 * tree-streamer-in.c: Likewise.
8897 * tree-vect-data-refs.c: Likewise.
8898 * tree-vect-patterns.c: Likewise.
8899 * tree-vect-stmts.c: Likewise.
8900 * config/aarch64/aarch64.c: Likewise.
8901 * config/alpha/alpha.c: Likewise.
8902 * config/arc/arc.c: Likewise.
8903 * config/arm/arm.c: Likewise.
8904 * config/avr/avr.c: Likewise.
8905 * config/bfin/bfin.c: Likewise.
8906 * config/c6x/c6x.c: Likewise.
8907 * config/cr16/cr16.c: Likewise.
8908 * config/cris/cris.c: Likewise.
8909 * config/epiphany/epiphany.c: Likewise.
8910 * config/fr30/fr30.c: Likewise.
8911 * config/frv/frv.c: Likewise.
8912 * config/h8300/h8300.c: Likewise.
8913 * config/i386/i386.c: Likewise.
8914 * config/i386/winnt.c: Likewise.
8915 * config/ia64/ia64.c: Likewise.
8916 * config/iq2000/iq2000.c: Likewise.
8917 * config/lm32/lm32.c: Likewise.
8918 * config/m32c/m32c.c: Likewise.
8919 * config/m32r/m32r.c: Likewise.
8920 * config/m68k/m68k.c: Likewise.
8921 * config/mcore/mcore.c: Likewise.
8922 * config/mep/mep.c: Likewise.
8923 * config/microblaze/microblaze.c: Likewise.
8924 * config/mips/mips.c: Likewise.
8925 * config/mmix/mmix.c: Likewise.
8926 * config/mn10300/mn10300.c: Likewise.
8927 * config/moxie/moxie.c: Likewise.
8928 * config/msp430/msp430.c: Likewise.
8929 * config/nds32/nds32.c: Likewise.
8930 * config/pa/pa.c: Likewise.
8931 * config/pdp11/pdp11.c: Likewise.
8932 * config/picochip/picochip.c: Likewise.
8933 * config/rl78/rl78.c: Likewise.
8934 * config/rs6000/rs6000.c: Likewise.
8935 * config/rx/rx.c: Likewise.
8936 * config/s390/s390.c: Likewise.
8937 * config/score/score.c: Likewise.
8938 * config/sh/sh.c: Likewise.
8939 * config/sparc/sparc.c: Likewise.
8940 * config/spu/spu.c: Likewise.
8941 * config/stormy16/stormy16.c: Likewise.
8942 * config/tilegx/tilegx.c: Likewise.
8943 * config/tilepro/tilepro.c: Likewise.
8944 * config/v850/v850.c: Likewise.
8945 * config/vax/vax.c: Likewise.
8946 * config/xtensa/xtensa.c: Likewise.
8947
8948 2014-06-02 Jeff Law <law@redhat.com>
8949
8950 PR rtl-optimization/61094
8951 * ree.c (combine_reaching_defs): Do not reextend an insn if it
8952 was marked as do_no_reextend. If a copy is needed to eliminate
8953 an extension, then mark it as do_not_reextend.
8954
8955 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
8956
8957 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
8958
8959 2014-06-02 Richard Henderson <rth@redhat.com>
8960
8961 PR target/61336
8962 * config/alpha/alpha.c (print_operand_address): Allow symbolic
8963 addresses inside asms. Use output_operand_lossage instead of
8964 gcc_unreachable.
8965
8966 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
8967
8968 PR target/61239
8969 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
8970 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
8971
8972 2014-06-02 Tom de Vries <tom@codesourcery.com>
8973
8974 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
8975 case that x has VOIDmode.
8976
8977 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
8978
8979 * varasm.c (copy_constant): Delete function.
8980 (build_constant_desc): Don't call it.
8981
8982 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8983
8984 PR target/61154
8985 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
8986 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
8987 with immediate_operand.
8988
8989 2014-06-02 Andreas Schwab <schwab@suse.de>
8990
8991 * config/ia64/ia64.c
8992 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
8993 pending_data_specs first.
8994
8995 2014-06-02 Richard Biener <rguenther@suse.de>
8996
8997 PR tree-optimization/61378
8998 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
8999 valueized_anything.
9000
9001 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
9002
9003 * config/i386/constraints.md (Bw): Rename from 'w'.
9004 (Bz): Rename from 'z'.
9005 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
9006
9007 2014-06-01 Kai Tietz <ktietz@redhat.com>
9008
9009 PR target/61377
9010 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
9011 * config/i386/i386.md (sibcall_insn_operand): Use Bs
9012 instead of m constraint.
9013
9014 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
9015
9016 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
9017 a separate alternative where the scratch operand 2 is marked as
9018 early clobber.
9019
9020 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
9021
9022 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9023 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
9024 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
9025 and __builtins_arm_get_fpscr.
9026 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
9027 __builtins_arm_get_fpscr.
9028 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
9029 __builtins_arm_ldfpscr.
9030 (arm_atomic_assign_expand_fenv): New function.
9031 * config/arm/vfp.md (set_fpscr): New pattern.
9032 (get_fpscr) : Likewise.
9033 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
9034 VUNSPEC_SET_FPSCR.
9035 * doc/extend.texi (AARCH64 Built-in Functions) : Document
9036 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
9037
9038 2014-05-30 Jakub Jelinek <jakub@redhat.com>
9039
9040 * asan.c (report_error_func): Add SLOW_P argument, use
9041 BUILT_IN_ASAN_*_N if set.
9042 (build_check_stmt): Likewise.
9043 (instrument_derefs): If T has insufficient alignment,
9044 force same handling as for odd sizes.
9045
9046 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
9047 BUILT_IN_ASAN_REPORT_STORE_N): New.
9048 * asan.c (struct asan_mem_ref): Change access_size type to
9049 HOST_WIDE_INT.
9050 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
9051 update_mem_ref_hash_table): Likewise.
9052 (asan_mem_ref_hasher::hash): Hash in a HWI.
9053 (report_error_func): Change size_in_bytes argument to HWI.
9054 Use *_N builtins if size_in_bytes is larger than 16 or not power of
9055 two.
9056 (build_shadow_mem_access): New function.
9057 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
9058 Handle size_in_bytes not power of two or larger than 16.
9059 (instrument_derefs): Don't give up if size_in_bytes is not
9060 power of two or is larger than 16.
9061
9062 2014-05-30 Kai Tietz <ktietz@redhat.com>
9063
9064 PR target/60104
9065 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
9066 for sibling-tail-calls.
9067 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
9068 to its use.
9069 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
9070 (sibcall_insn_operand): Add check for sibcall_memory_operand.
9071
9072 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9073
9074 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
9075 * config/avr/avr-tables.opt: Regenerate.
9076 * config/avr/t-multilib: Regenerate.
9077 * doc/avr-mmcu.texi: Regenerate.
9078
9079 2014-05-30 Ian Lance Taylor <iant@google.com>
9080
9081 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
9082 target("sse").
9083
9084 2014-05-30 Tom de Vries <tom@codesourcery.com>
9085
9086 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
9087 Redefine as true.
9088
9089 2014-05-30 Tom de Vries <tom@codesourcery.com>
9090
9091 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9092 * lra.c (initialize_lra_reg_info_element): Add init of
9093 actual_call_used_reg_set field.
9094 (lra): Call lra_create_live_ranges before lra_inheritance for
9095 -fuse-caller-save.
9096 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9097 -fuse-caller-save.
9098 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
9099 instead of call_used_reg_set for -fuse-caller-save.
9100 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9101
9102 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9103
9104 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9105 to mov_imm.
9106 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9107
9108 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9109
9110 * ira.c (ira_get_dup_out_num): Check for output operands at
9111 the start of the loop. Handle cases where an included alternative
9112 follows an excluded one.
9113
9114 2014-05-29 Mike Stump <mikestump@comcast.net>
9115
9116 PR debug/61352
9117 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9118 post ld passes when lto is used.
9119
9120 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9121
9122 PR rtl-optimization/61325
9123 * lra-constraints.c (process_address): Rename to process_address_1.
9124 (process_address): New function.
9125
9126 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9127
9128 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9129 TYPES_BINOPV): New static data.
9130 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9131 New builtin.
9132 * config/aarch64/aarch64-simd.md (aarch64_ext,
9133 aarch64_im_lane_boundsi): New patterns.
9134 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9135 patterns for EXT.
9136 (aarch64_evpc_ext): New function.
9137
9138 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9139
9140 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9141 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9142 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9143 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9144 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9145
9146 2014-05-29 Tom de Vries <tom@codesourcery.com>
9147
9148 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9149
9150 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9151 Richard Sandiford <rdsandiford@googlemail.com>
9152
9153 * arm/iterators.md (shiftable_ops): New code iterator.
9154 (t2_binop0, arith_shift_insn): New code attributes.
9155 * arm/predicates.md (shift_nomul_operator): New predicate.
9156 * arm/arm.md (insn_enabled): Delete.
9157 (enabled): Remove insn_enabled test.
9158 (*arith_shiftsi): Delete. Replace with ...
9159 (*<arith_shift_insn>_multsi): ... new pattern.
9160 (*<arith_shift_insn>_shiftsi): ... new pattern.
9161 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9162
9163 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9164 Tom de Vries <tom@codesourcery.com>
9165
9166 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9167 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9168 clobber.
9169 (mips_split_call): Use POST_CALL_TMP_REG.
9170 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9171
9172 2014-05-29 Tom de Vries <tom@codesourcery.com>
9173
9174 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9175 with #ifdef STACK_REGS.
9176
9177 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9178
9179 * varasm.c (get_variable_section): Walk aliases.
9180 (place_block_symbol): Walk aliases.
9181
9182 2014-05-28 Tom de Vries <tom@codesourcery.com>
9183
9184 Revert:
9185 2014-05-28 Tom de Vries <tom@codesourcery.com>
9186
9187 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9188 * lra.c (initialize_lra_reg_info_element): Add init of
9189 actual_call_used_reg_set field.
9190 (lra): Call lra_create_live_ranges before lra_inheritance for
9191 -fuse-caller-save.
9192 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9193 -fuse-caller-save.
9194 * lra-constraints.c (need_for_call_save_p): Use
9195 actual_call_used_reg_set instead of call_used_reg_set for
9196 -fuse-caller-save.
9197 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9198
9199 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9200
9201 * doc/md.texi: Document that the % constraint character must
9202 be at the beginning of the string.
9203 * genoutput.c (validate_insn_alternatives): Check that '=',
9204 '+' and '%' only appear at the beginning of a constraint.
9205 * ira.c (commutative_constraint_p): Delete.
9206 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9207 at the start of the string.
9208 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9209 duplicate '='s.
9210 * config/arm/neon.md (bicdi3_neon): Likewise.
9211 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9212 (slt_si, sltu_si): Likewise.
9213 * config/vax/vax.md (sbcdi3): Likewise.
9214 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9215 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9216 (mul64): Move '%' to beginning of constraint.
9217 * config/arm/arm.md (*xordi3_insn): Likewise.
9218 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9219 (xorsi3): Likewise.
9220
9221 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9222
9223 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9224
9225 2014-05-28 Jason Merrill <jason@redhat.com>
9226
9227 PR c++/47202
9228 * cgraph.h (symtab_node::get_comdat_group_id): New.
9229 * cgraphunit.c (analyze_functions): Call it.
9230 * symtab.c (dump_symtab_node): Likewise.
9231 * tree.c (decl_comdat_group_id): New.
9232 * tree.h: Declare it.
9233 * lto-streamer-out.c (write_symbol): Use it.
9234 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9235
9236 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9237
9238 PR bootstrap/PR61146
9239 * wide-int.cc: Do not include longlong.h when compiling with clang.
9240
9241 2014-05-28 Richard Biener <rguenther@suse.de>
9242
9243 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9244 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9245 (vrp_visit_assignment_or_call): Print less vertical space.
9246 (vrp_visit_stmt): Likewise.
9247 (vrp_visit_phi_node): Likewise. For a PHI argument with
9248 VR_VARYING range consider recording it as copy.
9249
9250 2014-05-28 Richard Biener <rguenther@suse.de>
9251
9252 Revert
9253 2014-05-28 Richard Biener <rguenther@suse.de>
9254
9255 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9256
9257 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9258
9259 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9260 sufficiently aligned and an offset is used at the same time.
9261 (expand_expr_real_1): Likewise.
9262
9263 2014-05-28 Richard Biener <rguenther@suse.de>
9264
9265 PR middle-end/61045
9266 * fold-const.c (fold_comparison): When folding
9267 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9268 the sign of the remaining constant operand stays the same.
9269
9270 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9271
9272 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9273 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9274 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9275 to the assembler.
9276 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9277 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9278 (m32bit-doubles) Likewise.
9279 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9280 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9281 option for RL78.
9282
9283 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9284
9285 * configure.ac ($gcc_cv_ld_clearcap): New test.
9286 * configure: Regenerate.
9287 * config.in: Regenerate.
9288 * config/sol2.opt (mclear-hwcap): New option.
9289 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9290 * config/sol2-clearcap.map: Moved here from
9291 testsuite/gcc.target/i386/clearcap.map.
9292 * config/sol2-clearcapv2.map: Move here from
9293 gcc.target/i386/clearcapv2.map.
9294 * config/t-sol2 (install): Depend on install-clearcap-map.
9295 (install-clearcap-map): New target.
9296 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9297 -mclear-hwcap.
9298
9299 2014-05-28 Richard Biener <rguenther@suse.de>
9300
9301 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9302 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9303 ... here and remove the rest.
9304 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9305
9306 2014-05-28 Richard Biener <rguenther@suse.de>
9307
9308 PR tree-optimization/61335
9309 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9310 new range fails, drop to varying.
9311
9312 2014-05-28 Olivier Hainque <hainque@adacore.com>
9313
9314 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9315 (CPP_SPEC): Add entry for -mcpu=8548.
9316 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9317 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9318
9319 2014-05-28 Tom de Vries <tom@codesourcery.com>
9320
9321 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9322 * lra.c (initialize_lra_reg_info_element): Add init of
9323 actual_call_used_reg_set field.
9324 (lra): Call lra_create_live_ranges before lra_inheritance for
9325 -fuse-caller-save.
9326 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9327 -fuse-caller-save.
9328 * lra-constraints.c (need_for_call_save_p): Use
9329 actual_call_used_reg_set instead of call_used_reg_set for
9330 -fuse-caller-save.
9331 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9332
9333 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9334 Tom de Vries <tom@codesourcery.com>
9335
9336 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9337 to gccoptlist.
9338 (@item -fuse-caller-save): New item.
9339
9340 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9341 Tom de Vries <tom@codesourcery.com>
9342
9343 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9344 OPT_fuse_caller_save.
9345
9346 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9347 Tom de Vries <tom@codesourcery.com>
9348
9349 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9350 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9351 get_call_reg_set_usage.
9352 * resource.c (mark_set_resources, mark_target_live_regs): Use
9353 get_call_reg_set_usage.
9354 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9355 field.
9356 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9357 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9358 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9359 * ira-build.c (ira_create_allocno): Init
9360 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9361 (create_cap_allocno, propagate_allocno_info)
9362 (propagate_some_info_from_allocno)
9363 (copy_info_to_removed_store_destinations): Handle
9364 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9365 * ira-costs.c (ira_tune_allocno_costs): Use
9366 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9367
9368 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9369 Tom de Vries <tom@codesourcery.com>
9370
9371 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9372 and function_used_regs_valid fields.
9373 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9374 find_all_hard_reg_sets.
9375 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9376 (get_call_reg_set_usage): New function.
9377 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9378 * regs.h (get_call_reg_set_usage): Declare.
9379
9380 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9381
9382 PR libgcc/61152
9383 * config/dbx.h (License): Add Runtime Library Exception.
9384 * config/newlib-stdint.h (License): Same.
9385 * config/rtems.h (License): Same
9386 * config/initfini-array.h (License): Same
9387 * config/v850/v850.h (License): Same.
9388 * config/v850/v850-opts.h (License): Same
9389 * config/v850/rtems.h (License): Same.
9390
9391 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9392
9393 PR target/61044
9394 * doc/extend.texi (Local Labels): Note that label differences are
9395 not supported for AVR.
9396
9397 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9398 Olivier Hainque <hainque@adacore.com>
9399
9400 * rtl.h (set_for_reg_notes): Declare.
9401 * emit-rtl.c (set_for_reg_notes): New function.
9402 (set_unique_reg_note): Use it.
9403 * optabs.c (add_equal_note): Likewise
9404
9405 2014-05-27 Andrew Pinski <apinski@cavium.com>
9406
9407 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9408 Use <w> for the register in assembly template.
9409 (stack_protect_test): Use the mode of operands[0] for the result.
9410 (stack_protect_test_<mode>): Use <w> for the register
9411 in assembly template.
9412
9413 2014-05-27 DJ Delorie <dj@redhat.com>
9414
9415 * config/rx/rx.c (add_vector_labels): New.
9416 (rx_output_function_prologue): Call it.
9417 (rx_handle_func_attribute): Don't require empty arguments.
9418 (rx_handle_vector_attribute): New.
9419 (rx_attribute_table): Add "vector" attribute.
9420 * doc/extend.texi (interrupt, vector): Document new/changed
9421 RX-specific attributes.
9422
9423 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9424
9425 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9426
9427 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9428 predicate to detect a negative quotient.
9429
9430 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9431
9432 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9433 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9434 Add X - Y CMP 0 to X CMP Y transformation.
9435 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9436
9437 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9438
9439 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9440 before printing.
9441
9442 2014-05-27 Steve Ellcey <sellcey@mips.com>
9443
9444 * config/mips/mips.c: Add include of cgraph.h.
9445
9446 2014-05-27 Richard Biener <rguenther@suse.de>
9447
9448 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9449
9450 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9451
9452 PR libgcc/61152
9453 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9454 * config/arm/arm-cores.def (License): Same.
9455 * config/arm/arm-opts.h (License): Same.
9456 * config/arm/aout.h (License): Same.
9457 * config/arm/bpabi.h (License): Same.
9458 * config/arm/elf.h (License): Same.
9459 * config/arm/linux-elf.h (License): Same.
9460 * config/arm/linux-gas.h (License): Same.
9461 * config/arm/netbsd-elf.h (License): Same.
9462 * config/arm/uclinux-eabi.h (License): Same.
9463 * config/arm/uclinux-elf.h (License): Same.
9464 * config/arm/vxworks.h (License): Same.
9465
9466 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9467
9468 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9469 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9470 (arm_init_neon_builtins): Handle NEON_BSWAP.
9471 Define required type nodes.
9472 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9473 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9474 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9475 * config/arm/iterators.md (VDQHSD): New mode iterator.
9476
9477 2014-05-27 Richard Biener <rguenther@suse.de>
9478
9479 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9480 Try using literal operands when comparing value-ranges failed.
9481
9482 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9483
9484 * ira.c (commutative_operand): Adjust for change to recog_data.
9485 [Missing from previous commit.]
9486
9487 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9488
9489 * system.h (TEST_BIT): New macro.
9490 * recog.h (alternative_mask): New type.
9491 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9492 (recog_data_d): Replace alternative_enabled_p array with
9493 enabled_alternatives.
9494 (target_recog): New structure.
9495 (default_target_recog, this_target_recog): Declare.
9496 (get_enabled_alternatives, recog_init): Likewise.
9497 * recog.c (default_target_recog, this_target_recog): New variables.
9498 (get_enabled_alternatives): New function.
9499 (extract_insn): Use it.
9500 (recog_init): New function.
9501 (preprocess_constraints, constrain_operands): Adjust for change to
9502 recog_data.
9503 * postreload.c (reload_cse_simplify_operands): Likewise.
9504 * reload.c (find_reloads): Likewise.
9505 * ira-costs.c (record_reg_classes): Likewise.
9506 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9507 all alternatives after a disabled one would be skipped.
9508 (ira_implicitly_set_insn_hard_regs): Likewise.
9509 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9510 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9511 with enabled_alternatives.
9512 * lra.c (free_insn_recog_data): Update accordingly.
9513 (lra_update_insn_recog_data): Likewise.
9514 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9515 * lra-constraints.c (process_alt_operands): Likewise. Handle
9516 only_alternative as part of the enabled mask.
9517 * target-globals.h (this_target_recog): Declare.
9518 (target_globals): Add a recog field.
9519 (restore_target_globals): Restore this_target_recog.
9520 * target-globals.c: Include recog.h.
9521 (default_target_globals): Initialize recog field.
9522 (save_target_globals): Likewise.
9523 * reginfo.c (reinit_regs): Call recog_init.
9524 * toplev.c (backend_init_target): Likewise.
9525
9526 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9527
9528 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9529 rather than any named insn's code.
9530
9531 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9532
9533 PR libgcc/61152
9534 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9535 * config/arm/arm-cores.def (License): Same.
9536
9537 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9538
9539 * tree.h (decl_comdat_group): Declare.
9540 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9541 * tree.c (decl_comdat_group): Here.
9542
9543 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9544
9545 PR rtl-optimization/61222
9546 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9547 the shift, truncate the PLUS operand to the result mode.
9548
9549 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9550
9551 PR target/61271
9552 * config/i386/i386.c (ix86_rtx_costs)
9553 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9554 Fix condition.
9555
9556 2014-05-26 Martin Jambor <mjambor@suse.cz>
9557
9558 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9559 subreg uses.
9560
9561 2014-05-26 Richard Biener <rguenther@suse.de>
9562
9563 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9564 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9565 Provide specializations.
9566 (wi::int_traits <HOST_WIDE_INT>,
9567 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9568
9569 2014-05-26 Alan Modra <amodra@gmail.com>
9570
9571 PR target/61098
9572 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9573 params and return a bool. Remove dead code. Update comment.
9574 Assert we have a const_int source. Remove bogus code from
9575 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9576 handling of constants > 2G and reg_equal note, from..
9577 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9578 return value. Update comment. If we can, use a new pseudo
9579 for intermediate calculations.
9580 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9581 prototype.
9582 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9583 call to rs6000_emit_set_const in splitter.
9584 (movdi_internal64+2, +3): Likewise.
9585
9586 2014-05-26 Richard Biener <rguenther@suse.de>
9587
9588 * system.h: Define __STDC_FORMAT_MACROS before
9589 including inttypes.h.
9590 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9591 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9592 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9593 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9594 HOST_WIDEST_INT_C): Remove.
9595 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9596 if C99 inttypes.h is not available.
9597 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9598 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9599 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9600 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9601 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9602 (struct output_info): Likewise.
9603 (print_statistics): Adjust.
9604 (dump_bitmap_statistics): Likewise.
9605 * bt-load.c (migrate_btr_defs): Print with PRId64.
9606 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9607 (MAX_SAFE_MULTIPLIER): Adjust.
9608 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9609 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9610 dump_cgraph_node): Likewise.
9611 * final.c (dump_basic_block_info): Likewise.
9612 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9613 * gcov.c (format_gcov): Likewise.
9614 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9615 for calculation.
9616 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9617 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9618 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9619 Use PRId64 for dumping.
9620 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9621 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9622 (add_allocno_hard_regs): Adjust.
9623 * loop-doloop.c (doloop_modify): Print using PRId64.
9624 * loop-iv.c (inverse): Compute in uint64_t.
9625 (determine_max_iter, iv_number_of_iterations): Likewise.
9626 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9627 Print using PRId64.
9628 * lto-streamer-out.c (write_symbol): Use uint64_t.
9629 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9630 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9631 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9632 * modulo-sched.c (const_iteration_count): Use int64_t.
9633 (sms_schedule): Dump using PRId64.
9634 * predict.c (dump_prediction): Likewise.
9635 * pretty-print.h (pp_widest_integer): Remove.
9636 * profile.c (get_working_sets, is_edge_inconsistent,
9637 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9638 * tree-pretty-print.c (pp_double_int): Remove case handling
9639 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9640 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9641 and adjust users.
9642 (pass_optimize_bswap::execute): Remove restriction on hosts.
9643 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9644 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9645 * tree.c (widest_int_cst_value): Remove.
9646 * tree.h (widest_int_cst_value): Likewise.
9647 * value-prof.c (dump_histogram_value): Print using PRId64.
9648 * gengtype.c (main): Also inject int64_t.
9649 * ggc-page.c (struct max_alignment): Use int64_t.
9650 * alloc-pool.c (struct allocation_object_def): Likewise.
9651 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9652 for computation.
9653 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9654 * doc/tm.texi: Regenerated.
9655 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9656 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9657 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9658 mmix_output_register_setting): Use [u]int64_t in prototypes.
9659 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9660 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9661 mmix_output_octa, mmix_output_shifted_value): Adjust.
9662 (mmix_intval): Adjust. Remove unreachable case.
9663 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9664
9665 2014-05-26 Richard Biener <rguenther@suse.de>
9666
9667 * configure.ac: Drop __int64 type check. Insist that we
9668 found uint64_t and int64_t.
9669 * hwint.h (HOST_BITS_PER___INT64): Remove.
9670 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9671 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9672 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9673 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9674 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9675 for dst_q_src_df_rms_cdt.
9676 * configure: Regenerate.
9677 * config.in: Likewise.
9678
9679 2014-05-26 Michael Tautschnig <mt@debian.org>
9680
9681 PR target/61249
9682 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9683 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9684
9685 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9686
9687 PR rtl-optimization/61278
9688 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9689
9690 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9691
9692 PR rtl-optimization/61220
9693 Part of PR rtl-optimization/61225
9694 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9695 insn; skip split_edge for a block with only one successor.
9696
9697 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9698
9699 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
9700 for variables.
9701
9702 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9703
9704 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
9705 (update_vtable_references): New function.
9706 (function_and_variable_visibility): Rewrite also vtable initializers.
9707 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
9708
9709 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9710
9711 * ggc.h (ggc_grow): New function.
9712 * ggc-none.c (ggc_grow): New function.
9713 * ggc-page.c (ggc_grow): Likewise.
9714
9715 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9716
9717 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
9718 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
9719 comdat_can_be_unshared_p, cgraph_externally_visible_p,
9720 varpool_externally_visible_p, can_replace_by_local_alias,
9721 update_visibility_by_resolution_info, function_and_variable_visibility,
9722 pass_data_ipa_function_and_variable_visibility,
9723 make_pass_ipa_function_and_variable_visibility,
9724 whole_program_function_and_variable_visibility,
9725 pass_data_ipa_whole_program_visibility,
9726 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
9727 * cgraph.h (cgraph_local_node_p): Declare.
9728 * ipa-visibility.c: New file.
9729 * Makefile.in (OBJS): Add ipa-visiblity.o
9730
9731 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9732
9733 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
9734 that var decl is available.
9735
9736 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9737
9738 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
9739 symtab_node pointer.
9740 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
9741 (find_decls_types_r): Do not walk COMDAT_GROUP.
9742 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
9743 * varasm.c (make_decl_one_only): Use set_comdat_group;
9744 create node if needed.
9745 * ipa-inline-transform.c (save_inline_function_body): Update
9746 way we decl->symtab mapping.
9747 * symtab.c (symtab_hash, hash_node, eq_node
9748 symtab_insert_node_to_hashtable): Remove.
9749 (symtab_register_node): Update.
9750 (symtab_unregister_node): Update.
9751 (symtab_get_node): Reimplement as inline function.
9752 (symtab_add_to_same_comdat_group): Update.
9753 (symtab_dissolve_same_comdat_group_list): Update.
9754 (dump_symtab_base): Update.
9755 (verify_symtab_base): Update.
9756 (symtab_make_decl_local): Update.
9757 (fixup_same_cpp_alias_visibility): Update.
9758 (symtab_nonoverwritable_alias): Update.
9759 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
9760 * ipa.c (update_visibility_by_resolution_info): UPdate.
9761 * bb-reorder.c: Include cgraph.h
9762 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
9763 with comdat groups.
9764 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
9765 * cgraph.c (cgraph_get_create_node): Update.
9766 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
9767 and comdat_group_.
9768 (symtab_get_node): Make inline.
9769 (symtab_insert_node_to_hashtable): Remove.
9770 (symtab_can_be_discarded): Update.
9771 (decl_comdat_group): New function.
9772 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
9773 Update.
9774 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
9775 comdat group name.
9776 (read_comdat_group): New function.
9777 (input_node, input_varpool_node): Use it.
9778 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
9779 comdat groups.
9780 * mips.c (mips_start_unique_function): Likewise.
9781 (ix86_code_end): Likewise.
9782 (rs6000_code_end): Likweise.
9783 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
9784
9785 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9786
9787 * gengtype-state.c (fatal_reading_state): Bring offline.
9788 * optabs.c (widening_optab_handler): Bring offline.
9789 * optabs.h (widening_optab_handler): Likewise.
9790 * final.c (get_attr_length_1): Likewise.
9791
9792 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9793
9794 * sched-int.h (sd_iterator_cond): Manually tail recurse.
9795
9796 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9797
9798 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
9799 (ppc440-compare): Include shift with dot.
9800 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
9801 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
9802 without dot.
9803 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
9804 without dot.
9805 (e6500_sfx2): Include it.
9806 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
9807 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9808 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
9809 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
9810 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
9811 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
9812 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
9813 *lshiftrt_internal1le, *lshiftrt_internal1be,
9814 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
9815 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
9816 *rotldi3_internal10le, *rotldi3_internal10be,
9817 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
9818 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
9819 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
9820 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
9821 define_insns): Use type "shift" in the appropriate alternatives.
9822
9823 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9824
9825 * config/rs6000/rs6000.md (type): Add "logical". Delete
9826 "fast_compare".
9827 (dot): Adjust comment.
9828 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
9829 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
9830 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
9831 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
9832 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
9833 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
9834 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
9835 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9836
9837 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9838 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9839 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9840 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9841 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9842 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9843 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9844 * config/rs6000/8540.md (ppc8540_su): Adjust.
9845 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9846 cell-cmp-microcoded): Adjust.
9847 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9848 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9849 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9850 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9851 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9852 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9853 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9854 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9855 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9856 Adjust.
9857 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9858 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
9859 Adjust. Adjust comment.
9860 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9861 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9862
9863 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9864
9865 * config/rs6000/rs6000.md (type): Add "add".
9866 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
9867 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
9868 define_insns): Use it.
9869 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9870
9871 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9872 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9873 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9874 * config/rs6000/601.md (ppc601-integer): Adjust.
9875 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9876 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9877 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9878 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9879 * config/rs6000/8540.md (ppc8540_su): Adjust.
9880 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9881 cell-cmp-microcoded): Adjust.
9882 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9883 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9884 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9885 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9886 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9887 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9888 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9889 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9890 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9891 Adjust.
9892 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9893 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
9894 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9895 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9896
9897 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9898
9899 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
9900 "delayed_compare", "var_delayed_compare".
9901 (var_shift): New attribute.
9902 (cell_micro): Adjust.
9903 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
9904 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
9905 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
9906 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9907 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9908 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9909 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9910 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
9911 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
9912 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9913 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
9914 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
9915 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
9916 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
9917 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
9918 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
9919 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
9920 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
9921 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
9922 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
9923 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
9924 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
9925 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
9926 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9927 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9928
9929 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9930 * config/rs6000/440.md (ppc440-integer): Adjust.
9931 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9932 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
9933 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9934 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9935 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9936 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9937 * config/rs6000/8540.md (ppc8540_su): Adjust.
9938 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9939 cell-cmp-microcoded): Adjust.
9940 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
9941 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9942 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
9943 e500mc64_delayed): Adjust.
9944 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
9945 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
9946 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9947 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
9948 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
9949 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
9950 power6-delayed-compare, power6-var-delayed-compare): Adjust.
9951 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
9952 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
9953 Adjust comment.
9954 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9955 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9956
9957 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9958
9959 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
9960 (bits): New mode_attr.
9961 (idiv_ldiv): Delete mode_attr.
9962 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
9963 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9964 rs6000_adjust_priority, is_nonpipeline_insn,
9965 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9966
9967 * config/rs6000/40x.md (ppc403-idiv): Adjust.
9968 * config/rs6000/440.md (ppc440-idiv): Adjust.
9969 * config/rs6000/476.md (ppc476-idiv): Adjust.
9970 * config/rs6000/601.md (ppc601-idiv): Adjust.
9971 * config/rs6000/603.md (ppc603-idiv): Adjust.
9972 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
9973 ppc620-ldiv): Adjust.
9974 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
9975 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
9976 * config/rs6000/8540.md (ppc8540_divide): Adjust.
9977 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
9978 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
9979 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
9980 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
9981 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
9982 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
9983 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
9984 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
9985 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
9986 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
9987 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
9988 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
9989 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
9990 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
9991 * config/rs6000/titan.md (titan_fxu_div): Adjust.
9992
9993 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9994
9995 * config/rs6000/rs6000.md (type): Delete "insert_word",
9996 "insert_dword". Add "insert".
9997 (size): Update comment.
9998 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9999 insn_must_be_first_in_group): Adjust.
10000 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10001 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10002 *insvsi_internal6, insvdi_internal): Adjust.
10003
10004 * config/rs6000/40x.md (ppc403-integer): Adjust.
10005 * config/rs6000/440.md (ppc440-integer): Adjust.
10006 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
10007 * config/rs6000/601.md (ppc601-integer): Adjust.
10008 * config/rs6000/603.md (ppc603-integer): Adjust.
10009 * config/rs6000/6xx.md (ppc604-integer): Adjust.
10010 * config/rs6000/7450.md (ppc7450-integer): Adjust.
10011 * config/rs6000/7xx.md (ppc750-integer): Adjust.
10012 * config/rs6000/8540.md (ppc8540_su): Adjust.
10013 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
10014 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
10015 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10016 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
10017 * config/rs6000/e5500.md (e5500_sfx): Adjust.
10018 * config/rs6000/e6500.md (e6500_sfx): Adjust.
10019 * config/rs6000/mpc.md (mpccore-integer): Adjust.
10020 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
10021 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
10022 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
10023 * config/rs6000/power7.md (power7-integer): Adjust.
10024 * config/rs6000/power8.md (power8-1cyc): Adjust.
10025 * config/rs6000/rs64.md (rs64a-integer): Adjust.
10026 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10027
10028 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10029
10030 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
10031 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
10032 (size): New attribute.
10033 (dot): New attribute.
10034 (cell_micro): Adjust.
10035 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
10036 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
10037 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
10038 umuldi3_highpart): Adjust.
10039 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10040 rs6000_adjust_priority, is_nonpipeline_insn,
10041 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10042
10043 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
10044 ppc405-imul3): Adjust.
10045 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
10046 * config/rs6000/476.md (ppc476-imul): Adjust.
10047 * config/rs6000/601.md (ppc601-imul): Adjust.
10048 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
10049 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
10050 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
10051 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
10052 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
10053 Adjust.
10054 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
10055 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
10056 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
10057 cell-imul): Adjust.
10058 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
10059 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
10060 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
10061 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
10062 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
10063 * config/rs6000/mpc.md (mpccore-imul): Adjust.
10064 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
10065 power4-lmul, power4-imul, power4-imul3): Adjust.
10066 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
10067 power5-lmul, power5-imul, power5-imul3): Adjust.
10068 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
10069 power6-lmul, power6-imul, power6-imul3): Adjust.
10070 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
10071 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
10072
10073 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
10074 rs64a-lmul): Adjust.
10075 * config/rs6000/titan.md (titan_imul): Adjust.
10076
10077 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10078
10079 * config/rs6000/rs6000.md (type): Add new value "halfmul".
10080 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
10081 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
10082 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
10083 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
10084 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
10085 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
10086 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
10087 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
10088 * config/rs6000/titan.md: Delete nonsensical comment.
10089 (titan_imul): Add type imul3.
10090 (titan_mulhw): Remove type imul3; add type halfmul.
10091
10092 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10093
10094 * config/rs6000/rs6000.md (type): Reorder, reformat.
10095
10096 2014-05-23 Martin Jambor <mjambor@suse.cz>
10097
10098 PR tree-optimization/53787
10099 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
10100 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
10101 analysis_done, update all uses.
10102 * ipa-prop.c: Include domwalk.h
10103 (param_analysis_info): Removed.
10104 (param_aa_status): New type.
10105 (ipa_bb_info): Likewise.
10106 (func_body_info): Likewise.
10107 (ipa_get_bb_info): New function.
10108 (aa_overwalked): Likewise.
10109 (find_dominating_aa_status): Likewise.
10110 (parm_bb_aa_status_for_bb): Likewise.
10111 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10112 (load_from_unmodified_param): Accept func_body_info as a parameter
10113 instead of parms_ainfo.
10114 (parm_ref_data_preserved_p): Changed to use new param AA info.
10115 (parm_ref_data_pass_through_p): Likewise.
10116 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10117 (compute_complex_assign_jump_func): Changed to use new param AA info.
10118 (compute_complex_ancestor_jump_func): Likewise.
10119 (ipa_compute_jump_functions_for_edge): Likewise.
10120 (ipa_compute_jump_functions): Removed.
10121 (ipa_compute_jump_functions_for_bb): New function.
10122 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10123 declarations down.
10124 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10125 and info, moved variable declarations down.
10126 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10127 node and info.
10128 (ipa_analyze_stmt_uses): Likewise.
10129 (ipa_analyze_params_uses): Removed.
10130 (ipa_analyze_params_uses_in_bb): New function.
10131 (ipa_analyze_controlled_uses): Likewise.
10132 (free_ipa_bb_info): Likewise.
10133 (analysis_dom_walker): New class.
10134 (ipa_analyze_node): Handle node-specific forbidden analysis,
10135 initialize and free func_body_info, use dominator walker.
10136 (ipcp_modif_dom_walker): New class.
10137 (ipcp_transform_function): Create and free func_body_info, use
10138 ipcp_modif_dom_walker, moved a lot of functionality there.
10139
10140 2014-05-23 Marek Polacek <polacek@redhat.com>
10141 Jakub Jelinek <jakub@redhat.com>
10142
10143 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10144 * gcc.c (sanitize_spec_function): Likewise.
10145 * convert.c (convert_to_integer): Include "ubsan.h". Add
10146 floating-point to integer instrumentation.
10147 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10148 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10149 SANITIZE_NONDEFAULT.
10150 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10151 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10152 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10153 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10154 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10155 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10156 float/double/long double.
10157 (ubsan_instrument_float_cast): New function.
10158 * ubsan.h (ubsan_instrument_float_cast): Declare.
10159
10160 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10161
10162 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10163 predicate.
10164 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10165 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10166 Adjust for tailcalling through registers.
10167 * config/aarch64/aarch64.h (enum reg_class): New caller save
10168 register class.
10169 (REG_CLASS_NAMES): Likewise.
10170 (REG_CLASS_CONTENTS): Likewise.
10171 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10172 Allow tailcalling without decls.
10173
10174 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10175
10176 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10177 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10178
10179 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10180 gsi, and variables v_* to v*.
10181
10182 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10183
10184 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10185
10186 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10187
10188 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10189 * omp-low.c: Update accordingly.
10190
10191 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10192 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10193 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10194 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10195 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10196 GF_OMP_TARGET_KIND_UPDATE.
10197
10198 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10199 Explicitly enumerate the expected region types.
10200
10201 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10202
10203 PR other/56955
10204 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10205 documentation; the old documentation didn't clearly state the
10206 constraints on the contents of the pointed-to storage.
10207
10208 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10209
10210 Fix bootstrap error on ia64
10211 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10212 Return default value.
10213
10214 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10215
10216 PR tree-optimization/54733
10217 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10218 (CMPNOP): Define.
10219 (find_bswap_or_nop_load): New.
10220 (find_bswap_1): Renamed to ...
10221 (find_bswap_or_nop_1): This. Also add support for memory source.
10222 (find_bswap): Renamed to ...
10223 (find_bswap_or_nop): This. Also add support for memory source and
10224 detection of bitwise operations equivalent to load in target
10225 endianness.
10226 (execute_optimize_bswap): Likewise. Also move its leading comment back
10227 in place and split statement transformation into ...
10228 (bswap_replace): This.
10229
10230 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10231
10232 PR rtl-optimization/61215
10233 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10234 simplify_gen_subreg until final substitution.
10235
10236 2014-05-23 Alan Modra <amodra@gmail.com>
10237
10238 PR target/61231
10239 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10240 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10241 Use "Y" constraint rather than "m".
10242
10243 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10244
10245 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10246 define.
10247 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10248 New function declaration.
10249 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10250 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10251 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10252 (aarch64_init_builtins) : Initialize builtins
10253 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10254 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10255 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10256 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10257 and __builtins_aarch64_set_fpsr.
10258 (aarch64_atomic_assign_expand_fenv): New function.
10259 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10260 (get_fpcr) : Likewise.
10261 (set_fpsr) : Likewise.
10262 (get_fpsr) : Likewise.
10263 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10264 and UNSPECV_SET_FPSR.
10265 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10266 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10267 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10268
10269 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10270
10271 PR rtl-optimization/60969
10272 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10273 constraints. Set up mem cost for NO_REGS case.
10274
10275 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10276
10277 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10278
10279 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10280
10281 * config/darwin.c: Include "lto-section-names.h".
10282 (LTO_SEGMENT_NAME): Don't define.
10283 * config/i386/winnt.c: Include "lto-section-names.h".
10284 * lto-streamer.c: Include "lto-section-names.h".
10285 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10286 * lto-wrapper.c: Include "lto-section-names.h".
10287 (LTO_SECTION_NAME_PREFIX): Don't define.
10288 * lto-section-names.h: New file.
10289 * cgraphunit.c: Include "lto-section-names.h".
10290
10291 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10292
10293 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10294
10295 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10296
10297 PR target/61208
10298 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10299
10300 2014-05-22 Nick Clifton <nickc@redhat.com>
10301
10302 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10303
10304 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10305
10306 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10307 -> (T)A transformation to integer types.
10308
10309 2014-05-22 Teresa Johnson <tejohnson@google.com>
10310
10311 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10312 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10313 (gcov_rewrite): Use gcov_nonruntime_assert.
10314 (gcov_open): Ditto.
10315 (gcov_write_words): Ditto.
10316 (gcov_write_length): Ditto.
10317 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10318 gcc_assert from IN_LIBGCOV code.
10319 (gcov_read_summary): Use gcov_error to flag profile corruption.
10320 (gcov_sync): Use gcov_nonruntime_assert.
10321 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10322 (gcov_histo_index): Use gcov_nonruntime_assert.
10323 (static void gcov_histogram_merge): Ditto.
10324 (compute_working_sets): Ditto.
10325 * gcov-io.h (gcov_nonruntime_assert): Define.
10326 (gcov_error): Define for !IN_LIBGCOV
10327
10328 2014-05-22 Richard Biener <rguenther@suse.de>
10329
10330 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10331 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10332 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10333 and deallocation site.
10334 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10335 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10336 passing through the incoming points-to set.
10337 (handle_lhs_call): Use flags argument instead of recomputing it.
10338 (find_func_aliases_for_call): Call handle_lhs_call with proper
10339 call return flags.
10340
10341 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10342
10343 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10344 all padding bits in REAL_VALUE_TYPE are cleared.
10345
10346 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10347
10348 Cleanup and improve multipass_dfa_lookahead_guard
10349 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10350 (core2i7_first_cycle_multipass_begin,)
10351 (core2i7_first_cycle_multipass_issue,)
10352 (core2i7_first_cycle_multipass_backtrack): Update signature.
10353 * config/ia64/ia64.c
10354 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10355 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10356 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10357 hook definition.
10358 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10359 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10360 values.
10361 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10362 return values.
10363 * doc/tm.texi: Regenerate.
10364 * doc/tm.texi.in
10365 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10366 * haifa-sched.c (ready_try): Make signed to allow negative values.
10367 (rebug_ready_list_1): Update.
10368 (choose_ready): Simplify.
10369 (sched_extend_ready_list): Update.
10370
10371 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10372
10373 Remove IA64 speculation tweaking flags
10374 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10375 speculation tuning flags.
10376 (msched-prefer-non-data-spec-insns,)
10377 (msched-prefer-non-control-spec-insns): Obsolete options.
10378 * haifa-sched.c (choose_ready): Remove handling of
10379 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10380 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10381 and PREFER_NON_DATA_SPEC.
10382 * sel-sched.c (process_spec_exprs): Remove handling of
10383 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10384
10385 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10386
10387 Improve scheduling debug output
10388 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10389 (advance_one_cycle): Update.
10390 (schedule_insn, queue_to_ready): Add debug printouts.
10391 (debug_ready_list_1): New static function.
10392 (debug_ready_list): Update.
10393 (max_issue): Add debug printouts.
10394 (dump_insn_stream): New static function.
10395 (schedule_block): Use it. Also better indent printouts.
10396
10397 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10398
10399 Fix sched_insn debug counter
10400 * haifa-sched.c (schedule_insn): Update.
10401 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10402 (save_backtrack_point, restore_backtrack_point): Update.
10403 (first_nonscheduled_insn): New static function.
10404 (queue_to_ready, choose_ready): Use it.
10405 (schedule_block): Init nonscheduled_insns_begin.
10406 (sched_emit_insn): Update.
10407
10408
10409 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10410
10411 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10412 to GENERAL_REGS.
10413 (aarch64_secondary_reload) : LikeWise.
10414 (aarch64_class_max_nregs) : Remove CORE_REGS.
10415 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10416 (REG_CLASS_NAMES) : Likewise.
10417 (REG_CLASS_CONTENTS) : LikeWise.
10418 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10419
10420 2014-05-21 Guozhi Wei <carrot@google.com>
10421
10422 PR target/61202
10423 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10424 constraint.
10425 (vqdmulhq_n_s16): Likewise.
10426
10427 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10428
10429 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10430
10431 2014-05-21 Marek Polacek <polacek@redhat.com>
10432
10433 PR sanitizer/61272
10434 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10435
10436 2014-05-21 Martin Jambor <mjambor@suse.cz>
10437
10438 * doc/invoke.texi (Optimize Options): Document parameters
10439 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10440 ipa-cp-array-index-hint-bonus.
10441
10442 2014-05-21 Mark Wielaard <mjw@redhat.com>
10443
10444 PR debug/16063
10445 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10446 version >= 3 or not strict DWARF.
10447 * langhooks.h (struct lang_hooks_for_types): Add
10448 enum_underlying_base_type.
10449 * langhooks.c (lhd_enum_underlying_base_type): New function.
10450 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10451 enum_underlying_base_type.
10452 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10453 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10454 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10455
10456 2014-05-21 Richard Biener <rguenther@suse.de>
10457
10458 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10459
10460 2014-05-21 John Marino <gnugcc@marino.st>
10461
10462 * config.gcc (*-*-dragonfly*): New target.
10463 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10464 * configure: Regenerate.
10465 * config/dragonfly-stdint.h: New.
10466 * config/dragonfly.h: New.
10467 * config/dragonfly.opt: New.
10468 * config/i386/dragonfly.h: New.
10469 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10470
10471 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10472
10473 * tree.def (VOID_CST): New.
10474 * tree-core.h (TI_VOID): New.
10475 * tree.h (void_node): New.
10476 * tree.c (tree_node_structure_for_code, tree_code_size)
10477 (iterative_hash_expr): Handle VOID_CST.
10478 (build_common_tree_nodes): Initialize void_node.
10479
10480 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10481
10482 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10483 functions.
10484 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10485
10486 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10487 more places.
10488
10489 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10490 flag_reorder_blocks_and_partition.
10491 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10492
10493 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10494
10495 PR target/54236
10496 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10497 constraints.
10498 (*addc_r_t): Add new insn_and_split.
10499
10500 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10501
10502 PR middle-end/61252
10503 * omp-low.c (handle_simd_reference): New function.
10504 (lower_rec_input_clauses): Use it. Defer adding reference
10505 initialization even for reduction without placeholder if in simd,
10506 handle it properly later on.
10507
10508 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10509
10510 PR tree-optimization/60899
10511 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10512 assume all static symbols will have definition wile parsing and
10513 check the do have definition later in compilation; check that
10514 variable referring symbol will be output before concluding that
10515 reference is safe; be conservative for referring local statics;
10516 be more precise about when comdat is output in other partition.
10517
10518 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10519
10520 PR bootstrap/60984
10521 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10522 parameter.
10523 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10524 (ipa_inline): Loop inline_to_all_callers until no more aliases
10525 are removed.
10526
10527 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10528
10529 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10530 set writeonly flag only for vars actually written to.
10531
10532 2014-05-20 Dehao Chen <dehao@google.com>
10533
10534 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10535 and callee count to get clone count.
10536 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10537 count in copy_body.
10538
10539 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10540
10541 PR rtl-optimization/61243
10542 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10543
10544 2014-05-20 Xinliang David Li <davidxl@google.com>
10545
10546 * cgraphunit.c (walk_polymorphic_call_targets): Add
10547 dbgcnt and fopt-info support.
10548 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10549 * ipa-devirt.c (ipa_devirt): Ditto.
10550 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10551 * ipa.c (walk_polymorphic_call_targets): Ditto.
10552 * gimple-fold.c (fold_gimple_assign): Ditto.
10553 (gimple_fold_call): Ditto.
10554 * dbgcnt.def: New counter.
10555
10556 2014-05-20 DJ Delorie <dj@redhat.com>
10557
10558 * config/msp430/msp430.md (split): Don't allow subregs when
10559 splitting SImode adds.
10560 (andneghi): Fix subtraction logic.
10561 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10562
10563 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10564
10565 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10566 symbols.
10567 * except.c (switch_to_exception_section, resolve_unique_section,
10568 get_named_text_section, default_function_rodata_section,
10569 align_variable, get_block_for_decl, default_section_type_flags):
10570 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10571 * symtab.c (symtab_add_to_same_comdat_group,
10572 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10573 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10574 Likewise.
10575 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10576 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10577 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10578 (c6x_function_in_section_p): Likewise.
10579 * config/darwin.c (machopic_select_section): Likewise.
10580 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10581 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10582 * config/mep/mep.c (mep_select_section): LIkewise.
10583 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10584
10585 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10586
10587 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10588 EH region of calls to pure functions that can throw an exception.
10589 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10590 (copy_reference_ops_from_call): Also copy the EH region of the call if
10591 it can throw an exception.
10592
10593 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10594
10595 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10596 nested VEC_SELECTs that are inverses of each other.
10597
10598 2014-05-20 Richard Biener <rguenther@suse.de>
10599
10600 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10601 (extract_and_process_scc_for_name): not here.
10602 (cond_dom_walker::before_dom_children): Only process
10603 stmts that end the BB in interesting ways.
10604 (run_scc_vn): Mark param uses as visited.
10605
10606 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10607
10608 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10609 arm_restrict_it.
10610
10611 2014-05-20 Nick Clifton <nickc@redhat.com>
10612
10613 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10614 (msp430_gimplify_va_arg_expr): New function.
10615 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10616
10617 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10618 operand 0 in order to prevent confusion about the number of
10619 registers involved.
10620
10621 2014-05-20 Richard Biener <rguenther@suse.de>
10622
10623 PR tree-optimization/61221
10624 * tree-ssa-pre.c (el_to_update): Remove.
10625 (eliminate_dom_walker::before_dom_children): Handle released
10626 VDEFs by value-numbering them to the associated VUSE. Update
10627 stmt immediately for substituted call address.
10628 (eliminate): Remove delayed stmt updating code.
10629 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10630 possibly late re-numbered vuses.
10631 (vn_reference_lookup_2): Adjust.
10632 (vn_reference_lookup_pieces): Likewise.
10633 (vn_reference_lookup): Likewise.
10634
10635 2014-05-20 Richard Biener <rguenther@suse.de>
10636
10637 * config.gcc: Remove need_64bit_hwint.
10638 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10639 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10640 it to be true.
10641 * config.in: Regenerate.
10642 * configure: Likewise.
10643
10644 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10645
10646 * doc/extend.texi: Create Label Attributes section,
10647 move all label attributes into it and reference it.
10648
10649 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10650
10651 * arm.c (thumb1_reorg): When scanning backwards skip anything
10652 that's not a proper insn.
10653
10654 2014-05-19 Richard Biener <rguenther@suse.de>
10655
10656 PR tree-optimization/61221
10657 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10658 Do nothing for unreachable blocks.
10659 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10660 Improve unreachability detection.
10661
10662 2014-05-19 Richard Biener <rguenther@suse.de>
10663
10664 PR tree-optimization/61209
10665 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10666
10667 2014-05-19 Nick Clifton <nickc@redhat.com>
10668
10669 * except.c (init_eh): Fix computation of builtin setjmp buffer
10670 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10671
10672 2014-05-19 Richard Biener <rguenther@suse.de>
10673
10674 PR tree-optimization/61184
10675 * tree-vrp.c (is_negative_overflow_infinity): Use
10676 TREE_OVERFLOW_P and do that check first.
10677 (is_positive_overflow_infinity): Likewise.
10678 (is_overflow_infinity): Likewise.
10679 (vrp_operand_equal_p): Properly treat operands with
10680 differing overflow as not equal.
10681
10682 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10683
10684 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10685 shift simplification where it was intended.
10686
10687 2014-05-19 Christian Bruel <christian.bruel@st.com>
10688
10689 PR target/61195
10690 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10691
10692 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10693
10694 PR target/61084
10695 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
10696 than wide_int.
10697
10698 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10699
10700 * reg-notes.def (CROSSING_JUMP): Likewise.
10701 * rtl.h (rtx_def): Update comment for jump flag.
10702 (CROSSING_JUMP_P): Define.
10703 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
10704 of a REG_CROSSING_JUMP note.
10705 * cfghooks.c (tidy_fallthru_edges): Likewise.
10706 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
10707 * emit-rtl.c (try_split): Likewise.
10708 * haifa-sched.c (sched_create_recovery_edges): Likewise.
10709 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
10710 * jump.c (redirect_jump_2): Likewise.
10711 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
10712 (relax_delay_slots): Likewise.
10713 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
10714 (bbit_di): Likewise.
10715 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
10716 * config/sh/sh.md (jump_compact): Likewise.
10717 * bb-reorder.c (rotate_loop): Likewise.
10718 (pass_duplicate_computed_gotos::execute): Likewise.
10719 (add_reg_crossing_jump_notes): Rename to...
10720 (update_crossing_jump_flags): ...this.
10721 (pass_partition_blocks::execute): Update accordingly.
10722
10723 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10724
10725 * tree.h: Remove extraneous template <>.
10726
10727 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10728
10729 * ipa.c (symtab_remove_unreachable_nodes): Remove
10730 symbol from comdat group if its body was eliminated.
10731 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
10732 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
10733 (symtab_unregister_node): ... this one.
10734 (verify_symtab_base): More strict checking of comdats.
10735 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
10736
10737 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10738
10739 * tree-pass.h (make_pass_ipa_comdats): New pass.
10740 * timevar.def (TV_IPA_COMDATS): New timevar.
10741 * passes.def (pass_ipa_comdats): Add.
10742 * Makefile.in (OBJS): Add ipa-comdats.o
10743 * ipa-comdats.c: New file.
10744
10745 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10746
10747 * ipa.c (update_visibility_by_resolution_info): New function.
10748 (function_and_variable_visibility): Use it.
10749
10750 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10751
10752 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
10753 New functions.
10754 (FOR_EACH_DEFINED_SYMBOL): New macro.
10755 (varpool_first_static_initializer, varpool_next_static_initializer,
10756 varpool_first_defined_variable, varpool_next_defined_variable):
10757 Fix comments.
10758 (symtab_in_same_comdat_p): Correctly deal with inline functions.
10759
10760 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10761
10762 * ggc-page.c (ggc_handle_finalizers): Add comment.
10763
10764 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10765
10766 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
10767 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
10768 (ggc_internal_cleared_alloc): Likewise.
10769 * ggc-page.c (finalizer): New class.
10770 (vec_finalizer): Likewise.
10771 (globals::finalizers): New member.
10772 (globals::vec_finalizers): Likewise.
10773 (ggc_internal_alloc): Record the finalizer if any for the block being
10774 allocated.
10775 (ggc_handle_finalizers): New function.
10776 (ggc_collect): Call ggc_handle_finalizers.
10777 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
10778 finalizer.
10779 (ggc_internal_cleared_alloc): Likewise.
10780 (finalize): New function.
10781 (need_finalization_p): Likewise.
10782 (ggc_alloc): Install the type's destructor as the finalizer if it
10783 might do something.
10784 (ggc_cleared_alloc): Likewise.
10785 (ggc_vec_alloc): Likewise.
10786 (ggc_cleared_vec_alloc): Likewise.
10787
10788 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10789
10790 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
10791
10792 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10793
10794 * alias.c (record_alias_subset): Adjust.
10795 * bitmap.c (bitmap_element_allocate): Likewise.
10796 (bitmap_gc_alloc_stat): Likewise.
10797 * cfg.c (init_flow): Likewise.
10798 (alloc_block): Likewise.
10799 (unchecked_make_edge): Likewise.
10800 * cfgloop.c (alloc_loop): Likewise.
10801 (flow_loops_find): Likewise.
10802 (rescan_loop_exit): Likewise.
10803 * cfgrtl.c (init_rtl_bb_info): Likewise.
10804 * cgraph.c (insert_new_cgraph_node_version): Likewise.
10805 (cgraph_allocate_node): Likewise.
10806 (cgraph_create_edge_1): Likewise.
10807 (cgraph_allocate_init_indirect_info): Likewise.
10808 * cgraphclones.c (cgraph_clone_edge): Likewise.
10809 * cgraphunit.c (add_asm_node): Likewise.
10810 (init_lowered_empty_function): Likewise.
10811 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
10812 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10813 (alpha_use_linkage): Likewise.
10814 * config/arc/arc.c (arc_init_machine_status): Likewise.
10815 * config/arm/arm.c (arm_init_machine_status): Likewise.
10816 * config/avr/avr.c (avr_init_machine_status): Likewise.
10817 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10818 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
10819 * config/cris/cris.c (cris_init_machine_status): Likewise.
10820 * config/darwin.c (machopic_indirection_name): Likewise.
10821 (darwin_build_constant_cfstring): Likewise.
10822 (darwin_enter_string_into_cfstring_table): Likewise.
10823 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
10824 * config/frv/frv.c (frv_init_machine_status): Likewise.
10825 * config/i386/i386.c (get_dllimport_decl): Likewise.
10826 (ix86_init_machine_status): Likewise.
10827 (assign_386_stack_local): Likewise.
10828 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10829 (i386_pe_maybe_record_exported_symbol): Likewise.
10830 (i386_pe_record_stub): Likewise.
10831 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10832 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10833 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10834 (m32c_note_pragma_address): Likewise.
10835 * config/mep/mep.c (mep_init_machine_status): Likewise.
10836 (mep_note_pragma_flag): Likewise.
10837 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10838 (mips16_local_alias): Likewise.
10839 (mips_init_machine_status): Likewise.
10840 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10841 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10842 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
10843 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
10844 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
10845 * config/pa/pa.c (pa_init_machine_status): Likewise.
10846 (pa_get_deferred_plabel): Likewise.
10847 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
10848 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10849 (rs6000_init_machine_status): Likewise.
10850 (output_toc): Likewise.
10851 * config/s390/s390.c (s390_init_machine_status): Likewise.
10852 * config/score/score.c (score_output_external): Likewise.
10853 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10854 * config/spu/spu.c (spu_init_machine_status): Likewise.
10855 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
10856 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
10857 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10858 * coverage.c (coverage_end_function): Likewise.
10859 * dbxout.c (dbxout_init): Likewise.
10860 * doc/gty.texi: Don't mention variable_size attribute.
10861 * dwarf2cfi.c (new_cfi): Adjust.
10862 (new_cfi_row): Likewise.
10863 (copy_cfi_row): Likewise.
10864 (create_cie_data): Likewise.
10865 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
10866 (new_loc_descr): Likewise.
10867 (find_AT_string_in_table): Likewise.
10868 (add_addr_table_entry): Likewise.
10869 (new_die): Likewise.
10870 (add_var_loc_to_decl): Likewise.
10871 (clone_die): Likewise.
10872 (clone_as_declaration): Likewise.
10873 (break_out_comdat_types): Likewise.
10874 (new_loc_list): Likewise.
10875 (add_loc_descr_to_each): Likewise.
10876 (add_location_or_const_value_attribute): Likewise.
10877 (add_linkage_name): Likewise.
10878 (lookup_filename): Likewise.
10879 (dwarf2out_var_location): Likewise.
10880 (new_line_info_table): Likewise.
10881 (dwarf2out_init): Likewise.
10882 (mem_loc_descriptor): Likewise.
10883 (loc_descriptor): Likewise.
10884 (add_const_value_attribute): Likewise.
10885 (tree_add_const_value_attribute): Likewise.
10886 (comp_dir_string): Likewise.
10887 (dwarf2out_vms_debug_main_pointer): Likewise.
10888 (string_cst_pool_decl): Likewise.
10889 * emit-rtl.c (set_mem_attrs): Likewise.
10890 (get_reg_attrs): Likewise.
10891 (start_sequence): Likewise.
10892 (init_emit): Likewise.
10893 (init_emit_regs): Likewise.
10894 * except.c (init_eh_for_function): Likewise.
10895 (gen_eh_region): Likewise.
10896 (gen_eh_region_catch): Likewise.
10897 (gen_eh_landing_pad): Likewise.
10898 (add_call_site): Likewise.
10899 * function.c (add_frame_space): Likewise.
10900 (insert_temp_slot_address): Likewise.
10901 (assign_stack_temp_for_type): Likewise.
10902 (get_hard_reg_initial_val): Likewise.
10903 (allocate_struct_function): Likewise.
10904 (prepare_function_start): Likewise.
10905 (types_used_by_var_decl_insert): Likewise.
10906 * gengtype.c (variable_size_p): Remove function.
10907 (enum alloc_quantity): Remove enum.
10908 (write_typed_alloc_def): Remove function.
10909 (write_typed_struct_alloc_def): Likewise.
10910 (write_typed_typedef_alloc_def): Likewise.
10911 (write_typed_alloc_defns): Likewise.
10912 (main): Adjust.
10913 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
10914 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
10915 * ggc.h (ggc_alloc): new function.
10916 (ggc_cleared_alloc): Likewise.
10917 (ggc_vec_alloc): Template on type of vector element, and remove
10918 element size argument.
10919 (ggc_cleared_vec_alloc): Likewise.
10920 * gimple.c (gimple_build_omp_for): Adjust.
10921 (gimple_copy): Likewise.
10922 * ipa-cp.c (get_replacement_map): Likewise.
10923 (find_aggregate_values_for_callers_subset): Likewise.
10924 (known_aggs_to_agg_replacement_list): Likewise.
10925 * ipa-devirt.c (get_odr_type): Likewise.
10926 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
10927 (read_agg_replacement_chain): Likewise.
10928 * loop-iv.c (get_simple_loop_desc): Likewise.
10929 * lto-cgraph.c (input_node_opt_summary): Likewise.
10930 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10931 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10932 (input_eh_region): Likewise.
10933 (input_eh_lp): Likewise.
10934 (input_cfg): Likewise.
10935 * optabs.c (set_optab_libfunc): Likewise.
10936 (init_tree_optimization_optabs): Likewise.
10937 (set_conv_libfunc): Likewise.
10938 * passes.c (do_per_function_toporder): Likewise.
10939 * rtl.h: Don't use variable_size gty attribute.
10940 * sese.c (if_region_set_false_region): Adjust.
10941 * stringpool.c (gt_pch_save_stringpool): Likewise.
10942 * target-globals.c (save_target_globals): Likewise.
10943 * toplev.c (general_init): Likewise.
10944 * trans-mem.c (record_tm_replacement): Likewise.
10945 (split_bb_make_tm_edge): Likewise.
10946 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10947 * tree-data-ref.h (lambda_vector_new): Likewise.
10948 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10949 * tree-iterator.c (tsi_link_before): Likewise.
10950 (tsi_link_after): Likewise.
10951 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10952 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10953 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10954 * tree-ssa-operands.h: Don't use variable_size gty attribute.
10955 * tree-ssa.c (init_tree_ssa): Adjust.
10956 * tree-ssanames.c (set_range_info): Likewise.
10957 (get_ptr_info): Likewise.
10958 (duplicate_ssa_name_ptr_info): Likewise.
10959 (duplicate_ssa_name_range_info): Likewise.
10960 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
10961 (unpack_ts_fixed_cst_value_fields): Likewise.
10962 * tree.c (build_fixed): Likewise.
10963 (build_real): Likewise.
10964 (build_string): Likewise.
10965 (decl_priority_info): Likewise.
10966 (decl_debug_expr_insert): Likewise.
10967 (decl_value_expr_insert): Likewise.
10968 (decl_debug_args_insert): Likewise.
10969 (type_hash_add): Likewise.
10970 (build_omp_clause): Likewise.
10971 * ubsan.c (decl_for_type_insert): Likewise.
10972 * varasm.c (get_unnamed_section): Likewise.
10973 (get_noswitch_section): Likewise.
10974 (get_section): Likewise.
10975 (get_block_for_section): Likewise.
10976 (create_block_symbol): Likewise.
10977 (build_constant_desc): Likewise.
10978 (create_constant_pool): Likewise.
10979 (force_const_mem): Likewise.
10980 (record_tm_clone_pair): Likewise.
10981 * varpool.c (varpool_create_empty_node): Likewise.
10982
10983 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10984
10985 * dwarf2out.c (tree_add_const_value_attribute): Call
10986 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
10987 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
10988 instead of ggc_internal_<x>alloc_stat.
10989 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
10990 (ggc_realloc): Likewise.
10991 * ggc-none.c (ggc_internal_alloc): Likewise.
10992 (ggc_internal_cleared_alloc): Likewise.
10993 * ggc-page.c: Likewise.
10994 * ggc.h (ggc_internal_alloc_stat): Likewise.
10995 (ggc_internal_alloc): Remove macro.
10996 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
10997 (ggc_internal_cleared_alloc): Remove macro.
10998 (GGC_RESIZEVEC): Adjust.
10999 (ggc_resizevar): Remove macro.
11000 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
11001 (ggc_internal_cleared_vec_alloc_stat): Likewise.
11002 (ggc_internal_vec_cleared_alloc): Remove macro.
11003 (ggc_alloc_atomic_stat): Drop _stat suffix.
11004 (ggc_alloc_atomic): Remove macro.
11005 (ggc_alloc_cleared_atomic): Remove macro.
11006 (ggc_alloc_string_stat): Drop _stat suffix.
11007 (ggc_alloc_string): Remove macro.
11008 (ggc_alloc_rtx_def_stat): Adjust.
11009 (ggc_alloc_tree_node_stat): Likewise.
11010 (ggc_alloc_cleared_tree_node_stat): Likewise.
11011 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
11012 (ggc_alloc_cleared_simd_clone_stat): Likewise.
11013 * gimple.c (gimple_build_omp_for): Likewise.
11014 (gimple_copy): Likewise.
11015 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
11016 * toplev.c (realloc_for_line_map): Adjust.
11017 * tree-data-ref.h (lambda_vector_new): Likewise.
11018 * tree-phinodes.c (allocate_phi_node): Likewise.
11019 * tree.c (grow_tree_vec_stat): Likewise.
11020 * vec.h (va_gc::reserve): Adjust.
11021
11022 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
11023
11024 * config/microblaze/microblaze.c (break_handler): New Declaration.
11025 (microblaze_break_function_p,microblaze_is_break_handler): New.
11026 (compute_frame_size): Use microblaze_break_function_p.
11027 Add the test of break_handler.
11028 (microblaze_function_prologue) : Add the test of variable
11029 break_handler. Check the fnname by BREAK_HANDLER_NAME.
11030 (microblaze_function_epilogue) : Add the test of break_handler.
11031 (microblaze_globalize_label) : Add the test of break_handler.
11032 Check the name by BREAK_HANDLER_NAME.
11033
11034 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
11035
11036 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
11037 microblaze_is_break_handler test.
11038 (call_internal1,call_value_intern): Use microblaze_break_function_p.
11039 Use SYMBOL_REF_DECL.
11040
11041 * config/microblaze/microblaze-protos.h
11042 (microblaze_break_function_p,microblaze_is_break_handler):
11043 New Declaration.
11044
11045 * doc/extend.texi (MicroBlaze break_handler Functions): Document
11046 new MicroBlaze break_handler functions.
11047
11048 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11049
11050 * doc/extend.texi (Size of an asm): Move node text according
11051 to its @menu entry position.
11052
11053 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
11054
11055 PR tree-optimization/61140
11056 PR tree-optimization/61150
11057 PR tree-optimization/61197
11058 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
11059
11060 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11061
11062 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
11063
11064 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
11065
11066 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
11067 __SIZEOF_INT128__ is defined.
11068
11069 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11070
11071 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
11072 (rs6000_delegitimize_address): Use it.
11073
11074 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11075
11076 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
11077 inplace argument. Store the new address in the original MEM when true.
11078 * emit-rtl.c (change_address_1): Likewise.
11079 (adjust_address_1, adjust_automodify_address_1, offset_address):
11080 Update accordingly.
11081 * rtl.h (plus_constant): Add an inplace argument.
11082 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
11083 when true. Avoid generating (plus X (const_int 0)).
11084 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
11085 in-place. Pass true to plus_constant.
11086 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
11087
11088 2014-05-16 Dehao Chen <dehao@google.com>
11089
11090 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
11091
11092 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11093
11094 PR target/54089
11095 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
11096 patterns.
11097 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
11098
11099 2014-05-16 Dehao Chen <dehao@google.com>
11100
11101 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
11102 optimize_function_for_size_p.
11103 * regs.h (REG_FREQ_FROM_BB): Likewise.
11104
11105 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11106
11107 PR target/51244
11108 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11109 negt_reg_operand cases.
11110 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11111 predicate.
11112 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11113
11114 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11115
11116 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11117 target variants.
11118
11119 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11120
11121 Revert:
11122 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11123
11124 * tree-cfg.c (dump_function_to_file): Dump the return type of
11125 functions, in a line to itself before the function body, mimicking
11126 the layout of a C function.
11127
11128 2014-05-16 Dehao Chen <dehao@google.com>
11129
11130 * cfghooks.c (make_forwarder_block): Use direct computation to
11131 get fall-through edge's count and frequency.
11132
11133 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11134
11135 * config/arc/arc.c (arc_init): Fix typo in error message.
11136 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11137 (split_stack_prologue_scratch_regno): Likewise.
11138 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11139 word from error message.
11140
11141 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11142
11143 * ira-costs.c: Fix typo in comment.
11144
11145 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11146
11147 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11148
11149 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11150
11151 * varpool.c (dump_varpool_node): Dump write-only flag.
11152 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11153 write-only flag.
11154 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11155 write-only variables.
11156 * ipa.c (process_references): New function.
11157 (set_readonly_bit): New function.
11158 (set_writeonly_bit): New function.
11159 (clear_addressable_bit): New function.
11160 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11161 fix handling of aliases.
11162 * cgraph.h (struct varpool_node): Add writeonly flag.
11163
11164 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11165
11166 PR rtl-optimization/60969
11167 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11168 Calculate costs for this case.
11169
11170 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11171
11172 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11173 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11174
11175 2014-05-16 Richard Biener <rguenther@suse.de>
11176
11177 PR tree-optimization/61194
11178 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11179 bool patterns ending in a COND_EXPR.
11180
11181 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11182
11183 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11184
11185 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11186
11187 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11188 where we were unable to cost an RTX.
11189
11190 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11191
11192 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11193 HIGH, LO_SUM.
11194
11195 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11196 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11197
11198 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11199
11200 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11201 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11202
11203 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11204 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11205
11206 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11207 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11208
11209 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11210 operators.
11211
11212 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11213 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11214
11215 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11216 DIV/MOD.
11217
11218 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11219 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11220
11221 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11222 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11223
11224 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11225 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11226
11227 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11228 rotates and shifts.
11229
11230 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11231 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11232
11233 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11234 ZERO_EXTEND and SIGN_EXTEND better.
11235
11236 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11237 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11238
11239 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11240 logical operations.
11241
11242 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11243 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11244
11245 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11246 costs when costing loads and stores to memory.
11247
11248 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11249 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11250
11251 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11252 for SET RTX.
11253
11254 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11255
11256 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11257
11258 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11259 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11260
11261 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11262 to...
11263 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11264 well formed.
11265 (aarch64_rtx_mult_cost): New.
11266 (aarch64_rtx_costs): Use it, refactor as appropriate.
11267
11268 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11269 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11270
11271 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11272 emit instructions, return number of instructions which would
11273 be emitted.
11274 (aarch64_add_constant): Update call to aarch64_build_constant.
11275 (aarch64_output_mi_thunk): Likewise.
11276 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11277 a CONST_DOUBLE.
11278
11279 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11280
11281 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11282 (TARGET_RTX_COSTS): Call it.
11283
11284 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11285
11286 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11287 (cortexa57_vector_cost): Likewise.
11288 (cortexa57_tunings): Use them.
11289
11290 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11291
11292 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11293 (cpu_addrcost_table): Use it.
11294 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11295 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11296 move it.
11297
11298 2014-05-16 Richard Biener <rguenther@suse.de>
11299
11300 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11301 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11302 (visit_phi): Ignore edges marked as not executable.
11303 (class cond_dom_walker): New.
11304 (cond_dom_walker::before_dom_children): Value-number
11305 control statements and mark successor edges as not
11306 executable if possible.
11307 (run_scc_vn): First walk all control statements in
11308 dominator order, marking edges as not executable.
11309 * tree-inline.c (copy_edges_for_bb): Be not confused
11310 about random edge flags.
11311
11312 2014-05-16 Richard Biener <rguenther@suse.de>
11313
11314 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11315
11316 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11317
11318 PR target/61193
11319 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11320 (__TM_simple_begin): Use it.
11321 (__TM_begin): Likewise.
11322
11323 2014-05-15 Martin Jambor <mjambor@suse.cz>
11324
11325 PR ipa/61085
11326 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11327 type_preserved flag when the indirect edge is polymorphic.
11328
11329 2014-05-15 Martin Jambor <mjambor@suse.cz>
11330
11331 PR tree-optimization/61090
11332 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11333 build_ref_for_model.
11334
11335 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11336
11337 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11338 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11339
11340 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11341
11342 PR tree-optimization/61158
11343 * fold-const.c (fold_binary_loc): If X is zero-extended and
11344 shiftc >= prec, make sure zerobits is all ones instead of
11345 invoking undefined behavior.
11346
11347 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11348
11349 * regcprop.h: New file.
11350 * regcprop.c (skip_debug_insn_p): New decl.
11351 (replace_oldest_value_reg): Check skip_debug_insn_p.
11352 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11353 * shrink-wrap.c: Include regcprop.h.
11354 (prepare_shrink_wrap): Call
11355 copyprop_hardreg_forward_bb_without_debug_insn.
11356
11357 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11358
11359 * shrink-wrap.h: Update comment.
11360 * shrink-wrap.c: Update comment.
11361 (next_block_for_reg): Rename to live_edge_for_reg.
11362 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11363 (move_insn_for_shrink_wrap): Split live_edge.
11364 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11365
11366 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11367
11368 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11369 Delete.
11370 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11371 * config/sparc/sparc.md (fptype_ut699): New attribute.
11372 (in_branch_delay): Return false if -mfix-ut699 is specified and
11373 fptype_ut699 is set to single.
11374 (truncdfsf2): Add fptype_ut699 attribute.
11375 (fix_truncdfsi2): Likewise.
11376 (floatsisf2): Change fptype attribute.
11377 (fix_truncsfsi2): Likewise.
11378 (negtf2_notv9): Delete.
11379 (negtf2_v9): Likewise.
11380 (negtf2_hq): New instruction.
11381 (negtf2): New instruction and splitter.
11382 (negdf2_notv9): Rewrite.
11383 (abstf2_notv9): Delete.
11384 (abstf2_hq_v9): Likewise.
11385 (abstf2_v9): Likewise.
11386 (abstf2_hq): New instruction.
11387 (abstf2): New instruction and splitter.
11388 (absdf2_notv9): Rewrite.
11389
11390 2014-05-14 Cary Coutant <ccoutant@google.com>
11391
11392 PR debug/61013
11393 * opts.c (common_handle_option): Don't special-case "-g".
11394 (set_debug_level): Default to at least level 2 with "-g".
11395
11396 2014-05-14 DJ Delorie <dj@redhat.com>
11397
11398 * config/msp430/msp430.c (msp430_builtin): Add
11399 MSP430_BUILTIN_DELAY_CYCLES.
11400 (msp430_init_builtins): Register void __delay_cycles(long long).
11401 (msp430_builtin_decl): Add it.
11402 (cg_magic_constant): New.
11403 (msp430_expand_delay_cycles): New.
11404 (msp430_expand_builtin): Call it.
11405 (msp430_print_operand_raw): Change integer printing from "int" to
11406 HOST_WIDE_INT.
11407 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11408 (delay_cycles_start): New.
11409 (delay_cycles_end): New.
11410 (delay_cycles_32): New.
11411 (delay_cycles_32x): New.
11412 (delay_cycles_16): New.
11413 (delay_cycles_16x): New.
11414 (delay_cycles_2): New.
11415 (delay_cycles_1): New.
11416 * doc/extend.texi: Document __delay_cycles().
11417
11418 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11419
11420 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11421 length attribute computation.
11422
11423 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11424
11425 PR debug/61188
11426 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11427
11428 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11429
11430 PR target/61084
11431 * config/sparc/sparc.md: Fix types of low and high in DI constant
11432 splitter. Use gen_int_mode in some other splitters.
11433
11434 2014-05-14 Martin Jambor <mjambor@suse.cz>
11435
11436 PR ipa/60897
11437 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11438
11439 2014-05-14 James Norris <jnorris@codesourcery.com>
11440
11441 * omp-low.c (expand_parallel_call): Remove shadow variable.
11442 (expand_omp_taskreg): Likewise.
11443
11444 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11445
11446 * common/config/i386/i386-common.c
11447 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11448 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11449 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11450 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11451 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11452 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11453 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11454 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11455 xsavecintrin.h, xsavesintrin.h.
11456 (x86_64-*-*): Ditto.
11457 * config/i386/clflushoptintrin.h: New.
11458 * config/i386/xsavecintrin.h: Ditto.
11459 * config/i386/xsavesintrin.h: Ditto.
11460 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11461 (bit_XSAVES): Ditto.
11462 (bit_XSAVES): Ditto.
11463 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11464 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11465 -mno-clflushopt.
11466 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11467 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11468 OPTION_MASK_ISA_XSAVES.
11469 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11470 -mxsavec, -mxsaves.
11471 (PTA_CLFLUSHOPT) Define.
11472 (PTA_XSAVEC): Ditto.
11473 (PTA_XSAVES): Ditto.
11474 (ix86_option_override_internal): Handle new options.
11475 (ix86_valid_target_attribute_inner_p): Ditto.
11476 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11477 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11478 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11479 (bdesc_special_args): Add __builtin_ia32_xsaves,
11480 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11481 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11482 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11483 (ix86_expand_builtin): Handle new builtins.
11484 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11485 (TARGET_CLFLUSHOPT_P): Ditto.
11486 (TARGET_XSAVEC): Ditto.
11487 (TARGET_XSAVEC_P): Ditto.
11488 (TARGET_XSAVES): Ditto.
11489 (TARGET_XSAVES_P): Ditto.
11490 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11491 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11492 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11493 (ANY_XRSTOR): New.
11494 (ANY_XRSTOR64): Ditto.
11495 (xrstor): Ditto.
11496 (xrstor): Change into <xrstor>.
11497 (xrstor_rex64): Change into <xrstor>_rex64.
11498 (xrstor64): Change into <xrstor>64
11499 (clflushopt): New.
11500 * config/i386/i386.opt (mclflushopt): New.
11501 (mxsavec): Ditto.
11502 (mxsaves): Ditto.
11503 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11504 xsavecintrin.h.
11505 * doc/invoke.texi: Document new options.
11506
11507 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11508
11509 PR rtl-optimization/60866
11510 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11511 Default it to -1. Pass it down to init_simplejump_data.
11512 (init_simplejump_data): New parameter old_seqno. Pass it down
11513 to get_seqno_for_a_jump.
11514 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11515 initializing new jump seqno as a last resort. Add comment.
11516 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11517 jump and pass it down to sel_init_new_insn.
11518 (sel_redirect_edge_and_branch_force): Likewise.
11519
11520 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11521
11522 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11523 shifted values to avoid build warning.
11524
11525 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11526
11527 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11528 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11529 (cfg_layout_merge_blocks): Likewise.
11530 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11531
11532 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11533
11534 PR rtl-optimization/60901
11535 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11536 bb predecessor belongs to the same scheduling region. Adjust comment.
11537
11538 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11539
11540 * doc/sourcebuild.texi: (dfp_hw): Document.
11541 (p8vector_hw): Likewise.
11542 (powerpc_eabi_ok): Likewise.
11543 (powerpc_elfv2): Likewise.
11544 (powerpc_htm_ok): Likewise.
11545 (ppc_recip_hw): Likewise.
11546 (vsx_hw): Likewise.
11547
11548 2014-05-13 Cary Coutant <ccoutant@google.com>
11549
11550 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11551
11552 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11553
11554 * gengtype-parse.c (require3): Eliminate in favor of...
11555 (require4): New.
11556 (require_template_declaration): Update to support optional single *
11557 on a type.
11558
11559 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11560 (create_user_defined_type): Handle a single level of explicit
11561 pointerness within template arguments.
11562 (struct write_types_data): Add field "kind".
11563 (filter_type_name): Handle "*" character.
11564 (write_user_func_for_structure_ptr): Require a write_types_data
11565 rather than just a prefix string, so that we can look up the kind
11566 of the wtd and use it as an index into wrote_user_func_for_ptr,
11567 ensuring that such functions are written at most once. Support
11568 subclasses by invoking the marking function of the ultimate base class.
11569 (write_user_func_for_structure_body): Require a write_types_data
11570 rather than just a prefix string, so that we can pass this to
11571 write_user_func_for_structure_ptr.
11572 (write_func_for_structure): Likewise.
11573 (ggc_wtd): Add initializer of new "kind" field.
11574 (pch_wtd): Likewise.
11575
11576 * gengtype.h (enum write_types_kinds): New.
11577 (struct type): Add field wrote_user_func_for_ptr to the "s"
11578 union member.
11579
11580 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11581
11582 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11583 instead of const_binop.
11584 (fold_binary_loc): Likewise.
11585
11586 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11587
11588 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11589 calculation to match get_ref_base_and_extent.
11590
11591 2014-05-13 Catherine Moore <clm@codesourcery.com>
11592 Sandra Loosemore <sandra@codesourcery.com>
11593
11594 * configure.ac: Fix assembly for explicit JALR relocation check.
11595 * configure: Regenerate.
11596
11597 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11598
11599 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11600 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11601 Remove associated type declarations and initialisations.
11602 (arm_expand_neon_builtin): Likewise.
11603 (neon_emit_pair_result_insn): Delete.
11604 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11605 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11606 (neon_vzip<mode>): Likewise.
11607 (neon_vuzp<mode>): Likewise.
11608
11609 2014-05-13 Richard Biener <rguenther@suse.de>
11610
11611 PR ipa/60973
11612 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11613 it needs revisiting whether the call still may be tail-called.
11614
11615 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11616
11617 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11618 * rtl.h (block_symbol): Reduce number of fields to 2.
11619 (rtx_def): Add u2.symbol_ref_flags.
11620 (SYMBOL_REF_FLAGS): Use it.
11621 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11622 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11623 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11624 Lower index of SYMBOL_REF_DATA.
11625 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11626 Print SYMBOL_REF_FLAGS at the same time.
11627 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11628
11629 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11630
11631 * rtl.def (VAR_LOCATION): Remove "i" field.
11632 * rtl.h (rtx_def): Add u2.var_location_status.
11633 (PAT_VAR_LOCATION_STATUS): Use it.
11634 (gen_rtx_VAR_LOCATION): Declare.
11635 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11636 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11637 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11638
11639 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11640
11641 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11642 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11643
11644 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11645
11646 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11647 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11648 * rtl.h (rtx_def): Add insn_uid to u2 field.
11649 (RTX_FLAG_CHECK8): Delete in favor of...
11650 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11651 (INSN_DELETED_P): Update accordingly.
11652 (INSN_UID): Use u2.insn_uid.
11653 (INSN_CHAIN_CODE_P): Define.
11654 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11655 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11656 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11657 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11658 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11659 indices accordingly.
11660 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11661 Update indices for insn-chain rtxes.
11662 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11663 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11664 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11665 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11666 * combine.c (try_combine): Likewise.
11667 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11668
11669 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11670
11671 * rtl.def (REG): Remove middle field.
11672 * rtl.h (rtx_def): Add orignal_regno to u2.
11673 (ORIGINAL_REGNO): Use it instead of field 1.
11674 (REG_ATTRS): Lower field index accordingly.
11675 * gengtype.c (adjust_field_rtx_def): Remove handling of
11676 ORIGINAL_REGNO. Move REG_ATTRS index down.
11677 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11678 code that prints the REGNO.
11679
11680 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11681
11682 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11683 GENERATOR_FILE.
11684
11685 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11686
11687 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11688
11689 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11690
11691 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11692 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11693
11694 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11695
11696 * config/aarch64/aarch64-protos.h
11697 (aarch64_hard_regno_caller_save_mode): New prototype.
11698 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
11699 New function.
11700 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11701
11702 2014-05-13 Christian Bruel <christian.bruel@st.com>
11703
11704 * target.def (mode_switching): New hook vector.
11705 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
11706 (mode_exit, modepriority_to_mode): Likewise.
11707 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
11708 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11709 * target.h: Include tm.h and hard-reg-set.h.
11710 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
11711 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
11712 * doc/tm.texi Regenerate.
11713 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11714 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11715 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
11716 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
11717 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11718 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11719 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
11720 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
11721 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
11722 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
11723 (ix86_emit_mode_set): Hookify.
11724 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
11725 Delete.
11726 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11727 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
11728 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
11729 (epiphany_mode_priority_to_mode): Remove declaration.
11730 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
11731 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
11732 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
11733 Likewise.
11734 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
11735 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
11736 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
11737
11738 2014-05-13 Jakub Jelinek <jakub@redhat.com>
11739
11740 PR target/61060
11741 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
11742 is const0_rtx, return immediately. Don't test count == 0 when
11743 it is always true.
11744
11745 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11746
11747 * Makefile.in: add shrink-wrap.o.
11748 * config/i386/i386.c: include "shrink-wrap.h"
11749 * function.c: Likewise.
11750 (requires_stack_frame_p, next_block_for_reg,
11751 move_insn_for_shrink_wrap, prepare_shrink_wrap,
11752 dup_block_and_redirect): Move to shrink-wrap.c
11753 (thread_prologue_and_epilogue_insns): Extract three code segments
11754 as functions in shrink-wrap.c
11755 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
11756 shrink-wrap.h
11757 * shrink-wrap.c: New file.
11758 * shrink-wrap.h: New file.
11759
11760 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11761
11762 * doc/extend.texi: Reflect current numbers of pragmas. Remove
11763 reference to Solaris.
11764
11765 2014-05-12 Mike Stump <mikestump@comcast.net>
11766
11767 PR other/31778
11768 * genattrtab.c (filename): Add.
11769 (convert_set_attr_alternative): Improve error message.
11770 (check_defs): Restore read_md_filename for error messages.
11771 (gen_insn): Save filename.
11772
11773 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
11774
11775 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
11776 -fno-local-ivars and -fivar-visibility.
11777 * c-family/c.opt: Make -Wshadow also implicitly enable
11778 -Wshadow-ivar.
11779
11780 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11781
11782 * doc/tm.texi: Remove reference to deleted macro.
11783 * doc/tm.texi.in: Likewise.
11784
11785 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11786
11787 PR target/60991
11788 * config/avr/avr.c (avr_out_store_psi): Use correct constant
11789 to restore Y.
11790
11791 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
11792
11793 PR libgcc/61152
11794 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
11795 * config/arm/aout.h (License): Same.
11796 * config/arm/bpabi.h (License): Same.
11797 * config/arm/elf.h (License): Same.
11798 * config/arm/linux-elf.h (License): Same.
11799 * config/arm/linux-gas.h (License): Same.
11800 * config/arm/netbsd-elf.h (License): Same.
11801 * config/arm/uclinux-eabi.h (License): Same.
11802 * config/arm/uclinux-elf.h (License): Same.
11803 * config/arm/vxworks.h (License): Same.
11804
11805 2014-05-11 Jakub Jelinek <jakub@redhat.com>
11806
11807 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
11808 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
11809 number of operands to 3.
11810 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
11811 * tree-nested.c (convert_nonlocal_omp_clauses,
11812 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
11813 * gimplify.c (gimplify_scan_omp_clauses): Handle
11814 OMP_CLAUSE_LINEAR_STMT.
11815 * omp-low.c (lower_rec_input_clauses): Fix typo.
11816 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
11817 cast between Fortran boolean_type_node and C _Bool if
11818 needed.
11819
11820 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
11821
11822 PR tree-optimization/61136
11823 * wide-int.h (multiple_of_p): Define a version that doesn't return
11824 the quotient.
11825 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
11826 integer_zerop/const_binop pair.
11827 (multiple_of_p): Likewise, converting both operands to widest_int
11828 precision.
11829
11830 2014-05-09 Teresa Johnson <tejohnson@google.com>
11831
11832 * cgraphunit.c (analyze_functions): Use correct dump file.
11833
11834 2014-05-09 Florian Weimer <fweimer@redhat.com>
11835
11836 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
11837 expand_used_vars.
11838 (stack_protect_return_slot_p): New function.
11839 (expand_used_vars): Call stack_protect_decl_p and
11840 stack_protect_return_slot_p for -fstack-protector-strong.
11841
11842 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
11843 Andrew Haley <aph@redhat.com>
11844 Richard Sandiford <rdsandiford@googlemail.com>
11845
11846 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
11847 pages.
11848
11849 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
11850
11851 PR middle-end/61111
11852 * fold-const.c (fold_binary_loc): Changed width of mask.
11853
11854 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11855
11856 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
11857 unsigned int initializers for regno_in, regno_out.
11858
11859 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11860
11861 PR target/61055
11862 * config/avr/avr.md (cc): Add new attribute set_vzn.
11863 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
11864 Set cc insn attribute to set_vzn instead of set_zn for alternatives
11865 with INC, DEC or NEG.
11866 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
11867 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
11868 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
11869
11870 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11871
11872 Revert:
11873 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11874
11875 * wide-int.cc (UTItype): Define.
11876 (UDWtype): Define for appropriate W_TYPE_SIZE.
11877
11878 2014-05-09 Richard Biener <rguenther@suse.de>
11879
11880 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
11881 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
11882 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
11883 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
11884 ssa_propagate): Adjust.
11885
11886 2014-05-08 Jeff Law <law@redhat.com>
11887
11888 PR tree-optimization/61009
11889 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
11890 tri-state rather than a boolean. When a block is too big to
11891 thread through, inform caller via negative return value.
11892 (thread_across_edge): If a block was too big for normal threading,
11893 then it's too big for a joiner too, so remove temporary equivalences
11894 and return immediately.
11895
11896 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11897 Matthias Klose <doko@ubuntu.com>
11898
11899 PR driver/61106
11900 * optc-gen.awk: Fix option handling for -Wunused-parameter.
11901
11902 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11903
11904 PR target/59952
11905 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
11906
11907 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11908
11909 PR target/61092
11910 * config/alpha/alpha.c: Include gimple-iterator.h.
11911 (alpha_gimple_fold_builtin): New function. Move
11912 ALPHA_BUILTIN_UMULH folding from ...
11913 (alpha_fold_builtin): ... here.
11914 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
11915
11916 2014-05-08 Wei Mi <wmi@google.com>
11917
11918 PR target/58066
11919 * config/i386/i386.c (ix86_compute_frame_layout): Update
11920 preferred_stack_boundary for call, expanded from tls descriptor.
11921 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
11922 to depend on SP register.
11923 (*tls_local_dynamic_base_32_gnu): Ditto.
11924 (*tls_local_dynamic_32_once): Ditto.
11925 (tls_global_dynamic_64_<mode>): Set
11926 ix86_tls_descriptor_calls_expanded_in_cfun.
11927 (tls_local_dynamic_base_64_<mode>): Ditto.
11928 (tls_global_dynamic_32): Set
11929 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
11930 to depend on SP register.
11931 (tls_local_dynamic_base_32): Ditto.
11932
11933 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11934
11935 * config/arm/arm_neon.h: Update comment.
11936 * config/arm/neon-docgen.ml: Delete.
11937 * config/arm/neon-gen.ml: Delete.
11938 * doc/arm-neon-intrinsics.texi: Update comment.
11939
11940 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11941
11942 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
11943 and v4sf versions.
11944 (vand, vorr, veor, vorn, vbic): Remove.
11945 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
11946 iterator.
11947 (neon_vsub_unspec): Likewise.
11948 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
11949
11950 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11951
11952 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
11953 (vadd_s16): Likewise.
11954 (vadd_s32): Likewise.
11955 (vadd_f32): Likewise.
11956 (vadd_u8): Likewise.
11957 (vadd_u16): Likewise.
11958 (vadd_u32): Likewise.
11959 (vadd_s64): Likewise.
11960 (vadd_u64): Likewise.
11961 (vaddq_s8): Likewise.
11962 (vaddq_s16): Likewise.
11963 (vaddq_s32): Likewise.
11964 (vaddq_s64): Likewise.
11965 (vaddq_f32): Likewise.
11966 (vaddq_u8): Likewise.
11967 (vaddq_u16): Likewise.
11968 (vaddq_u32): Likewise.
11969 (vaddq_u64): Likewise.
11970 (vmul_s8): Likewise.
11971 (vmul_s16): Likewise.
11972 (vmul_s32): Likewise.
11973 (vmul_f32): Likewise.
11974 (vmul_u8): Likewise.
11975 (vmul_u16): Likewise.
11976 (vmul_u32): Likewise.
11977 (vmul_p8): Likewise.
11978 (vmulq_s8): Likewise.
11979 (vmulq_s16): Likewise.
11980 (vmulq_s32): Likewise.
11981 (vmulq_f32): Likewise.
11982 (vmulq_u8): Likewise.
11983 (vmulq_u16): Likewise.
11984 (vmulq_u32): Likewise.
11985 (vsub_s8): Likewise.
11986 (vsub_s16): Likewise.
11987 (vsub_s32): Likewise.
11988 (vsub_f32): Likewise.
11989 (vsub_u8): Likewise.
11990 (vsub_u16): Likewise.
11991 (vsub_u32): Likewise.
11992 (vsub_s64): Likewise.
11993 (vsub_u64): Likewise.
11994 (vsubq_s8): Likewise.
11995 (vsubq_s16): Likewise.
11996 (vsubq_s32): Likewise.
11997 (vsubq_s64): Likewise.
11998 (vsubq_f32): Likewise.
11999 (vsubq_u8): Likewise.
12000 (vsubq_u16): Likewise.
12001 (vsubq_u32): Likewise.
12002 (vsubq_u64): Likewise.
12003 (vand_s8): Likewise.
12004 (vand_s16): Likewise.
12005 (vand_s32): Likewise.
12006 (vand_u8): Likewise.
12007 (vand_u16): Likewise.
12008 (vand_u32): Likewise.
12009 (vand_s64): Likewise.
12010 (vand_u64): Likewise.
12011 (vandq_s8): Likewise.
12012 (vandq_s16): Likewise.
12013 (vandq_s32): Likewise.
12014 (vandq_s64): Likewise.
12015 (vandq_u8): Likewise.
12016 (vandq_u16): Likewise.
12017 (vandq_u32): Likewise.
12018 (vandq_u64): Likewise.
12019 (vorr_s8): Likewise.
12020 (vorr_s16): Likewise.
12021 (vorr_s32): Likewise.
12022 (vorr_u8): Likewise.
12023 (vorr_u16): Likewise.
12024 (vorr_u32): Likewise.
12025 (vorr_s64): Likewise.
12026 (vorr_u64): Likewise.
12027 (vorrq_s8): Likewise.
12028 (vorrq_s16): Likewise.
12029 (vorrq_s32): Likewise.
12030 (vorrq_s64): Likewise.
12031 (vorrq_u8): Likewise.
12032 (vorrq_u16): Likewise.
12033 (vorrq_u32): Likewise.
12034 (vorrq_u64): Likewise.
12035 (veor_s8): Likewise.
12036 (veor_s16): Likewise.
12037 (veor_s32): Likewise.
12038 (veor_u8): Likewise.
12039 (veor_u16): Likewise.
12040 (veor_u32): Likewise.
12041 (veor_s64): Likewise.
12042 (veor_u64): Likewise.
12043 (veorq_s8): Likewise.
12044 (veorq_s16): Likewise.
12045 (veorq_s32): Likewise.
12046 (veorq_s64): Likewise.
12047 (veorq_u8): Likewise.
12048 (veorq_u16): Likewise.
12049 (veorq_u32): Likewise.
12050 (veorq_u64): Likewise.
12051 (vbic_s8): Likewise.
12052 (vbic_s16): Likewise.
12053 (vbic_s32): Likewise.
12054 (vbic_u8): Likewise.
12055 (vbic_u16): Likewise.
12056 (vbic_u32): Likewise.
12057 (vbic_s64): Likewise.
12058 (vbic_u64): Likewise.
12059 (vbicq_s8): Likewise.
12060 (vbicq_s16): Likewise.
12061 (vbicq_s32): Likewise.
12062 (vbicq_s64): Likewise.
12063 (vbicq_u8): Likewise.
12064 (vbicq_u16): Likewise.
12065 (vbicq_u32): Likewise.
12066 (vbicq_u64): Likewise.
12067 (vorn_s8): Likewise.
12068 (vorn_s16): Likewise.
12069 (vorn_s32): Likewise.
12070 (vorn_u8): Likewise.
12071 (vorn_u16): Likewise.
12072 (vorn_u32): Likewise.
12073 (vorn_s64): Likewise.
12074 (vorn_u64): Likewise.
12075 (vornq_s8): Likewise.
12076 (vornq_s16): Likewise.
12077 (vornq_s32): Likewise.
12078 (vornq_s64): Likewise.
12079 (vornq_u8): Likewise.
12080 (vornq_u16): Likewise.
12081 (vornq_u32): Likewise.
12082 (vornq_u64): Likewise.
12083
12084 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12085
12086 * wide-int.cc (UTItype): Define.
12087 (UDWtype): Define for appropriate W_TYPE_SIZE.
12088
12089 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
12090
12091 PR tree-optimization/59100
12092 * tree-ssa-phiopt.c: Include tree-inline.h.
12093 (neutral_element_p, absorbing_element_p): New functions.
12094 (value_replacement): Handle conditional binary operations with a
12095 neutral or absorbing element.
12096
12097 2014-05-08 Richard Biener <rguenther@suse.de>
12098
12099 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
12100 folding the expression.
12101 (valueize_expr): Remove.
12102 (visit_reference_op_load): Do not valueize the result of
12103 vn_get_expr_for.
12104 (simplify_binary_expression): Likewise.
12105 (simplify_unary_expression): Likewise.
12106
12107 2014-05-08 Richard Biener <rguenther@suse.de>
12108
12109 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12110 looking at TYPE_ARG_TYPES.
12111
12112 2014-05-08 Richard Biener <rguenther@suse.de>
12113
12114 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12115 pointer propagation special-case.
12116
12117 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12118
12119 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12120 core part of address expressions.
12121
12122 2014-05-08 Alan Modra <amodra@gmail.com>
12123
12124 PR target/60737
12125 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12126 loads and stores when -mno-strict-align at any alignment.
12127 (expand_block_clear): Similarly. Also correct calculation of
12128 instruction count.
12129
12130 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12131
12132 PR middle-end/39246
12133 * tree-complex.c (expand_complex_move): Keep line info when expanding
12134 complex move.
12135 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12136 of complex expression. Use new argument to display correct location
12137 for values coming from phi statement.
12138 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12139 (warn_uninitialized_phi): Pass location of phi argument to
12140 warn_uninit.
12141 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12142 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12143
12144 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12145
12146 * config/rs6000/predicates.md (indexed_address_mem): New.
12147 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12148 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12149 fpstore_ux, fpstore_u.
12150 (sign_extend, indexed, update): New.
12151 (cell_micro): Adjust.
12152 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12153 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12154 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12155 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12156 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12157 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12158 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12159 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12160 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12161 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12162 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12163 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12164 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12165 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12166 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12167
12168 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12169 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12170 *vsx_extract_<mode>_store): Adjust.
12171 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12172 is_cracked_insn, insn_must_be_first_in_group,
12173 insn_must_be_last_in_group): Adjust.
12174
12175 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12176 Adjust.
12177 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12178 ppc440-fpstore): Adjust.
12179 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12180 ppc476-fpstore): Adjust.
12181 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12182 ppc601-fpstore): Adjust.
12183 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12184 Adjust.
12185 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12186 Adjust.
12187 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12188 ppc7450-fpstore): Adjust.
12189 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12190 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12191 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12192 Adjust.
12193 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12194 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12195 cell-fpstore, cell-fpstore-update): Adjust.
12196 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12197 ppce300c3_store, ppce300c3_fpstore): Adjust.
12198 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12199 e500mc_fpstore): Adjust.
12200 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12201 e500mc64_store, e500mc64_fpstore): Adjust.
12202 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12203 e5500_fpstore): Adjust.
12204 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12205 e6500_fpstore): Adjust.
12206 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12207 Adjust.
12208 * config/rs6000/power4.md (power4-load, power4-load-ext,
12209 power4-load-ext-update, power4-load-ext-update-indexed,
12210 power4-load-update-indexed, power4-load-update, power4-fpload,
12211 power4-fpload-update, power4-store, power4-store-update,
12212 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12213 Adjust.
12214 * config/rs6000/power5.md (power5-load, power5-load-ext,
12215 power5-load-ext-update, power5-load-ext-update-indexed,
12216 power5-load-update-indexed, power5-load-update, power5-fpload,
12217 power5-fpload-update, power5-store, power5-store-update,
12218 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12219 Adjust.
12220 * config/rs6000/power6.md (power6-load, power6-load-ext,
12221 power6-load-update, power6-load-update-indexed,
12222 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12223 power6-fpload-update, power6-store, power6-store-update,
12224 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12225 Adjust.
12226 * config/rs6000/power7.md (power7-load, power7-load-ext,
12227 power7-load-update, power7-load-update-indexed,
12228 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12229 power7-fpload-update, power7-store, power7-store-update,
12230 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12231 Adjust.
12232 * config/rs6000/power8.md (power8-load, power8-load-update,
12233 power8-load-ext, power8-load-ext-update, power8-fpload,
12234 power8-fpload-update, power8-store, power8-store-update-indexed,
12235 power8-fpstore, power8-fpstore-update): Adjust.
12236 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12237 Adjust.
12238 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12239 titan_lsu_store, titan_lsu_fpstore): Adjust.
12240 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12241
12242 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12243
12244 PR target/60884
12245 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12246 unrolled byte insns. Emit address increments after move insns.
12247
12248 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12249
12250 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12251 const_gimple, rather than a gimple.
12252 (gimple_call_builtin_p): Likewise, for the three variants.
12253
12254 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12255 (gimple_call_builtin_p): Likewise, for the three variants.
12256
12257 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12258
12259 PR tree-optimization/61095
12260 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12261
12262 2014-05-07 Richard Biener <rguenther@suse.de>
12263
12264 PR tree-optimization/61034
12265 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12266 (maybe_skip_until): Use translate to take into account
12267 lattices when trying to do disambiguations.
12268 (get_continuation_for_phi_1): Likewise.
12269 (get_continuation_for_phi): Adjust for added translate arguments.
12270 (walk_non_aliased_vuses): Likewise.
12271 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12272 (walk_non_aliased_vuses): Likewise.
12273 (call_may_clobber_ref_p_1): Declare.
12274 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12275 calls. Stop early if we are only supposed to disambiguate.
12276 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12277
12278 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12279
12280 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12281 Emit an error when the function has arguments.
12282
12283 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12284
12285 * cfgloop.h (unswitch_loops): Remove.
12286 * doc/passes.texi: Remove references to loop-unswitch.c
12287 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12288
12289 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12290
12291 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12292 check for loads group of length 3.
12293 (vect_permute_load_chain): New permutations for loads group of
12294 length 3.
12295 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12296 of vec_perm_shuffle for the new permutations.
12297
12298 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12299
12300 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12301 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12302 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12303 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12304 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12305 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12306 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12307 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12308
12309 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12310
12311 * loop-unswitch.c: Delete.
12312
12313 2014-05-07 Richard Biener <rguenther@suse.de>
12314
12315 * config.gcc: Always set need_64bit_hwint to yes.
12316
12317 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12318
12319 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12320 of using optimize_size.
12321
12322 2014-05-06 Mike Stump <mikestump@comcast.net>
12323
12324 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12325
12326 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12327
12328 * config/i386/sse.md (*mov<mode>_internal)
12329 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12330 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12331 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12332 (*<code><mode>3, *andnot<mode>3<mask_name>)
12333 (<mask_codefor><code><mode>3<mask_name>): Only consider
12334 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12335
12336 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12337
12338 Revert:
12339 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12340
12341 * lra-constraints.c (valid_address_p): Move earlier in file.
12342 Add a constraint argument to the address_info version.
12343 (satisfies_memory_constraint_p): New function.
12344 (satisfies_address_constraint_p): Likewise.
12345 (process_alt_operands, curr_insn_transform): Use them.
12346 (process_address): Pass the constraint to valid_address_p when
12347 checking address operands.
12348
12349 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12350
12351 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12352 to their respective blocks. Fix inadvertent use of "node".
12353
12354 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12355
12356 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12357 out from...
12358 (init_emit_once): ...here.
12359 * rtl.h (init_derived_machine_modes): Declare.
12360 * toplev.c (do_compile): Call it even if no_backend.
12361
12362 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12363 Mike Stump <mikestump@comcast.net>
12364 Richard Sandiford <rdsandiford@googlemail.com>
12365 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12366
12367 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12368 (rtx_equal_for_memref_p): Update comment.
12369 (adjust_offset_for_component_ref): Use wide-int interfaces.
12370 * builtins.c (get_object_alignment_2): Likewise.
12371 (c_readstr): Likewise.
12372 (target_char_cast): Add comment.
12373 (determine_block_size): Use wide-int interfaces.
12374 (expand_builtin_signbit): Likewise.
12375 (fold_builtin_int_roundingfn): Likewise.
12376 (fold_builtin_bitop): Likewise.
12377 (fold_builtin_bswap): Likewise.
12378 (fold_builtin_logarithm): Use signop.
12379 (fold_builtin_pow): Likewise.
12380 (fold_builtin_memory_op): Use wide-int interfaces.
12381 (fold_builtin_object_size): Likewise.
12382 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12383 nb_iterations_estimate.
12384 (record_niter_bound): Use wide-int interfaces.
12385 (get_estimated_loop_iterations_int): Likewise.
12386 (get_estimated_loop_iterations): Likewise.
12387 (get_max_loop_iterations): Likewise.
12388 * cfgloop.h: Include wide-int.h.
12389 (struct nb_iter_bound): Change bound to widest_int.
12390 (struct loop): Change nb_iterations_upper_bound and
12391 nb_iterations_estimate to widest_int.
12392 (record_niter_bound): Switch to use widest_int.
12393 (get_estimated_loop_iterations): Likewise.
12394 (get_max_loop_iterations): Likewise.
12395 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12396 update for wide-int.
12397 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12398 * combine.c (try_combine): Likewise.
12399 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12400 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12401 interfaces.
12402 (aarch64_float_const_representable_p): Likewise.
12403 * config/arc/arc.c: Include wide-int.h.
12404 (arc_can_use_doloop_p): Use wide-int interfaces.
12405 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12406 (vfp3_const_double_index): Likewise.
12407 * config/avr/avr.c (avr_out_round): Likewise.
12408 (avr_fold_builtin): Likewise.
12409 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12410 (bfin_can_use_doloop_p): Likewise.
12411 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12412 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12413 * config/i386/i386.c: Include wide-int.h.
12414 (ix86_data_alignment): Use wide-int interfaces.
12415 (ix86_local_alignment): Likewise.
12416 (ix86_emit_swsqrtsf): Update real_from_integer.
12417 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12418 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12419 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12420 (zero_constant): Likewise.
12421 (input_operand): Likewise.
12422 (splat_input_operand): Likewise.
12423 (non_logical_cint_operand): Change const_double to const_wide_int.
12424 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12425 (easy_altivec_constant): Remove comment.
12426 (paired_expand_vector_init): Use CONSTANT_P.
12427 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12428 (rs6000_emit_move): Update checks.
12429 (rs6000_aggregate_candidate): Use wide-int interfaces.
12430 (rs6000_expand_ternop_builtin): Likewise.
12431 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12432 (rs6000_assemble_integer): Likewise.
12433 (rs6000_hash_constant): Likewise.
12434 (output_toc): Likewise.
12435 (rs6000_rtx_costs): Likewise.
12436 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12437 * config/rs6000/rs6000-c.c: Include wide-int.h.
12438 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12439 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12440 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12441 Handle CONST_WIDE_INT.
12442 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12443 Use tree_fits_uhwi_p.
12444 * config/sparc/sparc.c: Include wide-int.h.
12445 (sparc_fold_builtin): Use wide-int interfaces.
12446 * config/vax/vax.c: Include wide-int.h.
12447 (vax_float_literal): Use real_from_integer.
12448 * coretypes.h (struct hwivec_def): New.
12449 (hwivec): New.
12450 (const_hwivec): New.
12451 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12452 (equiv_constant): Handle CONST_WIDE_INT.
12453 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12454 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12455 * dbxout.c (stabstr_U): Use wide-int interfaces.
12456 (dbxout_type): Update to use cst_fits_shwi_p.
12457 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12458 (TARGET_SUPPORTS_WIDE_INT): Add default.
12459 * dfp.c: Include wide-int.h.
12460 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12461 decimal_real_to_integer.
12462 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12463 decimal_real_to_integer.
12464 * doc/generic.texi (Constant expressions): Update for wide_int.
12465 * doc/rtl.texi (const_double): Likewise.
12466 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12467 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12468 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12469 (REAL_VALUE_FROM_INT): Remove.
12470 (TARGET_SUPPORTS_WIDE_INT): New.
12471 * doc/tm.texi: Regenerate.
12472 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12473 * double-int.h: Include wide-int.h.
12474 (struct wi::int_traits): New.
12475 * dwarf2out.c (get_full_len): New.
12476 (dw_val_equal_p): Add case dw_val_class_wide_int.
12477 (size_of_loc_descr): Likewise.
12478 (output_loc_operands): Likewise.
12479 (insert_double): Remove.
12480 (insert_wide_int): New.
12481 (add_AT_wide): New.
12482 (print_die): Add case dw_val_class_wide_int.
12483 (attr_checksum): Likewise.
12484 (attr_checksum_ordered): Likewise.
12485 (same_dw_val_p): Likewise.
12486 (size_of_die): Likewise.
12487 (value_format): Likewise.
12488 (output_die): Likewise.
12489 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12490 Use wide-int.
12491 (clz_loc_descriptor): Use wide-int interfaces.
12492 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12493 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12494 (round_up_to_align): Use wide-int interfaces.
12495 (field_byte_offset): Likewise.
12496 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12497 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12498 CONST_DOUBLE handling. Use wide-int interfaces.
12499 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12500 (gen_enumeration_type_die): Use add_AT_wide.
12501 (hash_loc_operands): Add case dw_val_class_wide_int.
12502 (compare_loc_operands): Likewise.
12503 * dwarf2out.h: Include wide-int.h.
12504 (wide_int_ptr): New.
12505 (enum dw_val_class): Add dw_val_class_wide_int.
12506 (struct dw_val_struct): Add val_wide.
12507 * emit-rtl.c (const_wide_int_htab): New.
12508 (const_wide_int_htab_hash): New.
12509 (const_wide_int_htab_eq): New.
12510 (lookup_const_wide_int): New.
12511 (const_double_htab_hash): Use wide-int interfaces.
12512 (const_double_htab_eq): Likewise.
12513 (rtx_to_double_int): Conditionally compile for wide-int.
12514 (immed_double_int_const): Rename to immed_wide_int_const and
12515 update for wide-int.
12516 (immed_double_const): Conditionally compile for wide-int.
12517 (init_emit_once): Use wide-int interfaces.
12518 * explow.c (plus_constant): Likewise.
12519 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12520 (lshift_value): Use wide-int interfaces.
12521 (expand_mult): Likewise.
12522 (choose_multiplier): Likewise.
12523 (expand_smod_pow2): Likewise.
12524 (make_tree): Likewise.
12525 * expr.c (convert_modes): Consolidate handling of constants.
12526 Use wide-int interfaces.
12527 (emit_group_load_1): Add note.
12528 (store_expr): Update comment.
12529 (get_inner_reference): Use wide-int interfaces.
12530 (expand_constructor): Update comment.
12531 (expand_expr_real_2): Use wide-int interfaces.
12532 (expand_expr_real_1): Likewise.
12533 (reduce_to_bit_field_precision): Likewise.
12534 (const_vector_from_tree): Likewise.
12535 * final.c: Include wide-int-print.h.
12536 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12537 * fixed-value.c: Include wide-int.h.
12538 (fixed_from_string): Use wide-int interfaces.
12539 (fixed_to_decimal): Likewise.
12540 (fixed_convert_from_real): Likewise.
12541 (real_convert_from_fixed): Likewise.
12542 * fold-const.h (mem_ref_offset): Return an offset_int.
12543 (div_if_zero_remainder): Remove code parameter.
12544 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12545 Use wide-int interfaces.
12546 (may_negate_without_overflow_p): Use wide-int interfaces.
12547 (negate_expr_p): Likewise.
12548 (fold_negate_expr): Likewise.
12549 (int_const_binop_1): Likewise.
12550 (const_binop): Likewise.
12551 (fold_convert_const_int_from_int): Likewise.
12552 (fold_convert_const_int_from_real): Likewise.
12553 (fold_convert_const_int_from_fixed): Likewise.
12554 (fold_convert_const_fixed_from_int): Likewise.
12555 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12556 (sign_bit_p): Use wide-int interfaces.
12557 (make_range_step): Likewise.
12558 (build_range_check): Likewise. Pass an integer of the correct type
12559 instead of using integer_one_node.
12560 (range_predecessor): Pass an integer of the correct type instead
12561 of using integer_one_node.
12562 (range_successor): Likewise.
12563 (merge_ranges): Likewise.
12564 (unextend): Use wide-int interfaces.
12565 (extract_muldiv_1): Likewise.
12566 (fold_div_compare): Likewise.
12567 (fold_single_bit_test): Likewise.
12568 (fold_sign_changed_comparison): Likewise.
12569 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12570 (fold_plusminus_mult_expr): Use wide-int interfaces.
12571 (native_encode_int): Likewise.
12572 (native_interpret_int): Likewise.
12573 (fold_unary_loc): Likewise.
12574 (pointer_may_wrap_p): Likewise.
12575 (size_low_cst): Likewise.
12576 (mask_with_tz): Likewise.
12577 (fold_binary_loc): Likewise.
12578 (fold_ternary_loc): Likewise.
12579 (multiple_of_p): Likewise.
12580 (tree_call_nonnegative_warnv_p): Update calls to
12581 tree_int_cst_min_precision and real_from_integer.
12582 (fold_negate_const): Use wide-int interfaces.
12583 (fold_abs_const): Likewise.
12584 (fold_relational_const): Use tree_int_cst_lt.
12585 (round_up_loc): Use wide-int interfaces.
12586 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12587 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12588 * gengtype.c: Remove include of double-int.h.
12589 (do_typedef): Use wide-int interfaces.
12590 (open_base_files): Add wide-int.h.
12591 (main): Add offset_int and widest_int typedefs.
12592 * gengtype-lex.l: Handle "^".
12593 (CXX_KEYWORD): Add "static".
12594 * gengtype-parse.c (require3): New.
12595 (require_template_declaration): Handle constant template arguments
12596 and nested templates.
12597 * gengtype-state.c: Don't include "double-int.h".
12598 * genpreds.c (write_one_predicate_function): Update comment.
12599 (write_tm_constrs_h): Add check for hval and lval use in
12600 CONST_WIDE_INT.
12601 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12602 (add_to_sequence): Likewise.
12603 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12604 and const_double_operand.
12605 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12606 interfaces.
12607 * gimple-fold.c (get_base_constructor): Likewise.
12608 (fold_array_ctor_reference): Likewise.
12609 (fold_nonarray_ctor_reference): Likewise.
12610 (fold_const_aggregate_ref_1): Likewise.
12611 (gimple_val_nonnegative_real_p): Likewise.
12612 (gimple_fold_indirect_ref): Likewise.
12613 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12614 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12615 (struct slsr_cand_d): Change index to be widest_int.
12616 (struct incr_info_d): Change incr to be widest_int.
12617 (alloc_cand_and_find_basis): Use wide-int interfaces.
12618 (slsr_process_phi): Likewise.
12619 (backtrace_base_for_ref): Likewise. Return a widest_int.
12620 (restructure_reference): Take a widest_int instead of a double_int.
12621 (slsr_process_ref): Use wide-int interfaces.
12622 (create_mul_ssa_cand): Likewise.
12623 (create_mul_imm_cand): Likewise.
12624 (create_add_ssa_cand): Likewise.
12625 (create_add_imm_cand): Take a widest_int instead of a double_int.
12626 (slsr_process_add): Use wide-int interfaces.
12627 (slsr_process_cast): Likewise.
12628 (slsr_process_copy): Likewise.
12629 (dump_candidate): Likewise.
12630 (dump_incr_vec): Likewise.
12631 (replace_ref): Likewise.
12632 (cand_increment): Likewise. Return a widest_int.
12633 (cand_abs_increment): Likewise.
12634 (replace_mult_candidate): Take a widest_int instead of a double_int.
12635 (replace_unconditional_candidate): Use wide-int interfaces.
12636 (incr_vec_index): Take a widest_int instead of a double_int.
12637 (create_add_on_incoming_edge): Likewise.
12638 (create_phi_basis): Use wide-int interfaces.
12639 (replace_conditional_candidate): Likewise.
12640 (record_increment): Take a widest_int instead of a double_int.
12641 (record_phi_increments): Use wide-int interfaces.
12642 (phi_incr_cost): Take a widest_int instead of a double_int.
12643 (lowest_cost_path): Likewise.
12644 (total_savings): Likewise.
12645 (analyze_increments): Use wide-int interfaces.
12646 (ncd_with_phi): Take a widest_int instead of a double_int.
12647 (ncd_of_cand_and_phis): Likewise.
12648 (nearest_common_dominator_for_cands): Likewise.
12649 (insert_initializers): Use wide-int interfaces.
12650 (all_phi_incrs_profitable): Likewise.
12651 (replace_one_candidate): Likewise.
12652 (replace_profitable_candidates): Likewise.
12653 * godump.c: Include wide-int-print.h.
12654 (go_output_typedef): Use wide-int interfaces.
12655 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12656 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12657 (build_loop_iteration_domains): Likewise.
12658 * hooks.h: Include wide-int.h rather than double-int.h.
12659 (hook_bool_dint_dint_uint_bool_true): Delete.
12660 (hook_bool_wint_wint_uint_bool_true): Declare.
12661 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12662 (hook_bool_wint_wint_uint_bool_true): New.
12663 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12664 interfaces.
12665 (ubsan_expand_si_overflow_mul_check): Likewise.
12666 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12667 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12668 (get_ancestor_addr_info): Likewise.
12669 (ipa_modify_call_arguments): Likewise.
12670 * loop-doloop.c (doloop_modify): Likewise.
12671 (doloop_optimize): Likewise.
12672 * loop-iv.c (iv_number_of_iterations): Likewise.
12673 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12674 (unroll_loop_constant_iterations): Likewise.
12675 (decide_unroll_runtime_iterations): Likewise.
12676 (unroll_loop_runtime_iterations): Likewise.
12677 (decide_peel_simple): Likewise.
12678 (decide_unroll_stupid): Likewise.
12679 * lto-streamer-in.c (streamer_read_wi): Add.
12680 (input_cfg): Use wide-int interfaces.
12681 (lto_input_tree_1): Likewise.
12682 * lto-streamer-out.c (streamer_write_wi): Add.
12683 (hash_tree): Use wide-int interfaces.
12684 (output_cfg): Likewise.
12685 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12686 (GTFILES): Add wide-int.h and signop.h.
12687 (TAGS): Look for .cc files too.
12688 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12689 * optabs.c (expand_subword_shift): Likewise.
12690 (expand_doubleword_shift): Likewise.
12691 (expand_absneg_bit): Likewise.
12692 (expand_copysign_absneg): Likewise.
12693 (expand_copysign_bit): Likewise.
12694 * postreload.c (reload_cse_simplify_set): Likewise.
12695 * predict.c (predict_iv_comparison): Likewise.
12696 * pretty-print.h: Include wide-int-print.h.
12697 (pp_wide_int) New.
12698 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
12699 * print-tree.c: Include wide-int-print.h.
12700 (print_node_brief): Use wide-int interfaces.
12701 (print_node): Likewise.
12702 * read-rtl.c (validate_const_wide_int): New.
12703 (read_rtx_code): Add CONST_WIDE_INT case.
12704 * real.c: Include wide-int.h.
12705 (real_to_integer2): Delete.
12706 (real_to_integer): New function, returning a wide_int.
12707 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12708 (ten_to_ptwo): Update call to real_from_integer.
12709 (real_digit): Likewise.
12710 * real.h: Include signop.h, wide-int.h and insn-modes.h.
12711 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
12712 (REAL_VALUE_TO_INT): Delete.
12713 (real_to_integer): Declare a wide-int form.
12714 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12715 * recog.c (const_int_operand): Improve comment.
12716 (const_scalar_int_operand): New.
12717 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
12718 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
12719 (split_double): Likewise.
12720 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
12721 (rtx_size): Likewise.
12722 (rtx_alloc_stat_v): New.
12723 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
12724 (cwi_output_hex): New.
12725 (iterative_hash_rtx): Handle CONST_WIDE_INT.
12726 (cwi_check_failed_bounds): New.
12727 * rtl.def (CONST_WIDE_INT): New.
12728 * rtl.h: Include <utility> and wide-int.h.
12729 (struct hwivec_def): New.
12730 (CWI_GET_NUM_ELEM): New.
12731 (CWI_PUT_NUM_ELEM): New.
12732 (struct rtx_def): Add num_elem and hwiv.
12733 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
12734 (CASE_CONST_UNIQUE): Likewise.
12735 (CASE_CONST_ANY): Likewise.
12736 (CONST_SCALAR_INT_P): Likewise.
12737 (CONST_WIDE_INT_P): New.
12738 (CWI_ELT): New.
12739 (HWIVEC_CHECK): New.
12740 (cwi_check_failed_bounds): New.
12741 (CWI_ELT): New.
12742 (HWIVEC_CHECK): New.
12743 (CONST_WIDE_INT_VEC) New.
12744 (CONST_WIDE_INT_NUNITS) New.
12745 (CONST_WIDE_INT_ELT) New.
12746 (rtx_mode_t): New type.
12747 (wi::int_traits <rtx_mode_t>): New.
12748 (wi::shwi): New.
12749 (wi::min_value): New.
12750 (wi::max_value): New.
12751 (rtx_alloc_v) New.
12752 (const_wide_int_alloc): New.
12753 (immed_wide_int_const): New.
12754 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
12755 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
12756 * signop.h: New file.
12757 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
12758 (simplify_const_unary_operation): Use wide-int interfaces.
12759 (simplify_binary_operation_1): Likewise.
12760 (simplify_const_binary_operation): Likewise.
12761 (simplify_const_relational_operation): Likewise.
12762 (simplify_immed_subreg): Likewise.
12763 * stmt.c (expand_case): Likewise.
12764 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
12765 signop rather than a bool.
12766 * stor-layout.c (layout_type): Use wide-int interfaces.
12767 (initialize_sizetypes): Update calls to
12768 set_min_and_max_values_for_integral_type.
12769 (set_min_and_max_values_for_integral_type): Take a signop rather
12770 than a bool. Use wide-int interfaces.
12771 (fixup_signed_type): Update accordingly. Remove
12772 HOST_BITS_PER_DOUBLE_INT limit.
12773 (fixup_unsigned_type): Likewise.
12774 * system.h (STATIC_CONSTANT_P): New.
12775 (STATIC_ASSERT): New.
12776 * target.def (can_use_doloop_p): Take widest_ints rather than
12777 double_ints.
12778 * target.h: Include wide-int.h rather than double-int.h.
12779 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
12780 than double_ints.
12781 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
12782 rather than INT_CST_LT_UNSIGNED.
12783 (can_use_doloop_if_innermost): Take widest_ints rather than
12784 double_ints.
12785 * tree-affine.c: Include wide-int-print.h.
12786 (double_int_ext_for_comb): Delete.
12787 (wide_int_ext_for_comb): New.
12788 (aff_combination_zero): Use wide-int interfaces.
12789 (aff_combination_const): Take a widest_int instead of a double_int.
12790 (aff_combination_elt): Use wide-int interfaces.
12791 (aff_combination_scale): Take a widest_int instead of a double_int.
12792 (aff_combination_add_elt): Likewise.
12793 (aff_combination_add_cst): Likewise.
12794 (aff_combination_add): Use wide-int interfaces.
12795 (aff_combination_convert): Likewise.
12796 (tree_to_aff_combination): Likewise.
12797 (add_elt_to_tree): Take a widest_int instead of a double_int.
12798 (aff_combination_to_tree): Use wide-int interfaces.
12799 (aff_combination_remove_elt): Likewise.
12800 (aff_combination_add_product): Take a widest_int instead of
12801 a double_int.
12802 (aff_combination_mult): Use wide-int interfaces.
12803 (aff_combination_expand): Likewise.
12804 (double_int_constant_multiple_p): Delete.
12805 (wide_int_constant_multiple_p): New.
12806 (aff_combination_constant_multiple_p): Take a widest_int pointer
12807 instead of a double_int pointer.
12808 (print_aff): Use wide-int interfaces.
12809 (get_inner_reference_aff): Take a widest_int pointer
12810 instead of a double_int pointer.
12811 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
12812 * tree-affine.h: Include wide-int.h.
12813 (struct aff_comb_elt): Change type of coef to widest_int.
12814 (struct affine_tree_combination): Change type of offset to widest_int.
12815 (double_int_ext_for_comb): Delete.
12816 (wide_int_ext_for_comb): New.
12817 (aff_combination_const): Use widest_int instead of double_int.
12818 (aff_combination_scale): Likewise.
12819 (aff_combination_add_elt): Likewise.
12820 (aff_combination_constant_multiple_p): Likewise.
12821 (get_inner_reference_aff): Likewise.
12822 (aff_comb_cannot_overlap_p): Likewise.
12823 (aff_combination_zero_p): Use wide-int interfaces.
12824 * tree.c: Include tree.h.
12825 (init_ttree): Use make_int_cst.
12826 (tree_code_size): Removed code for INTEGER_CST case.
12827 (tree_size): Add INTEGER_CST case.
12828 (make_node_stat): Update comment.
12829 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
12830 (build_int_cst_type): Use wide-int interfaces.
12831 (double_int_to_tree): Likewise.
12832 (double_int_fits_to_tree_p): Delete.
12833 (force_fit_type_double): Delete.
12834 (force_fit_type): New.
12835 (int_cst_hash_hash): Use wide-int interfaces.
12836 (int_cst_hash_eq): Likewise.
12837 (build_int_cst_wide): Delete.
12838 (wide_int_to_tree): New.
12839 (cache_integer_cst): Use wide-int interfaces.
12840 (build_low_bits_mask): Likewise.
12841 (cst_and_fits_in_hwi): Likewise.
12842 (real_value_from_int_cst): Likewise.
12843 (make_int_cst_stat): New.
12844 (integer_zerop): Use wide_int interfaces.
12845 (integer_onep): Likewise.
12846 (integer_all_onesp): Likewise.
12847 (integer_pow2p): Likewise.
12848 (integer_nonzerop): Likewise.
12849 (tree_log2): Likewise.
12850 (tree_floor_log2): Likewise.
12851 (tree_ctz): Likewise.
12852 (int_size_in_bytes): Likewise.
12853 (mem_ref_offset): Return an offset_int rather than a double_int.
12854 (build_type_attribute_qual_variant): Use wide_int interfaces.
12855 (type_hash_eq): Likewise
12856 (tree_int_cst_equal): Likewise.
12857 (tree_int_cst_lt): Delete.
12858 (tree_int_cst_compare): Likewise.
12859 (tree_fits_shwi_p): Use wide_int interfaces.
12860 (tree_fits_uhwi_p): Likewise.
12861 (tree_int_cst_sign_bit): Likewise.
12862 (tree_int_cst_sgn): Likewise.
12863 (tree_int_cst_min_precision): Take a signop rather than a bool.
12864 (simple_cst_equal): Use wide_int interfaces.
12865 (compare_tree_int): Likewise.
12866 (iterative_hash_expr): Likewise.
12867 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
12868 INT_CST_LT.
12869 (get_type_static_bounds): Use wide_int interfaces.
12870 (tree_int_cst_elt_check_failed): New.
12871 (build_common_tree_nodes): Reordered to set prec before filling in
12872 value.
12873 (int_cst_value): Check cst_and_fits_in_hwi.
12874 (widest_int_cst_value): Use wide_int interfaces.
12875 (upper_bound_in_type): Likewise.
12876 (lower_bound_in_type): Likewise.
12877 (num_ending_zeros): Likewise.
12878 (drop_tree_overflow): Likewise.
12879 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
12880 (gen_conditions_for_pow_cst_base): Likewise.
12881 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
12882 (group_case_labels_stmt): Use wide-int interfaces.
12883 (verify_gimple_assign_binary): Likewise.
12884 (print_loop): Likewise.
12885 * tree-chrec.c (tree_fold_binomial): Likewise.
12886 * tree-core.h (struct tree_base): Add int_length.
12887 (struct tree_int_cst): Change rep of value.
12888 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
12889 (dr_may_alias_p): Likewise.
12890 (max_stmt_executions_tree): Likewise.
12891 * tree.def (INTEGER_CST): Update comment.
12892 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
12893 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
12894 * tree-dump.c: Include wide-int.h and wide-int-print.h.
12895 (dequeue_and_dump): Use wide-int interfaces.
12896 * tree.h: Include wide-int.h.
12897 (NULL_TREE): Moved to earlier loc in file.
12898 (TREE_INT_CST_ELT_CHECK): New.
12899 (tree_int_cst_elt_check_failed): New.
12900 (TYPE_SIGN): New.
12901 (TREE_INT_CST): Delete.
12902 (TREE_INT_CST_LOW): Use wide-int interfaces.
12903 (TREE_INT_CST_HIGH): Delete.
12904 (TREE_INT_CST_NUNITS): New.
12905 (TREE_INT_CST_EXT_NUNITS): Likewise.
12906 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
12907 (TREE_INT_CST_ELT): Likewise.
12908 (INT_CST_LT): Delete.
12909 (tree_int_cst_elt_check): New (two forms).
12910 (type_code_size): Update comment.
12911 (make_int_cst_stat, make_int_cst): New.
12912 (tree_to_double_int): Delete.
12913 (double_int_fits_to_tree_p): Delete.
12914 (force_fit_type_double): Delete.
12915 (build_int_cstu): Replace with out-of-line function.
12916 (build_int_cst_wide): Delete.
12917 (tree_int_cst_lt): Define inline.
12918 (tree_int_cst_le): New.
12919 (tree_int_cst_compare): Define inline.
12920 (tree_int_cst_min_precision): Take a signop rather than a bool.
12921 (wi::int_traits <const_tree>): New.
12922 (wi::int_traits <tree>): New.
12923 (wi::extended_tree): New.
12924 (wi::int_traits <wi::extended_tree>): New.
12925 (wi::to_widest): New.
12926 (wi::to_offset): New.
12927 (wi::fits_to_tree_p): New.
12928 (wi::min_value): New.
12929 (wi::max_value): New.
12930 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
12931 (copy_tree_body_r): Likewise.
12932 * tree-object-size.c (compute_object_offset): Likewise.
12933 (addr_object_size): Likewise.
12934 * tree-predcom.c: Include wide-int-print.h.
12935 (struct dref_d): Change type of offset to widest_int.
12936 (dump_dref): Call wide-int printer.
12937 (aff_combination_dr_offset): Use wide-int interfaces.
12938 (determine_offset): Take a widest_int pointer rather than a
12939 double_int pointer.
12940 (split_data_refs_to_components): Use wide-int interfaces.
12941 (suitable_component_p): Likewise.
12942 (order_drefs): Likewise.
12943 (add_ref_to_chain): Likewise.
12944 (valid_initializer_p): Likewise.
12945 (determine_roots_comp): Likewise.
12946 * tree-pretty-print.c: Include wide-int-print.h.
12947 (dump_generic_node): Use wide-int interfaces.
12948 * tree-sra.c (sra_ipa_modify_expr): Likewise.
12949 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12950 (move_fixed_address_to_symbol): Likewise.
12951 (move_hint_to_base): Likewise.
12952 (move_pointer_to_base): Likewise.
12953 (move_variant_to_index): Likewise.
12954 (most_expensive_mult_to_index): Likewise.
12955 (addr_to_parts): Likewise.
12956 (copy_ref_info): Likewise.
12957 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12958 (indirect_refs_may_alias_p): Likewise.
12959 (stmt_kills_ref_p_1): Likewise.
12960 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12961 * tree-ssa-ccp.c: Update comment at top of file. Include
12962 wide-int-print.h.
12963 (struct prop_value_d): Change type of mask to widest_int.
12964 (extend_mask): New function.
12965 (dump_lattice_value): Use wide-int interfaces.
12966 (get_default_value): Likewise.
12967 (set_constant_value): Likewise.
12968 (set_value_varying): Likewise.
12969 (valid_lattice_transition): Likewise.
12970 (set_lattice_value): Likewise.
12971 (value_to_double_int): Delete.
12972 (value_to_wide_int): New.
12973 (get_value_from_alignment): Use wide-int interfaces.
12974 (get_value_for_expr): Likewise.
12975 (do_dbg_cnt): Likewise.
12976 (ccp_finalize): Likewise.
12977 (ccp_lattice_meet): Likewise.
12978 (bit_value_unop_1): Use widest_ints rather than double_ints.
12979 (bit_value_binop_1): Likewise.
12980 (bit_value_unop): Use wide-int interfaces.
12981 (bit_value_binop): Likewise.
12982 (bit_value_assume_aligned): Likewise.
12983 (evaluate_stmt): Likewise.
12984 (ccp_fold_stmt): Likewise.
12985 (visit_cond_stmt): Likewise.
12986 (ccp_visit_stmt): Likewise.
12987 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12988 (constant_pointer_difference): Likewise.
12989 (associate_pointerplus): Likewise.
12990 (combine_conversions): Likewise.
12991 * tree-ssa-loop.h: Include wide-int.h.
12992 (struct tree_niter_desc): Change type of max to widest_int.
12993 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
12994 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
12995 (remove_redundant_iv_tests): Likewise.
12996 (canonicalize_loop_induction_variables): Likewise.
12997 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
12998 (constant_multiple_of): Take a widest_int pointer instead of
12999 a double_int pointer.
13000 (get_computation_aff): Use wide-int interfaces.
13001 (ptr_difference_cost): Likewise.
13002 (difference_cost): Likewise.
13003 (get_loop_invariant_expr_id): Likewise.
13004 (get_computation_cost_at): Likewise.
13005 (iv_elimination_compare_lt): Likewise.
13006 (may_eliminate_iv): Likewise.
13007 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
13008 instead of double_int.
13009 (max_loop_iterations): Likewise.
13010 (max_stmt_executions): Likewise.
13011 (estimated_stmt_executions): Likewise.
13012 * tree-ssa-loop-niter.c: Include wide-int-print.h.
13013 (split_to_var_and_offset): Use wide-int interfaces.
13014 (determine_value_range): Likewise.
13015 (bound_difference_of_offsetted_base): Likewise.
13016 (bounds_add): Take a widest_int instead of a double_int.
13017 (number_of_iterations_ne_max): Use wide-int interfaces.
13018 (number_of_iterations_ne): Likewise.
13019 (number_of_iterations_lt_to_ne): Likewise.
13020 (assert_loop_rolls_lt): Likewise.
13021 (number_of_iterations_lt): Likewise.
13022 (number_of_iterations_le): Likewise.
13023 (number_of_iterations_cond): Likewise.
13024 (number_of_iterations_exit): Likewise.
13025 (finite_loop_p): Likewise.
13026 (derive_constant_upper_bound_assign): Likewise.
13027 (derive_constant_upper_bound): Return a widest_int.
13028 (derive_constant_upper_bound_ops): Likewise.
13029 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
13030 (record_estimate): Take a widest_int rather than a double_int.
13031 (record_nonwrapping_iv): Use wide-int interfaces.
13032 (double_int_cmp): Delete.
13033 (wide_int_cmp): New.
13034 (bound_index): Take a widest_int rather than a double_int.
13035 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
13036 (maybe_lower_iteration_bound): Likewise.
13037 (estimate_numbers_of_iterations_loop): Likewise.
13038 (estimated_loop_iterations): Take a widest_int pointer than than
13039 a double_int pointer.
13040 (estimated_loop_iterations_int): Use wide-int interfaces.
13041 (max_loop_iterations): Take a widest_int pointer than than
13042 a double_int pointer.
13043 (max_loop_iterations_int): Use wide-int interfaces.
13044 (max_stmt_executions): Take a widest_int pointer than than
13045 a double_int pointer.
13046 (estimated_stmt_executions): Likewise.
13047 (n_of_executions_at_most): Use wide-int interfaces.
13048 (scev_probably_wraps_p): Likewise.
13049 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
13050 to real_to_integer.
13051 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
13052 interfaces.
13053 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
13054 double_ints. Adjust for trailing_wide_ints <3> representation.
13055 (set_nonzero_bits): Likewise.
13056 (get_range_info): Return wide_ints rather than double_ints.
13057 Adjust for trailing_wide_ints <3> representation.
13058 (get_nonzero_bits): Likewise.
13059 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
13060 representation.
13061 * tree-ssanames.h (struct range_info_def): Replace min, max and
13062 nonzero_bits with a trailing_wide_ints <3>.
13063 (set_range_info): Use wide_int_refs rather than double_ints.
13064 (set_nonzero_bits): Likewise.
13065 (get_range_info): Return wide_ints rather than double_ints.
13066 (get_nonzero_bits): Likewise.
13067 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
13068 * tree-ssa-pre.c (phi_translate_1): Likewise.
13069 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
13070 (acceptable_pow_call): Likewise.
13071 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
13072 interfaces.
13073 (vn_reference_fold_indirect): Likewise.
13074 (vn_reference_maybe_forwprop_address): Likewise.
13075 (valueize_refs_1): Likewise.
13076 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13077 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
13078 tree_int_cst_lt and tree_int_cst_le.
13079 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
13080 interfaces.
13081 (streamer_alloc_tree): Likewise.
13082 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
13083 (streamer_write_tree_header): Likewise.
13084 (streamer_write_integer_cst): Likewise.
13085 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13086 (build_constructors): Likewise.
13087 (array_value_type): Likewise.
13088 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
13089 (vect_check_gather): Likewise.
13090 * tree-vect-generic.c (build_replicated_const): Likewise.
13091 (expand_vector_divmod): Likewise.
13092 * tree-vect-loop.c (vect_transform_loop): Likewise.
13093 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13094 (vect_do_peeling_for_alignment): Likewise.
13095 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13096 * tree-vrp.c: Include wide-int.h.
13097 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
13098 (extract_range_from_assert): Use wide-int interfaces.
13099 (vrp_int_const_binop): Likewise.
13100 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
13101 double_int pointers.
13102 (ranges_from_anti_range): Use wide-int interfaces.
13103 (quad_int_cmp): Delete.
13104 (quad_int_pair_sort): Likewise.
13105 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13106 (extract_range_from_unary_expr_1): Likewise.
13107 (adjust_range_with_scev): Likewise.
13108 (masked_increment): Take and return wide_ints rather than double_ints.
13109 (register_edge_assert_for_2): Use wide-int interfaces.
13110 (check_array_ref): Likewise.
13111 (search_for_addr_array): Likewise.
13112 (maybe_set_nonzero_bits): Likewise.
13113 (union_ranges): Pass an integer of the correct type instead of
13114 using integer_one_node.
13115 (intersect_ranges): Likewise.
13116 (simplify_truth_ops_using_ranges): Likewise.
13117 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13118 (range_fits_type_p): Likewise.
13119 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13120 a bool.
13121 (simplify_conversion_using_ranges): Use wide-int interfaces.
13122 (simplify_float_conversion_using_ranges): Likewise.
13123 (vrp_finalize): Likewise.
13124 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13125 (gimple_stringops_transform): Likewise.
13126 * varasm.c (decode_addr_const): Likewise.
13127 (const_hash_1): Likewise.
13128 (const_rtx_hash_1): Likewise
13129 (output_constant): Likewise.
13130 (array_size_for_constructor): Likewise.
13131 (output_constructor_regular_field): Likewise.
13132 (output_constructor_bitfield): Likewise.
13133 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13134 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13135 GENERATOR_FILEs.
13136 * gencheck.c: Define BITS_PER_UNIT.
13137 * wide-int.cc: New.
13138 * wide-int.h: New.
13139 * wide-int-print.cc: New.
13140 * wide-int-print.h: New.
13141
13142 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13143
13144 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13145
13146 2014-05-06 Richard Biener <rguenther@suse.de>
13147
13148 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13149 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13150 (TODO_verify_all): Adjust.
13151 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13152 TODO_verify_stmts and TODO_verify_rtl_sharing.
13153 * bb-reorder.c: Likewise.
13154 * cfgexpand.c: Likewise.
13155 * cprop.c: Likewise.
13156 * cse.c: Likewise.
13157 * function.c: Likewise.
13158 * fwprop.c: Likewise.
13159 * gcse.c: Likewise.
13160 * gimple-ssa-isolate-paths.c: Likewise.
13161 * gimple-ssa-strength-reduction.c: Likewise.
13162 * ipa-split.c: Likewise.
13163 * loop-init.c: Likewise.
13164 * loop-unroll.c: Likewise.
13165 * lower-subreg.c: Likewise.
13166 * modulo-sched.c: Likewise.
13167 * postreload-gcse.c: Likewise.
13168 * predict.c: Likewise.
13169 * recog.c: Likewise.
13170 * sched-rgn.c: Likewise.
13171 * store-motion.c: Likewise.
13172 * tracer.c: Likewise.
13173 * trans-mem.c: Likewise.
13174 * tree-call-cdce.c: Likewise.
13175 * tree-cfg.c: Likewise.
13176 * tree-cfgcleanup.c: Likewise.
13177 * tree-complex.c: Likewise.
13178 * tree-eh.c: Likewise.
13179 * tree-emutls.c: Likewise.
13180 * tree-if-conv.c: Likewise.
13181 * tree-into-ssa.c: Likewise.
13182 * tree-loop-distribution.c: Likewise.
13183 * tree-object-size.c: Likewise.
13184 * tree-parloops.c: Likewise.
13185 * tree-pass.h: Likewise.
13186 * tree-sra.c: Likewise.
13187 * tree-ssa-ccp.c: Likewise.
13188 * tree-ssa-copy.c: Likewise.
13189 * tree-ssa-copyrename.c: Likewise.
13190 * tree-ssa-dce.c: Likewise.
13191 * tree-ssa-dom.c: Likewise.
13192 * tree-ssa-dse.c: Likewise.
13193 * tree-ssa-forwprop.c: Likewise.
13194 * tree-ssa-ifcombine.c: Likewise.
13195 * tree-ssa-loop-ch.c: Likewise.
13196 * tree-ssa-loop-ivcanon.c: Likewise.
13197 * tree-ssa-loop.c: Likewise.
13198 * tree-ssa-math-opts.c: Likewise.
13199 * tree-ssa-phiopt.c: Likewise.
13200 * tree-ssa-phiprop.c: Likewise.
13201 * tree-ssa-pre.c: Likewise.
13202 * tree-ssa-reassoc.c: Likewise.
13203 * tree-ssa-sink.c: Likewise.
13204 * tree-ssa-strlen.c: Likewise.
13205 * tree-ssa-tail-merge.c: Likewise.
13206 * tree-ssa-uncprop.c: Likewise.
13207 * tree-switch-conversion.c: Likewise.
13208 * tree-tailcall.c: Likewise.
13209 * tree-vect-generic.c: Likewise.
13210 * tree-vectorizer.c: Likewise.
13211 * tree-vrp.c: Likewise.
13212 * tsan.c: Likewise.
13213 * var-tracking.c: Likewise.
13214 * bt-load.c: Likewise.
13215 * cfgcleanup.c: Likewise.
13216 * combine-stack-adj.c: Likewise.
13217 * combine.c: Likewise.
13218 * compare-elim.c: Likewise.
13219 * config/epiphany/resolve-sw-modes.c: Likewise.
13220 * config/i386/i386.c: Likewise.
13221 * config/mips/mips.c: Likewise.
13222 * config/s390/s390.c: Likewise.
13223 * config/sh/sh_treg_combine.cc: Likewise.
13224 * config/sparc/sparc.c: Likewise.
13225 * dce.c: Likewise.
13226 * dse.c: Likewise.
13227 * final.c: Likewise.
13228 * ifcvt.c: Likewise.
13229 * mode-switching.c: Likewise.
13230 * passes.c: Likewise.
13231 * postreload.c: Likewise.
13232 * ree.c: Likewise.
13233 * reg-stack.c: Likewise.
13234 * regcprop.c: Likewise.
13235 * regrename.c: Likewise.
13236 * web.c: Likewise.
13237
13238 2014-05-06 Richard Biener <rguenther@suse.de>
13239
13240 PR middle-end/61070
13241 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13242 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13243
13244 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13245
13246 PR ipa/60965
13247 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13248
13249 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13250 Tom de Vries <tom@codesourcery.com>
13251
13252 * target.def (call_fusage_contains_non_callee_clobbers): New
13253 DEFHOOKPOD.
13254 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13255 Hooks to @menu.
13256 (@node Miscellaneous Register Hooks): New node.
13257 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13258 * doc/tm.texi: Regenerate.
13259
13260 2014-05-05 Marek Polacek <polacek@redhat.com>
13261
13262 PR driver/61065
13263 * opts.c (common_handle_option): Call error_at instead of warning_at.
13264
13265 2014-05-05 Richard Biener <rguenther@suse.de>
13266
13267 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13268 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13269 under the TODO_verify_il umbrella.
13270
13271 2014-05-05 Richard Biener <rguenther@suse.de>
13272
13273 * passes.c (execute_function_todo): Move TODO_verify_flow under
13274 the TODO_verify_ul umbrella.
13275
13276 2014-05-05 Richard Biener <rguenther@suse.de>
13277
13278 PR middle-end/61010
13279 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13280 X & CST away from a CST that is the mask of a mode.
13281
13282 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13283
13284 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13285 int argument to enum machine_mode.
13286 (picochip_class_max_nregs): Ditto.
13287 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13288 (picochip_class_max_nregs): Ditto.
13289
13290 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13291
13292 * target.def: Add new target hook.
13293 * doc/tm.texi: Regenerate.
13294 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13295 * targhooks.c (default_keep_leaf_when_profiled): New function.
13296
13297 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13298 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13299
13300 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13301
13302 PR tree-optimization/60363
13303 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13304 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13305 (update_destination_phis): New parameter.
13306 (create_edge_and_update_destination_phis): Ditto.
13307 (ssa_fix_duplicate_block_edges): Pass new arguments.
13308 (thread_single_edge): Ditto.
13309
13310 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13311
13312 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13313 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13314 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13315 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13316 Use RS6000_BTM_HARD_FLOAT.
13317 (BU_MISC_2): Likewise.
13318 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13319 RS6000_BTM_HARD_FLOAT.
13320 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13321 is explicitly used.
13322 (rs6000_invalid_builtin): Add hard floating builtin support.
13323 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13324 hard float builtins.
13325 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13326
13327 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13328
13329 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13330 Add missing function* argument.
13331
13332 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13333
13334 * lra-constraints.c (valid_address_p): Move earlier in file.
13335 Add a constraint argument to the address_info version.
13336 (satisfies_memory_constraint_p): New function.
13337 (satisfies_address_constraint_p): Likewise.
13338 (process_alt_operands, curr_insn_transform): Use them.
13339 (process_address): Pass the constraint to valid_address_p when
13340 checking address operands.
13341
13342 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13343
13344 * config/mips/mips.c (mips_isa_rev): New variable.
13345 (mips_set_architecture): Set it.
13346 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13347 from mips_isa_rev.
13348 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13349 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13350 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13351 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13352 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13353 conditions in terms of mips_isa_rev.
13354 (mips_isa_rev): Declare.
13355
13356 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13357
13358 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13359 (prob_unlikely, prob_likely): Make variables const.
13360
13361 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13362
13363 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13364
13365 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13366
13367 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13368
13369 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13370
13371 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13372 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13373 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13374 functions.
13375 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13376 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13377 sh_pass_in_reg_p.
13378 Replace usage of ROUND_REG with sh_round_reg.
13379 Use CEIL instead of ROUND_ADVANCE.
13380
13381 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13382
13383 PR target/61026
13384 * config/sh/sh.c: Include stdlib headers before everything else.
13385
13386 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13387
13388 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13389 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13390 (gimplify_adjust_omp_clauses): Simd region is never
13391 directly nested in combined parallel. Instead, for linear
13392 with copyin/copyout, if in combined for simd loop, make decl
13393 firstprivate/lastprivate on OMP_FOR.
13394 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13395 expand_omp_for_static_chunk): When setting endvar, also set
13396 fd->loop.v to the same value.
13397
13398 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13399
13400 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13401
13402 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13403
13404 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13405 expression.
13406
13407 2014-05-02 Marek Polacek <polacek@redhat.com>
13408
13409 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13410
13411 2014-05-02 Kito Cheng <kito@0xlab.org>
13412
13413 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13414 to a C expression marco.
13415 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13416 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13417 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13418 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13419 HONOR_REG_ALLOC_ORDER.
13420 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13421
13422 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13423
13424 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13425
13426 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13427
13428 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13429
13430 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13431
13432 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13433 (convert_scalar_cond_reduction): Likewise.
13434 (predicate_scalar_phi): Add recognition and transformation
13435 of simple conditioanl reduction to be vectorizable.
13436
13437 2014-05-01 Marek Polacek <polacek@redhat.com>
13438
13439 PR c/43245
13440 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13441
13442 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13443
13444 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13445 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13446 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13447 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13448 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13449 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13450 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13451 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13452
13453 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13454
13455 * config/arc/arc.opt (mlra): Move comment above option name
13456 to avoid mis-parsing as language options.
13457
13458 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13459
13460 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13461 * config/sol2.h: ... here.
13462 * config/sol2-10.h: Remove.
13463
13464 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13465 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13466 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13467 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13468 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13469 * config/sol2.h: ... here.
13470 (SECTION_NAME_FORMAT): Don't redefine.
13471 (STARTFILE_ARCH32_SPEC): Rename to ...
13472 (STARTFILE_ARCH_SPEC): ... this.
13473 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13474 * config/sparc/sol2.h: ... here.
13475 (SECTION_NAME_FORMAT): Don't undef.
13476 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13477 (SUBTARGET_EXTRA_SPECS): Remove.
13478 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13479
13480 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13481 (MD_STARTFILE_PREFIX): Remove.
13482 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13483 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13484 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13485 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13486 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13487 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13488 * config/i386/sol2.h: ... here.
13489 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13490 * config/i386/sol2-bi.h: Remove.
13491 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13492 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13493
13494 * config/i386/t-sol2-64: Rename to ...
13495 * config/i386/t-sol2: ... this.
13496 * config/sparc/t-sol2-64: Rename to ...
13497 * config/sparc/t-sol2: ... this.
13498
13499 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13500 sol2_tm_file_head, sol2_tm_file_tail.
13501 Include ${cpu_type}/sol2.h before sol2.h.
13502 Remove sol2-10.h.
13503 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13504 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13505 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13506 Reflect i386/t-sol2-64 renaming.
13507 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13508 Reflect sparc/t-sol2-64 renaming.
13509
13510 2014-04-30 Richard Biener <rguenther@suse.de>
13511
13512 * passes.c (execute_function_todo): Move TODO_verify_stmts
13513 and TODO_verify_ssa under the TODO_verify_il umbrella.
13514 * tree-ssa.h (verify_ssa): Adjust prototype.
13515 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13516 we should verify SSA operands.
13517 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13518 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13519 whether we should verify whether not throwing stmts have EH info.
13520 * graphite-scop-detection.c (create_sese_edges): Adjust.
13521 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13522 * tree-eh.c (lower_try_finally_switch): Do not add the
13523 default case label twice.
13524
13525 2014-04-30 Marek Polacek <polacek@redhat.com>
13526
13527 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13528 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13529 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13530 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13531
13532 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13533
13534 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13535 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13536 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13537 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13538 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13539 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13540 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13541 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13542
13543 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13544
13545 * tree-cfg.c (dump_function_to_file): Dump the return type of
13546 functions, in a line to itself before the function body, mimicking
13547 the layout of a C function.
13548
13549 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13550
13551 PR tree-optimization/60971
13552 * tree-tailcall.c (process_assignment): Reject conversions which
13553 reduce precision.
13554
13555 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13556
13557 * calls.c (initialize_argument_information): Always treat
13558 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13559 (expand_call): Likewise.
13560 (emit_library_call_calue_1): Likewise.
13561 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13562 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13563 code accordingly.
13564
13565 2014-04-29 Nick Clifton <nickc@redhat.com>
13566
13567 * config/msp430/msp430.md (umulsidi): Fix typo.
13568 (mulhisi3): Enable even inside interrupt handlers.
13569 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13570 bigger return address pushed in large mode.
13571
13572 2014-04-29 Nick Clifton <nickc@redhat.com>
13573
13574 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13575 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13576 available modes.
13577 * config/m32r/m32r.c (init_reg_tables): Likewise.
13578 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13579 enum to hold the modes.
13580
13581 2014-04-29 Richard Biener <rguenther@suse.de>
13582
13583 * dominance.c (free_dominance_info): Add overload with
13584 function parameter.
13585 (dom_info_state): Likewise.
13586 (dom_info_available_p): Likewise.
13587 * basic-block.h (free_dominance_info, dom_info_state,
13588 dom_info_available_p): Declare overloads.
13589 * passes.c (execute_function_todo): Verify that verifiers
13590 don't change dominator info state. Drop dominator info
13591 for IPA pass invocations.
13592 * cgraph.c (release_function_body): Restore asserts that
13593 dominator information is released.
13594
13595 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13596
13597 * doc/invoke.texi: Fix typo.
13598 * tree-vrp.c: Fix typos.
13599 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13600
13601 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13602
13603 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13604
13605 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13606
13607 * config/aarch64/aarch64-builtins.c
13608 (aarch64_types_storestruct_lane_qualifiers): New.
13609 (TYPES_STORESTRUCT_LANE): Likewise.
13610 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13611 (st3_lane): Likewise.
13612 (st4_lane): Likewise.
13613 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13614 (vec_store_lanesci_lane<mode>): Likewise.
13615 (vec_store_lanesxi_lane<mode>): Likewise.
13616 (aarch64_st2_lane<VQ:mode>): Likewise.
13617 (aarch64_st3_lane<VQ:mode>): Likewise.
13618 (aarch64_st4_lane<VQ:mode>): Likewise.
13619 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13620 * config/aarch64/arm_neon.h
13621 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13622 use new macro arguments.
13623 (__ST3_LANE_FUNC): Likewise.
13624 (__ST4_LANE_FUNC): Likewise.
13625 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13626 (V_THREE_ELEM): Likewise.
13627 (V_FOUR_ELEM): Likewise.
13628
13629 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13630
13631 * doc/gimple.texi: Replace the description of the now-defunct
13632 union gimple_statement_d with a diagram showing the
13633 gimple_statement_base class hierarchy and its relationships to
13634 the GSS_ and GIMPLE_ enums.
13635
13636 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13637
13638 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13639 * config/aarch64/aarch64.c
13640 (aarch64_cannot_change_mode_class): Weaken conditions.
13641 (aarch64_modes_tieable_p): New.
13642 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13643
13644 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13645
13646 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13647 (loadsync_<mode>): Change mode.
13648 (load_quadpti, store_quadpti): New.
13649 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13650 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13651
13652 2014-04-28 Martin Jambor <mjambor@suse.cz>
13653
13654 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13655 same alias type as the original statement.
13656 (subreplacement_assignment_data): New type.
13657 (handle_unscalarized_data_in_subtree): New type of parameter,
13658 generate new memory accesses with same alias type as the original
13659 statement.
13660 (load_assign_lhs_subreplacements): Likewise.
13661 (sra_modify_constructor_assign): Generate new memory accesses with
13662 same alias type as the original statement.
13663
13664 2014-04-28 Richard Biener <rguenther@suse.de>
13665
13666 * tree-pass.h (TODO_verify_il): Define.
13667 (TODO_verify_all): Complete properly.
13668 * passes.c (execute_function_todo): Move existing loop-closed
13669 SSA verification under TODO_verify_il.
13670 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13671 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13672 Fix tree sharing issue.
13673
13674 2014-04-28 Richard Biener <rguenther@suse.de>
13675
13676 PR middle-end/60092
13677 * builtins.def (DEF_C11_BUILTIN): Add.
13678 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13679 * coretypes.h (enum function_class): Add function_c11_misc.
13680 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13681 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13682 (call_may_clobber_ref_p_1): Likewise.
13683 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13684 (mark_all_reaching_defs_necessary_1): Likewise.
13685 (propagate_necessity): Likewise.
13686 (eliminate_unnecessary_stmts): Likewise.
13687 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13688
13689 2014-04-28 Richard Biener <rguenther@suse.de>
13690
13691 * tree-vrp.c (vrp_var_may_overflow): Remove.
13692 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13693 with overflow immediately bump to one before that value and
13694 let iteration figure out overflow status.
13695
13696 2014-04-28 Richard Biener <rguenther@suse.de>
13697
13698 * configure.ac: Do valgrind header checks unconditionally.
13699 Add --enable-valgrind-annotations.
13700 * system.h: Guard valgrind header inclusion with
13701 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
13702 * alloc-pool.c (pool_alloc, pool_free): Use
13703 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
13704 to guard possibly dead code.
13705 * config.in: Regenerated.
13706 * configure: Likewise.
13707
13708 2014-04-28 Jeff Law <law@redhat.com>
13709
13710 PR tree-optimization/60902
13711 * tree-ssa-threadedge.c
13712 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
13713 over real defs when invalidating outputs from statements that do not
13714 produce useful outputs for threading.
13715
13716 2014-04-28 Richard Biener <rguenther@suse.de>
13717
13718 PR tree-optimization/60979
13719 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
13720 SCOPs that end in a block with a successor with abnormal
13721 predecessors.
13722
13723 2014-04-28 Richard Biener <rguenther@suse.de>
13724
13725 * tree-pass.h (execute_pass_list): Adjust prototype.
13726 * passes.c (pass_manager::execute_early_local_passes): Adjust.
13727 (do_per_function): Change callback signature, push all actual
13728 work to the callbals.
13729 (do_per_function_toporder): Likewise.
13730 (execute_function_dump): Adjust.
13731 (execute_function_todo): Likewise.
13732 (clear_last_verified): Likewise.
13733 (verify_curr_properties): Likewise.
13734 (update_properties_after_pass): Likewise.
13735 (execute_pass_list_1): Split out from ...
13736 (execute_pass_list): ... here. Adjust.
13737 (execute_ipa_pass_list): Likewise.
13738 * cgraphunit.c (cgraph_add_new_function): Adjust.
13739 (analyze_function): Likewise.
13740 (expand_function): Likewise.
13741 * cgraph.c (release_function_body): Free dominance info
13742 here instead of asserting it was magically freed elsewhere.
13743
13744 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
13745
13746 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
13747 * configure: Regenerate.
13748 * config/sparc/sparc.opt (muser-mode): New option.
13749 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
13750 for LEON3.
13751 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
13752 * doc/invoke.texi (SPARC options): Document -muser-mode.
13753
13754 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
13755
13756 * cselib.c (find_slot_memmode): Delete.
13757 (cselib_hasher): Change compare_type to a struct.
13758 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
13759 constants.
13760 (preserve_constants_and_equivs): Adjust for new compare_type.
13761 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
13762 (wrap_constant): Delete.
13763 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
13764
13765 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13766
13767 * doc/install.texi (Building with profile feedback): Remove
13768 outdated sentence.
13769
13770 2014-04-26 Tom de Vries <tom@codesourcery.com>
13771
13772 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
13773 array accesses.
13774
13775 2014-04-25 Cary Coutant <ccoutant@google.com>
13776
13777 PR debug/60929
13778 * dwarf2out.c (should_move_die_to_comdat): A type definition
13779 can contain a subprogram definition, but don't move it to a
13780 comdat unit.
13781 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
13782 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
13783 from original DIE.
13784 (clone_tree_hash): Rename to...
13785 (clone_tree_partial): ...this; change callers. Copy
13786 DW_TAG_subprogram DIEs as declarations.
13787 (copy_decls_walk): Don't copy children of a declaration into a
13788 type unit.
13789
13790 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
13791
13792 PR target/60969
13793 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
13794 alternative 12.
13795
13796 2014-04-25 Jiong Wang <jiong.wang@arm.com>
13797
13798 * config/arm/predicates.md (call_insn_operand): Add long_call check.
13799 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
13800 reg for long_call.
13801 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
13802 restriction.
13803
13804 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13805
13806 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
13807
13808 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13809
13810 PR tree-optimization/60930
13811 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
13812 creating a multiply candidate by folding two constant
13813 multiplicands when the result overflows.
13814
13815 2014-04-25 Jakub Jelinek <jakub@redhat.com>
13816
13817 PR tree-optimization/60960
13818 * tree-vect-generic.c (expand_vector_operation): Only call
13819 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
13820
13821 2014-04-25 Tom de Vries <tom@codesourcery.com>
13822
13823 * expr.c (clobber_reg_mode): New function.
13824 * expr.h (clobber_reg): New function.
13825
13826 2014-04-25 Tom de Vries <tom@codesourcery.com>
13827
13828 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
13829 clobbers.
13830
13831 2014-04-25 Radovan Obradovic <robradovic@mips.com>
13832 Tom de Vries <tom@codesourcery.com>
13833
13834 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
13835 handle.
13836 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
13837 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
13838 new argument to find_all_hard_reg_sets call.
13839
13840 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13841
13842 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
13843 Use HOST_WIDE_INT_C for mask literal.
13844 (aarch_rev16_shleft_mask_imm_p): Likewise.
13845
13846 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
13847
13848 PR target/60941
13849 * config/sparc/sparc.md (ashlsi3_extend): Delete.
13850
13851 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
13852
13853 PR preprocessor/56540
13854 * config/i386/i386-c.c (ix86_target_macros): Define
13855 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
13856
13857 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13858
13859 * configure.ac (tga_func): Remove.
13860 (LIB_TLS_SPEC): Remove.
13861 * configure: Regenerate.
13862 * config.in: Regenerate.
13863 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
13864
13865 2014-04-25 Richard Biener <rguenther@suse.de>
13866
13867 PR ipa/60912
13868 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
13869 call stmt use/clobber sets during stmt walk instead of
13870 walking the possibly incomplete set of caller edges.
13871
13872 2014-04-25 Richard Biener <rguenther@suse.de>
13873
13874 PR ipa/60911
13875 * passes.c (apply_ipa_transforms): Inline into only caller ...
13876 (execute_one_pass): ... here. Properly bring in function
13877 bodies for nodes we want to apply IPA transforms to.
13878
13879 2014-04-24 Cong Hou <congh@google.com>
13880
13881 PR tree-optimization/60896
13882 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
13883 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
13884 (vect_mark_pattern_stmts): Set the def type of all statements in
13885 PATTERN_DEF_SEQ as vect_internal_def.
13886
13887 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13888
13889 * doc/extend.texi (PowerPC Built-in Functions): Document new
13890 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
13891 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
13892
13893 * config/rs6000/predicates.md (const_0_to_3_operand): New
13894 predicate to match 0..3 integer constants.
13895
13896 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
13897 to support adding miscellaneous builtin functions.
13898 (BU_DFP_MISC_2): Likewise.
13899 (BU_P7_MISC_1): Likewise.
13900 (BU_P7_MISC_2): Likewise.
13901 (BU_P8V_MISC_3): Likewise.
13902 (BU_MISC_1): Likewise.
13903 (BU_MISC_2): Likewise.
13904 (DIVWE): Add extended divide builtin functions.
13905 (DIVWEO): Likewise.
13906 (DIVWEU): Likewise.
13907 (DIVWEUO): Likewise.
13908 (DIVDE): Likewise.
13909 (DIVDEO): Likewise.
13910 (DIVDEU): Likewise.
13911 (DIVDEUO): Likewise.
13912 (DXEX): Add decimal floating-point builtin functions.
13913 (DXEXQ): Likewise.
13914 (DDEDPD): Likewise.
13915 (DDEDPDQ): Likewise.
13916 (DENBCD): Likewise.
13917 (DENBCDQ): Likewise.
13918 (DIEX): Likewise.
13919 (DIEXQ): Likewise.
13920 (DSCLI): Likewise.
13921 (DSCLIQ): Likewise.
13922 (DSCRI): Likewise.
13923 (DSCRIQ): Likewise.
13924 (CDTBCD): Add new BCD builtin functions.
13925 (CBCDTD): Likewise.
13926 (ADDG6S): Likewise.
13927 (BCDADD): Likewise.
13928 (BCDADD_LT): Likewise.
13929 (BCDADD_EQ): Likewise.
13930 (BCDADD_GT): Likewise.
13931 (BCDADD_OV): Likewise.
13932 (BCDSUB): Likewise.
13933 (BCDSUB_LT): Likewise.
13934 (BCDSUB_EQ): Likewise.
13935 (BCDSUB_GT): Likewise.
13936 (BCDSUB_OV): Likewise.
13937 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
13938 (UNPACK_TD): Likewise.
13939 (PACK_TF): Likewise.
13940 (UNPACK_TF): Likewise.
13941 (UNPACK_TF_0): Likewise.
13942 (UNPACK_TF_1): Likewise.
13943 (PACK_V1TI): Likewise.
13944 (UNPACK_V1TI): Likewise.
13945
13946 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13947 support for decimal floating point builtin functions.
13948 (rs6000_expand_ternop_builtin): Add checks for the new builtin
13949 functions that take constant arguments.
13950 (rs6000_invalid_builtin): Add decimal floating point builtin support.
13951 (rs6000_init_builtins): Setup long double, _Decimal64, and
13952 _Decimal128 types for new builtin functions.
13953 (builtin_function_type): Set the unsigned flags appropriately for
13954 the new builtin functions.
13955 (rs6000_opt_masks): Add support for decimal floating point builtin
13956 functions.
13957
13958 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
13959 floating point builtin functions.
13960 (RS6000_BTM_COMMON): Likewise.
13961 (RS6000_BTI_long_double): Likewise.
13962 (RS6000_BTI_dfloat64): Likewise.
13963 (RS6000_BTI_dfloat128): Likewise.
13964 (long_double_type_internal_node): Likewise.
13965 (dfloat64_type_internal_node): Likewise.
13966 (dfloat128_type_internal_node): Likewise.
13967
13968 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
13969 2.07 bcd arithmetic instructions.
13970 (UNSPEC_BCDSUB): Likewise.
13971 (UNSPEC_BCD_OVERFLOW): Likewise.
13972 (UNSPEC_BCD_ADD_SUB): Likewise.
13973 (bcd_add_sub): Likewise.
13974 (BCD_TEST): Likewise.
13975 (bcd<bcd_add_sub>): Likewise.
13976 (bcd<bcd_add_sub>_test): Likewise.
13977 (bcd<bcd_add_sub>_test2): Likewise.
13978 (bcd<bcd_add_sub>_<code>): Likewise.
13979 (peephole2 for combined bcd ops): Likewise.
13980
13981 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
13982 decimal floating point builtin functions.
13983 (UNSPEC_DENBCD): Likewise.
13984 (UNSPEC_DXEX): Likewise.
13985 (UNSPEC_DIEX): Likewise.
13986 (UNSPEC_DSCLI): Likewise.
13987 (UNSPEC_DSCRI): Likewise.
13988 (D64_D128): Likewise.
13989 (dfp_suffix): Likewise.
13990 (dfp_ddedpd_<mode>): Likewise.
13991 (dfp_denbcd_<mode>): Likewise.
13992 (dfp_dxex_<mode>): Likewise.
13993 (dfp_diex_<mode>): Likewise.
13994 (dfp_dscli_<mode>): Likewise.
13995 (dfp_dscri_<mode>): Likewise.
13996
13997 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
13998 builtin functions.
13999 (UNSPEC_CDTBCD): Likewise.
14000 (UNSPEC_CBCDTD): Likewise.
14001 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
14002 (UNSPEC_DIVEO): Likewise.
14003 (UNSPEC_DIVEU): Likewise.
14004 (UNSPEC_DIVEUO): Likewise.
14005 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
14006 pack/unpack 128-bit types.
14007 (UNSPEC_PACK_128BIT): Likewise.
14008 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
14009 (udiv<mode>3): Use idiv_ldiv mode attribute.
14010 (div<mode>3): Likewise.
14011 (addg6s): Add new BCD builtin functions.
14012 (cdtbcd): Likewise.
14013 (cbcdtd): Likewise.
14014 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
14015 (div_extend): Likewise.
14016 (div<div_extend>_<mode>"): Likewise.
14017 (FP128_64): Add support for new builtin functions to pack/unpack
14018 128-bit types.
14019 (unpack<mode>): Likewise.
14020 (unpacktf_0): Likewise.
14021 (unpacktf_1): Likewise.
14022 (unpack<mode>_dm): Likewise.
14023 (unpack<mode>_nodm): Likewise.
14024 (pack<mode>): Likewise.
14025 (unpackv1ti): Likewise.
14026 (packv1ti): Likewise.
14027
14028 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
14029
14030 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
14031 is disabled.
14032
14033 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14034
14035 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
14036 * gimplify.c (omp_is_private): Change last argument's type to int.
14037 Only diagnose lastprivate if the simd argument is 1, only diagnose
14038 linear if the simd argument is 2.
14039 (gimplify_omp_for): Adjust omp_is_private callers. When adding
14040 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
14041 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
14042 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
14043 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
14044 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14045 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
14046 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14047 * tree-nested.c (convert_nonlocal_omp_clauses,
14048 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
14049
14050 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
14051
14052 PR target/60822
14053 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
14054 operand 1.
14055
14056 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
14057
14058 * flag-types.h (enum ivar_visibility): Add.
14059
14060 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
14061
14062 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
14063 function * argument.
14064
14065 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
14066
14067 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
14068
14069 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14070 Tom de Vries <tom@codesourcery.com>
14071
14072 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
14073 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
14074 reg-note.
14075 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
14076 * emit-rtl.c (try_split): Same.
14077
14078 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14079 Tom de Vries <tom@codesourcery.com>
14080
14081 * common.opt (fuse-caller-save): New option.
14082
14083 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
14084
14085 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
14086 elements for big-endian.
14087
14088 2014-04-24 Richard Biener <rguenther@suse.de>
14089
14090 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
14091 during TER and instead use the sepops interface for expanding
14092 non-GIMPLE_SINGLE_RHS.
14093
14094 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14095
14096 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
14097 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
14098
14099 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14100
14101 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
14102 assembler 64-bit option.
14103 * configure: Regenerate.
14104
14105 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14106
14107 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14108 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14109 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14110 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14111 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14112
14113 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14114
14115 * config/aarch64/aarch64-builtins.c
14116 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14117 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14118 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14119 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14120 builtins.
14121 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14122 (Vrevsuff): New mode attribute.
14123
14124 2014-04-24 Terry Guo <terry.guo@arm.com>
14125
14126 * config/arm/arm.h (machine_function): Define variable
14127 after_arm_reorg here.
14128 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14129 (arm_split_constant): Update the way to access variable
14130 after_arm_reorg.
14131 (arm_reorg): Ditto.
14132 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14133
14134 2014-04-23 Tom de Vries <tom@codesourcery.com>
14135
14136 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14137
14138 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14139
14140 * is-a.h: Update comments to reflect the following changes to the
14141 "pointerness" of the API, making the template parameter match the
14142 return type, allowing use of is-a.h with typedefs of pointers.
14143 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14144 that the return type matches the parameter to the is_a_helper.
14145 (as_a): Likewise.
14146 (dyn_cast): Likewise.
14147
14148 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14149 pointer from the is-a.h API.
14150
14151 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14152 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14153 is-a.h API.
14154 (is_a_helper <varpool_node>::test): Likewise, convert to...
14155 (is_a_helper <varpool_node *>::test): ...this.
14156
14157 (varpool_first_variable): Update for removal of implicit pointer
14158 from the is-a.h API.
14159 (varpool_next_variable): Likewise.
14160 (varpool_first_static_initializer): Likewise.
14161 (varpool_next_static_initializer): Likewise.
14162 (varpool_first_defined_variable): Likewise.
14163 (varpool_next_defined_variable): Likewise.
14164 (cgraph_first_defined_function): Likewise.
14165 (cgraph_next_defined_function): Likewise.
14166 (cgraph_first_function): Likewise.
14167 (cgraph_next_function): Likewise.
14168 (cgraph_first_function_with_gimple_body): Likewise.
14169 (cgraph_next_function_with_gimple_body): Likewise.
14170 (cgraph_alias_target): Likewise.
14171 (varpool_alias_target): Likewise.
14172 (cgraph_function_or_thunk_node): Likewise.
14173 (varpool_variable_node): Likewise.
14174 (symtab_real_symbol_p): Likewise.
14175 * cgraphunit.c (referred_to_p): Likewise.
14176 (analyze_functions): Likewise.
14177 (handle_alias_pairs): Likewise.
14178 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14179 * gimple-ssa.h (gimple_vuse_op): Likewise.
14180 (gimple_vdef_op): Likewise.
14181 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14182 * gimple.c (gimple_build_asm_1): Likewise.
14183 (gimple_build_try): Likewise.
14184 (gimple_build_resx): Likewise.
14185 (gimple_build_eh_dispatch): Likewise.
14186 (gimple_build_omp_for): Likewise.
14187 (gimple_omp_for_set_clauses): Likewise.
14188
14189 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14190 (is_a_helper <gimple_statement_asm *>::test): ...this.
14191 (is_a_helper <gimple_statement_bind>::test): Convert to...
14192 (is_a_helper <gimple_statement_bind *>::test): ...this.
14193 (is_a_helper <gimple_statement_call>::test): Convert to...
14194 (is_a_helper <gimple_statement_call *>::test): ...this.
14195 (is_a_helper <gimple_statement_catch>::test): Convert to...
14196 (is_a_helper <gimple_statement_catch *>::test): ...this.
14197 (is_a_helper <gimple_statement_resx>::test): Convert to...
14198 (is_a_helper <gimple_statement_resx *>::test): ...this.
14199 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14200 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14201 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14202 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14203 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14204 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14205 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14206 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14207 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14208 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14209 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14210 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14211 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14212 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14213 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14214 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14215 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14216 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14217 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14218 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14219 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14220 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14221 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14222 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14223 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14224 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14225 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14226 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14227 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14228 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14229 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14230 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14231 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14232 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14233 (is_a_helper <gimple_statement_phi>::test): Convert to...
14234 (is_a_helper <gimple_statement_phi *>::test): ...this.
14235 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14236 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14237 (is_a_helper <gimple_statement_try>::test): Convert to...
14238 (is_a_helper <gimple_statement_try *>::test): ...this.
14239 (is_a_helper <gimple_statement_wce>::test): Convert to...
14240 (is_a_helper <gimple_statement_wce *>::test): ...this.
14241 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14242 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14243 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14244 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14245 (is_a_helper <const gimple_statement_call>::test): Convert to...
14246 (is_a_helper <const gimple_statement_call *>::test): ...this.
14247 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14248 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14249 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14250 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14251 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14252 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14253 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14254 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14255 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14256 Convert to...
14257 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14258 ...this.
14259 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14260 Convert to...
14261 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14262 ...this.
14263 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14264 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14265 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14266 to...
14267 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14268 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14269 to...
14270 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14271 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14272 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14273 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14274 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14275 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14276 to...
14277 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14278 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14279 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14280 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14281 to...
14282 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14283 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14284 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14285 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14286 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14287 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14288 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14289 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14290 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14291 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14292 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14293 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14294 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14295 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14296 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14297 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14298 to...
14299 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14300 ...this.
14301 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14302 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14303
14304 (gimple_use_ops): Update for removal of implicit pointer from the
14305 is-a.h API.
14306 (gimple_set_use_ops): Likewise.
14307 (gimple_vuse): Likewise.
14308 (gimple_vdef): Likewise.
14309 (gimple_vuse_ptr): Likewise.
14310 (gimple_vdef_ptr): Likewise.
14311 (gimple_set_vuse): Likewise.
14312 (gimple_set_vdef): Likewise.
14313 (gimple_omp_return_set_lhs): Likewise.
14314 (gimple_omp_return_lhs): Likewise.
14315 (gimple_omp_return_lhs_ptr): Likewise.
14316 (gimple_call_fntype): Likewise.
14317 (gimple_call_set_fntype): Likewise.
14318 (gimple_call_set_internal_fn): Likewise.
14319 (gimple_call_use_set): Likewise.
14320 (gimple_call_clobber_set): Likewise.
14321 (gimple_bind_vars): Likewise.
14322 (gimple_bind_set_vars): Likewise.
14323 (gimple_bind_body_ptr): Likewise.
14324 (gimple_bind_set_body): Likewise.
14325 (gimple_bind_add_stmt): Likewise.
14326 (gimple_bind_block): Likewise.
14327 (gimple_bind_set_block): Likewise.
14328 (gimple_asm_ninputs): Likewise.
14329 (gimple_asm_noutputs): Likewise.
14330 (gimple_asm_nclobbers): Likewise.
14331 (gimple_asm_nlabels): Likewise.
14332 (gimple_asm_input_op): Likewise.
14333 (gimple_asm_input_op_ptr): Likewise.
14334 (gimple_asm_output_op): Likewise.
14335 (gimple_asm_output_op_ptr): Likewise.
14336 (gimple_asm_set_output_op): Likewise.
14337 (gimple_asm_clobber_op): Likewise.
14338 (gimple_asm_set_clobber_op): Likewise.
14339 (gimple_asm_label_op): Likewise.
14340 (gimple_asm_set_label_op): Likewise.
14341 (gimple_asm_string): Likewise.
14342 (gimple_catch_types): Likewise.
14343 (gimple_catch_types_ptr): Likewise.
14344 (gimple_catch_handler_ptr): Likewise.
14345 (gimple_catch_set_types): Likewise.
14346 (gimple_catch_set_handler): Likewise.
14347 (gimple_eh_filter_types): Likewise.
14348 (gimple_eh_filter_types_ptr): Likewise.
14349 (gimple_eh_filter_failure_ptr): Likewise.
14350 (gimple_eh_filter_set_types): Likewise.
14351 (gimple_eh_filter_set_failure): Likewise.
14352 (gimple_eh_must_not_throw_fndecl): Likewise.
14353 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14354 (gimple_eh_else_n_body_ptr): Likewise.
14355 (gimple_eh_else_e_body_ptr): Likewise.
14356 (gimple_eh_else_set_n_body): Likewise.
14357 (gimple_eh_else_set_e_body): Likewise.
14358 (gimple_try_eval_ptr): Likewise.
14359 (gimple_try_cleanup_ptr): Likewise.
14360 (gimple_try_set_eval): Likewise.
14361 (gimple_try_set_cleanup): Likewise.
14362 (gimple_wce_cleanup_ptr): Likewise.
14363 (gimple_wce_set_cleanup): Likewise.
14364 (gimple_phi_capacity): Likewise.
14365 (gimple_phi_num_args): Likewise.
14366 (gimple_phi_result): Likewise.
14367 (gimple_phi_result_ptr): Likewise.
14368 (gimple_phi_set_result): Likewise.
14369 (gimple_phi_arg): Likewise.
14370 (gimple_phi_set_arg): Likewise.
14371 (gimple_resx_region): Likewise.
14372 (gimple_resx_set_region): Likewise.
14373 (gimple_eh_dispatch_region): Likewise.
14374 (gimple_eh_dispatch_set_region): Likewise.
14375 (gimple_omp_critical_name): Likewise.
14376 (gimple_omp_critical_name_ptr): Likewise.
14377 (gimple_omp_critical_set_name): Likewise.
14378 (gimple_omp_for_clauses): Likewise.
14379 (gimple_omp_for_clauses_ptr): Likewise.
14380 (gimple_omp_for_set_clauses): Likewise.
14381 (gimple_omp_for_collapse): Likewise.
14382 (gimple_omp_for_index): Likewise.
14383 (gimple_omp_for_index_ptr): Likewise.
14384 (gimple_omp_for_set_index): Likewise.
14385 (gimple_omp_for_initial): Likewise.
14386 (gimple_omp_for_initial_ptr): Likewise.
14387 (gimple_omp_for_set_initial): Likewise.
14388 (gimple_omp_for_final): Likewise.
14389 (gimple_omp_for_final_ptr): Likewise.
14390 (gimple_omp_for_set_final): Likewise.
14391 (gimple_omp_for_incr): Likewise.
14392 (gimple_omp_for_incr_ptr): Likewise.
14393 (gimple_omp_for_set_incr): Likewise.
14394 (gimple_omp_for_pre_body_ptr): Likewise.
14395 (gimple_omp_for_set_pre_body): Likewise.
14396 (gimple_omp_parallel_clauses): Likewise.
14397 (gimple_omp_parallel_clauses_ptr): Likewise.
14398 (gimple_omp_parallel_set_clauses): Likewise.
14399 (gimple_omp_parallel_child_fn): Likewise.
14400 (gimple_omp_parallel_child_fn_ptr): Likewise.
14401 (gimple_omp_parallel_set_child_fn): Likewise.
14402 (gimple_omp_parallel_data_arg): Likewise.
14403 (gimple_omp_parallel_data_arg_ptr): Likewise.
14404 (gimple_omp_parallel_set_data_arg): Likewise.
14405 (gimple_omp_task_clauses): Likewise.
14406 (gimple_omp_task_clauses_ptr): Likewise.
14407 (gimple_omp_task_set_clauses): Likewise.
14408 (gimple_omp_task_child_fn): Likewise.
14409 (gimple_omp_task_child_fn_ptr): Likewise.
14410 (gimple_omp_task_set_child_fn): Likewise.
14411 (gimple_omp_task_data_arg): Likewise.
14412 (gimple_omp_task_data_arg_ptr): Likewise.
14413 (gimple_omp_task_set_data_arg): Likewise.
14414 (gimple_omp_taskreg_clauses): Likewise.
14415 (gimple_omp_taskreg_clauses_ptr): Likewise.
14416 (gimple_omp_taskreg_set_clauses): Likewise.
14417 (gimple_omp_taskreg_child_fn): Likewise.
14418 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14419 (gimple_omp_taskreg_set_child_fn): Likewise.
14420 (gimple_omp_taskreg_data_arg): Likewise.
14421 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14422 (gimple_omp_taskreg_set_data_arg): Likewise.
14423 (gimple_omp_task_copy_fn): Likewise.
14424 (gimple_omp_task_copy_fn_ptr): Likewise.
14425 (gimple_omp_task_set_copy_fn): Likewise.
14426 (gimple_omp_task_arg_size): Likewise.
14427 (gimple_omp_task_arg_size_ptr): Likewise.
14428 (gimple_omp_task_set_arg_size): Likewise.
14429 (gimple_omp_task_arg_align): Likewise.
14430 (gimple_omp_task_arg_align_ptr): Likewise.
14431 (gimple_omp_task_set_arg_align): Likewise.
14432 (gimple_omp_single_clauses): Likewise.
14433 (gimple_omp_single_clauses_ptr): Likewise.
14434 (gimple_omp_single_set_clauses): Likewise.
14435 (gimple_omp_target_clauses): Likewise.
14436 (gimple_omp_target_clauses_ptr): Likewise.
14437 (gimple_omp_target_set_clauses): Likewise.
14438 (gimple_omp_target_child_fn): Likewise.
14439 (gimple_omp_target_child_fn_ptr): Likewise.
14440 (gimple_omp_target_set_child_fn): Likewise.
14441 (gimple_omp_target_data_arg): Likewise.
14442 (gimple_omp_target_data_arg_ptr): Likewise.
14443 (gimple_omp_target_set_data_arg): Likewise.
14444 (gimple_omp_teams_clauses): Likewise.
14445 (gimple_omp_teams_clauses_ptr): Likewise.
14446 (gimple_omp_teams_set_clauses): Likewise.
14447 (gimple_omp_sections_clauses): Likewise.
14448 (gimple_omp_sections_clauses_ptr): Likewise.
14449 (gimple_omp_sections_set_clauses): Likewise.
14450 (gimple_omp_sections_control): Likewise.
14451 (gimple_omp_sections_control_ptr): Likewise.
14452 (gimple_omp_sections_set_control): Likewise.
14453 (gimple_omp_for_set_cond): Likewise.
14454 (gimple_omp_for_cond): Likewise.
14455 (gimple_omp_atomic_store_set_val): Likewise.
14456 (gimple_omp_atomic_store_val): Likewise.
14457 (gimple_omp_atomic_store_val_ptr): Likewise.
14458 (gimple_omp_atomic_load_set_lhs): Likewise.
14459 (gimple_omp_atomic_load_lhs): Likewise.
14460 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14461 (gimple_omp_atomic_load_set_rhs): Likewise.
14462 (gimple_omp_atomic_load_rhs): Likewise.
14463 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14464 (gimple_omp_continue_control_def): Likewise.
14465 (gimple_omp_continue_control_def_ptr): Likewise.
14466 (gimple_omp_continue_set_control_def): Likewise.
14467 (gimple_omp_continue_control_use): Likewise.
14468 (gimple_omp_continue_control_use_ptr): Likewise.
14469 (gimple_omp_continue_set_control_use): Likewise.
14470 (gimple_transaction_body_ptr): Likewise.
14471 (gimple_transaction_label): Likewise.
14472 (gimple_transaction_label_ptr): Likewise.
14473 (gimple_transaction_set_body): Likewise.
14474 (gimple_transaction_set_label): Likewise.
14475
14476 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14477 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14478 * ipa-ref.c (ipa_record_reference): Likewise.
14479 * ipa-reference.c (analyze_function): Likewise.
14480 (ipa_reference_write_optimization_summary): Likewise.
14481 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14482 (address_taken_from_non_vtable_p): Likewise.
14483 (comdat_can_be_unshared_p_1): Likewise.
14484 * lto-cgraph.c (lto_output_ref): Likewise.
14485 (add_references): Likewise.
14486 (compute_ltrans_boundary): Likewise.
14487 (output_symtab): Likewise.
14488 (input_ref): Likewise.
14489 (input_cgraph_1): Likewise.
14490 (output_cgraph_opt_summary): Likewise.
14491 * lto-streamer-out.c (lto_output): Likewise.
14492 (output_symbol_p): Likewise.
14493 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14494 (lsei_start_function_in_partition): Likewise.
14495 (lsei_next_variable_in_partition): Likewise.
14496 (lsei_start_variable_in_partition): Likewise.
14497 * symtab.c (insert_to_assembler_name_hash): Likewise.
14498 (unlink_from_assembler_name_hash): Likewise.
14499 (symtab_unregister_node): Likewise.
14500 (symtab_remove_node): Likewise.
14501 (dump_symtab_node): Likewise.
14502 (verify_symtab_base): Likewise.
14503 (verify_symtab_node): Likewise.
14504 (symtab_make_decl_local): Likewise.
14505 (symtab_alias_ultimate_target): Likewise.
14506 (symtab_resolve_alias): Likewise.
14507 (symtab_get_symbol_partitioning_class): Likewise.
14508 * tree-phinodes.c (allocate_phi_node): Likewise.
14509 (reserve_phi_args_for_new_edge): Likewise.
14510 (remove_phi_args): Likewise.
14511 * varpool.c (varpool_node_for_asm): Likewise.
14512 (varpool_remove_unreferenced_decls): Likewise.
14513
14514 2014-04-23 Jeff Law <law@redhat.com>
14515
14516 PR tree-optimization/60902
14517 * tree-ssa-threadedge.c
14518 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14519 invalidate outputs from statements that do not produce useful
14520 outputs for threading.
14521
14522 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14523
14524 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14525 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14526 machine descriptions for Stack Smashing Protector.
14527
14528 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14529
14530 * aarch64.md (<optab>_rol<mode>3): New pattern.
14531 (<optab>_rolsi3_uxtw): Likewise.
14532 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14533
14534 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14535
14536 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14537 (arm_cortex_a12_tune): Likewise.
14538
14539 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14540
14541 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14542
14543 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14544
14545 * config/arm/arm.md (arm_rev16si2): New pattern.
14546 (arm_rev16si2_alt): Likewise.
14547 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14548
14549 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14550
14551 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14552 (rev16<mode>2_alt): Likewise.
14553 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14554 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14555 (aarch_rev16_shleft_mask_imm_p): Likewise.
14556 (aarch_rev16_p_1): Likewise.
14557 (aarch_rev16_p): Likewise.
14558 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14559 (aarch_rev16_shright_mask_imm_p): Likewise.
14560 (aarch_rev16_shleft_mask_imm_p): Likewise.
14561
14562 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14563
14564 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14565 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14566 rev cost.
14567 (cortex_a53_extra_costs): Likewise.
14568 (cortex_a57_extra_costs): Likewise.
14569 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14570 (cortexa7_extra_costs): Likewise.
14571 (cortexa8_extra_costs): Likewise.
14572 (cortexa12_extra_costs): Likewise.
14573 (cortexa15_extra_costs): Likewise.
14574 (v7m_extra_costs): Likewise.
14575 (arm_new_rtx_costs): Handle BSWAP.
14576
14577 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14578
14579 * config/arm/arm.c (cortexa8_extra_costs): New table.
14580 (arm_cortex_a8_tune): New tuning struct.
14581 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14582
14583 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14584
14585 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14586
14587 2014-04-23 Richard Biener <rguenther@suse.de>
14588
14589 * Makefile.in (OBJS): Remove loop-unswitch.o.
14590 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14591 * passes.def (pass_rtl_unswitch): Likewise.
14592 * loop-init.c (gate_rtl_unswitch): Likewise.
14593 (rtl_unswitch): Likewise.
14594 (pass_data_rtl_unswitch): Likewise.
14595 (pass_rtl_unswitch): Likewise.
14596 (make_pass_rtl_unswitch): Likewise.
14597 * rtl.h (reversed_condition): Likewise.
14598 (compare_and_jump_seq): Likewise.
14599 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14600 and make static.
14601 * loop-unroll.c (compare_and_jump_seq): Likewise.
14602
14603 2014-04-23 Richard Biener <rguenther@suse.de>
14604
14605 PR tree-optimization/60903
14606 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14607 commented code block.
14608 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14609 loop flags to newly created BBs and edges.
14610
14611 2014-04-23 Nick Clifton <nickc@redhat.com>
14612
14613 * config/msp430/msp430.c (msp430_handle_option): Move function
14614 to msp430-common.c
14615 (msp430_option_override): Simplify mcu and mcpu option handling.
14616 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14617 support for -mhwmult command line option.
14618 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14619 -mhwmult command line option.
14620 (msp430_hwmult_enabled): Delete.
14621 (msp43o_output_labelref): Add support for -mhwmult command line option.
14622 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14623 (umulsidi3): Likewise.
14624 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14625 (mcpu, mlarge, msmall): Likewise.
14626 (mhwmult): New option.
14627 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14628 prototype.
14629 (msp430_is_f5_mcu): Remove prototype.
14630 (msp430_use_f5_series_hwmult): Add prototype.
14631 * config/msp430/msp430-opts.h: New file.
14632 * common/config/msp430: New directory.
14633 * common/config/msp430/msp430-common.c: New file.
14634 * config.gcc (msp430): Remove target_has_targetm_common.
14635 * doc/invoke.texi: Document -mhwmult command line option.
14636
14637 2014-04-23 Nick Clifton <nickc@redhat.com>
14638
14639 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14640 default-manifest.o if it can be found in the search path.
14641 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14642
14643 2014-04-23 Terry Guo <terry.guo@arm.com>
14644
14645 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14646
14647 2014-04-23 Richard Biener <rguenther@suse.de>
14648
14649 PR middle-end/60895
14650 * tree-inline.c (declare_return_variable): Use mark_addressable.
14651
14652 2014-04-23 Richard Biener <rguenther@suse.de>
14653
14654 PR middle-end/60891
14655 * loop-init.c (loop_optimizer_init): Make sure to apply
14656 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14657
14658 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14659
14660 PR sanitizer/60275
14661 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14662 New options.
14663 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14664 if flag_sanitize_undefined_trap_on_error.
14665 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14666 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14667 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14668 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14669 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14670 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14671 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14672 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14673 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14674 * ubsan.c (ubsan_instrument_unreachable): Return
14675 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14676 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14677 if flag_sanitize_undefined_trap_on_error and
14678 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14679 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14680 instrument_bool_enum_load): Emit __builtin_trap () if
14681 flag_sanitize_undefined_trap_on_error and
14682 __builtin_handle_*_abort () if !flag_sanitize_recover.
14683 * doc/invoke.texi (-fsanitize-recover,
14684 -fsanitize-undefined-trap-on-error): Document.
14685
14686 2014-04-22 Christian Bruel <christian.bruel@st.com>
14687
14688 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14689 Force immediates to SImode.
14690
14691 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14692
14693 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14694 (lroundsfsi2): New.
14695 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
14696 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
14697 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
14698 (nios2_fpu_insn): Add entry for round.
14699 (N2FPU_NO_ERRNO_P): Define.
14700 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
14701 flag_errno_math.
14702 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
14703
14704 2014-04-22 Richard Henderson <rth@redhat.com>
14705
14706 * config/aarch64/aarch64 (addti3, subti3): New expanders.
14707 (add<GPI>3_compare0): Remove leading * from name.
14708 (add<GPI>3_carryin): Likewise.
14709 (sub<GPI>3_compare0): Likewise.
14710 (sub<GPI>3_carryin): Likewise.
14711 (<su_optab>mulditi3): New expander.
14712 (multi3): New expander.
14713 (madd<GPI>): Remove leading * from name.
14714
14715 2014-04-22 Martin Jambor <mjambor@suse.cz>
14716
14717 * cgraphclones.c (cgraph_function_versioning): Copy
14718 ipa_transforms_to_apply instead of asserting it is empty.
14719
14720 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
14721
14722 PR target/60868
14723 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
14724 on count_exp to get mode.
14725
14726 2014-04-22 Andrew Pinski <apinski@cavium.com>
14727
14728 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14729 Handle TLS for ILP32.
14730 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
14731 (tlsie_small_<mode>): this and handle PTR.
14732 (tlsie_small_sidi): New pattern.
14733 (tlsle_small): Change to an expand to handle ILP32.
14734 (tlsle_small_<mode>): New pattern.
14735 (tlsdesc_small): Rename to ...
14736 (tlsdesc_small_<mode>): this and handle PTR.
14737
14738 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14739
14740 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
14741
14742 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14743
14744 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14745 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
14746 (aarch64_types_signed_poly_qualifiers): Likewise.
14747 (aarch64_types_unsigned_signed_qualifiers): Likewise.
14748 (aarch64_types_poly_signed_qualifiers): Likewise.
14749 (TYPES_REINTERP_SS): Type macro added.
14750 (TYPES_REINTERP_SU): Likewise.
14751 (TYPES_REINTERP_SP): Likewise.
14752 (TYPES_REINTERP_US): Likewise.
14753 (TYPES_REINTERP_PS): Likewise.
14754 (aarch64_fold_builtin): New expression folding added.
14755 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
14756 Declarations removed.
14757 (REINTERP_SS): Declarations added.
14758 (REINTERP_US): Likewise.
14759 (REINTERP_PS): Likewise.
14760 (REINTERP_SU): Likewise.
14761 (REINTERP_SP): Likewise.
14762 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
14763 (vreinterpretq_p8_f64): Likewise.
14764 (vreinterpret_p16_f64): Likewise.
14765 (vreinterpretq_p16_f64): Likewise.
14766 (vreinterpret_f32_f64): Likewise.
14767 (vreinterpretq_f32_f64): Likewise.
14768 (vreinterpret_f64_f32): Likewise.
14769 (vreinterpret_f64_p8): Likewise.
14770 (vreinterpret_f64_p16): Likewise.
14771 (vreinterpret_f64_s8): Likewise.
14772 (vreinterpret_f64_s16): Likewise.
14773 (vreinterpret_f64_s32): Likewise.
14774 (vreinterpret_f64_s64): Likewise.
14775 (vreinterpret_f64_u8): Likewise.
14776 (vreinterpret_f64_u16): Likewise.
14777 (vreinterpret_f64_u32): Likewise.
14778 (vreinterpret_f64_u64): Likewise.
14779 (vreinterpretq_f64_f32): Likewise.
14780 (vreinterpretq_f64_p8): Likewise.
14781 (vreinterpretq_f64_p16): Likewise.
14782 (vreinterpretq_f64_s8): Likewise.
14783 (vreinterpretq_f64_s16): Likewise.
14784 (vreinterpretq_f64_s32): Likewise.
14785 (vreinterpretq_f64_s64): Likewise.
14786 (vreinterpretq_f64_u8): Likewise.
14787 (vreinterpretq_f64_u16): Likewise.
14788 (vreinterpretq_f64_u32): Likewise.
14789 (vreinterpretq_f64_u64): Likewise.
14790 (vreinterpret_s64_f64): Likewise.
14791 (vreinterpretq_s64_f64): Likewise.
14792 (vreinterpret_u64_f64): Likewise.
14793 (vreinterpretq_u64_f64): Likewise.
14794 (vreinterpret_s8_f64): Likewise.
14795 (vreinterpretq_s8_f64): Likewise.
14796 (vreinterpret_s16_f64): Likewise.
14797 (vreinterpretq_s16_f64): Likewise.
14798 (vreinterpret_s32_f64): Likewise.
14799 (vreinterpretq_s32_f64): Likewise.
14800 (vreinterpret_u8_f64): Likewise.
14801 (vreinterpretq_u8_f64): Likewise.
14802 (vreinterpret_u16_f64): Likewise.
14803 (vreinterpretq_u16_f64): Likewise.
14804 (vreinterpret_u32_f64): Likewise.
14805 (vreinterpretq_u32_f64): Likewise.
14806
14807 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14808
14809 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14810 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
14811 (vreinterpret_p8_s8): Likewise.
14812 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
14813 (vreinterpret_p8_s16): Likewise.
14814 (vreinterpret_p8_s32): Likewise.
14815 (vreinterpret_p8_s64): Likewise.
14816 (vreinterpret_p8_f32): Likewise.
14817 (vreinterpret_p8_u8): Likewise.
14818 (vreinterpret_p8_u16): Likewise.
14819 (vreinterpret_p8_u32): Likewise.
14820 (vreinterpret_p8_u64): Likewise.
14821 (vreinterpret_p8_p16): Likewise.
14822 (vreinterpretq_p8_s8): Likewise.
14823 (vreinterpretq_p8_s16): Likewise.
14824 (vreinterpretq_p8_s32): Likewise.
14825 (vreinterpretq_p8_s64): Likewise.
14826 (vreinterpretq_p8_f32): Likewise.
14827 (vreinterpretq_p8_u8): Likewise.
14828 (vreinterpretq_p8_u16): Likewise.
14829 (vreinterpretq_p8_u32): Likewise.
14830 (vreinterpretq_p8_u64): Likewise.
14831 (vreinterpretq_p8_p16): Likewise.
14832 (vreinterpret_p16_s8): Likewise.
14833 (vreinterpret_p16_s16): Likewise.
14834 (vreinterpret_p16_s32): Likewise.
14835 (vreinterpret_p16_s64): Likewise.
14836 (vreinterpret_p16_f32): Likewise.
14837 (vreinterpret_p16_u8): Likewise.
14838 (vreinterpret_p16_u16): Likewise.
14839 (vreinterpret_p16_u32): Likewise.
14840 (vreinterpret_p16_u64): Likewise.
14841 (vreinterpret_p16_p8): Likewise.
14842 (vreinterpretq_p16_s8): Likewise.
14843 (vreinterpretq_p16_s16): Likewise.
14844 (vreinterpretq_p16_s32): Likewise.
14845 (vreinterpretq_p16_s64): Likewise.
14846 (vreinterpretq_p16_f32): Likewise.
14847 (vreinterpretq_p16_u8): Likewise.
14848 (vreinterpretq_p16_u16): Likewise.
14849 (vreinterpretq_p16_u32): Likewise.
14850 (vreinterpretq_p16_u64): Likewise.
14851 (vreinterpretq_p16_p8): Likewise.
14852 (vreinterpret_f32_s8): Likewise.
14853 (vreinterpret_f32_s16): Likewise.
14854 (vreinterpret_f32_s32): Likewise.
14855 (vreinterpret_f32_s64): Likewise.
14856 (vreinterpret_f32_u8): Likewise.
14857 (vreinterpret_f32_u16): Likewise.
14858 (vreinterpret_f32_u32): Likewise.
14859 (vreinterpret_f32_u64): Likewise.
14860 (vreinterpret_f32_p8): Likewise.
14861 (vreinterpret_f32_p16): Likewise.
14862 (vreinterpretq_f32_s8): Likewise.
14863 (vreinterpretq_f32_s16): Likewise.
14864 (vreinterpretq_f32_s32): Likewise.
14865 (vreinterpretq_f32_s64): Likewise.
14866 (vreinterpretq_f32_u8): Likewise.
14867 (vreinterpretq_f32_u16): Likewise.
14868 (vreinterpretq_f32_u32): Likewise.
14869 (vreinterpretq_f32_u64): Likewise.
14870 (vreinterpretq_f32_p8): Likewise.
14871 (vreinterpretq_f32_p16): Likewise.
14872 (vreinterpret_s64_s8): Likewise.
14873 (vreinterpret_s64_s16): Likewise.
14874 (vreinterpret_s64_s32): Likewise.
14875 (vreinterpret_s64_f32): Likewise.
14876 (vreinterpret_s64_u8): Likewise.
14877 (vreinterpret_s64_u16): Likewise.
14878 (vreinterpret_s64_u32): Likewise.
14879 (vreinterpret_s64_u64): Likewise.
14880 (vreinterpret_s64_p8): Likewise.
14881 (vreinterpret_s64_p16): Likewise.
14882 (vreinterpretq_s64_s8): Likewise.
14883 (vreinterpretq_s64_s16): Likewise.
14884 (vreinterpretq_s64_s32): Likewise.
14885 (vreinterpretq_s64_f32): Likewise.
14886 (vreinterpretq_s64_u8): Likewise.
14887 (vreinterpretq_s64_u16): Likewise.
14888 (vreinterpretq_s64_u32): Likewise.
14889 (vreinterpretq_s64_u64): Likewise.
14890 (vreinterpretq_s64_p8): Likewise.
14891 (vreinterpretq_s64_p16): Likewise.
14892 (vreinterpret_u64_s8): Likewise.
14893 (vreinterpret_u64_s16): Likewise.
14894 (vreinterpret_u64_s32): Likewise.
14895 (vreinterpret_u64_s64): Likewise.
14896 (vreinterpret_u64_f32): Likewise.
14897 (vreinterpret_u64_u8): Likewise.
14898 (vreinterpret_u64_u16): Likewise.
14899 (vreinterpret_u64_u32): Likewise.
14900 (vreinterpret_u64_p8): Likewise.
14901 (vreinterpret_u64_p16): Likewise.
14902 (vreinterpretq_u64_s8): Likewise.
14903 (vreinterpretq_u64_s16): Likewise.
14904 (vreinterpretq_u64_s32): Likewise.
14905 (vreinterpretq_u64_s64): Likewise.
14906 (vreinterpretq_u64_f32): Likewise.
14907 (vreinterpretq_u64_u8): Likewise.
14908 (vreinterpretq_u64_u16): Likewise.
14909 (vreinterpretq_u64_u32): Likewise.
14910 (vreinterpretq_u64_p8): Likewise.
14911 (vreinterpretq_u64_p16): Likewise.
14912 (vreinterpret_s8_s16): Likewise.
14913 (vreinterpret_s8_s32): Likewise.
14914 (vreinterpret_s8_s64): Likewise.
14915 (vreinterpret_s8_f32): Likewise.
14916 (vreinterpret_s8_u8): Likewise.
14917 (vreinterpret_s8_u16): Likewise.
14918 (vreinterpret_s8_u32): Likewise.
14919 (vreinterpret_s8_u64): Likewise.
14920 (vreinterpret_s8_p8): Likewise.
14921 (vreinterpret_s8_p16): Likewise.
14922 (vreinterpretq_s8_s16): Likewise.
14923 (vreinterpretq_s8_s32): Likewise.
14924 (vreinterpretq_s8_s64): Likewise.
14925 (vreinterpretq_s8_f32): Likewise.
14926 (vreinterpretq_s8_u8): Likewise.
14927 (vreinterpretq_s8_u16): Likewise.
14928 (vreinterpretq_s8_u32): Likewise.
14929 (vreinterpretq_s8_u64): Likewise.
14930 (vreinterpretq_s8_p8): Likewise.
14931 (vreinterpretq_s8_p16): Likewise.
14932 (vreinterpret_s16_s8): Likewise.
14933 (vreinterpret_s16_s32): Likewise.
14934 (vreinterpret_s16_s64): Likewise.
14935 (vreinterpret_s16_f32): Likewise.
14936 (vreinterpret_s16_u8): Likewise.
14937 (vreinterpret_s16_u16): Likewise.
14938 (vreinterpret_s16_u32): Likewise.
14939 (vreinterpret_s16_u64): Likewise.
14940 (vreinterpret_s16_p8): Likewise.
14941 (vreinterpret_s16_p16): Likewise.
14942 (vreinterpretq_s16_s8): Likewise.
14943 (vreinterpretq_s16_s32): Likewise.
14944 (vreinterpretq_s16_s64): Likewise.
14945 (vreinterpretq_s16_f32): Likewise.
14946 (vreinterpretq_s16_u8): Likewise.
14947 (vreinterpretq_s16_u16): Likewise.
14948 (vreinterpretq_s16_u32): Likewise.
14949 (vreinterpretq_s16_u64): Likewise.
14950 (vreinterpretq_s16_p8): Likewise.
14951 (vreinterpretq_s16_p16): Likewise.
14952 (vreinterpret_s32_s8): Likewise.
14953 (vreinterpret_s32_s16): Likewise.
14954 (vreinterpret_s32_s64): Likewise.
14955 (vreinterpret_s32_f32): Likewise.
14956 (vreinterpret_s32_u8): Likewise.
14957 (vreinterpret_s32_u16): Likewise.
14958 (vreinterpret_s32_u32): Likewise.
14959 (vreinterpret_s32_u64): Likewise.
14960 (vreinterpret_s32_p8): Likewise.
14961 (vreinterpret_s32_p16): Likewise.
14962 (vreinterpretq_s32_s8): Likewise.
14963 (vreinterpretq_s32_s16): Likewise.
14964 (vreinterpretq_s32_s64): Likewise.
14965 (vreinterpretq_s32_f32): Likewise.
14966 (vreinterpretq_s32_u8): Likewise.
14967 (vreinterpretq_s32_u16): Likewise.
14968 (vreinterpretq_s32_u32): Likewise.
14969 (vreinterpretq_s32_u64): Likewise.
14970 (vreinterpretq_s32_p8): Likewise.
14971 (vreinterpretq_s32_p16): Likewise.
14972 (vreinterpret_u8_s8): Likewise.
14973 (vreinterpret_u8_s16): Likewise.
14974 (vreinterpret_u8_s32): Likewise.
14975 (vreinterpret_u8_s64): Likewise.
14976 (vreinterpret_u8_f32): Likewise.
14977 (vreinterpret_u8_u16): Likewise.
14978 (vreinterpret_u8_u32): Likewise.
14979 (vreinterpret_u8_u64): Likewise.
14980 (vreinterpret_u8_p8): Likewise.
14981 (vreinterpret_u8_p16): Likewise.
14982 (vreinterpretq_u8_s8): Likewise.
14983 (vreinterpretq_u8_s16): Likewise.
14984 (vreinterpretq_u8_s32): Likewise.
14985 (vreinterpretq_u8_s64): Likewise.
14986 (vreinterpretq_u8_f32): Likewise.
14987 (vreinterpretq_u8_u16): Likewise.
14988 (vreinterpretq_u8_u32): Likewise.
14989 (vreinterpretq_u8_u64): Likewise.
14990 (vreinterpretq_u8_p8): Likewise.
14991 (vreinterpretq_u8_p16): Likewise.
14992 (vreinterpret_u16_s8): Likewise.
14993 (vreinterpret_u16_s16): Likewise.
14994 (vreinterpret_u16_s32): Likewise.
14995 (vreinterpret_u16_s64): Likewise.
14996 (vreinterpret_u16_f32): Likewise.
14997 (vreinterpret_u16_u8): Likewise.
14998 (vreinterpret_u16_u32): Likewise.
14999 (vreinterpret_u16_u64): Likewise.
15000 (vreinterpret_u16_p8): Likewise.
15001 (vreinterpret_u16_p16): Likewise.
15002 (vreinterpretq_u16_s8): Likewise.
15003 (vreinterpretq_u16_s16): Likewise.
15004 (vreinterpretq_u16_s32): Likewise.
15005 (vreinterpretq_u16_s64): Likewise.
15006 (vreinterpretq_u16_f32): Likewise.
15007 (vreinterpretq_u16_u8): Likewise.
15008 (vreinterpretq_u16_u32): Likewise.
15009 (vreinterpretq_u16_u64): Likewise.
15010 (vreinterpretq_u16_p8): Likewise.
15011 (vreinterpretq_u16_p16): Likewise.
15012 (vreinterpret_u32_s8): Likewise.
15013 (vreinterpret_u32_s16): Likewise.
15014 (vreinterpret_u32_s32): Likewise.
15015 (vreinterpret_u32_s64): Likewise.
15016 (vreinterpret_u32_f32): Likewise.
15017 (vreinterpret_u32_u8): Likewise.
15018 (vreinterpret_u32_u16): Likewise.
15019 (vreinterpret_u32_u64): Likewise.
15020 (vreinterpret_u32_p8): Likewise.
15021 (vreinterpret_u32_p16): Likewise.
15022 (vreinterpretq_u32_s8): Likewise.
15023 (vreinterpretq_u32_s16): Likewise.
15024 (vreinterpretq_u32_s32): Likewise.
15025 (vreinterpretq_u32_s64): Likewise.
15026 (vreinterpretq_u32_f32): Likewise.
15027 (vreinterpretq_u32_u8): Likewise.
15028 (vreinterpretq_u32_u16): Likewise.
15029 (vreinterpretq_u32_u64): Likewise.
15030 (vreinterpretq_u32_p8): Likewise.
15031 (vreinterpretq_u32_p16): Likewise.
15032
15033 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15034
15035 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
15036 Pattern extended.
15037 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
15038 (sqabs): Likewise.
15039 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
15040 (vqnegd_s64): Likewise.
15041 (vqabs_s64): Likewise.
15042 (vqabsd_s64): Likewise.
15043
15044 2014-04-22 Richard Henderson <rth@redhat.com>
15045
15046 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
15047 computation to the top of the loop.
15048
15049 2014-04-22 Renlin <renlin.li@arm.com>
15050 Jiong Wang <jiong.wang@arm.com>
15051
15052 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
15053 * config/aarch64/aarch64.c (aarch64_layout_frame)
15054 (aarch64_initial_elimination_offset): Likewise.
15055
15056 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
15057
15058 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
15059 Fix indentation.
15060
15061 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
15062
15063 * machmode.h (bitwise_mode_for_mode): Declare.
15064 * stor-layout.h (bitwise_type_for_mode): Likewise.
15065 * stor-layout.c (bitwise_mode_for_mode): New function.
15066 (bitwise_type_for_mode): Likewise.
15067 * builtins.c (fold_builtin_memory_op): Use it instead of
15068 int_mode_for_mode and build_nonstandard_integer_type.
15069
15070 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15071
15072 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
15073 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
15074 (*-*-solaris2*): Simplify.
15075 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
15076 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
15077 *-*-solaris2.9* handling.
15078
15079 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
15080 as bug.
15081 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
15082 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
15083 handling, simplify.
15084 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
15085 * configure: Regenerate.
15086
15087 * config/i386/sol2-9.h: Remove.
15088
15089 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
15090 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
15091 Remove Solaris 9 references.
15092
15093 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
15094
15095 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
15096 (floatuns<GPI:mode><GPF:mode>2): Remove.
15097 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
15098 and floatuns conversions.
15099 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
15100 and floatuns conversions.
15101 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
15102 (w1,w2): New mode attributes for inequal width conversions.
15103
15104 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15105
15106 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15107 the output asm format.
15108
15109 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15110
15111 * config/aarch64/aarch64-simd.md
15112 (aarch64_cm<optab>di): Always split.
15113 (*aarch64_cm<optab>di): New.
15114 (aarch64_cmtstdi): Always split.
15115 (*aarch64_cmtstdi): New.
15116
15117 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15118
15119 PR tree-optimization/60823
15120 * omp-low.c (ipa_simd_modify_function_body): Go through
15121 all SSA_NAMEs and for those refering to vector arguments
15122 which are going to be replaced adjust SSA_NAME_VAR and,
15123 if it is a default definition, change it into a non-default
15124 definition assigned at the beginning of function from new_decl.
15125 (ipa_simd_modify_stmt_ops): Rewritten.
15126 * tree-dfa.c (set_ssa_default_def): When removing default def,
15127 check for NULL loc instead of NULL *loc.
15128
15129 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15130
15131 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15132 restrictions on core registers for DImode values in Thumb2.
15133
15134 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15135
15136 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15137 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15138
15139 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15140
15141 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15142 (*iordi_notzesidi_di): Likewise.
15143 (*iordi_notsesidi_di): Likewise.
15144
15145 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15146
15147 * config/arm/arm-protos.h (tune_params): New struct members.
15148 * config/arm/arm.c: Initialise tune_params per processor.
15149 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15150 for speed, based on new tune_params.
15151
15152 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15153
15154 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15155 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15156 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15157 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15158 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15159 (vrnda_f64): Likewise.
15160 (vrndi_f64): Likewise.
15161 (vrndm_f64): Likewise.
15162 (vrndn_f64): Likewise.
15163 (vrndp_f64): Likewise.
15164 (vrndx_f64): Likewise.
15165
15166 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15167
15168 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15169 GET_MODE_SIZE argument is enum machine_mode.
15170
15171 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15172
15173 PR target/60910
15174 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15175 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15176
15177 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15178
15179 PR middle-end/60281
15180 * asan.c (asan_emit_stack_protection): Force the base to align to
15181 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15182 appropriate bits if STRICT_ALIGNMENT.
15183 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15184 when asan is on.
15185 (expand_used_vars): Leave a space in the stack frame for alignment
15186 if STRICT_ALIGNMENT.
15187
15188 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15189
15190 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15191 than a gimple.
15192 (gimple_store_p): Likewise.
15193 (gimple_assign_load_p): Likewise.
15194 (gimple_assign_cast_p): Likewise.
15195 (gimple_clobber_p): Likewise.
15196
15197 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15198 rather than a gimple.
15199 (gimple_assign_cast_p): Likewise.
15200
15201 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15202
15203 PR target/60735
15204 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15205 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15206
15207 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15208 more debug information for E500 if -mdebug=reg.
15209
15210 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15211
15212 PR target/60909
15213 * config/i386/i386.c (ix86_expand_builtin)
15214 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15215 register for target RTX.
15216 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15217
15218 2014-04-18 Cong Hou <congh@google.com>
15219
15220 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15221 the widen-mult pattern by handling two operands with different sizes,
15222 and operands whose size is smaller than half of the result type.
15223
15224 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15225
15226 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15227 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15228 (do_estimate_edge_time): Compute it.
15229 * ipa-inline.c (want_inline_small_function_p): Bypass
15230 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15231
15232 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15233
15234 * ipa-inline.c (spec_rem): New static variable.
15235 (dump_overall_stats): New function.
15236 (dump_inline_stats): New function.
15237
15238 2014-04-18 Richard Henderson <rth@redhat.com>
15239
15240 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15241 to GET_MODE_SIZE, not a reg_class_t.
15242
15243 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15244
15245 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15246 (vsx_xxmrglw_<mode>): Likewise.
15247
15248 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15249
15250 PR target/60876
15251 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15252 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15253 (rs6000_init_hard_regno_mode_ok): Likewise.
15254
15255 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15256
15257 * ipa-inline.c (inline_small_functions): Account only non-cold
15258 functions.
15259 * doc/invoke.texi (inline-unit-growth): Update documentation.
15260
15261 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15262
15263 * config/rs6000/rs6000.md (addti3, subti3): New.
15264
15265 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15266
15267 PR target/60863
15268 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15269 comment. Check optimize_insn_for_size_p instead of
15270 optimize_insn_for_speed_p.
15271
15272 2014-04-17 Martin Jambor <mjambor@suse.cz>
15273
15274 * gimple-iterator.c (gsi_start_edge): New function.
15275 * gimple-iterator.h (gsi_start_edge): Declare.
15276 * tree-sra.c (single_non_eh_succ): New function.
15277 (disqualify_ops_if_throwing_stmt): Renamed to
15278 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15279 having one non-EH successor BB.
15280 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15281 generate loads into replacements.
15282 (sra_modify_assign): Likewise and and also use the simple path for
15283 such statements.
15284 (sra_modify_function_body): Commit statements on edges.
15285
15286 2014-04-17 Richard Biener <rguenther@suse.de>
15287
15288 PR middle-end/60849
15289 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15290 comparison results and add clarifying comment.
15291
15292 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15293
15294 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15295 (blank_mode): Initialize it.
15296 (emit_mode_size_inline, emit_mode_nunits_inline,
15297 emit_mode_inner_inline): New functions.
15298 (emit_insn_modes_h): Call them and surround their output with
15299 #if GCC_VERSION >= 4001 ... #endif.
15300 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15301 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15302 mode_* arrays if the argument is __builtin_constant_p.
15303 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15304 is enum machine_mode.
15305
15306 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15307
15308 * passes.c (opt_pass::execute): Adjust.
15309 (pass_manager::execute_pass_mode_switching): Likewise.
15310 (early_local_passes::execute): Likewise.
15311 (execute_one_pass): Pass cfun to the pass's execute method.
15312 * tree-pass.h (opt_pass::execute): Add function * argument.
15313 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15314 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15315 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15316 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15317 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15318 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15319 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15320 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15321 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15322 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15323 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15324 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15325 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15326 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15327 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15328 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15329 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15330 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15331 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15332 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15333 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15334 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15335 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15336 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15337 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15338 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15339 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15340 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15341 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15342 Adjust.
15343
15344 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15345
15346 * passes.c (opt_pass::gate): Take function * argument.
15347 (gate_all_early_local_passes): Merge into
15348 (early_local_passes::gate): this.
15349 (gate_all_early_optimizations): Merge into
15350 (all_early_optimizations::gate): this.
15351 (gate_all_optimizations): Mege into
15352 (all_optimizations::gate): this.
15353 (gate_all_optimizations_g): Merge into
15354 (all_optimizations_g::gate): this.
15355 (gate_rest_of_compilation): Mege into
15356 (rest_of_compilation::gate): this.
15357 (gate_postreload): Merge into
15358 (postreload::gate): this.
15359 (dump_one_pass): Pass cfun to the pass's gate method.
15360 (execute_ipa_summary_passes): Likewise.
15361 (execute_one_pass): Likewise.
15362 (ipa_write_summaries_2): Likewise.
15363 (ipa_write_optimization_summaries_1): Likewise.
15364 (ipa_read_summaries_1): Likewise.
15365 (ipa_read_optimization_summaries_1): Likewise.
15366 (execute_ipa_stmt_fixups): Likewise.
15367 * tree-pass.h (opt_pass::gate): Add function * argument.
15368 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15369 combine-stack-adj.c, combine.c, compare-elim.c,
15370 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15371 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15372 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15373 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15374 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15375 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15376 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15377 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15378 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15379 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15380 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15381 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15382 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15383 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15384 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15385 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15386 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15387 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15388 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15389 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15390 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15391 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15392 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15393 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15394 var-tracking.c, vtable-verify.c, web.c: Adjust.
15395
15396 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15397
15398 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15399 * configure: Regenerate.
15400
15401 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15402
15403 * passes.c (dump_one_pass): don't check pass->has_gate.
15404 (execute_ipa_summary_passes): Likewise.
15405 (execute_one_pass): Likewise.
15406 (ipa_write_summaries_2): Likewise.
15407 (ipa_write_optimization_summaries_1): Likewise.
15408 (ipa_read_optimization_summaries_1): Likewise.
15409 (execute_ipa_stmt_fixups): Likewise.
15410 * tree-pass.h (pass_data::has_gate): Remove.
15411 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15412 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15413 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15414 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15415 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15416 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15417 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15418 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15419 gimple-low.c, gimple-ssa-isolate-paths.c,
15420 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15421 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15422 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15423 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15424 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15425 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15426 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15427 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15428 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15429 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15430 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15431 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15432 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15433 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15434 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15435 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15436 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15437 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15438 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15439 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15440 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15441 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15442 Adjust.
15443
15444 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15445
15446 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15447 declaration.
15448 * passes.c (pass_manager::register_dump_files_1): Merge into
15449 (pass_manager::register_dump_files): this, and remove its handling of
15450 properties since the pass always has the properties anyway.
15451 (pass_manager::pass_manager): Adjust.
15452
15453 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15454
15455 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15456 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15457 dealing with properties.
15458 (pass_manager::register_dump_files): Adjust.
15459
15460 2014-03-20 Mark Wielaard <mjw@redhat.com>
15461
15462 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15463 then represent the bound as normal constant value.
15464
15465 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15466
15467 PR target/60847
15468 Forward port from 4.8 branch
15469 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15470
15471 * config/i386/bmiintrin.h (_blsi_u32): New.
15472 (_blsi_u64): Ditto.
15473 (_blsr_u32): Ditto.
15474 (_blsr_u64): Ditto.
15475 (_blsmsk_u32): Ditto.
15476 (_blsmsk_u64): Ditto.
15477 (_tzcnt_u32): Ditto.
15478 (_tzcnt_u64): Ditto.
15479
15480 2014-04-17 Kito Cheng <kito@0xlab.org>
15481
15482 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15483
15484 2014-04-17 Richard Biener <rguenther@suse.de>
15485
15486 PR middle-end/60849
15487 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15488 boolean results for comparisons.
15489
15490 2014-04-17 Richard Biener <rguenther@suse.de>
15491
15492 PR tree-optimization/60836
15493 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15494 initial PHI args to be gimple values.
15495
15496 2014-04-17 Richard Biener <rguenther@suse.de>
15497
15498 PR tree-optimization/60841
15499 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15500 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15501 of stmts to SLP build.
15502 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15503 (vect_analyze_slp): Likewise.
15504 (vect_analyze_slp_instance): Likewise.
15505 (vect_build_slp_tree): Limit overall SLP tree growth.
15506 * tree-vectorizer.h (vect_analyze_data_refs,
15507 vect_analyze_slp): Adjust prototypes.
15508
15509 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15510
15511 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15512 Silvermont.
15513
15514 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15515
15516 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15517 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15518 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15519 for TARGET_SLOW_PSHUFB
15520
15521 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15522
15523 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15524 * config/i386/i386.c (intel_cost): Ditto.
15525
15526 2014-04-17 Joey Ye <joey.ye@arm.com>
15527
15528 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15529
15530 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15531
15532 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15533 with -fuse-profile.
15534
15535 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15536
15537 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15538 (type_all_derivations_known_p): New predicate.
15539 (type_all_ctors_visible_p): New predicate.
15540 (type_possibly_instantiated_p): New predicate.
15541 (get_odr_type): Compute all_derivations_known.
15542 (dump_odr_type): Dump the flag.
15543 (maybe_record_type): Cleanup.
15544 (record_target_from_binfo): Add bases_to_consider array;
15545 record bases for types w/o instances and skip CXX destructor.
15546 (possible_polymorphic_call_targets_1): Add bases_to_consider
15547 and consider_construction parameters; check if type may have instance.
15548 (get_polymorphic_call_info): Set maybe_in_construction to true
15549 when we know nothing.
15550 (record_targets_from_bases): Skip CXX destructors; they are
15551 never called for types in construction.
15552 (possible_polymorphic_call_targets): Do not record target when
15553 type may not have instance.
15554
15555 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15556
15557 PR ipa/60854
15558 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15559 external aliases alive, too.
15560
15561 2014-04-16 Andrew Pinski <apinski@cavium.com>
15562
15563 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15564 definition.
15565
15566 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15567
15568 * final.c (compute_alignments): Do not apply loop alignment to a block
15569 falling through to the exit.
15570
15571 2014-04-16 Catherine Moore <clm@codesourcery.com>
15572
15573 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15574 Adjust constraints for microMIPS store patterns.
15575
15576 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15577
15578 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15579
15580 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15581
15582 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15583 (append_use): Run at -O0.
15584 (append_vdef): Likewise.
15585 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15586 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15587
15588 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15589
15590 PR tree-optimization/60844
15591 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15592 (propagate_op_to_single_use, remove_visited_stmt_chain,
15593 linearize_expr, repropagate_negates, reassociate_bb): Use it
15594 instead of gsi_remove.
15595
15596 2014-04-16 Martin Jambor <mjambor@suse.cz>
15597
15598 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15599 ipa_transforms_to_apply.
15600 (cgraph_function_versioning): Assert that old_node has empty
15601 ipa_transforms_to_apply.
15602 * trans-mem.c (ipa_tm_create_version): Likewise.
15603 * tree-inline.c (tree_function_versioning): Do not duplicate
15604 ipa_transforms_to_apply.
15605
15606 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15607
15608 PR target/60817
15609 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15610 x86_64-*-* cases.
15611 Pass necessary as flags on 64-bit Solaris/x86.
15612 Use lowercase relocs for x86_64-*-*.
15613 * configure: Regenerate.
15614
15615 2014-04-15 Jan Hubicka <jh@suse.cz>
15616
15617 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15618 (maybe_record_node, likely_target_p): Use it.
15619
15620 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15621
15622 PR target/60839
15623 Revert following patch
15624
15625 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15626
15627 PR target/60735
15628 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15629 software floating point or no floating point registers, do not
15630 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15631 in GPRs that occurs after we tested for GPRs that would never be
15632 true.
15633
15634 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15635 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15636 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15637 specifically allow DDmode, since that does not use the SPE SIMD
15638 instructions.
15639
15640 2014-03-21 Mark Wielaard <mjw@redhat.com>
15641
15642 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15643 as unsigned or int depending on type and value used.
15644
15645 2014-04-15 Richard Biener <rguenther@suse.de>
15646
15647 PR rtl-optimization/56965
15648 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15649 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15650 ... here.
15651 * alias.c (true_dependence_1): Do not call
15652 nonoverlapping_component_refs_p.
15653 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15654 nonoverlapping_component_refs_p.
15655 (indirect_refs_may_alias_p): Likewise.
15656
15657 2014-04-15 Teresa Johnson <tejohnson@google.com>
15658
15659 * cfg.c (dump_bb_info): Fix flags check.
15660 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15661
15662 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15663
15664 PR rtl-optimization/60663
15665 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15666 avoid 0 cost.
15667
15668 2014-04-15 Richard Biener <rguenther@suse.de>
15669
15670 * lto-streamer.h (LTO_major_version): Bump to 4.
15671
15672 2014-04-15 Richard Biener <rguenther@suse.de>
15673
15674 * common.opt (lto_partition_model): New enum.
15675 (flto-partition=): Merge separate options with a single with argument,
15676 add -flto-partition=one support.
15677 * flag-types.h (enum lto_partition_model): Declare.
15678 * opts.c (finish_options): Remove duplicate -flto-partition=
15679 option check.
15680 * lto-wrapper.c (run_gcc): Adjust.
15681
15682 2014-04-15 Richard Biener <rguenther@suse.de>
15683
15684 * alias.c (ncr_compar): New function.
15685 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15686
15687 2014-04-15 Richard Biener <rguenther@suse.de>
15688
15689 * alias.c (record_component_aliases): Do not walk BINFOs.
15690
15691 2014-04-15 Richard Biener <rguenther@suse.de>
15692
15693 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15694 Add struct function argument and adjust.
15695 (find_func_aliases_for_call): Likewise.
15696 (find_func_aliases): Likewise.
15697 (find_func_clobbers): Likewise.
15698 (intra_create_variable_infos): Likewise.
15699 (compute_points_to_sets): Likewise.
15700 (ipa_pta_execute): Adjust. Do not push/pop cfun.
15701
15702 2014-04-15 Richard Biener <rguenther@suse.de>
15703
15704 * tree.c (iterative_hash_expr): Use enum tree_code_class
15705 to store TREE_CODE_CLASS.
15706 (tree_block): Likewise.
15707 (tree_set_block): Likewise.
15708 * tree.h (fold_build_pointer_plus_loc): Use
15709 convert_to_ptrofftype_loc.
15710
15711 2014-04-15 Jakub Jelinek <jakub@redhat.com>
15712
15713 PR plugins/59335
15714 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
15715 added in 4.9.
15716
15717 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
15718
15719 * cfgloop.h (struct loop): Move force_vectorize down.
15720 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
15721 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
15722 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
15723 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
15724 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
15725 * tree-core.h (enum annot_expr_kind): Add new kind values.
15726 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
15727 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
15728 kinds.
15729 * tree.def (ANNOTATE_EXPR): Tweak comment.
15730
15731 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15732
15733 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
15734 cxa_pure_virtual).
15735
15736 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
15737
15738 * tree.h (TYPE_IDENTIFIER): Declare.
15739 * tree.c (subrange_type_for_debug_p): Use it.
15740 * godump.c (go_format_type): Likewise.
15741 * dwarf2out.c (is_cxx_auto, modified_type_die,
15742 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
15743 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
15744
15745 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15746
15747 PR lto/60820
15748 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
15749
15750 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
15751
15752 * config/i386/i386.c (examine_argument): Return bool. Return true if
15753 parameter should be passed in memory.
15754 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
15755 (construct_container): Update calls to examine_argument.
15756 (function_arg_advance_64): Ditto.
15757 (return_in_memory_32): Merge with ix86_return_in_memory.
15758 (return_in_memory_64): Ditto.
15759 (return_in_memory_ms_64): Ditto.
15760
15761 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15762
15763 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
15764 * coverage.c (coverage_compute_profile_id): Handle externally visible
15765 symbols.
15766
15767 2014-04-14 Martin Jambor <mjambor@suse.cz>
15768
15769 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
15770 DECL_DISREGARD_INLINE_LIMITS functions.
15771
15772 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15773
15774 PR target/60827
15775 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
15776
15777 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15778
15779 PR target/60827
15780 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
15781 optimize_insn_for_speed_p instead of
15782 optimize_function_for_speed_p.
15783
15784 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
15785
15786 * doc/invoke.texi (free): Document AArch64.
15787
15788 2014-04-14 Richard Biener <rguenther@suse.de>
15789
15790 PR tree-optimization/60042
15791 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
15792 (insert_into_preds_of_block): Do not prevent PHI insertion
15793 for REFERENCE exprs here ...
15794 (eliminate_dom_walker::before_dom_children): ... but prevent
15795 their use here under similar conditions when applied to the
15796 IL after PRE optimizations.
15797
15798 2014-04-14 Richard Biener <rguenther@suse.de>
15799
15800 * passes.def: Move early points-to after early SRA.
15801
15802 2014-04-14 Richard Biener <rguenther@suse.de>
15803
15804 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
15805 check for which sign-changes we allow when forwarding
15806 a converted value into a switch.
15807
15808 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15809
15810 * stor-layout.c (place_field): Finalize non-constant offset for the
15811 field, if any.
15812
15813 2014-04-14 Richard Biener <rguenther@suse.de>
15814
15815 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
15816 as argument.
15817 (expand_switch_using_bit_tests_p): Likewise.
15818 (process_switch): Compute and pass on speed_p based on the
15819 switch stmt.
15820 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
15821 optimize_bb_for_speed_p.
15822
15823 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15824
15825 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
15826 * function.h (struct function): Rename has_force_vect_loops into
15827 has_force_vectorize_loops.
15828 * lto-streamer-in.c (input_cfg): Adjust for renaming.
15829 (input_struct_function_base): Likewise.
15830 * lto-streamer-out.c (output_cfg): Likewise.
15831 (output_struct_function_base): Likewise.
15832 * omp-low.c (expand_omp_simd): Likewise.
15833 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15834 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15835 (version_loop_for_if_conversion): Likewise.
15836 (tree_if_conversion): Likewise.
15837 (main_tree_if_conversion): Likewise.
15838 (gate_tree_if_conversion): Likewise.
15839 * tree-inline.c (copy_loops): Likewise.
15840 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
15841 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
15842 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15843 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
15844 * tree-vectorizer.c (vectorize_loops): Likewise.
15845 * tree-vectorizer.h (unlimited_cost_model): Likewise.
15846
15847 2014-04-14 Richard Biener <rguenther@suse.de>
15848
15849 PR lto/60720
15850 * lto-streamer-out.c (wrap_refs): New function.
15851 (lto_output): Wrap symbol references in global initializes in
15852 type-preserving MEM_REFs.
15853
15854 2014-04-14 Christian Bruel <christian.bruel@st.com>
15855
15856 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
15857
15858 2014-04-14 Christian Bruel <christian.bruel@st.com>
15859
15860 * config/sh/sh.md (setmemqi): New expand pattern.
15861 * config/sh/sh.h (CLEAR_RATIO): Define.
15862 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
15863 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
15864
15865 2014-04-14 Richard Biener <rguenther@suse.de>
15866
15867 PR middle-end/55022
15868 * fold-const.c (negate_expr_p): Don't negate directional rounding
15869 division.
15870 (fold_negate_expr): Likewise.
15871
15872 2014-04-14 Richard Biener <rguenther@suse.de>
15873
15874 PR tree-optimization/59817
15875 PR tree-optimization/60453
15876 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
15877 recursion to catch all CHRECs in the scalar evolution and restrict
15878 the predicate for the remains appropriately.
15879
15880 2014-04-12 Catherine Moore <clm@codesourcery.com>
15881
15882 * config/mips/constraints.md: Add new register constraint "kb".
15883 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
15884 (*movhi_internal): Likewise.
15885 (*movqi_internal): Likewise.
15886 * config/mips/mips.h (M16_STORE_REGS): New register class.
15887 (REG_CLASS_NAMES): Add M16_STORE_REGS.
15888 (REG_CLASS_CONTENTS): Likewise.
15889 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
15890
15891 2014-04-11 Tobias Burnus <burnus@net-b.de>
15892
15893 PR c/60194
15894 * doc/invoke.texi (-Wformat-signedness): Document it.
15895 (Wformat=2): Mention that this enables -Wformat-signedness.
15896
15897 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15898
15899 * common/config/epiphany/epiphany-common.c
15900 (epiphany_option_optimization_table): Enable section anchors by
15901 default at -O1 or higher.
15902 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
15903 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
15904 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
15905 carries no extra cost.
15906 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
15907 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
15908 * config/epiphany/predicates.md (memclob_operand): New predicate.
15909 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
15910 Use memclob_operand predicate and X constraint for operand 3.
15911
15912 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15913
15914 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
15915 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
15916 its operands.
15917
15918 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15919
15920 PR rtl-optimization/60651
15921 * mode-switching.c (optimize_mode_switching): Make sure to emit
15922 sets of a lower numbered entity before sets of a higher numbered
15923 entity to a mode of the same or lower priority.
15924 When creating a seginfo for a basic block that starts with a code
15925 label, move the insertion point past the code label.
15926 (new_seginfo): Document and enforce requirement that
15927 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
15928 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
15929 * doc/tm.texi: Regenerate.
15930
15931 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
15932
15933 PR target/60811
15934 * config/arc/arc.c (arc_save_restore): Fix assert typo.
15935
15936 2013-04-11 Jakub Jelinek <jakub@redhat.com>
15937
15938 * BASE-VER: Set to 4.10.0.
15939
15940 2014-04-11 Tobias Burnus <burnus@net-b.de>
15941
15942 PR other/59055
15943 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
15944 * doc/gcc.texi (Service): Update description in the @menu
15945 * doc/invoke.texi (Option Summary): Remove misplaced and
15946 duplicated @menu.
15947
15948 2014-04-11 Steve Ellcey <sellcey@mips.com>
15949 Jakub Jelinek <jakub@redhat.com>
15950
15951 PR middle-end/60556
15952 * expr.c (convert_move): Use emit_store_flag_force instead of
15953 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
15954 argument to it.
15955
15956 2014-04-11 Richard Biener <rguenther@suse.de>
15957
15958 PR middle-end/60797
15959 * varasm.c (assemble_alias): Avoid endless error reporting
15960 recursion by setting TREE_ASM_WRITTEN.
15961
15962 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15963
15964 * config/s390/s390.md: Add a splitter for NOT rtx.
15965
15966 2014-04-11 Jakub Jelinek <jakub@redhat.com>
15967
15968 PR rtl-optimization/60663
15969 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
15970
15971 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
15972 Jakub Jelinek <jakub@redhat.com>
15973
15974 PR lto/60567
15975 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
15976 flag from decl_node to node.
15977
15978 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15979
15980 PR debug/60655
15981 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
15982 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
15983 ameliorating the cases where it can be.
15984
15985 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
15986
15987 Revert
15988 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15989
15990 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15991 (loadsync_<mode>): Change mode.
15992 (load_quadpti, store_quadpti): New.
15993 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15994 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15995 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
15996
15997 2014-04-09 Cong Hou <congh@google.com>
15998
15999 PR testsuite/60773
16000 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
16001 documentation.
16002
16003 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16004
16005 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
16006 instead of vnor to exploit possible fusion opportunity in the
16007 future.
16008 (altivec_expand_vec_perm_const_le): Likewise.
16009
16010 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16011
16012 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16013 (loadsync_<mode>): Change mode.
16014 (load_quadpti, store_quadpti): New.
16015 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16016 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16017
16018 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
16019
16020 PR target/60763
16021 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
16022 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
16023 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
16024
16025 2014-04-08 Richard Biener <rguenther@suse.de>
16026
16027 PR middle-end/60706
16028 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
16029 a 64bit widest int print double-int similar to on HWI64 hosts.
16030
16031 2014-04-08 Richard Biener <rguenther@suse.de>
16032
16033 PR tree-optimization/60785
16034 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
16035 default defs properly.
16036
16037 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
16038
16039 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
16040 (Weffc++): Likewise.
16041
16042 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
16043
16044 * ipa-devirt.c (maybe_record_node): When node is not recorded,
16045 set completep to false rather than true.
16046
16047 2014-04-07 Douglas B Rupp <rupp@adacore.com>
16048
16049 PR target/60504
16050 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
16051 ARM_TARGET2_DWARF_FORMAT.
16052
16053 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
16054
16055 PR target/60609
16056 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
16057 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
16058 ADDR_DIFF_VEC.
16059
16060 2014-04-07 Richard Biener <rguenther@suse.de>
16061
16062 PR tree-optimization/60766
16063 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
16064 (may_eliminate_iv): Convert cand_value_at result to desired type.
16065
16066 2014-04-07 Jason Merrill <jason@redhat.com>
16067
16068 PR c++/60731
16069 * common.opt (-fno-gnu-unique): Add.
16070 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
16071
16072 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16073
16074 * haifa-sched.c: Fix outdated function reference and minor
16075 grammar errors in introductory comment.
16076
16077 2014-04-07 Richard Biener <rguenther@suse.de>
16078
16079 PR middle-end/60750
16080 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
16081 for noreturn calls.
16082 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
16083
16084 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
16085
16086 PR debug/55794
16087 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
16088 size accounting for thunks.
16089 (pa_asm_output_mi_thunk): Use final_start_function() and
16090 final_end_function() to output function start and end directives.
16091
16092 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16093
16094 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
16095 device specific ISA/ feature information. Remove short_sp and
16096 errata_skip ds. Add avr_device_specific_features enum to have device
16097 specific info.
16098 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
16099 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
16100 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
16101 updated device specific info.
16102 * config/avr/avr-mcus.def: Merge device specific details to
16103 dev_attribute field.
16104 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16105 errata_skip.
16106 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16107 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16108 assembler if RMW isa supported by current device.
16109 * config/avr/genmultilib.awk: Update as device info structure changed.
16110 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16111
16112 2014-04-04 Cong Hou <congh@google.com>
16113
16114 PR tree-optimization/60656
16115 * tree-vect-stmts.c (supportable_widening_operation):
16116 Fix a bug that elements in a vector with vect_used_by_reduction
16117 property are incorrectly reordered when the operation on it is not
16118 consistant with the one in reduction operation.
16119
16120 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16121
16122 PR rtl-optimization/60155
16123 * gcse.c (record_set_data): New function.
16124 (single_set_gcse): New function.
16125 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16126 (hoist_code): Likewise.
16127 (get_pressure_class_and_nregs): Likewise.
16128
16129 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16130
16131 * explow.c (probe_stack_range): Emit a final optimization blockage.
16132
16133 2014-04-04 Anthony Green <green@moxielogic.com>
16134
16135 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16136 typos.
16137
16138 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16139
16140 PR ipa/59626
16141 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16142 flags are set only during streaming.
16143 * ipa.c (process_references, walk_polymorphic_call_targets,
16144 symtab_remove_unreachable_nodes): Drop bodies of always inline
16145 after early inlining.
16146 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16147
16148 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16149 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16150
16151 PR debug/60655
16152 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16153 containing a NOT.
16154
16155 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16156
16157 PR bootstrap/60743
16158 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16159 duration.
16160 (cortex_a53_fdivd): Likewise.
16161
16162 2014-04-04 Martin Jambor <mjambor@suse.cz>
16163
16164 PR ipa/60640
16165 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16166 Adjust all callers.
16167 * cgraph.c (clone_of_p): Also return true if thunks match.
16168 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16169 cgraph_function_or_thunk_node and an obsolete comment.
16170 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16171 file.
16172 (build_function_decl_skip_args): Likewise.
16173 (set_new_clone_decl_and_node_flags): New function.
16174 (duplicate_thunk_for_node): Likewise.
16175 (redirect_edge_duplicating_thunks): Likewise.
16176 (cgraph_clone_node): New parameter args_to_skip, pass it to
16177 redirect_edge_duplicating_thunks which is called instead of
16178 cgraph_redirect_edge_callee.
16179 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16180 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16181
16182 2014-04-04 Jeff Law <law@redhat.com>
16183
16184 PR target/60657
16185 * config/arm/predicates.md (const_int_I_operand): New predicate.
16186 (const_int_M_operand): Similarly.
16187 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16188 const_int_operand.
16189 (insv_t2, extv_reg, extzv_t2): Likewise.
16190 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16191 (pop_multiple_with_writeback_and_return): Likewise.
16192 (vfp_pop_multiple_with_writeback): Likewise
16193
16194 2014-04-04 Richard Biener <rguenther@suse.de>
16195
16196 PR ipa/60746
16197 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16198 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16199 non-GIMPLE_LABELs.
16200 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16201 * gimplify.c (gimple_add_tmp_var_fn): New function.
16202 * gimple-expr.h (create_tmp_reg_fn): Declare.
16203 * gimple-expr.c (create_tmp_reg_fn): New function.
16204 * gimple-low.c (record_vars_into): Don't change cfun.
16205 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16206 code generation without cfun.
16207
16208 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16209
16210 PR bootstrap/60719
16211 * Makefile.in (install-driver): Fix shell scripting.
16212
16213 2014-04-03 Cong Hou <congh@google.com>
16214
16215 PR tree-optimization/60505
16216 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16217 threshold of number of iterations below which no vectorization
16218 will be done.
16219 * tree-vect-loop.c (new_loop_vec_info):
16220 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16221 * tree-vect-loop.c (vect_analyze_loop_operations):
16222 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16223 * tree-vect-loop.c (vect_transform_loop):
16224 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16225 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16226 of iterations of the loop and see if we should build the epilogue.
16227
16228 2014-04-03 Richard Biener <rguenther@suse.de>
16229
16230 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16231 (streamer_tree_cache_create): Adjust.
16232 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16233 to allow optional nodes array.
16234 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16235 (streamer_tree_cache_append): Likewise.
16236 (streamer_tree_cache_create): Create nodes array optionally
16237 as specified by parameter.
16238 * lto-streamer-out.c (create_output_block): Avoid maintaining
16239 the node array in the writer cache.
16240 (DFS_write_tree): Remove assertion.
16241 (produce_asm_for_decls): Free the out decl state hash table early.
16242 * lto-streamer-in.c (lto_data_in_create): Adjust for
16243 streamer_tree_cache_create prototype change.
16244
16245 2014-04-03 Richard Biener <rguenther@suse.de>
16246
16247 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16248 set TREE_CHAIN to NULL_TREE.
16249
16250 2014-04-03 Richard Biener <rguenther@suse.de>
16251
16252 PR tree-optimization/60740
16253 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16254 over all GIMPLE_COND operands.
16255
16256 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16257
16258 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16259 (Weffc++): Remove Scott's numbering, merge lists and reference
16260 Wnon-virtual-dtor.
16261
16262 2014-04-03 Nick Clifton <nickc@redhat.com>
16263
16264 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16265 properly.
16266
16267 2014-04-03 Martin Jambor <mjambor@suse.cz>
16268
16269 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16270 mention gcc_unreachable before failing.
16271 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16272 removed symbols.
16273
16274 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16275
16276 PR ipa/60659
16277 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16278 inconsistent code and instead mark the context inconsistent.
16279 (possible_polymorphic_call_targets): For inconsistent contexts
16280 return empty complete list.
16281
16282 2014-04-02 Anthony Green <green@moxielogic.com>
16283
16284 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16285 (extendqisi2, extendhisi2): Define.
16286 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16287 (WCHAR_TYPE): Change to unsigned int.
16288
16289 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16290
16291 PR tree-optimization/60733
16292 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16293 insertion point for PHI candidates to be the end of the feeding
16294 block for the PHI argument.
16295
16296 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16297
16298 PR rtl-optimization/60650
16299 * lra-constraints.c (process_alt_operands): Decrease reject for
16300 earlyclobber matching.
16301
16302 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16303
16304 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16305
16306 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16307
16308 * config/spu/spu.c (pad_bb): Do not crash when the last
16309 insn is CODE_FOR_blockage.
16310
16311 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16312
16313 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16314 lies outside the target mode.
16315
16316 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16317
16318 PR target/60735
16319 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16320 software floating point or no floating point registers, do not
16321 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16322 in GPRs that occurs after we tested for GPRs that would never be
16323 true.
16324
16325 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16326 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16327 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16328 specifically allow DDmode, since that does not use the SPE SIMD
16329 instructions.
16330
16331 2014-04-02 Richard Biener <rguenther@suse.de>
16332
16333 PR middle-end/60729
16334 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16335 MODE_INTs. Properly use negv_optab.
16336 (expand_abs): Likewise.
16337
16338 2014-04-02 Richard Biener <rguenther@suse.de>
16339
16340 PR bootstrap/60719
16341 * Makefile.in (install-driver): Guard extra installs with special
16342 names properly.
16343
16344 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16345
16346 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16347 Document vec_vgbbd.
16348
16349 2014-04-01 Richard Henderson <rth@redhat.com>
16350
16351 PR target/60704
16352 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16353 alternative enabled before register allocation.
16354
16355 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16356
16357 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16358 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16359 typo.
16360 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16361 (nios2_got_address): Update nios2_large_got_address call site.
16362 (nios2_delegitimize_address): New function.
16363 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16364 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16365 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16366
16367 2014-04-01 Martin Husemann <martin@duskware.de>
16368
16369 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16370 for -mabi=32.
16371
16372 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16373
16374 PR rtl-optimization/60604
16375 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16376 check from register_operand.
16377 (register_operand): Redefine in terms of general_operand.
16378 (nonmemory_operand): Use register_operand for the non-constant cases.
16379
16380 2014-04-01 Richard Biener <rguenther@suse.de>
16381
16382 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16383
16384 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16385
16386 * doc/invoke.texi (mapp-regs): Clarify.
16387
16388 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16389
16390 * config/i386/avx512fintrin.h (__v32hi): Define type.
16391 (__v64qi): Likewise.
16392 (_mm512_set1_epi8): Define.
16393 (_mm512_set1_epi16): Define.
16394 (_mm512_set4_epi32): Define.
16395 (_mm512_set4_epi64): Define.
16396 (_mm512_set4_pd): Define.
16397 (_mm512_set4_ps): Define.
16398 (_mm512_setr4_epi64): Define.
16399 (_mm512_setr4_epi32): Define.
16400 (_mm512_setr4_pd): Define.
16401 (_mm512_setr4_ps): Define.
16402 (_mm512_setzero_epi32): Define.
16403
16404 2014-03-31 Martin Jambor <mjambor@suse.cz>
16405
16406 PR middle-end/60647
16407 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16408 callsite_arguments_match_p. Updated all callers. Also check types of
16409 corresponding formal parameters and actual arguments.
16410 (not_all_callers_have_enough_arguments_p) Renamed to
16411 some_callers_have_mismatched_arguments_p.
16412
16413 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16414
16415 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16416
16417 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16418
16419 PR target/60034
16420 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16421 section anchor.
16422
16423 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16424
16425 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16426 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16427 Split out
16428 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16429 Use FMAMODE_NOVF512 mode iterator.
16430 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16431 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16432 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16433 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16434 Split out
16435 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16436 Use VF_128_256 mode iterator.
16437 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16438 Ditto.
16439
16440 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16441
16442 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16443 static chain if needed.
16444
16445 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16446
16447 PR target/60697
16448 * lra-constraints.c (index_part_to_reg): New.
16449 (process_address): Use it.
16450
16451 2014-03-27 Jeff Law <law@redhat.com>
16452 Jakub Jelinek <jakub@redhat.com>
16453
16454 PR target/60648
16455 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16456 gen_rtx_{PLUS,MULT} to build up the address expression.
16457
16458 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16459 creating non-canonical RTL.
16460
16461 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16462
16463 PR ipa/60243
16464 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16465 functions; reorganize to make cheap checks first.
16466 (inline_small_functions): Do not estimate growth when dumping;
16467 it is expensive.
16468 * ipa-inline.h (inline_summary): Add min_size.
16469 (growth_likely_positive): New function.
16470 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16471 (set_cond_stmt_execution_predicate): Cleanup.
16472 (estimate_edge_size_and_time): Compute min_size.
16473 (estimate_calls_size_and_time): Likewise.
16474 (estimate_node_size_and_time): Likewise.
16475 (inline_update_overall_summary): Update min_size.
16476 (do_estimate_edge_time): Likewise.
16477 (do_estimate_edge_size): Update.
16478 (do_estimate_edge_hints): Update.
16479 (growth_likely_positive): New function.
16480
16481 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16482
16483 PR target/60693
16484 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16485 also if addr has VOIDmode.
16486
16487 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16488
16489 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16490 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16491 Declare extern.
16492 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16493 instructions as well as AdvancedSIMD loads.
16494
16495 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16496
16497 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16498 Use crypto_aese type.
16499 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16500 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16501 crypto_aese, crypto_aesmc. Move to types.md.
16502 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16503 crypto_aesmc.
16504 * config/arm/iterators.md (crypto_type): Likewise.
16505
16506 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16507
16508 * cgraph.c: Include expr.h and tree-dfa.h.
16509 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16510 remove LHS.
16511
16512 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16513
16514 PR target/60675
16515 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16516 regs from checking multi-reg pseudos.
16517
16518 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16519
16520 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16521
16522 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16523
16524 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16525 if it would clobber the stack pointer, even temporarily.
16526
16527 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16528
16529 * mode-switching.c: Make small adjustments to the top comment.
16530
16531 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16532
16533 * config/rs6000/constraints.md (wD constraint): New constraint to
16534 match the constant integer to get the top DImode/DFmode out of a
16535 vector in a VSX register.
16536
16537 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16538 match the constant integer to get the top DImode/DFmode out of a
16539 vector in a VSX register.
16540
16541 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16542 for ISA 2.07.
16543
16544 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16545 vbpermq builtins.
16546
16547 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16548 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16549
16550 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16551 Optimize vec_extract of 64-bit values, where the value being
16552 extracted is in the top word, where we can use scalar
16553 instructions. Add direct move and store support. Combine the big
16554 endian/little endian vector select load support into a single insn.
16555 (vsx_extract_<mode>_internal1): Likewise.
16556 (vsx_extract_<mode>_internal2): Likewise.
16557 (vsx_extract_<mode>_load): Likewise.
16558 (vsx_extract_<mode>_store): Likewise.
16559 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16560 combined into vsx_extract_<mode>_load.
16561 (vsx_extract_<mode>_one_le): Likewise.
16562
16563 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16564 define the top 64-bit vector element.
16565
16566 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16567 constraint.
16568
16569 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16570 Document vec_vbpermq builtin.
16571
16572 PR target/60672
16573 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16574 enable use of xxsldwi and xxpermdi builtin functions.
16575 (vec_xxpermdi): Likewise.
16576
16577 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16578 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16579
16580 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16581
16582 PR rtl-optimization/60650
16583 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16584 first_p. Use it.
16585 (find_spills_for): New.
16586 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16587 Spill all pseudos on the second iteration.
16588
16589 2014-03-27 Marek Polacek <polacek@redhat.com>
16590
16591 PR c/50347
16592 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16593 types.
16594
16595 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16596
16597 * config/s390/s390.c (s390_can_use_return_insn): Check for
16598 call-saved FPRs on 31 bit.
16599
16600 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16601
16602 PR middle-end/60682
16603 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16604 if they need regimplification, just drop them instead of
16605 calling gimple_regimplify_operands on them.
16606
16607 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16608
16609 PR target/60580
16610 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16611 (aarch64_frame_pointer_required): Adjust logic.
16612 (aarch64_can_eliminate): Adjust logic.
16613 (aarch64_override_options_after_change): Adjust logic.
16614
16615 2014-03-27 Dehao Chen <dehao@google.com>
16616
16617 * ipa-inline.c (early_inliner): Update node's inline info.
16618
16619 2014-03-26 Dehao Chen <dehao@google.com>
16620
16621 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16622 compiler inserted conditional jumps for NAN float check.
16623
16624 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16625
16626 * ubsan.h (ubsan_create_data): Change second argument's type
16627 to const location_t *.
16628 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16629 _("<unknown>").
16630 (ubsan_create_data): Change second argument to const location_t *PLOC.
16631 Create Loc field whenever PLOC is non-NULL.
16632 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16633 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16634 callers.
16635
16636 PR other/59545
16637 * real.c (real_to_integer2): Change type of low to UHWI.
16638
16639 2014-03-26 Tobias Burnus <burnus@net-b.de>
16640
16641 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16642 (CILK_SELF_SPECS): New define.
16643 (driver_self_specs): Use it.
16644
16645 2014-03-26 Richard Biener <rguenther@suse.de>
16646
16647 * tree-pretty-print.c (percent_K_format): Implement special
16648 case for LTO and its stripped down BLOCK tree.
16649
16650 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16651
16652 PR sanitizer/60636
16653 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16654
16655 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16656 one range is range_int_cst_p, but not both, at least optimize
16657 addition/subtraction of 0 and multiplication by 0 or 1.
16658 * gimple-fold.c (gimple_fold_call): Fold
16659 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16660 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16661 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16662
16663 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16664
16665 PR rtl-optimization/60452
16666 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16667 <case REG>: Return 1 for invalid offsets from the frame pointer.
16668
16669 2014-03-26 Marek Polacek <polacek@redhat.com>
16670
16671 PR c/37428
16672 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16673 a structure/union.
16674
16675 2014-03-26 Marek Polacek <polacek@redhat.com>
16676
16677 PR c/39525
16678 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16679 field members.
16680
16681 2014-03-26 Marek Polacek <polacek@redhat.com>
16682
16683 PR other/59545
16684 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16685 multiplication in unsigned type.
16686
16687 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16688
16689 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16690
16691 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16692
16693 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16694
16695 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16696
16697 PR ipa/60315
16698 * cif-code.def (UNREACHABLE) New code.
16699 * ipa-inline.c (inline_small_functions): Skip edges to
16700 __builtlin_unreachable.
16701 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
16702 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
16703 predicate to __bulitin_unreachable.
16704 (set_cond_stmt_execution_predicate): Fix issue when
16705 invert_tree_comparison returns ERROR_MARK.
16706 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
16707 propagate to inline clones.
16708 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
16709 to unreachable.
16710 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
16711 * cgraphclones.c (cgraph_clone_node): If call destination is already
16712 ureachable, do not redirect it back.
16713 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
16714 unreachable.
16715
16716 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16717
16718 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
16719 Do not modify inline clones.
16720
16721 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16722
16723 * config/i386/i386.md (general_sext_operand): New mode attr.
16724 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
16725 don't generate (sign_extend (const_int)).
16726 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
16727 operands[2]. Use We constraint instead of <i> and
16728 <general_sext_operand> predicate instead of <general_operand>.
16729 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
16730 * config/i386/constraints.md (We): New constraint.
16731 * config/i386/predicates.md (x86_64_sext_operand,
16732 sext_operand): New predicates.
16733
16734 2014-03-25 Martin Jambor <mjambor@suse.cz>
16735
16736 PR ipa/60600
16737 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
16738 inconsistent devirtualizations to __builtin_unreachable.
16739
16740 2014-03-25 Marek Polacek <polacek@redhat.com>
16741
16742 PR c/35449
16743 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
16744
16745 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
16746
16747 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
16748 order of elements for big-endian.
16749
16750 2014-03-25 Richard Biener <rguenther@suse.de>
16751
16752 PR middle-end/60635
16753 * gimplify-me.c (gimple_regimplify_operands): Update the
16754 re-gimplifed stmt.
16755
16756 2014-03-25 Martin Jambor <mjambor@suse.cz>
16757
16758 PR ipa/59176
16759 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
16760 (lto_output_varpool_node): Likewise.
16761 (input_overwrite_node): Likewise.
16762 (input_varpool_node): Likewise.
16763
16764 2014-03-25 Richard Biener <rguenther@suse.de>
16765
16766 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
16767 (run_gcc): Likewise.
16768
16769 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16770
16771 * combine.c (simplify_compare_const): Add MODE argument.
16772 Handle mode_width 0 as very large mode_width.
16773 (try_combine, simplify_comparison): Adjust callers.
16774
16775 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
16776 type to avoid signed integer overflow.
16777 * explow.c (plus_constant): Likewise.
16778
16779 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16780
16781 * doc/generic.texi: Correct typos.
16782
16783 2014-03-24 Tobias Burnus <burnus@net-b.de>
16784
16785 * doc/invoke.texi (-flto): Expand section about
16786 using static libraries with LTO.
16787
16788 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16789
16790 PR rtl-optimization/60501
16791 * optabs.def (addptr3_optab): New optab.
16792 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
16793 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
16794 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
16795
16796 * lra.c (emit_add3_insn): Use the addptr pattern if available.
16797
16798 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
16799
16800 2014-03-24 Ulrich Drepper <drepper@gmail.com>
16801
16802 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
16803 _mm512_set1_pd.
16804
16805 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
16806 (_mm256_undefined_ps): Define.
16807 (_mm256_undefined_pd): Define.
16808 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
16809 (_mm_undefined_pd): Define.
16810 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
16811 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
16812 (_mm512_undefined_ps): Define.
16813 (_mm512_undefined_pd): Define.
16814 Use _mm*_undefined_*.
16815 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
16816
16817 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
16818
16819 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
16820 (lshr_simd): DI mode added.
16821 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
16822 (aarch64_ushr_simddi): Likewise.
16823 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
16824 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
16825 (vshrd_n_u64): Likewise.
16826
16827 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16828
16829 * Makefile.in (s-macro_list): Depend on cc1.
16830
16831 2014-03-23 Teresa Johnson <tejohnson@google.com>
16832
16833 * ipa-utils.c (ipa_print_order): Use specified dump file.
16834
16835 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
16836
16837 PR rtl-optimization/60601
16838 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
16839
16840 * gcc.c (eval_spec_function): Initialize save_growing_value.
16841
16842 2014-03-22 Jakub Jelinek <jakub@redhat.com>
16843
16844 PR sanitizer/60613
16845 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
16846 code == MINUS_EXPR, never swap op0 with op1.
16847
16848 * toplev.c (init_local_tick): Avoid signed integer multiplication
16849 overflow.
16850 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
16851 shift by first operand's bitsize.
16852
16853 2014-03-21 Jakub Jelinek <jakub@redhat.com>
16854
16855 PR target/60610
16856 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
16857 redefine to 1 or 0.
16858 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
16859 TARGET_ISA_64BIT_P(x).
16860
16861 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16862
16863 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
16864 pattern for vector nor instead of subtract from splat(-1).
16865 (altivec_expand_vec_perm_const_le): Likewise.
16866
16867 2014-03-21 Richard Henderson <rth@twiddle.net>
16868
16869 PR target/60598
16870 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
16871 related insns after epilogue_completed.
16872
16873 2014-03-21 Martin Jambor <mjambor@suse.cz>
16874
16875 PR ipa/59176
16876 * cgraph.h (symtab_node): New flag body_removed.
16877 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
16878 when removing bodies.
16879 * symtab.c (dump_symtab_base): Dump body_removed flag.
16880 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
16881 had their bodies removed.
16882
16883 2014-03-21 Martin Jambor <mjambor@suse.cz>
16884
16885 PR ipa/60419
16886 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
16887 in the border.
16888
16889 2014-03-21 Richard Biener <rguenther@suse.de>
16890
16891 PR tree-optimization/60577
16892 * tree-core.h (struct tree_base): Document nothrow_flag use
16893 in DECL_NONALIASED.
16894 * tree.h (DECL_NONALIASED): New.
16895 (may_be_aliased): Adjust.
16896 * coverage.c (build_var): Set DECL_NONALIASED.
16897
16898 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16899
16900 * expr.c (expand_expr_real_1): Remove outdated comment.
16901
16902 2014-03-20 Jakub Jelinek <jakub@redhat.com>
16903
16904 PR middle-end/60597
16905 * ira.c (adjust_cleared_regs): Call copy_rtx on
16906 *reg_equiv[REGNO (loc)].src_p before passing it to
16907 simplify_replace_fn_rtx.
16908
16909 PR target/60568
16910 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
16911 into CONST, put pic register as first operand of PLUS. Use
16912 gen_const_mem for both 32-bit and 64-bit PIC got loads.
16913
16914 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16915
16916 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
16917
16918 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16919
16920 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
16921 around for store forwarding issue in the FPU on the UT699.
16922 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
16923 loads and operations if -mfix-ut699 is specified.
16924 (divtf3_hq): Tweak attribute.
16925 (sqrttf2_hq): Likewise.
16926
16927 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16928
16929 * calls.c (store_one_arg): Remove incorrect const qualification on the
16930 type of the temporary.
16931 * cfgexpand.c (expand_return): Likewise.
16932 * expr.c (expand_constructor): Likewise.
16933 (expand_expr_real_1): Likewise.
16934
16935 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16936
16937 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
16938 of parts.
16939
16940 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16941
16942 PR target/60039
16943 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
16944
16945 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
16946
16947 * config/arm/aarch-common-protos.h
16948 (alu_cost_table): Fix spelling of "extend".
16949 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
16950
16951 2014-03-19 Richard Biener <rguenther@suse.de>
16952
16953 PR middle-end/60553
16954 * tree-core.h (tree_type_common): Re-order pointer members
16955 to reduce recursion depth during GC walks.
16956
16957 2014-03-19 Marek Polacek <polacek@redhat.com>
16958
16959 PR sanitizer/60569
16960 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
16961 before accessing it.
16962
16963 2014-03-19 Richard Biener <rguenther@suse.de>
16964
16965 PR lto/59543
16966 * lto-streamer-in.c (input_function): In WPA stage do not drop
16967 debug stmts.
16968
16969 2014-03-19 Jakub Jelinek <jakub@redhat.com>
16970
16971 PR tree-optimization/60559
16972 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
16973 with build_zero_cst assignment.
16974
16975 2014-03-18 Kai Tietz <ktietz@redhat.com>
16976
16977 PR rtl-optimization/56356
16978 * sdbout.c (sdbout_parms): Verify that parms'
16979 incoming argument is valid.
16980 (sdbout_reg_parms): Likewise.
16981
16982 2014-03-18 Richard Henderson <rth@redhat.com>
16983
16984 PR target/60562
16985 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
16986 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
16987 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
16988
16989 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
16990
16991 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
16992 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
16993 Italicize plugin event names in description. Explain that
16994 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
16995 Remind that no GCC functions should be called after PLUGIN_FINISH.
16996 Explain what pragmas with expansion are.
16997
16998 2014-03-18 Martin Liska <mliska@suse.cz>
16999
17000 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
17001 gimple call statement is update.
17002 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
17003 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
17004
17005 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17006
17007 PR sanitizer/60557
17008 * ubsan.c (ubsan_instrument_unreachable): Call
17009 initialize_sanitizer_builtins.
17010 (ubsan_pass): Likewise.
17011
17012 PR sanitizer/60535
17013 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
17014 varpool_finalize_decl instead of rest_of_decl_compilation.
17015
17016 2014-03-18 Richard Biener <rguenther@suse.de>
17017
17018 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
17019 by using bitmap_and_compl instead of bitmap_and_compl_into.
17020 (df_rd_transfer_function): Likewise.
17021
17022 2014-03-18 Richard Biener <rguenther@suse.de>
17023
17024 * doc/lto.texi (fresolution): Fix typo.
17025
17026 2014-03-18 Richard Biener <rguenther@suse.de>
17027
17028 * doc/invoke.texi (flto): Update for changes in 4.9.
17029
17030 2014-03-18 Richard Biener <rguenther@suse.de>
17031
17032 * doc/loop.texi: Remove section on the removed lambda framework.
17033 Update loop docs with recent changes in preserving loop structure.
17034
17035 2014-03-18 Richard Biener <rguenther@suse.de>
17036
17037 * doc/lto.texi (-fresolution): Document.
17038
17039 2014-03-18 Richard Biener <rguenther@suse.de>
17040
17041 * doc/contrib.texi: Adjust my name.
17042
17043 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17044
17045 PR ipa/58721
17046 * internal-fn.c: Include diagnostic-core.h.
17047 (expand_BUILTIN_EXPECT): New function.
17048 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
17049 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
17050 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
17051 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
17052 IFN_BUILTIN_EXPECT.
17053 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
17054 Revert 3 argument __builtin_expect code.
17055 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
17056 * gimple-fold.c (gimple_fold_call): Likewise.
17057 * tree.h (fold_builtin_expect): New prototype.
17058 * builtins.c (build_builtin_expect_predicate): Add predictor
17059 argument, if non-NULL, create 3 argument __builtin_expect.
17060 (fold_builtin_expect): No longer static. Add ARG2 argument,
17061 pass it through to build_builtin_expect_predicate.
17062 (fold_builtin_2): Adjust caller.
17063 (fold_builtin_3): Handle BUILT_IN_EXPECT.
17064 * internal-fn.def (BUILTIN_EXPECT): New.
17065
17066 2014-03-18 Tobias Burnus <burnus@net-b.de>
17067
17068 PR ipa/58721
17069 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
17070 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
17071 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
17072
17073 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
17074
17075 PR ipa/58721
17076 * predict.c (combine_predictions_for_bb): Fix up formatting.
17077 (expr_expected_value_1, expr_expected_value): Add predictor argument,
17078 fill what it points to if non-NULL.
17079 (tree_predict_by_opcode): Adjust caller, use the predictor.
17080 * predict.def (PRED_COMPARE_AND_SWAP): Add.
17081
17082 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
17083
17084 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
17085 proper constant for the store mode.
17086
17087 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
17088
17089 * symtab.c (change_decl_assembler_name): Fix transparent alias
17090 chain construction.
17091
17092 2014-03-16 Renlin Li <Renlin.Li@arm.com>
17093
17094 * config/aarch64/aarch64.c: Correct the comments about the
17095 aarch64 stack layout.
17096
17097 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
17098
17099 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
17100 check for GF_OMP_FOR_KIND_FOR.
17101
17102 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17103
17104 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
17105 ymm and zmm register names.
17106
17107 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17108
17109 PR target/60516
17110 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17111 note creation for the 2010-08-31 changes.
17112
17113 2014-03-17 Marek Polacek <polacek@redhat.com>
17114
17115 PR middle-end/60534
17116 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17117 as -fno-tree-loop-vectorize.
17118 (expand_omp_simd): Likewise.
17119
17120 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17121
17122 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17123 (eligible_for_call_delay): New prototype.
17124 * config/sparc/sparc.c (tls_call_delay): Rename into...
17125 (eligible_for_call_delay): ...this. Return false if the instruction
17126 cannot be put in the delay slot of a branch.
17127 (eligible_for_restore_insn): Simplify.
17128 (eligible_for_return_delay): Return false if the instruction cannot be
17129 put in the delay slot of a branch and simplify.
17130 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17131 put in the delay slot of a branch.
17132 * config/sparc/sparc.md (fix_ut699): New attribute.
17133 (tls_call_delay): Delete.
17134 (in_call_delay): Reimplement.
17135 (eligible_for_sibcall_delay): Rename into...
17136 (in_sibcall_delay): ...this.
17137 (eligible_for_return_delay): Rename into...
17138 (in_return_delay): ...this.
17139 (in_branch_delay): Reimplement.
17140 (in_uncond_branch_delay): Delete.
17141 (in_annul_branch_delay): Delete.
17142
17143 2014-03-14 Richard Henderson <rth@redhat.com>
17144
17145 PR target/60525
17146 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17147 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17148 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17149 (floathi splitters): Remove.
17150 (float<SWI48x>xf2): New pattern.
17151 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17152 code that tried to handle DImode for 32-bit, but which was excluded
17153 by the pattern's condition. Drop allocation of stack temporary.
17154 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17155 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17156 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17157 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17158 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17159 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17160 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17161 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17162 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17163 (*float<SWI48x><X87MODEF>2_i387): Remove.
17164 (all float _with_temp splitters): Remove.
17165 (*float<SWI48x><MODEF>2_i387): New pattern.
17166 (*float<SWI48><MODEF>2_sse): New pattern.
17167 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17168 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17169
17170 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17171 Marek Polacek <polacek@redhat.com>
17172
17173 PR middle-end/60484
17174 * common.opt (dump_base_name_prefixed): New Variable.
17175 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17176 if x_dump_base_name_prefixed is already set, set it at the end.
17177
17178 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17179
17180 PR rtl-optimization/60508
17181 * lra-constraints.c (get_reload_reg): Add new parameter
17182 in_subreg_p.
17183 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17184 Pass the new parameter values.
17185
17186 2014-03-14 Richard Biener <rguenther@suse.de>
17187
17188 * common.opt: Revert unintented changes from r205065.
17189 * opts.c: Likewise.
17190
17191 2014-03-14 Richard Biener <rguenther@suse.de>
17192
17193 PR middle-end/60518
17194 * cfghooks.c (split_block): Properly adjust all loops the
17195 block was a latch of.
17196
17197 2014-03-14 Martin Jambor <mjambor@suse.cz>
17198
17199 PR lto/60461
17200 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17201 and simplify it.
17202
17203 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17204
17205 PR target/59396
17206 * config/avr/avr.c (avr_set_current_function): Pass function name
17207 through default_strip_name_encoding before sanity checking instead
17208 of skipping the first char of the assembler name.
17209
17210 2014-03-13 Richard Henderson <rth@redhat.com>
17211
17212 PR debug/60438
17213 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17214 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17215 * config/i386/i386-protos.h: Likewise.
17216 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17217 in the expander instead of a splitter.
17218 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17219 any possibility of requiring a memory.
17220 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17221 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17222 (fp branch splitters): Update for ix86_split_fp_branch.
17223 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17224 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17225 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17226 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17227 (*fop_<MODEF>_3_i387): Likewise.
17228 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17229 (splitters for the fop_* register patterns): Remove.
17230 (fscalexf4_i387): Rename from *fscalexf4_i387.
17231 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17232
17233 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17234
17235 PR tree-optimization/59779
17236 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17237 type for bitsize and maxsize instead of HOST_WIDE_INT.
17238
17239 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17240
17241 PR rtl-optimization/57320
17242 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17243 the CFG after thread_prologue_and_epilogue_insns.
17244
17245 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17246
17247 PR rtl-optimization/57189
17248 * lra-constraints.c (process_alt_operands): Disfavor spilling
17249 vector pseudos.
17250
17251 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17252
17253 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17254
17255 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17256
17257 PR tree-optimization/59025
17258 PR middle-end/60418
17259 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17260 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17261
17262 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17263
17264 PR target/60486
17265 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17266 calls of avr_out_plus_1.
17267
17268 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17269
17270 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17271 BB's single pred and update the father loop's latch info later.
17272
17273 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17274
17275 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17276 (VEC_M): Likewise.
17277 (VEC_N): Likewise.
17278 (VEC_R): Likewise.
17279 (VEC_base): Likewise.
17280 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17281 registers, we need to swap double words in little endian mode.
17282
17283 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17284 to be a container mode for 128-bit integer operations added in ISA
17285 2.07. Unlike TImode and PTImode, the preferred register set is
17286 the Altivec/VMX registers for the 128-bit operations.
17287
17288 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17289 declarations.
17290 (rs6000_split_128bit_ok_p): Likewise.
17291
17292 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17293 macros for creating ISA 2.07 normal and overloaded builtin
17294 functions with 3 arguments.
17295 (BU_P8V_OVERLOAD_3): Likewise.
17296 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17297 for use as overloaded functions.
17298 (VPERM_1TI_UNS): Likewise.
17299 (VSEL_1TI): Likewise.
17300 (VSEL_1TI_UNS): Likewise.
17301 (ST_INTERNAL_1ti): Likewise.
17302 (LD_INTERNAL_1ti): Likewise.
17303 (XXSEL_1TI): Likewise.
17304 (XXSEL_1TI_UNS): Likewise.
17305 (VPERM_1TI): Likewise.
17306 (VPERM_1TI_UNS): Likewise.
17307 (XXPERMDI_1TI): Likewise.
17308 (SET_1TI): Likewise.
17309 (LXVD2X_V1TI): Likewise.
17310 (STXVD2X_V1TI): Likewise.
17311 (VEC_INIT_V1TI): Likewise.
17312 (VEC_SET_V1TI): Likewise.
17313 (VEC_EXT_V1TI): Likewise.
17314 (EQV_V1TI): Likewise.
17315 (NAND_V1TI): Likewise.
17316 (ORC_V1TI): Likewise.
17317 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17318 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17319 overloaded builtin.
17320 (VADDUQM): Likewise.
17321 (VSUBCUQ): Likewise.
17322 (VADDEUQM): Likewise.
17323 (VADDECUQ): Likewise.
17324 (VSUBEUQM): Likewise.
17325 (VSUBECUQ): Likewise.
17326
17327 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17328 __int128_t and __uint128_t types.
17329 (__uint128_type): Likewise.
17330 (altivec_categorize_keyword): Add support for vector __int128_t,
17331 vector __uint128_t, vector __int128, and vector unsigned __int128
17332 as a container type for TImode operations that need to be done in
17333 VSX/Altivec registers.
17334 (rs6000_macro_to_expand): Likewise.
17335 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17336 to support 128-bit integer instructions vaddcuq, vadduqm,
17337 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17338 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17339
17340 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17341 for V1TImode, and set up preferences to use VSX/Altivec registers.
17342 Setup VSX reload handlers.
17343 (rs6000_debug_reg_global): Likewise.
17344 (rs6000_init_hard_regno_mode_ok): Likewise.
17345 (rs6000_preferred_simd_mode): Likewise.
17346 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17347 (easy_altivec_constant): Likewise.
17348 (output_vec_const_move): Likewise.
17349 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17350 simple move.
17351 (rs6000_expand_vector_extract): Likewise.
17352 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17353 addressing.
17354 (rs6000_const_vec): Add support for V1TImode.
17355 (rs6000_emit_le_vsx_load): Swap double words when loading or
17356 storing TImode/V1TImode.
17357 (rs6000_emit_le_vsx_store): Likewise.
17358 (rs6000_emit_le_vsx_move): Likewise.
17359 (rs6000_emit_move): Add support for V1TImode.
17360 (altivec_expand_ld_builtin): Likewise.
17361 (altivec_expand_st_builtin): Likewise.
17362 (altivec_expand_vec_init_builtin): Likewise.
17363 (altivec_expand_builtin): Likewise.
17364 (rs6000_init_builtins): Add support for V1TImode type. Add
17365 support for ISA 2.07 128-bit integer builtins. Define type names
17366 for the VSX/Altivec vector types.
17367 (altivec_init_builtins): Add support for overloaded vector
17368 functions with V1TImode type.
17369 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17370 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17371 external function.
17372 (rs6000_split_128bit_ok_p): Likewise.
17373 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17374 __int128_t and vector __uint128_t.
17375
17376 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17377 and mode attributes.
17378 (VSX_M): Likewise.
17379 (VSX_M2): Likewise.
17380 (VSm): Likewise.
17381 (VSs): Likewise.
17382 (VSr): Likewise.
17383 (VSv): Likewise.
17384 (VS_scalar): Likewise.
17385 (VS_double): Likewise.
17386 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17387
17388 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17389 we support the ISA 2.07 128-bit integer arithmetic instructions.
17390 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17391 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17392 and TImode types for use with the builtin functions.
17393 (V1TI_type_node): Likewise.
17394 (unsigned_V1TI_type_node): Likewise.
17395 (intTI_type_internal_node): Likewise.
17396 (uintTI_type_internal_node): Likewise.
17397
17398 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17399 128-bit builtin functions.
17400 (UNSPEC_VADDEUQM): Likewise.
17401 (UNSPEC_VADDECUQ): Likewise.
17402 (UNSPEC_VSUBCUQ): Likewise.
17403 (UNSPEC_VSUBEUQM): Likewise.
17404 (UNSPEC_VSUBECUQ): Likewise.
17405 (VM): Add V1TImode to vector mode iterators.
17406 (VM2): Likewise.
17407 (VI_unit): Likewise.
17408 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17409 (altivec_vaddcuq): Likewise.
17410 (altivec_vsubuqm): Likewise.
17411 (altivec_vsubcuq): Likewise.
17412 (altivec_vaddeuqm): Likewise.
17413 (altivec_vaddecuq): Likewise.
17414 (altivec_vsubeuqm): Likewise.
17415 (altivec_vsubecuq): Likewise.
17416
17417 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17418 mode iterators.
17419 (BOOL_128): Likewise.
17420 (BOOL_REGS_OUTPUT): Likewise.
17421 (BOOL_REGS_OP1): Likewise.
17422 (BOOL_REGS_OP2): Likewise.
17423 (BOOL_REGS_UNARY): Likewise.
17424 (BOOL_REGS_AND_CR0): Likewise.
17425
17426 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17427 128-bit integer builtin support.
17428 (vec_vadduqm): Likewise.
17429 (vec_vaddecuq): Likewise.
17430 (vec_vaddeuqm): Likewise.
17431 (vec_vsubecuq): Likewise.
17432 (vec_vsubeuqm): Likewise.
17433 (vec_vsubcuq): Likewise.
17434 (vec_vsubuqm): Likewise.
17435
17436 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17437 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17438 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17439 128-bit integer add/subtract to ISA 2.07.
17440
17441 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17442
17443 * config/arc/arc.c (arc_predicate_delay_insns):
17444 Fix third argument passed to conditionalize_nonjump.
17445
17446 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17447
17448 * config/aarch64/aarch64-builtins.c
17449 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17450 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17451 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17452 instead of __builtin_lfloor.
17453 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17454
17455 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17456
17457 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17458 (tree_ssa_ifcombine_bb_1): New function.
17459 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17460 is an empty forwarder block to then_bb or vice versa and then_bb
17461 and else_bb are effectively swapped.
17462
17463 2014-03-12 Christian Bruel <christian.bruel@st.com>
17464
17465 PR target/60264
17466 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17467 REG_CFA_DEF_CFA note.
17468 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17469 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17470
17471 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17472
17473 PR tree-optimization/60454
17474 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17475
17476 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17477
17478 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17479 Do not define target_cpu_default2 to generic.
17480 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17481 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17482 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17483
17484 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17485 Marc Glisse <marc.glisse@inria.fr>
17486
17487 PR tree-optimization/60502
17488 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17489 instead of build_low_bits_mask.
17490
17491 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17492
17493 PR middle-end/60482
17494 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17495 if there are multiple uses, but op doesn't live on E edge.
17496 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17497 clobber stmts before __builtin_unreachable.
17498
17499 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17500
17501 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17502 hard_frame_pointer_rtx.
17503 * cse.c (cse_insn): Remove volatile check.
17504 * cselib.c (cselib_process_insn): Likewise.
17505 * dse.c (scan_insn): Likewise.
17506
17507 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17508
17509 * config/arc/arc.c (conditionalize_nonjump): New function,
17510 broken out of ...
17511 (arc_ifcvt): ... this.
17512 (arc_predicate_delay_insns): Use it.
17513
17514 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17515
17516 * config/arc/predicates.md (extend_operand): During/after reload,
17517 allow const_int_operand.
17518 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17519 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17520 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17521 to "i".
17522 (umulsi3_highpart_i): Likewise.
17523
17524 2014-03-11 Richard Biener <rguenther@suse.de>
17525
17526 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17527 Add asserts to guard possible wrong-code bugs.
17528
17529 2014-03-11 Richard Biener <rguenther@suse.de>
17530
17531 PR tree-optimization/60429
17532 PR tree-optimization/60485
17533 * tree-ssa-structalias.c (set_union_with_increment): Properly
17534 take into account all fields that overlap the shifted vars.
17535 (do_sd_constraint): Likewise.
17536 (do_ds_constraint): Likewise.
17537 (get_constraint_for_ptr_offset): Likewise.
17538
17539 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17540
17541 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17542 (nios2_compute_frame_layout):
17543 Add calculation of cfun->machine->fp_save_offset.
17544 (nios2_expand_prologue): Correct setting of frame pointer register
17545 in prologue.
17546 (nios2_expand_epilogue): Update recovery of stack pointer from
17547 frame pointer accordingly.
17548 (nios2_initial_elimination_offset): Update calculation of offset
17549 for eliminating to HARD_FRAME_POINTER_REGNUM.
17550
17551 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17552
17553 PR ipa/60457
17554 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17555 cgraph_get_create_node on VAR_DECLs.
17556
17557 2014-03-10 Richard Biener <rguenther@suse.de>
17558
17559 PR middle-end/60474
17560 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17561
17562 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17563
17564 * config/vms/vms.opt (vms_float_format): New variable.
17565
17566 2014-03-08 Tobias Burnus <burnus@net-b.de>
17567
17568 * doc/invoke.texi (-fcilkplus): Update implementation status.
17569
17570 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17571 Richard Biener <rguenther@suse.de>
17572
17573 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17574 consistently accross all TUs.
17575 (run_gcc): Enable -fshort-double automatically at link at link-time
17576 and disallow override.
17577
17578 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17579
17580 PR target/58271
17581 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17582 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17583 if they can't be used.
17584
17585 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17586
17587 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17588 for Solaris 11/x86 ld.
17589 * configure: Regenerate.
17590
17591 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17592
17593 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17594 (LIB_TLS_SPEC): Save as ld_tls_libs.
17595 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17596 (HAVE_AS_IX86_TLSLDM): New test.
17597 * configure, config.in: Regenerate.
17598 * config/i386/i386.c (legitimize_tls_address): Fall back to
17599 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17600 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17601 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17602 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17603
17604 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17605
17606 * common.opt (fira-loop-pressure): Mark as optimization.
17607
17608 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17609
17610 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17611 an OpenMP mappable type.
17612
17613 2014-03-06 Matthias Klose <doko@ubuntu.com>
17614
17615 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17616 MULTILIB_OSDIRNAMES is not defined.
17617
17618 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17619 Meador Inge <meadori@codesourcery.com>
17620
17621 PR target/58595
17622 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17623 (arm_legitimize_address): Call legitimize_tls_address for any
17624 arm_tls_referenced_p expression, handle constant addend. Call it
17625 before testing for !TARGET_ARM.
17626 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17627
17628 2014-03-06 Richard Biener <rguenther@suse.de>
17629
17630 PR middle-end/60445
17631 PR lto/60424
17632 PR lto/60427
17633 Revert
17634 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17635
17636 * tree-streamer.c (record_common_node): Assert we don't record
17637 nodes with type double.
17638 (preload_common_node): Skip type double, complex double and double
17639 pointer since it is now frontend dependent due to fshort-double option.
17640
17641 2014-03-06 Richard Biener <rguenther@suse.de>
17642
17643 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17644 or -fno-lto is specified and the linker has full plugin support.
17645 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17646 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17647 * lto-wrapper.c (merge_and_complain): Merge compile-time
17648 optimization levels.
17649 (run_gcc): And pass it through to the link options.
17650
17651 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17652
17653 PR debug/60381
17654 Revert:
17655 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17656 PR debug/59992
17657 * cselib.c (remove_useless_values): Skip to avoid quadratic
17658 behavior if the condition moved from...
17659 (cselib_process_insn): ... here holds.
17660
17661 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17662
17663 PR plugins/59335
17664 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17665 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17666
17667 PR plugins/59335
17668 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17669 (TM_H): Add x86-tune.def.
17670
17671 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17672
17673 * config/aarch64/aarch64.c (generic_tunings):
17674 Use cortexa57_extra_costs.
17675
17676 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17677
17678 PR lto/60404
17679 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17680 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17681 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17682 cost for in_lto_p.
17683
17684 2014-03-04 Heiher <r@hev.cc>
17685
17686 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17687 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17688
17689 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17690
17691 * config/i386/predicates.md (const2356_operand): Change to ...
17692 (const2367_operand): ... this.
17693 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17694 const2367_operand.
17695 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17696 (*avx512pf_scatterpf<mode>sf): Ditto.
17697 (avx512pf_scatterpf<mode>df): Ditto.
17698 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17699 (*avx512pf_scatterpf<mode>df): Ditto.
17700 * config/i386/i386.c (ix86_expand_builtin): Update
17701 incorrect hint operand error message.
17702
17703 2014-03-04 Richard Biener <rguenther@suse.de>
17704
17705 * lto-section-in.c (lto_get_section_data): Fix const cast.
17706
17707 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17708
17709 * tree-streamer.c (record_common_node): Assert we don't record
17710 nodes with type double.
17711 (preload_common_node): Skip type double, complex double and double
17712 pointer since it is now frontend dependent due to fshort-double option.
17713
17714 2014-03-04 Richard Biener <rguenther@suse.de>
17715
17716 PR lto/60405
17717 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
17718 (lto_input_toplevel_asms): Likewise.
17719 * lto-section-in.c (lto_get_section_data): Instead do it here
17720 for every section.
17721
17722 2014-03-04 Richard Biener <rguenther@suse.de>
17723
17724 PR tree-optimization/60382
17725 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
17726 dead PHIs a reduction.
17727
17728 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
17729
17730 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
17731 hint value.
17732 (_mm_prefetch): Move out of GCC target("sse") pragma.
17733 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
17734 GCC target("prfchw") pragma.
17735 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
17736 for locality <= 2.
17737 * config/i386/i386.c (ix86_option_override_internal): Enable
17738 -mprfchw with -mprefetchwt1.
17739
17740 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17741
17742 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
17743 Mark as varying.
17744
17745 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17746
17747 * opts.h (CL_PCH_IGNORE): Define.
17748 * targhooks.c (option_affects_pch_p):
17749 Return false for options that have CL_PCH_IGNORE set.
17750 * opt-functions.awk: Process PchIgnore.
17751 * doc/options.texi: Document PchIgnore.
17752
17753 * config/arc/arc.opt (misize): Add PchIgnore property.
17754
17755 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17756
17757 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
17758 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
17759 constraint on constants to permit them being loaded into
17760 GENERAL_REGS or BASE_REGS.
17761
17762 2014-03-03 Nick Clifton <nickc@redhat.com>
17763
17764 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
17765 anti-cacnonical alternatives.
17766 (negandhi3_real): New pattern.
17767 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
17768
17769 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17770
17771 * config/avr/avr-mcus.def: Remove atxmega16x1.
17772 * config/avr/avr-tables.opt: Regenerate.
17773 * config/avr/t-multilib: Regenerate.
17774 * doc/avr-mmcu.texi: Regenerate.
17775
17776 2014-03-03 Tobias Grosser <tobias@grosser.es>
17777 Mircea Namolaru <mircea.namolaru@inria.fr>
17778
17779 PR tree-optimization/58028
17780 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
17781 scalar dimensions.
17782
17783 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17784
17785 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
17786 not handled by recognizers.
17787
17788 2014-03-03 Jakub Jelinek <jakub@redhat.com>
17789
17790 PR middle-end/60175
17791 * function.c (expand_function_end): Don't emit
17792 clobber_return_register sequence if clobber_after is a BARRIER.
17793 * cfgexpand.c (construct_exit_block): Append instructions before
17794 return_label to prev_bb.
17795
17796 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17797
17798 * config/rs6000/constraints.md: Document reserved use of "wc".
17799
17800 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17801
17802 PR ipa/60150
17803 * ipa.c (function_and_variable_visibility): When dissolving comdat
17804 group, also set all symbols to local.
17805
17806 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17807
17808 PR ipa/60306
17809
17810 Revert:
17811 2013-12-14 Jan Hubicka <jh@suse.cz>
17812 PR middle-end/58477
17813 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
17814
17815 2014-03-02 Jon Beniston <jon@beniston.com>
17816
17817 PR bootstrap/48230
17818 PR bootstrap/50927
17819 PR bootstrap/52466
17820 PR target/46898
17821 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
17822 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
17823 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
17824 (simple_return, *simple_return): New patterns
17825 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
17826 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
17827
17828 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
17829
17830 * dwarf2out.c (gen_subprogram_die): Tidy.
17831
17832 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17833
17834 PR target/60071
17835 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
17836 (*mov_t_msb_neg_negc): ... this new insn.
17837
17838 2014-02-28 Jason Merrill <jason@redhat.com>
17839
17840 PR c++/58678
17841 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
17842 function.
17843
17844 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
17845
17846 PR c++/60314
17847 * dwarf2out.c (decltype_auto_die): New static.
17848 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
17849 (gen_type_die_with_usage): Handle 'decltype(auto)'.
17850 (is_cxx_auto): Likewise.
17851
17852 2014-02-28 Ian Bolton <ian.bolton@arm.com>
17853
17854 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
17855 we are not using general regs only.
17856
17857 2014-02-28 Richard Biener <rguenther@suse.de>
17858
17859 PR target/60280
17860 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
17861 previous fix and only allow to remove trivial pre-headers
17862 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
17863 (remove_forwarder_block): Properly update the latch of a loop.
17864
17865 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17866
17867 PR debug/59992
17868 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
17869 (cselib_preserved_hash_table): New.
17870 (preserve_constants_and_equivs): Move preserved vals to it.
17871 (cselib_find_slot): Look it up first.
17872 (cselib_init): Initialize it.
17873 (cselib_finish): Release it.
17874 (dump_cselib_table): Dump it.
17875
17876 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17877
17878 PR debug/59992
17879 * cselib.c (remove_useless_values): Skip to avoid quadratic
17880 behavior if the condition moved from...
17881 (cselib_process_insn): ... here holds.
17882
17883 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17884
17885 PR debug/57232
17886 * var-tracking.c (vt_initialize): Apply the same condition to
17887 preserve the CFA base value.
17888
17889 2014-02-28 Joey Ye <joey.ye@arm.com>
17890
17891 PR target/PR60169
17892 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
17893 if reload in progress or completed.
17894
17895 2014-02-28 Tobias Burnus <burnus@net-b.de>
17896
17897 PR middle-end/60147
17898 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
17899 NAMELIST_DECL.
17900
17901 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
17902
17903 * doc/tm.texi.in (Condition Code Status): Update documention for
17904 relative locations of cc0-setter and cc0-user.
17905
17906 2014-02-27 Jeff Law <law@redhat.com>
17907
17908 PR rtl-optimization/52714
17909 * combine.c (try_combine): When splitting an unrecognized PARALLEL
17910 into two independent simple sets, if I3 is a jump, ensure the
17911 pattern we place into I3 is a (set (pc) ...).
17912
17913 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
17914 Jeff Law <law@redhat.com>
17915
17916 PR rtl-optimization/49847
17917 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
17918 are in different blocks.
17919 * doc/tm.texi (Condition Code Status): Update documention for
17920 relative locations of cc0-setter and cc0-user.
17921
17922 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
17923
17924 PR target/59222
17925 * lra.c (lra_emit_add): Check SUBREG too.
17926
17927 2014-02-27 Andreas Schwab <schwab@suse.de>
17928
17929 * config/m68k/m68k.c (m68k_option_override): Disable
17930 -flive-range-shrinkage for classic m68k.
17931 (m68k_override_options_after_change): Likewise.
17932
17933 2014-02-27 Marek Polacek <polacek@redhat.com>
17934
17935 PR middle-end/59223
17936 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
17937 -Wmaybe-uninitialized.
17938
17939 2014-02-27 Alan Modra <amodra@gmail.com>
17940
17941 PR target/57936
17942 * reload1.c (emit_input_reload_insns): When reload_override_in,
17943 set old to rl->in_reg when rl->in_reg is a subreg.
17944
17945 2014-02-26 Richard Biener <rguenther@suse.de>
17946
17947 PR bootstrap/60343
17948 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
17949
17950 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17951
17952 * common/config/i386/predicates.md (const1256_operand): Remove.
17953 (const2356_operand): New.
17954 (const_1_to_2_operand): Remove.
17955 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17956 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17957 (*avx512pf_gatherpf<mode>sf): Ditto.
17958 (avx512pf_gatherpf<mode>df): Ditto.
17959 (*avx512pf_gatherpf<mode>df_mask): Ditto.
17960 (*avx512pf_gatherpf<mode>df): Ditto.
17961 (avx512pf_scatterpf<mode>sf): Ditto.
17962 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17963 (*avx512pf_scatterpf<mode>sf): Ditto.
17964 (avx512pf_scatterpf<mode>df): Ditto.
17965 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17966 (*avx512pf_scatterpf<mode>df): Ditto.
17967 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
17968
17969 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
17970
17971 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
17972 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
17973 (_mm512_mask_testn_epi64_mask): Move to ...
17974 * config/i386/avx512cdintrin.h: Here.
17975 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
17976 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
17977 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
17978 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
17979 TARGET_AVX512F from TARGET_AVX512CD.
17980
17981 2014-02-26 Richard Biener <rguenther@suse.de>
17982
17983 PR ipa/60327
17984 * ipa.c (walk_polymorphic_call_targets): Properly guard
17985 call to inline_update_overall_summary.
17986
17987 2014-02-26 Bin Cheng <bin.cheng@arm.com>
17988
17989 PR target/60280
17990 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
17991 and latches only if requested. Fix latch if it is removed.
17992 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
17993 LOOPS_HAVE_PREHEADERS.
17994
17995 2014-02-25 Andrew Pinski <apinski@cavium.com>
17996
17997 * builtins.c (expand_builtin_thread_pointer): Create a new target
17998 when the target is NULL.
17999
18000 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
18001
18002 PR rtl-optimization/60317
18003 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18004 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18005 * lra-assigns.c: Include params.h.
18006 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
18007 other reload pseudos considerations.
18008
18009 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18010
18011 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
18012 to use canonical form for nor<mode>3.
18013
18014 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18015
18016 PR target/55426
18017 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
18018 conversions.
18019
18020 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18021
18022 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
18023 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
18024 (ix86_handle_option): Handle OPT_mprefetchwt1.
18025 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
18026 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18027 PREFETCHWT1 CPUID.
18028 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18029 OPTION_MASK_ISA_PREFETCHWT1.
18030 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
18031 (PTA_PREFETCHWT1): New.
18032 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
18033 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
18034 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
18035 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
18036 (*prefetch_avx512pf_<mode>_: Change into ...
18037 (*prefetch_prefetchwt1_<mode>: This.
18038 * config/i386/i386.opt (mprefetchwt1): New.
18039 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
18040 (_mm_prefetch): Handle intent to write.
18041 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
18042
18043 2014-02-25 Richard Biener <rguenther@suse.de>
18044
18045 PR middle-end/60291
18046 * emit-rtl.c (mem_attrs_htab): Remove.
18047 (mem_attrs_htab_hash): Likewise.
18048 (mem_attrs_htab_eq): Likewise.
18049 (set_mem_attrs): Always allocate new mem-attrs when something changed.
18050 (init_emit_once): Do not allocate mem_attrs_htab.
18051
18052 2014-02-25 Richard Biener <rguenther@suse.de>
18053
18054 PR lto/60319
18055 * lto-opts.c (lto_write_options): Output non-explicit conservative
18056 -fwrapv, -fno-trapv and -fno-strict-overflow.
18057 * lto-wrapper.c (merge_and_complain): Handle merging those options.
18058 (run_gcc): And pass them through.
18059
18060 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18061
18062 * sel-sched.c (calculate_new_fences): New parameter ptime.
18063 Calculate it as a maximum over all fence cycles.
18064 (sel_sched_region_2): Adjust the call to calculate_new_fences.
18065 Print the final schedule timing when sched_verbose.
18066
18067 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18068
18069 PR rtl-optimization/60292
18070 * sel-sched.c (fill_vec_av_set): Do not reset target availability
18071 bit fot the fence instruction.
18072
18073 2014-02-24 Alangi Derick <alangiderick@gmail.com>
18074
18075 * calls.h: Fix typo in comment.
18076
18077 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
18078
18079 * config/pa/pa.c (pa_output_move_double): Don't valididate when
18080 adjusting offsetable addresses.
18081
18082 2014-02-24 Guozhi Wei <carrot@google.com>
18083
18084 * sparseset.h (sparseset_pop): Fix the wrong index.
18085
18086 2014-02-24 Walter Lee <walt@tilera.com>
18087
18088 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
18089 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
18090 triplet.
18091 * common/config/tilegx/tilegx-common.c
18092 (TARGET_DEFAULT_TARGET_FLAGS): Define.
18093 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
18094 (LINK_SPEC): Ditto.
18095 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
18096 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
18097 (tilegx_gimplify_va_arg_expr): Handle big endian.
18098 (tilegx_expand_unaligned_load): Ditto.
18099 (tilegx_expand_unaligned_store): Ditto.
18100 (TARGET_RETURN_IN_MSB): New.
18101 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
18102 (TARGET_ENDIAN_DEFAULT): New.
18103 (TARGET_BIG_ENDIAN): Handle big endian.
18104 (BYTES_BIG_ENDIAN): Ditto.
18105 (WORDS_BIG_ENDIAN): Ditto.
18106 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18107 (ENDIAN_SPEC): New.
18108 (EXTRA_SPECS): New.
18109 * config/tilegx/tilegx.md (extv): Handle big endian.
18110 (extzv): Ditto.
18111 (insn_st<n>): Ditto.
18112 (insn_st<n>_add<bitsuffix>): Ditto.
18113 (insn_stnt<n>): Ditto.
18114 (insn_stnt<n>_add<bitsuffix>):Ditto.
18115 (vec_interleave_highv8qi): Handle big endian.
18116 (vec_interleave_highv8qi_be): New.
18117 (vec_interleave_highv8qi_le): New.
18118 (insn_v1int_h): Handle big endian.
18119 (vec_interleave_lowv8qi): Handle big endian.
18120 (vec_interleave_lowv8qi_be): New.
18121 (vec_interleave_lowv8qi_le): New.
18122 (insn_v1int_l): Handle big endian.
18123 (vec_interleave_highv4hi): Handle big endian.
18124 (vec_interleave_highv4hi_be): New.
18125 (vec_interleave_highv4hi_le): New.
18126 (insn_v2int_h): Handle big endian.
18127 (vec_interleave_lowv4hi): Handle big endian.
18128 (vec_interleave_lowv4hi_be): New.
18129 (vec_interleave_lowv4hi_le): New.
18130 (insn_v2int_l): Handle big endian.
18131 (vec_interleave_highv2si): Handle big endian.
18132 (vec_interleave_highv2si_be): New.
18133 (vec_interleave_highv2si_le): New.
18134 (insn_v4int_h): Handle big endian.
18135 (vec_interleave_lowv2si): Handle big endian.
18136 (vec_interleave_lowv2si_be): New.
18137 (vec_interleave_lowv2si_le): New.
18138 (insn_v4int_l): Handle big endian.
18139 * config/tilegx/tilegx.opt (mbig-endian): New option.
18140 (mlittle-endian): New option.
18141 * doc/install.texi: Document tilegxbe-linux.
18142 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18143
18144 2014-02-24 Martin Jambor <mjambor@suse.cz>
18145
18146 PR ipa/60266
18147 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18148 there are no parameter descriptors.
18149
18150 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18151
18152 PR rtl-optimization/60268
18153 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18154 initialization to ...
18155 (sched_rgn_init): ... here.
18156 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18157
18158 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18159
18160 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18161 names.
18162
18163 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18164
18165 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18166 definition.
18167
18168 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18169
18170 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18171 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18172
18173 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18174
18175 * config/microblaze/predicates.md: Add cmp_op predicate.
18176 * config/microblaze/microblaze.md: Add branch_compare instruction
18177 which uses cmp_op predicate and emits cmp insn before branch.
18178 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18179 to microblaze_expand_conditional_branch and consolidate logic.
18180 (microblaze_expand_conditional_branch): emit branch_compare
18181 insn instead of handling cmp op separate from branch insn.
18182
18183 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18184
18185 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18186 to permit subregs.
18187
18188 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18189
18190 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18191 define_insn with define_expand and new define_insn
18192 *altivec_lve<VI_char>x_internal.
18193 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18194 and new define_insn *altivec_stve<VI_char>x_internal.
18195 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18196 prototype.
18197 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18198 lve*x built-ins.
18199 (altivec_expand_stvex_be): New function.
18200
18201 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18202
18203 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18204 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18205 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18206 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18207
18208 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18209
18210 PR target/60298
18211 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18212 instead of emit_move_insn.
18213
18214 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18215
18216 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18217 vspltw with vsldoi.
18218 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18219 gen_altivec_vsumsws.
18220
18221 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18222
18223 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18224 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18225 (altivec_lvxl_<mode>): New define_expand incorporating
18226 -maltivec=be semantics where needed.
18227 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18228 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18229 semantics where needed.
18230 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18231 (altivec_stvx_<mode>): New define_expand incorporating
18232 -maltivec=be semantics where needed.
18233 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18234 VM2 iterator instead of V4SI.
18235 (altivec_stvxl_<mode>): New define_expand incorporating
18236 -maltivec=be semantics where needed.
18237 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18238 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18239 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18240 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18241 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18242 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18243 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18244 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18245 ALTIVEC_BUILTIN_STVXL.
18246 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18247 (altivec_expand_stvx_be): Likewise.
18248 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18249 (altivec_expand_lvx_be): Likewise.
18250 (altivec_expand_stvx_be): Likewise.
18251 (altivec_expand_builtin): Add cases for
18252 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18253 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18254 (altivec_init_builtins): Add definitions for
18255 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18256 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18257
18258 2014-02-21 Catherine Moore <clm@codesourcery.com>
18259
18260 * doc/invoke.texi (mvirt, mno-virt): Document.
18261 * config/mips/mips.opt (mvirt): New option.
18262 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18263
18264 2014-02-21 Richard Biener <rguenther@suse.de>
18265
18266 PR tree-optimization/60276
18267 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18268 (STMT_VINFO_MIN_NEG_DIST): New macro.
18269 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18270 STMT_VINFO_MIN_NEG_DIST.
18271 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18272 made for negative dependence distances still hold.
18273
18274 2014-02-21 Richard Biener <rguenther@suse.de>
18275
18276 PR middle-end/60291
18277 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18278 DECL_INITIAL for globals not in the current function context.
18279
18280 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18281
18282 PR tree-optimization/56490
18283 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18284 * tree-ssa-uninit.c: Include params.h.
18285 (compute_control_dep_chain): Add num_calls argument, return false
18286 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18287 num_calls to recursive call.
18288 (find_predicates): Change dep_chain into normal array,
18289 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18290 variable and adjust compute_control_dep_chain caller.
18291 (find_def_preds): Likewise.
18292
18293 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18294
18295 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18296 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18297
18298 2014-02-21 Nick Clifton <nickc@redhat.com>
18299
18300 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18301 (pushhi1): Likewise.
18302 (popqi1): Add mode to pre_dec.
18303 (pophi1): Likewise.
18304
18305 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18306
18307 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18308 mode for mask of V8SFmode permutation.
18309
18310 2014-02-20 Richard Henderson <rth@redhat.com>
18311
18312 PR c++/60272
18313 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18314 a new pseudo for OLDVAL.
18315
18316 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18317
18318 PR target/57896
18319 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18320 gen_reg_rtx if d->testing_p.
18321 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18322 if d->testing_p and we will certainly return true.
18323 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18324 if d->testing_p.
18325
18326 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18327
18328 * emit-rtl.c (gen_reg_rtx): Assert that
18329 crtl->emit.regno_pointer_align_length is non-zero.
18330
18331 2014-02-20 Richard Henderson <rth@redhat.com>
18332
18333 PR c++/60272
18334 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18335 on failure the store back into EXPECT.
18336
18337 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18338 Sandra Loosemore <sandra@codesourcery.com>
18339
18340 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18341 * config/nios2/nios2.c (nios2_function_profiler): Add
18342 -fPIC (flag_pic == 2) support.
18343 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18344 (nios2_large_offset_p): New function.
18345 (nios2_unspec_reloc_p): Move up position, update to use
18346 nios2_large_offset_p.
18347 (nios2_unspec_address): Remove function.
18348 (nios2_unspec_offset): New function.
18349 (nios2_large_got_address): New function.
18350 (nios2_got_address): Add large offset support.
18351 (nios2_legitimize_tls_address): Update usage of removed and new
18352 functions.
18353 (nios2_symbol_binds_local_p): New function.
18354 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18355 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18356 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18357 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18358 processing for (const (unspec ...)).
18359 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18360
18361 2014-02-20 Richard Biener <rguenther@suse.de>
18362
18363 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18364 doing the substitution.
18365 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18366
18367 2014-02-20 Martin Jambor <mjambor@suse.cz>
18368
18369 PR ipa/55260
18370 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18371 info when checking whether lattices are bottom.
18372
18373 2014-02-20 Richard Biener <rguenther@suse.de>
18374
18375 PR middle-end/60221
18376 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18377 regions at -O0.
18378
18379 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18380
18381 PR ipa/58555
18382 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18383 parameter specifying the scaling.
18384 (inline_call): Update.
18385 (want_inline_recursively): Guard division by zero.
18386 (recursive_inlining): Update.
18387 * ipa-inline.h (clone_inlined_nodes): Update.
18388
18389 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18390
18391 PR target/60204
18392 * config/i386/i386.c (classify_argument): Pass structures of size
18393 64 bytes or less in register.
18394
18395 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18396 Kirill Yukhin <kirill.yukhin@intel.com>
18397
18398 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18399 (_mm_rcp28_round_ss): Ditto.
18400 (_mm_rsqrt28_round_sd): Ditto.
18401 (_mm_rsqrt28_round_ss): Ditto.
18402 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18403 (_mm_rcp14_round_ss): Ditto.
18404 (_mm_rsqrt14_round_sd): Ditto.
18405 (_mm_rsqrt14_round_ss): Ditto.
18406 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18407 the first input operand, get rid of match_dup.
18408 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18409 attribute to sse.
18410 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18411 Ditto.
18412 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18413 operand as the first input operand, set type attribute.
18414 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18415 Set type attribute.
18416 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18417 operand as the first input operand, set type attribute.
18418
18419 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18420
18421 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18422 bit of zero.
18423
18424 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18425
18426 PR target/60207
18427 * config/i386/i386.c (construct_container): Remove TFmode check
18428 for X86_64_INTEGER_CLASS.
18429
18430 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18431
18432 PR target/59794
18433 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18434 only when -Wpsabi is enabled.
18435
18436 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18437
18438 PR target/59799
18439 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18440 passing arrays in registers are the same as for structs, so remove the
18441 special case for them.
18442
18443 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18444
18445 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18446 destination type, extract only the valid bits if the source type is not
18447 integral and has a different mode.
18448
18449 2014-02-19 Richard Biener <rguenther@suse.de>
18450
18451 PR ipa/60243
18452 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18453 for all calls.
18454
18455 2014-02-19 Richard Biener <rguenther@suse.de>
18456
18457 PR ipa/60243
18458 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18459 (ipa_modify_call_arguments): Emit an argument load explicitely and
18460 preserve virtual SSA form there and for the replacement call.
18461 Do not update SSA form nor free dominance info.
18462
18463 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18464
18465 * ipa.c (function_and_variable_visibility): Also clear WEAK
18466 flag when disolving COMDAT_GROUP.
18467
18468 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18469
18470 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18471 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18472 not devirtualizing.
18473 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18474 do more sanity checks.
18475 (detect_type_change): Return true when giving up early.
18476 (compute_complex_assign_jump_func): Fix type parameter of
18477 ipa_set_ancestor_jf.
18478 (compute_complex_ancestor_jump_func): Likewise.
18479 (update_jump_functions_after_inlining): Fix updating of
18480 ancestor function.
18481 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18482
18483 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18484
18485 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18486 inline clones when edge disappears.
18487
18488 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18489
18490 PR target/60203
18491 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18492 Split 64-bit moves into 2 patterns. Do not allow the use of
18493 direct move for TDmode in little endian, since the decimal value
18494 has little endian bytes within a word, but the 64-bit pieces are
18495 ordered in a big endian fashion, and normal subreg's of TDmode are
18496 not allowed.
18497 (mov<mode>_64bit_dm): Likewise.
18498 (movtd_64bit_nodm): Likewise.
18499
18500 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18501
18502 PR tree-optimization/60174
18503 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18504 statement of an SSA_NAME that occurs in an abnormal PHI node.
18505
18506 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18507
18508 PR sanitizer/60142
18509 * final.c (SEEN_BB): Remove.
18510 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18511 (final_scan_insn): Don't force_source_line on second
18512 NOTE_INSN_BASIC_BLOCK.
18513
18514 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18515
18516 PR target/60205
18517 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18518 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18519 (type_natural_mode): Warn ABI change when %zmm register is not
18520 available for AVX512F vector value passing.
18521
18522 2014-02-18 Kai Tietz <ktietz@redhat.com>
18523
18524 PR target/60193
18525 * config/i386/i386.c (ix86_expand_prologue): Use value in
18526 rax register as displacement when restoring %r10 or %rax.
18527 Fix wrong offset when restoring both registers.
18528
18529 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18530
18531 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18532 assertion with conditional return.
18533
18534 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18535 Uros Bizjak <ubizjak@gmail.com>
18536
18537 PR driver/60233
18538 * config/i386/driver-i386.c (host_detect_local_cpu): If
18539 YMM state is not saved by the OS, also clear has_f16c. Move
18540 CPUID 0x80000001 handling before YMM state saving checking.
18541
18542 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18543
18544 PR rtl-optimization/58960
18545 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18546 factored out from ...
18547 (sched_init): ... here.
18548 (free_global_sched_pressure_data): New, factored out from ...
18549 (sched_finish): ... here.
18550 * sched-int.h (free_global_sched_pressure_data): Declare.
18551 * sched-rgn.c (nr_regions_initial): New static global.
18552 (haifa_find_rgns): Initialize it.
18553 (schedule_region): Disable sched-pressure for the newly
18554 generated regions.
18555
18556 2014-02-17 Richard Biener <rguenther@suse.de>
18557
18558 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18559 release SSA defs of pattern stmts.
18560
18561 2014-02-17 Richard Biener <rguenther@suse.de>
18562
18563 * tree-inline.c (expand_call_inline): Release the virtual
18564 operand defined by the call we are about to inline.
18565
18566 2014-02-17 Richard Biener <rguenther@suse.de>
18567
18568 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18569
18570 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18571 Ilya Tocar <ilya.tocar@intel.com>
18572
18573 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18574 arguments order in builtin.
18575 (_mm512_permutexvar_epi64): Ditto.
18576 (_mm512_mask_permutexvar_epi64): Ditto
18577 (_mm512_maskz_permutexvar_epi32): Ditto
18578 (_mm512_permutexvar_epi32): Ditto
18579 (_mm512_mask_permutexvar_epi32): Ditto
18580
18581 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18582
18583 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18584 (p8_vmrgow): Likewise.
18585
18586 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18587
18588 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18589 endian targets.
18590
18591 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18592
18593 PR target/60203
18594 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18595 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18596 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18597 using direct move instructions on ISA 2.07. Also adjust
18598 instruction length for 64-bit.
18599 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18600 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18601
18602 2014-02-15 Alan Modra <amodra@gmail.com>
18603
18604 PR target/58675
18605 PR target/57935
18606 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18607 find_replacement on parts of insn rtl that might be reloaded.
18608
18609 2014-02-15 Richard Biener <rguenther@suse.de>
18610
18611 PR tree-optimization/60183
18612 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18613 (tree_ssa_phiprop): Calculate and free post-dominators.
18614
18615 2014-02-14 Jeff Law <law@redhat.com>
18616
18617 PR rtl-optimization/60131
18618 * ree.c (get_extended_src_reg): New function.
18619 (combine_reaching_defs): Use it rather than assuming location of REG.
18620 (find_and_remove_re): Verify first operand of extension is
18621 a REG before adding the insns to the copy list.
18622
18623 2014-02-14 Roland McGrath <mcgrathr@google.com>
18624
18625 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18626 * configure: Regenerated.
18627 * config.in: Regenerated.
18628 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18629 instead of ASM_SHORT.
18630
18631 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18632 Richard Earnshaw <rearnsha@arm.com>
18633
18634 PR rtl-optimization/59535
18635 * lra-constraints.c (process_alt_operands): Encourage alternative
18636 when unassigned pseudo class is superset of the alternative class.
18637 (inherit_reload_reg): Don't inherit when optimizing for code size.
18638 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18639 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18640 modes not less than 4 for Thumb1.
18641
18642 2014-02-14 Kyle McMartin <kyle@redhat.com>
18643
18644 PR pch/60010
18645 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18646
18647 2014-02-14 Richard Biener <rguenther@suse.de>
18648
18649 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18650 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18651 Do not strip INDIRECT_REFs.
18652
18653 2014-02-14 Richard Biener <rguenther@suse.de>
18654
18655 PR lto/60179
18656 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18657 DECL_FUNCTION_SPECIFIC_TARGET.
18658 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18659 * tree-streamer-out.c (pack_ts_target_option): Remove.
18660 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18661 (write_ts_function_decl_tree_pointers): Do not stream
18662 DECL_FUNCTION_SPECIFIC_TARGET.
18663 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18664 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18665 (lto_input_ts_function_decl_tree_pointers): Do not stream
18666 DECL_FUNCTION_SPECIFIC_TARGET.
18667
18668 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18669
18670 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18671 (get_initial_def_for_induction, vectorizable_induction): Ignore
18672 debug stmts when looking for exit_phi.
18673 (vectorizable_live_operation): Fix up condition.
18674
18675 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18676
18677 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18678 nreverse() because it changes the content of original tree list.
18679
18680 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18681
18682 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18683 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18684
18685 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18686
18687 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18688 GNU coding standards.
18689
18690 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18691
18692 PR debug/60152
18693 * dwarf2out.c (gen_subprogram_die): Don't call
18694 add_calling_convention_attribute if subr_die is old_die.
18695
18696 2014-02-13 Sharad Singhai <singhai@google.com>
18697
18698 * doc/optinfo.texi: Fix order of nodes.
18699
18700 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
18701
18702 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
18703 operands[2], not operands[3].
18704
18705 2014-02-13 Richard Biener <rguenther@suse.de>
18706
18707 PR bootstrap/59878
18708 * doc/install.texi (ISL): Update recommended version to 0.12.2,
18709 mention the possibility of an in-tree build.
18710 (CLooG): Update recommended version to 0.18.1, mention the
18711 possibility of an in-tree build and clarify that the ISL
18712 bundled with CLooG does not work.
18713
18714 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18715
18716 PR target/43546
18717 * expr.c (compress_float_constant): If x is a hard register,
18718 extend into a pseudo and then move to x.
18719
18720 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
18721
18722 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
18723 caused by bad second argument to warning_at() with -mhotpatch and
18724 nested functions (e.g. with gfortran).
18725
18726 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
18727
18728 * opts.c (option_name): Remove "enabled by default" rider.
18729
18730 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
18731
18732 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
18733
18734 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
18735 Uros Bizjak <ubizjak@gmail.com>
18736
18737 PR target/60151
18738 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
18739 * configure: Regenerated.
18740
18741 2014-02-12 Richard Biener <rguenther@suse.de>
18742
18743 * vec.c (vec_prefix::calculate_allocation): Move as
18744 inline variant to vec.h.
18745 (vec_prefix::calculate_allocation_1): New out-of-line version.
18746 * vec.h (vec_prefix::calculate_allocation_1): Declare.
18747 (vec_prefix::m_has_auto_buf): Rename to ...
18748 (vec_prefix::m_using_auto_storage): ... this.
18749 (vec_prefix::calculate_allocation): Inline the easy cases
18750 and dispatch to calculate_allocation_1 which doesn't need the
18751 prefix address.
18752 (va_heap::reserve): Use gcc_checking_assert.
18753 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
18754 m_using_auto_storage.
18755 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
18756 member and adjust.
18757 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
18758 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
18759 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
18760
18761 2014-02-12 Richard Biener <rguenther@suse.de>
18762
18763 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
18764 when we found a dependence.
18765
18766 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
18767
18768 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
18769 common code...
18770 (maybe_fold_stmt): ... into this new function.
18771 * omp-low.c (lower_omp): Update comment.
18772
18773 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
18774 last use.
18775
18776 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
18777 dereference.
18778
18779 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
18780
18781 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
18782 identifiers in comments.
18783 (cortexa53_extra_costs): Likewise.
18784 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
18785 (cortexa7_extra_costs): Likewise.
18786 (cortexa12_extra_costs): Likewise.
18787 (cortexa15_extra_costs): Likewise.
18788 (v7m_extra_costs): Likewise.
18789
18790 2014-02-12 Richard Biener <rguenther@suse.de>
18791
18792 PR middle-end/60092
18793 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
18794 of posix_memalign being successful.
18795 (lower_stmt): Restrict lowering of posix_memalign to when
18796 -ftree-bit-ccp is enabled.
18797
18798 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18799
18800 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
18801 arg_loc.
18802 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18803
18804 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
18805
18806 PR rtl-optimization/60116
18807 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
18808 other_insn once the combination has been validated.
18809
18810 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
18811
18812 PR lto/59468
18813 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
18814 and wrapper.
18815 * ipa-devirt.c: Include demangle.h
18816 (odr_violation_reported): New static variable.
18817 (add_type_duplicate): Update odr_violations.
18818 (maybe_record_node): Add completep parameter; update it.
18819 (record_target_from_binfo): Add COMPLETEP parameter;
18820 update it as needed.
18821 (possible_polymorphic_call_targets_1): Likewise.
18822 (struct polymorphic_call_target_d): Add nonconstruction_targets;
18823 rename FINAL to COMPLETE.
18824 (record_targets_from_bases): Sanity check we found the binfo;
18825 fix COMPLETEP updating.
18826 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
18827 parameter, fix computing of COMPLETEP.
18828 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
18829 at LTO time do demangling.
18830 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
18831 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
18832 parameter.
18833 (gimple_get_virt_method_for_binfo): Likewise.
18834 * gimple-fold.h (gimple_get_virt_method_for_binfo,
18835 gimple_get_virt_method_for_vtable): Update prototypes.
18836
18837 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
18838
18839 PR target/49008
18840 * genautomata.c (add_presence_absence): Fix typo with
18841 {final_}presence_list.
18842
18843 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18844
18845 PR target/60137
18846 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
18847 for VSX/Altivec vectors that land in GPR registers.
18848
18849 2014-02-11 Richard Henderson <rth@redhat.com>
18850 Jakub Jelinek <jakub@redhat.com>
18851
18852 PR debug/59776
18853 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
18854 around drhs if type conversion to lacc->type is not useless.
18855
18856 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18857
18858 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
18859 tuning struct.
18860 (cortex-a57.cortex-a53): Likewise.
18861 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
18862
18863 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18864
18865 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
18866 arm_restrict_it.
18867
18868 2014-02-11 Renlin Li <Renlin.Li@arm.com>
18869
18870 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
18871 add_options_for_arm_vfp3.
18872
18873 2014-02-11 Jeff Law <law@redhat.com>
18874
18875 PR middle-end/54041
18876 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
18877 object with an undesirable mode.
18878
18879 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18880
18881 PR libgomp/60107
18882 * config/i386/sol2-9.h: New file.
18883 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
18884 *-*-solaris2.9*): Use it.
18885
18886 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18887
18888 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
18889 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
18890
18891 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18892
18893 * config/microblaze/microblaze.c: Extend mcpu version format
18894
18895 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
18896
18897 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
18898
18899 2014-02-10 Richard Henderson <rth@redhat.com>
18900
18901 PR target/59927
18902 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
18903 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
18904 ms-abi vs -mno-accumulate-outgoing-args.
18905 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
18906 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
18907 respect to ms-abi.
18908
18909 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18910
18911 PR middle-end/60080
18912 * cfgexpand.c (expand_asm_operands): Attach source location to
18913 ASM_INPUT rtx objects.
18914 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
18915
18916 2014-02-10 Nick Clifton <nickc@redhat.com>
18917
18918 * config/mn10300/mn10300.c (popcount): New function.
18919 (mn10300_expand_prologue): Include saved registers in stack usage
18920 count.
18921
18922 2014-02-10 Jeff Law <law@redhat.com>
18923
18924 PR middle-end/52306
18925 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
18926 when changing the SET_DEST of a prior insn to avoid an input reload.
18927
18928 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18929
18930 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
18931 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
18932 -mcall-openbsd, or -mcall-linux.
18933 (CC1_ENDIAN_BIG_SPEC): Remove.
18934 (CC1_ENDIAN_LITTLE_SPEC): Remove.
18935 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18936 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
18937 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
18938 and %cc1_endian_default.
18939 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18940
18941 2014-02-10 Richard Biener <rguenther@suse.de>
18942
18943 PR tree-optimization/60115
18944 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
18945 MEM_REF handling. Properly verify that the accesses are not
18946 out of the objects bound.
18947
18948 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18949
18950 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
18951 coretex to cortex.
18952
18953 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
18954
18955 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
18956 proper constants and fix formatting.
18957 (possible_polymorphic_call_targets): Fix formatting.
18958
18959 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
18960 Ilya Tocar <ilya.tocar@intel.com>
18961
18962 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
18963 (_mm512_loadu_epi32): Renamed into...
18964 (_mm512_loadu_si512): This.
18965 (_mm512_storeu_epi32): Renamed into...
18966 (_mm512_storeu_si512): This.
18967 (_mm512_maskz_ceil_ps): Removed.
18968 (_mm512_maskz_ceil_pd): Ditto.
18969 (_mm512_maskz_floor_ps): Ditto.
18970 (_mm512_maskz_floor_pd): Ditto.
18971 (_mm512_floor_round_ps): Ditto.
18972 (_mm512_floor_round_pd): Ditto.
18973 (_mm512_ceil_round_ps): Ditto.
18974 (_mm512_ceil_round_pd): Ditto.
18975 (_mm512_mask_floor_round_ps): Ditto.
18976 (_mm512_mask_floor_round_pd): Ditto.
18977 (_mm512_mask_ceil_round_ps): Ditto.
18978 (_mm512_mask_ceil_round_pd): Ditto.
18979 (_mm512_maskz_floor_round_ps): Ditto.
18980 (_mm512_maskz_floor_round_pd): Ditto.
18981 (_mm512_maskz_ceil_round_ps): Ditto.
18982 (_mm512_maskz_ceil_round_pd): Ditto.
18983 (_mm512_expand_pd): Ditto.
18984 (_mm512_expand_ps): Ditto.
18985 * config/i386/i386.c (ix86_builtins): Remove
18986 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
18987 (bdesc_args): Ditto.
18988 * config/i386/predicates.md (const1256_operand): New.
18989 (const_1_to_2_operand): Ditto.
18990 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18991 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18992 (*avx512pf_gatherpf<mode>sf): Ditto.
18993 (avx512pf_gatherpf<mode>df): Ditto.
18994 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18995 (*avx512pf_gatherpf<mode>df): Ditto.
18996 (avx512pf_scatterpf<mode>sf): Ditto.
18997 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18998 (*avx512pf_scatterpf<mode>sf): Ditto.
18999 (avx512pf_scatterpf<mode>df): Ditto.
19000 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19001 (*avx512pf_scatterpf<mode>df): Ditto.
19002 (avx512f_expand<mode>): Removed.
19003 (<shift_insn><mode>3<mask_name>): Change predicate type.
19004
19005 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19006
19007 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
19008 not at the end of datarefs vector use ordered_remove to avoid
19009 reordering datarefs vector.
19010
19011 PR c/59984
19012 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
19013 mark local addressable non-static vars as GOVD_PRIVATE
19014 instead of GOVD_LOCAL.
19015 * omp-low.c (lower_omp_for): Move gimple_bind_vars
19016 and BLOCK_VARS of gimple_bind_block to new_stmt rather
19017 than copying them.
19018
19019 PR middle-end/60092
19020 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
19021 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
19022 assume_aligned or alloc_align attributes.
19023 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
19024 arguments. Handle also assume_aligned and alloc_align attributes.
19025 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
19026 calls to functions with assume_aligned or alloc_align attributes.
19027 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
19028
19029 2014-02-08 Terry Guo <terry.guo@arm.com>
19030
19031 * doc/invoke.texi: Document ARM -march=armv7e-m.
19032
19033 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19034
19035 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
19036 flag on __cilkrts_rethrow builtin.
19037
19038 PR ipa/60026
19039 * ipa-cp.c (determine_versionability): Fail at -O0
19040 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
19041 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
19042
19043 Revert:
19044 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19045
19046 PR ipa/60026
19047 * tree-inline.c (copy_forbidden): Fail for
19048 __attribute__((optimize (0))) functions.
19049
19050 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19051
19052 * varpool.c: Include pointer-set.h.
19053 (varpool_remove_unreferenced_decls): Variables in other partitions
19054 will not be output; be however careful to not lose information
19055 about partitioning.
19056
19057 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19058
19059 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
19060 lookup in the vtable constructor.
19061
19062 2014-02-07 Jeff Law <law@redhat.com>
19063
19064 PR target/40977
19065 * config/m68k/m68k.md (ashldi_extsi): Turn into a
19066 define_insn_and_split.
19067
19068 * ipa-inline.c (inline_small_functions): Fix typos.
19069
19070 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19071
19072 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
19073 (s390_can_use_return_insn): Declare.
19074 * config/s390/s390.h (EPILOGUE_USES): Define.
19075 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
19076 instructions.
19077 (s390_chunkify_start): Handle return JUMP_LABELs.
19078 (s390_early_mach): Emit a main_pool instruction on the entry edge.
19079 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
19080 (s390_can_use_return_insn): New functions.
19081 (s390_fix_long_loop_prediction): Handle conditional returns.
19082 (TARGET_SET_UP_BY_PROLOGUE): Define.
19083 * config/s390/s390.md (ANY_RETURN): New code iterator.
19084 (*creturn, *csimple_return, return, simple_return): New patterns.
19085
19086 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19087
19088 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
19089 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
19090 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
19091 REG_CFA_RESTORE list when deciding not to restore a register.
19092
19093 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19094
19095 * config/s390/s390.c: Include tree-pass.h and context.h.
19096 (s390_early_mach): New function, split out from...
19097 (s390_emit_prologue): ...here.
19098 (pass_data_s390_early_mach): New pass structure.
19099 (pass_s390_early_mach): New class.
19100 (s390_option_override): Create and register early_mach pass.
19101 Move to end of file.
19102
19103 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19104
19105 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19106 to match for the exit block.
19107
19108 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19109
19110 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19111 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19112 Reject misaligned operands.
19113
19114 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19115
19116 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19117
19118 2014-02-07 Richard Biener <rguenther@suse.de>
19119
19120 PR middle-end/60092
19121 * gimple-low.c (lower_builtin_posix_memalign): New function.
19122 (lower_stmt): Call it to lower posix_memalign in a way
19123 to make alignment info accessible.
19124
19125 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19126
19127 PR c++/60082
19128 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19129 __builtin_setjmp_receiver.
19130
19131 2014-02-07 Richard Biener <rguenther@suse.de>
19132
19133 PR middle-end/60092
19134 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19135 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19136 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19137 Handle BUILT_IN_POSIX_MEMALIGN.
19138 (find_func_clobbers): Likewise.
19139 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19140 (call_may_clobber_ref_p_1): Likewise.
19141
19142 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19143
19144 PR ipa/59918
19145 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19146 sanity check.
19147
19148 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19149
19150 PR ipa/59469
19151 * lto-cgraph.c (lto_output_node): Use
19152 symtab_get_symbol_partitioning_class.
19153 (lto_output_varpool_node): likewise.
19154 (symtab_get_symbol_partitioning_class): Move here from
19155 lto/lto-partition.c
19156 * cgraph.h (symbol_partitioning_class): Likewise.
19157 (symtab_get_symbol_partitioning_class): Declare.
19158
19159 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19160
19161 * ggc.h (ggc_internal_cleared_alloc): New macro.
19162 * vec.h (vec_safe_copy): Handle memory stats.
19163 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19164 * target-globals.c (save_target_globals): Likewise.
19165
19166 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19167
19168 PR target/60077
19169 * expr.c (emit_move_resolve_push): Export; be bit more selective
19170 on when to clear alias set.
19171 * expr.h (emit_move_resolve_push): Declare.
19172 * function.h (struct function): Add tail_call_marked.
19173 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19174 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19175 * config/i386/i386.md (TImode move expander): De not call
19176 ix86_expand_push.
19177 (FP push expanders): Preserve memory attributes.
19178 * config/i386/sse.md (push<mode>1): Remove.
19179 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19180 (ix86_expand_push): Remove.
19181 * config/i386/mmx.md (push<mode>1): Remove.
19182
19183 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19184
19185 PR rtl-optimization/60030
19186 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19187 lopart with paradoxical subreg before shifting it up by hprec.
19188
19189 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19190
19191 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19192 Remove extra newline at end of file.
19193 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19194 (arm_issue_rate): Handle cortexa57.
19195 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19196 (cortex-a57.cortex-a53): Likewise.
19197
19198 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19199
19200 PR target/59575
19201 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19202 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19203 bitmask.
19204 (arm_expand_prologue): Adjust all callers.
19205 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19206 info, registers also at the lowest numbered registers side. Use
19207 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19208 XEXP.
19209
19210 PR debug/59992
19211 * var-tracking.c (adjust_mems): Before adding a SET to
19212 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19213
19214 2014-02-06 Alan Modra <amodra@gmail.com>
19215
19216 PR target/60032
19217 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19218 change SDmode to DDmode when lra_in_progress.
19219
19220 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19221
19222 PR middle-end/59150
19223 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19224 free_data_ref on the dr first, and before goto again also set dr
19225 to the next dr. For simd_lane_access, free old datarefs[i] before
19226 overwriting it. For get_vectype_for_scalar_type failure, don't
19227 free_data_ref if simd_lane_access.
19228
19229 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19230
19231 PR target/60062
19232 * tree.h (opts_for_fn): New inline function.
19233 (opt_for_fn): Define.
19234 * config/i386/i386.c (ix86_function_regparm): Use
19235 opt_for_fn (decl, optimize) instead of optimize.
19236
19237 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19238
19239 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19240 for SYMBOL_REF in large memory model.
19241
19242 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19243
19244 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19245 and crypto support.
19246 (cortex-a57): Likewise.
19247 (cortex-a57.cortex-a53): Likewise.
19248
19249 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19250 Kugan Vivekanandarajah <kuganv@linaro.org>
19251
19252 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19253 unaligned_access.
19254 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19255
19256 2014-02-06 Richard Biener <rguenther@suse.de>
19257
19258 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19259 set_loop_copy and initialize_original_copy_tables.
19260
19261 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19262
19263 * config/aarch64/aarch64-simd.md
19264 (aarch64_ashr_simddi): Change QI to SI.
19265
19266 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19267 Jakub Jelinek <jakub@redhat.com>
19268
19269 PR middle-end/60013
19270 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19271 of the dataflow.
19272
19273 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19274
19275 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19276 CODE_FOR_altivec_vpku[hw]um to
19277 CODE_FOR_altivec_vpku[hw]um_direct.
19278 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19279 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19280 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19281 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19282
19283 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19284
19285 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19286 generation for -maltivec=be.
19287 (altivec_vsumsws): Simplify redundant test.
19288
19289 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19290
19291 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19292 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19293 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19294 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19295 gen_altivec_vpkuwum.
19296 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19297 BYTES_BIG_ENDIAN.
19298 (altivec_vpks<VI_char>ss): Likewise.
19299 (altivec_vpks<VI_char>us): Likewise.
19300 (altivec_vpku<VI_char>us): Likewise.
19301 (altivec_vpku<VI_char>um): Likewise.
19302 (altivec_vpku<VI_char>um_direct): New (copy of
19303 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19304 internal use).
19305 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19306 target is little endian and -maltivec=be is not specified.
19307 (*altivec_vupkhs<VU_char>_direct): New (copy of
19308 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19309 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19310 target is little endian and -maltivec=be is not specified.
19311 (*altivec_vupkls<VU_char>_direct): New (copy of
19312 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19313 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19314 little endian and -maltivec=be is not specified.
19315 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19316 little endian and -maltivec=be is not specified.
19317
19318 2014-02-05 Richard Henderson <rth@redhat.com>
19319
19320 PR debug/52727
19321 * combine-stack-adj.c: Revert r206943.
19322 * sched-int.h (struct deps_desc): Add last_args_size.
19323 * sched-deps.c (init_deps): Initialize it.
19324 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19325 contain REG_ARGS_SIZE notes.
19326
19327 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19328
19329 * lto-cgraph.c (asm_nodes_output): Make global.
19330 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19331 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19332 (driver_handle_option): Handle OPT_fwpa.
19333
19334 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19335
19336 PR ipa/59947
19337 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19338 a comment typo and formatting issue. If odr_hash hasn't been
19339 created, return vNULL and set *completep to false.
19340
19341 PR middle-end/57499
19342 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19343 bb with no successors.
19344
19345 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19346
19347 PR target/59718
19348 * doc/invoke.texi (-march): Clarify documentation for ARM.
19349 (-mtune): Likewise.
19350 (-mcpu): Likewise.
19351
19352 2014-02-05 Richard Biener <rguenther@suse.de>
19353
19354 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19355 when not vectorizing because of too many alias checks.
19356 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19357 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19358
19359 2014-02-05 Nick Clifton <nickc@redhat.com>
19360
19361 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19362 accept extended registers in any mode when compiling for the MN10300.
19363
19364 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19365
19366 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19367 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19368 sanitization attributes.
19369 (can_inline_edge_p): Likewise.
19370 (sanitize_attrs_match_for_inline_p): New function.
19371
19372 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19373
19374 * ipa-prop.c (detect_type_change): Shor circuit testing of
19375 type changes on THIS pointer.
19376
19377 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19378
19379 PR target/59777
19380 * config/pa/pa.c (legitimize_tls_address): Return original address
19381 if not passed a SYMBOL_REF rtx.
19382 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19383 addresses.
19384 (pa_emit_move_sequence): Simplify TLS source operands.
19385 (pa_legitimate_constant_p): Reject all TLS constants.
19386 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19387 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19388
19389 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19390
19391 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19392 groups when we know they are controlled by LTO.
19393 * varasm.c (default_binds_local_p_1): If object is in other partition,
19394 it will be resolved locally.
19395
19396 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19397
19398 * config/host-linux.c (linux_gt_pch_use_address): Don't
19399 use SSIZE_MAX because it is not always defined.
19400
19401 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19402
19403 PR bootstrap/59913
19404 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19405 threshold for pseudo splitting.
19406 (update_ebb_live_info): Process call argument hard registers and
19407 hard registers from insn definition too.
19408 (max_small_class_regs_num): New constant.
19409 (inherit_in_ebb): Update live hard regs through EBBs. Update
19410 reloads_num only for small register classes. Don't split for
19411 outputs of jumps.
19412
19413 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19414
19415 PR ipa/60058
19416 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19417 is non-null.
19418
19419 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19420
19421 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19422 visibility is safe.
19423
19424 2014-02-04 Marek Polacek <polacek@redhat.com>
19425
19426 * gdbinit.in (pel): Define.
19427
19428 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19429
19430 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19431 behavior.
19432
19433 2014-02-04 Richard Biener <rguenther@suse.de>
19434
19435 PR lto/59723
19436 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19437 in function context local.
19438 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19439 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19440 similar to LTO_imported_decl_ref.
19441
19442 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19443
19444 PR tree-optimization/60002
19445 * cgraphclones.c (build_function_decl_skip_args): Clear
19446 DECL_LANG_SPECIFIC.
19447
19448 PR tree-optimization/60023
19449 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19450 false to gsi_replace.
19451 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19452 has been in some EH region and vec_stmt could throw, add
19453 vec_stmt into the same EH region.
19454 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19455 has no lhs, ignore it.
19456 * internal-fn.c (expand_MASK_LOAD): Likewise.
19457
19458 PR ipa/60026
19459 * tree-inline.c (copy_forbidden): Fail for
19460 __attribute__((optimize (0))) functions.
19461
19462 PR other/58712
19463 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19464 is set, copy one less argument.
19465 (expand_simd_clones): Don't subtract clone_info->inbranch
19466 from simd_clone_struct_alloc argument.
19467
19468 PR rtl-optimization/57915
19469 * recog.c (simplify_while_replacing): If all unary/binary/relational
19470 operation arguments are constant, attempt to simplify those.
19471
19472 PR middle-end/59261
19473 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19474 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19475
19476 2014-02-04 Richard Biener <rguenther@suse.de>
19477
19478 PR tree-optimization/60012
19479 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19480 TBAA disambiguation to all DDRs.
19481
19482 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19483
19484 PR target/59788
19485 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19486 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19487
19488 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19489
19490 PR ipa/59882
19491 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19492
19493 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19494
19495 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19496 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19497
19498 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19499
19500 PR ipa/59831
19501 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19502 to figure out targets of polymorphic calls with known decl.
19503 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19504 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19505 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19506 (get_polymorphic_call_info): ... here.
19507 (get_polymorphic_call_info_from_invariant): New function.
19508
19509 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19510
19511 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19512 lookup via vtable pointer; check for type consistency
19513 and turn inconsitent facts into UNREACHABLE.
19514 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19515 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19516 type inconsistent querries; return UNREACHABLE instead.
19517
19518 2014-02-03 Richard Henderson <rth@twiddle.net>
19519
19520 PR tree-opt/59924
19521 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19522 already processed this node.
19523 (normalize_one_pred_1): Pass along mark_set.
19524 (normalize_one_pred): Create and destroy a pointer_set_t.
19525 (normalize_one_pred_chain): Likewise.
19526
19527 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19528
19529 PR gcov-profile/58602
19530 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19531
19532 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19533
19534 PR ipa/59831
19535 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19536 -fno-devirtualize; try to devirtualize by the knowledge of
19537 virtual table pointer given by aggregate propagation.
19538 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19539 (ipa_print_node_jump_functions): Dump also offset that
19540 is relevant for polymorphic calls.
19541 (determine_known_aggregate_parts): Add arg_type parameter; use it
19542 instead of determining the type from pointer type.
19543 (ipa_compute_jump_functions_for_edge): Update call of
19544 determine_known_aggregate_parts.
19545 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19546 (gimple_get_virt_method_for_binfo): ... here; simplify using
19547 vtable_pointer_value_to_vtable.
19548 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19549 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19550 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19551 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19552 POINTER_PLUS_EXPR.
19553 (vtable_pointer_value_to_binfo): ... here.
19554 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19555
19556 2014-02-03 Teresa Johnson <tejohnson@google.com>
19557
19558 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19559 redef of outer loop index variable.
19560
19561 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19562
19563 PR c++/53017
19564 PR c++/59211
19565 * doc/extend.texi (Function Attributes): Typo.
19566
19567 2014-02-03 Cong Hou <congh@google.com>
19568
19569 PR tree-optimization/60000
19570 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19571 if the vectorized statement is a store. A store statement can only
19572 appear at the end of pattern statements.
19573
19574 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19575
19576 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19577 (ix86_option_override_internal): Default long double to 64-bit for
19578 32-bit Bionic and to 128-bit for 64-bit Bionic.
19579
19580 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19581 TARGET_LONG_DOUBLE_128 is true.
19582 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19583
19584 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19585 (mlong-double-64): Negate -mlong-double-128.
19586 (mlong-double-128): New option.
19587
19588 * config/i386/i386-c.c (ix86_target_macros): Define
19589 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19590
19591 * doc/invoke.texi: Document -mlong-double-128.
19592
19593 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19594
19595 PR rtl-optimization/60024
19596 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19597
19598 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19599
19600 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19601
19602 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19603
19604 PR rtl-optimization/57662
19605 * sel-sched.c (code_motion_path_driver): Do not mark already not
19606 existing blocks in the visiting bitmap.
19607
19608 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19609
19610 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19611 on the insn being emitted.
19612
19613 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19614 Will Deacon <will.deacon@arm.com>
19615
19616 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19617
19618 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19619
19620 * config/arm/arm-tables.opt: Regenerate.
19621
19622 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19623
19624 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19625 for vector types other than V16QImode.
19626 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19627 define_expand, and call altivec_expand_vec_perm_le when producing
19628 code with little endian element order.
19629 (*altivec_vperm_<mode>_internal): New insn having previous
19630 behavior of altivec_vperm_<mode>.
19631 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19632 altivec_expand_vec_perm_le when producing code with little endian
19633 element order.
19634 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19635 behavior of altivec_vperm_<mode>_uns.
19636
19637 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19638
19639 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19640 (altivec_vsumsws): Add handling for -maltivec=be with a little
19641 endian target.
19642 (altivec_vsumsws_direct): New.
19643 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19644 gen_altivec_vsumsws.
19645
19646 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19647
19648 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19649 vtable_pointer_value_to_binfo): New functions.
19650 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19651 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19652
19653 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19654
19655 * config/nios2/nios2.md (load_got_register): Initialize GOT
19656 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19657 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19658
19659 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19660
19661 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19662 preserverd by passthrough, do not propagate the type.
19663
19664 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19665
19666 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19667 (mips_atomic_assign_expand_fenv): New function.
19668 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19669
19670 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19671
19672 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19673 (__builtin_mips_set_fcsr): Likewise.
19674 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19675 MIPS_USI_FTYPE_VOID.
19676 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19677 (mips16_expand_set_fcsr): Likewise.
19678 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19679 (mips16_set_fcsr_stub): Likewise.
19680 (mips16_get_fcsr_one_only_stub): New class.
19681 (mips16_set_fcsr_one_only_stub): Likewise.
19682 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19683 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19684 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19685 (hard_float): New availability predicate.
19686 (mips_builtins): Add get_fcsr and set_fcsr.
19687 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19688 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19689 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19690 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19691 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19692 patterns.
19693
19694 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19695
19696 * config/mips/mips.c (mips_one_only_stub): New class.
19697 (mips_need_mips16_rdhwr_p): Replace with...
19698 (mips16_rdhwr_stub): ...this new variable.
19699 (mips16_stub_call_address): New function.
19700 (mips16_rdhwr_one_only_stub): New class.
19701 (mips_expand_thread_pointer): Use mips16_stub_call_address.
19702 (mips_output_mips16_rdhwr): Delete.
19703 (mips_finish_stub): New function.
19704 (mips_code_end): Use it to handle rdhwr stubs.
19705
19706 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
19707
19708 PR target/60017
19709 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
19710 when calculating size of integer atomic types.
19711
19712 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
19713
19714 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
19715
19716 2014-02-01 Jakub Jelinek <jakub@redhat.com>
19717
19718 PR tree-optimization/60003
19719 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
19720 * profile.c (branch_prob): Use gimple_call_builtin_p
19721 to check for BUILT_IN_SETJMP_RECEIVER.
19722 * tree-inline.c (copy_bb): Call notice_special_calls.
19723
19724 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
19725
19726 PR bootstrap/59985
19727 * lra-constraints.c (process_alt_operands): Update reload_sum only
19728 on the first pass.
19729
19730 2014-01-31 Richard Henderson <rth@redhat.com>
19731
19732 PR middle-end/60004
19733 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
19734 until after else_eh is processed.
19735
19736 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19737
19738 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
19739 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
19740 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
19741 in smmintrin.h, remove them.
19742 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
19743 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
19744 * config/i386/i386.md (ROUND_SAE): Fix value.
19745 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
19746 (const48_operand): New.
19747 * config/i386/subst.md (round), (round_expand): Use
19748 const_4_or_8_to_11_operand.
19749 (round_saeonly), (round_saeonly_expand): Use const48_operand.
19750
19751 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19752
19753 * config/i386/constraints.md (Yk): Swap meaning with k.
19754 * config/i386/i386.md (movhi_internal): Change Yk to k.
19755 (movqi_internal): Ditto.
19756 (*k<logic><mode>): Ditto.
19757 (*andhi_1): Ditto.
19758 (*andqi_1): Ditto.
19759 (kandn<mode>): Ditto.
19760 (*<code>hi_1): Ditto.
19761 (*<code>qi_1): Ditto.
19762 (kxnor<mode>): Ditto.
19763 (kortestzhi): Ditto.
19764 (kortestchi): Ditto.
19765 (kunpckhi): Ditto.
19766 (*one_cmplhi2_1): Ditto.
19767 (*one_cmplqi2_1): Ditto.
19768 * config/i386/sse.md (): Change k to Yk.
19769 (avx512f_load<mode>_mask): Ditto.
19770 (avx512f_blendm<mode>): Ditto.
19771 (avx512f_store<mode>_mask): Ditto.
19772 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
19773 (avx512f_storedqu<mode>_mask): Ditto.
19774 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
19775 Ditto.
19776 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
19777 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
19778 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
19779 (avx512f_maskcmp<mode>3): Ditto.
19780 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
19781 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
19782 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
19783 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
19784 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
19785 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
19786 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
19787 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
19788 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
19789 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
19790 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
19791 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
19792 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
19793 (vec_extract_lo_<mode>_maskm): Ditto.
19794 (vec_extract_hi_<mode>_maskm): Ditto.
19795 (avx512f_vternlog<mode>_mask): Ditto.
19796 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
19797 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
19798 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
19799 (avx512f_<code>v8div16qi2_mask): Ditto.
19800 (avx512f_<code>v8div16qi2_mask_store): Ditto.
19801 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
19802 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
19803 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
19804 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
19805 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19806 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19807 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19808 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19809 (avx512cd_maskb_vec_dupv8di): Ditto.
19810 (avx512cd_maskw_vec_dupv16si): Ditto.
19811 (avx512f_vpermi2var<mode>3_maskz): Ditto.
19812 (avx512f_vpermi2var<mode>3_mask): Ditto.
19813 (avx512f_vpermi2var<mode>3_mask): Ditto.
19814 (avx512f_vpermt2var<mode>3_maskz): Ditto.
19815 (*avx512f_gathersi<mode>): Ditto.
19816 (*avx512f_gathersi<mode>_2): Ditto.
19817 (*avx512f_gatherdi<mode>): Ditto.
19818 (*avx512f_gatherdi<mode>_2): Ditto.
19819 (*avx512f_scattersi<mode>): Ditto.
19820 (*avx512f_scatterdi<mode>): Ditto.
19821 (avx512f_compress<mode>_mask): Ditto.
19822 (avx512f_compressstore<mode>_mask): Ditto.
19823 (avx512f_expand<mode>_mask): Ditto.
19824 * config/i386/subst.md (mask): Change k to Yk.
19825 (mask_scalar_merge): Ditto.
19826 (sd): Ditto.
19827
19828 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
19829
19830 * doc/extend.texi (Vector Extensions): Document ?: in C++.
19831
19832 2014-01-31 Richard Biener <rguenther@suse.de>
19833
19834 PR middle-end/59990
19835 * builtins.c (fold_builtin_memory_op): Make sure to not
19836 use a floating-point mode or a boolean or enumeral type for
19837 the copy operation.
19838
19839 2014-01-30 DJ Delorie <dj@redhat.com>
19840
19841 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
19842 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
19843 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
19844 whenever main() has an epilogue.
19845
19846 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19847
19848 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
19849 unused variable "field".
19850 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
19851 (vsx_mergeh_<mode>): Likewise.
19852 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
19853 (altivec_vmrghh): Likewise.
19854 (altivec_vmrghw): Likewise.
19855 (altivec_vmrglb): Likewise.
19856 (altivec_vmrglh): Likewise.
19857 (altivec_vmrglw): Likewise.
19858 (altivec_vspltb): Add missing uses.
19859 (altivec_vsplth): Likewise.
19860 (altivec_vspltw): Likewise.
19861 (altivec_vspltsf): Likewise.
19862
19863 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19864
19865 PR target/59923
19866 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
19867 frame related instructions.
19868
19869 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
19870
19871 PR rtl-optimization/59959
19872 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
19873 any reload of register whose subreg is invalid.
19874
19875 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19876
19877 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
19878 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
19879 Add missing return type - void.
19880
19881 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19882
19883 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
19884 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
19885 remove element index adjustment for endian (now handled in vsx.md
19886 and altivec.md).
19887 (altivec_expand_vec_perm_const): Use
19888 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
19889 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
19890 (vsx_xxspltw_<mode>): Adjust element index for little endian.
19891 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
19892 define_expand and a new define_insn *altivec_vspltb_internal;
19893 adjust for -maltivec=be on a little endian target.
19894 (altivec_vspltb_direct): New.
19895 (altivec_vsplth): Divide into a define_expand and a new
19896 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
19897 little endian target.
19898 (altivec_vsplth_direct): New.
19899 (altivec_vspltw): Divide into a define_expand and a new
19900 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
19901 little endian target.
19902 (altivec_vspltw_direct): New.
19903 (altivec_vspltsf): Divide into a define_expand and a new
19904 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
19905 a little endian target.
19906
19907 2014-01-30 Richard Biener <rguenther@suse.de>
19908
19909 PR tree-optimization/59993
19910 * tree-ssa-forwprop.c (associate_pointerplus): Check we
19911 can propagate form the earlier stmt and avoid the transform
19912 when the intermediate result is needed.
19913
19914 2014-01-30 Alangi Derick <alangiderick@gmail.com>
19915
19916 * README.Portability: Fix typo.
19917
19918 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
19919
19920 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
19921 comparison_operator with ordered_comparison_operator.
19922
19923 2014-01-30 Nick Clifton <nickc@redhat.com>
19924
19925 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
19926 Rename to mn10300_store_multiple_regs.
19927 * config/mn10300/mn10300.c: Likewise.
19928 * config/mn10300/mn10300.md (store_movm): Fix typo: call
19929 store_multiple_regs.
19930 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
19931 Call mn10300_store_multiple_regs.
19932
19933 2014-01-30 Nick Clifton <nickc@redhat.com>
19934 DJ Delorie <dj@redhat.com>
19935
19936 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
19937 %fp 2 to keep registers after it properly word-aligned.
19938 (rl78_alloc_physical_registers_umul): Handle the case where both
19939 input operands are the same.
19940
19941 2014-01-30 Richard Biener <rguenther@suse.de>
19942
19943 PR tree-optimization/59903
19944 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
19945 check properly.
19946
19947 2014-01-30 Jason Merrill <jason@redhat.com>
19948
19949 PR c++/59633
19950 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
19951
19952 PR c++/59645
19953 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
19954
19955 2014-01-30 Richard Biener <rguenther@suse.de>
19956
19957 PR tree-optimization/59951
19958 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
19959
19960 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
19961
19962 PR target/59784
19963 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
19964 SFmode to DFmode case.
19965
19966 2014-01-29 DJ Delorie <dj@redhat.com>
19967
19968 * config/msp430/msp430.opt (-minrt): New.
19969 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
19970 if -minrt given.
19971 (ENDFILE_SPEC): Likewise.
19972
19973 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
19974
19975 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
19976 (estimate_function_body_sizes): Use it.
19977
19978 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
19979
19980 PR c++/58561
19981 * dwarf2out.c (is_cxx_auto): New.
19982 (is_base_type): Use it.
19983 (gen_type_die_with_usage): Likewise.
19984
19985 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19986
19987 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
19988 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
19989 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
19990 -maltivec=be with LE targets.
19991 (vsx_mergeh_<mode>): Likewise.
19992 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
19993 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
19994 (altivec_vmrghb): Replace with define_expand and new
19995 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
19996 (altivec_vmrghb_direct): New define_insn.
19997 (altivec_vmrghh): Replace with define_expand and new
19998 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
19999 (altivec_vmrghh_direct): New define_insn.
20000 (altivec_vmrghw): Replace with define_expand and new
20001 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
20002 (altivec_vmrghw_direct): New define_insn.
20003 (*altivec_vmrghsf): Adjust for endianness.
20004 (altivec_vmrglb): Replace with define_expand and new
20005 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
20006 (altivec_vmrglb_direct): New define_insn.
20007 (altivec_vmrglh): Replace with define_expand and new
20008 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
20009 (altivec_vmrglh_direct): New define_insn.
20010 (altivec_vmrglw): Replace with define_expand and new
20011 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
20012 (altivec_vmrglw_direct): New define_insn.
20013 (*altivec_vmrglsf): Adjust for endianness.
20014 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20015 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20016 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20017 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20018 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20019 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20020 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20021 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20022
20023 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
20024
20025 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
20026 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
20027 whitespace.
20028
20029 2014-01-29 Richard Biener <rguenther@suse.de>
20030
20031 PR tree-optimization/58742
20032 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
20033 associate_pointerplus_align.
20034 (associate_pointerplus_diff): New function.
20035 (associate_pointerplus): Likewise. Call associate_pointerplus_align
20036 and associate_pointerplus_diff.
20037
20038 2014-01-29 Richard Biener <rguenther@suse.de>
20039
20040 * lto-streamer.h (LTO_major_version): Bump to 3.
20041 (LTO_minor_version): Reset to 0.
20042
20043 2014-01-29 Renlin Li <Renlin.Li@arm.com>
20044
20045 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
20046 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
20047 (arm_file_start): Generate correct asm header for armv7ve.
20048 * config/arm/bpabi.h: Add multilib support for armv7ve.
20049 * config/arm/driver-arm.c: Change the architectures of cortex-a7
20050 and cortex-a15 to armv7ve.
20051 * config/arm/t-aprofile: Add multilib support for armv7ve.
20052 * doc/invoke.texi: Document -march=armv7ve.
20053
20054 2014-01-29 Richard Biener <rguenther@suse.de>
20055
20056 PR tree-optimization/58742
20057 * tree-ssa-forwprop.c (associate_plusminus): Return true
20058 if we changed sth, defer EH cleanup to ...
20059 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
20060 (simplify_mult): New function.
20061
20062 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20063
20064 PR middle-end/59917
20065 PR tree-optimization/59920
20066 * tree.c (build_common_builtin_nodes): Remove
20067 __builtin_setjmp_dispatcher initialization.
20068 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
20069 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
20070 instead of gsi_after_labels + manually skipping debug stmts.
20071 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
20072 ignore bbs with IFN_ABNORMAL_DISPATCHER.
20073 * tree-inline.c (copy_edges_for_bb): Remove
20074 can_make_abnormal_goto argument, instead add abnormal_goto_dest
20075 argument. Ignore computed_goto_p stmts. Don't call
20076 make_abnormal_goto_edges. If a call might need abnormal edges
20077 for non-local gotos, see if it already has an edge to
20078 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
20079 with true argument, don't do anything then, otherwise add
20080 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
20081 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
20082 caller.
20083 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
20084 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
20085 (lower_stmt): Don't set data->calls_builtin_setjmp.
20086 (lower_builtin_setjmp): Adjust comment.
20087 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
20088 * tree-cfg.c (found_computed_goto): Remove.
20089 (factor_computed_gotos): Remove.
20090 (make_goto_expr_edges): Return bool, true for computed gotos.
20091 Don't call make_abnormal_goto_edges.
20092 (build_gimple_cfg): Don't set found_computed_goto, don't call
20093 factor_computed_gotos.
20094 (computed_goto_p): No longer static.
20095 (make_blocks): Don't set found_computed_goto.
20096 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
20097 (make_edges): If make_goto_expr_edges returns true, push bb
20098 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
20099 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
20100 vector. Record mapping between bbs and OpenMP regions if there
20101 are any, adjust make_gimple_omp_edges caller. Call
20102 handle_abnormal_edges.
20103 (make_abnormal_goto_edges): Remove.
20104 * tree-cfg.h (make_abnormal_goto_edges): Remove.
20105 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20106 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20107 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20108 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20109 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20110 filling *region also set *region_idx to (*region)->entry->index.
20111
20112 PR other/58712
20113 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20114 For REGs set ORIGINAL_REGNO.
20115
20116 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20117
20118 * doc/md.texi: Mention that a target shouldn't implement
20119 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20120 than hi/lo pair.
20121
20122 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20123
20124 PR tree-optimization/59594
20125 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20126 a copy of the datarefs vector rather than the vector itself.
20127
20128 2014-01-28 Jason Merrill <jason@redhat.com>
20129
20130 PR c++/53756
20131 * dwarf2out.c (auto_die): New static.
20132 (gen_type_die_with_usage): Handle C++1y 'auto'.
20133 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20134 on definition.
20135
20136 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20137
20138 PR target/59672
20139 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20140 (SPEC_X32): Likewise.
20141 (SPEC_64): Likewise.
20142 * config/i386/i386.c (ix86_option_override_internal): Turn off
20143 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20144 for TARGET_16BIT.
20145 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20146 * config/i386/i386.h (TARGET_16BIT): New macro.
20147 (TARGET_16BIT_P): Likewise.
20148 * config/i386/i386.opt: Add m16.
20149 * doc/invoke.texi: Document -m16.
20150
20151 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20152
20153 PR preprocessor/59935
20154 * input.c (location_get_source_line): Bail out on when line number
20155 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20156
20157 2014-01-28 Richard Biener <rguenther@suse.de>
20158
20159 PR tree-optimization/58742
20160 * tree-ssa-forwprop.c (associate_plusminus): Handle
20161 pointer subtraction of the form (T)(P + A) - (T)P.
20162
20163 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20164
20165 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20166 at const_int_cost.
20167
20168 2014-01-28 Richard Biener <rguenther@suse.de>
20169
20170 Revert
20171 2014-01-28 Richard Biener <rguenther@suse.de>
20172
20173 PR rtl-optimization/45364
20174 PR rtl-optimization/59890
20175 * var-tracking.c (local_get_addr_clear_given_value): Handle
20176 already cleared slot.
20177 (val_reset): Handle not allocated local_get_addr_cache.
20178 (vt_find_locations): Use post-order on the inverted CFG.
20179
20180 2014-01-28 Richard Biener <rguenther@suse.de>
20181
20182 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20183
20184 2014-01-28 Richard Biener <rguenther@suse.de>
20185
20186 PR rtl-optimization/45364
20187 PR rtl-optimization/59890
20188 * var-tracking.c (local_get_addr_clear_given_value): Handle
20189 already cleared slot.
20190 (val_reset): Handle not allocated local_get_addr_cache.
20191 (vt_find_locations): Use post-order on the inverted CFG.
20192
20193 2014-01-28 Alan Modra <amodra@gmail.com>
20194
20195 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20196 * configure.ac <recursive call for build != host>: Define
20197 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20198 and LD_FOR_BUILD too.
20199 * configure: Regenerate.
20200
20201 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20202
20203 * config/i386/i386.c (get_builtin_code_for_version): Separate
20204 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20205 Broadwell from Haswell.
20206
20207 2014-01-27 Steve Ellcey <sellcey@mips.com>
20208
20209 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20210 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20211 * config/mips/mips.c (mips_option_override): Change setting
20212 of TARGET_DSP.
20213 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20214 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20215 Change from Mask to Var.
20216
20217 2014-01-27 Jeff Law <law@redhat.com>
20218
20219 * ipa-inline.c (inline_small_functions): Fix typo.
20220
20221 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20222
20223 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20224 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20225 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20226 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20227 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20228 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20229 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20230 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20231 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20232 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20233 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20234 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20235 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20236 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20237 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20238 (_mm512_storeu_epi64): Ditto.
20239 (_mm512_cmpge_epi32_mask): Ditto.
20240 (_mm512_cmpge_epu32_mask): Ditto.
20241 (_mm512_cmpge_epi64_mask): Ditto.
20242 (_mm512_cmpge_epu64_mask): Ditto.
20243 (_mm512_cmple_epi32_mask): Ditto.
20244 (_mm512_cmple_epu32_mask): Ditto.
20245 (_mm512_cmple_epi64_mask): Ditto.
20246 (_mm512_cmple_epu64_mask): Ditto.
20247 (_mm512_cmplt_epi32_mask): Ditto.
20248 (_mm512_cmplt_epu32_mask): Ditto.
20249 (_mm512_cmplt_epi64_mask): Ditto.
20250 (_mm512_cmplt_epu64_mask): Ditto.
20251 (_mm512_cmpneq_epi32_mask): Ditto.
20252 (_mm512_cmpneq_epu32_mask): Ditto.
20253 (_mm512_cmpneq_epi64_mask): Ditto.
20254 (_mm512_cmpneq_epu64_mask): Ditto.
20255 (_mm512_expand_pd): Ditto.
20256 (_mm512_expand_ps): Ditto.
20257 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20258 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20259 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20260 * config/i386/i386.c (ix86_builtins): Add
20261 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20262 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20263 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20264 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20265 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20266 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20267 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20268 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20269 IX86_BUILTIN_PMOVUSQW512_MEM.
20270 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20271 __builtin_ia32_pmovsqd512mem_mask,
20272 __builtin_ia32_pmovqd512mem_mask,
20273 __builtin_ia32_pmovusqw512mem_mask,
20274 __builtin_ia32_pmovsqw512mem_mask,
20275 __builtin_ia32_pmovqw512mem_mask,
20276 __builtin_ia32_pmovusdw512mem_mask,
20277 __builtin_ia32_pmovsdw512mem_mask,
20278 __builtin_ia32_pmovdw512mem_mask,
20279 __builtin_ia32_pmovqb512mem_mask,
20280 __builtin_ia32_pmovusqb512mem_mask,
20281 __builtin_ia32_pmovsqb512mem_mask,
20282 __builtin_ia32_pmovusdb512mem_mask,
20283 __builtin_ia32_pmovsdb512mem_mask,
20284 __builtin_ia32_pmovdb512mem_mask.
20285 (bdesc_args): Add __builtin_ia32_expanddf512,
20286 __builtin_ia32_expandsf512.
20287 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20288 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20289 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20290 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20291 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20292 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20293 (avx512f_<code>v8div16qi2_mask_store): This.
20294 (avx512f_expand<mode>): New.
20295
20296 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20297
20298 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20299 New.
20300 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20301 (_mm512_prefetch_i32scatter_pd): Ditto.
20302 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20303 (_mm512_prefetch_i64scatter_pd): Ditto.
20304 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20305 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20306 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20307 (_mm512_prefetch_i32scatter_ps): Ditto.
20308 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20309 (_mm512_prefetch_i64scatter_ps): Ditto.
20310 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20311 * config/i386/i386-builtin-types.def: Define
20312 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20313 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20314 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20315 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20316 IX86_BUILTIN_SCATTERPFQPD.
20317 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20318 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20319 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20320 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20321 __builtin_ia32_scatterpfqps.
20322 (ix86_expand_builtin): Expand new built-ins.
20323 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20324 fix memory access data type.
20325 (*avx512pf_gatherpf<mode>_mask): Ditto.
20326 (*avx512pf_gatherpf<mode>): Ditto.
20327 (avx512pf_scatterpf<mode>): Ditto.
20328 (*avx512pf_scatterpf<mode>_mask): Ditto.
20329 (*avx512pf_scatterpf<mode>): Ditto.
20330 (GATHER_SCATTER_SF_MEM_MODE): New.
20331 (avx512pf_gatherpf<mode>df): Ditto.
20332 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20333 (*avx512pf_scatterpf<mode>df): Ditto.
20334
20335 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20336
20337 PR bootstrap/59934
20338 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20339 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20340 reached.
20341
20342 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20343
20344 * common/config/arm/arm-common.c
20345 (arm_rewrite_mcpu): Handle multiple names.
20346 * config/arm/arm.h
20347 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20348
20349 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20350
20351 * gimple-builder.h (create_gimple_tmp): Delete.
20352
20353 2014-01-27 Christian Bruel <christian.bruel@st.com>
20354
20355 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20356 words comparisons.
20357
20358 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20359
20360 * config/pa/pa.md (call): Generate indirect long calls to non-local
20361 functions when outputing 32-bit code.
20362 (call_value): Likewise except for special call to buggy powf function.
20363
20364 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20365 portable runtime and PIC indirect calls.
20366 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20367 and PIC call sequences. Use ldo instead of blr to set return register
20368 in PIC call sequence.
20369
20370 2014-01-25 Walter Lee <walt@tilera.com>
20371
20372 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20373 avoid clobbering a live register.
20374
20375 2014-01-25 Walter Lee <walt@tilera.com>
20376
20377 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20378 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20379 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20380 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20381
20382 2014-01-25 Walter Lee <walt@tilera.com>
20383
20384 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20385 arguments on even registers.
20386 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20387 STACK_BOUNDARY.
20388 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20389 (BIGGEST_ALIGNMENT): Ditto.
20390 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20391
20392 2014-01-25 Walter Lee <walt@tilera.com>
20393
20394 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20395 insns before bundling.
20396 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20397
20398 2014-01-25 Walter Lee <walt@tilera.com>
20399
20400 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20401 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20402 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20403
20404 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20405
20406 * config/mips/constraints.md (kl): Delete.
20407 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20408 define expands, using...
20409 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20410 instructions for MIPS16.
20411 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20412 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20413
20414 2014-01-25 Walter Lee <walt@tilera.com>
20415
20416 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20417 (clzdi2): Ditto.
20418 (ffsdi2): Ditto.
20419
20420 2014-01-25 Walter Lee <walt@tilera.com>
20421
20422 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20423 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20424
20425 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20426
20427 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20428 Handle XOR.
20429
20430 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20431
20432 * print-rtl.c (in_call_function_usage): New var.
20433 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20434 EXPR_LIST mode as mode and not as reg note name.
20435
20436 PR middle-end/59561
20437 * cfgloopmanip.c (copy_loop_info): If
20438 loop->warned_aggressive_loop_optimizations, make sure
20439 the flag is set in target loop too.
20440
20441 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20442
20443 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20444 flag_cilkplus.
20445 * builtins.def: Likewise.
20446 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20447 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20448 * ira.c (ira_setup_eliminable_regset): Likewise.
20449 * omp-low.c (gate_expand_omp): Likewise.
20450 (execute_lower_omp): Likewise.
20451 (diagnose_sb_0): Likewise.
20452 (gate_diagnose_omp_blocks): Likewise.
20453 (simd_clone_clauses_extract): Likewise.
20454 (gate): Likewise.
20455
20456 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20457
20458 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20459 correction for little endian...
20460 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20461 here.
20462
20463 2014-01-24 Jeff Law <law@redhat.com>
20464
20465 PR tree-optimization/59919
20466 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20467 for non-returning calls.
20468
20469 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20470
20471 * common/config/aarch64/aarch64-common.c
20472 (aarch64_rewrite_mcpu): Handle multiple names.
20473 * config/aarch64/aarch64.h
20474 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20475
20476 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20477
20478 * input.c (add_file_to_cache_tab): Handle the case where fopen
20479 returns NULL.
20480
20481 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20482
20483 PR target/59929
20484 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20485 from push operand if code of push isn't PRE_DEC.
20486
20487 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20488
20489 PR target/59909
20490 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20491 -mquad-memory-atomic. Update -mquad-memory documentation to say
20492 it is only used for non-atomic loads/stores.
20493
20494 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20495 -mquad-memory or -mquad-memory-atomic switches.
20496
20497 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20498 -mquad-memory-atomic to ISA 2.07 support.
20499
20500 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20501 to separate support of normal quad word memory operations (ldq, stq)
20502 from the atomic quad word memory operations.
20503
20504 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20505 support to separate non-atomic quad word operations from atomic
20506 quad word operations. Disable non-atomic quad word operations in
20507 little endian mode so that we don't have to swap words after the
20508 load and before the store.
20509 (quad_load_store_p): Add comment about atomic quad word support.
20510 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20511 options printed with -mdebug=reg.
20512
20513 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20514 -mquad-memory-atomic as the test for whether we have quad word
20515 atomic instructions.
20516 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20517 or -mp8-vector are used, allow byte/half-word atomic operations.
20518
20519 * config/rs6000/sync.md (load_lockedti): Insure that the address
20520 is a proper indexed or indirect address for the lqarx instruction.
20521 On little endian systems, swap the hi/lo registers after the lqarx
20522 instruction.
20523 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20524 insure the address is valid for the lqarx instruction.
20525 (store_conditionalti): Insure that the address is a proper indexed
20526 or indirect address for the stqcrx. instruction. On little endian
20527 systems, swap the hi/lo registers before doing the stqcrx.
20528 instruction.
20529 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20530 insure the address is valid for the stqcrx. instruction.
20531
20532 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20533 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20534 type of quad memory support is available.
20535
20536 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20537
20538 PR regression/59915
20539 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20540 there is a danger of looping.
20541
20542 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20543
20544 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20545 force flag_ira_loop_pressure if set via command line.
20546
20547 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20548
20549 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20550 (ashr_simd): New builtin handling DI mode.
20551 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20552 (aarch64_sshr_simddi): New match pattern.
20553 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20554 (vshrd_n_s64): Likewise.
20555 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20556
20557 2014-01-23 Nick Clifton <nickc@redhat.com>
20558
20559 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20560 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20561 favour of mcu specific scripts.
20562 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20563 430x multilibs.
20564
20565 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20566 Alex Velenko <Alex.Velenko@arm.com>
20567
20568 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20569 (vaddv_s16): Likewise.
20570 (vaddv_s32): Likewise.
20571 (vaddv_u8): Likewise.
20572 (vaddv_u16): Likewise.
20573 (vaddv_u32): Likewise.
20574 (vaddvq_s8): Likewise.
20575 (vaddvq_s16): Likewise.
20576 (vaddvq_s32): Likewise.
20577 (vaddvq_s64): Likewise.
20578 (vaddvq_u8): Likewise.
20579 (vaddvq_u16): Likewise.
20580 (vaddvq_u32): Likewise.
20581 (vaddvq_u64): Likewise.
20582 (vaddv_f32): Likewise.
20583 (vaddvq_f32): Likewise.
20584 (vaddvq_f64): Likewise.
20585 (vmaxv_f32): Likewise.
20586 (vmaxv_s8): Likewise.
20587 (vmaxv_s16): Likewise.
20588 (vmaxv_s32): Likewise.
20589 (vmaxv_u8): Likewise.
20590 (vmaxv_u16): Likewise.
20591 (vmaxv_u32): Likewise.
20592 (vmaxvq_f32): Likewise.
20593 (vmaxvq_f64): Likewise.
20594 (vmaxvq_s8): Likewise.
20595 (vmaxvq_s16): Likewise.
20596 (vmaxvq_s32): Likewise.
20597 (vmaxvq_u8): Likewise.
20598 (vmaxvq_u16): Likewise.
20599 (vmaxvq_u32): Likewise.
20600 (vmaxnmv_f32): Likewise.
20601 (vmaxnmvq_f32): Likewise.
20602 (vmaxnmvq_f64): Likewise.
20603 (vminv_f32): Likewise.
20604 (vminv_s8): Likewise.
20605 (vminv_s16): Likewise.
20606 (vminv_s32): Likewise.
20607 (vminv_u8): Likewise.
20608 (vminv_u16): Likewise.
20609 (vminv_u32): Likewise.
20610 (vminvq_f32): Likewise.
20611 (vminvq_f64): Likewise.
20612 (vminvq_s8): Likewise.
20613 (vminvq_s16): Likewise.
20614 (vminvq_s32): Likewise.
20615 (vminvq_u8): Likewise.
20616 (vminvq_u16): Likewise.
20617 (vminvq_u32): Likewise.
20618 (vminnmv_f32): Likewise.
20619 (vminnmvq_f32): Likewise.
20620 (vminnmvq_f64): Likewise.
20621
20622 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20623
20624 * config/aarch64/aarch64-simd.md
20625 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20626 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20627 (*aarch64_mul3_elt<mode>): Likewise.
20628 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20629 (*aarch64_mul3_elt_to_64v2df): Likewise.
20630 (*aarch64_mla_elt<mode>): Likewise.
20631 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20632 (*aarch64_mls_elt<mode>): Likewise.
20633 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20634 (*aarch64_fma4_elt<mode>): Likewise.
20635 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20636 (*aarch64_fma4_elt_to_64v2df): Likewise.
20637 (*aarch64_fnma4_elt<mode>): Likewise.
20638 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20639 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20640 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20641 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20642 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20643 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20644 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20645 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20646 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20647
20648 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20649
20650 * config/aarch64/aarch64-simd.md
20651 (aarch64_be_checked_get_lane<mode>): New define_expand.
20652 * config/aarch64/aarch64-simd-builtins.def
20653 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20654 New builtin definition.
20655 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20656 Use new safe be builtin.
20657
20658 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20659
20660 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20661 New define_insn.
20662 (aarch64_be_st1<mode>): Likewise.
20663 (aarch_ld1<VALL:mode>): Define_expand modified.
20664 (aarch_st1<VALL:mode>): Likewise.
20665 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20666 (UNSPEC_ST1): Likewise.
20667
20668 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20669
20670 * config/microblaze/microblaze.md: Add trap insn and attribute
20671
20672 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20673
20674 PR preprocessor/58580
20675 * input.h (location_get_source_line): Take an additional line_size
20676 parameter.
20677 (void diagnostics_file_cache_fini): Declare new function.
20678 * input.c (struct fcache): New type.
20679 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20680 New static constants.
20681 (diagnostic_file_cache_init, total_lines_num)
20682 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20683 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20684 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20685 (get_next_line, read_next_line, goto_next_line, read_line_num):
20686 New static function definitions.
20687 (diagnostic_file_cache_fini): New function.
20688 (location_get_source_line): Take an additional output line_len
20689 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20690 read_line_num.
20691 * diagnostic.c (diagnostic_finish): Call
20692 diagnostic_file_cache_fini.
20693 (adjust_line): Take an additional input parameter for the length
20694 of the line, rather than calculating it with strlen.
20695 (diagnostic_show_locus): Adjust the use of
20696 location_get_source_line and adjust_line with respect to their new
20697 signature. While displaying a line now, do not stop at the first
20698 null byte. Rather, display the zero byte as a space and keep
20699 going until we reach the size of the line.
20700 * Makefile.in: Add vec.o to OBJS-libcommon
20701
20702 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20703 Ilya Tocar <ilya.tocar@intel.com>
20704
20705 * config/i386/avx512fintrin.h (_mm512_kmov): New.
20706 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
20707 (__builtin_ia32_kmov16): Ditto.
20708 * config/i386/i386.md (UNSPEC_KMOV): New.
20709 (kmovw): Ditto.
20710
20711 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20712
20713 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
20714 (_mm512_storeu_si512): Ditto.
20715
20716 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
20717
20718 PR target/52125
20719 * rtl.h (get_referenced_operands): Declare.
20720 * recog.c (get_referenced_operands): New function.
20721 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
20722 operands have been referenced when recording LO_SUM references.
20723
20724 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
20725
20726 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
20727
20728 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20729
20730 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
20731 Enable for generic and recent AMD targets.
20732
20733 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20734
20735 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
20736 ARG_SIZE note when adjustment was eliminated.
20737
20738 2014-01-22 Jeff Law <law@redhat.com>
20739
20740 PR tree-optimization/59597
20741 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
20742 in file. Accept new argument REGISTERING and use it to modify
20743 dump output appropriately.
20744 (register_jump_thread): Corresponding changes.
20745 (mark_threaded_blocks): Reinstate code to cancel unprofitable
20746 thread paths involving joiner blocks. Add code to dump cancelled
20747 jump threading paths.
20748
20749 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
20750
20751 PR rtl-optimization/59477
20752 * lra-constraints.c (inherit_in_ebb): Process call for living hard
20753 regs. Update reloads_num and potential_reload_hard_regs for all insns.
20754
20755 2014-01-22 Tom Tromey <tromey@redhat.com>
20756
20757 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
20758 PARAMS.
20759 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
20760
20761 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20762
20763 PR rtl-optimization/59896
20764 * lra-constraints.c (process_alt_operands): Check unused note for
20765 matched operands of insn with no output reloads.
20766
20767 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
20768
20769 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
20770 (mips_move_from_gpr_cost): Likewise.
20771
20772 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20773
20774 PR rtl-optimization/59858
20775 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
20776 ira_class_hard_regs_num.
20777 (process_alt_operands): Increase reject for dying matched operand.
20778
20779 2014-01-21 Jakub Jelinek <jakub@redhat.com>
20780
20781 PR target/59003
20782 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
20783 smaller than size, perform several stores or loads and stores
20784 at dst + count - size to store or copy all of size bytes, rather
20785 than just last modesize bytes.
20786
20787 2014-01-20 DJ Delorie <dj@redhat.com>
20788
20789 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
20790 that CLOBBERs are REGs before propogating their values.
20791
20792 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
20793
20794 PR middle-end/59789
20795 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
20796 (cgraph_inline_failed_type): New function.
20797 * cgraph.h (DEFCIFCODE): Add type.
20798 (cgraph_inline_failed_type_t): New enum.
20799 (cgraph_inline_failed_type): New prototype.
20800 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
20801 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20802 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
20803 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
20804 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
20805 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
20806 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
20807 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
20808 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
20809 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
20810 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
20811 OPTIMIZATION_MISMATCH.
20812 * tree-inline.c (expand_call_inline): Emit errors during
20813 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
20814
20815 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20816
20817 PR target/59685
20818 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
20819 mode attribute in insn output.
20820
20821 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
20822
20823 * output.h (output_constant): Delete.
20824 * varasm.c (output_constant): Make private.
20825
20826 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
20827
20828 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
20829
20830 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20831
20832 PR middle-end/59860
20833 * tree.h (fold_builtin_strcat): New prototype.
20834 * builtins.c (fold_builtin_strcat): No longer static. Add len
20835 argument, if non-NULL, don't call c_strlen. Optimize
20836 directly into __builtin_memcpy instead of __builtin_strcpy.
20837 (fold_builtin_2): Adjust fold_builtin_strcat caller.
20838 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
20839
20840 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20841
20842 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20843 for SImode_address_operand operands, having only a REG argument.
20844
20845 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
20846
20847 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
20848 loader name using mbig-endian.
20849 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
20850
20851 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20852
20853 * doc/invoke.texi (-march): Clarify documentation for AArch64.
20854 (-mtune): Likewise.
20855 (-mcpu): Likewise.
20856
20857 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
20858
20859 * config/aarch64/aarch64-protos.h
20860 (aarch64_cannot_change_mode_class_ptr): Declare.
20861 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
20862 aarch64_cannot_change_mode_class_ptr): New.
20863 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
20864 backend hook aarch64_cannot_change_mode_class.
20865
20866 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20867
20868 * common/config/aarch64/aarch64-common.c
20869 (aarch64_handle_option): Don't handle any option order logic here.
20870 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
20871 selected_cpu, warn on architecture version mismatch.
20872 (aarch64_override_options): Fix parsing order for option strings.
20873
20874 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20875 Iain Sandoe <iain@codesourcery.com>
20876
20877 PR bootstrap/59496
20878 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
20879 warning. Amend comment to reflect current functionality.
20880
20881 2014-01-20 Richard Biener <rguenther@suse.de>
20882
20883 PR middle-end/59860
20884 * builtins.c (fold_builtin_strcat): Remove case better handled
20885 by tree-ssa-strlen.c.
20886
20887 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
20888
20889 * config/aarch64/aarch64.opt
20890 (mcpu, march, mtune): Make case-insensitive.
20891
20892 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20893
20894 PR target/59880
20895 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20896 if operands[1] is a REG or ZERO_EXTEND of a REG.
20897
20898 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
20899
20900 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
20901
20902 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
20903
20904 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
20905 long non-pic millicode calls.
20906
20907 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20908
20909 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
20910
20911 2014-01-19 Kito Cheng <kito@0xlab.org>
20912
20913 * builtins.c (expand_movstr): Check movstr expand done or fail.
20914
20915 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20916 H.J. Lu <hongjiu.lu@intel.com>
20917
20918 PR target/59379
20919 * config/i386/i386.md (*lea<mode>): Zero-extend return register
20920 to DImode for zero-extended addresses.
20921
20922 2014-01-19 Jakub Jelinek <jakub@redhat.com>
20923
20924 PR rtl-optimization/57763
20925 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
20926 on the new indirect jump_insn and increment LABEL_NUSES (label).
20927
20928 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
20929
20930 PR bootstrap/59580
20931 PR bootstrap/59583
20932 * config.gcc (x86_archs): New variable.
20933 (x86_64_archs): Likewise.
20934 (x86_cpus): Likewise.
20935 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
20936 --with-arch/--with-cpu= options.
20937 Support --with-arch=/--with-cpu={nehalem,westmere,
20938 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
20939
20940 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20941
20942 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
20943 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
20944
20945 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20946
20947 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
20948
20949 2014-01-18 Jakub Jelinek <jakub@redhat.com>
20950
20951 PR target/58944
20952 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
20953 clear cpp_get_options (parse_in)->warn_unused_macros for
20954 ix86_target_macros_internal with cpp_define.
20955
20956 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
20957
20958 * jump.c (delete_related_insns): Keep (use (insn))s.
20959 * reorg.c (redundant_insn): Check for barriers too.
20960
20961 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20962
20963 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
20964
20965 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
20966
20967 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
20968 call to $$dyncall when TARGET_LONG_CALLS is true.
20969
20970 2014-01-17 Jeff Law <law@redhat.com>
20971
20972 * ree.c (combine_set_extension): Temporarily disable test for
20973 changing number of hard registers.
20974
20975 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20976
20977 PR middle-end/58125
20978 * ipa-inline-analysis.c (inline_free_summary):
20979 Do not free summary of aliases.
20980
20981 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20982
20983 PR middle-end/59706
20984 * gimplify.c (gimplify_expr): Use create_tmp_var
20985 instead of create_tmp_var_raw. If cond doesn't have
20986 integral type, don't add the IFN_ANNOTATE builtin at all.
20987
20988 2014-01-17 Martin Jambor <mjambor@suse.cz>
20989
20990 PR ipa/59736
20991 * ipa-cp.c (prev_edge_clone): New variable.
20992 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
20993 Also resize prev_edge_clone vector.
20994 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
20995 (ipcp_edge_removal_hook): New function.
20996 (ipcp_driver): Register ipcp_edge_removal_hook.
20997
20998 2014-01-17 Andrew Pinski <apinski@cavium.com>
20999 Steve Ellcey <sellcey@mips.com>
21000
21001 PR target/59462
21002 * config/mips/mips.c (mips_print_operand): Check operand mode instead
21003 of operator mode.
21004
21005 2014-01-17 Jeff Law <law@redhat.com>
21006
21007 PR middle-end/57904
21008 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
21009 so that pass_ccp runs first.
21010
21011 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21012
21013 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
21014 (ix86_adjust_cost): Use !TARGET_XXX.
21015 (do_reorder_for_imul): Likewise.
21016 (swap_top_of_ready_list): Likewise.
21017 (ix86_sched_reorder): Likewise.
21018
21019 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21020
21021 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21022 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
21023 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
21024 (intel_memset): New. Duplicate slm_memset.
21025 (intel_cost): New. Duplicate slm_cost.
21026 (m_INTEL): New macro.
21027 (processor_target_table): Add "intel".
21028 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
21029 with PROCESSOR_INTEL for "intel".
21030 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
21031 PROCESSOR_SILVERMONT.
21032 (ix86_issue_rate): Likewise.
21033 (ix86_adjust_cost): Likewise.
21034 (ia32_multipass_dfa_lookahead): Likewise.
21035 (swap_top_of_ready_list): Likewise.
21036 (ix86_sched_reorder): Likewise.
21037 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
21038 instead of TARGET_OPT_AGU.
21039 * config/i386/i386.h (TARGET_INTEL): New.
21040 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
21041 (processor_type): Add PROCESSOR_INTEL.
21042 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
21043 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
21044
21045 2014-01-17 Marek Polacek <polacek@redhat.com>
21046
21047 PR c/58346
21048 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
21049 size is zero.
21050
21051 2014-01-17 Richard Biener <rguenther@suse.de>
21052
21053 PR tree-optimization/46590
21054 * opts.c (default_options_table): Add entries for
21055 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
21056 all enabled at -O1 but not for -Og.
21057 * common.opt (fbranch-count-reg): Remove Init(1).
21058 (fmove-loop-invariants): Likewise.
21059 (ftree-pta): Likewise.
21060
21061 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21062
21063 * config/i386/i386.c (ix86_data_alignment): For compatibility with
21064 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
21065 decls to at least the GCC 4.8 used alignments.
21066
21067 PR fortran/59440
21068 * tree-nested.c (convert_nonlocal_reference_stmt,
21069 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
21070 of GIMPLE_BIND stmts, adjust associated decls.
21071
21072 2014-01-17 Richard Biener <rguenther@suse.de>
21073
21074 PR tree-optimization/46590
21075 * vec.h (vec<>::bseach): New member function implementing
21076 binary search according to C89 bsearch.
21077 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
21078 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
21079 bitmap pointer again. Make accesses_in_loop a flat array.
21080 (mem_ref_obstack): New global.
21081 (outermost_indep_loop): Adjust for mem_ref->stored changes.
21082 (mark_ref_stored): Likewise.
21083 (ref_indep_loop_p_2): Likewise.
21084 (set_ref_stored_in_loop): New helper function.
21085 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
21086 (memref_free): Adjust.
21087 (record_mem_ref_loc): Simplify.
21088 (gather_mem_refs_stmt): Adjust.
21089 (sort_locs_in_loop_postorder_cmp): New function.
21090 (analyze_memory_references): Sort accesses_in_loop after
21091 loop postorder number.
21092 (find_ref_loc_in_loop_cmp): New function.
21093 (for_all_locs_in_loop): Find relevant cluster of locs in
21094 accesses_in_loop and iterate without recursion.
21095 (execute_sm): Avoid uninit warning.
21096 (struct ref_always_accessed): Simplify.
21097 (ref_always_accessed::operator ()): Likewise.
21098 (ref_always_accessed_p): Likewise.
21099 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
21100 loop postorder numbers here.
21101 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
21102 numbers.
21103
21104 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21105
21106 PR c++/57945
21107 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21108 on decls for which assemble_alias has been called.
21109
21110 2014-01-17 Nick Clifton <nickc@redhat.com>
21111
21112 * config/msp430/msp430.opt: (mcpu): New option.
21113 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21114 (msp430_option_override): Parse target_cpu. If the MCU name
21115 matches a generic string, clear target_mcu.
21116 (msp430_attr): Allow numeric interrupt values up to 63.
21117 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21118 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21119 option.
21120 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21121 Add mcpu matches.
21122 * config/msp430/msp430.md (popm): Use %J rather than %I.
21123 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21124 (addhi_cy_i): Use immediate_operand for operand 2.
21125 * doc/invoke.texi: Document -mcpu option.
21126
21127 2014-01-17 Richard Biener <rguenther@suse.de>
21128
21129 PR rtl-optimization/38518
21130 * df.h (df_analyze_loop): Declare.
21131 * df-core.c: Include cfgloop.h.
21132 (df_analyze_1): Split out main part of df_analyze.
21133 (df_analyze): Adjust.
21134 (loop_inverted_post_order_compute): New function.
21135 (loop_post_order_compute): Likewise.
21136 (df_analyze_loop): New function avoiding whole-function
21137 postorder computes.
21138 * loop-invariant.c (find_defs): Use df_analyze_loop.
21139 (find_invariants): Adjust.
21140 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21141
21142 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21143
21144 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21145 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21146
21147 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21148
21149 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21150 traversal when removing references.
21151
21152 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21153
21154 PR ipa/59775
21155 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21156
21157 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21158
21159 PR middle-end/56791
21160 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21161 pushing a reload for an autoinc when we had previously reloaded an
21162 inner part of the address.
21163
21164 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21165
21166 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21167 field.
21168 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21169 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21170 when not giving up or versioning for alias only because of
21171 loop->safelen.
21172 (vect_analyze_data_ref_dependences): Set to true.
21173 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21174 is a GIMPLE_PHI.
21175 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21176 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21177 to the condition.
21178
21179 PR middle-end/58344
21180 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21181
21182 PR target/59839
21183 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21184 operand 0 predicate for gathers, use a new pseudo as subtarget.
21185
21186 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21187
21188 PR middle-end/59609
21189 * lra-constraints.c (process_alt_operands): Add printing debug info.
21190 Check absence of input/output reloads for matched operands too.
21191
21192 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21193
21194 PR rtl-optimization/59835
21195 * ira.c (ira_init_register_move_cost): Increase cost for
21196 impossible modes.
21197
21198 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21199
21200 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21201
21202 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21203
21204 PR target/59780
21205 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21206 non-register objects. Use gen_(high/low)part more consistently.
21207 Fix assertions.
21208
21209 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21210
21211 PR target/59844
21212 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21213 endian support, remove tests for WORDS_BIG_ENDIAN.
21214 (p8_mfvsrd_3_<mode>): Likewise.
21215 (reload_gpr_from_vsx<mode>): Likewise.
21216 (reload_gpr_from_vsxsf): Likewise.
21217 (p8_mfvsrd_4_disf): Likewise.
21218
21219 2014-01-16 Richard Biener <rguenther@suse.de>
21220
21221 PR rtl-optimization/46590
21222 * lcm.c (compute_antinout_edge): Use postorder iteration.
21223 (compute_laterin): Use inverted postorder iteration.
21224
21225 2014-01-16 Nick Clifton <nickc@redhat.com>
21226
21227 PR middle-end/28865
21228 * varasm.c (output_constant): Return the number of bytes actually
21229 emitted.
21230 (output_constructor_array_range): Update the field size with the
21231 number of bytes emitted by output_constant.
21232 (output_constructor_regular_field): Likewise. Also do not
21233 complain if the total number of bytes emitted is now greater
21234 than the expected fieldpos.
21235 * output.h (output_constant): Update prototype and descriptive comment.
21236
21237 2014-01-16 Marek Polacek <polacek@redhat.com>
21238
21239 PR middle-end/59827
21240 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21241 it is error_mark_node.
21242
21243 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21244
21245 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21246 VALID_AVX256_REG_OR_OI_MODE.
21247
21248 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21249
21250 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21251 current procedure should be profiled.
21252
21253 2014-01-15 Andrew Pinski <apinski@cavium.com>
21254
21255 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21256 of moving from/to the STACK_REG register class.
21257
21258 2014-01-15 Richard Henderson <rth@redhat.com>
21259
21260 PR debug/54694
21261 * reginfo.c (global_regs_decl): Globalize.
21262 * rtl.h (global_regs_decl): Declare.
21263 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21264 reserved via global_regs.
21265
21266 2014-01-15 Teresa Johnson <tejohnson@google.com>
21267
21268 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21269
21270 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21271
21272 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21273 and vmulosh rather than call gen_vec_widen_smult_*.
21274 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21275 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21276 (vec_widen_smult_even_v16qi): Likewise.
21277 (vec_widen_umult_even_v8hi): Likewise.
21278 (vec_widen_smult_even_v8hi): Likewise.
21279 (vec_widen_umult_odd_v16qi): Likewise.
21280 (vec_widen_smult_odd_v16qi): Likewise.
21281 (vec_widen_umult_odd_v8hi): Likewise.
21282 (vec_widen_smult_odd_v8hi): Likewise.
21283 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21284 vmuloub rather than call gen_vec_widen_umult_*.
21285 (vec_widen_umult_lo_v16qi): Likewise.
21286 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21287 vmulosb rather than call gen_vec_widen_smult_*.
21288 (vec_widen_smult_lo_v16qi): Likewise.
21289 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21290 rather than call gen_vec_widen_umult_*.
21291 (vec_widen_umult_lo_v8hi): Likewise.
21292 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21293 rather than call gen_vec_widen_smult_*.
21294 (vec_widen_smult_lo_v8hi): Likewise.
21295
21296 2014-01-15 Jeff Law <law@redhat.com>
21297
21298 PR tree-optimization/59747
21299 * ree.c (find_and_remove_re): Properly handle case where a second
21300 eliminated extension requires widening a copy created for elimination
21301 of a prior extension.
21302 (combine_set_extension): Ensure that the number of hard regs needed
21303 for a destination register does not change when we widen it.
21304
21305 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21306
21307 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21308 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21309 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21310 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21311 (avr-*-rtems*): Likewise.
21312 (bfin*-rtems*): Likewise.
21313 (moxie-*-rtems*): Likewise.
21314 (h8300-*-rtems*): Likewise.
21315 (i[34567]86-*-rtems*): Likewise.
21316 (lm32-*-rtems*): Likewise.
21317 (m32r-*-rtems*): Likewise.
21318 (m68k-*-rtems*): Likewise.
21319 (microblaze*-*-rtems*): Likewise.
21320 (mips*-*-rtems*): Likewise.
21321 (powerpc-*-rtems*): Likewise.
21322 (sh-*-rtems*): Likewise.
21323 (sparc-*-rtems*): Likewise.
21324 (sparc64-*-rtems*): Likewise.
21325 (v850-*-rtems*): Likewise.
21326 (m32c-*-rtems*): Likewise.
21327
21328 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21329
21330 PR rtl-optimization/59511
21331 * ira.c (ira_init_register_move_cost): Use memory costs for some
21332 cases of register move cost calculations.
21333 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21334 instead of BB frequency.
21335 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21336 * lra-assigns.c (find_hard_regno_for): Ditto.
21337
21338 2014-01-15 Richard Biener <rguenther@suse.de>
21339
21340 PR tree-optimization/59822
21341 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21342 (vectorizable_load): Use it to hoist defs of uses of invariant
21343 loads out of the loop.
21344
21345 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21346 Kugan Vivekanandarajah <kuganv@linaro.org>
21347
21348 PR target/59695
21349 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21350 truncation.
21351
21352 2014-01-15 Richard Biener <rguenther@suse.de>
21353
21354 PR rtl-optimization/59802
21355 * lcm.c (compute_available): Use inverted postorder to seed
21356 the initial worklist.
21357
21358 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21359
21360 PR target/59803
21361 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21362 ADDR_REGS for invalid symrefs in non-PIC code.
21363
21364 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21365
21366 PR other/58712
21367 * builtins.c (determine_block_size): Initialize *probable_max_size
21368 even if len_rtx is CONST_INT.
21369
21370 2014-01-14 Andrew Pinski <apinski@cavium.com>
21371
21372 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21373 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21374 (cortexa53_tunings): Likewise.
21375 (aarch64_sched_issue_rate): New function.
21376 (TARGET_SCHED_ISSUE_RATE): Define.
21377
21378 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21379
21380 * ira-costs.c (find_costs_and_classes): Add missed
21381 ira_init_register_move_cost_if_necessary.
21382
21383 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21384
21385 PR target/59787
21386 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21387
21388 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21389
21390 PR target/59794
21391 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21392 to indicate if type is used for function return value. Warn ABI
21393 change if the vector mode isn't available for function return value.
21394 (ix86_function_arg_advance): Pass false to type_natural_mode.
21395 (ix86_function_arg): Likewise.
21396 (ix86_gimplify_va_arg): Likewise.
21397 (function_arg_32): Don't warn ABI change.
21398 (ix86_function_value): Pass true to type_natural_mode.
21399 (ix86_return_in_memory): Likewise.
21400 (ix86_struct_value_rtx): Removed.
21401 (TARGET_STRUCT_VALUE_RTX): Likewise.
21402
21403 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21404
21405 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21406 converting a conditional jump into a conditional return.
21407
21408 2014-01-14 Richard Biener <rguenther@suse.de>
21409
21410 PR tree-optimization/58921
21411 PR tree-optimization/59006
21412 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21413 hoisting invariant stmts.
21414 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21415 invariant loads on the preheader edge if possible.
21416
21417 2014-01-14 Joey Ye <joey.ye@arm.com>
21418
21419 * doc/plugin.texi (Building GCC plugins): Update to C++.
21420
21421 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21422
21423 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21424 (_mm_rcp28_round_ss): Ditto.
21425 (_mm_rsqrt28_round_sd): Ditto.
21426 (_mm_rsqrt28_round_ss): Ditto.
21427 (_mm_rcp28_sd): Ditto.
21428 (_mm_rcp28_ss): Ditto.
21429 (_mm_rsqrt28_sd): Ditto.
21430 (_mm_rsqrt28_ss): Ditto.
21431 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21432 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21433 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21434 (IX86_BUILTIN_RCP28SD): Ditto.
21435 (IX86_BUILTIN_RCP28SS): Ditto.
21436 (IX86_BUILTIN_RSQRT28SD): Ditto.
21437 (IX86_BUILTIN_RSQRT28SS): Ditto.
21438 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21439 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21440 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21441 (ix86_expand_special_args_builtin): Expand new FTYPE.
21442 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21443 (srcp14<mode>): Make insn unary.
21444 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21445 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21446 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21447 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21448 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21449 Fix rounding: make it SAE only.
21450 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21451 Ditto.
21452 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21453 Ditto.
21454 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21455 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21456 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21457 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21458 (round_saeonly_mask_scalar_operand4): Ditto.
21459 (round_saeonly_mask_scalar_op3): Ditto.
21460 (round_saeonly_mask_scalar_op4): Ditto.
21461
21462 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21463
21464 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21465 Implement -maltivec=be for vec_insert and vec_extract.
21466
21467 2014-01-10 DJ Delorie <dj@redhat.com>
21468
21469 * config/msp430/msp430.md (call_internal): Don't allow memory
21470 references with SP as the base register.
21471 (call_value_internal): Likewise.
21472 * config/msp430/constraints.md (Yc): New. For memory references
21473 that don't use SP as a base register.
21474
21475 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21476 "an integer without a # prefix"
21477 * config/msp430/msp430.md (epilogue_helper): Use it.
21478
21479 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21480
21481 PR target/59617
21482 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21483 AVX512F gather builtins.
21484 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21485 on gather decls with INTEGER_TYPE masktype.
21486 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21487 directly into the builtin rather than hoisting it before loop.
21488
21489 PR tree-optimization/59387
21490 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21491 (scev_const_prop): If folded_casts and type has undefined overflow,
21492 use force_gimple_operand instead of force_gimple_operand_gsi and
21493 for each added stmt if it is assign with
21494 arith_code_with_undefined_signed_overflow, call
21495 rewrite_to_defined_overflow.
21496 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21497 gimple-fold.h instead.
21498 (arith_code_with_undefined_signed_overflow,
21499 rewrite_to_defined_overflow): Moved to ...
21500 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21501 rewrite_to_defined_overflow): ... here. No longer static.
21502 Include gimplify-me.h.
21503 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21504 rewrite_to_defined_overflow): New prototypes.
21505
21506 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21507
21508 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21509
21510 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21511
21512 * builtins.c (get_object_alignment_2): Minor tweak.
21513 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21514
21515 2014-01-13 Christian Bruel <christian.bruel@st.com>
21516
21517 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21518 optimized non constant lengths.
21519
21520 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21521
21522 PR libgomp/59194
21523 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21524 load as __atomic_load_N if possible.
21525
21526 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21527
21528 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21529 target parameter.
21530 (rs6000_expand_builtin): Adjust call.
21531
21532 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21533
21534 PR target/58115
21535 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21536 * config/rs6000/rs6000.c: Include target-globals.h.
21537 (rs6000_set_current_function): Instead of doing target_reinit
21538 unconditionally, use save_target_globals_default_opts and
21539 restore_target_globals.
21540
21541 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21542 FPSCR.
21543 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21544 (rs6000_expand_builtin): Handle mffs and mtfsf.
21545 (rs6000_init_builtins): Define mffs and mtfsf.
21546 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21547 (rs6000_mffs): New pattern.
21548 (rs6000_mtfsf): New pattern.
21549
21550 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21551
21552 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21553 Start narrowing with START. Apply candidate-use pair
21554 and check overall cost in narrowing.
21555 (iv_ca_prune): Pass new argument.
21556
21557 2014-01-10 Jeff Law <law@redhat.com>
21558
21559 PR middle-end/59743
21560 * ree.c (combine_reaching_defs): Ensure the defining statement
21561 occurs before the extension when optimizing extensions with
21562 different source and destination hard registers.
21563
21564 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21565
21566 PR ipa/58585
21567 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21568 vtables into the type inheritance graph.
21569
21570 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21571
21572 PR rtl-optimization/59754
21573 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21574 modes in the REGNO != REGNO case.
21575
21576 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21577
21578 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21579
21580 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21581
21582 PR tree-optimization/59745
21583 * tree-predcom.c (tree_predictive_commoning_loop): Call
21584 free_affine_expand_cache if giving up because components is NULL.
21585
21586 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21587 GC in payload of target_globals struct instead of allocating them on
21588 the heap and the larger structs separately using GC.
21589 * target-globals.h (struct target_globals): Make regs, hard_regs,
21590 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21591 of GTY((skip)) and change type to void *.
21592 (reset_target_globals): Cast loads from those fields to corresponding
21593 types.
21594
21595 2014-01-10 Steve Ellcey <sellcey@mips.com>
21596
21597 PR plugins/59335
21598 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21599 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21600 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21601
21602 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21603
21604 PR target/59744
21605 * aarch64-modes.def (CC_Zmode): New flags mode.
21606 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21607 represents an equality.
21608 (aarch64_get_condition_code): Handle CC_Zmode.
21609 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21610
21611 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21612
21613 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21614 extraction in good case.
21615
21616 2014-01-10 Richard Biener <rguenther@suse.de>
21617
21618 PR tree-optimization/59374
21619 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21620 checking after SLP discovery. Mark stmts not participating
21621 in any SLP instance properly.
21622
21623 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21624
21625 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21626 when handling a SET rtx.
21627
21628 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21629
21630 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21631 (cortex-a57): Likewise.
21632 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21633
21634 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21635
21636 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21637 non-iwmmxt builtins.
21638
21639 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21640
21641 PR ipa/58252
21642 PR ipa/59226
21643 * ipa-devirt.c record_target_from_binfo): Take as argument
21644 stack of binfos and lookup matching one for virtual inheritance.
21645 (possible_polymorphic_call_targets_1): Update.
21646
21647 2014-01-10 Huacai Chen <chenhc@lemote.com>
21648
21649 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21650 kernel strings for Loongson-2E/2F/3A.
21651
21652 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21653
21654 PR middle-end/59670
21655 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21656 is_gimple_call before calling gimple_call_internal_p.
21657
21658 2014-01-09 Steve Ellcey <sellcey@mips.com>
21659
21660 * Makefile.in (TREE_FLOW_H): Remove.
21661 (TREE_SSA_H): Add file names from tree-flow.h.
21662 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21663 * tree.h: Remove tree-flow.h reference.
21664 * hash-table.h: Remove tree-flow.h reference.
21665 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21666 reference with tree-ssa-loop.h.
21667
21668 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21669
21670 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21671 default element-order behavior for -maltivec.
21672 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21673 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21674 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21675 when targeting big endian, at least for now.
21676 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21677
21678 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21679
21680 PR middle-end/47735
21681 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21682 var satisfies use_register_for_decl, just take into account type
21683 alignment, rather than decl alignment.
21684
21685 PR tree-optimization/59622
21686 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21687 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21688 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21689 Don't devirtualize for inplace at all. For targets.length () == 1,
21690 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21691
21692 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21693
21694 * config/i386/i386.md (cpu): Remove the unused btver1.
21695
21696 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21697
21698 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
21699
21700 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21701
21702 PR target/58115
21703 * tree-core.h (struct target_globals): New forward declaration.
21704 (struct tree_target_option): Add globals field.
21705 * tree.h (TREE_TARGET_GLOBALS): Define.
21706 (prepare_target_option_nodes_for_pch): New prototype.
21707 * target-globals.h (struct target_globals): Define even if
21708 !SWITCHABLE_TARGET.
21709 * tree.c (prepare_target_option_node_for_pch,
21710 prepare_target_option_nodes_for_pch): New functions.
21711 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
21712 * config/i386/i386.c: Include target-globals.h.
21713 (ix86_set_current_function): Instead of doing target_reinit
21714 unconditionally, use save_target_globals_default_opts and
21715 restore_target_globals.
21716
21717 2014-01-09 Richard Biener <rguenther@suse.de>
21718
21719 PR tree-optimization/59715
21720 * tree-cfg.h (split_critical_edges): Declare.
21721 * tree-cfg.c (split_critical_edges): Export.
21722 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
21723
21724 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
21725
21726 * cfgexpand.c (expand_stack_vars): Optionally disable
21727 asan stack protection.
21728 (expand_used_vars): Likewise.
21729 (partition_stack_vars): Likewise.
21730 * asan.c (asan_emit_stack_protection): Optionally disable
21731 after return stack usage.
21732 (instrument_derefs): Optionally disable memory access instrumentation.
21733 (instrument_builtin_call): Likewise.
21734 (instrument_strlen_call): Likewise.
21735 (asan_protect_global): Optionally disable global variables protection.
21736 * doc/invoke.texi: Added doc for new options.
21737 * params.def: Added new options.
21738 * params.h: Likewise.
21739
21740 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21741
21742 PR rtl-optimization/59724
21743 * ifcvt.c (cond_exec_process_if_block): Don't call
21744 flow_find_head_matching_sequence with 0 longest_match.
21745 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
21746 non-active insns if !stop_after.
21747 (try_head_merge_bb): Revert 2014-01-07 changes.
21748
21749 2014-01-08 Jeff Law <law@redhat.com>
21750
21751 * ree.c (get_sub_rtx): New function, extracted from...
21752 (merge_def_and_ext): Here.
21753 (combine_reaching_defs): Use get_sub_rtx.
21754
21755 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
21756
21757 * cgraph.h (varpool_variable_node): Do not choke on null node.
21758
21759 2014-01-08 Catherine Moore <clm@codesourcery.com>
21760
21761 * config/mips/mips.md (simple_return): Attempt to use JRC
21762 for microMIPS.
21763 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
21764
21765 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21766
21767 PR rtl-optimization/59137
21768 * reorg.c (steal_delay_list_from_target): Call update_block for
21769 elided insns.
21770 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
21771
21772 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21773
21774 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21775 two duplicate entries.
21776
21777 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21778
21779 Revert:
21780 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
21781
21782 * config/mips/mips.c (mips_truncated_op_cost): New function.
21783 (mips_rtx_costs): Adjust test for BADDU.
21784 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
21785
21786 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
21787
21788 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
21789 (*baddu_si): ...this new pattern.
21790
21791 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21792
21793 PR ipa/59722
21794 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
21795
21796 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21797
21798 PR middle-end/57748
21799 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
21800 inner_reference_p.
21801 (expand_expr, expand_normal): Adjust.
21802 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
21803 inner_reference_p. Use inner_reference_p to expand inner references.
21804 (store_expr): Adjust.
21805 * cfgexpand.c (expand_call_stmt): Adjust.
21806
21807 2014-01-08 Rong Xu <xur@google.com>
21808
21809 * gcov-io.c (gcov_var): Move from gcov-io.h.
21810 (gcov_position): Ditto.
21811 (gcov_is_error): Ditto.
21812 (gcov_rewrite): Ditto.
21813 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
21814 only part to libgcc/libgcov.h.
21815
21816 2014-01-08 Marek Polacek <polacek@redhat.com>
21817
21818 PR middle-end/59669
21819 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
21820
21821 2014-01-08 Marek Polacek <polacek@redhat.com>
21822
21823 PR sanitizer/59667
21824 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
21825
21826 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21827
21828 PR rtl-optimization/59649
21829 * stor-layout.c (get_mode_bounds): For BImode return
21830 0 and STORE_FLAG_VALUE.
21831
21832 2014-01-08 Richard Biener <rguenther@suse.de>
21833
21834 PR middle-end/59630
21835 * gimple.h (is_gimple_builtin_call): Remove.
21836 (gimple_builtin_call_types_compatible_p): New.
21837 (gimple_call_builtin_p): New overload.
21838 * gimple.c (is_gimple_builtin_call): Remove.
21839 (validate_call): Rename to ...
21840 (gimple_builtin_call_types_compatible_p): ... this and export. Also
21841 check return types.
21842 (validate_type): New static function.
21843 (gimple_call_builtin_p): New overload and adjust.
21844 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
21845 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
21846 (gimple_fold_stmt_to_constant_1): Likewise.
21847 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
21848
21849 2014-01-08 Richard Biener <rguenther@suse.de>
21850
21851 PR middle-end/59471
21852 * gimplify.c (gimplify_expr): Gimplify register-register type
21853 VIEW_CONVERT_EXPRs to separate stmts.
21854
21855 2014-01-07 Jeff Law <law@redhat.com>
21856
21857 PR middle-end/53623
21858 * ree.c (combine_set_extension): Handle case where source
21859 and destination registers in an extension insn are different.
21860 (combine_reaching_defs): Allow source and destination registers
21861 in extension to be different under limited circumstances.
21862 (add_removable_extension): Remove restriction that the
21863 source and destination registers in the extension are the same.
21864 (find_and_remove_re): Emit a copy from the extension's
21865 destination to its source after the defining insn if
21866 the source and destination registers are different.
21867
21868 PR middle-end/59285
21869 * ifcvt.c (merge_if_block): If we are merging a block with more than
21870 one successor with a block with no successors, remove any BARRIER
21871 after the second block.
21872
21873 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
21874
21875 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
21876
21877 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
21878
21879 PR target/59652
21880 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
21881 for 14-bit register offsets when INT14_OK_STRICT is false.
21882
21883 2014-01-07 Roland Stigge <stigge@antcom.de>
21884 Michael Meissner <meissner@linux.vnet.ibm.com>
21885
21886 PR 57386/target
21887 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21888 Only check TFmode for SPE constants. Don't check TImode or TDmode.
21889
21890 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
21891
21892 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
21893 -mcpu.
21894
21895 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
21896
21897 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
21898 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
21899 rtx is const0_rtx or not.
21900
21901 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
21902
21903 PR target/58115
21904 * target-globals.c (save_target_globals): Remove this_fn_optab
21905 handling.
21906 * toplev.c: Include optabs.h.
21907 (target_reinit): Temporarily restore the global options if another
21908 set of options are in force.
21909
21910 2014-01-07 Jakub Jelinek <jakub@redhat.com>
21911
21912 PR rtl-optimization/58668
21913 * cfgcleanup.c (flow_find_cross_jump): Don't count
21914 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
21915 to determine what is counted.
21916 (flow_find_head_matching_sequence): Use active_insn_p to determine
21917 what is counted.
21918 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
21919 counting change.
21920 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
21921 determine what is counted.
21922
21923 PR tree-optimization/59643
21924 * tree-predcom.c (split_data_refs_to_components): If one dr is
21925 read and one write, determine_offset fails and the write isn't
21926 in the bad component, just put the read into the bad component.
21927
21928 2014-01-07 Mike Stump <mikestump@comcast.net>
21929 Jakub Jelinek <jakub@redhat.com>
21930
21931 PR pch/59436
21932 * tree-core.h (struct tree_optimization_option): Change optabs
21933 type from unsigned char * to void *.
21934 * optabs.c (init_tree_optimization_optabs): Adjust
21935 TREE_OPTIMIZATION_OPTABS initialization.
21936
21937 2014-01-06 Jakub Jelinek <jakub@redhat.com>
21938
21939 PR target/59644
21940 * config/i386/i386.h (struct machine_function): Add
21941 no_drap_save_restore field.
21942 * config/i386/i386.c (ix86_save_reg): Use
21943 !cfun->machine->no_drap_save_restore instead of
21944 crtl->stack_realign_needed.
21945 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
21946 this function clears frame_pointer_needed. Set
21947 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
21948 and DRAP reg is needed.
21949
21950 2014-01-06 Marek Polacek <polacek@redhat.com>
21951
21952 PR c/57773
21953 * doc/implement-c.texi: Mention that other integer types are
21954 permitted as bit-field types in strictly conforming mode.
21955
21956 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
21957
21958 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
21959 is newly allocated.
21960
21961 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
21962
21963 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
21964
21965 2014-01-06 Martin Jambor <mjambor@suse.cz>
21966
21967 PR ipa/59008
21968 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
21969 to int.
21970 * ipa-prop.c (ipa_print_node_params): Fix indentation.
21971
21972 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
21973
21974 PR debug/59350
21975 PR debug/59510
21976 * var-tracking.c (add_stores): Preserve the value of the source even if
21977 we don't record the store.
21978
21979 2014-01-06 Terry Guo <terry.guo@arm.com>
21980
21981 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
21982
21983 2014-01-05 Iain Sandoe <iain@codesourcery.com>
21984
21985 PR bootstrap/59541
21986 * config/darwin.c (darwin_function_section): Adjust return values to
21987 correspond to optimisation changes made in r206070.
21988
21989 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
21990
21991 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
21992 from prefetch_block tune setting.
21993 (nocona_cost): Correct size of prefetch block to 64.
21994
21995 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
21996
21997 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
21998 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
21999 used to save the static chain register in the computation of the offset
22000 from which the FP registers need to be restored.
22001
22002 2014-01-04 Jakub Jelinek <jakub@redhat.com>
22003
22004 PR tree-optimization/59519
22005 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
22006 ICE if get_current_def (current_new_name) is already non-NULL, as long
22007 as it is a phi result of some other phi in *new_exit_bb that has
22008 the same argument.
22009
22010 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
22011 or vmovdqu* for misaligned_operand.
22012 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
22013 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
22014 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
22015 aligned_mem for AVX512F masked aligned load and store builtins and for
22016 non-temporal moves.
22017
22018 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
22019
22020 PR tree-optimization/59651
22021 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
22022 Address range for negative step should be added by TYPE_SIZE_UNIT.
22023
22024 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
22025
22026 * config/m68k/m68k.c (handle_move_double): Handle pushes with
22027 overlapping registers also for registers other than the stack pointer.
22028
22029 2014-01-03 Marek Polacek <polacek@redhat.com>
22030
22031 PR other/59661
22032 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
22033 __builtin_FILE.
22034
22035 2014-01-03 Jakub Jelinek <jakub@redhat.com>
22036
22037 PR target/59625
22038 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
22039 asm goto as jump.
22040
22041 * config/i386/i386.md (MODE_SIZE): New mode attribute.
22042 (push splitter): Use <P:MODE_SIZE> instead of
22043 GET_MODE_SIZE (<P:MODE>mode).
22044 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
22045 (mov -1, reg peephole2): Likewise.
22046 * config/i386/sse.md (*mov<mode>_internal,
22047 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
22048 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
22049 *<code><mode>3, *andnot<mode>3<mask_name>,
22050 <mask_codefor><code><mode>3<mask_name>): Likewise.
22051 * config/i386/subst.md (mask_mode512bit_condition,
22052 sd_mask_mode512bit_condition): Likewise.
22053
22054 2014-01-02 Xinliang David Li <davidxl@google.com>
22055
22056 PR tree-optimization/59303
22057 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
22058 (dump_predicates): Better output format.
22059 (pred_equal_p): New function.
22060 (is_neq_relop_p): Ditto.
22061 (is_neq_zero_form_p): Ditto.
22062 (pred_expr_equal_p): Ditto.
22063 (pred_neg_p): Ditto.
22064 (simplify_pred): Ditto.
22065 (simplify_preds_2): Ditto.
22066 (simplify_preds_3): Ditto.
22067 (simplify_preds_4): Ditto.
22068 (simplify_preds): Ditto.
22069 (push_pred): Ditto.
22070 (push_to_worklist): Ditto.
22071 (get_pred_info_from_cmp): Ditto.
22072 (is_degenerated_phi): Ditto.
22073 (normalize_one_pred_1): Ditto.
22074 (normalize_one_pred): Ditto.
22075 (normalize_one_pred_chain): Ditto.
22076 (normalize_preds): Ditto.
22077 (normalize_cond_1): Remove function.
22078 (normalize_cond): Ditto.
22079 (is_gcond_subset_of): Ditto.
22080 (is_subset_of_any): Ditto.
22081 (is_or_set_subset_of): Ditto.
22082 (is_and_set_subset_of): Ditto.
22083 (is_norm_cond_subset_of): Ditto.
22084 (pred_chain_length_cmp): Ditto.
22085 (convert_control_dep_chain_into_preds): Type change.
22086 (find_predicates): Ditto.
22087 (find_def_preds): Ditto.
22088 (destroy_predicates_vecs): Ditto.
22089 (find_matching_predicates_in_rest_chains): Ditto.
22090 (use_pred_not_overlap_with_undef_path_pred): Ditto.
22091 (is_pred_expr_subset): Ditto.
22092 (is_pred_chain_subset_of): Ditto.
22093 (is_included_in): Ditto.
22094 (is_superset_of): Ditto.
22095
22096 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22097
22098 Update copyright years.
22099
22100 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22101
22102 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
22103 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
22104 config/arc/arc.md, config/arc/arc.opt,
22105 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22106 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22107 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22108 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22109 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22110 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22111 vtable-verify.c, vtable-verify.h: Use the standard form for the
22112 copyright notice.
22113
22114 2014-01-02 Tobias Burnus <burnus@net-b.de>
22115
22116 * gcc.c (process_command): Update copyright notice dates.
22117 * gcov-dump.c: Ditto.
22118 * gcov.c: Ditto.
22119 * doc/cpp.texi: Bump @copying's copyright year.
22120 * doc/cppinternals.texi: Ditto.
22121 * doc/gcc.texi: Ditto.
22122 * doc/gccint.texi: Ditto.
22123 * doc/gcov.texi: Ditto.
22124 * doc/install.texi: Ditto.
22125 * doc/invoke.texi: Ditto.
22126
22127 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22128
22129 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22130
22131 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22132
22133 * config/i386/sse.md (*mov<mode>_internal): Guard
22134 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22135
22136 PR rtl-optimization/59647
22137 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22138 new_rtx into UNSIGNED_FLOAT rtxes.
22139 \f
22140 Copyright (C) 2014 Free Software Foundation, Inc.
22141
22142 Copying and distribution of this file, with or without modification,
22143 are permitted in any medium without royalty provided the copyright
22144 notice and this notice are preserved.