re PR tree-optimization/62091 (ice in before_dom_children)
[gcc.git] / gcc / ChangeLog
1 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
2
3 PR tree-optimization/62091
4 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5 handle correctly arrays.
6 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
7 inheritance binfos.
8 (record_known_type): Walk into inner type.
9 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
10 condition on no type changes.
11
12 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13
14 * genattrtab.c (write_attr_get): Within the generated get_attr_
15 functions, rename param "insn" to "uncast_insn" and reintroduce
16 "insn" as an local rtx_insn * using a checked cast, so that "insn"
17 is an rtx_insn * within insn-attrtab.c
18
19 2014-08-21 David Malcolm <dmalcolm@redhat.com>
20
21 * output.h (peephole): Strengthen return type from rtx to
22 rtx_insn *.
23 * rtl.h (delete_for_peephole): Likewise for both params.
24 * genpeep.c (main): In generated "peephole" function, strengthen
25 return type and local "insn" from rtx to rtx_insn *. For now,
26 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
27 rtx_insn *, with a checked cast.
28 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
29 locals "insn", "next", "prev" from rtx to rtx_insn *.
30
31 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
32
33 PR tree-optimization/62112
34 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
35 * gimple-iterator.h (gsi_replace): Return bool.
36 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
37 moved from ref_may_alias_global_p.
38 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
39 New overloads.
40 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
41 (stmt_kills_ref_p_1): Rename...
42 (stmt_kills_ref_p): ... to this.
43 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
44 stmt_kills_ref_p): Declare.
45 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
46 Move the self-assignment case...
47 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
48
49 2014-08-21 David Malcolm <dmalcolm@redhat.com>
50
51 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
52
53 * emit-rtl.c (try_split): Likewise, also for locals "before" and
54 "after". For now, don't strengthen param "trial", which requires
55 adding checked casts when returning it.
56
57 2014-08-21 David Malcolm <dmalcolm@redhat.com>
58
59 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
60 "label" from rtx to rtx_code_label *. Strengthen param 1 of
61 "var_location" hook from rtx to rtx_insn *.
62 (debug_nothing_rtx): Delete in favor of...
63 (debug_nothing_rtx_code_label): New prototype.
64 (debug_nothing_rtx_rtx): Delete unused prototype.
65 (debug_nothing_rtx_insn): New prototype.
66
67 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
68 invoking debug_hooks->var_location (in two places, one in a NOTE
69 case of a switch statement, the other guarded by a CALL_P
70 conditional. Add checked cast to rtx_code_label * when invoking
71 debug_hooks->label (within CODE_LABEL case of switch statement).
72
73 * dbxout.c (dbx_debug_hooks): Update "label" hook from
74 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
75 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
76 (xcoff_debug_hooks): Likewise.
77 * debug.c (do_nothing_debug_hooks): Likewise.
78 (debug_nothing_rtx): Delete in favor of...
79 (debug_nothing_rtx_insn): New function.
80 (debug_nothing_rtx_rtx): Delete unused function.
81 (debug_nothing_rtx_code_label): New function.
82 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
83 debug_nothing_rtx to debug_nothing_rtx_code_label.
84 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
85 to rtx_insn *.
86 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
87 debug_nothing_rtx to debug_nothing_rtx_insn.
88 (sdbout_label): Strengthen param "insn" from rtx to
89 rtx_code_label *.
90 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
91 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
92 "var_location" hook from debug_nothing_rtx to
93 debug_nothing_rtx_insn.
94
95 2014-08-21 David Malcolm <dmalcolm@redhat.com>
96
97 * recog.h (insn_output_fn): Update this function typedef to match
98 the changes below to the generated output functions, strengthening
99 the 2nd param from rtx to rtx_insn *.
100
101 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
102 insn when invoking an output function, to match the new signature
103 of insn_output_fn with a stronger second param.
104
105 * genconditions.c (write_header): In the generated code for
106 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
107 to match the other changes in this patch.
108
109 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
110 the generated "gen_" functions from rtx to rtx_insn * within their
111 implementations.
112
113 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
114 the subfunctions within the generated "recog_", "split", "peephole2"
115 function trees from rtx to rtx_insn *. For now, the top-level
116 generated functions ("recog", "split", "peephole2") continue to
117 take a plain rtx for "insn", to avoid introducing dependencies on
118 other patches. Rename this 2nd param from "insn" to
119 "uncast_insn", and reintroduce "insn" as a local variable of type
120 rtx_insn *, initialized at the top of the generated function with
121 a checked cast on "uncast_insn".
122 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
123 the generated "gen_" functions from rtx to rtx_insn * within their
124 prototypes.
125
126 * genoutput.c (process_template): Strengthen the 2nd param within
127 the generated "output_" functions "insn" from rtx to rtx_insn *.
128
129 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
130
131 * tree-profile.c (tree_profiling): Skip external functions
132 when doing coverage instrumentation.
133 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
134
135 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
136
137 * config/rs6000/altivec.h (vec_cpsgn): New #define.
138 (vec_mergee): Likewise.
139 (vec_mergeo): Likewise.
140 (vec_cntlz): Likewise.
141 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
142 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
143 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
144 VMRGEW, and VMRGOW.
145 * doc/extend.texi: Document various forms of vec_cpsgn,
146 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
147 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
148 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
149 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
150 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
151
152 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
153
154 * config/rs6000/rs6000.c (context.h): New include.
155 (tree-pass.h): Likewise.
156 (make_pass_analyze_swaps): New decl.
157 (rs6000_option_override): Register pass_analyze_swaps.
158 (swap_web_entry): New subsclass of web_entry_base (df.h).
159 (special_handling_values): New enum.
160 (union_defs): New function.
161 (union_uses): Likewise.
162 (insn_is_load_p): Likewise.
163 (insn_is_store_p): Likewise.
164 (insn_is_swap_p): Likewise.
165 (rtx_is_swappable_p): Likewise.
166 (insn_is_swappable_p): Likewise.
167 (chain_purpose): New enum.
168 (chain_contains_only_swaps): New function.
169 (mark_swaps_for_removal): Likewise.
170 (swap_const_vector_halves): Likewise.
171 (adjust_subreg_index): Likewise.
172 (permute_load): Likewise.
173 (permute_store): Likewise.
174 (handle_special_swappables): Likewise.
175 (replace_swap_with_copy): Likewise.
176 (dump_swap_insn_table): Likewise.
177 (rs6000_analyze_swaps): Likewise.
178 (pass_data_analyze_swaps): New pass_data.
179 (pass_analyze_swaps): New rtl_opt_pass.
180 (make_pass_analyze_swaps): New function.
181 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
182
183 2014-08-21 David Malcolm <dmalcolm@redhat.com>
184
185 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
186 type from rtx to rtx_insn *.
187 (create_copy_of_insn_rtx): Likewise.
188 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
189 (create_copy_of_insn_rtx): Likewise, also for local "res".
190
191 2014-08-21 David Malcolm <dmalcolm@redhat.com>
192
193 * rtl.h (find_first_parameter_load): Strengthen return type from
194 rtx to rtx_insn *.
195 * rtlanal.c (find_first_parameter_load): Strengthen return type
196 from rtx to rtx_insn *. Add checked cast for now, to postpone
197 strengthening the params.
198
199 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
200
201 PR fortran/44054
202 * diagnostic.c: Set default caret.
203 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
204 line is needed.
205 * diagnostic.h (struct diagnostic_context):
206
207 2014-08-21 David Malcolm <dmalcolm@redhat.com>
208
209 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
210 (sel_bb_head): Strengthen return type insn_t (currently just an
211 rtx) to rtx_insn *.
212 (sel_bb_end): Likewise.
213
214 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
215 (sel_bb_head): Strengthen return type and local "head" from
216 insn_t (currently just an rtx) to rtx_insn *.
217 (sel_bb_end): Likewise for return type.
218 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
219 working with insn.
220
221 2014-08-21 David Malcolm <dmalcolm@redhat.com>
222
223 * basic-block.h (get_last_bb_insn): Strengthen return type from
224 rtx to rtx_insn *.
225 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
226 end".
227
228 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
229
230 PR fortran/44054
231 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
232 to here ...
233 (diagnostic_report_diagnostic): ... from here.
234 * toplev.c (general_init): Move code to c-family.
235
236 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
237
238 * df.h (web_entry_base): Replace existing struct web_entry with a
239 new class web_entry_base with only the predecessor member.
240 (unionfind_root): Remove declaration and move to class member.
241 (unionfind_union): Remove declaration and move to friend
242 function.
243 (union_defs): Remove declaration.
244 * web.c (web_entry_base::unionfind_root): Modify to be member
245 function and adjust accessors.
246 (unionfind_union): Modify to be friend function and adjust
247 accessors.
248 (web_entry): New subclass of web_entry_base containing the reg
249 member.
250 (union_match_dups): Modify for struct -> class changes.
251 (union_defs): Likewise.
252 (entry_register): Likewise.
253 (pass_web::execute): Likewise.
254
255 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
256
257 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
258 builtin define __VEC_ELEMENT_REG_ORDER__.
259
260 2014-08-20 Martin Jambor <mjambor@suse.cz>
261 Wei Mi <wmi@google.com>
262
263 PR ipa/60449
264 PR middle-end/61776
265 * tree-ssa-operands.c (update_stmt_operands): Remove
266 MODIFIED_NORETURN_CALLS.
267 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
268 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
269 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
270 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
271 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
272 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
273 (gimple_call_set_ctrl_altering): New func.
274 (gimple_call_ctrl_altering_p): Ditto.
275 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
276 (make_blocks): Use gimple_call_initialize_ctrl_altering.
277 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
278 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
279 remove MODIFIED_NORETURN_CALLS.
280
281 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
282
283 * coverage.c (coverage_compute_profile_id): Return non-0;
284 also handle symbols with unique name.
285 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
286
287 2014-08-20 Steve Ellcey <sellcey@mips.com>
288
289 PR middle-end/49191
290 * doc/sourcebuild.texi (non_strict_align): New.
291
292 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
293
294 * cgraphunit.c (ipa_passes, compile): Reshedule
295 symtab_remove_unreachable_nodes passes; update comments.
296 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
297 TODO_remove_functions before the pass; the functions ought to be
298 already removed.
299 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
300 TODO_remove_functions.
301 * passes.c (pass_data_early_local_passes): Do not schedule function
302 removal.
303 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
304
305 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
306
307 PR c/59304
308 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
309 before setting the option.
310 * diagnostic.c (diagnostic_classify_diagnostic): Record
311 command-line status.
312
313 2014-08-20 Richard Biener <rguenther@suse.de>
314
315 PR lto/62190
316 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
317 to build uint{16,32,64}_type_node.
318
319 2014-08-20 Terry Guo <terry.guo@arm.com>
320
321 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
322 with immediate_operand.
323
324 2014-08-20 David Malcolm <dmalcolm@redhat.com>
325
326 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
327 "insn" from an as_a to a safe_as_a, for the case when "insn" is
328 NULL.
329
330 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
331
332 PR preprocessor/51303
333 * incpath.c (remove_duplicates): Use cpp_warning.
334
335 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
336
337 PR c/60975
338 PR c/53063
339 * doc/options.texi (CPP): Document it.
340 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
341 * optc-gen.awk: Handle CPP.
342 * opth-gen.awk: Likewise.
343
344 2014-08-19 David Malcolm <dmalcolm@redhat.com>
345
346 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
347 rtx_insn *.
348 (duplicate_insn_chain): Likewise.
349 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
350 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
351 checked cast for now (until we can strengthen the params in the
352 same way).
353 (duplicate_insn_chain): Likewise.
354
355 2014-08-19 David Malcolm <dmalcolm@redhat.com>
356
357 * rtl.h (next_cc0_user): Strengthen return type from rtx to
358 rtx_insn *.
359 (prev_cc0_setter): Likewise.
360
361 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
362 rtx_insn *, adding checked casts for now as necessary.
363 (prev_cc0_setter): Likewise.
364
365 2014-08-19 David Malcolm <dmalcolm@redhat.com>
366
367 * expr.h (emit_move_insn): Strengthen return type from rtx to
368 rtx_insn *.
369 (emit_move_insn_1): Likewise.
370 (emit_move_complex_push): Likewise.
371 (emit_move_complex_parts): Likewise.
372
373 * expr.c (emit_move_via_integer): Strengthen return type from rtx
374 to rtx_insn *. Replace use of NULL_RTX with NULL when working
375 with insns.
376 (emit_move_complex_push): Strengthen return type from rtx to
377 rtx_insn *.
378 (emit_move_complex): Likewise, also for local "ret".
379 (emit_move_ccmode): Likewise.
380 (emit_move_multi_word): Likewise for return type and locals
381 "last_insn", "seq".
382 (emit_move_insn_1): Likewise for return type and locals "result",
383 "ret".
384 (emit_move_insn): Likewise for return type and local "last_insn".
385 (compress_float_constant): Likewise.
386
387 2014-08-19 David Malcolm <dmalcolm@redhat.com>
388
389 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
390 from rtx to rtx_insn *.
391
392 * rtl.h (emit_insn_before): Likewise.
393 (emit_insn_before_noloc): Likewise.
394 (emit_insn_before_setloc): Likewise.
395 (emit_jump_insn_before): Likewise.
396 (emit_jump_insn_before_noloc): Likewise.
397 (emit_jump_insn_before_setloc): Likewise.
398 (emit_call_insn_before): Likewise.
399 (emit_call_insn_before_noloc): Likewise.
400 (emit_call_insn_before_setloc): Likewise.
401 (emit_debug_insn_before): Likewise.
402 (emit_debug_insn_before_noloc): Likewise.
403 (emit_debug_insn_before_setloc): Likewise.
404 (emit_label_before): Likewise.
405 (emit_insn_after): Likewise.
406 (emit_insn_after_noloc): Likewise.
407 (emit_insn_after_setloc): Likewise.
408 (emit_jump_insn_after): Likewise.
409 (emit_jump_insn_after_noloc): Likewise.
410 (emit_jump_insn_after_setloc): Likewise.
411 (emit_call_insn_after): Likewise.
412 (emit_call_insn_after_noloc): Likewise.
413 (emit_call_insn_after_setloc): Likewise.
414 (emit_debug_insn_after): Likewise.
415 (emit_debug_insn_after_noloc): Likewise.
416 (emit_debug_insn_after_setloc): Likewise.
417 (emit_label_after): Likewise.
418 (emit_insn): Likewise.
419 (emit_debug_insn): Likewise.
420 (emit_jump_insn): Likewise.
421 (emit_call_insn): Likewise.
422 (emit_label): Likewise.
423 (gen_clobber): Likewise.
424 (emit_clobber): Likewise.
425 (gen_use): Likewise.
426 (emit_use): Likewise.
427 (emit): Likewise.
428
429 (emit_barrier_before): Strengthen return type from rtx to
430 rtx_barrier *.
431 (emit_barrier_after): Likewise.
432 (emit_barrier): Likewise.
433
434 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
435 from rtx to rtx_insn *. Add checked casts for now when converting
436 "last" from rtx to rtx_insn *.
437 (emit_insn_before_noloc): Likewise for return type.
438 (emit_jump_insn_before_noloc): Likewise.
439 (emit_call_insn_before_noloc): Likewise.
440 (emit_debug_insn_before_noloc): Likewise.
441 (emit_barrier_before): Strengthen return type and local "insn"
442 from rtx to rtx_barrier *.
443 (emit_label_before): Strengthen return type from rtx to
444 rtx_insn *. Add checked cast for now when returning param
445 (emit_pattern_after_noloc): Strengthen return type from rtx to
446 rtx_insn *. Add checked casts for now when converting "last" from
447 rtx to rtx_insn *.
448 (emit_insn_after_noloc): Strengthen return type from rtx to
449 rtx_insn *.
450 (emit_jump_insn_after_noloc): Likewise.
451 (emit_call_insn_after_noloc): Likewise.
452 (emit_debug_insn_after_noloc): Likewise.
453 (emit_barrier_after): Strengthen return type from rtx to
454 rtx_barrier *.
455 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
456 Add checked cast for now when converting "label" from rtx to
457 rtx_insn *.
458 (emit_pattern_after_setloc): Strengthen return type from rtx to
459 rtx_insn *. Add checked casts for now when converting "last" from
460 rtx to rtx_insn *.
461 (emit_pattern_after): Strengthen return type from rtx to
462 rtx_insn *.
463 (emit_insn_after_setloc): Likewise.
464 (emit_insn_after): Likewise.
465 (emit_jump_insn_after_setloc): Likewise.
466 (emit_jump_insn_after): Likewise.
467 (emit_call_insn_after_setloc): Likewise.
468 (emit_call_insn_after): Likewise.
469 (emit_debug_insn_after_setloc): Likewise.
470 (emit_debug_insn_after): Likewise.
471 (emit_pattern_before_setloc): Likewise. Add checked casts for now
472 when converting "last" from rtx to rtx_insn *.
473 (emit_pattern_before): Strengthen return type from rtx to
474 rtx_insn *.
475 (emit_insn_before_setloc): Likewise.
476 (emit_insn_before): Likewise.
477 (emit_jump_insn_before_setloc): Likewise.
478 (emit_jump_insn_before): Likewise.
479 (emit_call_insn_before_setloc): Likewise.
480 (emit_call_insn_before): Likewise.
481 (emit_debug_insn_before_setloc): Likewise.
482 (emit_debug_insn_before): Likewise.
483 (emit_insn): Strengthen return type and locals "last", "insn",
484 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
485 within cases where we know we have an insn.
486 (emit_debug_insn): Likewise.
487 (emit_jump_insn): Likewise.
488 (emit_call_insn): Strengthen return type and local "insn" from rtx
489 to rtx_insn *.
490 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
491 a checked cast to rtx_insn * for now on "label".
492 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
493 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
494 (emit_use): Likewise.
495 (gen_use): Likewise, also for local "seq".
496 (emit): Likewise for return type and local "insn".
497 (rtx_insn): Likewise for return type and local "new_rtx".
498
499 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
500 from rtx to rtx_barrier *.
501
502 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
503 changed return type from rtx to rtx_insn *, we must update
504 "emit_fn" type, and this in turn means updating...
505 (frame_insn): ...this. Strengthen return type from rtx to
506 rtx_insn *. Introduce a new local "insn" of the appropriate type.
507
508 2014-08-19 David Malcolm <dmalcolm@redhat.com>
509
510 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
511 rtx to rtx_jump_table_data *. Also for local.
512 * rtl.h (emit_jump_table_data): Likewise.
513
514 2014-08-19 David Malcolm <dmalcolm@redhat.com>
515
516 * basic-block.h (create_basic_block_structure): Strengthen third
517 param "bb_note" from rtx to rtx_note *.
518 * rtl.h (emit_note_before): Strengthen return type from rtx to
519 rtx_note *.
520 (emit_note_after): Likewise.
521 (emit_note): Likewise.
522 (emit_note_copy): Likewise. Also, strengthen param similarly.
523 * function.h (struct rtl_data): Strengthen field
524 "x_stack_check_probe_note" from rtx to rtx_note *.
525
526 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
527 from rtx to rtx_note *.
528 * cfgrtl.c (create_basic_block_structure): Strengthen third param
529 "bb_note" from rtx to rtx_note *.
530 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
531 when calling emit_note_copy.
532 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
533 rtx_note *.
534 (emit_note_after): Likewise.
535 (emit_note_before): Likewise.
536 (emit_note_copy): Likewise. Also, strengthen param similarly.
537 (emit_note): Likewise.
538 * except.c (emit_note_eh_region_end): Likewise for return type.
539 Strengthen local "next" from rtx to rtx_insn *.
540 (convert_to_eh_region_ranges): Strengthen local "note"
541 from rtx to rtx_note *.
542 * final.c (change_scope): Likewise.
543 (reemit_insn_block_notes): Likewise, for both locals named "note".
544 Also, strengthen local "insn" from rtx to rtx_insn *.
545 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
546 rtx to rtx_note *.
547 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
548 strengthen local "seq" from rtx to rtx_insn *.
549 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
550 to rtx_note *.
551 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
552 vec<rtx_note *>.
553 (get_bb_note_from_pool): Strengthen return type from rtx to
554 rtx_note *.
555 (sel_create_basic_block): Strengthen local "new_bb_note" from
556 insn_t to rtx_note *.
557 * var-tracking.c (emit_note_insn_var_location): Strengthen local
558 "note" from rtx to rtx_note *.
559 (emit_notes_in_bb): Likewise.
560
561 2014-08-19 David Malcolm <dmalcolm@redhat.com>
562
563 * function.h (struct rtl_data): Strengthen field
564 "x_parm_birth_insn" from rtx to rtx_insn *.
565 * function.c (struct assign_parm_data_all): Strengthen fields
566 "first_conversion_insn" and "last_conversion_insn" from rtx to
567 rtx_insn *.
568
569 2014-08-19 David Malcolm <dmalcolm@redhat.com>
570
571 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
572 to rtx_insn *; also for local "var_end_seq".
573 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
574 (maybe_cleanup_end_of_block): Likewise for param "last" and local
575 "insn".
576 (expand_gimple_cond): Likewise for locals "last2" and "last".
577 (mark_transaction_restart_calls): Likewise for local "insn".
578 (expand_gimple_stmt): Likewise for return type and locals "last"
579 and "insn".
580 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
581 (avoid_complex_debug_insns): Likewise for param "insn".
582 (expand_debug_locations): Likewise for locals "insn", "last",
583 "prev_insn" and "insn2".
584 (expand_gimple_basic_block): Likewise for local "last".
585 (construct_exit_block): Likewise for locals "head", "end",
586 "orig_end".
587 (pass_expand::execute): Likewise for locals "var_seq",
588 "var_ret_seq", "next".
589
590 2014-08-19 David Malcolm <dmalcolm@redhat.com>
591
592 * asan.h (asan_emit_stack_protection): Strengthen return type from
593 rtx to rtx_insn *.
594 * asan.c (asan_emit_stack_protection): Likewise. Add local
595 "insns" to hold the return value.
596
597 2014-08-19 David Malcolm <dmalcolm@redhat.com>
598
599 * basic-block.h (bb_note): Strengthen return type from rtx to
600 rtx_note *.
601 * sched-int.h (bb_note): Likewise.
602 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
603
604 2014-08-19 David Malcolm <dmalcolm@redhat.com>
605
606 * rtl.h (make_insn_raw): Strengthen return type from rtx to
607 rtx_insn *.
608
609 * emit-rtl.c (make_insn_raw): Strengthen return type and local
610 "insn" from rtx to rtx_insn *.
611 (make_debug_insn_raw): Strengthen return type from rtx to
612 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
613 (make_jump_insn_raw): Strengthen return type from rtx to
614 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
615 (make_call_insn_raw): Strengthen return type from rtx to
616 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
617 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
618 callback from rtx to rtx_insn *; likewise for local "insn" and
619 "next", adding a checked cast to rtx_insn in the relevant cases of
620 the switch statement.
621 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
622 callback from rtx to rtx_insn *.
623 (emit_pattern_after_setloc): Likewise.
624 (emit_pattern_after): Likewise.
625 (emit_pattern_before_setloc): Likewise.
626 (emit_pattern_before): Likewise.
627
628 2014-08-19 David Malcolm <dmalcolm@redhat.com>
629
630 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
631 rtx_call_insn *.
632 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
633 accepting an rtx_insn *.
634 (last_call_insn): Strengthen return type from rtx to
635 rtx_call_insn *.
636
637 2014-08-19 David Malcolm <dmalcolm@redhat.com>
638
639 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
640 "insns" from rtx to rtx_insn *.
641 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
642 locals "insn" and "prev".
643
644 2014-08-19 David Malcolm <dmalcolm@redhat.com>
645
646 * rtl.h (tablejump_p): Strengthen third param from rtx * to
647 rtx_jump_table_data **.
648
649 * cfgbuild.c (make_edges): Introduce local "table", using it in
650 place of "tmp" for jump table data.
651 (find_bb_boundaries): Strengthen local "table" from rtx to
652 rtx_jump_table_data *.
653 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
654 (outgoing_edges_match): Likewise for locals "table1" and "table2".
655 (try_crossjump_to_edge): Likewise.
656 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
657 "table".
658 (patch_jump_insn): Introduce local "table", using it in place of
659 "tmp" for jump table data.
660 (force_nonfallthru_and_redirect): Introduce local "table", so that
661 call to tablejump_p can receive an rtx_jump_table_data **. Update
662 logic around the call to overwrite "note" appropriately if
663 tablejump_p returns non-zero.
664 (get_last_bb_insn): Introduce local "table", using it in place of
665 "tmp" for jump table data.
666 * dwarf2cfi.c (create_trace_edges): Likewise.
667
668 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
669 from rtx to rtx_jump_table_data *.
670 (create_fix_barrier): Strengthen local "tmp" from rtx to
671 rtx_jump_table_data *.
672 (arm_reorg): Likewise for local "table".
673
674 * config/s390/s390.c (s390_chunkify_start): Likewise.
675
676 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
677
678 * jump.c (delete_related_insns): Strengthen local "lab_next" from
679 rtx to rtx_jump_table_data *.
680
681 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
682 rtx_jump_table_data **. Add a checked cast when writing through
683 the pointer: we know there that local "table" is non-NULL and that
684 JUMP_TABLE_DATA_P (table) holds.
685 (label_is_jump_target_p): Introduce local "table", using it in
686 place of "tmp" for jump table data.
687
688 2014-08-19 Marek Polacek <polacek@redhat.com>
689
690 PR c++/62153
691 * doc/invoke.texi: Document -Wbool-compare.
692
693 2014-08-19 David Malcolm <dmalcolm@redhat.com>
694
695 * rtl.h (entry_of_function): Strengthen return type from rtx to
696 rtx_insn *.
697 * cfgrtl.c (entry_of_function): Likewise.
698
699 2014-08-19 David Malcolm <dmalcolm@redhat.com>
700
701 * emit-rtl.h (get_insns): Strengthen return type from rtx to
702 rtx_insn *, adding a checked cast for now.
703 (get_last_insn): Likewise.
704
705 2014-08-19 David Malcolm <dmalcolm@redhat.com>
706
707 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
708 rtx_code_label *.
709
710 * emit-rtl.c (gen_label_rtx): Likewise.
711
712 2014-08-19 David Malcolm <dmalcolm@redhat.com>
713
714 * rtl.h (previous_insn): Strengthen return type from rtx to
715 rtx_insn *.
716 (next_insn): Likewise.
717 (prev_nonnote_insn): Likewise.
718 (prev_nonnote_insn_bb): Likewise.
719 (next_nonnote_insn): Likewise.
720 (next_nonnote_insn_bb): Likewise.
721 (prev_nondebug_insn): Likewise.
722 (next_nondebug_insn): Likewise.
723 (prev_nonnote_nondebug_insn): Likewise.
724 (next_nonnote_nondebug_insn): Likewise.
725 (prev_real_insn): Likewise.
726 (next_real_insn): Likewise.
727 (prev_active_insn): Likewise.
728 (next_active_insn): Likewise.
729
730 * emit-rtl.c (next_insn): Strengthen return type from rtx to
731 rtx_insn *, adding a checked cast.
732 (previous_insn): Likewise.
733 (next_nonnote_insn): Likewise.
734 (next_nonnote_insn_bb): Likewise.
735 (prev_nonnote_insn): Likewise.
736 (prev_nonnote_insn_bb): Likewise.
737 (next_nondebug_insn): Likewise.
738 (prev_nondebug_insn): Likewise.
739 (next_nonnote_nondebug_insn): Likewise.
740 (prev_nonnote_nondebug_insn): Likewise.
741 (next_real_insn): Likewise.
742 (prev_real_insn): Likewise.
743 (next_active_insn): Likewise.
744 (prev_active_insn): Likewise.
745
746 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
747 param "stepfunc" so that it returns an rtx_insn * rather than an
748 rtx, to track the change to prev_nonnote_insn_bb, which is the
749 only function this is called with.
750 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
751
752 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
753
754 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
755 assert.
756
757 2014-08-19 David Malcolm <dmalcolm@redhat.com>
758
759 * coretypes.h (class rtx_debug_insn): Add forward declaration.
760 (class rtx_nonjump_insn): Likewise.
761 (class rtx_jump_insn): Likewise.
762 (class rtx_call_insn): Likewise.
763 (class rtx_jump_table_data): Likewise.
764 (class rtx_barrier): Likewise.
765 (class rtx_code_label): Likewise.
766 (class rtx_note): Likewise.
767
768 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
769 adding the invariant DEBUG_INSN_P (X).
770 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
771 the invariant NONJUMP_INSN_P (X).
772 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
773 the invariant JUMP_P (X).
774 (class rtx_call_insn): New, a subclass of rtx_insn, adding
775 the invariant CALL_P (X).
776 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
777 invariant JUMP_TABLE_DATA_P (X).
778 (class rtx_barrier): New, a subclass of rtx_insn, adding the
779 invariant BARRIER_P (X).
780 (class rtx_code_label): New, a subclass of rtx_insn, adding
781 the invariant LABEL_P (X).
782 (class rtx_note): New, a subclass of rtx_insn, adding
783 the invariant NOTE_P(X).
784 (is_a_helper <rtx_debug_insn *>::test): New.
785 (is_a_helper <rtx_nonjump_insn *>::test): New.
786 (is_a_helper <rtx_jump_insn *>::test): New.
787 (is_a_helper <rtx_call_insn *>::test): New.
788 (is_a_helper <rtx_jump_table_data *>::test): New functions,
789 overloaded for both rtx and rtx_insn *.
790 (is_a_helper <rtx_barrier *>::test): New.
791 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
792 for both rtx and rtx_insn *.
793 (is_a_helper <rtx_note *>::test): New.
794
795 2014-08-19 Marek Polacek <polacek@redhat.com>
796
797 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
798 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
799 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
800 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
801
802 2014-08-19 David Malcolm <dmalcolm@redhat.com>
803
804 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
805 rtx_insn *. To help with transition, for now, convert from an
806 access macro into a pair of functions: BND_TO, returning an
807 rtx_insn *, and...
808 (SET_BND_TO): New function, for use where BND_TO is used as an
809 lvalue.
810
811 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
812 SET_BND_TO.
813 (BND_TO): New function, adding a checked cast.
814 (SET_BND_TO): New function.
815
816 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
817 SET_BND_TO.
818 (compute_av_set_on_boundaries): Likewise.
819
820 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
821
822 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
823 destination if it is used in source.
824 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
825 (*popcount<mode>2_falsedep_1): Likewise.
826
827 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
828
829 PR other/62168
830 * configure.ac: Set install_gold_as_default to no first.
831 * configure: Regenerated.
832
833 2014-08-19 David Malcolm <dmalcolm@redhat.com>
834
835 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
836 "note_list" field will eventually be an rtx_insn *. To help with
837 transition, for now, convert from an access macro into a pair of
838 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
839 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
840 used as an lvalue.
841
842 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
843 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
844
845 * sel-sched-ir.c (init_bb): Likewise.
846 (sel_restore_notes): Likewise.
847 (move_bb_info): Likewise.
848 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
849 (SET_BB_NOTE_LIST): New function.
850
851 2014-08-19 David Malcolm <dmalcolm@redhat.com>
852
853 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
854 field will eventually be an rtx_insn *. To help with transition,
855 for now, convert from an access macro into a pair of functions:
856 VINSN_INSN_RTX, returning an rtx_insn *, and...
857 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
858 is used as an lvalue.
859
860 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
861 SET_VINSN_INSN_RTX where it's used as an lvalue.
862 (VINSN_INSN_RTX): New function.
863 (SET_VINSN_INSN_RTX): New function.
864
865 2014-08-19 David Malcolm <dmalcolm@redhat.com>
866
867 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
868 eventually be rtx_insn *, but to help with transition, for now,
869 convert from an access macro into a pair of functions: DEP_PRO
870 returning an rtx_insn * and...
871 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
872 lvalue, returning an rtx&.
873 (DEP_CON): Analogous changes to DEP_PRO above.
874 (SET_DEP_CON): Likewise.
875
876 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
877 an lvalue to SET_DEP_CON.
878 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
879 (sd_copy_back_deps): Likewise for DEP_CON.
880 (DEP_PRO): New function, adding a checked cast for now.
881 (DEP_CON): Likewise.
882 (SET_DEP_PRO): New function.
883 (SET_DEP_CON): Likewise.
884
885 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
886
887 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
888 (extra_options): Add i386/cygwin.opt.
889 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
890 (CPP_SPEC): Accept -pthread.
891 (LINK_SPEC): Ditto.
892 (GOMP_SELF_SPECS): Update comment.
893 * config/i386/cygwin.opt: New file for -pthread flag.
894
895 2014-08-19 David Malcolm <dmalcolm@redhat.com>
896
897 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
898 * df.h (DF_REF_INSN): Convert from a macro to a function, so
899 that we can return an rtx_insn *.
900
901 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
902
903 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
904 when building executables, not DLLs. Add --large-address-aware
905 under the same conditions.
906 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
907 when building executables, not DLLs. Add --large-address-aware
908 under the same conditions when using -m32.
909
910 * config/i386/cygwin-stdint.h: Throughout, make type
911 definitions dependent on target architecture, not host.
912
913 2014-08-19 David Malcolm <dmalcolm@redhat.com>
914
915 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
916 the return type from rtx to rtx_insn *, which will enable various
917 conversions in followup patches. For now this is is done by a
918 checked cast.
919 (NEXT_INSN): Likewise.
920 (SET_PREV_INSN): Convert to an inline function. This is intended
921 for use as an lvalue, and so returns an rtx& to allow in-place
922 modification.
923 (SET_NEXT_INSN): Likewise.
924
925 2014-07-08 Mark Wielaard <mjw@redhat.com>
926
927 PR debug/59051
928 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
929
930 2014-08-19 Marek Polacek <polacek@redhat.com>
931
932 PR c/61271
933 * cgraphunit.c (handle_alias_pairs): Fix condition.
934
935 2014-08-19 Richard Biener <rguenther@suse.de>
936
937 * gimple-fold.c (fold_gimple_assign): Properly build a
938 null-pointer constant when devirtualizing addresses.
939
940 2014-07-07 Mark Wielaard <mjw@redhat.com>
941
942 * dwarf2out.c (decl_quals): New function.
943 (modified_type_die): Take one cv_quals argument instead of two,
944 one for const and one for volatile.
945 (add_type_attribute): Likewise.
946 (generic_parameter_die): Call add_type_attribute with one modifier
947 argument.
948 (base_type_for_mode): Likewise.
949 (add_bounds_info): Likewise.
950 (add_subscript_info): Likewise.
951 (gen_array_type_die): Likewise.
952 (gen_descr_array_type_die): Likewise.
953 (gen_entry_point_die): Likewise.
954 (gen_enumeration_type_die): Likewise.
955 (gen_formal_parameter_die): Likewise.
956 (gen_subprogram_die): Likewise.
957 (gen_variable_die): Likewise.
958 (gen_const_die): Likewise.
959 (gen_field_die): Likewise.
960 (gen_pointer_type_die): Likewise.
961 (gen_reference_type_die): Likewise.
962 (gen_ptr_to_mbr_type_die): Likewise.
963 (gen_inheritance_die): Likewise.
964 (gen_subroutine_type_die): Likewise.
965 (gen_typedef_die): Likewise.
966 (force_type_die): Likewise.
967
968 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
969
970 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
971 if unset.
972 * configure: Regenerate.
973
974 2014-08-19 Richard Biener <rguenther@suse.de>
975
976 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
977 DECL_EXTERNALs in BLOCKs as non-references.
978 * tree-streamer-out.c (streamer_write_chain): Likewise.
979
980 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
981 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
982 Anna Tikhonova <anna.tikhonova@intel.com>
983 Ilya Tocar <ilya.tocar@intel.com>
984 Andrey Turetskiy <andrey.turetskiy@intel.com>
985 Ilya Verbin <ilya.verbin@intel.com>
986 Kirill Yukhin <kirill.yukhin@intel.com>
987 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
988
989 * config/i386/sse.md
990 (define_mode_iterator VI48_AVX512F): Delete.
991 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
992 (define_mode_iterator VI2_AVX512VL): Ditto.
993 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
994 Delete.
995 (define_insn
996 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
997 New.
998 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
999 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
1000 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1001 with VI48_AVX512F_AVX512VL): New.
1002 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1003 with VI2_AVX512VL): Ditto.
1004
1005 2014-08-19 Marek Polacek <polacek@redhat.com>
1006
1007 * doc/invoke.texi: Document -Wc99-c11-compat.
1008
1009 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1010
1011 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1012 for rvalues, and...
1013 (SET_PREV_INSN): New macro, for use as an lvalue.
1014 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1015
1016 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1017 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1018 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1019 (fixup_abnormal_edges): Likewise.
1020 (unlink_insn_chain): Likewise.
1021 (fixup_reorder_chain): Likewise.
1022 (cfg_layout_delete_block): Likewise.
1023 (cfg_layout_merge_blocks): Likewise.
1024 * combine.c (update_cfg_for_uncondjump): Likewise.
1025 * emit-rtl.c (link_insn_into_chain): Likewise.
1026 (remove_insn): Likewise.
1027 (delete_insns_since): Likewise.
1028 (reorder_insns_nobb): Likewise.
1029 (emit_insn_after_1): Likewise.
1030 * final.c (rest_of_clean_state): Likewise.
1031 (final_scan_insn): Likewise.
1032 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1033 * haifa-sched.c (concat_note_lists): Likewise.
1034 (remove_notes): Likewise.
1035 (restore_other_notes): Likewise.
1036 (move_insn): Likewise.
1037 (unlink_bb_notes): Likewise.
1038 (restore_bb_notes): Likewise.
1039 * jump.c (delete_for_peephole): Likewise.
1040 * optabs.c (emit_libcall_block_1): Likewise.
1041 * reorg.c (emit_delay_sequence): Likewise.
1042 (fill_simple_delay_slots): Likewise.
1043 * sel-sched-ir.c (sel_move_insn): Likewise.
1044 (sel_remove_insn): Likewise.
1045 (get_bb_note_from_pool): Likewise.
1046 * sel-sched.c (move_nop_to_previous_block): Likewise.
1047
1048 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1049 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1050 (c6x_gen_bundles): Likewise.
1051 (hwloop_optimize): Likewise.
1052 * config/frv/frv.c (frv_function_prologue): Likewise.
1053 (frv_register_nop): Likewise.
1054 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1055 (ia64_reorg): Likewise.
1056 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1057 (mep_make_bundle): Likewise.
1058 (mep_bundle_insns): Likewise.
1059 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1060 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1061 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1062
1063 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1064
1065 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1066 return type from rtx to rtx_insn *.
1067 (BB_END): Likewise.
1068 (BB_HEADER): Likewise.
1069 (BB_FOOTER): Likewise.
1070 (SET_BB_HEAD): Convert to a function.
1071 (SET_BB_END): Likewise.
1072 (SET_BB_HEADER): Likewise.
1073 (SET_BB_FOOTER): Likewise.
1074
1075 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1076 Strengthen the return type from rtx to rtx_insn *. For now, this
1077 is done by adding a checked cast, but this will eventually
1078 become a field lookup.
1079 (BB_END): Likewise.
1080 (BB_HEADER): Likewise.
1081 (BB_FOOTER): Likewise.
1082 (SET_BB_HEAD): New function, from macro of same name. This is
1083 intended for use as an lvalue, and so returns an rtx& to allow
1084 in-place modification.
1085 (SET_BB_END): Likewise.
1086 (SET_BB_HEADER): Likewise.
1087 (SET_BB_FOOTER): Likewise.
1088
1089 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1090
1091 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1092 for rvalues, and...
1093 (SET_BB_HEAD): New macro, for use as a lvalue.
1094 (BB_END, SET_BB_END): Likewise.
1095 (BB_HEADER, SET_BB_HEADER): Likewise.
1096 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1097
1098 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1099 of BB_* macros into SET_BB_* macros.
1100 (fix_crossing_unconditional_branches): Likewise.
1101 * caller-save.c (save_call_clobbered_regs): Likewise.
1102 (insert_one_insn): Likewise.
1103 * cfgbuild.c (find_bb_boundaries): Likewise.
1104 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1105 (outgoing_edges_match): Likewise.
1106 (try_optimize_cfg): Likewise.
1107 * cfgexpand.c (expand_gimple_cond): Likewise.
1108 (expand_gimple_tailcall): Likewise.
1109 (expand_gimple_basic_block): Likewise.
1110 (construct_exit_block): Likewise.
1111 * cfgrtl.c (delete_insn): Likewise.
1112 (create_basic_block_structure): Likewise.
1113 (rtl_delete_block): Likewise.
1114 (rtl_split_block): Likewise.
1115 (emit_nop_for_unique_locus_between): Likewise.
1116 (rtl_merge_blocks): Likewise.
1117 (block_label): Likewise.
1118 (try_redirect_by_replacing_jump): Likewise.
1119 (emit_barrier_after_bb): Likewise.
1120 (fixup_abnormal_edges): Likewise.
1121 (record_effective_endpoints): Likewise.
1122 (relink_block_chain): Likewise.
1123 (fixup_reorder_chain): Likewise.
1124 (fixup_fallthru_exit_predecessor): Likewise.
1125 (cfg_layout_duplicate_bb): Likewise.
1126 (cfg_layout_split_block): Likewise.
1127 (cfg_layout_delete_block): Likewise.
1128 (cfg_layout_merge_blocks): Likewise.
1129 * combine.c (update_cfg_for_uncondjump): Likewise.
1130 * emit-rtl.c (add_insn_after): Likewise.
1131 (remove_insn): Likewise.
1132 (reorder_insns): Likewise.
1133 (emit_insn_after_1): Likewise.
1134 * haifa-sched.c (get_ebb_head_tail): Likewise.
1135 (restore_other_notes): Likewise.
1136 (move_insn): Likewise.
1137 (sched_extend_bb): Likewise.
1138 (fix_jump_move): Likewise.
1139 * ifcvt.c (noce_process_if_block): Likewise.
1140 (dead_or_predicable): Likewise.
1141 * ira.c (update_equiv_regs): Likewise.
1142 * reg-stack.c (change_stack): Likewise.
1143 * sel-sched-ir.c (sel_move_insn): Likewise.
1144 * sel-sched.c (move_nop_to_previous_block): Likewise.
1145
1146 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1147 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1148
1149 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1150
1151 * rtl.h (for_each_rtx_in_insn): New function.
1152 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1153
1154 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1155
1156 * coretypes.h (class rtx_insn): Add forward declaration.
1157
1158 * rtl.h: Include is-a.h.
1159 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1160 workaround to ensure gengtype knows inheritance is occurring,
1161 whilst continuing to use the pre-existing special-casing for
1162 rtx_def.
1163 (class rtx_insn): New subclass of rtx_def, adding the
1164 invariant that we're dealing with something we can sanely use
1165 INSN_UID, NEXT_INSN, PREV_INSN on.
1166 (is_a_helper <rtx_insn *>::test): New.
1167 (is_a_helper <const rtx_insn *>::test): New.
1168
1169 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1170
1171 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1172
1173 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1174
1175 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1176 comdats as extern.
1177
1178 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1179
1180 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1181 to BUILT_IN_UNREACHABLE.
1182
1183 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1184
1185 PR target/62011
1186 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1187 New tune flag.
1188 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1189 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1190 (ffs<mode>2): Do not expand with tzcnt for
1191 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1192 (ffssi2_no_cmove): Ditto.
1193 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1194 (ctz<mode>2): New expander.
1195 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1196 (*ctz<mode>2_falsedep): New insn.
1197 (*ctz<mode>2): Rename from ctz<mode>2.
1198 (clz<mode>2_lzcnt): New expander.
1199 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1200 (*clz<mode>2_lzcnt_falsedep): New insn.
1201 (*clz<mode>2): Rename from ctz<mode>2.
1202 (popcount<mode>2): New expander.
1203 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1204 (*popcount<mode>2_falsedep): New insn.
1205 (*popcount<mode>2): Rename from ctz<mode>2.
1206 (*popcount<mode>2_cmp): Remove.
1207 (*popcountsi2_cmp_zext): Ditto.
1208
1209 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1210
1211 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1212 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1213 * config/microblaze/microblaze.h
1214 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1215
1216 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1217
1218 PR other/62168
1219 * configure.ac: Set install_gold_as_default to no for
1220 --enable-gold=no.
1221 * configure: Regenerated.
1222
1223 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1224
1225 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1226 * config.in: Add undef of HAVE_isl.
1227 * configure: Regenerate.
1228 * configure.ac: Add definition of HAVE_isl.
1229 * graphite-blocking.c: Add checking of HAVE_isl.
1230 * graphite-dependences.c: Likewise.
1231 * graphite-interchange.c: Likewise.
1232 * graphite-isl-ast-to-gimple.c: Likewise.
1233 * graphite-optimize-isl.c: Likewise.
1234 * graphite-poly.c: Likewise.
1235 * graphite-scop-detection.c: Likewise.
1236 * graphite-sese-to-poly.c: Likewise.
1237 * graphite.c: Likewise.
1238 * toplev.c: Replace the checking of HAVE_cloog with the checking
1239 of HAVE_isl.
1240
1241 2014-08-18 Richard Biener <rguenther@suse.de>
1242
1243 PR tree-optimization/62090
1244 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1245 (fold_builtin_3): Do not fold snprintf.
1246 (fold_builtin_4): Likewise.
1247 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1248 moved from builtins.c.
1249 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1250 (gimple_fold_builtin): Do not fold sprintf here.
1251
1252 2014-08-18 Richard Biener <rguenther@suse.de>
1253
1254 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1255 code to ...
1256 (maybe_canonicalize_mem_ref_addr): ... this function.
1257 (fold_stmt_1): Apply it here before all simplification.
1258
1259 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1260
1261 PR ipa/61800
1262 * cgraph.h (cgraph_node::create_indirect_edge): Add
1263 compute_indirect_info param.
1264 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1265 indirect_info only when it is required.
1266 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1267 indirect_info fore cloned indirect edge.
1268
1269 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1270 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1271 Anna Tikhonova <anna.tikhonova@intel.com>
1272 Ilya Tocar <ilya.tocar@intel.com>
1273 Andrey Turetskiy <andrey.turetskiy@intel.com>
1274 Ilya Verbin <ilya.verbin@intel.com>
1275 Kirill Yukhin <kirill.yukhin@intel.com>
1276 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1277
1278 * config/i386/sse.md
1279 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1280 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1281
1282 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1283 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1284 Anna Tikhonova <anna.tikhonova@intel.com>
1285 Ilya Tocar <ilya.tocar@intel.com>
1286 Andrey Turetskiy <andrey.turetskiy@intel.com>
1287 Ilya Verbin <ilya.verbin@intel.com>
1288 Kirill Yukhin <kirill.yukhin@intel.com>
1289 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1290
1291 * config/i386/sse.md
1292 (define_mode_iterator VF1_AVX512VL): New.
1293 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1294 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1295 New.
1296
1297 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1298 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1299 Anna Tikhonova <anna.tikhonova@intel.com>
1300 Ilya Tocar <ilya.tocar@intel.com>
1301 Andrey Turetskiy <andrey.turetskiy@intel.com>
1302 Ilya Verbin <ilya.verbin@intel.com>
1303 Kirill Yukhin <kirill.yukhin@intel.com>
1304 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1305
1306 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1307 * config/i386/i386.md
1308 (define_code_iterator any_float): New.
1309 (define_code_attr floatsuffix): New.
1310 * config/i386/sse.md
1311 (define_mode_iterator VF1_128_256VL): New.
1312 (define_mode_iterator VF2_512_256VL): New.
1313 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1314 TARGET check.
1315 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1316 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1317 New.
1318 (define_mode_attr qq2pssuff): New.
1319 (define_mode_attr sselongvecmode): New.
1320 (define_mode_attr sselongvecmodelower): New.
1321 (define_mode_attr sseintvecmode3): New.
1322 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1323 New.
1324 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1325 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1326 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1327 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1328
1329 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1330 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1331 Anna Tikhonova <anna.tikhonova@intel.com>
1332 Ilya Tocar <ilya.tocar@intel.com>
1333 Andrey Turetskiy <andrey.turetskiy@intel.com>
1334 Ilya Verbin <ilya.verbin@intel.com>
1335 Kirill Yukhin <kirill.yukhin@intel.com>
1336 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1337
1338 * config/i386/sse.md
1339 (define_mode_iterator VF2_AVX512VL): New.
1340 (define_mode_attr sseintvecmode2): New.
1341 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1342 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1343 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1344 (define_insn
1345 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1346 Ditto.
1347 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1348 Ditto.
1349 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1350 Ditto.
1351
1352 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1353 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1354 Anna Tikhonova <anna.tikhonova@intel.com>
1355 Ilya Tocar <ilya.tocar@intel.com>
1356 Andrey Turetskiy <andrey.turetskiy@intel.com>
1357 Ilya Verbin <ilya.verbin@intel.com>
1358 Kirill Yukhin <kirill.yukhin@intel.com>
1359 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1360
1361 * config/i386/i386.md
1362 (define_insn "*movoi_internal_avx"): Add evex version.
1363 (define_insn "*movti_internal"): Ditto.
1364
1365 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1366 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1367 Anna Tikhonova <anna.tikhonova@intel.com>
1368 Ilya Tocar <ilya.tocar@intel.com>
1369 Andrey Turetskiy <andrey.turetskiy@intel.com>
1370 Ilya Verbin <ilya.verbin@intel.com>
1371 Kirill Yukhin <kirill.yukhin@intel.com>
1372 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1373
1374 * config/i386/i386.md
1375 (define_attr "isa"): Add avx512dq, noavx512dq.
1376 (define_attr "enabled"): Ditto.
1377 * config/i386/sse.md
1378 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1379
1380 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1381 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1382 Anna Tikhonova <anna.tikhonova@intel.com>
1383 Ilya Tocar <ilya.tocar@intel.com>
1384 Andrey Turetskiy <andrey.turetskiy@intel.com>
1385 Ilya Verbin <ilya.verbin@intel.com>
1386 Kirill Yukhin <kirill.yukhin@intel.com>
1387 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1388
1389 * config/i386/i386.c
1390 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1391 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1392 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1393 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1394 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1395 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1396 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1397 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1398 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1399 * config/i386/sse.md
1400 (define_mode_iterator VMOVE): Allow V4TI mode.
1401 (define_mode_iterator V_AVX512VL): New.
1402 (define_mode_iterator V): New handling for AVX512VL.
1403 (define_insn "avx512f_load<mode>_mask"): Delete.
1404 (define_insn "<avx512>_load<mode>_mask"): New.
1405 (define_insn "avx512f_store<mode>_mask"): Delete.
1406 (define_insn "<avx512>_store<mode>_mask"): New.
1407
1408
1409 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1410
1411 PR sanitizer/62089
1412 * asan.c (instrument_derefs): Fix bitfield check.
1413
1414 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1415
1416 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1417 * config/rs6000/htm.md (ttest): Remove clobber.
1418 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1419 (and_operand): Reformat.
1420 (and_2rld_operand): New predicate.
1421 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1422 parameter.
1423 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1424 parameter. Handle AND directly.
1425 (rs6000_split_logical_di): Remove last parameter.
1426 (rs6000_split_logical): Remove last parameter. Remove obsolete
1427 comment.
1428 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1429 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1430 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1431 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1432 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1433 and 5 anonymous splitters): Delete.
1434 (and<mode>3): New expander.
1435 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1436 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1437 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1438 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1439 (floatdisf2_internal1): Remove clobbers.
1440 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1441 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1442 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1443 (and<mode>3 for BOOL_128): Remove clobber.
1444 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1445 rs6000_split_logical.
1446 (*bool<mode>3_internal for BOOL_128): Adjust call of
1447 rs6000_split_logical.
1448 (*boolc<mode>3_internal1 for BOOL_128,
1449 *boolc<mode>3_internal2 for BOOL_128,
1450 *boolcc<mode>3_internal1 for BOOL_128,
1451 *boolcc<mode>3_internal2 for BOOL_128,
1452 *eqv<mode>3_internal1 for BOOL_128,
1453 *eqv<mode>3_internal2 for BOOL_128,
1454 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1455 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1456 clobber.
1457 (*vec_reload_and_reg_<mptrsize>): Delete.
1458
1459 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1460
1461 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1462 and split, *boolccsi3_internal3 and split): Delete.
1463 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1464 *boolccdi3_internal3 and split): Delete.
1465 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1466 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1467
1468 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1469
1470 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1471 and split, *boolcsi3_internal3 and split): Delete.
1472 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1473 *boolcdi3_internal3 and split): Delete.
1474 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1475
1476 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1477
1478 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1479 <'u'>: Also support printing the low-order 16 bits.
1480 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1481 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1482 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1483 *booldi3_internal3 and split): Delete.
1484 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1485 *bool<mode>3_dot2): New.
1486 (two anonymous define_splits for non_logical_cint_operand): Merge.
1487
1488 2014-08-17 Marek Polacek <polacek@redhat.com>
1489 Manuel López-Ibáñez <manu@gcc.gnu.org>
1490
1491 PR c/62059
1492 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1493 (diagnostic_show_locus): Don't print caret diagnostic
1494 if a column is larger than the line_width.
1495
1496 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1497
1498 * common.opt: Make the ISL AST generator to be the main code generator
1499 of Graphite.
1500
1501 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1502
1503 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1504
1505 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1506
1507 PR target/61641
1508 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1509 Declare.
1510 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1511 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1512 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1513 Define.
1514 * config/pa/pa.md (begin_brtab): Delete insn.
1515 (end_brtab): Likewise.
1516
1517 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1518
1519 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1520
1521 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1522
1523 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1524 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1525 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1526 (get_dynamic_type): Remove.
1527 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1528 (clear_speculation): Bring to ipa-deivrt.h
1529 (get_class_context): Rename to ...
1530 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1531 (contains_type_p): Update.
1532 (get_dynamic_type): Rename to ...
1533 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1534 (possible_polymorphic_call_targets): UPdate.
1535 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1536 * ipa-prop.c (ipa_analyze_call_uses): Update.
1537
1538 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1539
1540 * doc/invoke.texi (SH options): Document missing processor variant
1541 options. Remove references to Hitachi. Undocument deprecated mspace
1542 option.
1543
1544 2014-08-15 Jason Merrill <jason@redhat.com>
1545
1546 * tree.c (type_hash_canon): Uncomment assert.
1547
1548 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1549
1550 * input.h (in_system_header_at): Add comment.
1551
1552 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1553
1554 PR fortran/44054
1555 * diagnostic.c (build_message_string): Make it extern.
1556 * diagnostic.h (build_message_string): Make it extern.
1557
1558 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1559
1560 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1561 load/store from/to non-floating class pseudo.
1562
1563 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1564
1565 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1566
1567 2014-08-15 Richard Biener <rguenther@suse.de>
1568
1569 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1570 (get_constraint_for_ssa_var): Remove dead code.
1571 (get_constraint_for_1): Adjust.
1572 (find_what_var_points_to): Likewise.
1573 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1574
1575 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1576
1577 PR target/61878
1578 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1579 (_mm512_mask_cmpge_epu32_mask): Ditto.
1580 (_mm512_cmpge_epu32_mask): Ditto.
1581 (_mm512_mask_cmpge_epi64_mask): Ditto.
1582 (_mm512_cmpge_epi64_mask): Ditto.
1583 (_mm512_mask_cmpge_epu64_mask): Ditto.
1584 (_mm512_cmpge_epu64_mask): Ditto.
1585 (_mm512_mask_cmple_epi32_mask): Ditto.
1586 (_mm512_cmple_epi32_mask): Ditto.
1587 (_mm512_mask_cmple_epu32_mask): Ditto.
1588 (_mm512_cmple_epu32_mask): Ditto.
1589 (_mm512_mask_cmple_epi64_mask): Ditto.
1590 (_mm512_cmple_epi64_mask): Ditto.
1591 (_mm512_mask_cmple_epu64_mask): Ditto.
1592 (_mm512_cmple_epu64_mask): Ditto.
1593 (_mm512_mask_cmplt_epi32_mask): Ditto.
1594 (_mm512_cmplt_epi32_mask): Ditto.
1595 (_mm512_mask_cmplt_epu32_mask): Ditto.
1596 (_mm512_cmplt_epu32_mask): Ditto.
1597 (_mm512_mask_cmplt_epi64_mask): Ditto.
1598 (_mm512_cmplt_epi64_mask): Ditto.
1599 (_mm512_mask_cmplt_epu64_mask): Ditto.
1600 (_mm512_cmplt_epu64_mask): Ditto.
1601 (_mm512_mask_cmpneq_epi32_mask): Ditto.
1602 (_mm512_mask_cmpneq_epu32_mask): Ditto.
1603 (_mm512_cmpneq_epu32_mask): Ditto.
1604 (_mm512_mask_cmpneq_epi64_mask): Ditto.
1605 (_mm512_cmpneq_epi64_mask): Ditto.
1606 (_mm512_mask_cmpneq_epu64_mask): Ditto.
1607 (_mm512_cmpneq_epu64_mask): Ditto.
1608 (_mm512_castpd_ps): Ditto.
1609 (_mm512_castpd_si512): Ditto.
1610 (_mm512_castps_pd): Ditto.
1611 (_mm512_castps_si512): Ditto.
1612 (_mm512_castsi512_ps): Ditto.
1613 (_mm512_castsi512_pd): Ditto.
1614 (_mm512_castpd512_pd128): Ditto.
1615 (_mm512_castps512_ps128): Ditto.
1616 (_mm512_castsi512_si128): Ditto.
1617 (_mm512_castpd512_pd256): Ditto.
1618 (_mm512_castps512_ps256): Ditto.
1619 (_mm512_castsi512_si256): Ditto.
1620 (_mm512_castpd128_pd512): Ditto.
1621 (_mm512_castps128_ps512): Ditto.
1622 (_mm512_castsi128_si512): Ditto.
1623 (_mm512_castpd256_pd512): Ditto.
1624 (_mm512_castps256_ps512): Ditto.
1625 (_mm512_castsi256_si512): Ditto.
1626 (_mm512_cmpeq_epu32_mask): Ditto.
1627 (_mm512_mask_cmpeq_epu32_mask): Ditto.
1628 (_mm512_mask_cmpeq_epu64_mask): Ditto.
1629 (_mm512_cmpeq_epu64_mask): Ditto.
1630 (_mm512_cmpgt_epu32_mask): Ditto.
1631 (_mm512_mask_cmpgt_epu32_mask): Ditto.
1632 (_mm512_mask_cmpgt_epu64_mask): Ditto.
1633 (_mm512_cmpgt_epu64_mask): Ditto.
1634 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
1635 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
1636 * config/i386/i386.c (enum ix86_builtins): Add
1637 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
1638 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
1639 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
1640 (bdesc_args): Add __builtin_ia32_si512_256si,
1641 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
1642 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
1643 __builtin_ia32_pd512_pd.
1644 (ix86_expand_args_builtin): Handle new FTYPEs.
1645 * config/i386/sse.md (castmode): Add 512-bit modes.
1646 (AVX512MODE2P): New.
1647 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
1648 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
1649
1650 2014-08-15 Richard Biener <rguenther@suse.de>
1651
1652 * fold-const.c (tree_swap_operands_p): Put all constants
1653 last, also strip sign-changing NOPs when considering further
1654 canonicalization. Canonicalize also when optimizing for size.
1655
1656 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1657
1658 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
1659 one_match > zero_match case to just before simple_sequence.
1660
1661 2014-08-15 Richard Biener <rguenther@suse.de>
1662
1663 * data-streamer.h (streamer_string_index, string_for_index):
1664 Remove.
1665 * data-streamer-out.c (streamer_string_index): Make static.
1666 * data-streamer-in.c (string_for_index): Likewise.
1667 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
1668 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
1669
1670 2014-08-15 Richard Biener <rguenther@suse.de>
1671
1672 PR tree-optimization/62031
1673 * tree-data-ref.c (dr_analyze_indices): Do not set
1674 DR_UNCONSTRAINED_BASE.
1675 (dr_may_alias_p): All indirect accesses have to go the
1676 formerly DR_UNCONSTRAINED_BASE path.
1677 * tree-data-ref.h (struct indices): Remove
1678 unconstrained_base member.
1679 (DR_UNCONSTRAINED_BASE): Remove.
1680
1681 2014-08-15 Jakub Jelinek <jakub@redhat.com>
1682
1683 PR middle-end/62092
1684 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1685 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1686 in OMP_CLAUSE_MAP in some outer target region.
1687
1688 2014-08-15 Bin Cheng <bin.cheng@arm.com>
1689
1690 * tree-ssa-loop-ivopts.c (ivopts_data): New field
1691 name_expansion_cache.
1692 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
1693 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
1694 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
1695 (difference_cannot_overflow_p): New parameter. Use affine
1696 expansion for equality check.
1697 (iv_elimination_compare_lt): Pass new argument.
1698
1699 2014-08-14 DJ Delorie <dj@redhat.com>
1700
1701 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
1702 variables to the accumulator.
1703
1704 * config/rl78/predicates.md (rl78_near_mem_operand): New.
1705 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
1706 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
1707 with far-far moves.
1708
1709 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
1710 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
1711 (umulqihi3_virt): Likewise.
1712 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
1713 (umulqihi3_real): Likewise.
1714
1715 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
1716
1717 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1718
1719 PR tree-optimization/62091
1720 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
1721 function_entry_reached.
1722 (walk_aliased_vdefs): Clear it here.
1723 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
1724
1725 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1726
1727 * ipa-utils.h (compare_virtual_tables): Declare.
1728 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
1729
1730 2014-08-14 Marek Polacek <polacek@redhat.com>
1731
1732 DR 458
1733 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
1734 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
1735
1736 2014-08-14 Tom de Vries <tom@codesourcery.com>
1737
1738 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
1739
1740 2014-08-14 Tom de Vries <tom@codesourcery.com>
1741
1742 PR rtl-optimization/62004
1743 PR rtl-optimization/62030
1744 * ifcvt.c (rtx_interchangeable_p): New function.
1745 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1746 * emit-rtl.h (mem_attrs_eq_p): Declare.
1747
1748 2014-08-14 Roman Gareev <gareevroman@gmail.com>
1749
1750 * graphite-scop-detection.c:
1751 Add inclusion of cp-tree.h.
1752 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
1753 in case they are pointers to object types
1754
1755 2014-08-14 Richard Biener <rguenther@suse.de>
1756
1757 * BASE-VER: Change to 5.0.0
1758
1759 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1760 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1761 Anna Tikhonova <anna.tikhonova@intel.com>
1762 Ilya Tocar <ilya.tocar@intel.com>
1763 Andrey Turetskiy <andrey.turetskiy@intel.com>
1764 Ilya Verbin <ilya.verbin@intel.com>
1765 Kirill Yukhin <kirill.yukhin@intel.com>
1766 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1767
1768 * config/i386/sse.md (define_mode_attr avx512): New.
1769 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
1770 V4DI modes.
1771 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
1772 (define_mode_attr ssse3_avx2): Ditto.
1773 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
1774 (define_mode_attr avx2_avx512bw): New.
1775 (define_mode_attr ssedoublemodelower): New.
1776 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
1777 V32HI, V64QI modes.
1778 (define_mode_attr ssebytemode): Allow V8DI modes.
1779 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
1780 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
1781 (define_mode_attr ssePSmode2): New.
1782 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
1783 V16HI, V32HI modes.
1784 (define_mode_attr dbpsadbwmode): New.
1785 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
1786 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
1787 (vi8_sse4_1_avx2_avx512): New.
1788 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
1789 mode attribute.
1790 (define_mode_attr blendbits): Move before its immediate use.
1791
1792 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1793 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1794 Anna Tikhonova <anna.tikhonova@intel.com>
1795 Ilya Tocar <ilya.tocar@intel.com>
1796 Andrey Turetskiy <andrey.turetskiy@intel.com>
1797 Ilya Verbin <ilya.verbin@intel.com>
1798 Kirill Yukhin <kirill.yukhin@intel.com>
1799 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1800
1801 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
1802 * config/i386/subst.md
1803 (define_mode_iterator SUBST_V): Update.
1804 (define_mode_iterator SUBST_A): Ditto.
1805 (define_subst_attr "mask_operand7"): New.
1806 (define_subst_attr "mask_operand10"): New.
1807 (define_subst_attr "mask_operand_arg34") : New.
1808 (define_subst_attr "mask_expand_op3"): New.
1809 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
1810 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
1811 (define_subst_attr "mask_avx512vl_condition"): New.
1812 (define_subst_attr "round_mask_operand4"): Ditto.
1813 (define_subst_attr "round_mask_scalar_op3"): Delete.
1814 (define_subst_attr "round_mask_op4"): New.
1815 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
1816 V16SImode.
1817 (define_subst_attr "round_modev8sf_condition"): New.
1818 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
1819 <MODE>mode.
1820 (define_subst_attr "round_saeonly_mask_operand4"): New.
1821 (define_subst_attr "round_saeonly_mask_op4"): New.
1822 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
1823 V8DImode, V16SImode.
1824 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
1825 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
1826 (define_subst_attr "mask_expand4_args"): New.
1827 (define_subst "mask_expand4"): New.
1828
1829 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1831 Anna Tikhonova <anna.tikhonova@intel.com>
1832 Ilya Tocar <ilya.tocar@intel.com>
1833 Andrey Turetskiy <andrey.turetskiy@intel.com>
1834 Ilya Verbin <ilya.verbin@intel.com>
1835 Kirill Yukhin <kirill.yukhin@intel.com>
1836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1837
1838 * config/i386/i386.md
1839 (define_attr "isa"): Add avx512bw,noavx512bw.
1840 (define_attr "enabled"): Ditto.
1841 (define_split): Add 32/64-bit mask logic.
1842 (define_insn "*k<logic>qi"): New.
1843 (define_insn "*k<logic>hi"): New.
1844 (define_insn "*anddi_1"): Add mask version.
1845 (define_insn "*andsi_1"): Ditto.
1846 (define_insn "*<code><mode>_1"): Ditto.
1847 (define_insn "*<code>hi_1"): Ditto.
1848 (define_insn "kxnor<mode>"): New.
1849 (define_insn "kunpcksi"): New.
1850 (define_insn "kunpckdi"): New.
1851 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
1852 (define_insn "*one_cmplhi2_1"): Ditto.
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/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
1864 V32HImode.
1865
1866 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1867 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1868 Anna Tikhonova <anna.tikhonova@intel.com>
1869 Ilya Tocar <ilya.tocar@intel.com>
1870 Andrey Turetskiy <andrey.turetskiy@intel.com>
1871 Ilya Verbin <ilya.verbin@intel.com>
1872 Kirill Yukhin <kirill.yukhin@intel.com>
1873 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1874
1875 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
1876 registers.
1877 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
1878 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
1879 xmm/ymm16+ when availble.
1880 * config/i386/i386.h
1881 (HARD_REGNO_NREGS): Add mask regs.
1882 (VALID_AVX512F_REG_MODE): Ditto.
1883 (VALID_AVX512F_REG_MODE) : Define.
1884 (VALID_MASK_AVX512BW_MODE): Ditto.
1885 (reg_class) (MASK_REG_P(X)): Define.
1886 * config/i386/i386.md: Do not split long moves with mask register,
1887 use kmovb if avx512bw is availible.
1888 (movdi_internal): Handle mask registers.
1889
1890 2014-08-14 Richard Biener <rguenther@suse.de>
1891
1892 PR tree-optimization/62081
1893 * tree-ssa-loop.c (pass_fix_loops): New pass.
1894 (pass_tree_loop::gate): Do not fixup loops here.
1895 * tree-pass.h (make_pass_fix_loops): Declare.
1896 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
1897
1898 2014-08-14 Richard Biener <rguenther@suse.de>
1899
1900 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
1901 (type_hash_canon): ... this and avoid 2nd lookup for the add.
1902
1903 2014-08-14 Richard Biener <rguenther@suse.de>
1904
1905 PR tree-optimization/62090
1906 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
1907 (fold_builtin_2): Do not fold sprintf.
1908 (fold_builtin_3): Likewise.
1909 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
1910 moved from builtins.c.
1911 (gimple_fold_builtin): Fold sprintf.
1912
1913 2014-08-14 Richard Biener <rguenther@suse.de>
1914
1915 PR rtl-optimization/62079
1916 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
1917 run cleanup_cfg.
1918
1919 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1920
1921 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
1922 current_function_decl.
1923
1924 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1925
1926 * cgraph.c (cgraph_node::function_symbol): Fix wrong
1927 cgraph_function_node to cgraph_node::function_symbol
1928 refactoring.
1929
1930 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
1931
1932 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
1933 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
1934
1935 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
1936
1937 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
1938 warning.
1939
1940 2014-08-13 Roman Gareev <gareevroman@gmail.com>
1941
1942 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
1943 generator.
1944
1945 2014-08-12 Jakub Jelinek <jakub@redhat.com>
1946
1947 PR target/62025
1948 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
1949 any registers that are used in mem_insn.
1950
1951 2014-08-12 Steve Ellcey <sellcey@mips.com>
1952
1953 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
1954
1955 2014-08-12 Steve Ellcey <sellcey@mips.com>
1956
1957 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
1958 (MULTILIB_DIRNAMES): Ditto.
1959 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
1960 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
1961 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
1962 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
1963 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
1964 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
1965
1966 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1967
1968 PR target/61413
1969 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
1970 of __ARM_SIZEOF_WCHAR_T.
1971
1972 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1973
1974 PR target/62098
1975 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
1976 Remove unnecessary attributes.
1977
1978 2014-08-12 Yury Gribov <y.gribov@samsung.com>
1979
1980 * internal-fn.c (init_internal_fns): Fix off-by-one.
1981
1982 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1983 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1984 Anna Tikhonova <anna.tikhonova@intel.com>
1985 Ilya Tocar <ilya.tocar@intel.com>
1986 Andrey Turetskiy <andrey.turetskiy@intel.com>
1987 Ilya Verbin <ilya.verbin@intel.com>
1988 Kirill Yukhin <kirill.yukhin@intel.com>
1989 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1990
1991 * config/i386/i386.c (standard_sse_constant_opcode): Use
1992 vpxord/vpternlog if avx512 is availible.
1993
1994 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1995
1996 PR middle-end/62103
1997 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
1998 bitfields, that is when size doesn't match the size of type or the
1999 size of the constructor.
2000
2001 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2002
2003 * config/rs6000/constraints.md (wh constraint): New constraint,
2004 for FP registers if direct move is available.
2005 (wi constraint): New constraint, for VSX/FP registers that can
2006 handle 64-bit integers.
2007 (wj constraint): New constraint for VSX/FP registers that can
2008 handle 64-bit integers for direct moves.
2009 (wk constraint): New constraint for VSX/FP registers that can
2010 handle 64-bit doubles for direct moves.
2011 (wy constraint): Make documentation match implementation.
2012
2013 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2014 scalar_in_vmx_p field to simplify tests of whether SFmode or
2015 DFmode can go in the Altivec registers.
2016 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2017 (rs6000_setup_reg_addr_masks): Likewise.
2018 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2019 field, and wh/wi/wj/wk constraints.
2020 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2021 the wh/wi/wj/wk constraints.
2022 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2023 upper registers, prefer VSX registers unless the operation is a
2024 memory operation with REG+OFFSET addressing.
2025
2026 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2027 DImode. Change SFmode to use ww constraint instead of d to allow
2028 SF registers in the upper registers.
2029 (VSr2): Likewise.
2030 (VSr3): Likewise.
2031 (VSr5): Fix thinko in comment.
2032 (VSa): New mode attribute that is an alternative to wa, that
2033 returns the VSX register class that a mode can go in, but may not
2034 be the preferred register class.
2035 (VS_64dm): New mode attribute for appropriate register classes for
2036 referencing 64-bit elements of vectors for direct moves and normal
2037 moves.
2038 (VS_64reg): Likewise.
2039 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2040 register allocator to only registers the data type can handle.
2041 (vsx_le_perm_load_<mode>): Likewise.
2042 (vsx_le_perm_store_<mode>): Likewise.
2043 (vsx_xxpermdi2_le_<mode>): Likewise.
2044 (vsx_xxpermdi4_le_<mode>): Likewise.
2045 (vsx_lxvd2x2_le_<mode>): Likewise.
2046 (vsx_lxvd2x4_le_<mode>): Likewise.
2047 (vsx_stxvd2x2_le_<mode>): Likewise.
2048 (vsx_add<mode>3): Likewise.
2049 (vsx_sub<mode>3): Likewise.
2050 (vsx_mul<mode>3): Likewise.
2051 (vsx_div<mode>3): Likewise.
2052 (vsx_tdiv<mode>3_internal): Likewise.
2053 (vsx_fre<mode>2): Likewise.
2054 (vsx_neg<mode>2): Likewise.
2055 (vsx_abs<mode>2): Likewise.
2056 (vsx_nabs<mode>2): Likewise.
2057 (vsx_smax<mode>3): Likewise.
2058 (vsx_smin<mode>3): Likewise.
2059 (vsx_sqrt<mode>2): Likewise.
2060 (vsx_rsqrte<mode>2): Likewise.
2061 (vsx_tsqrt<mode>2_internal): Likewise.
2062 (vsx_fms<mode>4): Likewise.
2063 (vsx_nfma<mode>4): Likewise.
2064 (vsx_eq<mode>): Likewise.
2065 (vsx_gt<mode>): Likewise.
2066 (vsx_ge<mode>): Likewise.
2067 (vsx_eq<mode>_p): Likewise.
2068 (vsx_gt<mode>_p): Likewise.
2069 (vsx_ge<mode>_p): Likewise.
2070 (vsx_xxsel<mode>): Likewise.
2071 (vsx_xxsel<mode>_uns): Likewise.
2072 (vsx_copysign<mode>3): Likewise.
2073 (vsx_float<VSi><mode>2): Likewise.
2074 (vsx_floatuns<VSi><mode>2): Likewise.
2075 (vsx_fix_trunc<mode><VSi>2): Likewise.
2076 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2077 (vsx_x<VSv>r<VSs>i): Likewise.
2078 (vsx_x<VSv>r<VSs>ic): Likewise.
2079 (vsx_btrunc<mode>2): Likewise.
2080 (vsx_b2trunc<mode>2): Likewise.
2081 (vsx_floor<mode>2): Likewise.
2082 (vsx_ceil<mode>2): Likewise.
2083 (vsx_<VS_spdp_insn>): Likewise.
2084 (vsx_xscvspdp): Likewise.
2085 (vsx_xvcvspuxds): Likewise.
2086 (vsx_float_fix_<mode>2): Likewise.
2087 (vsx_set_<mode>): Likewise.
2088 (vsx_extract_<mode>_internal1): Likewise.
2089 (vsx_extract_<mode>_internal2): Likewise.
2090 (vsx_extract_<mode>_load): Likewise.
2091 (vsx_extract_<mode>_store): Likewise.
2092 (vsx_splat_<mode>): Likewise.
2093 (vsx_xxspltw_<mode>): Likewise.
2094 (vsx_xxspltw_<mode>_direct): Likewise.
2095 (vsx_xxmrghw_<mode>): Likewise.
2096 (vsx_xxmrglw_<mode>): Likewise.
2097 (vsx_xxsldwi_<mode>): Likewise.
2098 (vsx_xscvdpspn): Tighten constraints to only use register classes
2099 the types use.
2100 (vsx_xscvspdpn): Likewise.
2101 (vsx_xscvdpspn_scalar): Likewise.
2102
2103 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2104 wj, and wk constraints.
2105 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2106 general purpose registers.
2107
2108 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2109 direct moves.
2110 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2111 DImode instead of wm. Use wk constraint for direct move of DFmode
2112 instead of wm.
2113 (extendsidi2_lfiwax): Likewise.
2114 (lfiwax): Likewise.
2115 (lfiwzx): Likewise.
2116 (movdi_internal64): Likewise.
2117
2118 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2119 wk constraints. Make the wy constraint documentation match them
2120 implementation.
2121
2122 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2123
2124 Replacement of isl_int by isl_val
2125 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2126 (compute_bounds_for_param): use isl_val instead of isl_int
2127 (compute_bounds_for_loop): likewise
2128 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2129 (build_linearized_memory_access): use isl_val instead of isl_int
2130 (pdr_stride_in_loop): likewise
2131 * graphite-optimize-isl.c:
2132 (getPrevectorMap): use isl_val instead of isl_int
2133 * graphite-poly.c:
2134 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2135 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2136 (extern the_isl_ctx): declare
2137 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2138 (extract_affine_gmp): likewise
2139 (wrap): likewise
2140 (build_loop_iteration_domains): likewise
2141 (add_param_constraints): likewise
2142
2143 2014-08-11 Richard Biener <rguenther@suse.de>
2144
2145 PR tree-optimization/62075
2146 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2147 handle uses in patterns.
2148
2149 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2150 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2151 Anna Tikhonova <anna.tikhonova@intel.com>
2152 Ilya Tocar <ilya.tocar@intel.com>
2153 Andrey Turetskiy <andrey.turetskiy@intel.com>
2154 Ilya Verbin <ilya.verbin@intel.com>
2155 Kirill Yukhin <kirill.yukhin@intel.com>
2156 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2157
2158 * common/config/i386/i386-common.c
2159 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2160 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2161 (ix86_handle_option): Handle OPT_mavx512vl.
2162 * config/i386/cpuid.h (bit_AVX512VL): Define.
2163 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2164 set -mavx512vl accordingly.
2165 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2166 OPTION_MASK_ISA_AVX512VL.
2167 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2168 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2169 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2170 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2171 * config/i386/i386.h (TARGET_AVX512VL): Define.
2172 (TARGET_AVX512VL_P(x)): Ditto.
2173 * config/i386/i386.opt: Add mavx512vl.
2174
2175 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2176
2177 PR tree-optimization/62073
2178 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2179 a basic block.
2180
2181 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2182 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2183 Anna Tikhonova <anna.tikhonova@intel.com>
2184 Ilya Tocar <ilya.tocar@intel.com>
2185 Andrey Turetskiy <andrey.turetskiy@intel.com>
2186 Ilya Verbin <ilya.verbin@intel.com>
2187 Kirill Yukhin <kirill.yukhin@intel.com>
2188 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2189
2190 * common/config/i386/i386-common.c
2191 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2192 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2193 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2194 (ix86_handle_option): Handle OPT_mavx512bw.
2195 * config/i386/cpuid.h (bit_AVX512BW): Define.
2196 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2197 set -mavx512bw accordingly.
2198 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2199 OPTION_MASK_ISA_AVX512BW.
2200 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2201 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2202 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2203 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2204 * config/i386/i386.h (TARGET_AVX512BW): Define.
2205 (TARGET_AVX512BW_P(x)): Ditto.
2206 * config/i386/i386.opt: Add mavx512bw.
2207
2208 2014-08-11 Richard Biener <rguenther@suse.de>
2209
2210 PR tree-optimization/62070
2211 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2212 Remove SSA checking.
2213
2214 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2215
2216 * asan.c (asan_check_flags): New enum.
2217 (build_check_stmt_with_calls): Removed function.
2218 (build_check_stmt): Split inlining logic to
2219 asan_expand_check_ifn.
2220 (instrument_derefs): Rename parameter.
2221 (instrument_mem_region_access): Rename parameter.
2222 (instrument_strlen_call): Likewise.
2223 (asan_expand_check_ifn): New function.
2224 (asan_instrument): Remove old code.
2225 (pass_sanopt::execute): Change handling of
2226 asan-instrumentation-with-call-threshold.
2227 (asan_clear_shadow): Fix formatting.
2228 (asan_function_start): Likewise.
2229 (asan_emit_stack_protection): Likewise.
2230 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2231 Update description.
2232 * internal-fn.c (expand_ASAN_CHECK): New function.
2233 * internal-fn.def (ASAN_CHECK): New internal function.
2234 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2235 Update description.
2236 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2237 * tree.c: Small comment fix.
2238
2239 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2240
2241 * gimple.c (gimple_call_fnspec): Support internal functions.
2242 (gimple_call_return_flags): Use const.
2243 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2244 * internal-fn.def: Add fnspec information.
2245 * internal-fn.h (internal_fn_fnspec): New function.
2246 (init_internal_fns): Declare new function.
2247 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2248 (init_internal_fns): New function.
2249 * tree-core.h: Update macro call.
2250 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2251
2252 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2253
2254 * lto-streamer.h (struct output_block::symbol): Change from
2255 struct symtab_node to plain symtab_node.
2256 (referenced_from_this_partition_p): Change first parameter
2257 from struct symtab_node to plain symtab_node.
2258
2259 2014-08-10 Marek Polacek <polacek@redhat.com>
2260
2261 PR c/51849
2262 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2263
2264 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2265
2266 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2267 DECL correctly; do not give up on types in static storage.
2268
2269 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2270
2271 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2272
2273 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2274
2275 * graphite-isl-ast-to-gimple.c:
2276 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2277
2278 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2279
2280 2014-08-08 Guozhi Wei <carrot@google.com>
2281
2282 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2283
2284 2014-08-08 Cary Coutant <ccoutant@google.com>
2285
2286 * dwarf2out.c (get_skeleton_type_unit): Remove.
2287 (output_skeleton_debug_sections): Remove skeleton type units.
2288 (output_comdat_type_unit): Likewise.
2289 (dwarf2out_finish): Likewise.
2290
2291 2014-08-07 Yi Yang <ahyangyi@google.com>
2292
2293 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2294
2295 2014-08-08 Richard Biener <rguenther@suse.de>
2296
2297 * lto-streamer.h (struct lto_input_block): Make it a class
2298 with a constructor.
2299 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2300 (struct lto_function_header, struct lto_simple_header,
2301 struct lto_simple_header_with_strings,
2302 struct lto_decl_header, struct lto_function_header): Make
2303 a simple inheritance hieararchy. Remove unused fields.
2304 (struct lto_asm_header): Remove.
2305 * lto-streamer-out.c (produce_asm): Adjust.
2306 (lto_output_toplevel_asms): Likewise.
2307 (produce_asm_for_decls): Likewise.
2308 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2309 * data-streamer-in.c (string_for_index): Likewise.
2310 * ipa-inline-analysis.c (inline_read_section): Likewise.
2311 * ipa-prop.c (ipa_prop_read_section): Likewise.
2312 (read_replacements_section): Likewise.
2313 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2314 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2315 (lto_destroy_simple_input_block): Likewise.
2316 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2317 (lto_input_toplevel_asms): Likewise.
2318
2319 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2320 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2321 Anna Tikhonova <anna.tikhonova@intel.com>
2322 Ilya Tocar <ilya.tocar@intel.com>
2323 Andrey Turetskiy <andrey.turetskiy@intel.com>
2324 Ilya Verbin <ilya.verbin@intel.com>
2325 Kirill Yukhin <kirill.yukhin@intel.com>
2326 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2327
2328 * common/config/i386/i386-common.c
2329 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2330 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2331 (ix86_handle_option): Handle OPT_mavx512dq.
2332 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2333 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2334 set -mavx512dq accordingly.
2335 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2336 OPTION_MASK_ISA_AVX512DQ.
2337 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2338 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2339 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2340 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2341 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2342 (TARGET_AVX512DQ_P(x)): Ditto.
2343 * config/i386/i386.opt: Add mavx512dq.
2344
2345 2014-08-08 Richard Biener <rguenther@suse.de>
2346
2347 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2348 target_percent, target_percent_s): Export.
2349 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2350 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2351 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2352 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2353 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2354 Move to gimple-fold.c.
2355 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2356 strcat and strcpy.
2357 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2358 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2359 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2360 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2361 (rewrite_call_expr_array): Remove.
2362 (fold_builtin_sprintf_chk): Likewise.
2363 (fold_builtin_snprintf_chk): Likewise.
2364 (fold_builtin_varargs): Remove handling of sprintf_chk,
2365 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2366 (gimple_fold_builtin_sprintf_chk): Remove.
2367 (gimple_fold_builtin_snprintf_chk): Likewise.
2368 (gimple_fold_builtin_varargs): Likewise.
2369 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2370 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2371 * gimple.c (gimple_seq_add_seq_without_update): New function.
2372 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2373 * gimple-fold.c: Include output.h.
2374 (gsi_replace_with_seq_vops): New function, split out from ...
2375 (gimplify_and_update_call_from_tree): ... here.
2376 (replace_call_with_value): New function.
2377 (replace_call_with_call_and_fold): Likewise.
2378 (var_decl_component_p): Moved from builtins.c.
2379 (gimple_fold_builtin_memory_op): Moved from builtins.c
2380 fold_builtin_memory_op and rewritten to GIMPLE.
2381 (gimple_fold_builtin_memset): Likewise.
2382 (gimple_fold_builtin_strcpy): Likewise.
2383 (gimple_fold_builtin_strncpy): Likewise.
2384 (gimple_fold_builtin_strcat): Likewise.
2385 (gimple_fold_builtin_fputs): Likewise.
2386 (gimple_fold_builtin_memory_chk): Likewise.
2387 (gimple_fold_builtin_stxcpy_chk): Likewise.
2388 (gimple_fold_builtin_stxncpy_chk): Likewise.
2389 (gimple_fold_builtin_snprintf_chk): Likewise.
2390 (gimple_fold_builtin_sprintf_chk): Likewise.
2391 (gimple_fold_builtin_strlen): New function.
2392 (gimple_fold_builtin_with_strlen): New function split out from
2393 gimple_fold_builtin.
2394 (gimple_fold_builtin): Change signature and handle
2395 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2396 here. Call gimple_fold_builtin_with_strlen.
2397 (gimple_fold_call): Adjust.
2398
2399 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2400
2401 * calls.c (precompute_arguments): Check
2402 promoted_for_signed_and_unsigned_p and set the promoted mode.
2403 (promoted_for_signed_and_unsigned_p): New function.
2404 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2405 and set the promoted mode.
2406 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2407 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2408 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2409
2410
2411 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2412
2413 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2414 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2415 (expand_call): Likewise.
2416 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2417 to get promoted mode.
2418 * combine.c (record_promoted_value): Skip > 0 comparison with
2419 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2420 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2421 of SUBREG_PROMOTED_UNSIGNED_P.
2422 (convert_modes): Likewise.
2423 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2424 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2425 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2426 SUBREG_PROMOTED_UNSIGNED_SET.
2427 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2428 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2429 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2430 SUBREG_PROMOTED_SET.
2431 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2432 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2433 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2434 of SUBREG_PROMOTED_UNSIGNED_P.
2435 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2436 (SUBREG_PROMOTED_SET): New define.
2437 (SUBREG_PROMOTED_GET): Likewise.
2438 (SUBREG_PROMOTED_SIGN): Likewise.
2439 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2440 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2441 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2442 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2443 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2444 (nonzero_bits1): Skip > 0 comparison with the results as
2445 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2446 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2447 of !SUBREG_PROMOTED_UNSIGNED_P.
2448 * simplify-rtx.c (simplify_unary_operation_1): Use new
2449 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2450 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2451 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2452 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2453
2454 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2455
2456 * ipa-devirt.c: Include gimple-pretty-print.h
2457 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2458 further tests.
2459 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2460 (get_polymorphic_call_info): Fix return value
2461 (type_change_info): New sturcture based on ipa-prop
2462 variant.
2463 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2464 based on ipa-prop variant.
2465 (extr_type_from_vtbl_ptr_store): New function
2466 based on ipa-prop variant.
2467 (record_known_type): New function.
2468 (check_stmt_for_type_change): New function.
2469 (get_dynamic_type): New function.
2470 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2471 * tree-ssa-pre.c: ipa-utils.h
2472 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2473 machinery; sanity check with ipa-prop devirtualization.
2474 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2475 polymorphic flag.
2476
2477 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2478
2479 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2480 * alias.c, cfgexpand.c, cgraphbuild.c,
2481 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2482 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2483 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2484 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2485 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2486 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2487 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2488 dse.c, except.c, gengtype.c, gimple-expr.c,
2489 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2490 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2491 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2492 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2493 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2494 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2495 pointer-set.h.
2496 * pointer-set.c: Remove file.
2497 * pointer-set.h: Remove file.
2498
2499 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2500
2501 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2502 * config/arm/types.md (f_sels, f_seld): Delete.
2503
2504 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2505
2506 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2507 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2508 (aarch64_movdi_<mode>high): Likewise.
2509 (aarch64_mov<mode>high_di): Likewise.
2510 (aarch64_movdi_<mode>low): Likewise.
2511 (aarch64_mov<mode>low_di): Likewise.
2512 (aarch64_movtilow_tilow): Likewise.
2513 Add comment explaining usage of fp,simd attributes and of
2514 TARGET_FLOAT and TARGET_SIMD.
2515
2516 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2517 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2518
2519 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2520 Use MOVN when one of the half-words is 0xffff.
2521
2522 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2523
2524 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2525
2526 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2527
2528 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2529 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2530 (rfs_str): String corresponding to RFS_* constants.
2531 (rank_for_schedule_stats_t): New typedef.
2532 (rank_for_schedule_stats): New static variable.
2533 (rfs_result): New static function.
2534 (rank_for_schedule): Track statistics for deciding heuristics.
2535 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2536 static functions.
2537 (ready_sort): Use them for debug printouts.
2538 (schedule_block): Init statistics state. Print statistics on
2539 rank_for_schedule decisions.
2540
2541 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2542
2543 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2544
2545 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2546
2547 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2548 constraint.
2549
2550 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2551
2552 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2553 function to not conflict.
2554 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2555 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2556 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2557 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2558 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2559 of pointer_map.
2560
2561 2014-08-07 Marek Polacek <polacek@redhat.com>
2562
2563 * fold-const.c (fold_binary_loc): Add folding of
2564 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2565
2566 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2567
2568 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2569 instead of type size.
2570 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2571
2572 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2573
2574 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2575 (*thumb1_movqi_insn): Likewise.
2576 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2577
2578 2014-08-07 Tom de Vries <tom@codesourcery.com>
2579
2580 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2581 (glibc_2_11_or_earlier): Remove effective-target keywords.
2582
2583 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2584
2585 * config/arm/arm.c (bdesc_2arg): Fix typo.
2586 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2587
2588 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2589
2590 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2591
2592 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2593
2594 PR debug/61923
2595 * haifa-sched.c (advance_one_cycle): Fix dump.
2596 (schedule_block): Don't advance cycle if we are already at the
2597 beginning of the cycle.
2598
2599 2014-08-06 Martin Jambor <mjambor@suse.cz>
2600
2601 PR ipa/61393
2602 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
2603
2604 2014-08-06 Richard Biener <rguenther@suse.de>
2605
2606 PR lto/62034
2607 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
2608 SCCs here.
2609 (lto_input_tree): Pop SCCs here.
2610
2611 2014-08-06 Richard Biener <rguenther@suse.de>
2612
2613 PR tree-optimization/61320
2614 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
2615 handle misaligned loads.
2616
2617 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
2618
2619 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
2620 (aarch64_expand_vec_perm_const): Check for dup before zip.
2621
2622 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2623
2624 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
2625 CONST_INT_P instead of GET_CODE and compare.
2626 (aarch64_select_cc_mode): Likewise.
2627 (aarch64_print_operand): Likewise.
2628 (aarch64_rtx_costs): Likewise.
2629 (aarch64_simd_valid_immediate): Likewise.
2630 (aarch64_simd_check_vect_par_cnst_half): Likewise.
2631 (aarch64_simd_emit_pair_result_insn): Likewise.
2632
2633 2014-08-05 David Malcolm <dmalcolm@redhat.com>
2634
2635 * gdbhooks.py (find_gcc_source_dir): New helper function.
2636 (class PassNames): New class, locating and parsing passes.def.
2637 (class BreakOnPass): New command "break-on-pass".
2638
2639 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
2640
2641 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
2642 getting olde.
2643
2644 2014-08-05 Richard Biener <rguenther@suse.de>
2645
2646 PR rtl-optimization/61672
2647 * emit-rtl.h (mem_attrs_eq_p): Declare.
2648 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
2649 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
2650 * cfgcleanup.c (merge_memattrs): Likewise.
2651 Include emit-rtl.h.
2652
2653 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2654
2655 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
2656 rather than singleton vectors.
2657 (vqdmlsls_lane_s32): Likewise.
2658
2659 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2660
2661 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
2662 Use VSDQ_HSI mode iterator.
2663 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2664 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
2665 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
2666 Use BUILTIN_VDQHS macro.
2667 (sqrdmulh_laneq): Likewise.
2668 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
2669 (vqdmlals_laneq_s32): Likewise.
2670 (vqdmlslh_laneq_s16): Likewise.
2671 (vqdmlsls_laneq_s32): Likewise.
2672 (vqdmulhh_laneq_s16): Likewise.
2673 (vqdmulhs_laneq_s32): Likewise.
2674 (vqrdmulhh_laneq_s16): Likewise.
2675 (vqrdmulhs_laneq_s32): Likewise.
2676
2677 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2678
2679 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
2680 (vmuld_laneq_f64): Likewise.
2681 (vmuls_laneq_f32): Likewise.
2682 (vmul_n_f64): Likewise.
2683 (vmuld_lane_f64): Reimplement in C.
2684 (vmuls_lane_f32): Likewise.
2685
2686 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2687
2688 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
2689 to reservation.
2690 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2691
2692 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2693
2694 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
2695 (rbitsi2): Likewise.
2696 (*arm_rev): Set predicable and predicable_short_it attributes.
2697
2698 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2699
2700 * convert.c (convert_to_integer): Guard transformation to lrint by
2701 -fno-math-errno.
2702
2703 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
2704
2705 * config/aarch64/aarch64-builtins.c
2706 (aarch64_simd_builtin_type_mode): Delete.
2707 (v8qi_UP): Remap to V8QImode.
2708 (v4hi_UP): Remap to V4HImode.
2709 (v2si_UP): Remap to V2SImode.
2710 (v2sf_UP): Remap to V2SFmode.
2711 (v1df_UP): Remap to V1DFmode.
2712 (di_UP): Remap to DImode.
2713 (df_UP): Remap to DFmode.
2714 (v16qi_UP):V16QImode.
2715 (v8hi_UP): Remap to V8HImode.
2716 (v4si_UP): Remap to V4SImode.
2717 (v4sf_UP): Remap to V4SFmode.
2718 (v2di_UP): Remap to V2DImode.
2719 (v2df_UP): Remap to V2DFmode.
2720 (ti_UP): Remap to TImode.
2721 (ei_UP): Remap to EImode.
2722 (oi_UP): Remap to OImode.
2723 (ci_UP): Map to CImode.
2724 (xi_UP): Remap to XImode.
2725 (si_UP): Remap to SImode.
2726 (sf_UP): Remap to SFmode.
2727 (hi_UP): Remap to HImode.
2728 (qi_UP): Remap to QImode.
2729 (aarch64_simd_builtin_datum): Make mode a machine_mode.
2730 (VAR1): Build builtin name.
2731 (aarch64_init_simd_builtins): Remove dead code.
2732
2733 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2734
2735 * graphite-isl-ast-to-gimple.c:
2736 (set_options): New function.
2737 (scop_to_isl_ast): Add calling of set_options.
2738
2739 2014-08-05 Jakub Jelinek <jakub@redhat.com>
2740
2741 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
2742 (analyze_iv_to_split_insn): Don't initialize them.
2743 (get_ivts_expr): Removed.
2744 (allocate_basic_variable, insert_base_initialization): Use
2745 SET_SRC instead of *get_ivts_expr.
2746 (split_iv): Use &SET_SRC instead of get_ivts_expr.
2747
2748 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2749
2750 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
2751 (translate_isl_ast_for_loop): Add checking of the
2752 flag_loop_parallelize_all.
2753 (ast_build_before_for): New function.
2754 (scop_to_isl_ast): Add checking of the
2755 flag_loop_parallelize_all.
2756 * graphite-dependences.c: Move the defenition of the
2757 scop_get_dependences from graphite-optimize-isl.c to this file.
2758 (apply_schedule_on_deps): Add checking of the ux's emptiness.
2759 (carries_deps): Add checking of the x's value.
2760 * graphite-optimize-isl.c: Move the defenition of the
2761 scop_get_dependences to graphite-dependences.c.
2762 * graphite-poly.h: Add declarations of scop_get_dependences
2763 and carries_deps.
2764
2765 2014-08-04 Rohit <rohitarulraj@freescale.com>
2766
2767 PR target/60102
2768 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
2769 names.
2770 (alt_reg_names): Likewise.
2771 (rs6000_dwarf_register_span): For SPE high registers, replace
2772 dwarf register numbers with GCC hard register numbers.
2773 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
2774 (rs6000_dbx_register_number): For SPE high registers, return dwarf
2775 register number for the corresponding GCC hard register number.
2776 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
2777 newly added GCC hard register numbers for SPE high registers.
2778 (DWARF_FRAME_REGISTERS): Likewise.
2779 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
2780 (DWARF_FRAME_REGNUM): Likewise.
2781 (FIXED_REGISTERS): Likewise.
2782 (CALL_USED_REGISTERS): Likewise.
2783 (CALL_REALLY_USED_REGISTERS): Likewise.
2784 (REG_ALLOC_ORDER): Likewise.
2785 (enum reg_class): Likewise.
2786 (REG_CLASS_NAMES): Likewise.
2787 (REG_CLASS_CONTENTS): Likewise.
2788 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
2789
2790 2014-08-04 Richard Biener <rguenther@suse.de>
2791
2792 * gimple-fold.h (gimple_fold_builtin): Remove.
2793 * gimple-fold.c (gimple_fold_builtin): Make static.
2794 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
2795 fold_stmt, not gimple_fold_builtin.
2796
2797 2014-08-04 Martin Liska <mliska@suse.cz>
2798
2799 * cgraph.h (csi_end_p): Removed.
2800 (csi_next): Likewise.
2801 (csi_node): Likewise.
2802 (csi_start): Likewise.
2803 (cgraph_node_in_set_p): Likewise.
2804 (cgraph_node_set_size): Likewise.
2805 (vsi_end_p): Likewise.
2806 (vsi_next): Likewise.
2807 (vsi_node): Likewise.
2808 (vsi_start): Likewise.
2809 (varpool_node_set_size): Likewise.
2810 (cgraph_node_set_nonempty_p): Likewise.
2811 (varpool_node_set_nonempty_p): Likewise.
2812 * cgraphunit.c (cgraph_process_new_functions): vec replaces
2813 cgraph_node_set.
2814 * ipa-inline-transform.c: Likewise.
2815 * ipa-utils.c (cgraph_node_set_new): Removed.
2816 (cgraph_node_set_add): Likewise.
2817 (cgraph_node_set_remove): Likewise.
2818 (cgraph_node_set_find): Likewise.
2819 (dump_cgraph_node_set): Likewise.
2820 (debug_cgraph_node_set): Likewise.
2821 (free_cgraph_node_set): Likewise.
2822 (varpool_node_set_new): Likewise.
2823 (varpool_node_set_add): Likewise.
2824 (varpool_node_set_remove): Likewise.
2825 (varpool_node_set_find): Likewise.
2826 (dump_varpool_node_set): Likewise.
2827 (free_varpool_node_set): Likewise.
2828 (debug_varpool_node_set): Likewise.
2829 * tree-emutls.c (struct tls_var_data):
2830 (emutls_index): Removed.
2831 (emutls_decl): Likewise.
2832 (gen_emutls_addr): Function implementation uses newly added
2833 hash_map<varpool_node *, tls_var_data>.
2834 (clear_access_vars): Likewise.
2835 (create_emultls_var): Likewise.
2836 (ipa_lower_emutls): Likewise.
2837 (reset_access): New function.
2838
2839 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2840
2841 * config/i386/i386.c (ix86_option_override_internal): Add
2842 PTA_RDRND and PTA_MOVBE for bdver4.
2843
2844 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2845 James Greenhalgh <james.greenhalgh@arm.com>
2846
2847 * doc/md.texi (clrsb): Document.
2848 (clz): Change reference to x into operand 1.
2849 (ctz): Likewise.
2850 (popcount): Likewise.
2851
2852 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2853
2854 PR target/61713
2855 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
2856 move to subtarget in serial version if result is ignored.
2857
2858 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2859 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2860
2861 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
2862 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
2863 (sched_analyze_insn): Update use of try_group_insn to
2864 sched_macro_fuse_insns.
2865 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
2866 arguments that are not conditional jumps.
2867
2868 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2869
2870 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
2871 family information. Handle BTVER2 cpu with cpuid family value.
2872
2873 2014-08-04 Tom de Vries <tom@codesourcery.com>
2874
2875 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2876 (glibc_2_11_or_earlier): Document effective-target keywords.
2877
2878 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2879
2880 * ipa-devirt.c (odr_type_warn_count): Add type.
2881 (possible_polymorphic_call_targets): Set it.
2882 (ipa_devirt): Use it.
2883
2884 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2885
2886 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
2887 Document.
2888 * ipa-devirt.c: Include hash-map.h
2889 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
2890 (clear_speculation): Break out of ...
2891 (get_class_context): ... here; speed up handling obviously useless
2892 speculations.
2893 (odr_type_warn_count, decl_warn_count): New structures.
2894 (final_warning_record): New structure.
2895 (final_warning_records): New static variable.
2896 (possible_polymorphic_call_targets): Cleanup handling of
2897 speculative info; do not build speculation when user do not care;
2898 record info about warnings when asked for.
2899 (add_decl_warning): New function.
2900 (type_warning_cmp): New function.
2901 (decl_warning_cmp): New function.
2902 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
2903 (gate): Enable pass when warnings are requested.
2904 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
2905 options.
2906
2907 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2908
2909 * hash-map.h (default_hashmap_traits::mark_key_deleted):
2910 Fix cast.
2911 (hash_map::remove): New method.
2912 (hash_map::traverse): New method.
2913 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
2914 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
2915 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
2916 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
2917 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
2918 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
2919 pointer_map.
2920
2921 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2922
2923 * hash-set.h: new File.
2924 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
2925 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
2926 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
2927 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
2928 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
2929 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
2930 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
2931 varpool.c: Use hash_set instead of pointer_set.
2932
2933 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
2934
2935 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
2936
2937 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2938
2939 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
2940 for frame access when strict_p is false.
2941
2942 2014-08-01 Renlin Li <renlin.li@arm.com>
2943 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2944
2945 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
2946 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
2947 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
2948 Declaration.
2949 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
2950 predicate.
2951 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
2952 aarch64_mem_pair_offset.
2953
2954 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2955
2956 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
2957 offset.
2958 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
2959 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
2960
2961 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
2962
2963 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
2964
2965 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
2966
2967 PR regression/61510
2968 * cgraphunit.c (analyze_functions): Use get_create rather than get
2969 for decls which are clones of abstract functions.
2970
2971 2014-08-01 Martin Liska <mliska@suse.cz>
2972
2973 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
2974 * ipa-prop.h (count_formal_params): Global function created from static.
2975 * ipa-prop.c (count_formal_params): Likewise.
2976 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
2977 profiles for semantically equivalent functions.
2978 * passes.c (do_per_function): If we load body of a function
2979 during WPA, this condition should behave same.
2980 * varpool.c (ctor_for_folding): More tolerant assert for variable
2981 aliases created during WPA.
2982
2983 2014-08-01 Martin Liska <mliska@suse.cz>
2984
2985 * doc/invoke.texi (Options That Control Optimization): Documentation
2986 for -foptimize-strlen introduced. Optimization levels default options
2987 fixed.
2988
2989 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2990
2991 * opts.c (common_handle_option): Handle -fsanitize=alignment.
2992 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
2993 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
2994 type to bool.
2995 * stor-layout.h (min_align_of_type): New prototype.
2996 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
2997 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
2998 check.
2999 * ubsan.c: Include builtins.h.
3000 (ubsan_expand_bounds_ifn): Change return type to bool,
3001 always return true.
3002 (ubsan_expand_null_ifn): Change return type to bool, change
3003 argument to gimple_stmt_iterator *. Handle both null and alignment
3004 sanitization, take type from ckind argument's type rather than
3005 first argument.
3006 (instrument_member_call): Removed.
3007 (instrument_mem_ref): Remove t argument, add mem and base arguments.
3008 Handle both null and alignment sanitization, don't say whole
3009 struct access is member access. Build 3 argument IFN_UBSAN_NULL
3010 call instead of 2 argument.
3011 (instrument_null): Adjust instrument_mem_ref caller. Don't
3012 instrument calls here.
3013 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3014 like SANITIZE_NULL.
3015 * stor-layout.c (min_align_of_type): New function.
3016 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3017 Or it into SANITIZE_UNDEFINED.
3018 * doc/invoke.texi (-fsanitize=alignment): Document.
3019
3020 2014-07-31 Andi Kleen <ak@linux.intel.com>
3021
3022 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3023
3024 2014-07-31 Andi Kleen <ak@linux.intel.com>
3025
3026 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3027 inchash.
3028 (vn_reference_compute_hash): Dito.
3029 (vn_nary_op_compute_hash): Dito.
3030 (vn_phi_compute_hash): Dito.
3031 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3032
3033 2014-07-31 Andi Kleen <ak@linux.intel.com>
3034
3035 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3036 Rename to inchash:add_expr_commutative. Convert to inchash.
3037 (iterative_hash_hashable_expr): Rename to
3038 inchash:add_hashable_expr. Convert to inchash.
3039 (avail_expr_hash): Dito.
3040
3041 2014-07-31 Andi Kleen <ak@linux.intel.com>
3042
3043 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3044 Convert to inchash.
3045
3046 2014-07-31 Andi Kleen <ak@linux.intel.com>
3047
3048 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3049
3050 2014-07-31 Andi Kleen <ak@linux.intel.com>
3051
3052 * Makefile.in (OBJS): Add rtlhash.o
3053 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3054 (loc_checksum): Dito.
3055 (loc_checksum_ordered): Dito.
3056 (hash_loc_operands): Dito.
3057 (hash_locs): Dito.
3058 (hash_loc_list): Dito.
3059 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3060 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3061 * rtlhash.c: New file.
3062 * rtlhash.h: New file.
3063
3064 2014-07-31 Andi Kleen <ak@linux.intel.com>
3065
3066 * inchash.h (inchash): Change inchash class to namespace.
3067 (class hash): ... Rename from inchash.
3068 (add_object): Move from macro to class template.
3069 * lto-streamer-out.c (hash_tree): Change inchash
3070 to inchash::hash.
3071 * tree.c (build_type_attribute_qual_variant): Dito.
3072 (type_hash_list): Dito.
3073 (attribute_hash_list): Dito.
3074 (iterative_hstate_expr): Rename to inchash::add_expr
3075 (build_range_type_1): Change inchash to inchash::hash
3076 and use hash::add_expr.
3077 (build_array_type_1): Dito.
3078 (build_function_type): Dito
3079 (build_method_type_directly): Dito.
3080 (build_offset_type): Dito.
3081 (build_complex_type): Dito.
3082 (make_vector_type): Dito.
3083 * tree.h (iterative_hash_expr): Dito.
3084
3085 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3086
3087 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3088
3089 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3090
3091 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3092 correct alphabetical position.
3093 (vpaddd_f64): Rewrite using builtins.
3094 (vpaddd_s64): Move to correct alphabetical position.
3095 (vpaddd_u64): New.
3096
3097 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3098
3099 PR target/61844
3100 * config/sh/sh.c (sh_legitimate_address_p,
3101 sh_legitimize_reload_address): Handle reg+reg address modes when
3102 ALLOW_INDEXED_ADDRESS is false.
3103 * config/sh/predicates.md (general_movsrc_operand,
3104 general_movdst_operand): Likewise.
3105
3106 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3107
3108 * config/aarch64/aarch64-builtins.c
3109 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3110 BYTES_BIG_ENDIAN.
3111
3112 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3113
3114 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3115 the generated mask based on BYTES_BIG_ENDIAN.
3116 (aarch64_simd_check_vect_par_cnst_half): New.
3117 * config/aarch64/aarch64-protos.h
3118 (aarch64_simd_check_vect_par_cnst_half): New.
3119 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3120 the check out to aarch64_simd_check_vect_par_cnst_half.
3121 (vect_par_cnst_lo_half): Likewise.
3122 * config/aarch64/aarch64-simd.md
3123 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3124 (move_hi_quad_<mode>): Always generate a low mask.
3125
3126 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3127
3128 * doc/invoke.texi (AVR Options): Add documentation about
3129 __AVR_DEVICE_NAME__ built-in macro.
3130
3131 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3132
3133 PR target/61948
3134 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3135 constraints are satisfied.
3136 (<shift>di3_neon): Likewise.
3137
3138 2014-07-31 Richard Biener <rguenther@suse.de>
3139
3140 PR tree-optimization/61964
3141 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3142 by structural equality.
3143
3144 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3145
3146 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3147 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3148 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3149 New enums.
3150 * gcc.c (sanitize_spec_function): Support new option.
3151 (SANITIZER_SPEC): Remove now redundant check.
3152 * opts.c (common_handle_option): Support new option.
3153 (finish_options): Check for incompatibilities.
3154 * toplev.c (process_options): Split userspace-specific checks.
3155
3156 2014-07-31 Richard Biener <rguenther@suse.de>
3157
3158 * lto-streamer.h (struct output_block): Remove global.
3159 (struct data_in): Remove labels, num_named_labels and
3160 num_unnamed_labels.
3161 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3162 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3163
3164 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3165
3166 PR c++/60517
3167 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3168 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3169 (isolate_path): New argument to avoid inserting a trap.
3170 (find_implicit_erroneous_behaviour): Handle returning the address
3171 of a local variable.
3172 (find_explicit_erroneous_behaviour): Likewise.
3173
3174 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3175
3176 PR lto/61868
3177 * toplev.c (init_random_seed): Move piece of code never called to
3178 set_random_seed.
3179 (set_random_seed): see above.
3180
3181 2014-07-31 Tom de Vries <tom@codesourcery.com>
3182
3183 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3184
3185 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3186
3187 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3188 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3189
3190 2014-07-31 Richard Biener <rguenther@suse.de>
3191
3192 * data-streamer.h (streamer_write_data_stream): Declare here,
3193 renamed from ...
3194 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3195 * lto-cgraph.c (lto_output_node): Adjust.
3196 (lto_output_varpool_node): Likewise.
3197 * data-streamer-out.c (streamer_string_index): Likewise.
3198 (streamer_write_data_stream, lto_append_block): Move from ...
3199 * lto-section-out.c (lto_output_data_stream,
3200 lto_append_block): ... here.
3201
3202 2014-07-30 Mike Stump <mikestump@comcast.net>
3203
3204 * configure.ac: Also check for popen.
3205 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3206 * configure: Regenerate.
3207 * config.in: Regenerate.
3208
3209 2014-07-30 Martin Jambor <mjambor@suse.cz>
3210
3211 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3212 parameter to gimple.
3213
3214 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3215
3216 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3217 address as second parameter to __tpf_eh_return routine.
3218
3219 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3220
3221 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3222 Thumb2.
3223
3224 2014-07-30 Tom Tromey <tromey@redhat.com>
3225
3226 PR c/59855
3227 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3228 * doc/extend.texi (Type Attributes): Document designated_init
3229 attribute.
3230
3231 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3232
3233 * graphite-isl-ast-to-gimple.c:
3234 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3235 (gcc_expression_from_isl_expression): Pass type to
3236 gcc_expression_from_isl_ast_expr_id.
3237
3238 2014-07-30 Richard Biener <rguenther@suse.de>
3239
3240 * lto-streamer.h (lto_write_data): New function.
3241 * langhooks.c (lhd_append_data): Do not free block.
3242 * lto-section-out.c (lto_write_data): New function writing
3243 raw data to the current section.
3244 (lto_write_stream): Adjust for langhook semantic change.
3245 (lto_destroy_simple_output_block): Write header directly.
3246 * lto-opts.c (lto_write_options): Write options directly.
3247 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3248 (lto_output_toplevel_asms): Likewise.
3249 (copy_function_or_variable): Copy data directly.
3250 (write_global_references): Output index table directly.
3251 (lto_output_decl_state_refs): Likewise.
3252 (write_symbol): Write data directly.
3253 (produce_symtab): Adjust.
3254 (produce_asm_for_decls): Output header and refs directly.
3255
3256 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3257
3258 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3259 to speculative_targets
3260 (get_class_context): Fix handling of contextes without outer type;
3261 avoid matching non-polymorphic types in LTO.
3262 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3263 parameter to speculative_targetsp; handle speculation.
3264 (dump_possible_polymorphic_call_targets): Update dumping.
3265
3266 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3267
3268 * common.opt (Wodr): Enable by default.
3269
3270 2014-07-29 Olivier Hainque <hainque@adacore.com>
3271
3272 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3273
3274 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3275
3276 PR bootstrap/61914
3277 * gengtype.c (strtoken): New function.
3278 (create_user_defined_type): Replace strtok with strtoken.
3279
3280 2014-07-29 Nathan Sidwell <nathan@acm.org>
3281
3282 * gcov-io.c (gcov_var): Make hidden.
3283 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3284 (gcov_do_dump): Declare.
3285 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3286
3287 2014-07-29 Martin Jambor <mjambor@suse.cz>
3288
3289 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3290 parameter to gimple.
3291 (sra_modify_assign): Likewise.
3292
3293 2014-07-29 Richard Biener <rguenther@suse.de>
3294
3295 PR middle-end/52478
3296 * expr.c (expand_expr_real_2): Revert last change.
3297
3298 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3299
3300 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3301 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3302 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3303 call.
3304 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3305 (contains_type_p): Forward declare.
3306 (polymorphic_call_target_hasher::hash): Hash speculative info.
3307 (polymorphic_call_target_hasher::equal): Compare speculative info.
3308 (get_class_context): Handle speuclation.
3309 (contains_type_p): Update.
3310 (get_polymorphic_call_info_for_decl): Update.
3311 (walk_ssa_copies): Break out from ...
3312 (get_polymorphic_call_info): ... here; set speculative context
3313 before giving up.
3314 * ipa-prop.c (ipa_write_indirect_edge_info,
3315 ipa_read_indirect_edge_info): Stream speculative context.
3316 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3317 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3318 SPECULATIVE_MAYBE_DERIVED_TYPE).
3319 (possible_polymorphic_call_targets overriders): Update.
3320 (dump_possible_polymorphic_call_targets overriders): Update.
3321 (dump_possible_polymorphic_call_target_p overriders): Update.
3322
3323 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3324
3325 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3326 ipa-devirt path; fix thinko there.
3327
3328 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3329
3330 * config/i386/i386.c (ix86_return_in_memory): Replace one
3331 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3332
3333 2014-07-28 Marek Polacek <polacek@redhat.com>
3334
3335 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3336
3337 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3338
3339 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3340 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3341 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3342 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3343 (USE_LD_AS_NEEDED): Likewise.
3344 (ASM_APP_ON): Likewise.
3345 (ASM_APP_OFF): Likewise.
3346 (TARGET_POSIX_IO): Likewise.
3347 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3348 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3349 (USE_LD_AS_NEEDED): Likewise.
3350 (ASM_APP_ON): Likewise.
3351 (ASM_APP_OFF): Likewise.
3352 (TARGET_POSIX_IO): Likewise.
3353
3354 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3355
3356 PR middle-end/61734
3357 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3358 operators other than the equality operators.
3359
3360 2014-07-28 Richard Biener <rguenther@suse.de>
3361
3362 PR middle-end/52478
3363 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3364 sure to register SImode ones, not only >= word_mode ones.
3365 * expr.c (expand_expr_real_2): When expanding -ftrapv
3366 binops do not use OPTAB_LIB_WIDEN.
3367
3368 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3369
3370 PR middle-end/61919
3371 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3372 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3373 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3374 inserting them in the insn stream.
3375
3376 2014-07-28 Marek Polacek <polacek@redhat.com>
3377
3378 PR middle-end/61913
3379 * common.opt (Wodr): Add Var.
3380
3381 2014-07-28 Richard Biener <rguenther@suse.de>
3382
3383 PR tree-optimization/61921
3384 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3385 if there is a varpool node before dereferencing it.
3386
3387 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3388
3389 * graphite-sese-to-poly.c:
3390 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3391 id of the pbb), which contains pointer to the pbb1.
3392
3393 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3394
3395 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3396
3397 * graphite-isl-ast-to-gimple.c:
3398 (graphite_create_new_guard): New function.
3399 (translate_isl_ast_node_if): New function.
3400 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3401
3402 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3403
3404 2014-07-27 Anthony Green <green@moxielogic.com>
3405
3406 * config.gcc: Add moxie-*-moxiebox* configuration.
3407 * config/moxie/moxiebox.h: New file.
3408
3409 2014-07-26 Andrew Pinski <apinski@cavium.com>
3410
3411 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3412 from the read only register.
3413
3414 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3415
3416 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3417 as the allocation class if it isn't likely to be spilled.
3418
3419 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3420
3421 * rtl.h (tls_referenced_p): Declare.
3422 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3423 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3424 (mips_cannot_force_const_mem): Use tls_referenced_p.
3425 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3426 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3427 instead of pa_tls_referenced_p.
3428 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3429 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3430 (pa_legitimate_constant_p): Likewise.
3431 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3432 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3433 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3434 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3435 rs6000_tls_referenced_p.
3436 (rs6000_tls_symbol_ref_1): Delete.
3437
3438 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3439
3440 PR target/44551
3441 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3442 Optimize inverse of a VEC_CONCAT.
3443
3444 2014-07-25 Xinliang David Li <davidxl@google.com>
3445
3446 * params.def: New parameter.
3447 * coverage.c (get_coverage_counts): Check new flag.
3448 (coverage_compute_profile_id): Check new flag.
3449 (coverage_begin_function): Check new flag.
3450 (coverage_end_function): Check new flag.
3451 * value-prof.c (coverage_node_map_initialized_p): New function.
3452 (init_node_map): Populate map with all functions.
3453 * doc/invoke.texi: Document new parameter.
3454
3455 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3456 Richard Biener <rguenther@suse.de>
3457
3458 * lto-streamer-out.c (struct sccs): Turn to ...
3459 (class DFS): ... this one; refactor the DFS walk so it can
3460 be re-done on per-SCC basis.
3461 (DFS::DFS): New constructor.
3462 (DFS::~DFS): New destructor.
3463 (hash_tree): Add new MAP argument holding in-SCC hash values;
3464 remove POINTER_TYPE hashing hack.
3465 (scc_entry_compare): Rename to ...
3466 (DFS::scc_entry_compare): ... this one.
3467 (hash_scc): Rename to ...
3468 (DFS::hash_scc): ... this one; pass output_block instead
3469 of streamer_cache; work harder to get unique and stable SCC
3470 hashes.
3471 (DFS_write_tree): Rename to ...
3472 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3473 (lto_output_tree): Update.
3474
3475 2014-07-25 Andi Kleen <ak@linux.intel.com>
3476
3477 * lto-streamer-out.c (hash_tree): Convert to inchash.
3478
3479 2014-07-25 Andi Kleen <ak@linux.intel.com>
3480
3481 * tree.c (build_type_attribute_qual_variant): Use inchash.
3482 (type_hash_list): Dito.
3483 (attribute_hash_list): Dito
3484 (iterative_hstate_expr): Dito.
3485 (iterative_hash_expr): Dito.
3486 (build_range_type_1): Dito.
3487 (build_array_type_1): Dito.
3488 (build_function_type): Dito.
3489 (build_method_type_directly): Dito.
3490 (build_offset_type): Dito.
3491 (build_complex_type): Dito.
3492 (make_vector_type): Dito.
3493 * tree.h (iterative_hash_expr): Add compat wrapper.
3494 (iterative_hstate_expr): Add.
3495
3496 2014-07-25 Andi Kleen <ak@linux.intel.com>
3497
3498 * Makefile.in (OBJS): Add inchash.o.
3499 (PLUGIN_HEADERS): Add inchash.h.
3500 * ipa-devirt.c: Include inchash.h.
3501 * lto-streamer-out.c: Dito.
3502 * tree-ssa-dom.c: Dito.
3503 * tree-ssa-pre.c: Dito.
3504 * tree-ssa-sccvn.c: Dito.
3505 * tree-ssa-tail-merge.c: Dito.
3506 * asan.c: Dito.
3507 * tree.c (iterative_hash_hashval_t): Move to ...
3508 (iterative_hash_host_wide_int): Move to ...
3509 * inchash.c: Here. New file.
3510 * tree.h (iterative_hash_hashval_t): Move to ...
3511 (iterative_hash_host_wide_int): Move to ...
3512 * inchash.h: Here. New file.
3513
3514 2014-07-25 Richard Biener <rguenther@suse.de>
3515
3516 PR middle-end/61762
3517 PR middle-end/61894
3518 * fold-const.c (native_encode_int): Add and handle offset
3519 parameter to do partial encodings of expr.
3520 (native_encode_fixed): Likewise.
3521 (native_encode_real): Likewise.
3522 (native_encode_complex): Likewise.
3523 (native_encode_vector): Likewise.
3524 (native_encode_string): Likewise.
3525 (native_encode_expr): Likewise.
3526 * fold-const.c (native_encode_expr): Add offset parameter
3527 defaulting to -1.
3528 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3529 (fold_ctor_reference): Handle all reads from tcc_constant
3530 ctors.
3531
3532 2014-07-25 Richard Biener <rguenther@suse.de>
3533
3534 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3535 as possibly unused.
3536
3537 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3538
3539 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3540
3541 2014-07-24 Kyle McMartin <kyle@redhat.com>
3542
3543 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3544
3545 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3546
3547 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3548 Add prototype.
3549 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3550 function.
3551 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3552 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3553 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3554
3555 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3556
3557 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3558 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3559 aggregate types. Instead, *all* aggregate types, except for single-
3560 element or homogeneous float/vector aggregates, are quadword-aligned
3561 if required by their type alignment. Issue -Wpsabi note when a type
3562 is now treated differently than before.
3563
3564 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3565
3566 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3567 does not fit fully into floating-point registers, and there is still
3568 space in the register parameter area, use GPRs to pass those parts
3569 of the argument. Issue -Wpsabi note if any parameter is now treated
3570 differently than before.
3571 (rs6000_arg_partial_bytes): Update.
3572
3573 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3574
3575 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3576
3577 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3578
3579 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3580 * toplev.c (initialize_rtl): Don't use it. Move previously
3581 "language-dependent" calls to...
3582 (backend_init): ...here.
3583 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3584 Assert that RTL initialization hasn't happend yet.
3585
3586 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3587
3588 PR rtl-optimization/61629
3589 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3590 they have already been initialized.
3591
3592 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3593
3594 PR middle-end/61268
3595 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3596 DECL_INCOMING_RTL and entry_parm.
3597 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3598 * calls.c (load_register_parameters): Likewise argument values.
3599 (emit_library_call_value_1, store_one_arg): Likewise argument
3600 save areas.
3601 * config/i386/i386.c (assign_386_stack_local): Likewise the local
3602 stack slot.
3603 * explow.c (validize_mem): Modify the argument in-place.
3604
3605 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3606
3607 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
3608 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
3609
3610 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3611
3612 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
3613 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
3614
3615 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3616
3617 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
3618 (aarch64_save_callee_saves): New parameter "skip_wb".
3619 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
3620
3621 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3622
3623 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
3624 "wb_candidate2".
3625 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
3626
3627 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3628
3629 * graphite-isl-ast-to-gimple.c:
3630 (graphite_create_new_loop): Add calling of isl_id_free to properly
3631 decrement reference counts.
3632
3633 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
3634
3635 2014-07-24 Martin Liska <mliska@suse.cz>
3636 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
3637 function used.
3638 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
3639 (rs6000_code_end): Likewise.
3640
3641 2014-07-24 Martin Liska <mliska@suse.cz>
3642
3643 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
3644 symtab_node funtion used.
3645 (rs6000_xcoff_declare_object_name): Likewise.
3646
3647 2014-07-24 Martin Liska <mliska@suse.cz>
3648
3649 * cgraphunit.c (compile): Correct function used.
3650
3651 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3652
3653 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
3654 as non-indexable.
3655
3656 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3657
3658 PR lto/61802
3659 * varasm.c (bss_initializer_p): Handle offlined ctors.
3660 (align_variable, get_variable_align): Likewise.
3661 (make_decl_one_only): Likewise.
3662 (default_binds_local_p_1): Likewise.
3663 (decl_binds_to_current_def_p): Likewise.
3664 (get_variable_section): Get constructor if it is offlined.
3665 (assemble_variable_contents): Sanity check that the caller
3666 streamed in the ctor in LTO.
3667
3668 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3669
3670 * graphite-isl-ast-to-gimple.c:
3671 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
3672 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
3673 isl_ast_op_pdiv_r to the different case.
3674
3675 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
3676
3677 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3678
3679 PR middle-end/61876
3680 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
3681 when flag_errno_math is on.
3682
3683 2014-07-24 Martin Liska <mliska@suse.cz>
3684
3685 * cgraph.h (varpool_node):
3686 (availability get_availability (void)):
3687 created from cgraph_variable_initializer_availability
3688 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
3689 created from: cgraph_variable_initializer_availability
3690 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
3691 (void finalize_named_section_flags (void)):
3692 created from varpool_finalize_named_section_flags
3693 (bool assemble_decl (void)): created from varpool_assemble_decl
3694 (void analyze (void)): created from varpool_analyze_node
3695 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
3696 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
3697 (void remove_initializer (void)): created from varpool_remove_initializer
3698 (tree get_constructor (void)): created from varpool_get_constructor
3699 (bool externally_visible_p (void)): created from varpool_externally_visible_p
3700 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
3701 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
3702 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
3703 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
3704 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
3705 (static bool output_variables (void)): created from varpool_output_variables
3706 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
3707 created from varpool_extra_name_alias
3708 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
3709 (static void dump_varpool (FILE *f)): created from dump_varpool
3710 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
3711 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
3712 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
3713 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
3714 (void assemble_aliases (void)): created from assemble_aliases
3715
3716 2014-07-24 Martin Liska <mliska@suse.cz>
3717
3718 * cgraph.h (symtab_node):
3719 (void register_symbol (void)): created from symtab_register_node
3720 (void remove (void)): created from symtab_remove_node
3721 (void dump (FILE *f)): created from dump_symtab_node
3722 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
3723 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
3724 (struct ipa_ref *add_reference (symtab_node *referred_node,
3725 enum ipa_ref_use use_type)): created from add_reference
3726 (struct ipa_ref *add_reference (symtab_node *referred_node,
3727 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
3728 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
3729 gimple stmt)): created from maybe_add_reference
3730 (bool semantically_equivalent_p (symtab_node *target)): created from
3731 symtab_semantically_equivalent_p
3732 (void remove_from_same_comdat_group (void)): created from
3733 remove_from_same_comdat_group
3734 (void add_to_same_comdat_group (symtab_node *old_node)): created from
3735 symtab_add_to_same_comdat_group
3736 (void dissolve_same_comdat_group_list (void)): created from
3737 symtab_dissolve_same_comdat_group_list
3738 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
3739 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
3740 created from symtab_alias_ultimate_target
3741 (inline symtab_node *next_defined_symbol (void)): created from
3742 symtab_next_defined_symbol
3743 (bool resolve_alias (symtab_node *target)): created from
3744 symtab_resolve_alias
3745 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
3746 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
3747 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
3748 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
3749 (void set_section (const char *section)): created from set_section_1
3750 (enum availability get_availability (void)): created from symtab_node_availability
3751 (void make_decl_local (void)): created from symtab_make_decl_local
3752 (bool real_symbol_p (void)): created from symtab_read_node
3753 (can_be_discarded_p (void)): created from symtab_can_be_discarded
3754 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
3755 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
3756 symtab_in_same_comdat_p;
3757 (bool address_taken_from_non_vtable_p (void)): created from
3758 address_taken_from_non_vtable_p
3759 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
3760 (static void dump_table (FILE *)): created from dump_symtab
3761 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
3762 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
3763 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
3764 symtab_used_from_object_file_p
3765 (void dump_base (FILE *)): created from dump_symtab_base
3766 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
3767 (void unregister (void)): created from symtab_unregister_node
3768 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
3769 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
3770 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
3771 symtab_nonoverwritable_alias_1
3772 * cgraph.h (cgraph_node):
3773 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
3774 created from cgraph_remove_node_and_inline_clones
3775 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
3776 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
3777 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
3778 (cgraph_node *function_symbol (enum availability *avail = NULL)):
3779 created from cgraph_function_node
3780 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
3781 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
3782 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
3783 created from cgraph_create_clone
3784 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
3785 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
3786 created from cgraph_create_virtual_clone
3787 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
3788 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
3789 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
3790 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
3791 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
3792 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
3793 created from cgraph_function_version_info
3794 (struct cgraph_function_version_info *insert_new_function_version (void)):
3795 created from insert_new_cgraph_node_version
3796 (struct cgraph_function_version_info *function_version (void)): created from
3797 get_cgraph_node_version
3798 (void analyze (void)): created from analyze_function
3799 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
3800 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
3801 tree real_alias) cgraph_add_thunk
3802 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
3803 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
3804 created from cgraph_function_or_thunk_node
3805 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
3806 created from expand_thunk
3807 (void reset (void)): created from cgraph_reset_node
3808 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
3809 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
3810 (void remove (void)): created from cgraph_remove_node
3811 (void dump (FILE *f)): created from dump_cgraph_node
3812 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
3813 (bool get_body (void)): created from cgraph_get_body
3814 (void release_body (void)): created from cgraph_release_function_body
3815 (void unnest (void)): created from cgraph_unnest_node
3816 (void make_local (void)): created from cgraph_make_node_local
3817 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
3818 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
3819 gcov_type count, int freq)): created from cgraph_create_edge
3820 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
3821 gcov_type count, int freq)): created from cgraph_create_indirect_edge
3822 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
3823 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
3824 created from cgraph_create_edge_including_clones
3825 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
3826 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
3827 (void remove_callers (void)): created from cgraph_node_remove_callers
3828 (void remove_callees (void)): created from cgraph_node_remove_callees
3829 (enum availability get_availability (void)): created from cgraph_function_body_availability
3830 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
3831 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
3832 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
3833 (void call_duplication_hooks (cgraph_node *node2)): created from
3834 cgraph_call_node_duplication_hooks
3835 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
3836 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
3837 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
3838 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
3839 (void call_function_insertion_hooks (void)):
3840 created from cgraph_call_function_insertion_hooks
3841 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
3842 (bool local_p (void)): created from cgraph_local_node
3843 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
3844 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
3845 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
3846 (inline bool only_called_directly_or_aliased_p (void)):
3847 created from cgraph_only_called_directly_or_aliased_p
3848 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
3849 created from cgraph_will_be_removed_from_program_if_no_direct_calls
3850 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
3851 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
3852 (bool can_remove_if_no_direct_calls_p (void)):
3853 created from cgraph_can_remove_if_no_direct_calls_p
3854 (inline bool has_gimple_body_p (void)):
3855 created from cgraph_function_with_gimple_body_p
3856 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
3857 (static void dump_cgraph (FILE *f)): created from dump_cgraph
3858 (static inline void debug_cgraph (void)): created from debug_cgraph
3859 (static void record_function_versions (tree decl1, tree decl2)):
3860 created from record_function_versions
3861 (static void delete_function_version (tree decl)):
3862 created from delete_function_version
3863 (static void add_new_function (tree fndecl, bool lowered)):
3864 created from cgraph_add_new_function
3865 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
3866 (static cgraph_node * create (tree decl)): created from cgraph_create_node
3867 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
3868 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
3869 (static cgraph_node *get_for_asmname (tree asmname)):
3870 created from cgraph_node_for_asm
3871 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
3872 created from cgraph_same_body_alias
3873 (static bool used_from_object_file_p_worker (cgraph_node *node,
3874 void *): new function
3875 (static bool non_local_p (cgraph_node *node, void *)):
3876 created from cgraph_non_local_node_p_1
3877 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
3878 created from verify_cgraph
3879 (static bool make_local (cgraph_node *node, void *)):
3880 created from cgraph_make_node_local
3881 (static cgraph_node *create_alias (tree alias, tree target)):
3882 created from cgraph_create_function_alias
3883 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
3884 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
3885 created from cgraph_create_edge_1
3886 * cgraph.h (varpool_node):
3887 (void remove (void)): created from varpool_remove_node
3888 (void dump (FILE *f)): created from dump_varpool_node
3889
3890 2014-07-24 Richard Biener <rguenther@suse.de>
3891
3892 PR ipa/61823
3893 * tree-ssa-structalias.c (create_variable_info_for_1):
3894 Use varpool_get_constructor.
3895 (create_variable_info_for): Likewise.
3896
3897 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3898
3899 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
3900 subtract outgoing area size when restoring stack_pointer_rtx.
3901
3902 2014-07-24 Nick Clifton <nickc@redhat.com>
3903
3904 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
3905 that operations are taking place in parallel.
3906 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
3907
3908 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
3909
3910 * omp-low.c (extract_omp_for_data): Add missing break statement.
3911
3912 2014-07-24 Richard Biener <rguenther@suse.de>
3913
3914 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
3915 * tree-inline.c (estimate_move_cost): Add speed_p parameter
3916 and adjust MOVE_RATIO query accordingly.
3917 (estimate_num_insns): Adjust callers.
3918 * ipa-prop.c (ipa_populate_param_decls): Likewise.
3919 * ipa-cp.c (gather_context_independent_values,
3920 estimate_local_effects): Likewise.
3921 * ipa-split.c (consider_split): Likewise.
3922
3923 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
3924
3925 * config/i386/driver-i386.c: Remove names of unused arguments and
3926 unnecessary unused attributes.
3927 * config/i386/host-mingw32.c: Likewise.
3928 * config/i386/i386.c: Likewise.
3929 * config/i386/winnt-stubs.c: Likewise.
3930 * config/i386/winnt.c: Likewise.
3931
3932 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3933
3934 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
3935 (aarch64_gen_loadwb_pair): New helper function.
3936 (aarch64_expand_epilogue): Simplify code using new helper functions.
3937 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
3938
3939 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3940
3941 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
3942 (aarch64_gen_storewb_pair): New helper function.
3943 (aarch64_expand_prologue): Simplify code using new helper functions.
3944 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
3945
3946 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3947
3948 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
3949 Rename to aarch64_save_callee_saves, remove restore code.
3950 (aarch64_restore_callee_saves): New function.
3951
3952 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3953
3954 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
3955 (aarch64_save_callee_saves): New function to handle reg save
3956 for both core and vectore regs.
3957
3958 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3959
3960 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
3961 (aarch64_gen_store_pair): New helper function.
3962 (aarch64_save_or_restore_callee_save_registers)
3963 (aarch64_save_or_restore_fprs): Use new helper functions.
3964
3965 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3966
3967 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
3968 (aarch64_save_or_restore_callee_save_registers)
3969 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
3970
3971 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3972
3973 * config/aarch64/aarch64.c
3974 (aarch64_save_or_restore_callee_save_registers)
3975 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
3976
3977 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3978
3979 * config/aarch64/aarch64.c
3980 (aarch64_save_or_restore_callee_save_registers)
3981 (aarch64_save_or_restore_fprs): Remove 'increment'.
3982
3983 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3984
3985 * config/aarch64/aarch64.c
3986 (aarch64_save_or_restore_callee_save_registers)
3987 (aarch64_save_or_restore_fprs): Use register offset in
3988 cfun->machine->frame.reg_offset.
3989
3990 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3991
3992 * config/aarch64/aarch64.c
3993 (aarch64_save_or_restore_callee_save_registers)
3994 (aarch64_save_or_restore_fprs): Remove base_rtx.
3995
3996 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3997
3998 * config/aarch64/aarch64.c
3999 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
4000 to 'start_offset'. Remove local variable 'start_offset'.
4001
4002 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4003
4004 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
4005 type to HOST_WIDE_INT.
4006
4007 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4008
4009 * config/aarch64/aarch64.c (aarch64_expand_prologue)
4010 (aarch64_save_or_restore_fprs)
4011 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4012
4013 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4014
4015 * config/arm/t-rtems-eabi: Add
4016 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4017 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4018 mbig-endian/mthumb/march=armv7-r, and
4019 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4020 multilibs.
4021
4022 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4023 Chris Johns <chrisj@rtems.org>
4024 Joel Sherrill <joel.sherrill@oarcorp.com>
4025
4026 * config.gcc: Add nios2-*-rtems*.
4027 * config/nios2/rtems.h: New file.
4028 * gcc/config/nios2/t-rtems: New file.
4029
4030 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4031
4032 PR target/61396
4033 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4034 constant numbers, not general constants.
4035 (rs6000_expand_vector_init): Ditto.
4036
4037 2014-07-23 Nathan Sidwell <nathan@acm.org>
4038
4039 * gcov-tool.c (gcov_list): Declare here.
4040 (set_gcov_list): Remove.
4041 (gcov_output_files): Set gcov_list directly.
4042
4043 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4044
4045 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4046
4047 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4048
4049 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4050 callee-saved registers are available for padding purpose
4051 and r3 is not mandatory, then prefer use those callee-saved
4052 instead of r3.
4053
4054 2014-07-23 Richard Biener <rguenther@suse.de>
4055
4056 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4057 * combine.c: Include statistics.h and params.h.
4058 (combine_instructions): Guard three and four insn combines
4059 with max-combine-insns value. Record statistics for combines
4060 performed.
4061 * doc/invoke.texi (max-combine-insns): Document new param.
4062
4063 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4064
4065 * graphite-isl-ast-to-gimple.c:
4066 (translate_isl_ast_node_block): New function.
4067 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4068
4069 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4070 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4071
4072 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4073
4074 * graphite-isl-ast-to-gimple.c:
4075 (get_max_schedule_dimensions): New function.
4076 (extend_schedule): Likewise.
4077 (generate_isl_schedule): Add calling of extend_schedule and
4078 get_max_schedule_dimensions.
4079
4080 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4081
4082 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4083 (case UNSPEC): Handle UNSPEC_RBIT.
4084
4085 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4086
4087 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4088 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4089
4090 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4091
4092 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4093
4094 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4095
4096 * graphite-isl-ast-to-gimple.c:
4097 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4098 (ivs_params_clear):
4099 (build_iv_mapping): New function.
4100 (translate_isl_ast_node_user): Likewise.
4101 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4102
4103 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4104 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4105 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4106
4107 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4108
4109 PR target/55701
4110 * config/arm/arm.md (setmem): New pattern.
4111 * config/arm/arm-protos.h (struct tune_params): New fields.
4112 (arm_gen_setmem): New prototype.
4113 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4114 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4115 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4116 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4117 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4118 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4119 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4120 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4121 (arm_const_inline_cost): New function.
4122 (arm_block_set_max_insns): New function.
4123 (arm_block_set_non_vect_profit_p): New function.
4124 (arm_block_set_vect_profit_p): New function.
4125 (arm_block_set_unaligned_vect): New function.
4126 (arm_block_set_aligned_vect): New function.
4127 (arm_block_set_unaligned_non_vect): New function.
4128 (arm_block_set_aligned_non_vect): New function.
4129 (arm_block_set_vect, arm_gen_setmem): New functions.
4130
4131 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4132
4133 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4134
4135 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4136
4137 PR target/61855
4138 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4139 out of #ifdef __OPTIMIZE__.
4140
4141 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4142
4143 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4144 different trapping status if -fnon-call-exceptions is enabled.
4145
4146 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4147
4148 * expr.c (store_field): Handle VOIDmode for calls that return values
4149 in multiple locations.
4150
4151 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4152
4153 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4154 (altivec_vsldoi_<mode>): Likewise.
4155
4156 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4157
4158 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4159 to the number of characters in the line.
4160
4161 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4162
4163 * graphite-isl-ast-to-gimple.c: Add using of
4164 build_nonstandard_integer_type instead of int128_integer_type_node.
4165
4166 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4167
4168 * toplev.c (output_stack_usage): Adjust the location of the warning.
4169
4170 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4171
4172 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4173 (*membar_storeload): Disable for LEON3.
4174
4175 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4176
4177 PR rtl-optimization/61461
4178 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4179
4180 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4181
4182 PR target/61794
4183 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4184 Fix instruction constraint.
4185 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4186
4187 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4188
4189 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4190
4191 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4192
4193 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4194 GNU coding standards.
4195 (nds32_register_move_cost): Likewise.
4196 (nds32_memory_move_cost): Likewise.
4197 (nds32_address_cost): Likewise.
4198
4199 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4200
4201 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4202
4203 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4204
4205 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4206 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4207 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4208 (HAVE_sync_compare_and_swapqi): Define.
4209 (HAVE_sync_compare_and_swaphi): Likewise.
4210 (HAVE_sync_compare_and_swapsi): Likewise.
4211
4212 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4213
4214 * config/mips/p5600.md: Add missing cpu tests.
4215
4216 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4217
4218 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4219 (vmla_f64): Likewise.
4220 (vfms_f64): Likewise.
4221 (vmls_f64): Likewise.
4222
4223 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4224
4225 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4226 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4227
4228 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4229
4230 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4231 (vmlal_high_lane_s32): Likewise.
4232 (vmlal_high_lane_u16): Likewise.
4233 (vmlal_high_lane_u32): Likewise.
4234 (vmlsl_high_lane_s16): Likewise.
4235 (vmlsl_high_lane_s32): Likewise.
4236 (vmlsl_high_lane_u16): Likewise.
4237 (vmlsl_high_lane_u32): Likewise.
4238
4239 2014-07-17 Terry Guo <terry.guo@arm.com>
4240
4241 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4242 (alus_reg): Renamed to alus_sreg.
4243 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4244 from alu_reg to alu_sreg. Change type of dsp instructions from
4245 alu_reg to alu_dsp_reg.
4246 * config/arm/thumb1.md: Likewise.
4247 * config/arm/thumb2.md: Likewise.
4248 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4249 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4250 with alu_sreg and alus_sreg.
4251 * config/arm/arm1026ejs.md (alu_op): Likewise.
4252 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4253 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4254 * config/arm/fa526.md (526_alu_op): Likewise.
4255 * config/arm/fa606te.md (606te_alu_op): Likewise.
4256 * config/arm/fa626te.md (626te_alu_op): Likewise.
4257 * config/arm/fa726te.md (726te_alu_op): Likewise.
4258 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4259 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4260 alu_sreg, alu_dsp_reg and alus_sreg.
4261 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4262 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4263 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4264 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4265 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4266 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4267 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4268 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4269 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4270 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4271 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4272 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4273 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4274 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4275 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4276 alus_reg to alus_sreg.
4277
4278 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4279
4280 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4281 infinity format.
4282
4283 2014-07-17 Richard Biener <rguenther@suse.de>
4284
4285 PR rtl-optimization/61801
4286 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4287 don't set reg_pending_barrier if it appears in a debug-insn.
4288
4289 2014-07-16 DJ Delorie <dj@redhat.com>
4290
4291 * config/rx/rx.c (rx_option_override): Fix alignment values.
4292 (rx_align_for_label): Likewise.
4293
4294 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4295
4296 PR target/61737.
4297 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4298 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4299 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4300 functions.
4301 (cris_print_index, cris_print_operand, cris_constant_index_p)
4302 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4303 (cris_address_cost): Ditto last CONSTANT_P.
4304 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4305 callers changed. Yield cris_offsettable_symbol for non-PIC
4306 constant symbolic expressions including labels. Yield cris_unspec
4307 for all unspecs.
4308 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4309 target to pic_offset_table_rtx for calls that will likely go
4310 through PLT, const0_rtx when they can't. All callers changed.
4311 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4312 symbolic expressions to be PICified. Remove second, redundant,
4313 assert on can_create_pseudo_p returning non-zero. Use
4314 replace_equiv_address_nv, not replace_equiv_address, for final
4315 operand update.
4316 * config/cris/cris.md ("movsi"): Move variable t to pattern
4317 toplevel. Adjust assert for new cris_symbol_type member. Use
4318 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4319 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4320 for lapc stricter.
4321 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4322 ("call", "call_value"): Use second incoming operand as a marker
4323 for pic-offset-table-register being used.
4324 ("*expanded_call_non_v32", "*expanded_call_v32")
4325 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4326 second incoming operand to CALL, match cris_call_type_marker.
4327 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4328 ("*expanded_call_side"): Ditto. Fix typo in comment.
4329 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4330 CONSTANT_P.
4331 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4332 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4333 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4334 users changed. Add members cris_offsettable_symbol and cris_unspec.
4335 (cris_symbol_type): Rename from cris_pic_symbol_type.
4336 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4337 just CONSTANT_P.
4338 * config/cris/cris-protos.h (cris_symbol_type_of,
4339 cris_expand_pic_call_address): Adjust prototypes.
4340 (cris_legitimate_constant_p): New prototype.
4341
4342 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4343 an existing tmake_file. Don't add t-slibgcc and t-linux.
4344
4345 2014-07-17 Jason Merrill <jason@redhat.com>
4346
4347 PR c++/61623
4348 * symtab.c (symtab_remove_from_same_comdat_group): Also
4349 set_comdat_group to NULL_TREE.
4350 (verify_symtab): Fix diagnostic.
4351
4352 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4353
4354 PR target/61662
4355 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4356
4357 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4358
4359 Support location tracking for built-in macro tokens
4360 * input.h (is_location_from_builtin_token): New function declaration.
4361 * input.c (is_location_from_builtin_token): New function definition.
4362 * toplev.c (general_init): Tell libcpp what the pre-defined
4363 spelling location for built-in tokens is.
4364
4365 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4366
4367 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4368 on the FUNCTION_DECL.
4369
4370 2014-07-16 Richard Biener <rguenther@suse.de>
4371
4372 PR other/61782
4373 * doc/extend.texi (always_inline): Clarify.
4374
4375 2014-07-15 Eric Christopher <echristo@gmail.com>
4376
4377 * doc/invoke.texi (Link Options): Document -z option.
4378
4379 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4380
4381 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4382 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4383
4384 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4385
4386 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4387
4388 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4389
4390 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4391 varpool_assemble_decl.
4392 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4393 true.
4394
4395 2014-07-15 Michael Matz <matz@suse.de>
4396
4397 PR rtl-optimization/61772
4398 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4399
4400 2014-07-15 Richard Biener <rguenther@suse.de>
4401
4402 * opts.c (default_options_table): Disable bit-ccp at -Og.
4403
4404 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4405
4406 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4407
4408 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4409
4410 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4411 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4412 call langhook for unknown declaration.
4413 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4414 * tree.h (DECL_ARGUMENTS): Update.
4415 * print-tree.c (print_node): Update.
4416 * tree-core.h (tree_decl_non_common): Remove arguments.
4417 (tree_function_decl): Add arguments.
4418
4419 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4420
4421 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4422
4423 2014-07-14 Richard Biener <rguenther@suse.de>
4424
4425 PR tree-optimization/61779
4426 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4427 simplifying a condition.
4428
4429 2014-07-14 Richard Biener <rguenther@suse.de>
4430
4431 * builtins.c (c_strlen): Make only_value == 2 really only
4432 affect warning generation.
4433
4434 2014-07-14 Richard Biener <rguenther@suse.de>
4435
4436 PR tree-optimization/61757
4437 PR tree-optimization/61783
4438 PR tree-optimization/61787
4439 * tree-ssa-dom.c (record_equality): Revert canonicalization
4440 change and add comment.
4441 (propagate_rhs_into_lhs): Revert previous fix, removing
4442 loop depth restriction again.
4443
4444 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4445
4446 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4447 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4448 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4449 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4450 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4451 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4452 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4453
4454 2014-07-14 Richard Biener <rguenther@suse.de>
4455
4456 * cgraph.h (decl_in_symtab_p): Make inline.
4457
4458 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4459
4460 PR middle-end/61294
4461 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4462
4463 PR target/61656
4464 * config/i386/i386.c (classify_argument): Don't merge classes above
4465 number of words.
4466
4467 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4468
4469 * cgraph.h (symtab_node): Add nonzero_address.
4470 (decl_in_symtab_p): Break out from ...
4471 (symtab_get_node): ... here.
4472 * fold-const.c: Include cgraph.h
4473 (tree_single_nonzero_warnv_p): Use symtab to determine
4474 if symbol is non-zero.
4475 * symtab.c (symtab_node::nonzero_address): New method.
4476
4477 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4478
4479 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4480 forgotten in previous commit.
4481
4482 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4483
4484 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4485 on builtin types.
4486 * ipa-devirt.c: Include stor-layout.h and intl.h
4487 (odr_subtypes_equivalent_p): New function.
4488 (warn_odr): New function.
4489 (warn_type_mismatch): New function.
4490 (odr_types_equivalent_p): New function.
4491 (add_type_duplicate): Use it.
4492 * common.opt (Wodr): New flag.
4493 * doc/invoke.texi (Wodr): Document new warning.
4494
4495 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4496
4497 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4498 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4499 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4500 (varpool_get_constructor): Push CTORS_IN timevar.
4501 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4502
4503 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4504
4505 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4506 Remove VOID_FTYPE_PUSHORT.
4507 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4508 Change code to USHORT_FTYPE_VOID.
4509 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4510 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4511 (ix86_atomic_assign_expand_fenv): Update for
4512 __builtin_ia32_fnstsw changes.
4513 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4514 (fnstsw): Change operand 0 to nonimmediate operand.
4515
4516 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4517
4518 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4519 (varpool_get_constructor): New function.
4520 (varpool_ctor_useable_for_folding_p): Break out from ...
4521 (ctor_for_folding): ... here; use varpool_get_constructor.
4522 (varpool_assemble_decl): Likewise.
4523 * lto-streamer.h (struct output_block): Turn cgraph_node
4524 to symbol filed.
4525 (lto_input_variable_constructor): Declare.
4526 * ipa-visibility.c (function_and_variable_visibility): Use
4527 varpool_get_constructor.
4528 * cgraph.h (varpool_get_constructor): Declare.
4529 (varpool_ctor_useable_for_folding_p): New function.
4530 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4531 parameter; return error_mark_node for non-trivial constructors.
4532 (lto_write_tree_1, DFS_write_tree): Update use of
4533 get_symbol_initial_value.
4534 (output_function): Update initialization of symbol.
4535 (output_constructor): New function.
4536 (copy_function): Rename to ..
4537 (copy_function_or_variable): ... this one; handle vars too.
4538 (lto_output): Output variable sections.
4539 * lto-streamer-in.c (input_constructor): New function.
4540 (lto_read_body): Rename from ...
4541 (lto_read_body_or_constructor): ... this one; handle vars too.
4542 (lto_input_variable_constructor): New function.
4543 * ipa-prop.c (ipa_prop_write_jump_functions,
4544 ipa_prop_write_all_agg_replacement): Update.
4545 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4546 (output_cgraph_opt_summary): Set symbol to NULL.
4547
4548 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4549
4550 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4551 non-polymorphic types.
4552 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4553 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4554 of types is not polymorphic.
4555
4556 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4557
4558 * lra-constraints.c (remove_inheritance_pseudos): Process
4559 destination pseudo too.
4560
4561 2014-07-11 Rong Xu <xur@google.com>
4562
4563 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4564 commit r212448.
4565
4566 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4567
4568 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4569 * config/avr/avr-devices.c (AVR_MCU): Same.
4570 (avr_mcu_types): add text start value to end of device list.
4571 * config/avr/avr-mcus.def: Add text section start for all devices.
4572 (ata5782): Add new avr5 device.
4573 (ata5831): Same.
4574 * config/avr/avr-tables.opt: Regenerate.
4575 * config/avr/avr.h: Add declaration for text section start handler.
4576 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4577 SPEC functions.
4578 (LINK_SPEC): Include text section start handler to linker spec.
4579 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4580 pass -Ttext option to linker if the text section start for the device
4581 is not zero.
4582 * config/avr/t-multilib: Regenerate.
4583 * doc/avr-mmcu.texi: Regenerate.
4584
4585 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4586
4587 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4588 * config/rs6000/aix52.h (LINK_SPEC): Same.
4589 * config/rs6000/aix53.h (LINK_SPEC): Same.
4590 * config/rs6000/aix61.h (LINK_SPEC): Same.
4591 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4592
4593 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4594
4595 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4596 (graphite_verify): New function.
4597 (ivs_params_clear): New function.
4598 (gcc_expression_from_isl_ast_expr_id): New function.
4599 (gcc_expression_from_isl_expr_int): New function.
4600 (binary_op_to_tree): New function.
4601 (ternary_op_to_tree): New function.
4602 (unary_op_to_tree): New function.
4603 (nary_op_to_tree): New function.
4604 (gcc_expression_from_isl_expr_op): New function.
4605 (gcc_expression_from_isl_expression): New function.
4606 (graphite_create_new_loop): New function.
4607 (translate_isl_ast_for_loop): New function.
4608 (get_upper_bound): New function.
4609 (graphite_create_new_loop_guard): New function.
4610 (translate_isl_ast_node_for): New function.
4611 (translate_isl_ast): New function.
4612 (add_parameters_to_ivs_params): New function.
4613 (scop_to_isl_ast): New parameter ip.
4614 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
4615
4616 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4617
4618 * config/xtensa/predicates.md (call expander): Update for
4619 DECL_SECTION_NAME being string.
4620
4621 2014-07-11 Richard Biener <rguenther@suse.de>
4622
4623 PR middle-end/61473
4624 * builtins.c (fold_builtin_memory_op): Inline memory moves that
4625 can be implemented with a single load followed by a single store.
4626 (c_strlen): Only warn when only_value is not 2.
4627
4628 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
4629
4630 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
4631
4632 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
4633
4634 PR target/61561
4635 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
4636 (*movhi_bytes): Likewise.
4637 (*arm_movqi_insn): Likewise.
4638
4639 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
4640
4641 PR target/56858
4642 * config/alpha/alpha.c: Include tree-pass.h, context.h
4643 and pass_manager.h.
4644 (pass_data_handle_trap_shadows): New pass.
4645 (pass_handle_trap_shadows::gate): New pass gate function.
4646 (make_pass_handle_trap_shadows): New function.
4647 (rest_of_handle_trap_shadows): Ditto.
4648
4649 (alpha_align_insns_1): Rename from alpha_align_insns.
4650 (pass_data_align_insns): New pass.
4651 (pass_align_insns::gate): New pass gate function.
4652 (make_pass_aling_insns): New function.
4653 (rest_of_align_insns): Ditto.
4654 (alpha_align_insns): Ditto.
4655
4656 (alpha_option_override): Declare handle_trap_shadows info
4657 and align_insns_info. Register handle_trap_shadows and align_insns
4658 passes here.
4659 (alpha_reorg): Do not call alpha_trap_shadows and
4660 alpha_align_insn from here.
4661
4662 (alpha_pad_function_end): Do not skip BARRIERs.
4663
4664 2014-07-10 Rong Xu <xur@google.com>
4665
4666 Add gcov-tool: an offline gcda profile processing tool support.
4667 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
4668 (gcov_is_error): Ditto.
4669 (gcov_read_string): Ditto.
4670 (gcov_read_sync): Ditto.
4671 * gcov-io.h: Move counter defines to gcov-counter.def.
4672 * gcov-dump.c (tag_counters): Use gcov-counter.def.
4673 * coverage.c: Ditto.
4674 * gcov-tool.c: Offline gcda profile processing tool.
4675 (unlink_gcda_file): Remove one gcda file.
4676 (unlink_profile_dir): Remove gcda files from the profile path.
4677 (gcov_output_files): Output gcda files to an output dir.
4678 (profile_merge): Merge two profiles in directory.
4679 (print_merge_usage_message): Print merge usage.
4680 (merge_usage): Print merge usage and exit.
4681 (do_merge): Driver for profile merge sub-command.
4682 (profile_rewrite): Rewrite profile.
4683 (print_rewrite_usage_message): Print rewrite usage.
4684 (rewrite_usage): Print rewrite usage and exit.
4685 (do_rewrite): Driver for profile rewrite sub-command.
4686 (print_usage): Print gcov-info usage and exit.
4687 (print_version): Print gcov-info version.
4688 (process_args): Process arguments.
4689 (main): Main routine for gcov-tool.
4690 * Makefile.in: Build and install gcov-tool.
4691 * gcov-counter.def: New file split from gcov-io.h.
4692 * doc/gcc.texi: Include gcov-tool.texi.
4693 * doc/gcov-tool.texi: Document for gcov-tool.
4694
4695 2014-07-10 Richard Biener <rguenther@suse.de>
4696
4697 PR tree-optimization/61757
4698 * tree-ssa-dom.c (loop_depth_of_name): Restore.
4699 (propagate_rhs_into_lhs): Revert part of last change.
4700
4701 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
4702
4703 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
4704 FUNCTION_DECLs.
4705
4706 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
4707
4708 PR middle-end/53590
4709 * function.c (allocate_struct_function): Revert r188667 change.
4710
4711 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
4712
4713 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
4714
4715 * doc/install.texi: Remove links to defunct package providers for
4716 Solaris.
4717
4718 2014-07-09 Tom de Vries <tom@codesourcery.com>
4719
4720 * final.c (get_call_fndecl): Declare.
4721 (self_recursive_call_p): New function.
4722 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
4723
4724 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4725
4726 * ipa-devirt.c (record_node): Walk through aliases.
4727
4728 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4729
4730 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
4731
4732 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4733
4734 Revert:
4735 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
4736
4737 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4738
4739 * ipa-visibility.c (function_and_variable_visibility): Remove
4740 temporary hack disabling local aliases on AIX.
4741
4742 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4743
4744 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
4745 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
4746
4747 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4748
4749 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
4750 * rs6000/rs6000.c: Inline output of .set instruction.
4751 (declare_alias_data): New struct.
4752 (rs6000_declare_alias): New function.
4753 (rs6000_xcoff_declare_function_name): Use it.
4754 (rs6000_xcoff_declare_object_name): New function.
4755 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
4756 (ASM_OUTPUT_DEF): Turn to empty definition.
4757
4758 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4759
4760 PR bootstrap/61679
4761 * hash-table.h: use hash_table::value_type instead of
4762 Descriptor::value_type in the return types of several methods.
4763
4764 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4765
4766 * tree-pass.h (pass_data): Remove has_execute member.
4767 * passes.c (execute_one_pass): Don't check pass->has_execute.
4768 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
4769 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
4770 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
4771 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
4772 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
4773 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
4774 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
4775 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
4776 gimple-low.c, gimple-ssa-isolate-paths.c,
4777 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
4778 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
4779 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
4780 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
4781 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4782 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
4783 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
4784 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
4785 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
4786 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
4787 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
4788 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4789 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
4790 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4791 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
4792 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
4793 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
4794 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
4795 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
4796 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
4797 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
4798 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
4799 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
4800 web.c: Remove initializer for pass_data::has_execute.
4801
4802 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4803
4804 * graphite-htab.h: Use hash_map instead of hash_table.
4805 * graphite-clast-to-gimple.c: Adjust.
4806 * passes.c: Use hash_map instead of hash_table.
4807 * sese.c: Likewise.
4808 * sese.h: Remove now unused code.
4809
4810 2014-07-08 Sriraman Tallam <tmsriram@google.com>
4811
4812 PR target/61599
4813 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
4814 than zero.
4815
4816 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4817
4818 PR rtl-optimization/61673
4819 * combine.c (simplify_comparison): Test just mode's sign bit
4820 in tmode rather than the sign bit and any bits above it.
4821
4822 2014-07-08 Roman Gareev <gareevroman@gmail.com>
4823
4824 * graphite-isl-ast-to-gimple.c (generate_isl_context):
4825 Add __isl_give to the declaration.
4826 (generate_isl_schedule): Likewise.
4827 (scop_to_isl_ast): Likewise.
4828
4829 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4830
4831 * config/arm/arm.c (cortexa5_extra_costs): New table.
4832 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
4833
4834 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4835
4836 PR tree-optimization/61725
4837 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
4838 range, use range_includes_zerop_p instead of integer_zerop on
4839 vr0->min, only use log2 of max if min is not negative.
4840
4841 2014-07-08 Richard Biener <rguenther@suse.de>
4842
4843 * tree-ssa-dom.h (loop_depth_of_name): Remove.
4844 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
4845 restriction on loop depth difference.
4846 (record_equality): Likewise.
4847 (propagate_rhs_into_lhs): Likewise. Simplify condition.
4848 (loop_depth_of_name): Remove.
4849 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
4850 restriction on loop depth difference.
4851 (init_copy_prop): Likewise.
4852
4853 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4854
4855 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
4856 parameter.
4857 (walk_aliased_vdefs): Likewise.
4858 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
4859 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
4860 (detect_type_change_from_memory_writes): Check if entry was reached.
4861
4862 2014-07-08 Richard Biener <rguenther@suse.de>
4863
4864 PR tree-optimization/61681
4865 * tree-ssa-structalias.c (find_what_var_points_to): Expand
4866 NONLOCAL inside ESCAPED.
4867
4868 2014-07-08 Richard Biener <rguenther@suse.de>
4869
4870 PR tree-optimization/61680
4871 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4872 Handle properly all read-write dependences with group accesses.
4873
4874 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4875
4876 PR tree-optimization/61576
4877 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
4878 block containing reduction statement is predecessor of phi basi block.
4879
4880 2014-07-08 Marek Polacek <polacek@redhat.com>
4881
4882 PR c/60226
4883 * fold-const.c (round_up_loc): Change the parameter type.
4884 Remove assert.
4885 * fold-const.h (round_up_loc): Adjust declaration.
4886 * stor-layout.c (finalize_record_size): Check for too large types.
4887
4888 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
4889
4890 * symtab.c: Include calls.h.
4891 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
4892
4893 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
4894
4895 * config/rs6000/rs6000.c (output_vec_const_move): Handle
4896 little-endian code generation.
4897 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4898 (vec_perm00_v2si): ... this. Handle little-endian code generation.
4899 (spe_evmergehilo): Rename to...
4900 (vec_perm01_v2si): ... this. Handle little-endian code generation.
4901 (spe_evmergelo): Rename to...
4902 (vec_perm11_v2si): ... this. Handle little-endian code generation.
4903 (spe_evmergelohi): Rename to...
4904 (vec_perm10_v2si): ... this. Handle little-endian code generation.
4905 (spe_evmergehi, spe_evmergehilo): New expanders.
4906 (spe_evmergelo, spe_evmergelohi): Likewise.
4907 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
4908 (*frob_tf_ti): Likewise.
4909 (*frob_<mode>_di_2): Likewise.
4910 (*frob_tf_di_8_2): Likewise.
4911 (*frob_di_<mode>): Likewise.
4912 (*frob_ti_tf): Likewise.
4913 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
4914 (*frob_ti_<mode>_8_2): Likewise.
4915 (*frob_ti_tf_2): Likewise.
4916 (mov_si<mode>_e500_subreg0): Rename to...
4917 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
4918 endianness only.
4919 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
4920 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
4921 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
4922 the big endianness only.
4923 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
4924 (*mov_si<mode>_e500_subreg0_2): Rename to...
4925 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
4926 big big endianness only.
4927 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
4928 (*mov_si<mode>_e500_subreg4): Rename to...
4929 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
4930 endianness only.
4931 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
4932 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
4933 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
4934 the big endianness only.
4935 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
4936 pattern.
4937 (*mov_si<mode>_e500_subreg4_2): Rename to...
4938 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
4939 endianness only.
4940 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
4941 (*mov_sitf_e500_subreg8): Rename to...
4942 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
4943 endianness only.
4944 (*mov_sitf_e500_subreg8_le): New instruction pattern.
4945 (*mov_sitf_e500_subreg8_2): Rename to...
4946 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
4947 endianness only.
4948 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
4949 (*mov_sitf_e500_subreg12): Rename to...
4950 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
4951 endianness only.
4952 (*mov_sitf_e500_subreg12_le): New instruction pattern.
4953 (*mov_sitf_e500_subreg12_2): Rename to...
4954 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
4955 endianness only.
4956 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
4957
4958 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
4959
4960 * asan.c (instrument_strlen_call): Do not instrument first byte
4961 in strlen if already instrumented.
4962
4963 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4964
4965 * config/arm/arm.opt (mwords-little-endian): Delete.
4966 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
4967 of TARGET_LITTLE_WORDS.
4968 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
4969 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
4970 warning.
4971 * doc/invoke.texi: Remove references to -mwords-little-endian.
4972
4973 2014-07-07 Jakub Jelinek <jakub@redhat.com>
4974
4975 * expmed.c (struct init_expmed_rtl): Change all fields but
4976 pow2 and cint from struct rtx_def to rtx.
4977 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
4978 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
4979 at the end again.
4980
4981 2014-07-06 Marek Polacek <polacek@redhat.com>
4982
4983 PR c/6940
4984 * doc/invoke.texi: Document -Wsizeof-array-argument.
4985
4986 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
4987
4988 * wide-int.h (wide_int_storage): Change declaration from struct
4989 to class.
4990
4991 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
4992
4993 * cgraph.c (cgraph_create_indirect_edge): Update call of
4994 get_polymorphic_call_info.
4995 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
4996 (possible_polymorphic_call_targets): Add parameter call.
4997 (decl_maybe_in_construction_p): New predicate.
4998 (get_polymorphic_call_info): Add parameter call;
4999 use decl_maybe_in_construction_p.
5000 * gimple-fold.c (fold_gimple_assign): Update use of
5001 possible_polymorphic_call_targets.
5002 (gimple_fold_call): Likewise.
5003 * ipa-prop.c: Inlcude calls.h
5004 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
5005 (param_type_may_change_p): New predicate.
5006 (detect_type_change_from_memory_writes): Break out from ...
5007 (detect_type_change): ... this one; use param_type_may_change_p.
5008 (detect_type_change_ssa): Use param_type_may_change_p.
5009 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5010
5011 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5012
5013 PR target/49423
5014 * config/arm/arm-protos.h (arm_legitimate_address_p,
5015 arm_is_constant_pool_ref): Add prototypes.
5016 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5017 (arm_is_constant_pool_ref) New function.
5018 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5019 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5020 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5021 operand. Remove pool_range and neg_pool_range attributes.
5022 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5023 pool_range and neg_pool_range attributes.
5024 * config/arm/constraints.md (Uh): New constraint.
5025 (Uq): Don't allow constant pool references.
5026
5027 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5028
5029 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5030 (move_lo_quad_internal_be_<mode>): Likewise.
5031 (move_lo_quad_<mode>): Convert to define_expand.
5032 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5033 (aarch64_simd_move_hi_quad_be_<mode>): New.
5034 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5035 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5036 (aarch64_combinez_be<mode>): New.
5037 (aarch64_combine<mode>): Convert to define_expand.
5038 (aarch64_combine_internal<mode>): New.
5039 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5040
5041 2014-07-04 Tom de Vries <tom@codesourcery.com>
5042
5043 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5044 combination of earlyclobber and read/write modifiers.
5045
5046 2014-07-04 Tom de Vries <tom@codesourcery.com>
5047
5048 * config/aarch64/aarch64-simd.md
5049 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5050
5051 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5052
5053 PR target/61714
5054 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5055
5056 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5057
5058 PR middle-end/61654
5059 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5060
5061 PR tree-optimization/61684
5062 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5063 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5064
5065 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5066 Kito Cheng <kito@0xlab.org>
5067 Monk Chiang <sh.chiang04@gmail.com>
5068
5069 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5070 (nds32_symbol_load_store_p): Move to ...
5071 (nds32_fp_as_gp_check_available): Move to ...
5072 * config/nds32/nds32-fp-as-gp.c: ... here.
5073 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5074 extern declaration.
5075
5076 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5077 Kito Cheng <kito@0xlab.org>
5078 Monk Chiang <sh.chiang04@gmail.com>
5079
5080 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5081 (nds32_expand_store_multiple): Move to ...
5082 (nds32_expand_movmemqi): Move to ...
5083 * config/nds32/nds32-memory-manipulation.c: ... here.
5084
5085 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5086 Kito Cheng <kito@0xlab.org>
5087 Monk Chiang <sh.chiang04@gmail.com>
5088
5089 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5090 (nds32_output_casesi_pc_relative): Move to ...
5091 (nds32_output_casesi): Move to ...
5092 (nds32_mem_format): Move to ...
5093 (nds32_output_16bit_store): Move to ...
5094 (nds32_output_16bit_load): Move to ...
5095 (nds32_output_32bit_store): Move to ...
5096 (nds32_output_32bit_load): Move to ...
5097 (nds32_output_32bit_load_s): Move to ...
5098 (nds32_output_stack_push): Move to ...
5099 (nds32_output_stack_pop): Move to ...
5100 * config/nds32/nds32-md-auxiliary.c: ... here.
5101
5102 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5103 Ling-Hua Tseng <uranus@tinlans.org>
5104
5105 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5106 the purpose of this file.
5107
5108 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5109 Kito Cheng <kito@0xlab.org>
5110 Monk Chiang <sh.chiang04@gmail.com>
5111
5112 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5113 (nds32_address_cost): Move implementation to ...
5114 * config/nds32/nds32-cost.c: ... here.
5115 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5116 (nds32_address_cost_impl): Declare.
5117
5118 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5119 Kito Cheng <kito@0xlab.org>
5120 Monk Chiang <sh.chiang04@gmail.com>
5121
5122 * config/nds32/nds32.c
5123 (nds32_consecutive_registers_load_store_p): Move to ...
5124 (nds32_valid_multiple_load_store): Move to ...
5125 (nds32_valid_stack_push_pop): Move to ...
5126 (nds32_can_use_bclr_p): Move to ...
5127 (nds32_can_use_bset_p): Move to ...
5128 (nds32_can_use_btgl_p): Move to ...
5129 (nds32_can_use_bitci_p): Move to ...
5130 * config/nds32/nds32-predicates.c: ... here.
5131
5132 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5133 Kito Cheng <kito@0xlab.org>
5134 Monk Chiang <sh.chiang04@gmail.com>
5135
5136 * config/nds32/nds32.c
5137 (nds32_expand_builtin_null_ftype_reg): Move to ...
5138 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5139 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5140 (nds32_init_builtins): Move implementation to ...
5141 (nds32_expand_builtin): Move implementation to ...
5142 * config/nds32/nds32-intrinsic.c: ... here.
5143 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5144 (nds32_expand_builtin_impl): Declare.
5145
5146 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5147 Kito Cheng <kito@0xlab.org>
5148 Monk Chiang <sh.chiang04@gmail.com>
5149
5150 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5151 (nds32_emit_section_tail_template): Move to ...
5152 (nds32_emit_isr_jmptbl_section): Move to ...
5153 (nds32_emit_isr_vector_section): Move to ...
5154 (nds32_emit_isr_reset_conten): Move to ...
5155 (nds32_check_isr_attrs_conflict): Move to ...
5156 (nds32_construct_isr_vectors_information): Move to ...
5157 (nds32_asm_file_start): Move implementation to ...
5158 (nds32_asm_file_end): Move implementation to ...
5159 * config/nds32/nds32-isr.c: ... here.
5160 * config/nds32/nds32-protos.h
5161 (nds32_check_isr_attrs_conflict): Declare.
5162 (nds32_construct_isr_vectors_information): Declare.
5163 (nds32_asm_file_start_for_isr): Declare.
5164 (nds32_asm_file_end_for_isr): Declare.
5165
5166 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5167 Kito Cheng <kito@0xlab.org>
5168 Monk Chiang <sh.chiang04@gmail.com>
5169
5170 * config.gcc (nds32*): Add new modules to extra_objs.
5171 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5172 (nds32be-*-*): Likewise.
5173 * config/nds32/nds32-cost.c: New file.
5174 * config/nds32/nds32-fp-as-gp.c: New file.
5175 * config/nds32/nds32-intrinsic.c: New file.
5176 * config/nds32/nds32-isr.c: New file.
5177 * config/nds32/nds32-md-auxiliary.c: New file.
5178 * config/nds32/nds32-memory-manipulation.c: New file.
5179 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5180 * config/nds32/nds32-predicates.c: New file.
5181 * config/nds32/t-nds32: New file.
5182
5183 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5184
5185 PR tree-optimization/61682
5186 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5187 using cases and when one of the operands is equal to 1.
5188
5189 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5190
5191 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5192 ashr<mode>3): Correct mode of operands[2].
5193 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5194 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5195 Correct mode of operands[2]. Fix split condition.
5196
5197 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5198
5199 * arm.md (arch): Add armv6_or_vfpv3.
5200 (arch_enabled): Add test for the above.
5201 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5202 on VFP9.
5203 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5204
5205 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5206
5207 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5208 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5209 HWI 1 and negate the unsigned value.
5210 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5211 use AND instead of shift.
5212 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5213
5214 2014-07-03 Marek Polacek <polacek@redhat.com>
5215
5216 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5217 (-fsanitize=float-divide-by-zero): Move to the table with
5218 -fsanitize=undefined suboptions.
5219 (-fsanitize=float-cast-overflow): Likewise.
5220
5221 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5222
5223 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5224 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5225 endianness.
5226
5227 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5228
5229 * loop-invariant.c (struct invariant): Add a new member: eqno;
5230 (find_identical_invariants): Update eqno;
5231 (create_new_invariant): Init eqno;
5232 (get_inv_cost): Compute comp_cost with eqno;
5233
5234 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5235
5236 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5237 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5238 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5239 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5240 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5241
5242 2014-07-02 Christian Bruel <christian.bruel@st.com>
5243
5244 PR target/29349
5245 PR target/53513
5246 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5247 (make_preds_opaque): Delete.
5248 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5249 (commit_mode_sets): New function.
5250 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5251 Process all modes at once.
5252 * basic-block.h (pre_edge_lcm_avs): Declare.
5253 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5254 Call clear_aux_for_edges. Fix comments.
5255 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5256 (pre_edge_rev_lcm): Idem.
5257 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5258 parameter.
5259 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5260 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5261 Idem.
5262 * config/i386/i386.c (x96_emit_mode_set): Idem.
5263 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5264 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5265 (fpscr_toggle) Disallow from delay slot.
5266 * target.def (emit_mode_set): Add prev_mode parameter.
5267 * doc/tm.texi: Regenerate.
5268
5269 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5270
5271 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5272 variable i.
5273
5274 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5275
5276 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5277 vtable_pointer_value_to_vtable): Constify.
5278 (contains_polymorphic_type_p): Declare.
5279 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5280 vtable_pointer_value_to_vtable): Constify.
5281 (contains_polymorphic_type_p): New predicate.
5282 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5283 polymorphic types.
5284 (ipa_set_ancestor_jf): Likewise.
5285 (detect_type_change): Return false in easy cases.
5286 (compute_complex_assign_jump_func): Require type to contain
5287 polymorphic type.
5288 (compute_known_type_jump_func): Likewise.
5289
5290 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5291
5292 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5293 Remove.
5294 (type_in_anonymous_namespace_p): Constify argument.
5295 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5296 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5297 (main_odr_variant): New function.
5298 (hash_type_name): Make static; update assert; do not ICE on
5299 non-records.
5300 (types_same_for_odr): Bring here from tree.c; simplify and remove
5301 old structural comparing code that doesn't work for templates.
5302 (odr_hasher::equal): Update assert.
5303 (add_type_duplicate): Return true when bases should be computed;
5304 replace incomplete loader by complete; do not output duplicated
5305 warnings; do not ICE on non-records; set odr_violated flag.
5306 (get_odr_type): Be ready to replace incomplete type by complete
5307 one; work on ODR variants instead of main variants; reorder item
5308 in array so bases have still smaller indexes.
5309 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5310 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5311
5312 2014-07-01 Cary Coutant <ccoutant@google.com>
5313
5314 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5315 lookup.
5316 (resolve_addr_in_expr): When replacing the rtx in a location list
5317 entry, get a new address table entry.
5318 (dwarf2out_finish): Call index_location_lists even if there are no
5319 addr_index_table entries yet.
5320
5321 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5322
5323 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5324 change for not being obvious.
5325
5326 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5327
5328 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5329 unused argument.
5330
5331 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5332
5333 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5334 (vcagt_f64): Likewise.
5335 (vcale_f64): Likewise.
5336 (vcaled_f64): Likewise.
5337 (vcales_f32): Likewise.
5338 (vcalt_f64): Likewise.
5339 (vcaltd_f64): Likewise.
5340 (vcalts_f32): Likewise.
5341
5342 2014-07-01 Marek Polacek <polacek@redhat.com>
5343
5344 * doc/invoke.texi: Document -Wint-conversion.
5345
5346 2014-07-01 Marek Polacek <polacek@redhat.com>
5347
5348 PR c/58286
5349 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5350
5351 2014-07-01 Martin Liska <mliska@suse.cz>
5352
5353 IPA REF alias refactoring
5354 * cgraph.h (iterate_direct_aliases): New function.
5355 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5356 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5357 FOR_EACH_ALIAS added.
5358 (cgraph_for_node_and_aliases): Likewise.
5359 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5360 * ipa-inline.c (reset_edge_caches): Likewise.
5361 (update_caller_keys): Likewise.
5362 * trans-mem.c (ipa_tm_execute): Likewise.
5363 *varpool.c (varpool_analyze_node): Likewise.
5364 (varpool_for_node_and_aliases): Likewise.
5365 * ipa-ref.h (first_alias): New function.
5366 (last_alias): Likewise.
5367 (has_aliases_p): Likewise.
5368 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5369 is sensitive to IPA_REF_ALIASes.
5370 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5371 are put at the beginning of the list.
5372 (symtab_node::iterate_direct_aliases): New function.
5373
5374 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5375
5376 Revert:
5377 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5378 type is complete.
5379 (write_ts_type_common_tree_pointers): Do not stream fields not set
5380 for incomplete types; do not stream duplicated fields for variants;
5381 sanity check that variant and type match.
5382 (write_ts_type_non_common_tree_pointers): Likewise.
5383 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5384 TYPE_SIZE whether type is complete.
5385 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5386 write_ts_type_common_tree_pointers
5387 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5388
5389 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5390
5391 * var-tracking.c (add_stores): Return instead of asserting if old
5392 and new values for conditional store are the same.
5393
5394 2014-06-30 Richard Henderson <rth@redhat.com>
5395
5396 PR rtl-opt/61608
5397 PR target/39284
5398 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5399 the cfg if there were any changes.
5400 * passes.def: Revert move of peephole2 after reorder_blocks;
5401 move duplicate_computed_gotos before peephole2.
5402
5403 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5404
5405 * except.c (emit_note_eh_region_end): New helper function.
5406 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5407 emit EH_REGION_END note.
5408 * jump.c (cleanup_barriers): Do not split a call and its
5409 corresponding CALL_ARG_LOCATION note.
5410
5411 2014-06-30 Jeff Law <law@redhat.com>
5412
5413 PR tree-optimization/61607
5414 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5415 deeper into the SSA_NAME_VALUE chain.
5416
5417 2014-06-30 Marek Polacek <polacek@redhat.com>
5418
5419 * convert.c (convert_to_integer): Don't instrument conversions if the
5420 function has no_sanitize_undefined attribute.
5421 * ubsan.c: Don't run the ubsan pass if the function has
5422 no_sanitize_undefined attribute.
5423
5424 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5425
5426 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5427 -fsanitize=undefined suboptions.
5428
5429 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5430
5431 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5432 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5433 against bigendian and adjust indices.
5434
5435 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5436
5437 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5438
5439 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5440
5441 PR target/61633
5442 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5443 Add alternative; make early clobber. Adjust both split patterns
5444 to use operand 0 as the working register.
5445
5446 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5447
5448 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5449 as ira_object_id_map might be NULL, or 1.
5450
5451 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5452
5453 * loop-invariant.c (get_inv_cost): Handle register class.
5454 (gain_for_invariant): Check the register pressure of the inv
5455 and its overlapped register class, other than all.
5456
5457 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5458
5459 * doc/invoke.texi (Optimize Options): Fix descriptions of
5460 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5461
5462 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5463
5464 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5465 documentation.
5466
5467 2014-06-29 Tobias Grosser <tobias@grosser.es>
5468
5469 PR bootstrap/61650
5470 * graphite-isl-ast-to-gimple.c: Add missing guards.
5471
5472 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5473
5474 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5475 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5476 * flag-types.h: Add new enum fgraphite_generator.
5477 * graphite-isl-ast-to-gimple.c: New.
5478 * graphite-isl-ast-to-gimple.h: New.
5479 * graphite.c (graphite_transform_loops): Add choice of Graphite
5480 code generator, which depends on flag_graphite_code_gen.
5481
5482 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5483
5484 * graphite-dependences.c (subtract_commutative_associative_deps):
5485 Add NULL checking of the following variables: must_raw_no_source,
5486 may_raw_no_source, must_war_no_source, may_war_no_source,
5487 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5488 must_war, may_war, must_waw, may_waw.
5489
5490 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5491
5492 * graphite-clast-to-gimple.c: gloog is renamed to
5493 graphite_regenerate_ast_cloog. gloog_error is renamed to
5494 graphite_regenerate_error.
5495 * graphite-clast-to-gimple.h: The definition of the struct
5496 bb_pbb_def is moved to graphite-htab.h.
5497 Add inclusion of the hash-table.h.
5498 * graphite-htab.h: The declaration of the function gloog is moved
5499 to graphite-clast-to-gimple.h and renamed to
5500 graphite_regenerate_ast_cloog.
5501 * graphite.c (graphite_transform_loops): gloog is renamed
5502 to graphite_regenerate_ast_cloog.
5503
5504 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5505
5506 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5507 type is complete.
5508 (write_ts_type_common_tree_pointers): Do not stream fields not set
5509 for incomplete types; do not stream duplicated fields for variants;
5510 sanity check that variant and type match.
5511 (write_ts_type_non_common_tree_pointers): Likewise.
5512 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5513 TYPE_SIZE whether type is complete.
5514 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5515 write_ts_type_common_tree_pointers
5516 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5517
5518 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5519
5520 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5521
5522 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5523
5524 * tree-inline.c (remap_type_1): Do not duplicate fields
5525 that are shared in between type and its main variant.
5526
5527 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5528
5529 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5530 of the type.
5531 (ipa_set_ancestor_jf) Likewise.
5532 (check_stmt_for_type_change): Check that we work on main variant.
5533 (detect_type_change): Look into main variant.
5534 (compute_known_type_jump_func): Check that main variant has BINFO.
5535
5536 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5537
5538 * ipa-devirt.c (set_type_binfo): New function.
5539 (add_type_duplicate): Use it.
5540 (get_odr_type): Sanity check that binfos points to main variants.
5541 (get_class_context): Be sure the context's outer_type is main variant.
5542 (contains_type_p): Walk main variant.
5543 (get_polymorphic_call_info_for_decl): Set outer_type to be
5544 main variant.
5545 (get_polymorphic_call_info): Likewise.
5546 (possible_polymorphic_call_targets): Sanity check that we operate
5547 on main variant.
5548
5549 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5550
5551 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5552
5553 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5554
5555 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5556 accidental change due to wide-int branch merge.
5557
5558 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5559
5560 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5561 compressed debug support.
5562 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5563 * configure: Regenerate.
5564 * config.in: Regenerate.
5565 * common.opt (compressed_debug_sections): New enum.
5566 (gz, gz=): New options.
5567 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5568 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5569 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5570 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5571 LINK_COMPRESS_DEBUG_SPEC.
5572 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5573 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5574 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5575 (Debugging Options): Document -gz[=type].
5576
5577 2014-06-27 Martin Jambor <mjambor@suse.cz>
5578
5579 PR ipa/61160
5580 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5581 args_to_skip, use those from node instead. Copy args_to_skip and
5582 combined_args_to_skip from node to the new thunk.
5583 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5584 (cgraph_create_virtual_clone): Moved computation of
5585 combined_args_to_skip...
5586 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5587
5588 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5589
5590 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5591 redundant diagnostic machinary.
5592
5593 2014-06-27 Richard Biener <rguenther@suse.de>
5594
5595 * tree-ssa-math-opts.c (bswap_replace): Fix
5596 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5597
5598 2014-06-27 Martin Liska <mliska@suse.cz>
5599
5600 * gimple.h (gimple_location_safe): New function introduced.
5601 * cgraphunit.c (walk_polymorphic_call_targets): Usage
5602 of gimple_location_safe replaces gimple_location.
5603 (gimple_fold_call): Likewise.
5604 * ipa-devirt.c (ipa_devirt): Likewise.
5605 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5606 * ipa.c (walk_polymorphic_call_targets): Likewise.
5607 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5608
5609 2014-06-27 Jakub Jelinek <jakub@redhat.com>
5610
5611 PR tree-optimization/57233
5612 PR tree-optimization/61299
5613 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
5614 functions.
5615 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
5616 would be lowered to scalar shifts, check if corresponding
5617 shifts and vector BIT_IOR_EXPR are supported and don't lower
5618 or lower just to narrower vector type in that case.
5619 * expmed.c (expand_shift_1): Fix up handling of vector
5620 shifts and rotates.
5621
5622 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
5623
5624 PR target/61586
5625 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
5626
5627 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
5628
5629 * doc/invoke.texi (-fsemantic-interposition): Document.
5630 * common.opt (fsemantic-interposition): New flag.
5631 * varasm.c (decl_replaceable_p): Use it.
5632
5633 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5634
5635 PR target/61542
5636 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
5637 extraction other than index 3.
5638
5639 2014-06-26 Teresa Johnson <tejohnson@google.com>
5640
5641 * doc/invoke.texi: Fix typo.
5642 * dumpfile.c: Add support for documented -fdump-* options
5643 optimized/missed/note/optall.
5644
5645 2014-06-26 Martin Jambor <mjambor@suse.cz>
5646
5647 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
5648 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
5649 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
5650 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
5651 * opts.c (default_options_optimization): Set
5652 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
5653 * doc/invoke.texi (allow-load-data-races)
5654 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
5655 (allow-store-data-races): Document the new default.
5656
5657 2014-06-26 Martin Jambor <mjambor@suse.cz>
5658
5659 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
5660 renamed to ipa_impossible_devirt_target. Fix typo.
5661 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
5662 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
5663 ipa_impossible_devirt_target.
5664
5665 2014-06-26 Richard Biener <rguenther@suse.de>
5666
5667 PR tree-optimization/61607
5668 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
5669 explaining why we restrict copies on loop depth.
5670 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5671 on loop depth.
5672 (record_equivalences_from_phis): Instead add it here.
5673
5674 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
5675
5676 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
5677 (LTO_WRAPPER_OBJS): New variable.
5678 (lto-wrapper$(exeext)): Use it.
5679 * collect2.c: Include "collect-utils.h".
5680 (verbose, debug): Remove variables.
5681 (at_file_supplied): No longer static.
5682 (tool_name): New variable.
5683 (do_wait, fork_execute, maybe_unlink): Don't declare.
5684 (tool_cleanup): No longer static.
5685 (notice): Remove function.
5686 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
5687 fork_execute calls.
5688 (collect_wait, do_wait, collect_execute): Remove functions.
5689 (maybe_unlink): No longer static.
5690 * collect2.h (verbose, debug): Don't declare.
5691 (at_file_supplied): Declare.
5692 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
5693 changed.
5694 (collect_execute): Replace with implementation from collect2, plus a
5695 new arg use_atfile. All callers changed.
5696 (collect_wait): Replace with implementation from collect2.
5697 (maybe_unlink_file): Remove function.
5698 (fork_execute): Replace with implementation from collect2, plus a
5699 new arg use_atfile. All callers changed.
5700 (do_wait): Add call to utils_cleanup to the error path.
5701 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
5702 (tool_cleanup): Adjust declarations.
5703 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
5704 * tlink.c: Include "collect-utils.h".
5705 (tlink_execute): New arg use_atfile. All callers changed.
5706 (tlink_init, tlink_execute): Remove declarations.
5707
5708 * collect-utils.c (save_temps): New variable.
5709 (do_wait): Use it instead of debug. Use fatal_error.
5710 * collect-utils.h (save_temps): Declare.
5711 * collect2.c (verbose): Rename from vflag. All uses changed.
5712 (tool_cleanup): New function, copied from collect_atexit.
5713 (collect_atexit, handler): Just call it.
5714 * collect2.h (verbose): Declaration renamed from vflag.
5715 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
5716 debug.
5717
5718 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
5719 (lto-wrapper$(exeext)): Link with collect-utils.o.
5720 * collect-utils.c: New file.
5721 * collect-utils.h: New file.
5722 * lto-wrapper.c: Include "collect-utils.h".
5723 (args_name): Delete variable.
5724 (tool_name): New variable.
5725 (tool_cleanup): New function.
5726 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
5727 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
5728 (fork_execute): Remove functions.
5729
5730 2014-06-26 Nick Clifton <nickc@redhat.com>
5731
5732 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
5733
5734 * doc/extend.texi (Function Attributes): Fix typo in description
5735 of RX vector attribute.
5736
5737 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5738
5739 * config.gcc (supported_defaults): Error when passing either
5740 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
5741
5742 2014-06-26 Richard Biener <rguenther@suse.de>
5743
5744 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5745 propagating volatile pointers.
5746
5747 2014-06-26 Richard Biener <rguenther@suse.de>
5748
5749 PR tree-optimization/61607
5750 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
5751 loop if we redirected its latch edge.
5752 (thread_block_1): Do not cancel loops prematurely.
5753
5754 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
5755
5756 * toplev.c (backend_init_target): Move init_emit_regs and
5757 init_regs to...
5758 (backend_init) ... here; skip ira_init_once and backend_init_target.
5759 (target_reinit) ... and here; clear
5760 this_target_rtl->lang_dependent_initialized.
5761 (lang_dependent_init_target): Clear
5762 this_target_rtl->lang_dependent_initialized;
5763 break out rtl initialization to ...
5764 (initialize_rtl): ... here; call also backend_init_target
5765 and ira_init_once.
5766 * toplev.h (initialize_rtl): New function.
5767 * function.c: Include toplev.h
5768 (init_function_start): Call initialize_rtl.
5769 * rtl.h (target_rtl): Add target_specific_initialized,
5770 lang_dependent_initialized.
5771
5772 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
5773 Jakub Jelinek <jakub@redhat.com>
5774
5775 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
5776
5777 2014-06-25 Tom de Vries <tom@codesourcery.com>
5778
5779 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
5780
5781 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5782
5783 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
5784 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
5785 Issue a strict overflow warning if appropriate.
5786
5787 2014-06-25 Martin Liska <mliska@suse.cz>
5788
5789 IPA REF refactoring
5790 * Makefile.in: Removed header file (ipa-ref-inline.h).
5791 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
5792 called.
5793 (cgraph_speculative_call_info): Likewise.
5794 (cgraph_for_node_thunks_and_aliases): Likewise.
5795 (cgraph_for_node_and_aliases): Likewise.
5796 (verify_cgraph_node): Likewise.
5797 * cgraph.h: Batch of IPA REF functions become member functions of
5798 symtab_node: add_reference, maybe_add_reference, clone_references,
5799 clone_referring, clone_reference, find_reference,
5800 remove_stmt_references, remove_all_references,
5801 remove_all_referring, dump_references, dump_referring,
5802 has_alias_p, iterate_reference, iterate_referring.
5803 * cgraphbuild.c (record_reference): New IPA REF function used.
5804 (record_type_list): Likewise.
5805 (record_eh_tables): Likewise.
5806 (mark_address): Likewise.
5807 (mark_load): Likewise.
5808 (mark_store): Likewise.
5809 (pass_build_cgraph_edges): Likewise.
5810 (rebuild_cgraph_edge): Likewise.
5811 (cgraph_rebuild_references): Likewise.
5812 (pass_remove_cgraph_callee_edges): Likewise.
5813 * cgraphclones.c (cgraph_clone_node): Likewise.
5814 (cgraph_create_virtual_clone): Likewise.
5815 (cgraph_materialize_clone): Likewise.
5816 (cgraph_materialize_all_clones): Likewise.
5817 * cgraphunit.c (cgraph_reset_node): Likewise.
5818 (cgraph_reset_node): Likewise.
5819 (analyze_function): Likewise.
5820 (assemble_thunks_and_aliases): Likewise.
5821 (expand_function): Likewise.
5822 * ipa-comdats.c (propagate_comdat_group): Likewise.
5823 (enqueue_references): Likewise.
5824 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
5825 (create_specialized_node): Likewise.
5826 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
5827 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
5828 * ipa-inline.c (reset_edge_caches): Likewise.
5829 (update_caller_keys): Likewise.
5830 (execute): Likewise.
5831 * ipa-prop.c (remove_described_reference): Likewise.
5832 (propagate_controlled_uses): Likewise.
5833 (ipa_edge_duplication_hook): Likewise.
5834 (ipa_modify_call_arguments): Likewise.
5835 * ipa-pure-const.c (propagate_pure_const): Likewise.
5836 * ipa-ref-inline.h: Header file removed, functions moved
5837 to symtab_node class.
5838 * ipa-ref.c (remove_reference): New class member function.
5839 (cannot_lead_to_return): New class member function.
5840 (referring_ref_list): Likewise.
5841 (referred_ref_list): Likewise.
5842 Rest of functions moved to symtab_node class.
5843 * ipa-ref.h: New member functions remove_reference,
5844 cannot_lead_to_return, referring_ref_list, referred_ref_list added
5845 to ipa_ref class.
5846 ipa_ref_list class has new member functions: first_reference,
5847 first_referring, clear, nreferences.
5848 * ipa-reference.c (analyze_function): New IPA REF function used.
5849 (write_node_summary_p): Likewise.
5850 (ipa_reference_write_optimization_summary): Likewise.
5851 * ipa-split.c (split_function): Likewise.
5852 * ipa-utils.c (ipa_reverse_postorder): Likewise.
5853 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
5854 (function_and_variable_visibility): Likewise.
5855 * ipa.c (has_addr_references_p): Likewise.
5856 (process_references): Argument type changed.
5857 (symtab_remove_unreachable_nodes): New IPA REF function used.
5858 (process_references): Likewise.
5859 (set_writeonly_bit): Likewise.
5860 * lto-cgraph.c: Implementation of new symtab_node member functions
5861 that uses new IPA REF functions.
5862 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
5863 function used.
5864 * lto-streamer-out.c (output_symbol_p): Likewise.
5865 * lto-streamer.h (referenced_from_this_partition_p): Argument type
5866 changed.
5867 * symtab.c: Implementation of new IPA REF API.
5868 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
5869 (ipa_tm_create_version): Likewise.
5870 (ipa_tm_execute): Likewise.
5871 * tree-emutls.c (gen_emutls_addr): Likewise.
5872 * tree-inline.c (copy_bb): Likewise.
5873 (delete_unreachable_blocks_update_callgraph): Likewise.
5874 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
5875 (varpool_for_node_and_aliases): Likewise.
5876
5877 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5878
5879 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
5880
5881 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5882
5883 PR bootstrap/61598
5884 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5885 tree_node * instead of tree_node *.
5886 (fold): Adjust.
5887 (print_fold_checksum): Likewise.
5888 (fold_check_failed): Likewise.
5889 (debug_fold_checksum): Likewise.
5890 (fold_build1_stat_loc): Likewise.
5891 (fold_build2_stat_loc): Likewise.
5892 (fold_build3_stat_loc): Likewise.
5893 (fold_build_call_array_loc): Likewise.
5894
5895 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
5896
5897 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
5898 implementation with call to...
5899 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
5900 function.
5901 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
5902 Declare.
5903
5904 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
5905
5906 PR tree-optimization/57742
5907 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
5908 after replacing the statement.
5909
5910 2014-06-25 Nick Clifton <nickc@redhat.com>
5911
5912 * config/v850/v850.c (GHS_default_section_names): Change to const
5913 char * type.
5914 (GHS_current_section_names): Likewise.
5915 (v850_insert_attributes): Do not build strings, just assign the
5916 names directly. Change the type of 'chosen_section' to const
5917 char*.
5918 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
5919 directly to the array entry.
5920 * config/v850/v850.h (GHS_default_section_names): Change to const
5921 char * type.
5922 (GHS_current_section_names): Likewise.
5923
5924 2014-06-25 Jakub Jelinek <jakub@redhat.com>
5925
5926 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
5927 (LANG_HOOKS_DECLS): Add it.
5928 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
5929 has correct type.
5930 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
5931 * langhooks.h (struct lang_hooks_for_decls): Add
5932 omp_clause_linear_ctor hook.
5933 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
5934 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
5935 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
5936 combined simd loop use omp_clause_linear_ctor hook.
5937
5938 2014-06-24 Cong Hou <congh@google.com>
5939
5940 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
5941 pattern recognition.
5942 (type_conversion_p): PROMOTION is true if it's a type promotion
5943 conversion, and false otherwise. Return true if the given expression
5944 is a type conversion one.
5945 * tree-vectorizer.h: Adjust the number of patterns.
5946 * tree.def: Add SAD_EXPR.
5947 * optabs.def: Add sad_optab.
5948 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
5949 * expr.c (expand_expr_real_2): Likewise.
5950 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5951 * gimple.c (get_gimple_rhs_num_ops): Likewise.
5952 * optabs.c (optab_for_tree_code): Likewise.
5953 * tree-cfg.c (estimate_operator_cost): Likewise.
5954 * tree-ssa-operands.c (get_expr_operands): Likewise.
5955 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
5956 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
5957 * doc/generic.texi: Add document for SAD_EXPR.
5958 * doc/md.texi: Add document for ssad and usad.
5959
5960 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5961
5962 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
5963 qualification in cast.
5964
5965 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
5966
5967 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
5968 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
5969 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
5970 (tree_function_decl): ... here.
5971 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
5972 streaming of vindex to ...
5973 (write_ts_function_decl_tree_pointers): ... here.
5974 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
5975 Do not stream DECL_VINDEX.
5976 (lto_input_ts_function_decl_tree_pointers): Stream it here.
5977
5978 2014-06-24 Catherine Moore <clm@codesourcery.com>
5979 Sandra Loosemore <sandra@codesourcery.com>
5980
5981 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
5982 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
5983 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
5984
5985 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5986
5987 * doc/invoke.texi (Warning Options): Remove duplicated
5988 -Wmaybe-uninitialized.
5989
5990 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5991
5992 PR tree-optimization/57742
5993 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
5994 (handle_builtin_malloc, handle_builtin_memset): New functions.
5995 (strlen_optimize_stmt): Call them.
5996 * passes.def: Move strlen after loop+dom but before vrp.
5997
5998 2014-06-24 Jakub Jelinek <jakub@redhat.com>
5999
6000 PR target/61570
6001 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
6002 model family 6 CPU with has_longmode never use a CPU without
6003 64-bit support.
6004
6005 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
6006
6007 PR target/61570
6008 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6009 the last change.
6010
6011 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6012
6013 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6014 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6015 pointer_map.
6016 * hash-map.h: New file.
6017 * ipa-comdats.c: Use hash_map instead of pointer_map.
6018 * ipa.c: Likewise.
6019 * lto-section-out.c: Adjust.
6020 * lto-streamer.h: Replace pointer_map with hash_map.
6021 * symtab.c (verify_symtab): Likewise.
6022 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6023 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6024 * tree-streamer.h: Likewise.
6025 * tree-streamer.c: Adjust.
6026 * pointer-set.h: Remove pointer_map.
6027
6028 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6029
6030 * hash-table.h: Add a template arg to choose between storing values
6031 and storing pointers to values, and then provide partial
6032 specializations for both.
6033 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6034 should store, not the type values should point to.
6035 * tree-into-ssa.c (var_info_hasher): Likewise.
6036 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6037 * tree-complex.c: Adjust.
6038 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6039 table instead of int_tree_map *.
6040 * tree-parloops.c: Adjust.
6041 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6042 type is being stored.
6043 * tree-vectorizer.c: Adjust.
6044
6045 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6046
6047 * hash-table.h: Remove a layer of indirection from hash_table so that
6048 it contains the hash table's data instead of a pointer to the data.
6049 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6050 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6051 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6052 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6053 fold-const.c, gcse.c, ggc-common.c,
6054 gimple-ssa-strength-reduction.c, gimplify.c,
6055 graphite-clast-to-gimple.c, graphite-dependences.c,
6056 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6057 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6058 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6059 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6060 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6061 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6062 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6063 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6064 tree-ssa-live.c, tree-ssa-loop-im.c,
6065 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6066 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6067 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6068 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6069 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6070 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6071 vtable-verify.c, vtable-verify.h: Adjust.
6072
6073 2014-06-24 Richard Biener <rguenther@suse.de>
6074
6075 PR tree-optimization/61572
6076 * tree-ssa-sink.c (statement_sink_location): Do not sink
6077 loads from hard registers.
6078
6079 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6080
6081 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6082 not mentioned in clauses use private clause if the iterator is
6083 declared in #pragma omp for simd, and when adding lastprivate
6084 instead, add it to the outer #pragma omp for too. Diagnose
6085 if the variable is private in outer context. For simd collapse > 1
6086 loops, replace all iterators with temporaries.
6087 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6088 same even in collapse > 1 loops.
6089
6090 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6091 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6092 non-NULL.
6093 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6094 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6095 non-NULL.
6096 (gimplify_adjust_omp_clauses): Likewise.
6097 * omp-low.c (lower_rec_simd_input_clauses,
6098 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6099 safelen the same as safelen(1).
6100 * tree-nested.c (convert_nonlocal_omp_clauses,
6101 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6102 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6103 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6104 Fixup handling of GIMPLE_OMP_TARGET.
6105 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6106 GIMPLE_OMP_TARGET.
6107
6108 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6109
6110 PR tree-optimization/61554
6111 * tree-ssa-propagate.c: Include "bitmap.h".
6112 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6113 properly update constructor/destructor.
6114 (substitute_and_fold_dom_walker::before_dom_children):
6115 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6116 need_eh_cleaup instead.
6117 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6118 need_eh_cleanup.
6119
6120 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6121
6122 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6123 * tree-pass.h (make_pass_ipa_single_use): New pass.
6124 * cgraph.h (used_by_single_function): New flag.
6125 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6126 Stream it.
6127 * passes.def (pass_ipa_single_use): Scedule.
6128 * ipa.c (BOTTOM): New macro.
6129 (meet): New function
6130 (propagate_single_user): New function.
6131 (ipa_single_use): New function.
6132 (pass_data_ipa_single_use): New pass.
6133 (pass_ipa_single_use): New pass.
6134 (pass_ipa_single_use::gate): New gate.
6135 (make_pass_ipa_single_use): New function.
6136
6137 2014-06-23 Kai Tietz <ktietz@redhat.com>
6138
6139 PR target/39284
6140 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6141 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6142
6143 2014-06-23 Richard Biener <rguenther@suse.de>
6144
6145 * tree-ssa-loop.c (gate_loop): New function.
6146 (pass_tree_loop::gate): Call it.
6147 (pass_data_tree_no_loop, pass_tree_no_loop,
6148 make_pass_tree_no_loop): New.
6149 * tree-vectorizer.c: Include tree-scalar-evolution.c
6150 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6151 required.
6152 (pass_slp_vectorize::clone): New method.
6153 * timevar.def (TV_TREE_NOLOOP): New.
6154 * tree-pass.h (make_pass_tree_no_loop): Declare.
6155 * passes.def (pass_tree_no_loop): New pass group with
6156 SLP vectorizer.
6157
6158 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6159
6160 PR target/61570
6161 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6162 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6163
6164 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6165
6166 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6167 "yes" where needed.
6168
6169 2014-06-23 Alan Modra <amodra@gmail.com>
6170
6171 PR bootstrap/61583
6172 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6173 to zero on debug statements.
6174
6175 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6176
6177 PR target/60825
6178 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6179 Ignore third operand if present by marking qualifier_internal.
6180
6181 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6182
6183 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6184 vector extension.
6185 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6186 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6187 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6188 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6189 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6190 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6191 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6192 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6193 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6194 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6195 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6196 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6197 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6198 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6199 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6200 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6201 logic in GCC vector extensions
6202
6203 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6204 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6205 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6206 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6207 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6208 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6209 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6210 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6211 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6212 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6213
6214 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6215
6216 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6217 extensions.
6218
6219 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6220 (vget_low_s64): Use __GET_LOW macro.
6221 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6222 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6223 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6224 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6225 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6226
6227 (vcombine_s64): Use GCC vector extensions; remove cast.
6228 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6229 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6230 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6231 Fix type signature; remove cast.
6232
6233 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6234
6235 PR target/60825
6236 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6237 V1DFmode.
6238 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6239 add V1DFmode
6240 (BUILTIN_VD1): New.
6241 (BUILTIN_VD_RE): Remove.
6242 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6243 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6244 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6245 variant but not df.
6246 (vreinterpretv1df*, vreinterpret*v1df): New.
6247 (vreinterpretdf*, vreinterpret*df): Remove.
6248 * config/aarch64/aarch64-simd.md (aarch64_create,
6249 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6250 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6251 (VD1): New.
6252 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6253 (vcreate_f64): Remove cast, use v1df builtin.
6254 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6255 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6256 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6257 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6258 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6259 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6260 add range check using __builtin_aarch64_im_lane_boundsi.
6261 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6262 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6263 type signature, use gcc vector extensions.
6264 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6265 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6266 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6267 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6268 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6269 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6270 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6271 vreinterpret_u64_f64): Use v1df builtin not df.
6272
6273 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6274
6275 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6276 vector registers.
6277
6278 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6279
6280 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6281 priority directly.
6282
6283 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6284
6285 * loop-invariant.c (pre_check_invariant_p): New function.
6286 (find_invariant_insn): Call pre_check_invariant_p.
6287
6288 2014-06-22 Richard Henderson <rth@redhat.com>
6289
6290 PR target/61565
6291 * compare-elim.c (struct comparison): Add eh_note.
6292 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6293 a redundant comparison in a different EH region. Purge EH edges if
6294 necessary.
6295
6296 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6297
6298 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6299 (var_shift): Use it.
6300 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6301 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6302 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6303 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6304 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6305 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6306 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6307 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6308 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6309 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6310 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6311 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6312 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6313 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6314 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6315 *rotldi3_internal15be): Use the new attribute. Merge register and
6316 integer alternatives.
6317
6318 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6319
6320 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6321 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6322 split, *ashrdi3_internal3 and split): Delete, merge into...
6323 (ashr<mode>3): New expander.
6324 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6325 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6326
6327 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6328
6329 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6330 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6331 *rotldi3_internal3 and split): Delete, merge into...
6332 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6333 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6334 Use "rotlw" extended mnemonic.
6335
6336 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6337
6338 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6339 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6340 and split, *ashldi3_internal3 and split): Delete, merge into...
6341 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6342 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6343
6344 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6345
6346 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6347 (lshrsi3, two anonymous define_insns and define_splits,
6348 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6349 *lshrdi3_internal3 and split): Delete, merge into...
6350 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6351 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6352
6353 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6354
6355 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6356 Remove "O" alternative.
6357
6358 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6359
6360 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6361 (mips_move_from_gpr_cost): Likewise.
6362 (mips_register_move_cost): Update accordingly.
6363 (mips_secondary_reload_class): Remove name of in_p.
6364
6365 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6366
6367 PR target/61503
6368 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6369 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6370
6371 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6372
6373 * config/nios2/nios2.c: Include "builtins.h".
6374
6375 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6376
6377 * cgraph.h (tls_model_names): New variable.
6378 * print-tree.c (print_node): Simplify.
6379 * varpool.c (tls_model_names): New variable.
6380 (dump_varpool_node): Output tls model.
6381
6382 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6383
6384 * ipa-visibility.c (function_and_variable_visibility): Disable
6385 temporarily local aliases for some targets.
6386
6387 2014-06-20 Marek Polacek <polacek@redhat.com>
6388
6389 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6390 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6391 into SANITIZE_UNDEFINED.
6392 * doc/invoke.texi: Describe -fsanitize=bounds.
6393 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6394 functions created in the FEs.
6395 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6396 (expand_UBSAN_BOUNDS): New function.
6397 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6398 * internal-fn.h: Don't define internal functions here.
6399 * opts.c (common_handle_option): Add -fsanitize=bounds.
6400 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6401 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6402 * tree-core.h: Define internal functions here.
6403 (struct tree_base): Add ifn field.
6404 * tree-pretty-print.c: Include "internal-fn.h".
6405 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6406 * tree.c (get_callee_fndecl): Likewise.
6407 (build_call_expr_internal_loc): New function.
6408 * tree.def (CALL_EXPR): Update description.
6409 * tree.h (CALL_EXPR_IFN): Define.
6410 (build_call_expr_internal_loc): Declare.
6411 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6412 types.
6413 (ubsan_type_descriptor): Change bool parameter to enum
6414 ubsan_print_style. Adjust the code. Add handling of
6415 UBSAN_PRINT_ARRAY.
6416 (ubsan_expand_bounds_ifn): New function.
6417 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6418 (ubsan_build_overflow_builtin): Likewise.
6419 (instrument_bool_enum_load): Likewise.
6420 (ubsan_instrument_float_cast): Likewise.
6421 * ubsan.h (enum ubsan_print_style): New enum.
6422 (ubsan_expand_bounds_ifn): Declare.
6423 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6424
6425 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6426
6427 * config/rs6000/rs6000.md: Append `DONE' to preparation
6428 statements of `bswap' pattern splitters.
6429
6430 2014-06-20 Tom de Vries <tom@codesourcery.com>
6431
6432 * target.def (call_fusage_contains_non_callee_clobbers): Update
6433 definition.
6434 * doc/tm.texi: Regenerate.
6435
6436 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6437 Max Ostapenko <m.ostapenko@partner.samsung.com>
6438
6439 PR sanitizer/61547
6440 * asan.c (instrument_strlen_call): Fixed instrumentation of
6441 trailing byte.
6442
6443 2014-06-20 Martin Jambor <mjambor@suse.cz>
6444
6445 PR ipa/61540
6446 * ipa-prop.c (impossible_devirt_target): New function.
6447 (try_make_edge_direct_virtual_call): Use it, also instead of
6448 asserting.
6449
6450 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6451 Max Ostapenko <m.ostapenko@partner.samsung.com>
6452
6453 PR sanitizer/61530
6454 * asan.c (build_check_stmt): Add condition.
6455
6456 2014-06-20 Martin Jambor <mjambor@suse.cz>
6457
6458 PR ipa/61211
6459 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6460 expanded clones.
6461
6462 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6463
6464 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6465 Update comments.
6466 (VCONQ): Make comment more helpful.
6467 (VCON): Delete.
6468 * config/aarch64/aarch64-simd.md
6469 (aarch64_sqdmulh_lane<mode>):
6470 Use VCOND for operands 2. Update lane checking and flipping logic.
6471 (aarch64_sqrdmulh_lane<mode>): Likewise.
6472 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6473 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6474 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6475 attribute of operand 3 to VCOND.
6476 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6477 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6478 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6479 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6480 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6481 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6482 define_insn.
6483 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6484 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6485 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6486 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6487 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6488 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6489 operand to VCOND. Update lane flipping and bounds checking logic.
6490 (aarch64_sqdmlal2_lane<mode>): Likewise.
6491 (aarch64_sqdmlsl_lane<mode>): Likewise.
6492 (aarch64_sqdmull_lane<mode>): Likewise.
6493 (aarch64_sqdmull2_lane<mode>): Likewise.
6494 (aarch64_sqdmlal_laneq<mode>):
6495 Replace VCON usage with VCONQ.
6496 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6497 (aarch64_sqdmlal2_laneq<mode>): Emit
6498 aarch64_sqdmlal2_laneq<mode>_internal insn.
6499 Replace VCON with VCONQ.
6500 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6501 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6502 (aarch64_sqdmull_laneq<mode>): Emit
6503 aarch64_sqdmull_laneq<mode>_internal insn.
6504 Replace VCON with VCONQ.
6505 (aarch64_sqdmull2_laneq<mode>): Emit
6506 aarch64_sqdmull2_laneq<mode>_internal insn.
6507 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6508 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6509 of 3rd argument to int16x4_t.
6510 (vqdmlalh_lane_s16): Likewise.
6511 (vqdmlslh_lane_s16): Likewise.
6512 (vqdmull_high_lane_s16): Likewise.
6513 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6514 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6515 (vqdmlsl_lane_s16): Likewise.
6516 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6517 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6518 (vqdmlals_lane_s32): Likewise.
6519 (vqdmlsls_lane_s32): Likewise.
6520 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6521 (vqdmulls_lane_s32): Likewise.
6522 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6523 (vqdmlsl_lane_s32): Likewise.
6524 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6525 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6526 (vqrdmulhh_lane_s16): Likewise.
6527 (vqdmlsl_high_lane_s16): Likewise.
6528 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6529 (vqdmlsl_high_lane_s32): Likewise.
6530 (vqrdmulhs_lane_s32): Likewise.
6531
6532 2014-06-20 Tom de Vries <tom@codesourcery.com>
6533
6534 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6535 get_call_reg_set_usage.
6536
6537 2014-06-20 Tom de Vries <tom@codesourcery.com>
6538
6539 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6540 it contains all call_used_regs.
6541
6542 2014-06-20 Tom de Vries <tom@codesourcery.com>
6543
6544 * final.c (collect_fn_hard_reg_usage): Add and use variable
6545 function_used_regs.
6546
6547 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6548
6549 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6550 (set_init_priority, get_init_priority, set_fini_priority,
6551 get_fini_priority): New methods.
6552 * tree.c (init_priority_for_decl): Remove.
6553 (init_ttree): Do not initialize init priority.
6554 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6555 (decl_priority_info): Remove.
6556 (decl_init_priority_insert): Rewrite.
6557 (decl_fini_priority_insert): Rewrite.
6558 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6559 tree_priority_map_marked_p): Remove.
6560 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6561 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6562 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6563 not output priorities.
6564 (pack_ts_function_decl_value_fields): Likewise.
6565 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6566 not input priorities.
6567 (unpack_ts_function_decl_value_fields): Likewise.
6568 * symtab.c (symbol_priority_map): Declare.
6569 (init_priority_hash): Declare.
6570 (symtab_unregister_node): Unregister from priority hash, too.
6571 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6572 New methods.
6573 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6574 (symbol_priority_info): New function.
6575 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6576 New methods.
6577 * tree-core.h (tree_priority_map): Remove.
6578
6579 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6580
6581 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6582 0xff to uint64_t before shifting it up.
6583
6584 2014-06-20 Julian Brown <julian@codesourcery.com>
6585 Chung-Lin Tang <cltang@codesourcery.com>
6586
6587 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6588 TARGET_THUMB1_ONLY. Add comments.
6589
6590 2014-06-19 Tom de Vries <tom@codesourcery.com>
6591
6592 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6593 return type to void.
6594 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6595
6596 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6597
6598 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6599 as "move", from depends_on.
6600
6601 2014-06-19 Terry Guo <terry.guo@arm.com>
6602
6603 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
6604 stage.
6605
6606 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
6607
6608 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
6609 Remove cr5.
6610 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
6611
6612 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
6613
6614 PR target/61550
6615 * config/sh/sh.c (prepare_move_operands): Don't process TLS
6616 addresses here if reload in progress or completed.
6617
6618 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6619
6620 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
6621 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
6622 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
6623 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
6624 (mips_register_priority): New function that implements the target
6625 hook TARGET_REGISTER_PRIORITY.
6626 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
6627 (mips_lra_p): Likewise for TARGET_LRA_P.
6628 (TARGET_REGISTER_PRIORITY): Define macro.
6629 (TARGET_SPILL_CLASS): Likewise.
6630 (TARGET_LRA_P): Likewise.
6631 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
6632 classes.
6633 (REG_CLASS_NAMES): Likewise.
6634 (REG_CLASS_CONTENTS): Likewise.
6635 (BASE_REG_CLASS): Use M16_SP_REGS.
6636 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
6637 New set attribute to enable alternatives depending on the register
6638 allocator used.
6639 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
6640 (*lea64): Disable pattern for MIPS16.
6641 * config/mips/mips.opt (mlra): New option.
6642
6643 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6644
6645 * lra-constraints.c (base_to_reg): New function.
6646 (process_address): Use new function.
6647
6648 2014-06-18 Tom de Vries <tom@codesourcery.com>
6649
6650 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
6651 * config/aarch64/aarch64.c
6652 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
6653 (aarch64_emit_call_insn): New function.
6654 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
6655 of emit_call_insn.
6656 * config/aarch64/aarch64.md (define_expand "call_internal")
6657 (define_expand "call_value_internal", define_expand "sibcall_internal")
6658 (define_expand "sibcall_value_internal"): New.
6659 (define_expand "call", define_expand "call_value")
6660 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
6661 expand variant and aarch64_emit_call_insn.
6662
6663 2014-06-18 Radovan Obradovic <robradovic@mips.com>
6664 Tom de Vries <tom@codesourcery.com>
6665
6666 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
6667 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6668 Redefine to true.
6669 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
6670 clobbers to CALL_INSN_FUNCTION_USAGE.
6671 (define_expand "sibcall_internal")
6672 (define_expand "sibcall_value_internal"): New.
6673 (define_expand "call", define_expand "call_value"): Add argument to
6674 arm_emit_call_insn.
6675 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
6676 (define_expand "sibcall_value"): Use sibcall_value_internal and
6677 arm_emit_call_insn.
6678
6679 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6680
6681 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
6682
6683 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6684
6685 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
6686 __udivmoddi4.
6687
6688 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6689
6690 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
6691 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
6692 annotations. Fix DWARF information.
6693
6694 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6695
6696 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
6697 __udivmoddi4, and fixups for negative operands.
6698
6699 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6700
6701 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
6702
6703 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6704
6705 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
6706 to __udivmoddi4.
6707
6708 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6709
6710 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
6711 manipulation.
6712
6713 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6714
6715 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
6716 describing register usage on function entry and exit.
6717
6718 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6719
6720 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
6721 (__aeabi_ldivmod): Fix whitespace.
6722
6723 2014-06-18 Andreas Schwab <schwab@suse.de>
6724
6725 * doc/md.texi (Standard Names): Use @itemx for grouped items.
6726 Remove blank line after @item.
6727
6728 2014-06-18 Richard Henderson <rth@redhat.com>
6729
6730 PR target/61545
6731 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
6732
6733 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6734
6735 * config/arm/arm.c (neon_vector_mem_operand): Allow register
6736 POST_MODIFY for neon loads and stores.
6737 (arm_print_operand): Output post-index register for neon loads and
6738 stores.
6739
6740 2014-06-18 Richard Biener <rguenther@suse.de>
6741
6742 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
6743
6744 2014-06-18 Richard Biener <rguenther@suse.de>
6745
6746 * tree-pass.h (make_pass_dce_loop): Remove.
6747 * passes.def: Replace pass_dce_loop with pass_dce.
6748 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
6749 changed free niter estimates and reset the scev cache.
6750 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
6751 make_pass_dce_loop): Remove.
6752 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
6753 (fini_copy_prop): Return whether something changed. Always
6754 let substitute_and_fold perform DCE and free niter estimates
6755 and reset the scev cache if so.
6756 (execute_copy_prop): If sth changed schedule cleanup-cfg.
6757 (pass_data_copy_prop): Do not unconditionally schedule
6758 cleanup-cfg or update-ssa.
6759
6760 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6761
6762 PR tree-optimization/61518
6763 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6764 reduction var is used in reduction stmt or phi-function only.
6765
6766 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6767
6768 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
6769
6770 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6771
6772 PR tree-optimization/61517
6773 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
6774 whose rhs's first tree is the source expression instead of the
6775 expression itself.
6776 (find_bswap_or_nop): Likewise.
6777 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
6778 gimple stmt whose rhs's first tree is the source. In the memory source
6779 case, move the stmt to be replaced close to one of the original load to
6780 avoid the problem of a store between the load and the stmt's original
6781 location.
6782 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
6783 signature.
6784
6785 2014-06-18 Andreas Schwab <schwab@suse.de>
6786
6787 PR rtl-optimization/54555
6788 * postreload.c (move2add_use_add2_insn): Substitute
6789 STRICT_LOW_PART only if it is cheaper.
6790
6791 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
6792
6793 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
6794 Do not use unspec as call operand. Use memory_operand instead of
6795 memory_nox32_operand and add "m" operand constraint. Disable
6796 pattern for TARGET_X32.
6797 (*sibcall_pop_memory): Ditto.
6798 (*sibcall_value_memory): Ditto.
6799 (*sibcall_value_pop_memory): Ditto.
6800 (sibcall peepholes): Merge SImode and DImode patterns using
6801 W mode iterator. Use memory_operand instead of memory_nox32_operand.
6802 Disable pattern for TARGET_X32. Check if eliminated register is
6803 really dead after call insn. Generate call RTX without unspec operand.
6804 (sibcall_value peepholes): Ditto.
6805 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
6806 instead of memory_nox32_operand. Check if eliminated register is
6807 really dead after call insn. Generate call RTX without unspec operand.
6808 (sibcall_value_pop peepholes): Ditto.
6809 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
6810
6811 2014-06-18 Terry Guo <terry.guo@arm.com>
6812
6813 PR target/61544
6814 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
6815 reach the head.
6816
6817 2014-06-18 Olivier Hainque <hainque@adacore.com>
6818
6819 * tree-core.h (tree_block): Add an "end_locus" field, allowing
6820 memorization of the end of block source location.
6821 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
6822 * gimplify.c (gimplify_bind_expr): Propagate the block start and
6823 end source location info we have on the block entry/exit code we
6824 generate.
6825
6826 2014-06-18 Richard Biener <rguenther@suse.de>
6827
6828 * common.opt (fssa-phiopt): New option.
6829 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
6830 but not with -Og.
6831 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
6832 * doc/invoke.texi (-fssa-phiopt): Document.
6833
6834 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6835
6836 * genattrtab.c (n_bypassed): New variable.
6837 (process_bypasses): Initialise n_bypassed.
6838 Count number of bypassed reservations.
6839 (make_automaton_attrs): Allocate space for bypassed reservations
6840 rather than number of bypasses.
6841
6842 2014-06-18 Richard Biener <rguenther@suse.de>
6843
6844 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
6845 we propagated anything.
6846 (substitute_and_fold_dom_walker::before_dom_children): Something
6847 changed if we propagated into PHI arguments.
6848 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
6849 we removed a stmt.
6850
6851 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
6852
6853 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
6854 vector case.
6855 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
6856 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
6857 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
6858 Introduces alternative way of loads group permutaions.
6859 (vect_transform_grouped_load): Try alternative way of permutations.
6860
6861 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6862
6863 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
6864 changed in ORT_TARGET region, don't jump to do_outer.
6865 (struct gimplify_adjust_omp_clauses_data): New type.
6866 (gimplify_adjust_omp_clauses_1): Adjust for data being
6867 a struct gimplify_adjust_omp_clauses_data pointer instead
6868 of tree *. Pass pre_p as a new argument to
6869 lang_hooks.decls.omp_finish_clause hook.
6870 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
6871 splay_tree_foreach to pass both list_p and pre_p.
6872 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
6873 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
6874 gimplify_adjust_omp_clauses callers.
6875 * langhooks.c (lhd_omp_finish_clause): New function.
6876 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
6877 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
6878 * langhooks.h (struct lang_hooks_for_decls): Add a new
6879 gimple_seq * argument to omp_finish_clause hook.
6880 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
6881 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
6882 (scan_omp_parallel, lower_omp_for): When adding
6883 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
6884 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
6885 * tree-nested.c (convert_nonlocal_omp_clauses,
6886 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
6887 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
6888
6889 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
6890
6891 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
6892 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
6893
6894 2014-06-17 Xinliang David Li <davidxl@google.com>
6895
6896 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
6897 * passes.c (pass_init_dump_file): Do not set initialize
6898 flag to false unconditionally.
6899
6900 2014-06-17 Richard Biener <rguenther@suse.de>
6901
6902 * genopinit.c (main): Use vec<>::qsort method.
6903 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6904 Likewise.
6905 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
6906
6907 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
6908
6909 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
6910 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
6911 (mips_move_to_gpr_cost): Remove ST_REGS case.
6912 (mips_move_from_gpr_cost): Likewise.
6913 (mips_register_move_cost): Likewise.
6914 (mips_secondary_reload_class): Likewise.
6915
6916 2014-06-17 Richard Biener <rguenther@suse.de>
6917
6918 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
6919 (pass_all_optimizations): Move 3rd copy-prop pass from after
6920 fre to before ifcombine/phiopt.
6921
6922 2014-06-17 Richard Biener <rguenther@suse.de>
6923
6924 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
6925 and allow all blocks to be forwarders.
6926
6927 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
6928
6929 PR target/61483
6930 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
6931 variable 'size'; calculate 'size' right in the front; use
6932 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
6933 pcum->aapcs_stack_words.
6934
6935 2014-06-17 Nick Clifton <nickc@redhat.com>
6936
6937 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
6938 (umulhi3, mulsidi3, umulsidi3): Likewise.
6939
6940 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
6941
6942 PR middle-end/61508
6943 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
6944 check for section name.
6945
6946 2014-06-17 Richard Biener <rguenther@suse.de>
6947
6948 * tree-ssa-propagate.c: Include domwalk.h.
6949 (substitute_and_fold): Outline main worker into a domwalker ...
6950 (substitute_and_fold_dom_walker::before_dom_children): ... here.
6951 Schedule stmts we can fully propagate for removal. Remove
6952 poor-mans DCE.
6953 (substitute_and_fold): Apply a dominator walk to perform
6954 substitution. Process stmts scheduled for removal here.
6955
6956 2014-06-17 Richard Biener <rguenther@suse.de>
6957
6958 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
6959 of PHI node moving.
6960
6961 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
6962
6963 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
6964 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
6965 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
6966 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
6967 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
6968 TARGET_HARD_FLOAT.
6969 (get_fpscr) : Likewise.
6970
6971 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6972
6973 PR rtl-optimization/61325
6974 * lra-constraints.c (valid_address_p): Add forward declaration.
6975 (simplify_operand_subreg): Check address validity before and after
6976 alter_reg of memory subreg.
6977
6978 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
6979
6980 * config/i386/i386.c (decide_alg): Correctly handle
6981 maximum size of stringop algorithm.
6982
6983 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6984
6985 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
6986
6987 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6988
6989 PR rtl-optimization/61522
6990 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
6991
6992 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
6993
6994 Revert:
6995 * symtab.c (symtab_node::reset_section): New method.
6996 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
6997 for localization.
6998 * cgraph.h (reset_section): Declare.
6999 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7000 do not consider comdat locals.
7001 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7002 for new symbol.
7003 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7004 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7005 reset sections of symbols dragged out of the comdats.
7006 (function_and_variable_visibility): Reset sections of
7007 localized symbols.
7008
7009 2014-06-16 Richard Biener <rguenther@suse.de>
7010
7011 PR tree-optimization/61482
7012 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7013 [-INF(OVF), +INF(OVF)] range.
7014
7015 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7016
7017 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7018 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7019 handling 32-bit multiplication.
7020
7021 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7022
7023 PR middle-end/61430
7024 * lra-lives.c (process_bb_lives): Skip creating copy during
7025 insn scan when src/dest has constrained to same regno.
7026
7027 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7028
7029 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7030 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7031
7032 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7033
7034 * asan.c (check_func): New function.
7035 (maybe_create_ssa_name): Likewise.
7036 (build_check_stmt_with_calls): Likewise.
7037 (use_calls_p): Likewise.
7038 (report_error_func): Change interface.
7039 (build_check_stmt): Allow non-integer lengths; add support
7040 for new parameter.
7041 (asan_instrument): Likewise.
7042 (instrument_mem_region_access): Moved code to build_check_stmt.
7043 (instrument_derefs): Likewise.
7044 (instrument_strlen_call): Likewise.
7045 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7046 * doc/invoke.texi: Describe new parameter.
7047 * params.def: Define new parameter.
7048 * params.h: Likewise.
7049 * sanitizer.def: Describe new builtins.
7050
7051 2014-06-16 Richard Biener <rguenther@suse.de>
7052
7053 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7054 Make all defs available at the end.
7055 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7056
7057 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7058
7059 PR plugins/45078
7060 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7061
7062 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7063
7064 PR bootstrap/61516
7065 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7066 initialization. Replace remaining use of uid.
7067
7068 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7069
7070 * c-family/c-common.c (handle_tls_model_attribute): Use
7071 set_decl_tls_model.
7072 * c-family/c-common.c (handle_tls_model_attribute): Use
7073 set_decl_tls_model.
7074 * cgraph.h (struct varpool_node): Add tls_model.
7075 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7076 * tree.h (DECL_TLS_MODEL): Update.
7077 (DECL_THREAD_LOCAL_P): Check that variable is static.
7078 (decl_tls_model): Declare.
7079 (set_decl_tls_model): Declare.
7080 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7081 set symbol prorperties.
7082 (get_emutls_init_templ_addr): Cleanup.
7083 (new_emutls_decl): Update.
7084 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7085 (lto_input_varpool_node): Likewise.
7086 * lto-streamer-out.c (hash_tree): Likewise.
7087 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7088 not stream DECL_TLS_MODEL.
7089 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7090 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7091
7092 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7093
7094 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7095
7096 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7097
7098 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7099 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7100 lists.
7101 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7102 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7103 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7104 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7105 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7106 (df_get_artificial_defs, df_get_artificial_uses)
7107 (df_single_def, df_single_use): Update accordingly.
7108 (df_refs_chain_dump): Take the first element in a linked list as
7109 parameter, rather than a pointer to an array of pointers.
7110 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7111 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7112 (df_chain_create_bb_process_use): Likewise.
7113 (df_md_bb_local_compute_process_def): Likewise.
7114 * fwprop.c (process_defs, process_uses): Likewise.
7115 (register_active_defs, update_uses): Likewise.
7116 (forward_propagate_asm): Update for new df_ref linking.
7117 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7118 (df_null_ref_rec, df_null_mw_rec): Likewise.
7119 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7120 explicitly.
7121 (df_scan_free_bb_info): Remove check for null artificial_defs.
7122 (df_install_ref_incremental): Adjust for new df_ref linking.
7123 Use a single-element insertion rather than a full sort.
7124 (df_ref_chain_delete_du_chain): Take the first element
7125 in a linked list as parameter, rather than a pointer to an array of
7126 pointers.
7127 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7128 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7129 (df_insn_info_delete): Remove check for null defs and call to
7130 df_scan_free_mws_vec.
7131 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7132 null rather than df_null_*_rec.
7133 (df_insn_rescan_debug_internal): Likewise, and update null
7134 checks in the same way. Remove check for null defs.
7135 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7136 Move a single element rather doing a full sort.
7137 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7138 linking.
7139 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7140 Initialize df_ref and df_mw_hardreg lists to null rather than
7141 df_null_*_rec.
7142 (df_ref_compare): Take df_refs as parameter, transferring the
7143 old interface to...
7144 (df_ref_ptr_compare): ...this new function.
7145 (df_sort_and_compress_refs): Update accordingly.
7146 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7147 old interface to...
7148 (df_mw_ptr_compare): ...this new function.
7149 (df_sort_and_compress_mws): Update accordingly.
7150 (df_install_refs, df_install_mws): Return a linked list rather than
7151 an array of pointers.
7152 (df_refs_add_to_chains): Assert that old lists are empty rather
7153 than freeing them.
7154 (df_insn_refs_verify): Don't handle null defs speciailly.
7155 * web.c (union_match_dups): Update for new df_ref linking.
7156
7157 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7158
7159 * df.h (df_ref_create, df_ref_remove): Delete.
7160 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7161 (df_ref_remove): Likewise.
7162
7163 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7164
7165 * df.h (df_single_def, df_single_use): New functions.
7166 * ira.c (find_moveable_pseudos): Use them.
7167
7168 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7169
7170 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7171 * df-problems.c (df_note_bb_compute): Use it.
7172 * regstat.c (regstat_bb_compute_ri): Likewise.
7173
7174 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7175
7176 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7177 * cse.c (cse_extended_basic_block): Use them.
7178 * dce.c (mark_artificial_use): Likewise.
7179 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7180 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7181 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7182 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7183 (df_simulate_initialize_backwards): Likewise.
7184 (df_simulate_finalize_backwards): Likewise.
7185 (df_simulate_initialize_forwards): Likewise.
7186 (df_md_simulate_artificial_defs_at_top): Likewise.
7187 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7188 * regrename.c (init_rename_info): Likewise.
7189 * regstat.c (regstat_bb_compute_ri): Likewise.
7190 (regstat_bb_compute_calls_crossed): Likewise.
7191
7192 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7193
7194 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7195 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7196 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7197 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7198 * combine.c (create_log_links): Likewise.
7199 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7200 (try_eliminate_compare): Likewise.
7201 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7202 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7203 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7204 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7205 (word_dce_process_block, dce_process_block): Likewise.
7206 * ddg.c (def_has_ccmode_p): Likewise.
7207 * df-core.c (df_bb_regno_first_def_find): Likewise.
7208 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7209 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7210 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7211 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7212 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7213 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7214 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7215 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7216 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7217 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7218 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7219 * fwprop.c (local_ref_killed_between_p): Likewise.
7220 (all_uses_available_at, free_load_extend): Likewise.
7221 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7222 * hw-doloop.c (scan_loop): Likewise.
7223 * ifcvt.c (dead_or_predicable): Likewise.
7224 * init-regs.c (initialize_uninitialized_regs): Likewise.
7225 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7226 (process_bb_node_lives): Likewise.
7227 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7228 (find_moveable_pseudos): Likewise.
7229 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7230 * recog.c (peep2_find_free_register): Likewise.
7231 * ree.c (get_defs): Likewise.
7232 * regstat.c (regstat_bb_compute_ri): Likewise.
7233 (regstat_bb_compute_calls_crossed): Likewise.
7234 * sched-deps.c (find_inc, find_mem): Likewise.
7235 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7236 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7237 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7238 (prepare_shrink_wrap): Likewise.
7239 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7240 * web.c (union_defs, pass_web::execute): Likewise.
7241 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7242 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7243
7244 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7245
7246 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7247 to inheritance pseudos.
7248 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7249
7250 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7251
7252 PR target/61415
7253 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7254 (BU_MISC_2): Rename to ...
7255 (BU_LDBL128_2): ... this.
7256 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7257 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7258 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7259 RS6000_BTM_LDBL128.
7260 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7261 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7262 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7263 (unpacktf_1): Likewise.
7264 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7265 (__builtin_longdouble_dw1): Likewise.
7266 * doc/sourcebuild.texi (longdouble128): Document.
7267
7268 2014-06-13 Jeff Law <law@redhat.com>
7269
7270 PR rtl-optimization/61094
7271 PR rtl-optimization/61446
7272 * ree.c (combine_reaching_defs): Get the mode for the copy from
7273 the extension insn rather than the defining insn.
7274
7275 2014-06-13 Dehao Chen <dehao@google.com>
7276
7277 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7278
7279 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7280
7281 * doc/install.texi (--enable-linker-plugin-configure-flags)
7282 (--enable-linker-plugin-flags): Document new flags.
7283
7284 2014-06-13 Martin Jambor <mjambor@suse.cz>
7285
7286 PR ipa/61186
7287 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7288 cache_token if returning early.
7289
7290 2014-06-13 Nick Clifton <nickc@redhat.com>
7291
7292 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7293 requested alignment is active.
7294 (LABEL_ALIGN): Likewise.
7295 (LOOP_ALIGN): Likewise.
7296
7297 2014-06-13 Richard Biener <rguenther@suse.de>
7298
7299 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7300 Rewrite to propagate the VN result into all uses where
7301 possible and to remove stmts becoming dead because of that.
7302 (eliminate): Generalize stmt removal handling, remove in
7303 reverse dominator order to support proper debug stmt
7304 generation. Update stmts before removing stmts.
7305 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7306
7307 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7308
7309 PR tree-optimization/61375
7310 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7311 symbolic number cannot be represented in an uint64_t.
7312 (find_bswap_or_nop_1): Likewise.
7313
7314 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7315
7316 * symtab.c (symtab_node::reset_section): New method.
7317 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7318 for localization.
7319 * cgraph.h (reset_section): Declare.
7320 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7321 do not consider comdat locals.
7322 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7323 for new symbol.
7324 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7325 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7326 reset sections of symbols dragged out of the comdats.
7327 (function_and_variable_visibility): Reset sections of
7328 localized symbols.
7329
7330 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7331
7332 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7333 to use symtab and decl_binds_to_current_def_p
7334 * tree-vectorizer.c (increase_alignment): Increase alignment
7335 of alias target, too.
7336
7337 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7338
7339 PR middle-end/61486
7340 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7341 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7342 if outer combined construct is distribute.
7343 (gimplify_omp_for): For OMP_DISTRIBUTE set
7344 gimplify_omp_ctxp->distribute.
7345 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7346 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7347 mapping into decl map.
7348
7349 2014-06-12 Jason Merrill <jason@redhat.com>
7350
7351 * common.opt (fabi-version): Change default to 0.
7352
7353 2014-06-12 Jason Merrill <jason@redhat.com>
7354
7355 * toplev.c (process_options): Reject -fabi-version=1.
7356
7357 2014-06-12 Jeff Law <law@redhat.com>
7358
7359 PR tree-optimization/61009
7360 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7361 value when we stop processing a block due to problematic PHIs.
7362
7363 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7364
7365 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7366 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7367 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7368 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7369 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7370 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7371 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7372 are not in the spec.
7373
7374 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7375
7376 PR target/59843
7377 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7378 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7379 Support V1DFmode.
7380
7381 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7382
7383 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7384
7385 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7386
7387 PR target/61443
7388 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7389 loading from address spaces.
7390
7391 2014-06-12 Martin Liska <mliska@suse.cz>
7392
7393 PR ipa/61462
7394 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7395 statement is reachable.
7396
7397 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7398
7399 * symtab.c (section_hash): New hash.
7400 (symtab_unregister_node): Clear section before freeing.
7401 (hash_section_hash_entry): New haser.
7402 (eq_sections): New function.
7403 (symtab_node::set_section_for_node): New method.
7404 (set_section_1): Update.
7405 (symtab_node::set_section): Take string instead of tree as parameter.
7406 (symtab_resolve_alias): Update.
7407 * cgraph.h (section_hash_entry_d): New structure.
7408 (section_hash_entry): New typedef.
7409 (cgraph_node): Change comdat_group_ to x_comdat_group,
7410 change section_ to x_section and turn into section_hash_entry;
7411 update accestors; put set_section_for_node offline.
7412 * tree.c (decl_section_name): Turn into string.
7413 (set_decl_section_name): Change parameter to be string.
7414 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7415 * sdbout.c (sdbout_one_type): Update.
7416 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7417 * varasm.c (IN_NAMED_SECTION, get_named_section,
7418 resolve_unique_section, hot_function_section, get_named_text_section,
7419 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7420 make_decl_rtl, default_unique_section): Update.
7421 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7422 (c6x_elf_unique_section): Update.
7423 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7424 * config/pa/pa.c (pa_function_section): Update.
7425 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7426 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7427 * config/arc/arc.c (arc_in_small_data_p): Update.
7428 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7429 * config/mcore/mcore.c (mcore_unique_section): Update.
7430 * config/mips/mips.c (mips16_build_function_stub): Update.
7431 (mips16_build_call_stub): Update.
7432 (mips_function_rodata_section): Update.
7433 (mips_in_small_data_p): Update.
7434 * config/score/score.c (score_in_small_data_p): Update.
7435 * config/rx/rx.c (rx_in_small_data): Update.
7436 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7437 (rs6000_xcoff_asm_named_section): Update.
7438 (rs6000_xcoff_unique_section): Update.
7439 * config/frv/frv.c (frv_string_begins_with): Update.
7440 (frv_in_small_data_p): Update.
7441 * config/v850/v850.c (v850_encode_data_area): Update.
7442 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7443 (bfin_handle_l1_data_attribute): Update.
7444 (bfin_handle_l2_attribute): Update.
7445 * config/mep/mep.c (mep_unique_section): Update.
7446 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7447 Update.
7448 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7449 (h8300_handle_tiny_data_attribute): Update.
7450 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7451 (m32r_in_small_data_p): Update.
7452 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7453 * config/i386/i386.c (ix86_in_large_data_p): Update.
7454 * config/i386/winnt.c (i386_pe_unique_section): Update.
7455 * config/darwin.c (darwin_function_section): Update.
7456 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7457 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7458 (new_emutls_decl): Update.
7459 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7460 input_varpool_node): Update.
7461 (ead_string_cst): Turn to ...
7462 (read_string): ... this one.
7463 * dwarf2out.c (secname_for_decl): Update.
7464 * asan.c (asan_protect_global): Update.
7465
7466 2014-06-11 DJ Delorie <dj@redhat.com>
7467
7468 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7469 cache lines.
7470 * config/rx/rx.c (rx_option_override): Likewise.
7471 (rx_align_for_label): Likewise.
7472
7473 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7474
7475 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7476
7477 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7478 prototype.
7479
7480 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7481
7482 * common.md: New file.
7483 * doc/md.texi: Update description of generic, machine-independent
7484 constraints.
7485 * config/s390/constraints.md (e): Delete.
7486 * Makefile.in (md_file): Include common.md.
7487 * config/m32c/t-m32c (md_file): Likewise.
7488 * genpreds.c (general_mem): New array.
7489 (generic_constraint_letters): Remove constraints now defined by
7490 common.md.
7491 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7492 Allow the first character to be '<' or '>' as well.
7493 * genoutput.c (general_mem): New array.
7494 (indep_constraints): Remove constraints now defined by common.md.
7495 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7496 Remove special handling of 'm'.
7497 * ira-costs.c (record_reg_classes): Remove special handling of
7498 constraints now defined by common.md.
7499 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7500 * ira-lives.c (single_reg_class): Likewise.
7501 (ira_implicitly_set_insn_hard_regs): Likewise.
7502 * lra-constraints.c (reg_class_from_constraints): Likewise.
7503 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7504 * postreload.c (reload_cse_simplify_operands): Likewise.
7505 * reload.c (push_secondary_reload, scratch_reload_class)
7506 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7507 * reload1.c (maybe_fix_stack_asms): Likewise.
7508 * targhooks.c (default_secondary_reload): Likewise.
7509 * stmt.c (parse_output_constraint): Likewise.
7510 * recog.c (preprocess_constraints): Likewise.
7511 (constrain_operands, peep2_find_free_register): Likewise.
7512 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7513 must be handled specially.
7514
7515 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7516
7517 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7518 * genpreds.c (have_const_dbl_constraints): Delete.
7519 (add_constraint): Don't set it.
7520 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7521 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7522 constraints using the lookup_constraint logic.
7523 * ira-lives.c (single_reg_class): Likewise.
7524 * ira.c (ira_setup_alts): Likewise.
7525 * lra-constraints.c (process_alt_operands): Likewise.
7526 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7527 * reload.c (find_reloads): Likewise.
7528
7529 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7530
7531 * genpreds.c (const_int_start, const_int_end): New variables.
7532 (choose_enum_order): Output CONST_INT constraints before memory
7533 constraints.
7534 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7535 Add CT_CONST_INT.
7536 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7537 * ira.c (ira_setup_alts): Likewise.
7538 * lra-constraints.c (process_alt_operands): Likewise.
7539 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7540 * reload.c (find_reloads): Likewise.
7541
7542 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7543
7544 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7545 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7546 * recog.c (preprocess_constraints): Update accordingly.
7547
7548 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7549
7550 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7551 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7552 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7553 * genpreds.c (print_type_tree): New function.
7554 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7555 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7556 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7557 Write out enum constraint_type and get_constraint_type.
7558 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7559 constraint_num rather than a constraint string.
7560 (satisfies_address_constraint_p): Likewise.
7561 (reg_class_from_constraints): Avoid old constraint macros.
7562 (process_alt_operands, process_address_1): Likewise.
7563 (curr_insn_transform): Likewise.
7564 * ira-costs.c (record_reg_classes): Likewise.
7565 (record_operand_costs): Likewise.
7566 * ira-lives.c (single_reg_class): Likewise.
7567 (ira_implicitly_set_insn_hard_regs): Likewise.
7568 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7569 * postreload.c (reload_cse_simplify_operands): Likewise.
7570 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7571 (constrain_operands, peep2_find_free_register): Likewise.
7572 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7573 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7574 * reload1.c (maybe_fix_stack_asms): Likewise.
7575 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7576 * targhooks.c (default_secondary_reload): Likewise.
7577 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7578 to EXTRA_CONSTRAINT_STR.
7579 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7580
7581 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7582
7583 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7584 (write_constraint_satisfied_p_array): ...this new function.
7585 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7586 an array.
7587 (write_insn_preds_c): Update accordingly.
7588
7589 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7590
7591 * genpreds.c (write_lookup_constraint): Rename to...
7592 (write_lookup_constraint_1): ...this.
7593 (write_lookup_constraint_array): New function.
7594 (write_tm_preds_h): Define lookup_constraint as an inline function
7595 that uses write_lookup_constraint_array where possible.
7596 (write_insn_preds_c): Update for the changes above.
7597
7598 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7599
7600 * doc/md.texi (regclass_for_constraint): Rename to...
7601 (reg_class_for_constraint): ...this.
7602 * genpreds.c (num_constraints, enum_order, register_start)
7603 (register_end, satisfied_start, memory_start, memory_end)
7604 (address_start, address_end): New variables.
7605 (add_constraint): Count the number of constraints.
7606 (choose_enum_order): New function.
7607 (write_enum_constraint_num): Iterate over enum_order.
7608 (write_regclass_for_constraint): Rename to...
7609 (write_reg_class_for_constraint_1): ...this and update output
7610 accordingly.
7611 (write_constraint_satisfied_p): Rename to...
7612 (write_constraint_satisfied_p_1): ...this and update output
7613 accordingly. Do nothing if all extra constraints are register
7614 constraints.
7615 (write_insn_extra_memory_constraint): Delete.
7616 (write_insn_extra_address_constraint): Delete.
7617 (write_range_function): New function.
7618 (write_tm_preds_h): Define constraint_satisfied_p and
7619 reg_class_for_constraint as inline functions that do a range check
7620 before calling the out-of-line function. Use write_range_function
7621 to implement insn_extra_{register,memory,address}_constraint,
7622 the first of which is new.
7623 (write_insn_preds_c): Update after above changes to write_* functions.
7624 (main): Call choose_enum_order.
7625
7626 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7627
7628 PR tree-optimization/61306
7629 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
7630 expression instead of its size.
7631 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
7632 false to prevent optimization when the result is unpredictable due to
7633 arithmetic right shift of signed type with highest byte is set.
7634 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
7635 (init_symbolic_number): Likewise.
7636 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
7637 when the result is unpredictable due to sign extension.
7638
7639 2014-06-11 Terry Guo <terry.guo@arm.com>
7640
7641 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
7642 (*thumb1_addsi3): Ditto.
7643 (*thumb_subdi3): Ditto.
7644 (thumb1_subsi3_insn): Ditto.
7645 (*thumb_mulsi3): Ditto.
7646 (*thumb_mulsi3_v6): Ditto.
7647 (*thumb1_andsi3_insn): Ditto.
7648 (thumb1_bicsi3): Ditto.
7649 (*thumb1_iorsi3_insn): Ditto.
7650 (*thumb1_xorsi3_insn): Ditto.
7651 (*thumb1_ashlsi3): Ditto.
7652 (*thumb1_ashrsi3): Ditto.
7653 (*thumb1_lshrsi3): Ditto.
7654 (*thumb1_rotrsi3): Ditto.
7655 (*thumb1_negdi2): Ditto.
7656 (*thumb1_negsi2): Ditto.
7657 (*thumb1_abssi2): Ditto.
7658 (*thumb1_neg_abssi2): Ditto.
7659 (*thumb1_one_cmplsi2): Ditto.
7660 (*thumb1_zero_extendhisi2): Ditto.
7661 (*thumb1_zero_extendqisi2): Ditto.
7662 (*thumb1_zero_extendqisi2_v6): Ditto.
7663 (thumb1_extendhisi2): Ditto.
7664 (thumb1_extendqisi2): Ditto.
7665 (*thumb1_movdi_insn): Ditto.
7666 (*thumb1_movsi_insn): Ditto.
7667 (*thumb1_movhi_insn): Ditto.
7668 (thumb_movhi_clobber): Ditto.
7669 (*thumb1_movqi_insn): Ditto.
7670 (*thumb1_movhf): Ditto.
7671 (*thumb1_movsf_insn): Ditto.
7672 (*thumb_movdf_insn): Ditto.
7673 (movmem12b): Ditto.
7674 (movmem8b): Ditto.
7675 (cbranchqi4): Ditto.
7676 (cbranchsi4_insn): Ditto.
7677 (cbranchsi4_scratch): Ditto.
7678 (*negated_cbranchsi4): Ditto.
7679 (*tbit_cbranch): Ditto.
7680 (*tlobits_cbranch): Ditto.
7681 (*tstsi3_cbranch): Ditto.
7682 (*cbranchne_decr1): Ditto.
7683 (*addsi3_cbranch): Ditto.
7684 (*addsi3_cbranch_scratch): Ditto.
7685 (*thumb_cmpdi_zero): Ditto.
7686 (cstoresi_eq0_thumb1): Ditto.
7687 (cstoresi_ne0_thumb1): Ditto.
7688 (*cstoresi_eq0_thumb1_insn): Ditto.
7689 (*cstoresi_ne0_thumb1_insn): Ditto.
7690 (cstoresi_nltu_thumb1): Ditto.
7691 (cstoresi_ltu_thumb1): Ditto.
7692 (thumb1_addsi3_addgeu): Ditto.
7693 (*thumb_jump): Ditto.
7694 (*call_reg_thumb1_v5): Ditto.
7695 (*call_reg_thumb1): Ditto.
7696 (*call_value_reg_thumb1_v5): Ditto.
7697 (*call_value_reg_thumb1): Ditto.
7698 (*call_insn): Ditto.
7699 (*call_value_insn): Ditto.
7700 (thumb1_casesi_internal_pic): Ditto.
7701 (thumb1_casesi_dispatch): Ditto.
7702 (*thumb1_indirect_jump): Ditto.
7703 (prologue_thumb1_interwork): Ditto.
7704 (*epilogue_insns): Ditto.
7705 (consttable_1): Ditto.
7706 (consttable_2): Ditto.
7707 (tablejump): Ditto.
7708 (*thumb1_tablejump): Ditto.
7709 (thumb_eh_return): Ditto.
7710 (define_peephole2): Two of them are thumb1 only and got moved into
7711 new file thumb1.md.
7712 (define_split): Six of them are thumb1 only and got moved into new
7713 file thumb1.md.
7714 * config/arm/thumb1.md: New file comprised of above thumb1 only
7715 patterns.
7716
7717 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7718
7719 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
7720 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
7721 dependencies.
7722 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
7723 (aarch64_crc_builtin_datum): New struct.
7724 (aarch64_crc_builtin_data): New.
7725 (aarch64_init_crc32_builtins): New function.
7726 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
7727 (aarch64_crc32_expand_builtin): New.
7728 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
7729 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7730 __ARM_FEATURE_CRC32 when appropriate.
7731 (TARGET_CRC32): Define.
7732 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
7733 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
7734 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
7735 (aarch64_<crc_variant>): New pattern.
7736 * config/aarch64/arm_acle.h: New file.
7737 * config/aarch64/iterators.md (CRC): New int iterator.
7738 (crc_variant, crc_mode): New int attributes.
7739 * doc/aarch64-acle-intrinsics.texi: New file.
7740 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
7741 Include aarch64-acle-intrinsics.texi.
7742
7743 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
7744
7745 * tree-vect-data-refs.c (vect_grouped_store_supported): New
7746 check for stores group of length 3.
7747 (vect_permute_store_chain): New permutations for stores group of
7748 length 3.
7749 * tree-vect-stmts.c (vect_model_store_cost): Change cost
7750 of vec_perm_shuffle for the new permutations.
7751
7752 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7753
7754 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
7755 table rewriting temporarily on targets not supporting ONE_ONLY.
7756
7757 2014-06-11 Richard Biener <rguenther@suse.de>
7758
7759 PR middle-end/61437
7760 Revert
7761 2014-06-04 Richard Biener <rguenther@suse.de>
7762
7763 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
7764 TREE_PUBLIC and DECL_EXTERNAL decls.
7765
7766 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7767
7768 * varasm.c (set_implicit_section): New function.
7769 (resolve_unique_section): Use it to set implicit section
7770 for aliases, too.
7771 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
7772 (default_function_section): Likewise.
7773 (decl_binds_to_current_def_p): Constify argument.
7774 * varasm.h (decl_binds_to_current_def_p): Update prototype.
7775 * asan.c (asan_protect_global): Use
7776 symtab_get_node (decl)->implicit_section.
7777 * symtab.c (dump_symtab_base): Dump implicit sections.
7778 (verify_symtab_base): Verify sanity of sectoins and comdats.
7779 (symtab_resolve_alias): Alias share the section of its target.
7780 (set_section_1): New function.
7781 (symtab_node::set_section): Move here, recurse to aliases.
7782 (verify_symtab): Check for duplicated symtab lists.
7783 * tree-core.h (implicit_section_name_p): Remove.
7784 * tree-vect-data-refs.c: Include varasm.h.
7785 (vect_can_force_dr_alignment_p): Fix conditional on when
7786 decl bints to current definition; use
7787 symtab_get_node (decl)->implicit_section.
7788 * cgraph.c (cgraph_make_node_local_1): Fix section set.
7789 * cgraph.h (struct symtab_node): Add implicit_section.
7790 (set_section): Rename to ...
7791 (set_section_for_node): ... this one.
7792 (set_section): Declare.
7793 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
7794 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7795 input_overwrite_node, input_varpool_node): Stream implicit_section.
7796 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
7797 removal; it will fail in LTO.
7798
7799 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7800
7801 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
7802 Change second alternative type to f_mcr.
7803 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
7804 and 12th alternatives' types to f_mcr and f_mrc.
7805 (*movdi_aarch64): Same for 12th and 13th alternatives.
7806 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
7807 (aarch64_movtilow_tilow): Change type to fmov.
7808
7809 2014-06-10 Jiong Wang <jiong.wang@arm.com>
7810
7811 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
7812 (aarch64_save_or_restore_callee_save_registers): Fix layout.
7813
7814 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7815
7816 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
7817 New expander.
7818 (aarch64_sqrdmulh_lane<mode>): Likewise.
7819 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7820 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7821 (aarch64_sqdmulh_laneq<mode>): New expander.
7822 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7823 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
7824 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
7825 (aarch64_sqdmulh_lane<mode>): New expander.
7826 (aarch64_sqrdmulh_lane<mode>): Likewise.
7827 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7828 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7829 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
7830 (aarch64_sqdmlal_laneq<mode>): Likewise.
7831 (aarch64_sqdmlsl_lane<mode>): Likewise.
7832 (aarch64_sqdmlsl_laneq<mode>): Likewise.
7833 (aarch64_sqdmlal2_lane<mode>): Likewise.
7834 (aarch64_sqdmlal2_laneq<mode>): Likewise.
7835 (aarch64_sqdmlsl2_lane<mode>): Likewise.
7836 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7837 (aarch64_sqdmull_lane<mode>): Likewise.
7838 (aarch64_sqdmull_laneq<mode>): Likewise.
7839 (aarch64_sqdmull2_lane<mode>): Likewise.
7840 (aarch64_sqdmull2_laneq<mode>): Likewise.
7841
7842 2014-06-10 Richard Biener <rguenther@suse.de>
7843
7844 PR tree-optimization/61438
7845 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
7846 (eliminate_dom_walker::before_dom_children): Only try to inhibit
7847 insertion of IVs if running PRE.
7848 (eliminate): Adjust.
7849 (pass_pre::execute): Likewise.
7850 (pass_fre::execute): Likewise.
7851
7852 2014-06-10 Richard Biener <rguenther@suse.de>
7853
7854 PR middle-end/61456
7855 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7856 Do not use the main variant for the type comparison.
7857 (ncr_compar): Likewise.
7858 (nonoverlapping_component_refs_p): Likewise.
7859
7860 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
7861
7862 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
7863 REG_CFA_RESTORE mode.
7864
7865 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
7866
7867 * config/i386/i386.c (expand_vec_perm_pblendv): New.
7868 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
7869 expand_vec_perm_pblendv.
7870
7871 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7872
7873 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
7874 available.
7875 Simplify description of __crc32d and __crc32cd intrinsics.
7876 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
7877 availability.
7878
7879 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
7880
7881 PR lto/61334
7882 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
7883 * config.in: Regenerate.
7884 * configure: Likewise.
7885
7886 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7887
7888 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
7889 and public vars.
7890 (intersect_static_var_sets): Remove.
7891 (propagate): Do not prune local statics.
7892
7893 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7894
7895 PR fortran/60928
7896 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
7897 Set lastprivate_firstprivate even if omp_private_outer_ref
7898 langhook returns true.
7899 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
7900 langhook, call unshare_expr on new_var and call
7901 build_outer_var_ref to get the last argument.
7902
7903 2014-06-10 Marek Polacek <polacek@redhat.com>
7904
7905 PR c/60988
7906 * doc/extend.texi: Add cindex for transparent_union.
7907
7908 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7909
7910 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
7911 init_symbolic_number ().
7912
7913 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
7914
7915 PR middle-end/61141
7916 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
7917 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7918 (verify_rtl_sharing): Likewise.
7919
7920 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
7921
7922 PR c++/54442
7923 * tree.c (build_qualified_type): Use a canonical type for
7924 TYPE_CANONICAL.
7925
7926 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7927
7928 * config/arm/arm-modes.def: Remove XFmode.
7929
7930 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
7931
7932 PR target/61062
7933 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
7934 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7935 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
7936 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
7937 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
7938 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
7939 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
7940 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
7941 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
7942
7943 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
7944
7945 * tree-core.h (tree_decl_with_vis): Remove section_name.
7946
7947 2014-06-09 Kito Cheng <kito@0xlab.org>
7948
7949 * ira.c (ira): Don't call init_caller_save if LRA enabled
7950 since LRA use its own infrastructure to handle that.
7951
7952 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7953
7954 * symtab.c (dump_symtab_base): Update dumping.
7955 (symtab_make_decl_local): Clear only DECL_COMDAT.
7956 * tree-vect-data-refs.c (Check that variable is static before
7957 tampering with sections.
7958 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
7959 (cgraph_create_virtual_clone): Likewise.
7960 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
7961 (decl_section_name, set_decl_section_name): New accessors.
7962 (find_decls_types_r): Do not walk section name
7963 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
7964 (decl_comdat_group, decl_comdat_group_id): Constify.
7965 (decl_section_name, set_decl_section_name): Update.
7966 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
7967 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
7968 (cgraph_make_node_local_1): Clear section and comdat group.
7969 * cgraph.h (set_comdat_group): Sanity check.
7970 (get_section, set_section): New.
7971 * ipa-comdats.c (ipa_comdats): Use get_section.
7972 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
7973 * lto-streamer-out.c: Do not follow section names.
7974 * c-family/c-common.c (handle_section_attribute): Update.
7975 * lto-cgraph.c (lto_output_node): Output section.
7976 (lto_output_varpool_node): Likewise.
7977 (read_comdat_group): Rename to ...
7978 (read_identifier): ... this one.
7979 (read_string_cst): New function.
7980 (input_node, input_varpool_node): Input section names.
7981 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7982 (new_emutls_decl): Update.
7983 (secname_for_decl): Check section names only of static vars.
7984 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
7985 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
7986 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
7987 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
7988 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
7989 * config/mcore/mcore.c (mcore_unique_section): Likewise.
7990 * config/mips/mips.c (mips16_build_function_stub): Likewise.
7991 * config/v850/v850.c (v850_insert_attributes): Likewise.
7992 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
7993 Likewise.
7994 (h8300_handle_tiny_data_attribute): Likewise.
7995 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
7996 (bfin_handle_l2_attribute): Likewise.
7997
7998 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7999
8000 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
8001 remove static initializer.
8002
8003 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8004
8005 * varasm.c (use_blocks_for_decl_p): Check symbol table
8006 instead of alias attribute.
8007 (place_block_symbol): Recurse on aliases.
8008
8009 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8010
8011 * ipa-visibility.c: Include varasm.h
8012 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8013
8014 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8015
8016 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8017 outputting aliases.
8018
8019 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8020
8021 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8022 from test_insn into GGC space escape via SET_SRC.
8023
8024 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8025
8026 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8027 call statement, if any.
8028 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8029 statements, if any. Tidy up.
8030
8031 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8032
8033 PR target/61431
8034 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8035 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8036 handles swapping the two 64-bit double words on little endian
8037 systems. Include V1TImode and optionally TImode in VSX_LE so that
8038 these types are properly swapped. Change all of the insns and
8039 splits that do the 64-bit swaps to use VSX_LE.
8040 (vsx_le_perm_load_<mode>): Likewise.
8041 (vsx_le_perm_store_<mode>): Likewise.
8042 (splitters for little endian memory operations): Likewise.
8043 (vsx_xxpermdi2_le_<mode>): Likewise.
8044 (vsx_lxvd2x2_le_<mode>): Likewise.
8045 (vsx_stxvd2x2_le_<mode>): Likewise.
8046
8047 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8048
8049 PR target/61423
8050 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8051 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8052 and corresponding splitters. Zero extend general register
8053 or memory input operand to XMM temporary. Enable for
8054 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8055 (floatunssi<mode>2): Update expander predicate.
8056
8057 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8058
8059 PR rtl-optimization/61325
8060 * lra-constraints.c (process_address_1): Check scale equal to one
8061 to prevent transformation: base + scale * index => base + new_reg.
8062
8063 2014-06-06 Richard Biener <rguenther@suse.de>
8064
8065 PR tree-optimization/59299
8066 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8067 a def operand.
8068 (nearest_common_dominator_of_uses): Likewise.
8069 (statement_sink_location): Adjust. Support sinking loads.
8070
8071 2014-06-06 Martin Jambor <mjambor@suse.cz>
8072
8073 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8074 (build_agg_jump_func_from_list): Likewise.
8075 (determine_known_aggregate_parts): Renamed to
8076 determine_locally_known_aggregate_parts. Moved some functionality
8077 to the two functions above, removed bound checks.
8078
8079 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8080
8081 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8082 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8083 (aarch64_progress_pointer): Likewise.
8084 (aarch64_copy_one_part_and_move_pointers): Likewise.
8085 (aarch64_expand_movmen): Likewise.
8086 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8087 * config/aarch64/aarch64.md (movmem<mode>): New.
8088
8089 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8090
8091 * targhooks.c (default_add_stmt_cost): Call target specific
8092 hook instead of default one.
8093
8094 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8095
8096 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8097 endianness instead of host endianness.
8098 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8099 comments.
8100
8101 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8102
8103 PR debug/53927
8104 * function.c (instantiate_decls): Process the saved static chain.
8105 (expand_function_start): If not optimizing, save the static chain
8106 onto the stack.
8107 * tree-nested.c (convert_all_function_calls): Always create the static
8108 chain for nested functions if not optimizing.
8109
8110 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8111
8112 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8113
8114 2014-06-06 Richard Biener <rguenther@suse.de>
8115
8116 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8117 (construct_init_block): Likewise.
8118 (construct_exit_block): Likewise.
8119 (pass_expand::execute): Likewise.
8120 * graphite.c (graphite_transforms): Replace check for current_loops
8121 with a check for > 1 loops.
8122 (pass_graphite_transforms::execute): Adjust.
8123 * ipa-split.c (split_function): Remove check for current_loops.
8124 * omp-low.c (expand_parallel_call): Likewise.
8125 (expand_omp_for_init_counts): Likewise.
8126 (extract_omp_for_update_vars): Likewise.
8127 (expand_omp_for_generic): Likewise.
8128 (expand_omp_sections): Likewise.
8129 (expand_omp_target): Likewise.
8130 * tracer.c (tail_duplicate): Likewise.
8131 (pass_tracer::execute): Likewise.
8132 * trans-mem.c (expand_transaction): Likewise.
8133 * tree-complex.c (expand_complex_div_wide): Likewise.
8134 * tree-eh.c (lower_resx): Likewise.
8135 (cleanup_empty_eh_merge_phis): Likewise.
8136 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8137 current_loops with a check for > 1 loops.
8138 (pass_predcom::execute): Adjust.
8139 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8140 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8141 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8142 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8143 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8144 * tree-switch-conversion.c (process_switch): Likewise.
8145 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8146 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8147 (execute_vrp): Likewise.
8148 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8149
8150 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8151
8152 * rtl.h (insn_location): Declare.
8153 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8154 with UNKNOWN_LOCATION.
8155 * emit-rtl.c (insn_location): New function.
8156 * final.c (notice_source_line): Check that the instruction has a
8157 location before retrieving it and use insn_location.
8158 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8159 * print-rtl.c (print_rtx): Likewise.
8160
8161 2014-06-06 Richard Biener <rguenther@suse.de>
8162
8163 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8164
8165 2014-06-06 Christian Bruel <christian.bruel@st.com>
8166
8167 PR tree-optimization/43934
8168 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8169 cost.
8170
8171 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8172
8173 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8174 return NO_REGS for extra address and memory constraints. Handle
8175 operands that match (or are equivalent to something that matches)
8176 extra constant constraints. Ignore other non-register operands.
8177
8178 2014-06-06 Alan Modra <amodra@gmail.com>
8179
8180 PR target/61300
8181 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8182 * doc/tm.texi: Regenerate.
8183 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8184 Use throughout in place of REG_PARM_STACK_SPACE.
8185 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8186 "incoming" param. Pass to rs6000_function_parms_need_stack.
8187 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8188 prototype_p when incoming. Use function decl when incoming
8189 to handle K&R style functions.
8190 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8191 (INCOMING_REG_PARM_STACK_SPACE): Define.
8192
8193 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8194
8195 PR target/52472
8196 * cfgexpand.c (expand_debug_expr): Use address space of nested
8197 TREE_TYPE for ADDR_EXPR and MEM_REF.
8198
8199 2014-06-05 Jeff Law <law@redhat.com>
8200
8201 PR tree-optimization/61289
8202 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8203 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8204 looking for those which match LHS. All callers changed.
8205 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8206 parameters and code which manipulated them. All callers changed.
8207 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8208 and DST_MAP parameters. Simplify invalidation code by just calling
8209 invalidate_equivalences. All callers changed.
8210 (thread_across_edge): Simplify now that we don't need to maintain
8211 the map of equivalences to invalidate.
8212
8213 2014-06-05 Kai Tietz <ktietz@redhat.com>
8214 Richard Henderson <rth@redhat.com>
8215
8216 PR target/46219
8217 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8218 checking for !TARGET_X32.
8219 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8220 (sibcall_intern): New define_insn, plus required peepholes.
8221 (sibcall_pop_intern): Likewise.
8222 (sibcall_value_intern): Likewise.
8223 (sibcall_value_pop_intern): Likewise.
8224
8225 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8226
8227 * tree-inline.c (tree_function_versioning): Check DF info existence
8228 before accessing it.
8229
8230 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8231
8232 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8233 frame_size.
8234 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8235 aarch64_frame hard_fp_offset and frame_size.
8236 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8237 frame_size; remove original_frame_size.
8238 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8239 (aarch64_initial_elimination_offset): Remove frame_size and
8240 offset. Use aarch64_frame frame_size.
8241
8242 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8243 Jiong Wang <jiong.wang@arm.com>
8244 Renlin <renlin.li@arm.com>
8245
8246 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8247 initialization of R30 offset. Update offset. Iterate core
8248 regisers upto X30. Remove X29, X30 specific code.
8249
8250 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8251 Jiong Wang <jiong.wang@arm.com>
8252
8253 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8254 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8255 (aarch64_register_saved_on_entry): Adjust test.
8256
8257 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8258
8259 * config/aarch64/aarch64.h (machine_function): Move
8260 saved_varargs_size from here...
8261 (aarch64_frame): ... to here.
8262
8263 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8264 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8265 (aarch64_initial_elimination_offset)
8266 (aarch64_setup_incoming_varargs): Adjust location of
8267 saved_varargs_size.
8268
8269 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8270
8271 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8272 layout comment.
8273
8274 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8275 Prachi Godbole <Prachi.Godbole@imgtec.com>
8276
8277 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8278 mips32r5 entry to use PROCESSOR_P5600.
8279 * config/mips/mips-tables.opt: Regenerate.
8280 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8281 * config/mips/mips.c (mips_fmadd_bypass): New function.
8282 (mips_rtx_cost_data): Add costs for p5600.
8283 (mips_issue_rate): Add support for p5600.
8284 (mips_multipass_dfa_lookahead): Likewise.
8285 * config/mips/mips.h (TUNE_P5600): New define.
8286 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8287 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8288 * config/mips/mips.md: Include p5600.md.
8289 (processor): Add p5600.
8290 * config/mips/p5600.md: New file.
8291
8292 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8293
8294 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8295 * config/i386/predicates.md (palignr_operand): New.
8296 Indicates if permutation is suitable for palignr instruction.
8297
8298 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8299
8300 PR tree-optimization/61319
8301 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8302 stmt belongs to loop.
8303
8304 2014-06-05 Richard Biener <rguenther@suse.de>
8305
8306 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8307 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8308 (lookup_tmp_var): Adjust.
8309 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8310
8311 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8312
8313 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8314
8315 2014-06-05 Marek Polacek <polacek@redhat.com>
8316
8317 PR c/49706
8318 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8319
8320 2014-06-04 Tom de Vries <tom@codesourcery.com>
8321
8322 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8323 CONST_INT.
8324
8325 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8326
8327 PR tree-optimization/61385
8328 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8329
8330 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8331
8332 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8333 changed to use fatal_error.
8334 (main): Ensure lto_wrapper_cleanup is run atexit.
8335
8336 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8337
8338 * lra-constraints.c (valid_address_p): Move earlier in file.
8339 (address_eliminator): New structure.
8340 (satisfies_memory_constraint_p): New function.
8341 (satisfies_address_constraint_p): Likewise.
8342 (process_alt_operands, process_address, curr_insn_transform): Use them.
8343
8344 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8345
8346 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8347 const pointer.
8348 (target_lra_int, default_target_lra_int, this_target_lra_int)
8349 (op_alt_data): Delete.
8350 * lra.h (lra_init): Delete.
8351 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8352 (init_insn_code_data_once): Remove op_alt_data handling.
8353 (finish_insn_code_data_once): Likewise.
8354 (init_op_alt_data): Delete.
8355 (get_static_insn_data): Initialize operand_alternative to null.
8356 (free_insn_recog_data): Cast operand_alternative before freeing it.
8357 (setup_operand_alternative): Take the operand_alternative as
8358 parameter and assume it isn't already cached in the static
8359 insn data.
8360 (lra_set_insn_recog_data): Update accordingly.
8361 (lra_init): Delete.
8362 * ira.c (ira_init): Don't call lra_init.
8363 * target-globals.h (this_target_lra_int): Declare.
8364 (target_globals): Remove lra_int.
8365 (restore_target_globals): Update accordingly.
8366 * target-globals.c: Don't include lra-int.h.
8367 (default_target_globals, save_target_globals): Remove lra_int.
8368
8369 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8370
8371 * recog.h (operand_alternative): Convert reg_class, reject,
8372 matched and matches into bitfields.
8373 (preprocess_constraints): New overload.
8374 (preprocess_insn_constraints): New function.
8375 (preprocess_constraints): Take the insn as parameter.
8376 (recog_op_alt): Change into a pointer.
8377 (target_recog): Add x_op_alt.
8378 * recog.c (asm_op_alt): New variable.
8379 (recog_op_alt): Change into a pointer.
8380 (preprocess_constraints): New overload, replacing the old function
8381 definition with one that doesn't use global state.
8382 (preprocess_insn_constraints): New function.
8383 (preprocess_constraints): Use them. Take the insn as parameter.
8384 Use asm_op_alt for asms.
8385 (recog_init): Free existing x_op_alt entries.
8386 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8387 pointer const.
8388 (make_early_clobber_and_input_conflicts): Likewise.
8389 (process_bb_node_lives): Pass the insn to process_constraints.
8390 * reg-stack.c (check_asm_stack_operands): Likewise.
8391 (subst_asm_stack_regs): Likewise.
8392 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8393 * regrename.c (build_def_use): Likewise.
8394 * sched-deps.c (sched_analyze_insn): Likewise.
8395 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8396 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8397 (note_invalid_constants): Likewise.
8398 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8399 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8400 const.
8401
8402 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8403
8404 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8405 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8406 alternatives.
8407 (make_early_clobber_and_input_conflicts): Likewise.
8408 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8409
8410 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8411
8412 * recog.h (alternative_class): New function.
8413 (which_op_alt): Return a const recog_op_alt.
8414 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8415 (subst_asm_stack_regs): Likewise.
8416 * config/arm/arm.c (note_invalid_constants): Likewise.
8417 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8418 the operand_alternative; use alternative class instead.
8419 * sel-sched.c (get_reg_class): Likewise.
8420 * regrename.c (build_def_use): Likewise.
8421 (hide_operands, restore_operands, record_out_operands): Update type
8422 accordingly.
8423
8424 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8425
8426 * recog.h (recog_op_alt): Convert to a flat array.
8427 (which_op_alt): New function.
8428 * recog.c (recog_op_alt): Convert to a flat array.
8429 (preprocess_constraints): Update accordingly, grouping all
8430 operands of the same alternative together, rather than the
8431 other way around.
8432 * ira-lives.c (check_and_make_def_conflict): Likewise.
8433 (make_early_clobber_and_input_conflicts): Likewise.
8434 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8435 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8436 (subst_asm_stack_regs): Likewise.
8437 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8438 * regrename.c (hide_operands, record_out_operands): Likewise.
8439 (build_def_use): Likewise.
8440 * sel-sched.c (get_reg_class): Likewise.
8441 * config/arm/arm.c (note_invalid_constants): Likewise.
8442
8443 2014-06-04 Jason Merrill <jason@redhat.com>
8444
8445 PR c++/51253
8446 PR c++/61382
8447 * gimplify.c (gimplify_arg): Non-static.
8448 * gimplify.h: Declare it.
8449
8450 2014-06-04 Richard Biener <rguenther@suse.de>
8451
8452 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8453 TREE_PUBLIC and DECL_EXTERNAL decls.
8454
8455 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8456
8457 * regcprop.c (copyprop_hardreg_forward_1): Account for
8458 HARD_REGNO_CALL_PART_CLOBBERED.
8459
8460 2014-06-04 Richard Biener <rguenther@suse.de>
8461
8462 * configure.ac: Check whether the underlying type of int64_t
8463 is long or long long.
8464 * configure: Regenerate.
8465 * config.in: Likewise.
8466 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8467 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8468
8469 2014-06-04 Richard Biener <rguenther@suse.de>
8470
8471 PR tree-optimization/60098
8472 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8473 we hit a kill.
8474 (dse_optimize_stmt): Simplify, now that we found a kill
8475 earlier.
8476
8477 2014-06-04 Richard Biener <rguenther@suse.de>
8478
8479 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8480 of accesses with non-invariant address.
8481
8482 2014-06-04 Martin Liska <mliska@suse.cz>
8483
8484 * cgraph.h (cgraph_make_wrapper): New function introduced.
8485 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8486 * ipa-inline.h (inline_analyze_function): The function is global.
8487 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8488
8489 2014-06-04 Martin Liska <mliska@suse.cz>
8490
8491 * tree.h (private_lookup_attribute_starting): New function.
8492 (lookup_attribute_starting): Likewise.
8493 * tree.c (private_lookup_attribute_starting): Likewise.
8494
8495 2014-06-04 Martin Liska <mliska@suse.cz>
8496
8497 * cgraph.h (expand_thunk): New argument added.
8498 (address_taken_from_non_vtable_p): New global function.
8499 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8500 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8501 * cgraphunit.c (analyze_function): Likewise.
8502 (assemble_thunks_and_aliases): Argument added to call.
8503 (expand_thunk): New argument forces to produce GIMPLE thunk.
8504
8505 2014-06-04 Martin Liska <mliska@suse.cz>
8506
8507 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8508 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8509 * profile.c (branch_prob): Likewise.
8510
8511 2014-06-04 Martin Jambor <mjambor@suse.cz>
8512
8513 PR ipa/61340
8514 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8515 handler for switch on an ipa_ref_use enum.
8516 * ipa-reference.c (analyze_function): Likewise.
8517
8518 2014-06-04 Kai Tietz <ktietz@redhat.com>
8519
8520 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8521 from old call-instruction.
8522
8523 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8524
8525 * config/aarch64/aarch64.c (aarch64_classify_address)
8526 (aarch64_legitimize_reload_address): Support full addressing modes
8527 for vector modes.
8528 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8529 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8530
8531 2014-06-03 Andrew Pinski <apinski@cavium.com>
8532
8533 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8534 for OP0.
8535
8536 2014-06-03 Andrew Pinski <apinski@cavium.com>
8537
8538 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8539 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8540
8541 2014-06-03 Kai Tietz <ktietz@redhat.com>
8542
8543 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8544 for 64-bit ms-abi.
8545
8546 2014-06-03 Dehao Chen <dehao@google.com>
8547
8548 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8549 the same loop.
8550
8551 2014-06-03 Marek Polacek <polacek@redhat.com>
8552
8553 PR c/60439
8554 * doc/invoke.texi: Document -Wswitch-bool.
8555 * function.c (stack_protect_epilogue): Cast controlling expression of
8556 the switch to int.
8557 * gengtype.c (walk_type): Generate switch expression with its
8558 controlling expression cast to int.
8559
8560 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8561
8562 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8563 and attiny841.
8564 * config/avr/avr-tables.opt: Regenerate.
8565 * config/avr/t-multilib: Regenerate.
8566 * doc/avr-mmcu.texi: Regenerate.
8567
8568 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8569 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8570
8571 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8572 (ata6617c, ata664251): Add new avr35 devices.
8573 (ata6612c): Add new avr4 device.
8574 (ata6613c, ata6614q): Add new avr5 devices.
8575 * config/avr/avr-tables.opt: Regenerate.
8576 * config/avr/t-multilib: Regenerate.
8577 * doc/avr-mmcu.texi: Regenerate.
8578
8579 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8580
8581 * gcc/config/aarch64/aarch64-builtins.c
8582 (aarch64_types_binop_ssu_qualifiers): New static data.
8583 (TYPES_BINOP_SSU): Define.
8584 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8585 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8586 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8587 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8588 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8589 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8590 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8591 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8592 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8593 suffix to builtin function name, remove cast.
8594 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8595 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8596 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8597
8598 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8599
8600 * gcc/config/aarch64/aarch64-builtins.c
8601 (aarch64_types_binop_uus_qualifiers,
8602 aarch64_types_shift_to_unsigned_qualifiers,
8603 aarch64_types_unsigned_shiftacc_qualifiers): Define.
8604 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
8605 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
8606 sqshlu_n, uqshl_n): Update qualifiers.
8607 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
8608 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
8609 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
8610 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
8611 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
8612 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
8613 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
8614 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
8615 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
8616 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
8617 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
8618 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
8619 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
8620 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
8621 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
8622 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
8623 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
8624 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
8625 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
8626 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
8627 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
8628 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
8629 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
8630 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
8631 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
8632 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
8633 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
8634
8635 2014-06-03 Teresa Johnson <tejohnson@google.com>
8636
8637 * tree-sra.c (modify_function): Record caller nodes after rebuild.
8638
8639 2014-06-02 Jason Merrill <jason@redhat.com>
8640
8641 PR c++/61020
8642 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
8643
8644 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8645
8646 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
8647 location == 0.
8648
8649 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8650
8651 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
8652 New pattern.
8653 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
8654 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
8655 * config/aarch64/iterators.md (REVERSE): New iterator.
8656 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
8657 (rev_op): New int_attribute.
8658 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
8659 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
8660 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
8661 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
8662 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
8663 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
8664 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
8665 Replace temporary __asm__ with __builtin_shuffle.
8666
8667 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8668
8669 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
8670 mips64r5.
8671 * config/mips/mips-tables.opt: Regenerate.
8672 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
8673 to use mips_isa_rev rather than ISA_MIPS32R2.
8674 * config/mips/mips.h (ISA_MIPS32R3): New define.
8675 (ISA_MIPS32R5): New define.
8676 (ISA_MIPS64R3): New define.
8677 (ISA_MIPS64R5): New define.
8678 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
8679 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
8680 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
8681 and mips64r5.
8682 (MIPS_ISA_SYNCI_SPEC): Likewise.
8683 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
8684 (LINK_SPEC): Added mips32r3 and mips32r5.
8685 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
8686 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
8687 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
8688 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
8689 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
8690 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
8691 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
8692
8693 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8694
8695 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
8696 options.
8697 * config/mips/mips.opt (mxpa): New option.
8698 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
8699 assembler.
8700
8701 2014-06-03 Martin Jambor <mjambor@suse.cz>
8702
8703 PR ipa/61160
8704 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
8705 thunks.
8706
8707 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8708
8709 PR tree-optimization/61328
8710 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
8711 initialization from find_bswap_or_nop_1.
8712 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
8713 in source_expr2 before using the size value the function sets. Also
8714 make use of init_symbolic_number () in both the old place and
8715 find_bswap_or_nop_load () to avoid reading uninitialized memory when
8716 doing recursion in the GIMPLE_BINARY_RHS case.
8717
8718 2014-06-03 Richard Biener <rguenther@suse.de>
8719
8720 PR tree-optimization/61383
8721 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
8722 stmts can't trap.
8723
8724 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8725
8726 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
8727 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
8728 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
8729 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
8730 in this file.
8731 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8732 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
8733 * system.h: ...here and make it unconditional.
8734 * target.def (conditional_register_usage): Mention
8735 define_register_constraint instead of old-style constraint macros.
8736 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
8737 * doc/tm.texi: Regenerate.
8738 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
8739 protected by !USE_MD_CONSTRAINTS.
8740 * config/frv/frv.md: Remove quote from old version of documentation.
8741 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
8742 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
8743 CONST_DOUBLE_OK_FOR_LETTER.
8744 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
8745
8746 2014-06-02 Andrew Pinski <apinski@cavium.com>
8747
8748 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
8749 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
8750 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
8751 file whose name depends on -mabi= and -mbig-endian.
8752 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
8753 Handle LP64 better and handle ilp32 too.
8754 (MULTILIB_OPTIONS): Delete.
8755 (MULTILIB_DIRNAMES): Delete.
8756
8757 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
8758
8759 * expr.h: Remove prototypes of functions defined in builtins.c.
8760 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
8761 Remove prototypes of functions defined in builtins.c.
8762 * builtins.h: Update prototype list to include all exported functions.
8763 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
8764 no_c99_libc_has_function): Move to targhooks.c
8765 (build_string_literal, build_call_expr_loc_array,
8766 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
8767 to tree.c.
8768 (expand_builtin_object_size, fold_builtin_object_size): Make static.
8769 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
8770 no_c99_libc_has_function): Relocate from builtins.c.
8771 * tree.c: Include builtins.h.
8772 (build_call_expr_loc_array, build_call_expr_loc_vec,
8773 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
8774 from builtins.c.
8775 * fold-const.h (fold_fma): Move prototype to builtins.h.
8776 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
8777 * asan.c: Include builtins.h.
8778 * cfgexpand.c: Likewise.
8779 * convert.c: Likewise.
8780 * emit-rtl.c: Likewise.
8781 * except.c: Likewise.
8782 * expr.c: Likewise.
8783 * fold-const.c: Likewise.
8784 * gimple-fold.c: Likewise.
8785 * gimple-ssa-strength-reduction.c: Likewise.
8786 * gimplify.c: Likewise.
8787 * ipa-inline.c: Likewise.
8788 * ipa-prop.c: Likewise.
8789 * lto-streamer-out.c: Likewise.
8790 * stmt.c: Likewise.
8791 * tree-inline.c: Likewise.
8792 * tree-object-size.c: Likewise.
8793 * tree-sra.c: Likewise.
8794 * tree-ssa-ccp.c: Likewise.
8795 * tree-ssa-forwprop.c: Likewise.
8796 * tree-ssa-loop-ivcanon.c: Likewise.
8797 * tree-ssa-loop-ivopts.c: Likewise.
8798 * tree-ssa-math-opts.c: Likewise.
8799 * tree-ssa-reassoc.c: Likewise.
8800 * tree-ssa-threadedge.c: Likewise.
8801 * tree-streamer-in.c: Likewise.
8802 * tree-vect-data-refs.c: Likewise.
8803 * tree-vect-patterns.c: Likewise.
8804 * tree-vect-stmts.c: Likewise.
8805 * config/aarch64/aarch64.c: Likewise.
8806 * config/alpha/alpha.c: Likewise.
8807 * config/arc/arc.c: Likewise.
8808 * config/arm/arm.c: Likewise.
8809 * config/avr/avr.c: Likewise.
8810 * config/bfin/bfin.c: Likewise.
8811 * config/c6x/c6x.c: Likewise.
8812 * config/cr16/cr16.c: Likewise.
8813 * config/cris/cris.c: Likewise.
8814 * config/epiphany/epiphany.c: Likewise.
8815 * config/fr30/fr30.c: Likewise.
8816 * config/frv/frv.c: Likewise.
8817 * config/h8300/h8300.c: Likewise.
8818 * config/i386/i386.c: Likewise.
8819 * config/i386/winnt.c: Likewise.
8820 * config/ia64/ia64.c: Likewise.
8821 * config/iq2000/iq2000.c: Likewise.
8822 * config/lm32/lm32.c: Likewise.
8823 * config/m32c/m32c.c: Likewise.
8824 * config/m32r/m32r.c: Likewise.
8825 * config/m68k/m68k.c: Likewise.
8826 * config/mcore/mcore.c: Likewise.
8827 * config/mep/mep.c: Likewise.
8828 * config/microblaze/microblaze.c: Likewise.
8829 * config/mips/mips.c: Likewise.
8830 * config/mmix/mmix.c: Likewise.
8831 * config/mn10300/mn10300.c: Likewise.
8832 * config/moxie/moxie.c: Likewise.
8833 * config/msp430/msp430.c: Likewise.
8834 * config/nds32/nds32.c: Likewise.
8835 * config/pa/pa.c: Likewise.
8836 * config/pdp11/pdp11.c: Likewise.
8837 * config/picochip/picochip.c: Likewise.
8838 * config/rl78/rl78.c: Likewise.
8839 * config/rs6000/rs6000.c: Likewise.
8840 * config/rx/rx.c: Likewise.
8841 * config/s390/s390.c: Likewise.
8842 * config/score/score.c: Likewise.
8843 * config/sh/sh.c: Likewise.
8844 * config/sparc/sparc.c: Likewise.
8845 * config/spu/spu.c: Likewise.
8846 * config/stormy16/stormy16.c: Likewise.
8847 * config/tilegx/tilegx.c: Likewise.
8848 * config/tilepro/tilepro.c: Likewise.
8849 * config/v850/v850.c: Likewise.
8850 * config/vax/vax.c: Likewise.
8851 * config/xtensa/xtensa.c: Likewise.
8852
8853 2014-06-02 Jeff Law <law@redhat.com>
8854
8855 PR rtl-optimization/61094
8856 * ree.c (combine_reaching_defs): Do not reextend an insn if it
8857 was marked as do_no_reextend. If a copy is needed to eliminate
8858 an extension, then mark it as do_not_reextend.
8859
8860 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
8861
8862 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
8863
8864 2014-06-02 Richard Henderson <rth@redhat.com>
8865
8866 PR target/61336
8867 * config/alpha/alpha.c (print_operand_address): Allow symbolic
8868 addresses inside asms. Use output_operand_lossage instead of
8869 gcc_unreachable.
8870
8871 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
8872
8873 PR target/61239
8874 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
8875 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
8876
8877 2014-06-02 Tom de Vries <tom@codesourcery.com>
8878
8879 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
8880 case that x has VOIDmode.
8881
8882 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
8883
8884 * varasm.c (copy_constant): Delete function.
8885 (build_constant_desc): Don't call it.
8886
8887 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8888
8889 PR target/61154
8890 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
8891 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
8892 with immediate_operand.
8893
8894 2014-06-02 Andreas Schwab <schwab@suse.de>
8895
8896 * config/ia64/ia64.c
8897 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
8898 pending_data_specs first.
8899
8900 2014-06-02 Richard Biener <rguenther@suse.de>
8901
8902 PR tree-optimization/61378
8903 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
8904 valueized_anything.
8905
8906 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
8907
8908 * config/i386/constraints.md (Bw): Rename from 'w'.
8909 (Bz): Rename from 'z'.
8910 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
8911
8912 2014-06-01 Kai Tietz <ktietz@redhat.com>
8913
8914 PR target/61377
8915 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
8916 * config/i386/i386.md (sibcall_insn_operand): Use Bs
8917 instead of m constraint.
8918
8919 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
8920
8921 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
8922 a separate alternative where the scratch operand 2 is marked as
8923 early clobber.
8924
8925 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
8926
8927 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8928 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
8929 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
8930 and __builtins_arm_get_fpscr.
8931 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8932 __builtins_arm_get_fpscr.
8933 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
8934 __builtins_arm_ldfpscr.
8935 (arm_atomic_assign_expand_fenv): New function.
8936 * config/arm/vfp.md (set_fpscr): New pattern.
8937 (get_fpscr) : Likewise.
8938 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
8939 VUNSPEC_SET_FPSCR.
8940 * doc/extend.texi (AARCH64 Built-in Functions) : Document
8941 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
8942
8943 2014-05-30 Jakub Jelinek <jakub@redhat.com>
8944
8945 * asan.c (report_error_func): Add SLOW_P argument, use
8946 BUILT_IN_ASAN_*_N if set.
8947 (build_check_stmt): Likewise.
8948 (instrument_derefs): If T has insufficient alignment,
8949 force same handling as for odd sizes.
8950
8951 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
8952 BUILT_IN_ASAN_REPORT_STORE_N): New.
8953 * asan.c (struct asan_mem_ref): Change access_size type to
8954 HOST_WIDE_INT.
8955 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
8956 update_mem_ref_hash_table): Likewise.
8957 (asan_mem_ref_hasher::hash): Hash in a HWI.
8958 (report_error_func): Change size_in_bytes argument to HWI.
8959 Use *_N builtins if size_in_bytes is larger than 16 or not power of
8960 two.
8961 (build_shadow_mem_access): New function.
8962 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
8963 Handle size_in_bytes not power of two or larger than 16.
8964 (instrument_derefs): Don't give up if size_in_bytes is not
8965 power of two or is larger than 16.
8966
8967 2014-05-30 Kai Tietz <ktietz@redhat.com>
8968
8969 PR target/60104
8970 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
8971 for sibling-tail-calls.
8972 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
8973 to its use.
8974 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
8975 (sibcall_insn_operand): Add check for sibcall_memory_operand.
8976
8977 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8978
8979 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
8980 * config/avr/avr-tables.opt: Regenerate.
8981 * config/avr/t-multilib: Regenerate.
8982 * doc/avr-mmcu.texi: Regenerate.
8983
8984 2014-05-30 Ian Lance Taylor <iant@google.com>
8985
8986 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
8987 target("sse").
8988
8989 2014-05-30 Tom de Vries <tom@codesourcery.com>
8990
8991 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
8992 Redefine as true.
8993
8994 2014-05-30 Tom de Vries <tom@codesourcery.com>
8995
8996 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
8997 * lra.c (initialize_lra_reg_info_element): Add init of
8998 actual_call_used_reg_set field.
8999 (lra): Call lra_create_live_ranges before lra_inheritance for
9000 -fuse-caller-save.
9001 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9002 -fuse-caller-save.
9003 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
9004 instead of call_used_reg_set for -fuse-caller-save.
9005 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9006
9007 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9008
9009 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9010 to mov_imm.
9011 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9012
9013 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9014
9015 * ira.c (ira_get_dup_out_num): Check for output operands at
9016 the start of the loop. Handle cases where an included alternative
9017 follows an excluded one.
9018
9019 2014-05-29 Mike Stump <mikestump@comcast.net>
9020
9021 PR debug/61352
9022 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9023 post ld passes when lto is used.
9024
9025 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9026
9027 PR rtl-optimization/61325
9028 * lra-constraints.c (process_address): Rename to process_address_1.
9029 (process_address): New function.
9030
9031 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9032
9033 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9034 TYPES_BINOPV): New static data.
9035 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9036 New builtin.
9037 * config/aarch64/aarch64-simd.md (aarch64_ext,
9038 aarch64_im_lane_boundsi): New patterns.
9039 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9040 patterns for EXT.
9041 (aarch64_evpc_ext): New function.
9042
9043 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9044
9045 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9046 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9047 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9048 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9049 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9050
9051 2014-05-29 Tom de Vries <tom@codesourcery.com>
9052
9053 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9054
9055 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9056 Richard Sandiford <rdsandiford@googlemail.com>
9057
9058 * arm/iterators.md (shiftable_ops): New code iterator.
9059 (t2_binop0, arith_shift_insn): New code attributes.
9060 * arm/predicates.md (shift_nomul_operator): New predicate.
9061 * arm/arm.md (insn_enabled): Delete.
9062 (enabled): Remove insn_enabled test.
9063 (*arith_shiftsi): Delete. Replace with ...
9064 (*<arith_shift_insn>_multsi): ... new pattern.
9065 (*<arith_shift_insn>_shiftsi): ... new pattern.
9066 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9067
9068 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9069 Tom de Vries <tom@codesourcery.com>
9070
9071 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9072 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9073 clobber.
9074 (mips_split_call): Use POST_CALL_TMP_REG.
9075 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9076
9077 2014-05-29 Tom de Vries <tom@codesourcery.com>
9078
9079 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9080 with #ifdef STACK_REGS.
9081
9082 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9083
9084 * varasm.c (get_variable_section): Walk aliases.
9085 (place_block_symbol): Walk aliases.
9086
9087 2014-05-28 Tom de Vries <tom@codesourcery.com>
9088
9089 Revert:
9090 2014-05-28 Tom de Vries <tom@codesourcery.com>
9091
9092 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9093 * lra.c (initialize_lra_reg_info_element): Add init of
9094 actual_call_used_reg_set field.
9095 (lra): Call lra_create_live_ranges before lra_inheritance for
9096 -fuse-caller-save.
9097 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9098 -fuse-caller-save.
9099 * lra-constraints.c (need_for_call_save_p): Use
9100 actual_call_used_reg_set instead of call_used_reg_set for
9101 -fuse-caller-save.
9102 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9103
9104 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9105
9106 * doc/md.texi: Document that the % constraint character must
9107 be at the beginning of the string.
9108 * genoutput.c (validate_insn_alternatives): Check that '=',
9109 '+' and '%' only appear at the beginning of a constraint.
9110 * ira.c (commutative_constraint_p): Delete.
9111 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9112 at the start of the string.
9113 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9114 duplicate '='s.
9115 * config/arm/neon.md (bicdi3_neon): Likewise.
9116 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9117 (slt_si, sltu_si): Likewise.
9118 * config/vax/vax.md (sbcdi3): Likewise.
9119 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9120 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9121 (mul64): Move '%' to beginning of constraint.
9122 * config/arm/arm.md (*xordi3_insn): Likewise.
9123 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9124 (xorsi3): Likewise.
9125
9126 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9127
9128 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9129
9130 2014-05-28 Jason Merrill <jason@redhat.com>
9131
9132 PR c++/47202
9133 * cgraph.h (symtab_node::get_comdat_group_id): New.
9134 * cgraphunit.c (analyze_functions): Call it.
9135 * symtab.c (dump_symtab_node): Likewise.
9136 * tree.c (decl_comdat_group_id): New.
9137 * tree.h: Declare it.
9138 * lto-streamer-out.c (write_symbol): Use it.
9139 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9140
9141 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9142
9143 PR bootstrap/PR61146
9144 * wide-int.cc: Do not include longlong.h when compiling with clang.
9145
9146 2014-05-28 Richard Biener <rguenther@suse.de>
9147
9148 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9149 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9150 (vrp_visit_assignment_or_call): Print less vertical space.
9151 (vrp_visit_stmt): Likewise.
9152 (vrp_visit_phi_node): Likewise. For a PHI argument with
9153 VR_VARYING range consider recording it as copy.
9154
9155 2014-05-28 Richard Biener <rguenther@suse.de>
9156
9157 Revert
9158 2014-05-28 Richard Biener <rguenther@suse.de>
9159
9160 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9161
9162 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9163
9164 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9165 sufficiently aligned and an offset is used at the same time.
9166 (expand_expr_real_1): Likewise.
9167
9168 2014-05-28 Richard Biener <rguenther@suse.de>
9169
9170 PR middle-end/61045
9171 * fold-const.c (fold_comparison): When folding
9172 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9173 the sign of the remaining constant operand stays the same.
9174
9175 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9176
9177 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9178 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9179 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9180 to the assembler.
9181 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9182 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9183 (m32bit-doubles) Likewise.
9184 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9185 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9186 option for RL78.
9187
9188 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9189
9190 * configure.ac ($gcc_cv_ld_clearcap): New test.
9191 * configure: Regenerate.
9192 * config.in: Regenerate.
9193 * config/sol2.opt (mclear-hwcap): New option.
9194 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9195 * config/sol2-clearcap.map: Moved here from
9196 testsuite/gcc.target/i386/clearcap.map.
9197 * config/sol2-clearcapv2.map: Move here from
9198 gcc.target/i386/clearcapv2.map.
9199 * config/t-sol2 (install): Depend on install-clearcap-map.
9200 (install-clearcap-map): New target.
9201 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9202 -mclear-hwcap.
9203
9204 2014-05-28 Richard Biener <rguenther@suse.de>
9205
9206 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9207 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9208 ... here and remove the rest.
9209 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9210
9211 2014-05-28 Richard Biener <rguenther@suse.de>
9212
9213 PR tree-optimization/61335
9214 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9215 new range fails, drop to varying.
9216
9217 2014-05-28 Olivier Hainque <hainque@adacore.com>
9218
9219 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9220 (CPP_SPEC): Add entry for -mcpu=8548.
9221 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9222 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9223
9224 2014-05-28 Tom de Vries <tom@codesourcery.com>
9225
9226 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9227 * lra.c (initialize_lra_reg_info_element): Add init of
9228 actual_call_used_reg_set field.
9229 (lra): Call lra_create_live_ranges before lra_inheritance for
9230 -fuse-caller-save.
9231 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9232 -fuse-caller-save.
9233 * lra-constraints.c (need_for_call_save_p): Use
9234 actual_call_used_reg_set instead of call_used_reg_set for
9235 -fuse-caller-save.
9236 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9237
9238 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9239 Tom de Vries <tom@codesourcery.com>
9240
9241 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9242 to gccoptlist.
9243 (@item -fuse-caller-save): New item.
9244
9245 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9246 Tom de Vries <tom@codesourcery.com>
9247
9248 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9249 OPT_fuse_caller_save.
9250
9251 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9252 Tom de Vries <tom@codesourcery.com>
9253
9254 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9255 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9256 get_call_reg_set_usage.
9257 * resource.c (mark_set_resources, mark_target_live_regs): Use
9258 get_call_reg_set_usage.
9259 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9260 field.
9261 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9262 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9263 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9264 * ira-build.c (ira_create_allocno): Init
9265 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9266 (create_cap_allocno, propagate_allocno_info)
9267 (propagate_some_info_from_allocno)
9268 (copy_info_to_removed_store_destinations): Handle
9269 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9270 * ira-costs.c (ira_tune_allocno_costs): Use
9271 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9272
9273 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9274 Tom de Vries <tom@codesourcery.com>
9275
9276 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9277 and function_used_regs_valid fields.
9278 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9279 find_all_hard_reg_sets.
9280 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9281 (get_call_reg_set_usage): New function.
9282 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9283 * regs.h (get_call_reg_set_usage): Declare.
9284
9285 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9286
9287 PR libgcc/61152
9288 * config/dbx.h (License): Add Runtime Library Exception.
9289 * config/newlib-stdint.h (License): Same.
9290 * config/rtems.h (License): Same
9291 * config/initfini-array.h (License): Same
9292 * config/v850/v850.h (License): Same.
9293 * config/v850/v850-opts.h (License): Same
9294 * config/v850/rtems.h (License): Same.
9295
9296 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9297
9298 PR target/61044
9299 * doc/extend.texi (Local Labels): Note that label differences are
9300 not supported for AVR.
9301
9302 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9303 Olivier Hainque <hainque@adacore.com>
9304
9305 * rtl.h (set_for_reg_notes): Declare.
9306 * emit-rtl.c (set_for_reg_notes): New function.
9307 (set_unique_reg_note): Use it.
9308 * optabs.c (add_equal_note): Likewise
9309
9310 2014-05-27 Andrew Pinski <apinski@cavium.com>
9311
9312 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9313 Use <w> for the register in assembly template.
9314 (stack_protect_test): Use the mode of operands[0] for the result.
9315 (stack_protect_test_<mode>): Use <w> for the register
9316 in assembly template.
9317
9318 2014-05-27 DJ Delorie <dj@redhat.com>
9319
9320 * config/rx/rx.c (add_vector_labels): New.
9321 (rx_output_function_prologue): Call it.
9322 (rx_handle_func_attribute): Don't require empty arguments.
9323 (rx_handle_vector_attribute): New.
9324 (rx_attribute_table): Add "vector" attribute.
9325 * doc/extend.texi (interrupt, vector): Document new/changed
9326 RX-specific attributes.
9327
9328 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9329
9330 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9331
9332 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9333 predicate to detect a negative quotient.
9334
9335 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9336
9337 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9338 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9339 Add X - Y CMP 0 to X CMP Y transformation.
9340 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9341
9342 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9343
9344 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9345 before printing.
9346
9347 2014-05-27 Steve Ellcey <sellcey@mips.com>
9348
9349 * config/mips/mips.c: Add include of cgraph.h.
9350
9351 2014-05-27 Richard Biener <rguenther@suse.de>
9352
9353 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9354
9355 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9356
9357 PR libgcc/61152
9358 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9359 * config/arm/arm-cores.def (License): Same.
9360 * config/arm/arm-opts.h (License): Same.
9361 * config/arm/aout.h (License): Same.
9362 * config/arm/bpabi.h (License): Same.
9363 * config/arm/elf.h (License): Same.
9364 * config/arm/linux-elf.h (License): Same.
9365 * config/arm/linux-gas.h (License): Same.
9366 * config/arm/netbsd-elf.h (License): Same.
9367 * config/arm/uclinux-eabi.h (License): Same.
9368 * config/arm/uclinux-elf.h (License): Same.
9369 * config/arm/vxworks.h (License): Same.
9370
9371 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9372
9373 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9374 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9375 (arm_init_neon_builtins): Handle NEON_BSWAP.
9376 Define required type nodes.
9377 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9378 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9379 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9380 * config/arm/iterators.md (VDQHSD): New mode iterator.
9381
9382 2014-05-27 Richard Biener <rguenther@suse.de>
9383
9384 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9385 Try using literal operands when comparing value-ranges failed.
9386
9387 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9388
9389 * ira.c (commutative_operand): Adjust for change to recog_data.
9390 [Missing from previous commit.]
9391
9392 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9393
9394 * system.h (TEST_BIT): New macro.
9395 * recog.h (alternative_mask): New type.
9396 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9397 (recog_data_d): Replace alternative_enabled_p array with
9398 enabled_alternatives.
9399 (target_recog): New structure.
9400 (default_target_recog, this_target_recog): Declare.
9401 (get_enabled_alternatives, recog_init): Likewise.
9402 * recog.c (default_target_recog, this_target_recog): New variables.
9403 (get_enabled_alternatives): New function.
9404 (extract_insn): Use it.
9405 (recog_init): New function.
9406 (preprocess_constraints, constrain_operands): Adjust for change to
9407 recog_data.
9408 * postreload.c (reload_cse_simplify_operands): Likewise.
9409 * reload.c (find_reloads): Likewise.
9410 * ira-costs.c (record_reg_classes): Likewise.
9411 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9412 all alternatives after a disabled one would be skipped.
9413 (ira_implicitly_set_insn_hard_regs): Likewise.
9414 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9415 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9416 with enabled_alternatives.
9417 * lra.c (free_insn_recog_data): Update accordingly.
9418 (lra_update_insn_recog_data): Likewise.
9419 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9420 * lra-constraints.c (process_alt_operands): Likewise. Handle
9421 only_alternative as part of the enabled mask.
9422 * target-globals.h (this_target_recog): Declare.
9423 (target_globals): Add a recog field.
9424 (restore_target_globals): Restore this_target_recog.
9425 * target-globals.c: Include recog.h.
9426 (default_target_globals): Initialize recog field.
9427 (save_target_globals): Likewise.
9428 * reginfo.c (reinit_regs): Call recog_init.
9429 * toplev.c (backend_init_target): Likewise.
9430
9431 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9432
9433 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9434 rather than any named insn's code.
9435
9436 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9437
9438 PR libgcc/61152
9439 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9440 * config/arm/arm-cores.def (License): Same.
9441
9442 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9443
9444 * tree.h (decl_comdat_group): Declare.
9445 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9446 * tree.c (decl_comdat_group): Here.
9447
9448 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9449
9450 PR rtl-optimization/61222
9451 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9452 the shift, truncate the PLUS operand to the result mode.
9453
9454 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9455
9456 PR target/61271
9457 * config/i386/i386.c (ix86_rtx_costs)
9458 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9459 Fix condition.
9460
9461 2014-05-26 Martin Jambor <mjambor@suse.cz>
9462
9463 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9464 subreg uses.
9465
9466 2014-05-26 Richard Biener <rguenther@suse.de>
9467
9468 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9469 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9470 Provide specializations.
9471 (wi::int_traits <HOST_WIDE_INT>,
9472 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9473
9474 2014-05-26 Alan Modra <amodra@gmail.com>
9475
9476 PR target/61098
9477 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9478 params and return a bool. Remove dead code. Update comment.
9479 Assert we have a const_int source. Remove bogus code from
9480 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9481 handling of constants > 2G and reg_equal note, from..
9482 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9483 return value. Update comment. If we can, use a new pseudo
9484 for intermediate calculations.
9485 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9486 prototype.
9487 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9488 call to rs6000_emit_set_const in splitter.
9489 (movdi_internal64+2, +3): Likewise.
9490
9491 2014-05-26 Richard Biener <rguenther@suse.de>
9492
9493 * system.h: Define __STDC_FORMAT_MACROS before
9494 including inttypes.h.
9495 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9496 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9497 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9498 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9499 HOST_WIDEST_INT_C): Remove.
9500 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9501 if C99 inttypes.h is not available.
9502 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9503 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9504 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9505 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9506 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9507 (struct output_info): Likewise.
9508 (print_statistics): Adjust.
9509 (dump_bitmap_statistics): Likewise.
9510 * bt-load.c (migrate_btr_defs): Print with PRId64.
9511 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9512 (MAX_SAFE_MULTIPLIER): Adjust.
9513 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9514 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9515 dump_cgraph_node): Likewise.
9516 * final.c (dump_basic_block_info): Likewise.
9517 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9518 * gcov.c (format_gcov): Likewise.
9519 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9520 for calculation.
9521 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9522 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9523 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9524 Use PRId64 for dumping.
9525 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9526 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9527 (add_allocno_hard_regs): Adjust.
9528 * loop-doloop.c (doloop_modify): Print using PRId64.
9529 * loop-iv.c (inverse): Compute in uint64_t.
9530 (determine_max_iter, iv_number_of_iterations): Likewise.
9531 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9532 Print using PRId64.
9533 * lto-streamer-out.c (write_symbol): Use uint64_t.
9534 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9535 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9536 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9537 * modulo-sched.c (const_iteration_count): Use int64_t.
9538 (sms_schedule): Dump using PRId64.
9539 * predict.c (dump_prediction): Likewise.
9540 * pretty-print.h (pp_widest_integer): Remove.
9541 * profile.c (get_working_sets, is_edge_inconsistent,
9542 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9543 * tree-pretty-print.c (pp_double_int): Remove case handling
9544 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9545 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9546 and adjust users.
9547 (pass_optimize_bswap::execute): Remove restriction on hosts.
9548 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9549 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9550 * tree.c (widest_int_cst_value): Remove.
9551 * tree.h (widest_int_cst_value): Likewise.
9552 * value-prof.c (dump_histogram_value): Print using PRId64.
9553 * gengtype.c (main): Also inject int64_t.
9554 * ggc-page.c (struct max_alignment): Use int64_t.
9555 * alloc-pool.c (struct allocation_object_def): Likewise.
9556 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9557 for computation.
9558 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9559 * doc/tm.texi: Regenerated.
9560 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9561 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9562 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9563 mmix_output_register_setting): Use [u]int64_t in prototypes.
9564 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9565 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9566 mmix_output_octa, mmix_output_shifted_value): Adjust.
9567 (mmix_intval): Adjust. Remove unreachable case.
9568 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9569
9570 2014-05-26 Richard Biener <rguenther@suse.de>
9571
9572 * configure.ac: Drop __int64 type check. Insist that we
9573 found uint64_t and int64_t.
9574 * hwint.h (HOST_BITS_PER___INT64): Remove.
9575 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9576 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9577 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9578 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9579 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9580 for dst_q_src_df_rms_cdt.
9581 * configure: Regenerate.
9582 * config.in: Likewise.
9583
9584 2014-05-26 Michael Tautschnig <mt@debian.org>
9585
9586 PR target/61249
9587 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9588 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9589
9590 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9591
9592 PR rtl-optimization/61278
9593 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9594
9595 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9596
9597 PR rtl-optimization/61220
9598 Part of PR rtl-optimization/61225
9599 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9600 insn; skip split_edge for a block with only one successor.
9601
9602 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9603
9604 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
9605 for variables.
9606
9607 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9608
9609 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
9610 (update_vtable_references): New function.
9611 (function_and_variable_visibility): Rewrite also vtable initializers.
9612 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
9613
9614 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9615
9616 * ggc.h (ggc_grow): New function.
9617 * ggc-none.c (ggc_grow): New function.
9618 * ggc-page.c (ggc_grow): Likewise.
9619
9620 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9621
9622 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
9623 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
9624 comdat_can_be_unshared_p, cgraph_externally_visible_p,
9625 varpool_externally_visible_p, can_replace_by_local_alias,
9626 update_visibility_by_resolution_info, function_and_variable_visibility,
9627 pass_data_ipa_function_and_variable_visibility,
9628 make_pass_ipa_function_and_variable_visibility,
9629 whole_program_function_and_variable_visibility,
9630 pass_data_ipa_whole_program_visibility,
9631 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
9632 * cgraph.h (cgraph_local_node_p): Declare.
9633 * ipa-visibility.c: New file.
9634 * Makefile.in (OBJS): Add ipa-visiblity.o
9635
9636 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9637
9638 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
9639 that var decl is available.
9640
9641 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9642
9643 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
9644 symtab_node pointer.
9645 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
9646 (find_decls_types_r): Do not walk COMDAT_GROUP.
9647 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
9648 * varasm.c (make_decl_one_only): Use set_comdat_group;
9649 create node if needed.
9650 * ipa-inline-transform.c (save_inline_function_body): Update
9651 way we decl->symtab mapping.
9652 * symtab.c (symtab_hash, hash_node, eq_node
9653 symtab_insert_node_to_hashtable): Remove.
9654 (symtab_register_node): Update.
9655 (symtab_unregister_node): Update.
9656 (symtab_get_node): Reimplement as inline function.
9657 (symtab_add_to_same_comdat_group): Update.
9658 (symtab_dissolve_same_comdat_group_list): Update.
9659 (dump_symtab_base): Update.
9660 (verify_symtab_base): Update.
9661 (symtab_make_decl_local): Update.
9662 (fixup_same_cpp_alias_visibility): Update.
9663 (symtab_nonoverwritable_alias): Update.
9664 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
9665 * ipa.c (update_visibility_by_resolution_info): UPdate.
9666 * bb-reorder.c: Include cgraph.h
9667 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
9668 with comdat groups.
9669 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
9670 * cgraph.c (cgraph_get_create_node): Update.
9671 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
9672 and comdat_group_.
9673 (symtab_get_node): Make inline.
9674 (symtab_insert_node_to_hashtable): Remove.
9675 (symtab_can_be_discarded): Update.
9676 (decl_comdat_group): New function.
9677 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
9678 Update.
9679 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
9680 comdat group name.
9681 (read_comdat_group): New function.
9682 (input_node, input_varpool_node): Use it.
9683 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
9684 comdat groups.
9685 * mips.c (mips_start_unique_function): Likewise.
9686 (ix86_code_end): Likewise.
9687 (rs6000_code_end): Likweise.
9688 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
9689
9690 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9691
9692 * gengtype-state.c (fatal_reading_state): Bring offline.
9693 * optabs.c (widening_optab_handler): Bring offline.
9694 * optabs.h (widening_optab_handler): Likewise.
9695 * final.c (get_attr_length_1): Likewise.
9696
9697 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9698
9699 * sched-int.h (sd_iterator_cond): Manually tail recurse.
9700
9701 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9702
9703 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
9704 (ppc440-compare): Include shift with dot.
9705 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
9706 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
9707 without dot.
9708 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
9709 without dot.
9710 (e6500_sfx2): Include it.
9711 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
9712 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9713 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
9714 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
9715 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
9716 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
9717 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
9718 *lshiftrt_internal1le, *lshiftrt_internal1be,
9719 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
9720 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
9721 *rotldi3_internal10le, *rotldi3_internal10be,
9722 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
9723 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
9724 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
9725 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
9726 define_insns): Use type "shift" in the appropriate alternatives.
9727
9728 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9729
9730 * config/rs6000/rs6000.md (type): Add "logical". Delete
9731 "fast_compare".
9732 (dot): Adjust comment.
9733 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
9734 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
9735 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
9736 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
9737 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
9738 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
9739 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
9740 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9741
9742 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9743 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9744 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9745 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9746 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9747 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9748 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9749 * config/rs6000/8540.md (ppc8540_su): Adjust.
9750 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9751 cell-cmp-microcoded): Adjust.
9752 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9753 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9754 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9755 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9756 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9757 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9758 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9759 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9760 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9761 Adjust.
9762 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9763 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
9764 Adjust. Adjust comment.
9765 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9766 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9767
9768 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9769
9770 * config/rs6000/rs6000.md (type): Add "add".
9771 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
9772 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
9773 define_insns): Use it.
9774 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9775
9776 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9777 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9778 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9779 * config/rs6000/601.md (ppc601-integer): Adjust.
9780 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9781 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9782 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9783 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9784 * config/rs6000/8540.md (ppc8540_su): Adjust.
9785 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9786 cell-cmp-microcoded): Adjust.
9787 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9788 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9789 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9790 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9791 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9792 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9793 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9794 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9795 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9796 Adjust.
9797 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9798 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
9799 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9800 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9801
9802 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9803
9804 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
9805 "delayed_compare", "var_delayed_compare".
9806 (var_shift): New attribute.
9807 (cell_micro): Adjust.
9808 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
9809 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
9810 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
9811 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9812 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9813 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9814 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9815 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
9816 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
9817 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9818 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
9819 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
9820 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
9821 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
9822 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
9823 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
9824 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
9825 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
9826 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
9827 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
9828 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
9829 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
9830 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
9831 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9832 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9833
9834 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9835 * config/rs6000/440.md (ppc440-integer): Adjust.
9836 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9837 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
9838 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9839 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9840 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9841 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9842 * config/rs6000/8540.md (ppc8540_su): Adjust.
9843 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9844 cell-cmp-microcoded): Adjust.
9845 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
9846 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9847 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
9848 e500mc64_delayed): Adjust.
9849 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
9850 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
9851 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9852 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
9853 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
9854 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
9855 power6-delayed-compare, power6-var-delayed-compare): Adjust.
9856 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
9857 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
9858 Adjust comment.
9859 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9860 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9861
9862 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9863
9864 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
9865 (bits): New mode_attr.
9866 (idiv_ldiv): Delete mode_attr.
9867 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
9868 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9869 rs6000_adjust_priority, is_nonpipeline_insn,
9870 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9871
9872 * config/rs6000/40x.md (ppc403-idiv): Adjust.
9873 * config/rs6000/440.md (ppc440-idiv): Adjust.
9874 * config/rs6000/476.md (ppc476-idiv): Adjust.
9875 * config/rs6000/601.md (ppc601-idiv): Adjust.
9876 * config/rs6000/603.md (ppc603-idiv): Adjust.
9877 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
9878 ppc620-ldiv): Adjust.
9879 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
9880 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
9881 * config/rs6000/8540.md (ppc8540_divide): Adjust.
9882 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
9883 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
9884 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
9885 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
9886 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
9887 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
9888 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
9889 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
9890 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
9891 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
9892 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
9893 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
9894 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
9895 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
9896 * config/rs6000/titan.md (titan_fxu_div): Adjust.
9897
9898 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9899
9900 * config/rs6000/rs6000.md (type): Delete "insert_word",
9901 "insert_dword". Add "insert".
9902 (size): Update comment.
9903 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9904 insn_must_be_first_in_group): Adjust.
9905 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9906 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9907 *insvsi_internal6, insvdi_internal): Adjust.
9908
9909 * config/rs6000/40x.md (ppc403-integer): Adjust.
9910 * config/rs6000/440.md (ppc440-integer): Adjust.
9911 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
9912 * config/rs6000/601.md (ppc601-integer): Adjust.
9913 * config/rs6000/603.md (ppc603-integer): Adjust.
9914 * config/rs6000/6xx.md (ppc604-integer): Adjust.
9915 * config/rs6000/7450.md (ppc7450-integer): Adjust.
9916 * config/rs6000/7xx.md (ppc750-integer): Adjust.
9917 * config/rs6000/8540.md (ppc8540_su): Adjust.
9918 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
9919 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
9920 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9921 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
9922 * config/rs6000/e5500.md (e5500_sfx): Adjust.
9923 * config/rs6000/e6500.md (e6500_sfx): Adjust.
9924 * config/rs6000/mpc.md (mpccore-integer): Adjust.
9925 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
9926 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
9927 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
9928 * config/rs6000/power7.md (power7-integer): Adjust.
9929 * config/rs6000/power8.md (power8-1cyc): Adjust.
9930 * config/rs6000/rs64.md (rs64a-integer): Adjust.
9931 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9932
9933 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9934
9935 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
9936 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
9937 (size): New attribute.
9938 (dot): New attribute.
9939 (cell_micro): Adjust.
9940 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
9941 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
9942 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
9943 umuldi3_highpart): Adjust.
9944 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9945 rs6000_adjust_priority, is_nonpipeline_insn,
9946 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9947
9948 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
9949 ppc405-imul3): Adjust.
9950 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
9951 * config/rs6000/476.md (ppc476-imul): Adjust.
9952 * config/rs6000/601.md (ppc601-imul): Adjust.
9953 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
9954 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
9955 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
9956 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
9957 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
9958 Adjust.
9959 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
9960 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
9961 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
9962 cell-imul): Adjust.
9963 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
9964 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
9965 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
9966 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
9967 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
9968 * config/rs6000/mpc.md (mpccore-imul): Adjust.
9969 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
9970 power4-lmul, power4-imul, power4-imul3): Adjust.
9971 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
9972 power5-lmul, power5-imul, power5-imul3): Adjust.
9973 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
9974 power6-lmul, power6-imul, power6-imul3): Adjust.
9975 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
9976 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
9977
9978 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
9979 rs64a-lmul): Adjust.
9980 * config/rs6000/titan.md (titan_imul): Adjust.
9981
9982 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9983
9984 * config/rs6000/rs6000.md (type): Add new value "halfmul".
9985 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
9986 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
9987 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
9988 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
9989 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
9990 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
9991 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
9992 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
9993 * config/rs6000/titan.md: Delete nonsensical comment.
9994 (titan_imul): Add type imul3.
9995 (titan_mulhw): Remove type imul3; add type halfmul.
9996
9997 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9998
9999 * config/rs6000/rs6000.md (type): Reorder, reformat.
10000
10001 2014-05-23 Martin Jambor <mjambor@suse.cz>
10002
10003 PR tree-optimization/53787
10004 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
10005 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
10006 analysis_done, update all uses.
10007 * ipa-prop.c: Include domwalk.h
10008 (param_analysis_info): Removed.
10009 (param_aa_status): New type.
10010 (ipa_bb_info): Likewise.
10011 (func_body_info): Likewise.
10012 (ipa_get_bb_info): New function.
10013 (aa_overwalked): Likewise.
10014 (find_dominating_aa_status): Likewise.
10015 (parm_bb_aa_status_for_bb): Likewise.
10016 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10017 (load_from_unmodified_param): Accept func_body_info as a parameter
10018 instead of parms_ainfo.
10019 (parm_ref_data_preserved_p): Changed to use new param AA info.
10020 (parm_ref_data_pass_through_p): Likewise.
10021 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10022 (compute_complex_assign_jump_func): Changed to use new param AA info.
10023 (compute_complex_ancestor_jump_func): Likewise.
10024 (ipa_compute_jump_functions_for_edge): Likewise.
10025 (ipa_compute_jump_functions): Removed.
10026 (ipa_compute_jump_functions_for_bb): New function.
10027 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10028 declarations down.
10029 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10030 and info, moved variable declarations down.
10031 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10032 node and info.
10033 (ipa_analyze_stmt_uses): Likewise.
10034 (ipa_analyze_params_uses): Removed.
10035 (ipa_analyze_params_uses_in_bb): New function.
10036 (ipa_analyze_controlled_uses): Likewise.
10037 (free_ipa_bb_info): Likewise.
10038 (analysis_dom_walker): New class.
10039 (ipa_analyze_node): Handle node-specific forbidden analysis,
10040 initialize and free func_body_info, use dominator walker.
10041 (ipcp_modif_dom_walker): New class.
10042 (ipcp_transform_function): Create and free func_body_info, use
10043 ipcp_modif_dom_walker, moved a lot of functionality there.
10044
10045 2014-05-23 Marek Polacek <polacek@redhat.com>
10046 Jakub Jelinek <jakub@redhat.com>
10047
10048 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10049 * gcc.c (sanitize_spec_function): Likewise.
10050 * convert.c (convert_to_integer): Include "ubsan.h". Add
10051 floating-point to integer instrumentation.
10052 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10053 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10054 SANITIZE_NONDEFAULT.
10055 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10056 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10057 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10058 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10059 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10060 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10061 float/double/long double.
10062 (ubsan_instrument_float_cast): New function.
10063 * ubsan.h (ubsan_instrument_float_cast): Declare.
10064
10065 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10066
10067 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10068 predicate.
10069 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10070 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10071 Adjust for tailcalling through registers.
10072 * config/aarch64/aarch64.h (enum reg_class): New caller save
10073 register class.
10074 (REG_CLASS_NAMES): Likewise.
10075 (REG_CLASS_CONTENTS): Likewise.
10076 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10077 Allow tailcalling without decls.
10078
10079 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10080
10081 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10082 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10083
10084 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10085 gsi, and variables v_* to v*.
10086
10087 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10088
10089 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10090
10091 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10092
10093 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10094 * omp-low.c: Update accordingly.
10095
10096 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10097 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10098 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10099 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10100 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10101 GF_OMP_TARGET_KIND_UPDATE.
10102
10103 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10104 Explicitly enumerate the expected region types.
10105
10106 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10107
10108 PR other/56955
10109 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10110 documentation; the old documentation didn't clearly state the
10111 constraints on the contents of the pointed-to storage.
10112
10113 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10114
10115 Fix bootstrap error on ia64
10116 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10117 Return default value.
10118
10119 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10120
10121 PR tree-optimization/54733
10122 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10123 (CMPNOP): Define.
10124 (find_bswap_or_nop_load): New.
10125 (find_bswap_1): Renamed to ...
10126 (find_bswap_or_nop_1): This. Also add support for memory source.
10127 (find_bswap): Renamed to ...
10128 (find_bswap_or_nop): This. Also add support for memory source and
10129 detection of bitwise operations equivalent to load in target
10130 endianness.
10131 (execute_optimize_bswap): Likewise. Also move its leading comment back
10132 in place and split statement transformation into ...
10133 (bswap_replace): This.
10134
10135 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10136
10137 PR rtl-optimization/61215
10138 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10139 simplify_gen_subreg until final substitution.
10140
10141 2014-05-23 Alan Modra <amodra@gmail.com>
10142
10143 PR target/61231
10144 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10145 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10146 Use "Y" constraint rather than "m".
10147
10148 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10149
10150 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10151 define.
10152 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10153 New function declaration.
10154 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10155 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10156 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10157 (aarch64_init_builtins) : Initialize builtins
10158 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10159 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10160 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10161 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10162 and __builtins_aarch64_set_fpsr.
10163 (aarch64_atomic_assign_expand_fenv): New function.
10164 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10165 (get_fpcr) : Likewise.
10166 (set_fpsr) : Likewise.
10167 (get_fpsr) : Likewise.
10168 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10169 and UNSPECV_SET_FPSR.
10170 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10171 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10172 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10173
10174 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10175
10176 PR rtl-optimization/60969
10177 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10178 constraints. Set up mem cost for NO_REGS case.
10179
10180 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10181
10182 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10183
10184 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10185
10186 * config/darwin.c: Include "lto-section-names.h".
10187 (LTO_SEGMENT_NAME): Don't define.
10188 * config/i386/winnt.c: Include "lto-section-names.h".
10189 * lto-streamer.c: Include "lto-section-names.h".
10190 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10191 * lto-wrapper.c: Include "lto-section-names.h".
10192 (LTO_SECTION_NAME_PREFIX): Don't define.
10193 * lto-section-names.h: New file.
10194 * cgraphunit.c: Include "lto-section-names.h".
10195
10196 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10197
10198 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10199
10200 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10201
10202 PR target/61208
10203 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10204
10205 2014-05-22 Nick Clifton <nickc@redhat.com>
10206
10207 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10208
10209 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10210
10211 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10212 -> (T)A transformation to integer types.
10213
10214 2014-05-22 Teresa Johnson <tejohnson@google.com>
10215
10216 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10217 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10218 (gcov_rewrite): Use gcov_nonruntime_assert.
10219 (gcov_open): Ditto.
10220 (gcov_write_words): Ditto.
10221 (gcov_write_length): Ditto.
10222 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10223 gcc_assert from IN_LIBGCOV code.
10224 (gcov_read_summary): Use gcov_error to flag profile corruption.
10225 (gcov_sync): Use gcov_nonruntime_assert.
10226 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10227 (gcov_histo_index): Use gcov_nonruntime_assert.
10228 (static void gcov_histogram_merge): Ditto.
10229 (compute_working_sets): Ditto.
10230 * gcov-io.h (gcov_nonruntime_assert): Define.
10231 (gcov_error): Define for !IN_LIBGCOV
10232
10233 2014-05-22 Richard Biener <rguenther@suse.de>
10234
10235 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10236 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10237 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10238 and deallocation site.
10239 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10240 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10241 passing through the incoming points-to set.
10242 (handle_lhs_call): Use flags argument instead of recomputing it.
10243 (find_func_aliases_for_call): Call handle_lhs_call with proper
10244 call return flags.
10245
10246 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10247
10248 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10249 all padding bits in REAL_VALUE_TYPE are cleared.
10250
10251 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10252
10253 Cleanup and improve multipass_dfa_lookahead_guard
10254 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10255 (core2i7_first_cycle_multipass_begin,)
10256 (core2i7_first_cycle_multipass_issue,)
10257 (core2i7_first_cycle_multipass_backtrack): Update signature.
10258 * config/ia64/ia64.c
10259 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10260 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10261 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10262 hook definition.
10263 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10264 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10265 values.
10266 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10267 return values.
10268 * doc/tm.texi: Regenerate.
10269 * doc/tm.texi.in
10270 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10271 * haifa-sched.c (ready_try): Make signed to allow negative values.
10272 (rebug_ready_list_1): Update.
10273 (choose_ready): Simplify.
10274 (sched_extend_ready_list): Update.
10275
10276 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10277
10278 Remove IA64 speculation tweaking flags
10279 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10280 speculation tuning flags.
10281 (msched-prefer-non-data-spec-insns,)
10282 (msched-prefer-non-control-spec-insns): Obsolete options.
10283 * haifa-sched.c (choose_ready): Remove handling of
10284 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10285 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10286 and PREFER_NON_DATA_SPEC.
10287 * sel-sched.c (process_spec_exprs): Remove handling of
10288 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10289
10290 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10291
10292 Improve scheduling debug output
10293 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10294 (advance_one_cycle): Update.
10295 (schedule_insn, queue_to_ready): Add debug printouts.
10296 (debug_ready_list_1): New static function.
10297 (debug_ready_list): Update.
10298 (max_issue): Add debug printouts.
10299 (dump_insn_stream): New static function.
10300 (schedule_block): Use it. Also better indent printouts.
10301
10302 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10303
10304 Fix sched_insn debug counter
10305 * haifa-sched.c (schedule_insn): Update.
10306 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10307 (save_backtrack_point, restore_backtrack_point): Update.
10308 (first_nonscheduled_insn): New static function.
10309 (queue_to_ready, choose_ready): Use it.
10310 (schedule_block): Init nonscheduled_insns_begin.
10311 (sched_emit_insn): Update.
10312
10313
10314 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10315
10316 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10317 to GENERAL_REGS.
10318 (aarch64_secondary_reload) : LikeWise.
10319 (aarch64_class_max_nregs) : Remove CORE_REGS.
10320 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10321 (REG_CLASS_NAMES) : Likewise.
10322 (REG_CLASS_CONTENTS) : LikeWise.
10323 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10324
10325 2014-05-21 Guozhi Wei <carrot@google.com>
10326
10327 PR target/61202
10328 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10329 constraint.
10330 (vqdmulhq_n_s16): Likewise.
10331
10332 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10333
10334 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10335
10336 2014-05-21 Marek Polacek <polacek@redhat.com>
10337
10338 PR sanitizer/61272
10339 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10340
10341 2014-05-21 Martin Jambor <mjambor@suse.cz>
10342
10343 * doc/invoke.texi (Optimize Options): Document parameters
10344 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10345 ipa-cp-array-index-hint-bonus.
10346
10347 2014-05-21 Mark Wielaard <mjw@redhat.com>
10348
10349 PR debug/16063
10350 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10351 version >= 3 or not strict DWARF.
10352 * langhooks.h (struct lang_hooks_for_types): Add
10353 enum_underlying_base_type.
10354 * langhooks.c (lhd_enum_underlying_base_type): New function.
10355 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10356 enum_underlying_base_type.
10357 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10358 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10359 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10360
10361 2014-05-21 Richard Biener <rguenther@suse.de>
10362
10363 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10364
10365 2014-05-21 John Marino <gnugcc@marino.st>
10366
10367 * config.gcc (*-*-dragonfly*): New target.
10368 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10369 * configure: Regenerate.
10370 * config/dragonfly-stdint.h: New.
10371 * config/dragonfly.h: New.
10372 * config/dragonfly.opt: New.
10373 * config/i386/dragonfly.h: New.
10374 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10375
10376 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10377
10378 * tree.def (VOID_CST): New.
10379 * tree-core.h (TI_VOID): New.
10380 * tree.h (void_node): New.
10381 * tree.c (tree_node_structure_for_code, tree_code_size)
10382 (iterative_hash_expr): Handle VOID_CST.
10383 (build_common_tree_nodes): Initialize void_node.
10384
10385 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10386
10387 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10388 functions.
10389 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10390
10391 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10392 more places.
10393
10394 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10395 flag_reorder_blocks_and_partition.
10396 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10397
10398 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10399
10400 PR target/54236
10401 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10402 constraints.
10403 (*addc_r_t): Add new insn_and_split.
10404
10405 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10406
10407 PR middle-end/61252
10408 * omp-low.c (handle_simd_reference): New function.
10409 (lower_rec_input_clauses): Use it. Defer adding reference
10410 initialization even for reduction without placeholder if in simd,
10411 handle it properly later on.
10412
10413 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10414
10415 PR tree-optimization/60899
10416 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10417 assume all static symbols will have definition wile parsing and
10418 check the do have definition later in compilation; check that
10419 variable referring symbol will be output before concluding that
10420 reference is safe; be conservative for referring local statics;
10421 be more precise about when comdat is output in other partition.
10422
10423 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10424
10425 PR bootstrap/60984
10426 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10427 parameter.
10428 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10429 (ipa_inline): Loop inline_to_all_callers until no more aliases
10430 are removed.
10431
10432 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10433
10434 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10435 set writeonly flag only for vars actually written to.
10436
10437 2014-05-20 Dehao Chen <dehao@google.com>
10438
10439 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10440 and callee count to get clone count.
10441 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10442 count in copy_body.
10443
10444 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10445
10446 PR rtl-optimization/61243
10447 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10448
10449 2014-05-20 Xinliang David Li <davidxl@google.com>
10450
10451 * cgraphunit.c (walk_polymorphic_call_targets): Add
10452 dbgcnt and fopt-info support.
10453 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10454 * ipa-devirt.c (ipa_devirt): Ditto.
10455 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10456 * ipa.c (walk_polymorphic_call_targets): Ditto.
10457 * gimple-fold.c (fold_gimple_assign): Ditto.
10458 (gimple_fold_call): Ditto.
10459 * dbgcnt.def: New counter.
10460
10461 2014-05-20 DJ Delorie <dj@redhat.com>
10462
10463 * config/msp430/msp430.md (split): Don't allow subregs when
10464 splitting SImode adds.
10465 (andneghi): Fix subtraction logic.
10466 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10467
10468 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10469
10470 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10471 symbols.
10472 * except.c (switch_to_exception_section, resolve_unique_section,
10473 get_named_text_section, default_function_rodata_section,
10474 align_variable, get_block_for_decl, default_section_type_flags):
10475 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10476 * symtab.c (symtab_add_to_same_comdat_group,
10477 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10478 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10479 Likewise.
10480 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10481 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10482 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10483 (c6x_function_in_section_p): Likewise.
10484 * config/darwin.c (machopic_select_section): Likewise.
10485 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10486 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10487 * config/mep/mep.c (mep_select_section): LIkewise.
10488 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10489
10490 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10491
10492 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10493 EH region of calls to pure functions that can throw an exception.
10494 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10495 (copy_reference_ops_from_call): Also copy the EH region of the call if
10496 it can throw an exception.
10497
10498 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10499
10500 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10501 nested VEC_SELECTs that are inverses of each other.
10502
10503 2014-05-20 Richard Biener <rguenther@suse.de>
10504
10505 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10506 (extract_and_process_scc_for_name): not here.
10507 (cond_dom_walker::before_dom_children): Only process
10508 stmts that end the BB in interesting ways.
10509 (run_scc_vn): Mark param uses as visited.
10510
10511 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10512
10513 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10514 arm_restrict_it.
10515
10516 2014-05-20 Nick Clifton <nickc@redhat.com>
10517
10518 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10519 (msp430_gimplify_va_arg_expr): New function.
10520 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10521
10522 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10523 operand 0 in order to prevent confusion about the number of
10524 registers involved.
10525
10526 2014-05-20 Richard Biener <rguenther@suse.de>
10527
10528 PR tree-optimization/61221
10529 * tree-ssa-pre.c (el_to_update): Remove.
10530 (eliminate_dom_walker::before_dom_children): Handle released
10531 VDEFs by value-numbering them to the associated VUSE. Update
10532 stmt immediately for substituted call address.
10533 (eliminate): Remove delayed stmt updating code.
10534 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10535 possibly late re-numbered vuses.
10536 (vn_reference_lookup_2): Adjust.
10537 (vn_reference_lookup_pieces): Likewise.
10538 (vn_reference_lookup): Likewise.
10539
10540 2014-05-20 Richard Biener <rguenther@suse.de>
10541
10542 * config.gcc: Remove need_64bit_hwint.
10543 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10544 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10545 it to be true.
10546 * config.in: Regenerate.
10547 * configure: Likewise.
10548
10549 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10550
10551 * doc/extend.texi: Create Label Attributes section,
10552 move all label attributes into it and reference it.
10553
10554 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10555
10556 * arm.c (thumb1_reorg): When scanning backwards skip anything
10557 that's not a proper insn.
10558
10559 2014-05-19 Richard Biener <rguenther@suse.de>
10560
10561 PR tree-optimization/61221
10562 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10563 Do nothing for unreachable blocks.
10564 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10565 Improve unreachability detection.
10566
10567 2014-05-19 Richard Biener <rguenther@suse.de>
10568
10569 PR tree-optimization/61209
10570 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10571
10572 2014-05-19 Nick Clifton <nickc@redhat.com>
10573
10574 * except.c (init_eh): Fix computation of builtin setjmp buffer
10575 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10576
10577 2014-05-19 Richard Biener <rguenther@suse.de>
10578
10579 PR tree-optimization/61184
10580 * tree-vrp.c (is_negative_overflow_infinity): Use
10581 TREE_OVERFLOW_P and do that check first.
10582 (is_positive_overflow_infinity): Likewise.
10583 (is_overflow_infinity): Likewise.
10584 (vrp_operand_equal_p): Properly treat operands with
10585 differing overflow as not equal.
10586
10587 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10588
10589 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10590 shift simplification where it was intended.
10591
10592 2014-05-19 Christian Bruel <christian.bruel@st.com>
10593
10594 PR target/61195
10595 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10596
10597 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10598
10599 PR target/61084
10600 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
10601 than wide_int.
10602
10603 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10604
10605 * reg-notes.def (CROSSING_JUMP): Likewise.
10606 * rtl.h (rtx_def): Update comment for jump flag.
10607 (CROSSING_JUMP_P): Define.
10608 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
10609 of a REG_CROSSING_JUMP note.
10610 * cfghooks.c (tidy_fallthru_edges): Likewise.
10611 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
10612 * emit-rtl.c (try_split): Likewise.
10613 * haifa-sched.c (sched_create_recovery_edges): Likewise.
10614 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
10615 * jump.c (redirect_jump_2): Likewise.
10616 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
10617 (relax_delay_slots): Likewise.
10618 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
10619 (bbit_di): Likewise.
10620 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
10621 * config/sh/sh.md (jump_compact): Likewise.
10622 * bb-reorder.c (rotate_loop): Likewise.
10623 (pass_duplicate_computed_gotos::execute): Likewise.
10624 (add_reg_crossing_jump_notes): Rename to...
10625 (update_crossing_jump_flags): ...this.
10626 (pass_partition_blocks::execute): Update accordingly.
10627
10628 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10629
10630 * tree.h: Remove extraneous template <>.
10631
10632 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10633
10634 * ipa.c (symtab_remove_unreachable_nodes): Remove
10635 symbol from comdat group if its body was eliminated.
10636 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
10637 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
10638 (symtab_unregister_node): ... this one.
10639 (verify_symtab_base): More strict checking of comdats.
10640 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
10641
10642 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10643
10644 * tree-pass.h (make_pass_ipa_comdats): New pass.
10645 * timevar.def (TV_IPA_COMDATS): New timevar.
10646 * passes.def (pass_ipa_comdats): Add.
10647 * Makefile.in (OBJS): Add ipa-comdats.o
10648 * ipa-comdats.c: New file.
10649
10650 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10651
10652 * ipa.c (update_visibility_by_resolution_info): New function.
10653 (function_and_variable_visibility): Use it.
10654
10655 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10656
10657 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
10658 New functions.
10659 (FOR_EACH_DEFINED_SYMBOL): New macro.
10660 (varpool_first_static_initializer, varpool_next_static_initializer,
10661 varpool_first_defined_variable, varpool_next_defined_variable):
10662 Fix comments.
10663 (symtab_in_same_comdat_p): Correctly deal with inline functions.
10664
10665 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10666
10667 * ggc-page.c (ggc_handle_finalizers): Add comment.
10668
10669 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10670
10671 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
10672 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
10673 (ggc_internal_cleared_alloc): Likewise.
10674 * ggc-page.c (finalizer): New class.
10675 (vec_finalizer): Likewise.
10676 (globals::finalizers): New member.
10677 (globals::vec_finalizers): Likewise.
10678 (ggc_internal_alloc): Record the finalizer if any for the block being
10679 allocated.
10680 (ggc_handle_finalizers): New function.
10681 (ggc_collect): Call ggc_handle_finalizers.
10682 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
10683 finalizer.
10684 (ggc_internal_cleared_alloc): Likewise.
10685 (finalize): New function.
10686 (need_finalization_p): Likewise.
10687 (ggc_alloc): Install the type's destructor as the finalizer if it
10688 might do something.
10689 (ggc_cleared_alloc): Likewise.
10690 (ggc_vec_alloc): Likewise.
10691 (ggc_cleared_vec_alloc): Likewise.
10692
10693 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10694
10695 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
10696
10697 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10698
10699 * alias.c (record_alias_subset): Adjust.
10700 * bitmap.c (bitmap_element_allocate): Likewise.
10701 (bitmap_gc_alloc_stat): Likewise.
10702 * cfg.c (init_flow): Likewise.
10703 (alloc_block): Likewise.
10704 (unchecked_make_edge): Likewise.
10705 * cfgloop.c (alloc_loop): Likewise.
10706 (flow_loops_find): Likewise.
10707 (rescan_loop_exit): Likewise.
10708 * cfgrtl.c (init_rtl_bb_info): Likewise.
10709 * cgraph.c (insert_new_cgraph_node_version): Likewise.
10710 (cgraph_allocate_node): Likewise.
10711 (cgraph_create_edge_1): Likewise.
10712 (cgraph_allocate_init_indirect_info): Likewise.
10713 * cgraphclones.c (cgraph_clone_edge): Likewise.
10714 * cgraphunit.c (add_asm_node): Likewise.
10715 (init_lowered_empty_function): Likewise.
10716 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
10717 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10718 (alpha_use_linkage): Likewise.
10719 * config/arc/arc.c (arc_init_machine_status): Likewise.
10720 * config/arm/arm.c (arm_init_machine_status): Likewise.
10721 * config/avr/avr.c (avr_init_machine_status): Likewise.
10722 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10723 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
10724 * config/cris/cris.c (cris_init_machine_status): Likewise.
10725 * config/darwin.c (machopic_indirection_name): Likewise.
10726 (darwin_build_constant_cfstring): Likewise.
10727 (darwin_enter_string_into_cfstring_table): Likewise.
10728 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
10729 * config/frv/frv.c (frv_init_machine_status): Likewise.
10730 * config/i386/i386.c (get_dllimport_decl): Likewise.
10731 (ix86_init_machine_status): Likewise.
10732 (assign_386_stack_local): Likewise.
10733 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10734 (i386_pe_maybe_record_exported_symbol): Likewise.
10735 (i386_pe_record_stub): Likewise.
10736 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10737 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10738 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10739 (m32c_note_pragma_address): Likewise.
10740 * config/mep/mep.c (mep_init_machine_status): Likewise.
10741 (mep_note_pragma_flag): Likewise.
10742 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10743 (mips16_local_alias): Likewise.
10744 (mips_init_machine_status): Likewise.
10745 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10746 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10747 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
10748 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
10749 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
10750 * config/pa/pa.c (pa_init_machine_status): Likewise.
10751 (pa_get_deferred_plabel): Likewise.
10752 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
10753 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10754 (rs6000_init_machine_status): Likewise.
10755 (output_toc): Likewise.
10756 * config/s390/s390.c (s390_init_machine_status): Likewise.
10757 * config/score/score.c (score_output_external): Likewise.
10758 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10759 * config/spu/spu.c (spu_init_machine_status): Likewise.
10760 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
10761 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
10762 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10763 * coverage.c (coverage_end_function): Likewise.
10764 * dbxout.c (dbxout_init): Likewise.
10765 * doc/gty.texi: Don't mention variable_size attribute.
10766 * dwarf2cfi.c (new_cfi): Adjust.
10767 (new_cfi_row): Likewise.
10768 (copy_cfi_row): Likewise.
10769 (create_cie_data): Likewise.
10770 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
10771 (new_loc_descr): Likewise.
10772 (find_AT_string_in_table): Likewise.
10773 (add_addr_table_entry): Likewise.
10774 (new_die): Likewise.
10775 (add_var_loc_to_decl): Likewise.
10776 (clone_die): Likewise.
10777 (clone_as_declaration): Likewise.
10778 (break_out_comdat_types): Likewise.
10779 (new_loc_list): Likewise.
10780 (add_loc_descr_to_each): Likewise.
10781 (add_location_or_const_value_attribute): Likewise.
10782 (add_linkage_name): Likewise.
10783 (lookup_filename): Likewise.
10784 (dwarf2out_var_location): Likewise.
10785 (new_line_info_table): Likewise.
10786 (dwarf2out_init): Likewise.
10787 (mem_loc_descriptor): Likewise.
10788 (loc_descriptor): Likewise.
10789 (add_const_value_attribute): Likewise.
10790 (tree_add_const_value_attribute): Likewise.
10791 (comp_dir_string): Likewise.
10792 (dwarf2out_vms_debug_main_pointer): Likewise.
10793 (string_cst_pool_decl): Likewise.
10794 * emit-rtl.c (set_mem_attrs): Likewise.
10795 (get_reg_attrs): Likewise.
10796 (start_sequence): Likewise.
10797 (init_emit): Likewise.
10798 (init_emit_regs): Likewise.
10799 * except.c (init_eh_for_function): Likewise.
10800 (gen_eh_region): Likewise.
10801 (gen_eh_region_catch): Likewise.
10802 (gen_eh_landing_pad): Likewise.
10803 (add_call_site): Likewise.
10804 * function.c (add_frame_space): Likewise.
10805 (insert_temp_slot_address): Likewise.
10806 (assign_stack_temp_for_type): Likewise.
10807 (get_hard_reg_initial_val): Likewise.
10808 (allocate_struct_function): Likewise.
10809 (prepare_function_start): Likewise.
10810 (types_used_by_var_decl_insert): Likewise.
10811 * gengtype.c (variable_size_p): Remove function.
10812 (enum alloc_quantity): Remove enum.
10813 (write_typed_alloc_def): Remove function.
10814 (write_typed_struct_alloc_def): Likewise.
10815 (write_typed_typedef_alloc_def): Likewise.
10816 (write_typed_alloc_defns): Likewise.
10817 (main): Adjust.
10818 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
10819 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
10820 * ggc.h (ggc_alloc): new function.
10821 (ggc_cleared_alloc): Likewise.
10822 (ggc_vec_alloc): Template on type of vector element, and remove
10823 element size argument.
10824 (ggc_cleared_vec_alloc): Likewise.
10825 * gimple.c (gimple_build_omp_for): Adjust.
10826 (gimple_copy): Likewise.
10827 * ipa-cp.c (get_replacement_map): Likewise.
10828 (find_aggregate_values_for_callers_subset): Likewise.
10829 (known_aggs_to_agg_replacement_list): Likewise.
10830 * ipa-devirt.c (get_odr_type): Likewise.
10831 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
10832 (read_agg_replacement_chain): Likewise.
10833 * loop-iv.c (get_simple_loop_desc): Likewise.
10834 * lto-cgraph.c (input_node_opt_summary): Likewise.
10835 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10836 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10837 (input_eh_region): Likewise.
10838 (input_eh_lp): Likewise.
10839 (input_cfg): Likewise.
10840 * optabs.c (set_optab_libfunc): Likewise.
10841 (init_tree_optimization_optabs): Likewise.
10842 (set_conv_libfunc): Likewise.
10843 * passes.c (do_per_function_toporder): Likewise.
10844 * rtl.h: Don't use variable_size gty attribute.
10845 * sese.c (if_region_set_false_region): Adjust.
10846 * stringpool.c (gt_pch_save_stringpool): Likewise.
10847 * target-globals.c (save_target_globals): Likewise.
10848 * toplev.c (general_init): Likewise.
10849 * trans-mem.c (record_tm_replacement): Likewise.
10850 (split_bb_make_tm_edge): Likewise.
10851 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10852 * tree-data-ref.h (lambda_vector_new): Likewise.
10853 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10854 * tree-iterator.c (tsi_link_before): Likewise.
10855 (tsi_link_after): Likewise.
10856 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10857 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10858 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10859 * tree-ssa-operands.h: Don't use variable_size gty attribute.
10860 * tree-ssa.c (init_tree_ssa): Adjust.
10861 * tree-ssanames.c (set_range_info): Likewise.
10862 (get_ptr_info): Likewise.
10863 (duplicate_ssa_name_ptr_info): Likewise.
10864 (duplicate_ssa_name_range_info): Likewise.
10865 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
10866 (unpack_ts_fixed_cst_value_fields): Likewise.
10867 * tree.c (build_fixed): Likewise.
10868 (build_real): Likewise.
10869 (build_string): Likewise.
10870 (decl_priority_info): Likewise.
10871 (decl_debug_expr_insert): Likewise.
10872 (decl_value_expr_insert): Likewise.
10873 (decl_debug_args_insert): Likewise.
10874 (type_hash_add): Likewise.
10875 (build_omp_clause): Likewise.
10876 * ubsan.c (decl_for_type_insert): Likewise.
10877 * varasm.c (get_unnamed_section): Likewise.
10878 (get_noswitch_section): Likewise.
10879 (get_section): Likewise.
10880 (get_block_for_section): Likewise.
10881 (create_block_symbol): Likewise.
10882 (build_constant_desc): Likewise.
10883 (create_constant_pool): Likewise.
10884 (force_const_mem): Likewise.
10885 (record_tm_clone_pair): Likewise.
10886 * varpool.c (varpool_create_empty_node): Likewise.
10887
10888 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10889
10890 * dwarf2out.c (tree_add_const_value_attribute): Call
10891 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
10892 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
10893 instead of ggc_internal_<x>alloc_stat.
10894 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
10895 (ggc_realloc): Likewise.
10896 * ggc-none.c (ggc_internal_alloc): Likewise.
10897 (ggc_internal_cleared_alloc): Likewise.
10898 * ggc-page.c: Likewise.
10899 * ggc.h (ggc_internal_alloc_stat): Likewise.
10900 (ggc_internal_alloc): Remove macro.
10901 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
10902 (ggc_internal_cleared_alloc): Remove macro.
10903 (GGC_RESIZEVEC): Adjust.
10904 (ggc_resizevar): Remove macro.
10905 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
10906 (ggc_internal_cleared_vec_alloc_stat): Likewise.
10907 (ggc_internal_vec_cleared_alloc): Remove macro.
10908 (ggc_alloc_atomic_stat): Drop _stat suffix.
10909 (ggc_alloc_atomic): Remove macro.
10910 (ggc_alloc_cleared_atomic): Remove macro.
10911 (ggc_alloc_string_stat): Drop _stat suffix.
10912 (ggc_alloc_string): Remove macro.
10913 (ggc_alloc_rtx_def_stat): Adjust.
10914 (ggc_alloc_tree_node_stat): Likewise.
10915 (ggc_alloc_cleared_tree_node_stat): Likewise.
10916 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
10917 (ggc_alloc_cleared_simd_clone_stat): Likewise.
10918 * gimple.c (gimple_build_omp_for): Likewise.
10919 (gimple_copy): Likewise.
10920 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
10921 * toplev.c (realloc_for_line_map): Adjust.
10922 * tree-data-ref.h (lambda_vector_new): Likewise.
10923 * tree-phinodes.c (allocate_phi_node): Likewise.
10924 * tree.c (grow_tree_vec_stat): Likewise.
10925 * vec.h (va_gc::reserve): Adjust.
10926
10927 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
10928
10929 * config/microblaze/microblaze.c (break_handler): New Declaration.
10930 (microblaze_break_function_p,microblaze_is_break_handler): New.
10931 (compute_frame_size): Use microblaze_break_function_p.
10932 Add the test of break_handler.
10933 (microblaze_function_prologue) : Add the test of variable
10934 break_handler. Check the fnname by BREAK_HANDLER_NAME.
10935 (microblaze_function_epilogue) : Add the test of break_handler.
10936 (microblaze_globalize_label) : Add the test of break_handler.
10937 Check the name by BREAK_HANDLER_NAME.
10938
10939 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
10940
10941 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
10942 microblaze_is_break_handler test.
10943 (call_internal1,call_value_intern): Use microblaze_break_function_p.
10944 Use SYMBOL_REF_DECL.
10945
10946 * config/microblaze/microblaze-protos.h
10947 (microblaze_break_function_p,microblaze_is_break_handler):
10948 New Declaration.
10949
10950 * doc/extend.texi (MicroBlaze break_handler Functions): Document
10951 new MicroBlaze break_handler functions.
10952
10953 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10954
10955 * doc/extend.texi (Size of an asm): Move node text according
10956 to its @menu entry position.
10957
10958 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
10959
10960 PR tree-optimization/61140
10961 PR tree-optimization/61150
10962 PR tree-optimization/61197
10963 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
10964
10965 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10966
10967 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
10968
10969 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
10970
10971 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
10972 __SIZEOF_INT128__ is defined.
10973
10974 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10975
10976 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
10977 (rs6000_delegitimize_address): Use it.
10978
10979 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10980
10981 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
10982 inplace argument. Store the new address in the original MEM when true.
10983 * emit-rtl.c (change_address_1): Likewise.
10984 (adjust_address_1, adjust_automodify_address_1, offset_address):
10985 Update accordingly.
10986 * rtl.h (plus_constant): Add an inplace argument.
10987 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
10988 when true. Avoid generating (plus X (const_int 0)).
10989 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
10990 in-place. Pass true to plus_constant.
10991 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
10992
10993 2014-05-16 Dehao Chen <dehao@google.com>
10994
10995 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
10996
10997 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10998
10999 PR target/54089
11000 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
11001 patterns.
11002 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
11003
11004 2014-05-16 Dehao Chen <dehao@google.com>
11005
11006 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
11007 optimize_function_for_size_p.
11008 * regs.h (REG_FREQ_FROM_BB): Likewise.
11009
11010 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11011
11012 PR target/51244
11013 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11014 negt_reg_operand cases.
11015 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11016 predicate.
11017 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11018
11019 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11020
11021 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11022 target variants.
11023
11024 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11025
11026 Revert:
11027 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11028
11029 * tree-cfg.c (dump_function_to_file): Dump the return type of
11030 functions, in a line to itself before the function body, mimicking
11031 the layout of a C function.
11032
11033 2014-05-16 Dehao Chen <dehao@google.com>
11034
11035 * cfghooks.c (make_forwarder_block): Use direct computation to
11036 get fall-through edge's count and frequency.
11037
11038 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11039
11040 * config/arc/arc.c (arc_init): Fix typo in error message.
11041 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11042 (split_stack_prologue_scratch_regno): Likewise.
11043 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11044 word from error message.
11045
11046 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11047
11048 * ira-costs.c: Fix typo in comment.
11049
11050 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11051
11052 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11053
11054 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11055
11056 * varpool.c (dump_varpool_node): Dump write-only flag.
11057 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11058 write-only flag.
11059 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11060 write-only variables.
11061 * ipa.c (process_references): New function.
11062 (set_readonly_bit): New function.
11063 (set_writeonly_bit): New function.
11064 (clear_addressable_bit): New function.
11065 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11066 fix handling of aliases.
11067 * cgraph.h (struct varpool_node): Add writeonly flag.
11068
11069 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11070
11071 PR rtl-optimization/60969
11072 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11073 Calculate costs for this case.
11074
11075 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11076
11077 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11078 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11079
11080 2014-05-16 Richard Biener <rguenther@suse.de>
11081
11082 PR tree-optimization/61194
11083 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11084 bool patterns ending in a COND_EXPR.
11085
11086 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11087
11088 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11089
11090 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11091
11092 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11093 where we were unable to cost an RTX.
11094
11095 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11096
11097 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11098 HIGH, LO_SUM.
11099
11100 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11101 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11102
11103 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11104
11105 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11106 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11107
11108 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11109 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11110
11111 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11112 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11113
11114 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11115 operators.
11116
11117 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11118 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11119
11120 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11121 DIV/MOD.
11122
11123 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11124 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11125
11126 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11127 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11128
11129 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11130 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11131
11132 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11133 rotates and shifts.
11134
11135 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11136 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11137
11138 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11139 ZERO_EXTEND and SIGN_EXTEND better.
11140
11141 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11142 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11143
11144 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11145 logical operations.
11146
11147 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11148 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11149
11150 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11151 costs when costing loads and stores to memory.
11152
11153 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11154 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11155
11156 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11157 for SET RTX.
11158
11159 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11160
11161 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11162
11163 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11164 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11165
11166 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11167 to...
11168 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11169 well formed.
11170 (aarch64_rtx_mult_cost): New.
11171 (aarch64_rtx_costs): Use it, refactor as appropriate.
11172
11173 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11174 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11175
11176 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11177 emit instructions, return number of instructions which would
11178 be emitted.
11179 (aarch64_add_constant): Update call to aarch64_build_constant.
11180 (aarch64_output_mi_thunk): Likewise.
11181 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11182 a CONST_DOUBLE.
11183
11184 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11185
11186 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11187 (TARGET_RTX_COSTS): Call it.
11188
11189 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11190
11191 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11192 (cortexa57_vector_cost): Likewise.
11193 (cortexa57_tunings): Use them.
11194
11195 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11196
11197 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11198 (cpu_addrcost_table): Use it.
11199 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11200 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11201 move it.
11202
11203 2014-05-16 Richard Biener <rguenther@suse.de>
11204
11205 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11206 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11207 (visit_phi): Ignore edges marked as not executable.
11208 (class cond_dom_walker): New.
11209 (cond_dom_walker::before_dom_children): Value-number
11210 control statements and mark successor edges as not
11211 executable if possible.
11212 (run_scc_vn): First walk all control statements in
11213 dominator order, marking edges as not executable.
11214 * tree-inline.c (copy_edges_for_bb): Be not confused
11215 about random edge flags.
11216
11217 2014-05-16 Richard Biener <rguenther@suse.de>
11218
11219 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11220
11221 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11222
11223 PR target/61193
11224 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11225 (__TM_simple_begin): Use it.
11226 (__TM_begin): Likewise.
11227
11228 2014-05-15 Martin Jambor <mjambor@suse.cz>
11229
11230 PR ipa/61085
11231 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11232 type_preserved flag when the indirect edge is polymorphic.
11233
11234 2014-05-15 Martin Jambor <mjambor@suse.cz>
11235
11236 PR tree-optimization/61090
11237 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11238 build_ref_for_model.
11239
11240 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11241
11242 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11243 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11244
11245 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11246
11247 PR tree-optimization/61158
11248 * fold-const.c (fold_binary_loc): If X is zero-extended and
11249 shiftc >= prec, make sure zerobits is all ones instead of
11250 invoking undefined behavior.
11251
11252 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11253
11254 * regcprop.h: New file.
11255 * regcprop.c (skip_debug_insn_p): New decl.
11256 (replace_oldest_value_reg): Check skip_debug_insn_p.
11257 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11258 * shrink-wrap.c: Include regcprop.h.
11259 (prepare_shrink_wrap): Call
11260 copyprop_hardreg_forward_bb_without_debug_insn.
11261
11262 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11263
11264 * shrink-wrap.h: Update comment.
11265 * shrink-wrap.c: Update comment.
11266 (next_block_for_reg): Rename to live_edge_for_reg.
11267 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11268 (move_insn_for_shrink_wrap): Split live_edge.
11269 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11270
11271 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11272
11273 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11274 Delete.
11275 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11276 * config/sparc/sparc.md (fptype_ut699): New attribute.
11277 (in_branch_delay): Return false if -mfix-ut699 is specified and
11278 fptype_ut699 is set to single.
11279 (truncdfsf2): Add fptype_ut699 attribute.
11280 (fix_truncdfsi2): Likewise.
11281 (floatsisf2): Change fptype attribute.
11282 (fix_truncsfsi2): Likewise.
11283 (negtf2_notv9): Delete.
11284 (negtf2_v9): Likewise.
11285 (negtf2_hq): New instruction.
11286 (negtf2): New instruction and splitter.
11287 (negdf2_notv9): Rewrite.
11288 (abstf2_notv9): Delete.
11289 (abstf2_hq_v9): Likewise.
11290 (abstf2_v9): Likewise.
11291 (abstf2_hq): New instruction.
11292 (abstf2): New instruction and splitter.
11293 (absdf2_notv9): Rewrite.
11294
11295 2014-05-14 Cary Coutant <ccoutant@google.com>
11296
11297 PR debug/61013
11298 * opts.c (common_handle_option): Don't special-case "-g".
11299 (set_debug_level): Default to at least level 2 with "-g".
11300
11301 2014-05-14 DJ Delorie <dj@redhat.com>
11302
11303 * config/msp430/msp430.c (msp430_builtin): Add
11304 MSP430_BUILTIN_DELAY_CYCLES.
11305 (msp430_init_builtins): Register void __delay_cycles(long long).
11306 (msp430_builtin_decl): Add it.
11307 (cg_magic_constant): New.
11308 (msp430_expand_delay_cycles): New.
11309 (msp430_expand_builtin): Call it.
11310 (msp430_print_operand_raw): Change integer printing from "int" to
11311 HOST_WIDE_INT.
11312 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11313 (delay_cycles_start): New.
11314 (delay_cycles_end): New.
11315 (delay_cycles_32): New.
11316 (delay_cycles_32x): New.
11317 (delay_cycles_16): New.
11318 (delay_cycles_16x): New.
11319 (delay_cycles_2): New.
11320 (delay_cycles_1): New.
11321 * doc/extend.texi: Document __delay_cycles().
11322
11323 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11324
11325 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11326 length attribute computation.
11327
11328 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11329
11330 PR debug/61188
11331 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11332
11333 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11334
11335 PR target/61084
11336 * config/sparc/sparc.md: Fix types of low and high in DI constant
11337 splitter. Use gen_int_mode in some other splitters.
11338
11339 2014-05-14 Martin Jambor <mjambor@suse.cz>
11340
11341 PR ipa/60897
11342 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11343
11344 2014-05-14 James Norris <jnorris@codesourcery.com>
11345
11346 * omp-low.c (expand_parallel_call): Remove shadow variable.
11347 (expand_omp_taskreg): Likewise.
11348
11349 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11350
11351 * common/config/i386/i386-common.c
11352 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11353 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11354 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11355 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11356 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11357 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11358 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11359 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11360 xsavecintrin.h, xsavesintrin.h.
11361 (x86_64-*-*): Ditto.
11362 * config/i386/clflushoptintrin.h: New.
11363 * config/i386/xsavecintrin.h: Ditto.
11364 * config/i386/xsavesintrin.h: Ditto.
11365 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11366 (bit_XSAVES): Ditto.
11367 (bit_XSAVES): Ditto.
11368 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11369 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11370 -mno-clflushopt.
11371 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11372 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11373 OPTION_MASK_ISA_XSAVES.
11374 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11375 -mxsavec, -mxsaves.
11376 (PTA_CLFLUSHOPT) Define.
11377 (PTA_XSAVEC): Ditto.
11378 (PTA_XSAVES): Ditto.
11379 (ix86_option_override_internal): Handle new options.
11380 (ix86_valid_target_attribute_inner_p): Ditto.
11381 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11382 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11383 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11384 (bdesc_special_args): Add __builtin_ia32_xsaves,
11385 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11386 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11387 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11388 (ix86_expand_builtin): Handle new builtins.
11389 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11390 (TARGET_CLFLUSHOPT_P): Ditto.
11391 (TARGET_XSAVEC): Ditto.
11392 (TARGET_XSAVEC_P): Ditto.
11393 (TARGET_XSAVES): Ditto.
11394 (TARGET_XSAVES_P): Ditto.
11395 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11396 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11397 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11398 (ANY_XRSTOR): New.
11399 (ANY_XRSTOR64): Ditto.
11400 (xrstor): Ditto.
11401 (xrstor): Change into <xrstor>.
11402 (xrstor_rex64): Change into <xrstor>_rex64.
11403 (xrstor64): Change into <xrstor>64
11404 (clflushopt): New.
11405 * config/i386/i386.opt (mclflushopt): New.
11406 (mxsavec): Ditto.
11407 (mxsaves): Ditto.
11408 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11409 xsavecintrin.h.
11410 * doc/invoke.texi: Document new options.
11411
11412 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11413
11414 PR rtl-optimization/60866
11415 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11416 Default it to -1. Pass it down to init_simplejump_data.
11417 (init_simplejump_data): New parameter old_seqno. Pass it down
11418 to get_seqno_for_a_jump.
11419 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11420 initializing new jump seqno as a last resort. Add comment.
11421 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11422 jump and pass it down to sel_init_new_insn.
11423 (sel_redirect_edge_and_branch_force): Likewise.
11424
11425 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11426
11427 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11428 shifted values to avoid build warning.
11429
11430 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11431
11432 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11433 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11434 (cfg_layout_merge_blocks): Likewise.
11435 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11436
11437 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11438
11439 PR rtl-optimization/60901
11440 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11441 bb predecessor belongs to the same scheduling region. Adjust comment.
11442
11443 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11444
11445 * doc/sourcebuild.texi: (dfp_hw): Document.
11446 (p8vector_hw): Likewise.
11447 (powerpc_eabi_ok): Likewise.
11448 (powerpc_elfv2): Likewise.
11449 (powerpc_htm_ok): Likewise.
11450 (ppc_recip_hw): Likewise.
11451 (vsx_hw): Likewise.
11452
11453 2014-05-13 Cary Coutant <ccoutant@google.com>
11454
11455 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11456
11457 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11458
11459 * gengtype-parse.c (require3): Eliminate in favor of...
11460 (require4): New.
11461 (require_template_declaration): Update to support optional single *
11462 on a type.
11463
11464 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11465 (create_user_defined_type): Handle a single level of explicit
11466 pointerness within template arguments.
11467 (struct write_types_data): Add field "kind".
11468 (filter_type_name): Handle "*" character.
11469 (write_user_func_for_structure_ptr): Require a write_types_data
11470 rather than just a prefix string, so that we can look up the kind
11471 of the wtd and use it as an index into wrote_user_func_for_ptr,
11472 ensuring that such functions are written at most once. Support
11473 subclasses by invoking the marking function of the ultimate base class.
11474 (write_user_func_for_structure_body): Require a write_types_data
11475 rather than just a prefix string, so that we can pass this to
11476 write_user_func_for_structure_ptr.
11477 (write_func_for_structure): Likewise.
11478 (ggc_wtd): Add initializer of new "kind" field.
11479 (pch_wtd): Likewise.
11480
11481 * gengtype.h (enum write_types_kinds): New.
11482 (struct type): Add field wrote_user_func_for_ptr to the "s"
11483 union member.
11484
11485 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11486
11487 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11488 instead of const_binop.
11489 (fold_binary_loc): Likewise.
11490
11491 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11492
11493 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11494 calculation to match get_ref_base_and_extent.
11495
11496 2014-05-13 Catherine Moore <clm@codesourcery.com>
11497 Sandra Loosemore <sandra@codesourcery.com>
11498
11499 * configure.ac: Fix assembly for explicit JALR relocation check.
11500 * configure: Regenerate.
11501
11502 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11503
11504 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11505 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11506 Remove associated type declarations and initialisations.
11507 (arm_expand_neon_builtin): Likewise.
11508 (neon_emit_pair_result_insn): Delete.
11509 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11510 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11511 (neon_vzip<mode>): Likewise.
11512 (neon_vuzp<mode>): Likewise.
11513
11514 2014-05-13 Richard Biener <rguenther@suse.de>
11515
11516 PR ipa/60973
11517 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11518 it needs revisiting whether the call still may be tail-called.
11519
11520 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11521
11522 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11523 * rtl.h (block_symbol): Reduce number of fields to 2.
11524 (rtx_def): Add u2.symbol_ref_flags.
11525 (SYMBOL_REF_FLAGS): Use it.
11526 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11527 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11528 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11529 Lower index of SYMBOL_REF_DATA.
11530 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11531 Print SYMBOL_REF_FLAGS at the same time.
11532 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11533
11534 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11535
11536 * rtl.def (VAR_LOCATION): Remove "i" field.
11537 * rtl.h (rtx_def): Add u2.var_location_status.
11538 (PAT_VAR_LOCATION_STATUS): Use it.
11539 (gen_rtx_VAR_LOCATION): Declare.
11540 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11541 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11542 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11543
11544 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11545
11546 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11547 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11548
11549 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11550
11551 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11552 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11553 * rtl.h (rtx_def): Add insn_uid to u2 field.
11554 (RTX_FLAG_CHECK8): Delete in favor of...
11555 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11556 (INSN_DELETED_P): Update accordingly.
11557 (INSN_UID): Use u2.insn_uid.
11558 (INSN_CHAIN_CODE_P): Define.
11559 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11560 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11561 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11562 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11563 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11564 indices accordingly.
11565 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11566 Update indices for insn-chain rtxes.
11567 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11568 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11569 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11570 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11571 * combine.c (try_combine): Likewise.
11572 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11573
11574 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11575
11576 * rtl.def (REG): Remove middle field.
11577 * rtl.h (rtx_def): Add orignal_regno to u2.
11578 (ORIGINAL_REGNO): Use it instead of field 1.
11579 (REG_ATTRS): Lower field index accordingly.
11580 * gengtype.c (adjust_field_rtx_def): Remove handling of
11581 ORIGINAL_REGNO. Move REG_ATTRS index down.
11582 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11583 code that prints the REGNO.
11584
11585 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11586
11587 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11588 GENERATOR_FILE.
11589
11590 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11591
11592 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11593
11594 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11595
11596 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11597 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11598
11599 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11600
11601 * config/aarch64/aarch64-protos.h
11602 (aarch64_hard_regno_caller_save_mode): New prototype.
11603 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
11604 New function.
11605 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11606
11607 2014-05-13 Christian Bruel <christian.bruel@st.com>
11608
11609 * target.def (mode_switching): New hook vector.
11610 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
11611 (mode_exit, modepriority_to_mode): Likewise.
11612 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
11613 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11614 * target.h: Include tm.h and hard-reg-set.h.
11615 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
11616 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
11617 * doc/tm.texi Regenerate.
11618 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11619 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11620 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
11621 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
11622 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11623 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11624 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
11625 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
11626 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
11627 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
11628 (ix86_emit_mode_set): Hookify.
11629 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
11630 Delete.
11631 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11632 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
11633 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
11634 (epiphany_mode_priority_to_mode): Remove declaration.
11635 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
11636 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
11637 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
11638 Likewise.
11639 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
11640 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
11641 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
11642
11643 2014-05-13 Jakub Jelinek <jakub@redhat.com>
11644
11645 PR target/61060
11646 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
11647 is const0_rtx, return immediately. Don't test count == 0 when
11648 it is always true.
11649
11650 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11651
11652 * Makefile.in: add shrink-wrap.o.
11653 * config/i386/i386.c: include "shrink-wrap.h"
11654 * function.c: Likewise.
11655 (requires_stack_frame_p, next_block_for_reg,
11656 move_insn_for_shrink_wrap, prepare_shrink_wrap,
11657 dup_block_and_redirect): Move to shrink-wrap.c
11658 (thread_prologue_and_epilogue_insns): Extract three code segments
11659 as functions in shrink-wrap.c
11660 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
11661 shrink-wrap.h
11662 * shrink-wrap.c: New file.
11663 * shrink-wrap.h: New file.
11664
11665 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11666
11667 * doc/extend.texi: Reflect current numbers of pragmas. Remove
11668 reference to Solaris.
11669
11670 2014-05-12 Mike Stump <mikestump@comcast.net>
11671
11672 PR other/31778
11673 * genattrtab.c (filename): Add.
11674 (convert_set_attr_alternative): Improve error message.
11675 (check_defs): Restore read_md_filename for error messages.
11676 (gen_insn): Save filename.
11677
11678 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
11679
11680 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
11681 -fno-local-ivars and -fivar-visibility.
11682 * c-family/c.opt: Make -Wshadow also implicitly enable
11683 -Wshadow-ivar.
11684
11685 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11686
11687 * doc/tm.texi: Remove reference to deleted macro.
11688 * doc/tm.texi.in: Likewise.
11689
11690 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11691
11692 PR target/60991
11693 * config/avr/avr.c (avr_out_store_psi): Use correct constant
11694 to restore Y.
11695
11696 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
11697
11698 PR libgcc/61152
11699 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
11700 * config/arm/aout.h (License): Same.
11701 * config/arm/bpabi.h (License): Same.
11702 * config/arm/elf.h (License): Same.
11703 * config/arm/linux-elf.h (License): Same.
11704 * config/arm/linux-gas.h (License): Same.
11705 * config/arm/netbsd-elf.h (License): Same.
11706 * config/arm/uclinux-eabi.h (License): Same.
11707 * config/arm/uclinux-elf.h (License): Same.
11708 * config/arm/vxworks.h (License): Same.
11709
11710 2014-05-11 Jakub Jelinek <jakub@redhat.com>
11711
11712 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
11713 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
11714 number of operands to 3.
11715 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
11716 * tree-nested.c (convert_nonlocal_omp_clauses,
11717 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
11718 * gimplify.c (gimplify_scan_omp_clauses): Handle
11719 OMP_CLAUSE_LINEAR_STMT.
11720 * omp-low.c (lower_rec_input_clauses): Fix typo.
11721 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
11722 cast between Fortran boolean_type_node and C _Bool if
11723 needed.
11724
11725 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
11726
11727 PR tree-optimization/61136
11728 * wide-int.h (multiple_of_p): Define a version that doesn't return
11729 the quotient.
11730 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
11731 integer_zerop/const_binop pair.
11732 (multiple_of_p): Likewise, converting both operands to widest_int
11733 precision.
11734
11735 2014-05-09 Teresa Johnson <tejohnson@google.com>
11736
11737 * cgraphunit.c (analyze_functions): Use correct dump file.
11738
11739 2014-05-09 Florian Weimer <fweimer@redhat.com>
11740
11741 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
11742 expand_used_vars.
11743 (stack_protect_return_slot_p): New function.
11744 (expand_used_vars): Call stack_protect_decl_p and
11745 stack_protect_return_slot_p for -fstack-protector-strong.
11746
11747 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
11748 Andrew Haley <aph@redhat.com>
11749 Richard Sandiford <rdsandiford@googlemail.com>
11750
11751 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
11752 pages.
11753
11754 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
11755
11756 PR middle-end/61111
11757 * fold-const.c (fold_binary_loc): Changed width of mask.
11758
11759 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11760
11761 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
11762 unsigned int initializers for regno_in, regno_out.
11763
11764 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11765
11766 PR target/61055
11767 * config/avr/avr.md (cc): Add new attribute set_vzn.
11768 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
11769 Set cc insn attribute to set_vzn instead of set_zn for alternatives
11770 with INC, DEC or NEG.
11771 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
11772 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
11773 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
11774
11775 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11776
11777 Revert:
11778 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11779
11780 * wide-int.cc (UTItype): Define.
11781 (UDWtype): Define for appropriate W_TYPE_SIZE.
11782
11783 2014-05-09 Richard Biener <rguenther@suse.de>
11784
11785 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
11786 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
11787 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
11788 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
11789 ssa_propagate): Adjust.
11790
11791 2014-05-08 Jeff Law <law@redhat.com>
11792
11793 PR tree-optimization/61009
11794 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
11795 tri-state rather than a boolean. When a block is too big to
11796 thread through, inform caller via negative return value.
11797 (thread_across_edge): If a block was too big for normal threading,
11798 then it's too big for a joiner too, so remove temporary equivalences
11799 and return immediately.
11800
11801 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11802 Matthias Klose <doko@ubuntu.com>
11803
11804 PR driver/61106
11805 * optc-gen.awk: Fix option handling for -Wunused-parameter.
11806
11807 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11808
11809 PR target/59952
11810 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
11811
11812 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11813
11814 PR target/61092
11815 * config/alpha/alpha.c: Include gimple-iterator.h.
11816 (alpha_gimple_fold_builtin): New function. Move
11817 ALPHA_BUILTIN_UMULH folding from ...
11818 (alpha_fold_builtin): ... here.
11819 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
11820
11821 2014-05-08 Wei Mi <wmi@google.com>
11822
11823 PR target/58066
11824 * config/i386/i386.c (ix86_compute_frame_layout): Update
11825 preferred_stack_boundary for call, expanded from tls descriptor.
11826 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
11827 to depend on SP register.
11828 (*tls_local_dynamic_base_32_gnu): Ditto.
11829 (*tls_local_dynamic_32_once): Ditto.
11830 (tls_global_dynamic_64_<mode>): Set
11831 ix86_tls_descriptor_calls_expanded_in_cfun.
11832 (tls_local_dynamic_base_64_<mode>): Ditto.
11833 (tls_global_dynamic_32): Set
11834 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
11835 to depend on SP register.
11836 (tls_local_dynamic_base_32): Ditto.
11837
11838 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11839
11840 * config/arm/arm_neon.h: Update comment.
11841 * config/arm/neon-docgen.ml: Delete.
11842 * config/arm/neon-gen.ml: Delete.
11843 * doc/arm-neon-intrinsics.texi: Update comment.
11844
11845 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11846
11847 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
11848 and v4sf versions.
11849 (vand, vorr, veor, vorn, vbic): Remove.
11850 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
11851 iterator.
11852 (neon_vsub_unspec): Likewise.
11853 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
11854
11855 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11856
11857 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
11858 (vadd_s16): Likewise.
11859 (vadd_s32): Likewise.
11860 (vadd_f32): Likewise.
11861 (vadd_u8): Likewise.
11862 (vadd_u16): Likewise.
11863 (vadd_u32): Likewise.
11864 (vadd_s64): Likewise.
11865 (vadd_u64): Likewise.
11866 (vaddq_s8): Likewise.
11867 (vaddq_s16): Likewise.
11868 (vaddq_s32): Likewise.
11869 (vaddq_s64): Likewise.
11870 (vaddq_f32): Likewise.
11871 (vaddq_u8): Likewise.
11872 (vaddq_u16): Likewise.
11873 (vaddq_u32): Likewise.
11874 (vaddq_u64): Likewise.
11875 (vmul_s8): Likewise.
11876 (vmul_s16): Likewise.
11877 (vmul_s32): Likewise.
11878 (vmul_f32): Likewise.
11879 (vmul_u8): Likewise.
11880 (vmul_u16): Likewise.
11881 (vmul_u32): Likewise.
11882 (vmul_p8): Likewise.
11883 (vmulq_s8): Likewise.
11884 (vmulq_s16): Likewise.
11885 (vmulq_s32): Likewise.
11886 (vmulq_f32): Likewise.
11887 (vmulq_u8): Likewise.
11888 (vmulq_u16): Likewise.
11889 (vmulq_u32): Likewise.
11890 (vsub_s8): Likewise.
11891 (vsub_s16): Likewise.
11892 (vsub_s32): Likewise.
11893 (vsub_f32): Likewise.
11894 (vsub_u8): Likewise.
11895 (vsub_u16): Likewise.
11896 (vsub_u32): Likewise.
11897 (vsub_s64): Likewise.
11898 (vsub_u64): Likewise.
11899 (vsubq_s8): Likewise.
11900 (vsubq_s16): Likewise.
11901 (vsubq_s32): Likewise.
11902 (vsubq_s64): Likewise.
11903 (vsubq_f32): Likewise.
11904 (vsubq_u8): Likewise.
11905 (vsubq_u16): Likewise.
11906 (vsubq_u32): Likewise.
11907 (vsubq_u64): Likewise.
11908 (vand_s8): Likewise.
11909 (vand_s16): Likewise.
11910 (vand_s32): Likewise.
11911 (vand_u8): Likewise.
11912 (vand_u16): Likewise.
11913 (vand_u32): Likewise.
11914 (vand_s64): Likewise.
11915 (vand_u64): Likewise.
11916 (vandq_s8): Likewise.
11917 (vandq_s16): Likewise.
11918 (vandq_s32): Likewise.
11919 (vandq_s64): Likewise.
11920 (vandq_u8): Likewise.
11921 (vandq_u16): Likewise.
11922 (vandq_u32): Likewise.
11923 (vandq_u64): Likewise.
11924 (vorr_s8): Likewise.
11925 (vorr_s16): Likewise.
11926 (vorr_s32): Likewise.
11927 (vorr_u8): Likewise.
11928 (vorr_u16): Likewise.
11929 (vorr_u32): Likewise.
11930 (vorr_s64): Likewise.
11931 (vorr_u64): Likewise.
11932 (vorrq_s8): Likewise.
11933 (vorrq_s16): Likewise.
11934 (vorrq_s32): Likewise.
11935 (vorrq_s64): Likewise.
11936 (vorrq_u8): Likewise.
11937 (vorrq_u16): Likewise.
11938 (vorrq_u32): Likewise.
11939 (vorrq_u64): Likewise.
11940 (veor_s8): Likewise.
11941 (veor_s16): Likewise.
11942 (veor_s32): Likewise.
11943 (veor_u8): Likewise.
11944 (veor_u16): Likewise.
11945 (veor_u32): Likewise.
11946 (veor_s64): Likewise.
11947 (veor_u64): Likewise.
11948 (veorq_s8): Likewise.
11949 (veorq_s16): Likewise.
11950 (veorq_s32): Likewise.
11951 (veorq_s64): Likewise.
11952 (veorq_u8): Likewise.
11953 (veorq_u16): Likewise.
11954 (veorq_u32): Likewise.
11955 (veorq_u64): Likewise.
11956 (vbic_s8): Likewise.
11957 (vbic_s16): Likewise.
11958 (vbic_s32): Likewise.
11959 (vbic_u8): Likewise.
11960 (vbic_u16): Likewise.
11961 (vbic_u32): Likewise.
11962 (vbic_s64): Likewise.
11963 (vbic_u64): Likewise.
11964 (vbicq_s8): Likewise.
11965 (vbicq_s16): Likewise.
11966 (vbicq_s32): Likewise.
11967 (vbicq_s64): Likewise.
11968 (vbicq_u8): Likewise.
11969 (vbicq_u16): Likewise.
11970 (vbicq_u32): Likewise.
11971 (vbicq_u64): Likewise.
11972 (vorn_s8): Likewise.
11973 (vorn_s16): Likewise.
11974 (vorn_s32): Likewise.
11975 (vorn_u8): Likewise.
11976 (vorn_u16): Likewise.
11977 (vorn_u32): Likewise.
11978 (vorn_s64): Likewise.
11979 (vorn_u64): Likewise.
11980 (vornq_s8): Likewise.
11981 (vornq_s16): Likewise.
11982 (vornq_s32): Likewise.
11983 (vornq_s64): Likewise.
11984 (vornq_u8): Likewise.
11985 (vornq_u16): Likewise.
11986 (vornq_u32): Likewise.
11987 (vornq_u64): Likewise.
11988
11989 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11990
11991 * wide-int.cc (UTItype): Define.
11992 (UDWtype): Define for appropriate W_TYPE_SIZE.
11993
11994 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
11995
11996 PR tree-optimization/59100
11997 * tree-ssa-phiopt.c: Include tree-inline.h.
11998 (neutral_element_p, absorbing_element_p): New functions.
11999 (value_replacement): Handle conditional binary operations with a
12000 neutral or absorbing element.
12001
12002 2014-05-08 Richard Biener <rguenther@suse.de>
12003
12004 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
12005 folding the expression.
12006 (valueize_expr): Remove.
12007 (visit_reference_op_load): Do not valueize the result of
12008 vn_get_expr_for.
12009 (simplify_binary_expression): Likewise.
12010 (simplify_unary_expression): Likewise.
12011
12012 2014-05-08 Richard Biener <rguenther@suse.de>
12013
12014 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12015 looking at TYPE_ARG_TYPES.
12016
12017 2014-05-08 Richard Biener <rguenther@suse.de>
12018
12019 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12020 pointer propagation special-case.
12021
12022 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12023
12024 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12025 core part of address expressions.
12026
12027 2014-05-08 Alan Modra <amodra@gmail.com>
12028
12029 PR target/60737
12030 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12031 loads and stores when -mno-strict-align at any alignment.
12032 (expand_block_clear): Similarly. Also correct calculation of
12033 instruction count.
12034
12035 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12036
12037 PR middle-end/39246
12038 * tree-complex.c (expand_complex_move): Keep line info when expanding
12039 complex move.
12040 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12041 of complex expression. Use new argument to display correct location
12042 for values coming from phi statement.
12043 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12044 (warn_uninitialized_phi): Pass location of phi argument to
12045 warn_uninit.
12046 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12047 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12048
12049 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12050
12051 * config/rs6000/predicates.md (indexed_address_mem): New.
12052 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12053 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12054 fpstore_ux, fpstore_u.
12055 (sign_extend, indexed, update): New.
12056 (cell_micro): Adjust.
12057 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12058 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12059 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12060 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12061 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12062 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12063 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12064 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12065 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12066 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12067 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12068 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12069 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12070 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12071 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12072
12073 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12074 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12075 *vsx_extract_<mode>_store): Adjust.
12076 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12077 is_cracked_insn, insn_must_be_first_in_group,
12078 insn_must_be_last_in_group): Adjust.
12079
12080 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12081 Adjust.
12082 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12083 ppc440-fpstore): Adjust.
12084 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12085 ppc476-fpstore): Adjust.
12086 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12087 ppc601-fpstore): Adjust.
12088 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12089 Adjust.
12090 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12091 Adjust.
12092 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12093 ppc7450-fpstore): Adjust.
12094 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12095 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12096 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12097 Adjust.
12098 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12099 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12100 cell-fpstore, cell-fpstore-update): Adjust.
12101 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12102 ppce300c3_store, ppce300c3_fpstore): Adjust.
12103 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12104 e500mc_fpstore): Adjust.
12105 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12106 e500mc64_store, e500mc64_fpstore): Adjust.
12107 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12108 e5500_fpstore): Adjust.
12109 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12110 e6500_fpstore): Adjust.
12111 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12112 Adjust.
12113 * config/rs6000/power4.md (power4-load, power4-load-ext,
12114 power4-load-ext-update, power4-load-ext-update-indexed,
12115 power4-load-update-indexed, power4-load-update, power4-fpload,
12116 power4-fpload-update, power4-store, power4-store-update,
12117 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12118 Adjust.
12119 * config/rs6000/power5.md (power5-load, power5-load-ext,
12120 power5-load-ext-update, power5-load-ext-update-indexed,
12121 power5-load-update-indexed, power5-load-update, power5-fpload,
12122 power5-fpload-update, power5-store, power5-store-update,
12123 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12124 Adjust.
12125 * config/rs6000/power6.md (power6-load, power6-load-ext,
12126 power6-load-update, power6-load-update-indexed,
12127 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12128 power6-fpload-update, power6-store, power6-store-update,
12129 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12130 Adjust.
12131 * config/rs6000/power7.md (power7-load, power7-load-ext,
12132 power7-load-update, power7-load-update-indexed,
12133 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12134 power7-fpload-update, power7-store, power7-store-update,
12135 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12136 Adjust.
12137 * config/rs6000/power8.md (power8-load, power8-load-update,
12138 power8-load-ext, power8-load-ext-update, power8-fpload,
12139 power8-fpload-update, power8-store, power8-store-update-indexed,
12140 power8-fpstore, power8-fpstore-update): Adjust.
12141 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12142 Adjust.
12143 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12144 titan_lsu_store, titan_lsu_fpstore): Adjust.
12145 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12146
12147 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12148
12149 PR target/60884
12150 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12151 unrolled byte insns. Emit address increments after move insns.
12152
12153 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12154
12155 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12156 const_gimple, rather than a gimple.
12157 (gimple_call_builtin_p): Likewise, for the three variants.
12158
12159 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12160 (gimple_call_builtin_p): Likewise, for the three variants.
12161
12162 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12163
12164 PR tree-optimization/61095
12165 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12166
12167 2014-05-07 Richard Biener <rguenther@suse.de>
12168
12169 PR tree-optimization/61034
12170 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12171 (maybe_skip_until): Use translate to take into account
12172 lattices when trying to do disambiguations.
12173 (get_continuation_for_phi_1): Likewise.
12174 (get_continuation_for_phi): Adjust for added translate arguments.
12175 (walk_non_aliased_vuses): Likewise.
12176 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12177 (walk_non_aliased_vuses): Likewise.
12178 (call_may_clobber_ref_p_1): Declare.
12179 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12180 calls. Stop early if we are only supposed to disambiguate.
12181 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12182
12183 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12184
12185 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12186 Emit an error when the function has arguments.
12187
12188 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12189
12190 * cfgloop.h (unswitch_loops): Remove.
12191 * doc/passes.texi: Remove references to loop-unswitch.c
12192 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12193
12194 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12195
12196 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12197 check for loads group of length 3.
12198 (vect_permute_load_chain): New permutations for loads group of
12199 length 3.
12200 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12201 of vec_perm_shuffle for the new permutations.
12202
12203 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12204
12205 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12206 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12207 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12208 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12209 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12210 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12211 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12212 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12213
12214 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12215
12216 * loop-unswitch.c: Delete.
12217
12218 2014-05-07 Richard Biener <rguenther@suse.de>
12219
12220 * config.gcc: Always set need_64bit_hwint to yes.
12221
12222 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12223
12224 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12225 of using optimize_size.
12226
12227 2014-05-06 Mike Stump <mikestump@comcast.net>
12228
12229 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12230
12231 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12232
12233 * config/i386/sse.md (*mov<mode>_internal)
12234 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12235 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12236 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12237 (*<code><mode>3, *andnot<mode>3<mask_name>)
12238 (<mask_codefor><code><mode>3<mask_name>): Only consider
12239 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12240
12241 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12242
12243 Revert:
12244 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12245
12246 * lra-constraints.c (valid_address_p): Move earlier in file.
12247 Add a constraint argument to the address_info version.
12248 (satisfies_memory_constraint_p): New function.
12249 (satisfies_address_constraint_p): Likewise.
12250 (process_alt_operands, curr_insn_transform): Use them.
12251 (process_address): Pass the constraint to valid_address_p when
12252 checking address operands.
12253
12254 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12255
12256 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12257 to their respective blocks. Fix inadvertent use of "node".
12258
12259 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12260
12261 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12262 out from...
12263 (init_emit_once): ...here.
12264 * rtl.h (init_derived_machine_modes): Declare.
12265 * toplev.c (do_compile): Call it even if no_backend.
12266
12267 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12268 Mike Stump <mikestump@comcast.net>
12269 Richard Sandiford <rdsandiford@googlemail.com>
12270 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12271
12272 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12273 (rtx_equal_for_memref_p): Update comment.
12274 (adjust_offset_for_component_ref): Use wide-int interfaces.
12275 * builtins.c (get_object_alignment_2): Likewise.
12276 (c_readstr): Likewise.
12277 (target_char_cast): Add comment.
12278 (determine_block_size): Use wide-int interfaces.
12279 (expand_builtin_signbit): Likewise.
12280 (fold_builtin_int_roundingfn): Likewise.
12281 (fold_builtin_bitop): Likewise.
12282 (fold_builtin_bswap): Likewise.
12283 (fold_builtin_logarithm): Use signop.
12284 (fold_builtin_pow): Likewise.
12285 (fold_builtin_memory_op): Use wide-int interfaces.
12286 (fold_builtin_object_size): Likewise.
12287 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12288 nb_iterations_estimate.
12289 (record_niter_bound): Use wide-int interfaces.
12290 (get_estimated_loop_iterations_int): Likewise.
12291 (get_estimated_loop_iterations): Likewise.
12292 (get_max_loop_iterations): Likewise.
12293 * cfgloop.h: Include wide-int.h.
12294 (struct nb_iter_bound): Change bound to widest_int.
12295 (struct loop): Change nb_iterations_upper_bound and
12296 nb_iterations_estimate to widest_int.
12297 (record_niter_bound): Switch to use widest_int.
12298 (get_estimated_loop_iterations): Likewise.
12299 (get_max_loop_iterations): Likewise.
12300 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12301 update for wide-int.
12302 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12303 * combine.c (try_combine): Likewise.
12304 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12305 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12306 interfaces.
12307 (aarch64_float_const_representable_p): Likewise.
12308 * config/arc/arc.c: Include wide-int.h.
12309 (arc_can_use_doloop_p): Use wide-int interfaces.
12310 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12311 (vfp3_const_double_index): Likewise.
12312 * config/avr/avr.c (avr_out_round): Likewise.
12313 (avr_fold_builtin): Likewise.
12314 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12315 (bfin_can_use_doloop_p): Likewise.
12316 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12317 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12318 * config/i386/i386.c: Include wide-int.h.
12319 (ix86_data_alignment): Use wide-int interfaces.
12320 (ix86_local_alignment): Likewise.
12321 (ix86_emit_swsqrtsf): Update real_from_integer.
12322 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12323 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12324 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12325 (zero_constant): Likewise.
12326 (input_operand): Likewise.
12327 (splat_input_operand): Likewise.
12328 (non_logical_cint_operand): Change const_double to const_wide_int.
12329 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12330 (easy_altivec_constant): Remove comment.
12331 (paired_expand_vector_init): Use CONSTANT_P.
12332 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12333 (rs6000_emit_move): Update checks.
12334 (rs6000_aggregate_candidate): Use wide-int interfaces.
12335 (rs6000_expand_ternop_builtin): Likewise.
12336 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12337 (rs6000_assemble_integer): Likewise.
12338 (rs6000_hash_constant): Likewise.
12339 (output_toc): Likewise.
12340 (rs6000_rtx_costs): Likewise.
12341 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12342 * config/rs6000/rs6000-c.c: Include wide-int.h.
12343 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12344 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12345 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12346 Handle CONST_WIDE_INT.
12347 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12348 Use tree_fits_uhwi_p.
12349 * config/sparc/sparc.c: Include wide-int.h.
12350 (sparc_fold_builtin): Use wide-int interfaces.
12351 * config/vax/vax.c: Include wide-int.h.
12352 (vax_float_literal): Use real_from_integer.
12353 * coretypes.h (struct hwivec_def): New.
12354 (hwivec): New.
12355 (const_hwivec): New.
12356 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12357 (equiv_constant): Handle CONST_WIDE_INT.
12358 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12359 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12360 * dbxout.c (stabstr_U): Use wide-int interfaces.
12361 (dbxout_type): Update to use cst_fits_shwi_p.
12362 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12363 (TARGET_SUPPORTS_WIDE_INT): Add default.
12364 * dfp.c: Include wide-int.h.
12365 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12366 decimal_real_to_integer.
12367 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12368 decimal_real_to_integer.
12369 * doc/generic.texi (Constant expressions): Update for wide_int.
12370 * doc/rtl.texi (const_double): Likewise.
12371 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12372 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12373 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12374 (REAL_VALUE_FROM_INT): Remove.
12375 (TARGET_SUPPORTS_WIDE_INT): New.
12376 * doc/tm.texi: Regenerate.
12377 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12378 * double-int.h: Include wide-int.h.
12379 (struct wi::int_traits): New.
12380 * dwarf2out.c (get_full_len): New.
12381 (dw_val_equal_p): Add case dw_val_class_wide_int.
12382 (size_of_loc_descr): Likewise.
12383 (output_loc_operands): Likewise.
12384 (insert_double): Remove.
12385 (insert_wide_int): New.
12386 (add_AT_wide): New.
12387 (print_die): Add case dw_val_class_wide_int.
12388 (attr_checksum): Likewise.
12389 (attr_checksum_ordered): Likewise.
12390 (same_dw_val_p): Likewise.
12391 (size_of_die): Likewise.
12392 (value_format): Likewise.
12393 (output_die): Likewise.
12394 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12395 Use wide-int.
12396 (clz_loc_descriptor): Use wide-int interfaces.
12397 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12398 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12399 (round_up_to_align): Use wide-int interfaces.
12400 (field_byte_offset): Likewise.
12401 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12402 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12403 CONST_DOUBLE handling. Use wide-int interfaces.
12404 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12405 (gen_enumeration_type_die): Use add_AT_wide.
12406 (hash_loc_operands): Add case dw_val_class_wide_int.
12407 (compare_loc_operands): Likewise.
12408 * dwarf2out.h: Include wide-int.h.
12409 (wide_int_ptr): New.
12410 (enum dw_val_class): Add dw_val_class_wide_int.
12411 (struct dw_val_struct): Add val_wide.
12412 * emit-rtl.c (const_wide_int_htab): New.
12413 (const_wide_int_htab_hash): New.
12414 (const_wide_int_htab_eq): New.
12415 (lookup_const_wide_int): New.
12416 (const_double_htab_hash): Use wide-int interfaces.
12417 (const_double_htab_eq): Likewise.
12418 (rtx_to_double_int): Conditionally compile for wide-int.
12419 (immed_double_int_const): Rename to immed_wide_int_const and
12420 update for wide-int.
12421 (immed_double_const): Conditionally compile for wide-int.
12422 (init_emit_once): Use wide-int interfaces.
12423 * explow.c (plus_constant): Likewise.
12424 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12425 (lshift_value): Use wide-int interfaces.
12426 (expand_mult): Likewise.
12427 (choose_multiplier): Likewise.
12428 (expand_smod_pow2): Likewise.
12429 (make_tree): Likewise.
12430 * expr.c (convert_modes): Consolidate handling of constants.
12431 Use wide-int interfaces.
12432 (emit_group_load_1): Add note.
12433 (store_expr): Update comment.
12434 (get_inner_reference): Use wide-int interfaces.
12435 (expand_constructor): Update comment.
12436 (expand_expr_real_2): Use wide-int interfaces.
12437 (expand_expr_real_1): Likewise.
12438 (reduce_to_bit_field_precision): Likewise.
12439 (const_vector_from_tree): Likewise.
12440 * final.c: Include wide-int-print.h.
12441 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12442 * fixed-value.c: Include wide-int.h.
12443 (fixed_from_string): Use wide-int interfaces.
12444 (fixed_to_decimal): Likewise.
12445 (fixed_convert_from_real): Likewise.
12446 (real_convert_from_fixed): Likewise.
12447 * fold-const.h (mem_ref_offset): Return an offset_int.
12448 (div_if_zero_remainder): Remove code parameter.
12449 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12450 Use wide-int interfaces.
12451 (may_negate_without_overflow_p): Use wide-int interfaces.
12452 (negate_expr_p): Likewise.
12453 (fold_negate_expr): Likewise.
12454 (int_const_binop_1): Likewise.
12455 (const_binop): Likewise.
12456 (fold_convert_const_int_from_int): Likewise.
12457 (fold_convert_const_int_from_real): Likewise.
12458 (fold_convert_const_int_from_fixed): Likewise.
12459 (fold_convert_const_fixed_from_int): Likewise.
12460 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12461 (sign_bit_p): Use wide-int interfaces.
12462 (make_range_step): Likewise.
12463 (build_range_check): Likewise. Pass an integer of the correct type
12464 instead of using integer_one_node.
12465 (range_predecessor): Pass an integer of the correct type instead
12466 of using integer_one_node.
12467 (range_successor): Likewise.
12468 (merge_ranges): Likewise.
12469 (unextend): Use wide-int interfaces.
12470 (extract_muldiv_1): Likewise.
12471 (fold_div_compare): Likewise.
12472 (fold_single_bit_test): Likewise.
12473 (fold_sign_changed_comparison): Likewise.
12474 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12475 (fold_plusminus_mult_expr): Use wide-int interfaces.
12476 (native_encode_int): Likewise.
12477 (native_interpret_int): Likewise.
12478 (fold_unary_loc): Likewise.
12479 (pointer_may_wrap_p): Likewise.
12480 (size_low_cst): Likewise.
12481 (mask_with_tz): Likewise.
12482 (fold_binary_loc): Likewise.
12483 (fold_ternary_loc): Likewise.
12484 (multiple_of_p): Likewise.
12485 (tree_call_nonnegative_warnv_p): Update calls to
12486 tree_int_cst_min_precision and real_from_integer.
12487 (fold_negate_const): Use wide-int interfaces.
12488 (fold_abs_const): Likewise.
12489 (fold_relational_const): Use tree_int_cst_lt.
12490 (round_up_loc): Use wide-int interfaces.
12491 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12492 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12493 * gengtype.c: Remove include of double-int.h.
12494 (do_typedef): Use wide-int interfaces.
12495 (open_base_files): Add wide-int.h.
12496 (main): Add offset_int and widest_int typedefs.
12497 * gengtype-lex.l: Handle "^".
12498 (CXX_KEYWORD): Add "static".
12499 * gengtype-parse.c (require3): New.
12500 (require_template_declaration): Handle constant template arguments
12501 and nested templates.
12502 * gengtype-state.c: Don't include "double-int.h".
12503 * genpreds.c (write_one_predicate_function): Update comment.
12504 (write_tm_constrs_h): Add check for hval and lval use in
12505 CONST_WIDE_INT.
12506 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12507 (add_to_sequence): Likewise.
12508 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12509 and const_double_operand.
12510 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12511 interfaces.
12512 * gimple-fold.c (get_base_constructor): Likewise.
12513 (fold_array_ctor_reference): Likewise.
12514 (fold_nonarray_ctor_reference): Likewise.
12515 (fold_const_aggregate_ref_1): Likewise.
12516 (gimple_val_nonnegative_real_p): Likewise.
12517 (gimple_fold_indirect_ref): Likewise.
12518 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12519 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12520 (struct slsr_cand_d): Change index to be widest_int.
12521 (struct incr_info_d): Change incr to be widest_int.
12522 (alloc_cand_and_find_basis): Use wide-int interfaces.
12523 (slsr_process_phi): Likewise.
12524 (backtrace_base_for_ref): Likewise. Return a widest_int.
12525 (restructure_reference): Take a widest_int instead of a double_int.
12526 (slsr_process_ref): Use wide-int interfaces.
12527 (create_mul_ssa_cand): Likewise.
12528 (create_mul_imm_cand): Likewise.
12529 (create_add_ssa_cand): Likewise.
12530 (create_add_imm_cand): Take a widest_int instead of a double_int.
12531 (slsr_process_add): Use wide-int interfaces.
12532 (slsr_process_cast): Likewise.
12533 (slsr_process_copy): Likewise.
12534 (dump_candidate): Likewise.
12535 (dump_incr_vec): Likewise.
12536 (replace_ref): Likewise.
12537 (cand_increment): Likewise. Return a widest_int.
12538 (cand_abs_increment): Likewise.
12539 (replace_mult_candidate): Take a widest_int instead of a double_int.
12540 (replace_unconditional_candidate): Use wide-int interfaces.
12541 (incr_vec_index): Take a widest_int instead of a double_int.
12542 (create_add_on_incoming_edge): Likewise.
12543 (create_phi_basis): Use wide-int interfaces.
12544 (replace_conditional_candidate): Likewise.
12545 (record_increment): Take a widest_int instead of a double_int.
12546 (record_phi_increments): Use wide-int interfaces.
12547 (phi_incr_cost): Take a widest_int instead of a double_int.
12548 (lowest_cost_path): Likewise.
12549 (total_savings): Likewise.
12550 (analyze_increments): Use wide-int interfaces.
12551 (ncd_with_phi): Take a widest_int instead of a double_int.
12552 (ncd_of_cand_and_phis): Likewise.
12553 (nearest_common_dominator_for_cands): Likewise.
12554 (insert_initializers): Use wide-int interfaces.
12555 (all_phi_incrs_profitable): Likewise.
12556 (replace_one_candidate): Likewise.
12557 (replace_profitable_candidates): Likewise.
12558 * godump.c: Include wide-int-print.h.
12559 (go_output_typedef): Use wide-int interfaces.
12560 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12561 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12562 (build_loop_iteration_domains): Likewise.
12563 * hooks.h: Include wide-int.h rather than double-int.h.
12564 (hook_bool_dint_dint_uint_bool_true): Delete.
12565 (hook_bool_wint_wint_uint_bool_true): Declare.
12566 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12567 (hook_bool_wint_wint_uint_bool_true): New.
12568 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12569 interfaces.
12570 (ubsan_expand_si_overflow_mul_check): Likewise.
12571 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12572 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12573 (get_ancestor_addr_info): Likewise.
12574 (ipa_modify_call_arguments): Likewise.
12575 * loop-doloop.c (doloop_modify): Likewise.
12576 (doloop_optimize): Likewise.
12577 * loop-iv.c (iv_number_of_iterations): Likewise.
12578 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12579 (unroll_loop_constant_iterations): Likewise.
12580 (decide_unroll_runtime_iterations): Likewise.
12581 (unroll_loop_runtime_iterations): Likewise.
12582 (decide_peel_simple): Likewise.
12583 (decide_unroll_stupid): Likewise.
12584 * lto-streamer-in.c (streamer_read_wi): Add.
12585 (input_cfg): Use wide-int interfaces.
12586 (lto_input_tree_1): Likewise.
12587 * lto-streamer-out.c (streamer_write_wi): Add.
12588 (hash_tree): Use wide-int interfaces.
12589 (output_cfg): Likewise.
12590 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12591 (GTFILES): Add wide-int.h and signop.h.
12592 (TAGS): Look for .cc files too.
12593 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12594 * optabs.c (expand_subword_shift): Likewise.
12595 (expand_doubleword_shift): Likewise.
12596 (expand_absneg_bit): Likewise.
12597 (expand_copysign_absneg): Likewise.
12598 (expand_copysign_bit): Likewise.
12599 * postreload.c (reload_cse_simplify_set): Likewise.
12600 * predict.c (predict_iv_comparison): Likewise.
12601 * pretty-print.h: Include wide-int-print.h.
12602 (pp_wide_int) New.
12603 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
12604 * print-tree.c: Include wide-int-print.h.
12605 (print_node_brief): Use wide-int interfaces.
12606 (print_node): Likewise.
12607 * read-rtl.c (validate_const_wide_int): New.
12608 (read_rtx_code): Add CONST_WIDE_INT case.
12609 * real.c: Include wide-int.h.
12610 (real_to_integer2): Delete.
12611 (real_to_integer): New function, returning a wide_int.
12612 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12613 (ten_to_ptwo): Update call to real_from_integer.
12614 (real_digit): Likewise.
12615 * real.h: Include signop.h, wide-int.h and insn-modes.h.
12616 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
12617 (REAL_VALUE_TO_INT): Delete.
12618 (real_to_integer): Declare a wide-int form.
12619 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12620 * recog.c (const_int_operand): Improve comment.
12621 (const_scalar_int_operand): New.
12622 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
12623 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
12624 (split_double): Likewise.
12625 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
12626 (rtx_size): Likewise.
12627 (rtx_alloc_stat_v): New.
12628 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
12629 (cwi_output_hex): New.
12630 (iterative_hash_rtx): Handle CONST_WIDE_INT.
12631 (cwi_check_failed_bounds): New.
12632 * rtl.def (CONST_WIDE_INT): New.
12633 * rtl.h: Include <utility> and wide-int.h.
12634 (struct hwivec_def): New.
12635 (CWI_GET_NUM_ELEM): New.
12636 (CWI_PUT_NUM_ELEM): New.
12637 (struct rtx_def): Add num_elem and hwiv.
12638 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
12639 (CASE_CONST_UNIQUE): Likewise.
12640 (CASE_CONST_ANY): Likewise.
12641 (CONST_SCALAR_INT_P): Likewise.
12642 (CONST_WIDE_INT_P): New.
12643 (CWI_ELT): New.
12644 (HWIVEC_CHECK): New.
12645 (cwi_check_failed_bounds): New.
12646 (CWI_ELT): New.
12647 (HWIVEC_CHECK): New.
12648 (CONST_WIDE_INT_VEC) New.
12649 (CONST_WIDE_INT_NUNITS) New.
12650 (CONST_WIDE_INT_ELT) New.
12651 (rtx_mode_t): New type.
12652 (wi::int_traits <rtx_mode_t>): New.
12653 (wi::shwi): New.
12654 (wi::min_value): New.
12655 (wi::max_value): New.
12656 (rtx_alloc_v) New.
12657 (const_wide_int_alloc): New.
12658 (immed_wide_int_const): New.
12659 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
12660 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
12661 * signop.h: New file.
12662 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
12663 (simplify_const_unary_operation): Use wide-int interfaces.
12664 (simplify_binary_operation_1): Likewise.
12665 (simplify_const_binary_operation): Likewise.
12666 (simplify_const_relational_operation): Likewise.
12667 (simplify_immed_subreg): Likewise.
12668 * stmt.c (expand_case): Likewise.
12669 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
12670 signop rather than a bool.
12671 * stor-layout.c (layout_type): Use wide-int interfaces.
12672 (initialize_sizetypes): Update calls to
12673 set_min_and_max_values_for_integral_type.
12674 (set_min_and_max_values_for_integral_type): Take a signop rather
12675 than a bool. Use wide-int interfaces.
12676 (fixup_signed_type): Update accordingly. Remove
12677 HOST_BITS_PER_DOUBLE_INT limit.
12678 (fixup_unsigned_type): Likewise.
12679 * system.h (STATIC_CONSTANT_P): New.
12680 (STATIC_ASSERT): New.
12681 * target.def (can_use_doloop_p): Take widest_ints rather than
12682 double_ints.
12683 * target.h: Include wide-int.h rather than double-int.h.
12684 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
12685 than double_ints.
12686 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
12687 rather than INT_CST_LT_UNSIGNED.
12688 (can_use_doloop_if_innermost): Take widest_ints rather than
12689 double_ints.
12690 * tree-affine.c: Include wide-int-print.h.
12691 (double_int_ext_for_comb): Delete.
12692 (wide_int_ext_for_comb): New.
12693 (aff_combination_zero): Use wide-int interfaces.
12694 (aff_combination_const): Take a widest_int instead of a double_int.
12695 (aff_combination_elt): Use wide-int interfaces.
12696 (aff_combination_scale): Take a widest_int instead of a double_int.
12697 (aff_combination_add_elt): Likewise.
12698 (aff_combination_add_cst): Likewise.
12699 (aff_combination_add): Use wide-int interfaces.
12700 (aff_combination_convert): Likewise.
12701 (tree_to_aff_combination): Likewise.
12702 (add_elt_to_tree): Take a widest_int instead of a double_int.
12703 (aff_combination_to_tree): Use wide-int interfaces.
12704 (aff_combination_remove_elt): Likewise.
12705 (aff_combination_add_product): Take a widest_int instead of
12706 a double_int.
12707 (aff_combination_mult): Use wide-int interfaces.
12708 (aff_combination_expand): Likewise.
12709 (double_int_constant_multiple_p): Delete.
12710 (wide_int_constant_multiple_p): New.
12711 (aff_combination_constant_multiple_p): Take a widest_int pointer
12712 instead of a double_int pointer.
12713 (print_aff): Use wide-int interfaces.
12714 (get_inner_reference_aff): Take a widest_int pointer
12715 instead of a double_int pointer.
12716 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
12717 * tree-affine.h: Include wide-int.h.
12718 (struct aff_comb_elt): Change type of coef to widest_int.
12719 (struct affine_tree_combination): Change type of offset to widest_int.
12720 (double_int_ext_for_comb): Delete.
12721 (wide_int_ext_for_comb): New.
12722 (aff_combination_const): Use widest_int instead of double_int.
12723 (aff_combination_scale): Likewise.
12724 (aff_combination_add_elt): Likewise.
12725 (aff_combination_constant_multiple_p): Likewise.
12726 (get_inner_reference_aff): Likewise.
12727 (aff_comb_cannot_overlap_p): Likewise.
12728 (aff_combination_zero_p): Use wide-int interfaces.
12729 * tree.c: Include tree.h.
12730 (init_ttree): Use make_int_cst.
12731 (tree_code_size): Removed code for INTEGER_CST case.
12732 (tree_size): Add INTEGER_CST case.
12733 (make_node_stat): Update comment.
12734 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
12735 (build_int_cst_type): Use wide-int interfaces.
12736 (double_int_to_tree): Likewise.
12737 (double_int_fits_to_tree_p): Delete.
12738 (force_fit_type_double): Delete.
12739 (force_fit_type): New.
12740 (int_cst_hash_hash): Use wide-int interfaces.
12741 (int_cst_hash_eq): Likewise.
12742 (build_int_cst_wide): Delete.
12743 (wide_int_to_tree): New.
12744 (cache_integer_cst): Use wide-int interfaces.
12745 (build_low_bits_mask): Likewise.
12746 (cst_and_fits_in_hwi): Likewise.
12747 (real_value_from_int_cst): Likewise.
12748 (make_int_cst_stat): New.
12749 (integer_zerop): Use wide_int interfaces.
12750 (integer_onep): Likewise.
12751 (integer_all_onesp): Likewise.
12752 (integer_pow2p): Likewise.
12753 (integer_nonzerop): Likewise.
12754 (tree_log2): Likewise.
12755 (tree_floor_log2): Likewise.
12756 (tree_ctz): Likewise.
12757 (int_size_in_bytes): Likewise.
12758 (mem_ref_offset): Return an offset_int rather than a double_int.
12759 (build_type_attribute_qual_variant): Use wide_int interfaces.
12760 (type_hash_eq): Likewise
12761 (tree_int_cst_equal): Likewise.
12762 (tree_int_cst_lt): Delete.
12763 (tree_int_cst_compare): Likewise.
12764 (tree_fits_shwi_p): Use wide_int interfaces.
12765 (tree_fits_uhwi_p): Likewise.
12766 (tree_int_cst_sign_bit): Likewise.
12767 (tree_int_cst_sgn): Likewise.
12768 (tree_int_cst_min_precision): Take a signop rather than a bool.
12769 (simple_cst_equal): Use wide_int interfaces.
12770 (compare_tree_int): Likewise.
12771 (iterative_hash_expr): Likewise.
12772 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
12773 INT_CST_LT.
12774 (get_type_static_bounds): Use wide_int interfaces.
12775 (tree_int_cst_elt_check_failed): New.
12776 (build_common_tree_nodes): Reordered to set prec before filling in
12777 value.
12778 (int_cst_value): Check cst_and_fits_in_hwi.
12779 (widest_int_cst_value): Use wide_int interfaces.
12780 (upper_bound_in_type): Likewise.
12781 (lower_bound_in_type): Likewise.
12782 (num_ending_zeros): Likewise.
12783 (drop_tree_overflow): Likewise.
12784 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
12785 (gen_conditions_for_pow_cst_base): Likewise.
12786 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
12787 (group_case_labels_stmt): Use wide-int interfaces.
12788 (verify_gimple_assign_binary): Likewise.
12789 (print_loop): Likewise.
12790 * tree-chrec.c (tree_fold_binomial): Likewise.
12791 * tree-core.h (struct tree_base): Add int_length.
12792 (struct tree_int_cst): Change rep of value.
12793 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
12794 (dr_may_alias_p): Likewise.
12795 (max_stmt_executions_tree): Likewise.
12796 * tree.def (INTEGER_CST): Update comment.
12797 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
12798 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
12799 * tree-dump.c: Include wide-int.h and wide-int-print.h.
12800 (dequeue_and_dump): Use wide-int interfaces.
12801 * tree.h: Include wide-int.h.
12802 (NULL_TREE): Moved to earlier loc in file.
12803 (TREE_INT_CST_ELT_CHECK): New.
12804 (tree_int_cst_elt_check_failed): New.
12805 (TYPE_SIGN): New.
12806 (TREE_INT_CST): Delete.
12807 (TREE_INT_CST_LOW): Use wide-int interfaces.
12808 (TREE_INT_CST_HIGH): Delete.
12809 (TREE_INT_CST_NUNITS): New.
12810 (TREE_INT_CST_EXT_NUNITS): Likewise.
12811 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
12812 (TREE_INT_CST_ELT): Likewise.
12813 (INT_CST_LT): Delete.
12814 (tree_int_cst_elt_check): New (two forms).
12815 (type_code_size): Update comment.
12816 (make_int_cst_stat, make_int_cst): New.
12817 (tree_to_double_int): Delete.
12818 (double_int_fits_to_tree_p): Delete.
12819 (force_fit_type_double): Delete.
12820 (build_int_cstu): Replace with out-of-line function.
12821 (build_int_cst_wide): Delete.
12822 (tree_int_cst_lt): Define inline.
12823 (tree_int_cst_le): New.
12824 (tree_int_cst_compare): Define inline.
12825 (tree_int_cst_min_precision): Take a signop rather than a bool.
12826 (wi::int_traits <const_tree>): New.
12827 (wi::int_traits <tree>): New.
12828 (wi::extended_tree): New.
12829 (wi::int_traits <wi::extended_tree>): New.
12830 (wi::to_widest): New.
12831 (wi::to_offset): New.
12832 (wi::fits_to_tree_p): New.
12833 (wi::min_value): New.
12834 (wi::max_value): New.
12835 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
12836 (copy_tree_body_r): Likewise.
12837 * tree-object-size.c (compute_object_offset): Likewise.
12838 (addr_object_size): Likewise.
12839 * tree-predcom.c: Include wide-int-print.h.
12840 (struct dref_d): Change type of offset to widest_int.
12841 (dump_dref): Call wide-int printer.
12842 (aff_combination_dr_offset): Use wide-int interfaces.
12843 (determine_offset): Take a widest_int pointer rather than a
12844 double_int pointer.
12845 (split_data_refs_to_components): Use wide-int interfaces.
12846 (suitable_component_p): Likewise.
12847 (order_drefs): Likewise.
12848 (add_ref_to_chain): Likewise.
12849 (valid_initializer_p): Likewise.
12850 (determine_roots_comp): Likewise.
12851 * tree-pretty-print.c: Include wide-int-print.h.
12852 (dump_generic_node): Use wide-int interfaces.
12853 * tree-sra.c (sra_ipa_modify_expr): Likewise.
12854 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12855 (move_fixed_address_to_symbol): Likewise.
12856 (move_hint_to_base): Likewise.
12857 (move_pointer_to_base): Likewise.
12858 (move_variant_to_index): Likewise.
12859 (most_expensive_mult_to_index): Likewise.
12860 (addr_to_parts): Likewise.
12861 (copy_ref_info): Likewise.
12862 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12863 (indirect_refs_may_alias_p): Likewise.
12864 (stmt_kills_ref_p_1): Likewise.
12865 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12866 * tree-ssa-ccp.c: Update comment at top of file. Include
12867 wide-int-print.h.
12868 (struct prop_value_d): Change type of mask to widest_int.
12869 (extend_mask): New function.
12870 (dump_lattice_value): Use wide-int interfaces.
12871 (get_default_value): Likewise.
12872 (set_constant_value): Likewise.
12873 (set_value_varying): Likewise.
12874 (valid_lattice_transition): Likewise.
12875 (set_lattice_value): Likewise.
12876 (value_to_double_int): Delete.
12877 (value_to_wide_int): New.
12878 (get_value_from_alignment): Use wide-int interfaces.
12879 (get_value_for_expr): Likewise.
12880 (do_dbg_cnt): Likewise.
12881 (ccp_finalize): Likewise.
12882 (ccp_lattice_meet): Likewise.
12883 (bit_value_unop_1): Use widest_ints rather than double_ints.
12884 (bit_value_binop_1): Likewise.
12885 (bit_value_unop): Use wide-int interfaces.
12886 (bit_value_binop): Likewise.
12887 (bit_value_assume_aligned): Likewise.
12888 (evaluate_stmt): Likewise.
12889 (ccp_fold_stmt): Likewise.
12890 (visit_cond_stmt): Likewise.
12891 (ccp_visit_stmt): Likewise.
12892 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12893 (constant_pointer_difference): Likewise.
12894 (associate_pointerplus): Likewise.
12895 (combine_conversions): Likewise.
12896 * tree-ssa-loop.h: Include wide-int.h.
12897 (struct tree_niter_desc): Change type of max to widest_int.
12898 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
12899 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
12900 (remove_redundant_iv_tests): Likewise.
12901 (canonicalize_loop_induction_variables): Likewise.
12902 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
12903 (constant_multiple_of): Take a widest_int pointer instead of
12904 a double_int pointer.
12905 (get_computation_aff): Use wide-int interfaces.
12906 (ptr_difference_cost): Likewise.
12907 (difference_cost): Likewise.
12908 (get_loop_invariant_expr_id): Likewise.
12909 (get_computation_cost_at): Likewise.
12910 (iv_elimination_compare_lt): Likewise.
12911 (may_eliminate_iv): Likewise.
12912 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
12913 instead of double_int.
12914 (max_loop_iterations): Likewise.
12915 (max_stmt_executions): Likewise.
12916 (estimated_stmt_executions): Likewise.
12917 * tree-ssa-loop-niter.c: Include wide-int-print.h.
12918 (split_to_var_and_offset): Use wide-int interfaces.
12919 (determine_value_range): Likewise.
12920 (bound_difference_of_offsetted_base): Likewise.
12921 (bounds_add): Take a widest_int instead of a double_int.
12922 (number_of_iterations_ne_max): Use wide-int interfaces.
12923 (number_of_iterations_ne): Likewise.
12924 (number_of_iterations_lt_to_ne): Likewise.
12925 (assert_loop_rolls_lt): Likewise.
12926 (number_of_iterations_lt): Likewise.
12927 (number_of_iterations_le): Likewise.
12928 (number_of_iterations_cond): Likewise.
12929 (number_of_iterations_exit): Likewise.
12930 (finite_loop_p): Likewise.
12931 (derive_constant_upper_bound_assign): Likewise.
12932 (derive_constant_upper_bound): Return a widest_int.
12933 (derive_constant_upper_bound_ops): Likewise.
12934 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
12935 (record_estimate): Take a widest_int rather than a double_int.
12936 (record_nonwrapping_iv): Use wide-int interfaces.
12937 (double_int_cmp): Delete.
12938 (wide_int_cmp): New.
12939 (bound_index): Take a widest_int rather than a double_int.
12940 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
12941 (maybe_lower_iteration_bound): Likewise.
12942 (estimate_numbers_of_iterations_loop): Likewise.
12943 (estimated_loop_iterations): Take a widest_int pointer than than
12944 a double_int pointer.
12945 (estimated_loop_iterations_int): Use wide-int interfaces.
12946 (max_loop_iterations): Take a widest_int pointer than than
12947 a double_int pointer.
12948 (max_loop_iterations_int): Use wide-int interfaces.
12949 (max_stmt_executions): Take a widest_int pointer than than
12950 a double_int pointer.
12951 (estimated_stmt_executions): Likewise.
12952 (n_of_executions_at_most): Use wide-int interfaces.
12953 (scev_probably_wraps_p): Likewise.
12954 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
12955 to real_to_integer.
12956 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
12957 interfaces.
12958 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
12959 double_ints. Adjust for trailing_wide_ints <3> representation.
12960 (set_nonzero_bits): Likewise.
12961 (get_range_info): Return wide_ints rather than double_ints.
12962 Adjust for trailing_wide_ints <3> representation.
12963 (get_nonzero_bits): Likewise.
12964 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
12965 representation.
12966 * tree-ssanames.h (struct range_info_def): Replace min, max and
12967 nonzero_bits with a trailing_wide_ints <3>.
12968 (set_range_info): Use wide_int_refs rather than double_ints.
12969 (set_nonzero_bits): Likewise.
12970 (get_range_info): Return wide_ints rather than double_ints.
12971 (get_nonzero_bits): Likewise.
12972 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
12973 * tree-ssa-pre.c (phi_translate_1): Likewise.
12974 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
12975 (acceptable_pow_call): Likewise.
12976 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
12977 interfaces.
12978 (vn_reference_fold_indirect): Likewise.
12979 (vn_reference_maybe_forwprop_address): Likewise.
12980 (valueize_refs_1): Likewise.
12981 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
12982 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
12983 tree_int_cst_lt and tree_int_cst_le.
12984 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
12985 interfaces.
12986 (streamer_alloc_tree): Likewise.
12987 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
12988 (streamer_write_tree_header): Likewise.
12989 (streamer_write_integer_cst): Likewise.
12990 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12991 (build_constructors): Likewise.
12992 (array_value_type): Likewise.
12993 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
12994 (vect_check_gather): Likewise.
12995 * tree-vect-generic.c (build_replicated_const): Likewise.
12996 (expand_vector_divmod): Likewise.
12997 * tree-vect-loop.c (vect_transform_loop): Likewise.
12998 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
12999 (vect_do_peeling_for_alignment): Likewise.
13000 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13001 * tree-vrp.c: Include wide-int.h.
13002 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
13003 (extract_range_from_assert): Use wide-int interfaces.
13004 (vrp_int_const_binop): Likewise.
13005 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
13006 double_int pointers.
13007 (ranges_from_anti_range): Use wide-int interfaces.
13008 (quad_int_cmp): Delete.
13009 (quad_int_pair_sort): Likewise.
13010 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13011 (extract_range_from_unary_expr_1): Likewise.
13012 (adjust_range_with_scev): Likewise.
13013 (masked_increment): Take and return wide_ints rather than double_ints.
13014 (register_edge_assert_for_2): Use wide-int interfaces.
13015 (check_array_ref): Likewise.
13016 (search_for_addr_array): Likewise.
13017 (maybe_set_nonzero_bits): Likewise.
13018 (union_ranges): Pass an integer of the correct type instead of
13019 using integer_one_node.
13020 (intersect_ranges): Likewise.
13021 (simplify_truth_ops_using_ranges): Likewise.
13022 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13023 (range_fits_type_p): Likewise.
13024 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13025 a bool.
13026 (simplify_conversion_using_ranges): Use wide-int interfaces.
13027 (simplify_float_conversion_using_ranges): Likewise.
13028 (vrp_finalize): Likewise.
13029 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13030 (gimple_stringops_transform): Likewise.
13031 * varasm.c (decode_addr_const): Likewise.
13032 (const_hash_1): Likewise.
13033 (const_rtx_hash_1): Likewise
13034 (output_constant): Likewise.
13035 (array_size_for_constructor): Likewise.
13036 (output_constructor_regular_field): Likewise.
13037 (output_constructor_bitfield): Likewise.
13038 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13039 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13040 GENERATOR_FILEs.
13041 * gencheck.c: Define BITS_PER_UNIT.
13042 * wide-int.cc: New.
13043 * wide-int.h: New.
13044 * wide-int-print.cc: New.
13045 * wide-int-print.h: New.
13046
13047 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13048
13049 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13050
13051 2014-05-06 Richard Biener <rguenther@suse.de>
13052
13053 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13054 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13055 (TODO_verify_all): Adjust.
13056 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13057 TODO_verify_stmts and TODO_verify_rtl_sharing.
13058 * bb-reorder.c: Likewise.
13059 * cfgexpand.c: Likewise.
13060 * cprop.c: Likewise.
13061 * cse.c: Likewise.
13062 * function.c: Likewise.
13063 * fwprop.c: Likewise.
13064 * gcse.c: Likewise.
13065 * gimple-ssa-isolate-paths.c: Likewise.
13066 * gimple-ssa-strength-reduction.c: Likewise.
13067 * ipa-split.c: Likewise.
13068 * loop-init.c: Likewise.
13069 * loop-unroll.c: Likewise.
13070 * lower-subreg.c: Likewise.
13071 * modulo-sched.c: Likewise.
13072 * postreload-gcse.c: Likewise.
13073 * predict.c: Likewise.
13074 * recog.c: Likewise.
13075 * sched-rgn.c: Likewise.
13076 * store-motion.c: Likewise.
13077 * tracer.c: Likewise.
13078 * trans-mem.c: Likewise.
13079 * tree-call-cdce.c: Likewise.
13080 * tree-cfg.c: Likewise.
13081 * tree-cfgcleanup.c: Likewise.
13082 * tree-complex.c: Likewise.
13083 * tree-eh.c: Likewise.
13084 * tree-emutls.c: Likewise.
13085 * tree-if-conv.c: Likewise.
13086 * tree-into-ssa.c: Likewise.
13087 * tree-loop-distribution.c: Likewise.
13088 * tree-object-size.c: Likewise.
13089 * tree-parloops.c: Likewise.
13090 * tree-pass.h: Likewise.
13091 * tree-sra.c: Likewise.
13092 * tree-ssa-ccp.c: Likewise.
13093 * tree-ssa-copy.c: Likewise.
13094 * tree-ssa-copyrename.c: Likewise.
13095 * tree-ssa-dce.c: Likewise.
13096 * tree-ssa-dom.c: Likewise.
13097 * tree-ssa-dse.c: Likewise.
13098 * tree-ssa-forwprop.c: Likewise.
13099 * tree-ssa-ifcombine.c: Likewise.
13100 * tree-ssa-loop-ch.c: Likewise.
13101 * tree-ssa-loop-ivcanon.c: Likewise.
13102 * tree-ssa-loop.c: Likewise.
13103 * tree-ssa-math-opts.c: Likewise.
13104 * tree-ssa-phiopt.c: Likewise.
13105 * tree-ssa-phiprop.c: Likewise.
13106 * tree-ssa-pre.c: Likewise.
13107 * tree-ssa-reassoc.c: Likewise.
13108 * tree-ssa-sink.c: Likewise.
13109 * tree-ssa-strlen.c: Likewise.
13110 * tree-ssa-tail-merge.c: Likewise.
13111 * tree-ssa-uncprop.c: Likewise.
13112 * tree-switch-conversion.c: Likewise.
13113 * tree-tailcall.c: Likewise.
13114 * tree-vect-generic.c: Likewise.
13115 * tree-vectorizer.c: Likewise.
13116 * tree-vrp.c: Likewise.
13117 * tsan.c: Likewise.
13118 * var-tracking.c: Likewise.
13119 * bt-load.c: Likewise.
13120 * cfgcleanup.c: Likewise.
13121 * combine-stack-adj.c: Likewise.
13122 * combine.c: Likewise.
13123 * compare-elim.c: Likewise.
13124 * config/epiphany/resolve-sw-modes.c: Likewise.
13125 * config/i386/i386.c: Likewise.
13126 * config/mips/mips.c: Likewise.
13127 * config/s390/s390.c: Likewise.
13128 * config/sh/sh_treg_combine.cc: Likewise.
13129 * config/sparc/sparc.c: Likewise.
13130 * dce.c: Likewise.
13131 * dse.c: Likewise.
13132 * final.c: Likewise.
13133 * ifcvt.c: Likewise.
13134 * mode-switching.c: Likewise.
13135 * passes.c: Likewise.
13136 * postreload.c: Likewise.
13137 * ree.c: Likewise.
13138 * reg-stack.c: Likewise.
13139 * regcprop.c: Likewise.
13140 * regrename.c: Likewise.
13141 * web.c: Likewise.
13142
13143 2014-05-06 Richard Biener <rguenther@suse.de>
13144
13145 PR middle-end/61070
13146 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13147 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13148
13149 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13150
13151 PR ipa/60965
13152 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13153
13154 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13155 Tom de Vries <tom@codesourcery.com>
13156
13157 * target.def (call_fusage_contains_non_callee_clobbers): New
13158 DEFHOOKPOD.
13159 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13160 Hooks to @menu.
13161 (@node Miscellaneous Register Hooks): New node.
13162 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13163 * doc/tm.texi: Regenerate.
13164
13165 2014-05-05 Marek Polacek <polacek@redhat.com>
13166
13167 PR driver/61065
13168 * opts.c (common_handle_option): Call error_at instead of warning_at.
13169
13170 2014-05-05 Richard Biener <rguenther@suse.de>
13171
13172 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13173 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13174 under the TODO_verify_il umbrella.
13175
13176 2014-05-05 Richard Biener <rguenther@suse.de>
13177
13178 * passes.c (execute_function_todo): Move TODO_verify_flow under
13179 the TODO_verify_ul umbrella.
13180
13181 2014-05-05 Richard Biener <rguenther@suse.de>
13182
13183 PR middle-end/61010
13184 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13185 X & CST away from a CST that is the mask of a mode.
13186
13187 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13188
13189 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13190 int argument to enum machine_mode.
13191 (picochip_class_max_nregs): Ditto.
13192 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13193 (picochip_class_max_nregs): Ditto.
13194
13195 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13196
13197 * target.def: Add new target hook.
13198 * doc/tm.texi: Regenerate.
13199 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13200 * targhooks.c (default_keep_leaf_when_profiled): New function.
13201
13202 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13203 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13204
13205 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13206
13207 PR tree-optimization/60363
13208 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13209 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13210 (update_destination_phis): New parameter.
13211 (create_edge_and_update_destination_phis): Ditto.
13212 (ssa_fix_duplicate_block_edges): Pass new arguments.
13213 (thread_single_edge): Ditto.
13214
13215 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13216
13217 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13218 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13219 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13220 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13221 Use RS6000_BTM_HARD_FLOAT.
13222 (BU_MISC_2): Likewise.
13223 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13224 RS6000_BTM_HARD_FLOAT.
13225 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13226 is explicitly used.
13227 (rs6000_invalid_builtin): Add hard floating builtin support.
13228 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13229 hard float builtins.
13230 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13231
13232 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13233
13234 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13235 Add missing function* argument.
13236
13237 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13238
13239 * lra-constraints.c (valid_address_p): Move earlier in file.
13240 Add a constraint argument to the address_info version.
13241 (satisfies_memory_constraint_p): New function.
13242 (satisfies_address_constraint_p): Likewise.
13243 (process_alt_operands, curr_insn_transform): Use them.
13244 (process_address): Pass the constraint to valid_address_p when
13245 checking address operands.
13246
13247 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13248
13249 * config/mips/mips.c (mips_isa_rev): New variable.
13250 (mips_set_architecture): Set it.
13251 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13252 from mips_isa_rev.
13253 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13254 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13255 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13256 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13257 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13258 conditions in terms of mips_isa_rev.
13259 (mips_isa_rev): Declare.
13260
13261 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13262
13263 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13264 (prob_unlikely, prob_likely): Make variables const.
13265
13266 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13267
13268 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13269
13270 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13271
13272 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13273
13274 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13275
13276 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13277 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13278 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13279 functions.
13280 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13281 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13282 sh_pass_in_reg_p.
13283 Replace usage of ROUND_REG with sh_round_reg.
13284 Use CEIL instead of ROUND_ADVANCE.
13285
13286 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13287
13288 PR target/61026
13289 * config/sh/sh.c: Include stdlib headers before everything else.
13290
13291 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13292
13293 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13294 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13295 (gimplify_adjust_omp_clauses): Simd region is never
13296 directly nested in combined parallel. Instead, for linear
13297 with copyin/copyout, if in combined for simd loop, make decl
13298 firstprivate/lastprivate on OMP_FOR.
13299 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13300 expand_omp_for_static_chunk): When setting endvar, also set
13301 fd->loop.v to the same value.
13302
13303 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13304
13305 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13306
13307 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13308
13309 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13310 expression.
13311
13312 2014-05-02 Marek Polacek <polacek@redhat.com>
13313
13314 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13315
13316 2014-05-02 Kito Cheng <kito@0xlab.org>
13317
13318 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13319 to a C expression marco.
13320 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13321 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13322 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13323 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13324 HONOR_REG_ALLOC_ORDER.
13325 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13326
13327 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13328
13329 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13330
13331 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13332
13333 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13334
13335 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13336
13337 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13338 (convert_scalar_cond_reduction): Likewise.
13339 (predicate_scalar_phi): Add recognition and transformation
13340 of simple conditioanl reduction to be vectorizable.
13341
13342 2014-05-01 Marek Polacek <polacek@redhat.com>
13343
13344 PR c/43245
13345 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13346
13347 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13348
13349 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13350 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13351 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13352 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13353 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13354 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13355 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13356 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13357
13358 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13359
13360 * config/arc/arc.opt (mlra): Move comment above option name
13361 to avoid mis-parsing as language options.
13362
13363 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13364
13365 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13366 * config/sol2.h: ... here.
13367 * config/sol2-10.h: Remove.
13368
13369 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13370 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13371 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13372 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13373 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13374 * config/sol2.h: ... here.
13375 (SECTION_NAME_FORMAT): Don't redefine.
13376 (STARTFILE_ARCH32_SPEC): Rename to ...
13377 (STARTFILE_ARCH_SPEC): ... this.
13378 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13379 * config/sparc/sol2.h: ... here.
13380 (SECTION_NAME_FORMAT): Don't undef.
13381 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13382 (SUBTARGET_EXTRA_SPECS): Remove.
13383 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13384
13385 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13386 (MD_STARTFILE_PREFIX): Remove.
13387 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13388 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13389 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13390 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13391 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13392 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13393 * config/i386/sol2.h: ... here.
13394 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13395 * config/i386/sol2-bi.h: Remove.
13396 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13397 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13398
13399 * config/i386/t-sol2-64: Rename to ...
13400 * config/i386/t-sol2: ... this.
13401 * config/sparc/t-sol2-64: Rename to ...
13402 * config/sparc/t-sol2: ... this.
13403
13404 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13405 sol2_tm_file_head, sol2_tm_file_tail.
13406 Include ${cpu_type}/sol2.h before sol2.h.
13407 Remove sol2-10.h.
13408 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13409 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13410 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13411 Reflect i386/t-sol2-64 renaming.
13412 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13413 Reflect sparc/t-sol2-64 renaming.
13414
13415 2014-04-30 Richard Biener <rguenther@suse.de>
13416
13417 * passes.c (execute_function_todo): Move TODO_verify_stmts
13418 and TODO_verify_ssa under the TODO_verify_il umbrella.
13419 * tree-ssa.h (verify_ssa): Adjust prototype.
13420 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13421 we should verify SSA operands.
13422 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13423 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13424 whether we should verify whether not throwing stmts have EH info.
13425 * graphite-scop-detection.c (create_sese_edges): Adjust.
13426 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13427 * tree-eh.c (lower_try_finally_switch): Do not add the
13428 default case label twice.
13429
13430 2014-04-30 Marek Polacek <polacek@redhat.com>
13431
13432 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13433 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13434 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13435 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13436
13437 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13438
13439 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13440 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13441 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13442 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13443 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13444 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13445 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13446 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13447
13448 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13449
13450 * tree-cfg.c (dump_function_to_file): Dump the return type of
13451 functions, in a line to itself before the function body, mimicking
13452 the layout of a C function.
13453
13454 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13455
13456 PR tree-optimization/60971
13457 * tree-tailcall.c (process_assignment): Reject conversions which
13458 reduce precision.
13459
13460 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13461
13462 * calls.c (initialize_argument_information): Always treat
13463 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13464 (expand_call): Likewise.
13465 (emit_library_call_calue_1): Likewise.
13466 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13467 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13468 code accordingly.
13469
13470 2014-04-29 Nick Clifton <nickc@redhat.com>
13471
13472 * config/msp430/msp430.md (umulsidi): Fix typo.
13473 (mulhisi3): Enable even inside interrupt handlers.
13474 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13475 bigger return address pushed in large mode.
13476
13477 2014-04-29 Nick Clifton <nickc@redhat.com>
13478
13479 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13480 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13481 available modes.
13482 * config/m32r/m32r.c (init_reg_tables): Likewise.
13483 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13484 enum to hold the modes.
13485
13486 2014-04-29 Richard Biener <rguenther@suse.de>
13487
13488 * dominance.c (free_dominance_info): Add overload with
13489 function parameter.
13490 (dom_info_state): Likewise.
13491 (dom_info_available_p): Likewise.
13492 * basic-block.h (free_dominance_info, dom_info_state,
13493 dom_info_available_p): Declare overloads.
13494 * passes.c (execute_function_todo): Verify that verifiers
13495 don't change dominator info state. Drop dominator info
13496 for IPA pass invocations.
13497 * cgraph.c (release_function_body): Restore asserts that
13498 dominator information is released.
13499
13500 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13501
13502 * doc/invoke.texi: Fix typo.
13503 * tree-vrp.c: Fix typos.
13504 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13505
13506 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13507
13508 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13509
13510 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13511
13512 * config/aarch64/aarch64-builtins.c
13513 (aarch64_types_storestruct_lane_qualifiers): New.
13514 (TYPES_STORESTRUCT_LANE): Likewise.
13515 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13516 (st3_lane): Likewise.
13517 (st4_lane): Likewise.
13518 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13519 (vec_store_lanesci_lane<mode>): Likewise.
13520 (vec_store_lanesxi_lane<mode>): Likewise.
13521 (aarch64_st2_lane<VQ:mode>): Likewise.
13522 (aarch64_st3_lane<VQ:mode>): Likewise.
13523 (aarch64_st4_lane<VQ:mode>): Likewise.
13524 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13525 * config/aarch64/arm_neon.h
13526 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13527 use new macro arguments.
13528 (__ST3_LANE_FUNC): Likewise.
13529 (__ST4_LANE_FUNC): Likewise.
13530 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13531 (V_THREE_ELEM): Likewise.
13532 (V_FOUR_ELEM): Likewise.
13533
13534 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13535
13536 * doc/gimple.texi: Replace the description of the now-defunct
13537 union gimple_statement_d with a diagram showing the
13538 gimple_statement_base class hierarchy and its relationships to
13539 the GSS_ and GIMPLE_ enums.
13540
13541 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13542
13543 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13544 * config/aarch64/aarch64.c
13545 (aarch64_cannot_change_mode_class): Weaken conditions.
13546 (aarch64_modes_tieable_p): New.
13547 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13548
13549 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13550
13551 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13552 (loadsync_<mode>): Change mode.
13553 (load_quadpti, store_quadpti): New.
13554 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13555 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13556
13557 2014-04-28 Martin Jambor <mjambor@suse.cz>
13558
13559 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13560 same alias type as the original statement.
13561 (subreplacement_assignment_data): New type.
13562 (handle_unscalarized_data_in_subtree): New type of parameter,
13563 generate new memory accesses with same alias type as the original
13564 statement.
13565 (load_assign_lhs_subreplacements): Likewise.
13566 (sra_modify_constructor_assign): Generate new memory accesses with
13567 same alias type as the original statement.
13568
13569 2014-04-28 Richard Biener <rguenther@suse.de>
13570
13571 * tree-pass.h (TODO_verify_il): Define.
13572 (TODO_verify_all): Complete properly.
13573 * passes.c (execute_function_todo): Move existing loop-closed
13574 SSA verification under TODO_verify_il.
13575 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13576 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13577 Fix tree sharing issue.
13578
13579 2014-04-28 Richard Biener <rguenther@suse.de>
13580
13581 PR middle-end/60092
13582 * builtins.def (DEF_C11_BUILTIN): Add.
13583 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13584 * coretypes.h (enum function_class): Add function_c11_misc.
13585 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13586 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13587 (call_may_clobber_ref_p_1): Likewise.
13588 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13589 (mark_all_reaching_defs_necessary_1): Likewise.
13590 (propagate_necessity): Likewise.
13591 (eliminate_unnecessary_stmts): Likewise.
13592 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13593
13594 2014-04-28 Richard Biener <rguenther@suse.de>
13595
13596 * tree-vrp.c (vrp_var_may_overflow): Remove.
13597 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13598 with overflow immediately bump to one before that value and
13599 let iteration figure out overflow status.
13600
13601 2014-04-28 Richard Biener <rguenther@suse.de>
13602
13603 * configure.ac: Do valgrind header checks unconditionally.
13604 Add --enable-valgrind-annotations.
13605 * system.h: Guard valgrind header inclusion with
13606 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
13607 * alloc-pool.c (pool_alloc, pool_free): Use
13608 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
13609 to guard possibly dead code.
13610 * config.in: Regenerated.
13611 * configure: Likewise.
13612
13613 2014-04-28 Jeff Law <law@redhat.com>
13614
13615 PR tree-optimization/60902
13616 * tree-ssa-threadedge.c
13617 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
13618 over real defs when invalidating outputs from statements that do not
13619 produce useful outputs for threading.
13620
13621 2014-04-28 Richard Biener <rguenther@suse.de>
13622
13623 PR tree-optimization/60979
13624 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
13625 SCOPs that end in a block with a successor with abnormal
13626 predecessors.
13627
13628 2014-04-28 Richard Biener <rguenther@suse.de>
13629
13630 * tree-pass.h (execute_pass_list): Adjust prototype.
13631 * passes.c (pass_manager::execute_early_local_passes): Adjust.
13632 (do_per_function): Change callback signature, push all actual
13633 work to the callbals.
13634 (do_per_function_toporder): Likewise.
13635 (execute_function_dump): Adjust.
13636 (execute_function_todo): Likewise.
13637 (clear_last_verified): Likewise.
13638 (verify_curr_properties): Likewise.
13639 (update_properties_after_pass): Likewise.
13640 (execute_pass_list_1): Split out from ...
13641 (execute_pass_list): ... here. Adjust.
13642 (execute_ipa_pass_list): Likewise.
13643 * cgraphunit.c (cgraph_add_new_function): Adjust.
13644 (analyze_function): Likewise.
13645 (expand_function): Likewise.
13646 * cgraph.c (release_function_body): Free dominance info
13647 here instead of asserting it was magically freed elsewhere.
13648
13649 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
13650
13651 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
13652 * configure: Regenerate.
13653 * config/sparc/sparc.opt (muser-mode): New option.
13654 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
13655 for LEON3.
13656 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
13657 * doc/invoke.texi (SPARC options): Document -muser-mode.
13658
13659 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
13660
13661 * cselib.c (find_slot_memmode): Delete.
13662 (cselib_hasher): Change compare_type to a struct.
13663 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
13664 constants.
13665 (preserve_constants_and_equivs): Adjust for new compare_type.
13666 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
13667 (wrap_constant): Delete.
13668 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
13669
13670 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13671
13672 * doc/install.texi (Building with profile feedback): Remove
13673 outdated sentence.
13674
13675 2014-04-26 Tom de Vries <tom@codesourcery.com>
13676
13677 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
13678 array accesses.
13679
13680 2014-04-25 Cary Coutant <ccoutant@google.com>
13681
13682 PR debug/60929
13683 * dwarf2out.c (should_move_die_to_comdat): A type definition
13684 can contain a subprogram definition, but don't move it to a
13685 comdat unit.
13686 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
13687 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
13688 from original DIE.
13689 (clone_tree_hash): Rename to...
13690 (clone_tree_partial): ...this; change callers. Copy
13691 DW_TAG_subprogram DIEs as declarations.
13692 (copy_decls_walk): Don't copy children of a declaration into a
13693 type unit.
13694
13695 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
13696
13697 PR target/60969
13698 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
13699 alternative 12.
13700
13701 2014-04-25 Jiong Wang <jiong.wang@arm.com>
13702
13703 * config/arm/predicates.md (call_insn_operand): Add long_call check.
13704 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
13705 reg for long_call.
13706 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
13707 restriction.
13708
13709 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13710
13711 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
13712
13713 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13714
13715 PR tree-optimization/60930
13716 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
13717 creating a multiply candidate by folding two constant
13718 multiplicands when the result overflows.
13719
13720 2014-04-25 Jakub Jelinek <jakub@redhat.com>
13721
13722 PR tree-optimization/60960
13723 * tree-vect-generic.c (expand_vector_operation): Only call
13724 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
13725
13726 2014-04-25 Tom de Vries <tom@codesourcery.com>
13727
13728 * expr.c (clobber_reg_mode): New function.
13729 * expr.h (clobber_reg): New function.
13730
13731 2014-04-25 Tom de Vries <tom@codesourcery.com>
13732
13733 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
13734 clobbers.
13735
13736 2014-04-25 Radovan Obradovic <robradovic@mips.com>
13737 Tom de Vries <tom@codesourcery.com>
13738
13739 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
13740 handle.
13741 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
13742 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
13743 new argument to find_all_hard_reg_sets call.
13744
13745 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13746
13747 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
13748 Use HOST_WIDE_INT_C for mask literal.
13749 (aarch_rev16_shleft_mask_imm_p): Likewise.
13750
13751 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
13752
13753 PR target/60941
13754 * config/sparc/sparc.md (ashlsi3_extend): Delete.
13755
13756 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
13757
13758 PR preprocessor/56540
13759 * config/i386/i386-c.c (ix86_target_macros): Define
13760 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
13761
13762 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13763
13764 * configure.ac (tga_func): Remove.
13765 (LIB_TLS_SPEC): Remove.
13766 * configure: Regenerate.
13767 * config.in: Regenerate.
13768 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
13769
13770 2014-04-25 Richard Biener <rguenther@suse.de>
13771
13772 PR ipa/60912
13773 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
13774 call stmt use/clobber sets during stmt walk instead of
13775 walking the possibly incomplete set of caller edges.
13776
13777 2014-04-25 Richard Biener <rguenther@suse.de>
13778
13779 PR ipa/60911
13780 * passes.c (apply_ipa_transforms): Inline into only caller ...
13781 (execute_one_pass): ... here. Properly bring in function
13782 bodies for nodes we want to apply IPA transforms to.
13783
13784 2014-04-24 Cong Hou <congh@google.com>
13785
13786 PR tree-optimization/60896
13787 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
13788 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
13789 (vect_mark_pattern_stmts): Set the def type of all statements in
13790 PATTERN_DEF_SEQ as vect_internal_def.
13791
13792 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13793
13794 * doc/extend.texi (PowerPC Built-in Functions): Document new
13795 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
13796 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
13797
13798 * config/rs6000/predicates.md (const_0_to_3_operand): New
13799 predicate to match 0..3 integer constants.
13800
13801 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
13802 to support adding miscellaneous builtin functions.
13803 (BU_DFP_MISC_2): Likewise.
13804 (BU_P7_MISC_1): Likewise.
13805 (BU_P7_MISC_2): Likewise.
13806 (BU_P8V_MISC_3): Likewise.
13807 (BU_MISC_1): Likewise.
13808 (BU_MISC_2): Likewise.
13809 (DIVWE): Add extended divide builtin functions.
13810 (DIVWEO): Likewise.
13811 (DIVWEU): Likewise.
13812 (DIVWEUO): Likewise.
13813 (DIVDE): Likewise.
13814 (DIVDEO): Likewise.
13815 (DIVDEU): Likewise.
13816 (DIVDEUO): Likewise.
13817 (DXEX): Add decimal floating-point builtin functions.
13818 (DXEXQ): Likewise.
13819 (DDEDPD): Likewise.
13820 (DDEDPDQ): Likewise.
13821 (DENBCD): Likewise.
13822 (DENBCDQ): Likewise.
13823 (DIEX): Likewise.
13824 (DIEXQ): Likewise.
13825 (DSCLI): Likewise.
13826 (DSCLIQ): Likewise.
13827 (DSCRI): Likewise.
13828 (DSCRIQ): Likewise.
13829 (CDTBCD): Add new BCD builtin functions.
13830 (CBCDTD): Likewise.
13831 (ADDG6S): Likewise.
13832 (BCDADD): Likewise.
13833 (BCDADD_LT): Likewise.
13834 (BCDADD_EQ): Likewise.
13835 (BCDADD_GT): Likewise.
13836 (BCDADD_OV): Likewise.
13837 (BCDSUB): Likewise.
13838 (BCDSUB_LT): Likewise.
13839 (BCDSUB_EQ): Likewise.
13840 (BCDSUB_GT): Likewise.
13841 (BCDSUB_OV): Likewise.
13842 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
13843 (UNPACK_TD): Likewise.
13844 (PACK_TF): Likewise.
13845 (UNPACK_TF): Likewise.
13846 (UNPACK_TF_0): Likewise.
13847 (UNPACK_TF_1): Likewise.
13848 (PACK_V1TI): Likewise.
13849 (UNPACK_V1TI): Likewise.
13850
13851 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13852 support for decimal floating point builtin functions.
13853 (rs6000_expand_ternop_builtin): Add checks for the new builtin
13854 functions that take constant arguments.
13855 (rs6000_invalid_builtin): Add decimal floating point builtin support.
13856 (rs6000_init_builtins): Setup long double, _Decimal64, and
13857 _Decimal128 types for new builtin functions.
13858 (builtin_function_type): Set the unsigned flags appropriately for
13859 the new builtin functions.
13860 (rs6000_opt_masks): Add support for decimal floating point builtin
13861 functions.
13862
13863 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
13864 floating point builtin functions.
13865 (RS6000_BTM_COMMON): Likewise.
13866 (RS6000_BTI_long_double): Likewise.
13867 (RS6000_BTI_dfloat64): Likewise.
13868 (RS6000_BTI_dfloat128): Likewise.
13869 (long_double_type_internal_node): Likewise.
13870 (dfloat64_type_internal_node): Likewise.
13871 (dfloat128_type_internal_node): Likewise.
13872
13873 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
13874 2.07 bcd arithmetic instructions.
13875 (UNSPEC_BCDSUB): Likewise.
13876 (UNSPEC_BCD_OVERFLOW): Likewise.
13877 (UNSPEC_BCD_ADD_SUB): Likewise.
13878 (bcd_add_sub): Likewise.
13879 (BCD_TEST): Likewise.
13880 (bcd<bcd_add_sub>): Likewise.
13881 (bcd<bcd_add_sub>_test): Likewise.
13882 (bcd<bcd_add_sub>_test2): Likewise.
13883 (bcd<bcd_add_sub>_<code>): Likewise.
13884 (peephole2 for combined bcd ops): Likewise.
13885
13886 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
13887 decimal floating point builtin functions.
13888 (UNSPEC_DENBCD): Likewise.
13889 (UNSPEC_DXEX): Likewise.
13890 (UNSPEC_DIEX): Likewise.
13891 (UNSPEC_DSCLI): Likewise.
13892 (UNSPEC_DSCRI): Likewise.
13893 (D64_D128): Likewise.
13894 (dfp_suffix): Likewise.
13895 (dfp_ddedpd_<mode>): Likewise.
13896 (dfp_denbcd_<mode>): Likewise.
13897 (dfp_dxex_<mode>): Likewise.
13898 (dfp_diex_<mode>): Likewise.
13899 (dfp_dscli_<mode>): Likewise.
13900 (dfp_dscri_<mode>): Likewise.
13901
13902 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
13903 builtin functions.
13904 (UNSPEC_CDTBCD): Likewise.
13905 (UNSPEC_CBCDTD): Likewise.
13906 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
13907 (UNSPEC_DIVEO): Likewise.
13908 (UNSPEC_DIVEU): Likewise.
13909 (UNSPEC_DIVEUO): Likewise.
13910 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
13911 pack/unpack 128-bit types.
13912 (UNSPEC_PACK_128BIT): Likewise.
13913 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
13914 (udiv<mode>3): Use idiv_ldiv mode attribute.
13915 (div<mode>3): Likewise.
13916 (addg6s): Add new BCD builtin functions.
13917 (cdtbcd): Likewise.
13918 (cbcdtd): Likewise.
13919 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
13920 (div_extend): Likewise.
13921 (div<div_extend>_<mode>"): Likewise.
13922 (FP128_64): Add support for new builtin functions to pack/unpack
13923 128-bit types.
13924 (unpack<mode>): Likewise.
13925 (unpacktf_0): Likewise.
13926 (unpacktf_1): Likewise.
13927 (unpack<mode>_dm): Likewise.
13928 (unpack<mode>_nodm): Likewise.
13929 (pack<mode>): Likewise.
13930 (unpackv1ti): Likewise.
13931 (packv1ti): Likewise.
13932
13933 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
13934
13935 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
13936 is disabled.
13937
13938 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13939
13940 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
13941 * gimplify.c (omp_is_private): Change last argument's type to int.
13942 Only diagnose lastprivate if the simd argument is 1, only diagnose
13943 linear if the simd argument is 2.
13944 (gimplify_omp_for): Adjust omp_is_private callers. When adding
13945 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
13946 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
13947 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
13948 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
13949 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13950 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
13951 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13952 * tree-nested.c (convert_nonlocal_omp_clauses,
13953 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
13954
13955 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
13956
13957 PR target/60822
13958 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
13959 operand 1.
13960
13961 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
13962
13963 * flag-types.h (enum ivar_visibility): Add.
13964
13965 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
13966
13967 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
13968 function * argument.
13969
13970 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
13971
13972 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
13973
13974 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13975 Tom de Vries <tom@codesourcery.com>
13976
13977 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
13978 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
13979 reg-note.
13980 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
13981 * emit-rtl.c (try_split): Same.
13982
13983 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13984 Tom de Vries <tom@codesourcery.com>
13985
13986 * common.opt (fuse-caller-save): New option.
13987
13988 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
13989
13990 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
13991 elements for big-endian.
13992
13993 2014-04-24 Richard Biener <rguenther@suse.de>
13994
13995 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
13996 during TER and instead use the sepops interface for expanding
13997 non-GIMPLE_SINGLE_RHS.
13998
13999 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14000
14001 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
14002 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
14003
14004 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14005
14006 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
14007 assembler 64-bit option.
14008 * configure: Regenerate.
14009
14010 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14011
14012 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14013 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14014 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14015 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14016 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14017
14018 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14019
14020 * config/aarch64/aarch64-builtins.c
14021 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14022 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14023 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14024 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14025 builtins.
14026 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14027 (Vrevsuff): New mode attribute.
14028
14029 2014-04-24 Terry Guo <terry.guo@arm.com>
14030
14031 * config/arm/arm.h (machine_function): Define variable
14032 after_arm_reorg here.
14033 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14034 (arm_split_constant): Update the way to access variable
14035 after_arm_reorg.
14036 (arm_reorg): Ditto.
14037 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14038
14039 2014-04-23 Tom de Vries <tom@codesourcery.com>
14040
14041 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14042
14043 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14044
14045 * is-a.h: Update comments to reflect the following changes to the
14046 "pointerness" of the API, making the template parameter match the
14047 return type, allowing use of is-a.h with typedefs of pointers.
14048 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14049 that the return type matches the parameter to the is_a_helper.
14050 (as_a): Likewise.
14051 (dyn_cast): Likewise.
14052
14053 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14054 pointer from the is-a.h API.
14055
14056 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14057 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14058 is-a.h API.
14059 (is_a_helper <varpool_node>::test): Likewise, convert to...
14060 (is_a_helper <varpool_node *>::test): ...this.
14061
14062 (varpool_first_variable): Update for removal of implicit pointer
14063 from the is-a.h API.
14064 (varpool_next_variable): Likewise.
14065 (varpool_first_static_initializer): Likewise.
14066 (varpool_next_static_initializer): Likewise.
14067 (varpool_first_defined_variable): Likewise.
14068 (varpool_next_defined_variable): Likewise.
14069 (cgraph_first_defined_function): Likewise.
14070 (cgraph_next_defined_function): Likewise.
14071 (cgraph_first_function): Likewise.
14072 (cgraph_next_function): Likewise.
14073 (cgraph_first_function_with_gimple_body): Likewise.
14074 (cgraph_next_function_with_gimple_body): Likewise.
14075 (cgraph_alias_target): Likewise.
14076 (varpool_alias_target): Likewise.
14077 (cgraph_function_or_thunk_node): Likewise.
14078 (varpool_variable_node): Likewise.
14079 (symtab_real_symbol_p): Likewise.
14080 * cgraphunit.c (referred_to_p): Likewise.
14081 (analyze_functions): Likewise.
14082 (handle_alias_pairs): Likewise.
14083 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14084 * gimple-ssa.h (gimple_vuse_op): Likewise.
14085 (gimple_vdef_op): Likewise.
14086 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14087 * gimple.c (gimple_build_asm_1): Likewise.
14088 (gimple_build_try): Likewise.
14089 (gimple_build_resx): Likewise.
14090 (gimple_build_eh_dispatch): Likewise.
14091 (gimple_build_omp_for): Likewise.
14092 (gimple_omp_for_set_clauses): Likewise.
14093
14094 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14095 (is_a_helper <gimple_statement_asm *>::test): ...this.
14096 (is_a_helper <gimple_statement_bind>::test): Convert to...
14097 (is_a_helper <gimple_statement_bind *>::test): ...this.
14098 (is_a_helper <gimple_statement_call>::test): Convert to...
14099 (is_a_helper <gimple_statement_call *>::test): ...this.
14100 (is_a_helper <gimple_statement_catch>::test): Convert to...
14101 (is_a_helper <gimple_statement_catch *>::test): ...this.
14102 (is_a_helper <gimple_statement_resx>::test): Convert to...
14103 (is_a_helper <gimple_statement_resx *>::test): ...this.
14104 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14105 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14106 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14107 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14108 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14109 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14110 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14111 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14112 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14113 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14114 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14115 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14116 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14117 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14118 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14119 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14120 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14121 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14122 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14123 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14124 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14125 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14126 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14127 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14128 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14129 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14130 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14131 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14132 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14133 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14134 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14135 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14136 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14137 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14138 (is_a_helper <gimple_statement_phi>::test): Convert to...
14139 (is_a_helper <gimple_statement_phi *>::test): ...this.
14140 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14141 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14142 (is_a_helper <gimple_statement_try>::test): Convert to...
14143 (is_a_helper <gimple_statement_try *>::test): ...this.
14144 (is_a_helper <gimple_statement_wce>::test): Convert to...
14145 (is_a_helper <gimple_statement_wce *>::test): ...this.
14146 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14147 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14148 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14149 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14150 (is_a_helper <const gimple_statement_call>::test): Convert to...
14151 (is_a_helper <const gimple_statement_call *>::test): ...this.
14152 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14153 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14154 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14155 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14156 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14157 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14158 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14159 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14160 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14161 Convert to...
14162 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14163 ...this.
14164 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14165 Convert to...
14166 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14167 ...this.
14168 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14169 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14170 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14171 to...
14172 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14173 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14174 to...
14175 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14176 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14177 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14178 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14179 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14180 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14181 to...
14182 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14183 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14184 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14185 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14186 to...
14187 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14188 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14189 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14190 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14191 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14192 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14193 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14194 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14195 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14196 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14197 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14198 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14199 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14200 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14201 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14202 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14203 to...
14204 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14205 ...this.
14206 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14207 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14208
14209 (gimple_use_ops): Update for removal of implicit pointer from the
14210 is-a.h API.
14211 (gimple_set_use_ops): Likewise.
14212 (gimple_vuse): Likewise.
14213 (gimple_vdef): Likewise.
14214 (gimple_vuse_ptr): Likewise.
14215 (gimple_vdef_ptr): Likewise.
14216 (gimple_set_vuse): Likewise.
14217 (gimple_set_vdef): Likewise.
14218 (gimple_omp_return_set_lhs): Likewise.
14219 (gimple_omp_return_lhs): Likewise.
14220 (gimple_omp_return_lhs_ptr): Likewise.
14221 (gimple_call_fntype): Likewise.
14222 (gimple_call_set_fntype): Likewise.
14223 (gimple_call_set_internal_fn): Likewise.
14224 (gimple_call_use_set): Likewise.
14225 (gimple_call_clobber_set): Likewise.
14226 (gimple_bind_vars): Likewise.
14227 (gimple_bind_set_vars): Likewise.
14228 (gimple_bind_body_ptr): Likewise.
14229 (gimple_bind_set_body): Likewise.
14230 (gimple_bind_add_stmt): Likewise.
14231 (gimple_bind_block): Likewise.
14232 (gimple_bind_set_block): Likewise.
14233 (gimple_asm_ninputs): Likewise.
14234 (gimple_asm_noutputs): Likewise.
14235 (gimple_asm_nclobbers): Likewise.
14236 (gimple_asm_nlabels): Likewise.
14237 (gimple_asm_input_op): Likewise.
14238 (gimple_asm_input_op_ptr): Likewise.
14239 (gimple_asm_output_op): Likewise.
14240 (gimple_asm_output_op_ptr): Likewise.
14241 (gimple_asm_set_output_op): Likewise.
14242 (gimple_asm_clobber_op): Likewise.
14243 (gimple_asm_set_clobber_op): Likewise.
14244 (gimple_asm_label_op): Likewise.
14245 (gimple_asm_set_label_op): Likewise.
14246 (gimple_asm_string): Likewise.
14247 (gimple_catch_types): Likewise.
14248 (gimple_catch_types_ptr): Likewise.
14249 (gimple_catch_handler_ptr): Likewise.
14250 (gimple_catch_set_types): Likewise.
14251 (gimple_catch_set_handler): Likewise.
14252 (gimple_eh_filter_types): Likewise.
14253 (gimple_eh_filter_types_ptr): Likewise.
14254 (gimple_eh_filter_failure_ptr): Likewise.
14255 (gimple_eh_filter_set_types): Likewise.
14256 (gimple_eh_filter_set_failure): Likewise.
14257 (gimple_eh_must_not_throw_fndecl): Likewise.
14258 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14259 (gimple_eh_else_n_body_ptr): Likewise.
14260 (gimple_eh_else_e_body_ptr): Likewise.
14261 (gimple_eh_else_set_n_body): Likewise.
14262 (gimple_eh_else_set_e_body): Likewise.
14263 (gimple_try_eval_ptr): Likewise.
14264 (gimple_try_cleanup_ptr): Likewise.
14265 (gimple_try_set_eval): Likewise.
14266 (gimple_try_set_cleanup): Likewise.
14267 (gimple_wce_cleanup_ptr): Likewise.
14268 (gimple_wce_set_cleanup): Likewise.
14269 (gimple_phi_capacity): Likewise.
14270 (gimple_phi_num_args): Likewise.
14271 (gimple_phi_result): Likewise.
14272 (gimple_phi_result_ptr): Likewise.
14273 (gimple_phi_set_result): Likewise.
14274 (gimple_phi_arg): Likewise.
14275 (gimple_phi_set_arg): Likewise.
14276 (gimple_resx_region): Likewise.
14277 (gimple_resx_set_region): Likewise.
14278 (gimple_eh_dispatch_region): Likewise.
14279 (gimple_eh_dispatch_set_region): Likewise.
14280 (gimple_omp_critical_name): Likewise.
14281 (gimple_omp_critical_name_ptr): Likewise.
14282 (gimple_omp_critical_set_name): Likewise.
14283 (gimple_omp_for_clauses): Likewise.
14284 (gimple_omp_for_clauses_ptr): Likewise.
14285 (gimple_omp_for_set_clauses): Likewise.
14286 (gimple_omp_for_collapse): Likewise.
14287 (gimple_omp_for_index): Likewise.
14288 (gimple_omp_for_index_ptr): Likewise.
14289 (gimple_omp_for_set_index): Likewise.
14290 (gimple_omp_for_initial): Likewise.
14291 (gimple_omp_for_initial_ptr): Likewise.
14292 (gimple_omp_for_set_initial): Likewise.
14293 (gimple_omp_for_final): Likewise.
14294 (gimple_omp_for_final_ptr): Likewise.
14295 (gimple_omp_for_set_final): Likewise.
14296 (gimple_omp_for_incr): Likewise.
14297 (gimple_omp_for_incr_ptr): Likewise.
14298 (gimple_omp_for_set_incr): Likewise.
14299 (gimple_omp_for_pre_body_ptr): Likewise.
14300 (gimple_omp_for_set_pre_body): Likewise.
14301 (gimple_omp_parallel_clauses): Likewise.
14302 (gimple_omp_parallel_clauses_ptr): Likewise.
14303 (gimple_omp_parallel_set_clauses): Likewise.
14304 (gimple_omp_parallel_child_fn): Likewise.
14305 (gimple_omp_parallel_child_fn_ptr): Likewise.
14306 (gimple_omp_parallel_set_child_fn): Likewise.
14307 (gimple_omp_parallel_data_arg): Likewise.
14308 (gimple_omp_parallel_data_arg_ptr): Likewise.
14309 (gimple_omp_parallel_set_data_arg): Likewise.
14310 (gimple_omp_task_clauses): Likewise.
14311 (gimple_omp_task_clauses_ptr): Likewise.
14312 (gimple_omp_task_set_clauses): Likewise.
14313 (gimple_omp_task_child_fn): Likewise.
14314 (gimple_omp_task_child_fn_ptr): Likewise.
14315 (gimple_omp_task_set_child_fn): Likewise.
14316 (gimple_omp_task_data_arg): Likewise.
14317 (gimple_omp_task_data_arg_ptr): Likewise.
14318 (gimple_omp_task_set_data_arg): Likewise.
14319 (gimple_omp_taskreg_clauses): Likewise.
14320 (gimple_omp_taskreg_clauses_ptr): Likewise.
14321 (gimple_omp_taskreg_set_clauses): Likewise.
14322 (gimple_omp_taskreg_child_fn): Likewise.
14323 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14324 (gimple_omp_taskreg_set_child_fn): Likewise.
14325 (gimple_omp_taskreg_data_arg): Likewise.
14326 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14327 (gimple_omp_taskreg_set_data_arg): Likewise.
14328 (gimple_omp_task_copy_fn): Likewise.
14329 (gimple_omp_task_copy_fn_ptr): Likewise.
14330 (gimple_omp_task_set_copy_fn): Likewise.
14331 (gimple_omp_task_arg_size): Likewise.
14332 (gimple_omp_task_arg_size_ptr): Likewise.
14333 (gimple_omp_task_set_arg_size): Likewise.
14334 (gimple_omp_task_arg_align): Likewise.
14335 (gimple_omp_task_arg_align_ptr): Likewise.
14336 (gimple_omp_task_set_arg_align): Likewise.
14337 (gimple_omp_single_clauses): Likewise.
14338 (gimple_omp_single_clauses_ptr): Likewise.
14339 (gimple_omp_single_set_clauses): Likewise.
14340 (gimple_omp_target_clauses): Likewise.
14341 (gimple_omp_target_clauses_ptr): Likewise.
14342 (gimple_omp_target_set_clauses): Likewise.
14343 (gimple_omp_target_child_fn): Likewise.
14344 (gimple_omp_target_child_fn_ptr): Likewise.
14345 (gimple_omp_target_set_child_fn): Likewise.
14346 (gimple_omp_target_data_arg): Likewise.
14347 (gimple_omp_target_data_arg_ptr): Likewise.
14348 (gimple_omp_target_set_data_arg): Likewise.
14349 (gimple_omp_teams_clauses): Likewise.
14350 (gimple_omp_teams_clauses_ptr): Likewise.
14351 (gimple_omp_teams_set_clauses): Likewise.
14352 (gimple_omp_sections_clauses): Likewise.
14353 (gimple_omp_sections_clauses_ptr): Likewise.
14354 (gimple_omp_sections_set_clauses): Likewise.
14355 (gimple_omp_sections_control): Likewise.
14356 (gimple_omp_sections_control_ptr): Likewise.
14357 (gimple_omp_sections_set_control): Likewise.
14358 (gimple_omp_for_set_cond): Likewise.
14359 (gimple_omp_for_cond): Likewise.
14360 (gimple_omp_atomic_store_set_val): Likewise.
14361 (gimple_omp_atomic_store_val): Likewise.
14362 (gimple_omp_atomic_store_val_ptr): Likewise.
14363 (gimple_omp_atomic_load_set_lhs): Likewise.
14364 (gimple_omp_atomic_load_lhs): Likewise.
14365 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14366 (gimple_omp_atomic_load_set_rhs): Likewise.
14367 (gimple_omp_atomic_load_rhs): Likewise.
14368 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14369 (gimple_omp_continue_control_def): Likewise.
14370 (gimple_omp_continue_control_def_ptr): Likewise.
14371 (gimple_omp_continue_set_control_def): Likewise.
14372 (gimple_omp_continue_control_use): Likewise.
14373 (gimple_omp_continue_control_use_ptr): Likewise.
14374 (gimple_omp_continue_set_control_use): Likewise.
14375 (gimple_transaction_body_ptr): Likewise.
14376 (gimple_transaction_label): Likewise.
14377 (gimple_transaction_label_ptr): Likewise.
14378 (gimple_transaction_set_body): Likewise.
14379 (gimple_transaction_set_label): Likewise.
14380
14381 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14382 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14383 * ipa-ref.c (ipa_record_reference): Likewise.
14384 * ipa-reference.c (analyze_function): Likewise.
14385 (ipa_reference_write_optimization_summary): Likewise.
14386 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14387 (address_taken_from_non_vtable_p): Likewise.
14388 (comdat_can_be_unshared_p_1): Likewise.
14389 * lto-cgraph.c (lto_output_ref): Likewise.
14390 (add_references): Likewise.
14391 (compute_ltrans_boundary): Likewise.
14392 (output_symtab): Likewise.
14393 (input_ref): Likewise.
14394 (input_cgraph_1): Likewise.
14395 (output_cgraph_opt_summary): Likewise.
14396 * lto-streamer-out.c (lto_output): Likewise.
14397 (output_symbol_p): Likewise.
14398 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14399 (lsei_start_function_in_partition): Likewise.
14400 (lsei_next_variable_in_partition): Likewise.
14401 (lsei_start_variable_in_partition): Likewise.
14402 * symtab.c (insert_to_assembler_name_hash): Likewise.
14403 (unlink_from_assembler_name_hash): Likewise.
14404 (symtab_unregister_node): Likewise.
14405 (symtab_remove_node): Likewise.
14406 (dump_symtab_node): Likewise.
14407 (verify_symtab_base): Likewise.
14408 (verify_symtab_node): Likewise.
14409 (symtab_make_decl_local): Likewise.
14410 (symtab_alias_ultimate_target): Likewise.
14411 (symtab_resolve_alias): Likewise.
14412 (symtab_get_symbol_partitioning_class): Likewise.
14413 * tree-phinodes.c (allocate_phi_node): Likewise.
14414 (reserve_phi_args_for_new_edge): Likewise.
14415 (remove_phi_args): Likewise.
14416 * varpool.c (varpool_node_for_asm): Likewise.
14417 (varpool_remove_unreferenced_decls): Likewise.
14418
14419 2014-04-23 Jeff Law <law@redhat.com>
14420
14421 PR tree-optimization/60902
14422 * tree-ssa-threadedge.c
14423 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14424 invalidate outputs from statements that do not produce useful
14425 outputs for threading.
14426
14427 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14428
14429 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14430 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14431 machine descriptions for Stack Smashing Protector.
14432
14433 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14434
14435 * aarch64.md (<optab>_rol<mode>3): New pattern.
14436 (<optab>_rolsi3_uxtw): Likewise.
14437 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14438
14439 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14440
14441 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14442 (arm_cortex_a12_tune): Likewise.
14443
14444 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14445
14446 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14447
14448 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14449
14450 * config/arm/arm.md (arm_rev16si2): New pattern.
14451 (arm_rev16si2_alt): Likewise.
14452 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14453
14454 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14455
14456 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14457 (rev16<mode>2_alt): Likewise.
14458 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14459 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14460 (aarch_rev16_shleft_mask_imm_p): Likewise.
14461 (aarch_rev16_p_1): Likewise.
14462 (aarch_rev16_p): Likewise.
14463 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14464 (aarch_rev16_shright_mask_imm_p): Likewise.
14465 (aarch_rev16_shleft_mask_imm_p): Likewise.
14466
14467 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14468
14469 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14470 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14471 rev cost.
14472 (cortex_a53_extra_costs): Likewise.
14473 (cortex_a57_extra_costs): Likewise.
14474 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14475 (cortexa7_extra_costs): Likewise.
14476 (cortexa8_extra_costs): Likewise.
14477 (cortexa12_extra_costs): Likewise.
14478 (cortexa15_extra_costs): Likewise.
14479 (v7m_extra_costs): Likewise.
14480 (arm_new_rtx_costs): Handle BSWAP.
14481
14482 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14483
14484 * config/arm/arm.c (cortexa8_extra_costs): New table.
14485 (arm_cortex_a8_tune): New tuning struct.
14486 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14487
14488 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14489
14490 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14491
14492 2014-04-23 Richard Biener <rguenther@suse.de>
14493
14494 * Makefile.in (OBJS): Remove loop-unswitch.o.
14495 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14496 * passes.def (pass_rtl_unswitch): Likewise.
14497 * loop-init.c (gate_rtl_unswitch): Likewise.
14498 (rtl_unswitch): Likewise.
14499 (pass_data_rtl_unswitch): Likewise.
14500 (pass_rtl_unswitch): Likewise.
14501 (make_pass_rtl_unswitch): Likewise.
14502 * rtl.h (reversed_condition): Likewise.
14503 (compare_and_jump_seq): Likewise.
14504 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14505 and make static.
14506 * loop-unroll.c (compare_and_jump_seq): Likewise.
14507
14508 2014-04-23 Richard Biener <rguenther@suse.de>
14509
14510 PR tree-optimization/60903
14511 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14512 commented code block.
14513 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14514 loop flags to newly created BBs and edges.
14515
14516 2014-04-23 Nick Clifton <nickc@redhat.com>
14517
14518 * config/msp430/msp430.c (msp430_handle_option): Move function
14519 to msp430-common.c
14520 (msp430_option_override): Simplify mcu and mcpu option handling.
14521 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14522 support for -mhwmult command line option.
14523 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14524 -mhwmult command line option.
14525 (msp430_hwmult_enabled): Delete.
14526 (msp43o_output_labelref): Add support for -mhwmult command line option.
14527 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14528 (umulsidi3): Likewise.
14529 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14530 (mcpu, mlarge, msmall): Likewise.
14531 (mhwmult): New option.
14532 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14533 prototype.
14534 (msp430_is_f5_mcu): Remove prototype.
14535 (msp430_use_f5_series_hwmult): Add prototype.
14536 * config/msp430/msp430-opts.h: New file.
14537 * common/config/msp430: New directory.
14538 * common/config/msp430/msp430-common.c: New file.
14539 * config.gcc (msp430): Remove target_has_targetm_common.
14540 * doc/invoke.texi: Document -mhwmult command line option.
14541
14542 2014-04-23 Nick Clifton <nickc@redhat.com>
14543
14544 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14545 default-manifest.o if it can be found in the search path.
14546 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14547
14548 2014-04-23 Terry Guo <terry.guo@arm.com>
14549
14550 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14551
14552 2014-04-23 Richard Biener <rguenther@suse.de>
14553
14554 PR middle-end/60895
14555 * tree-inline.c (declare_return_variable): Use mark_addressable.
14556
14557 2014-04-23 Richard Biener <rguenther@suse.de>
14558
14559 PR middle-end/60891
14560 * loop-init.c (loop_optimizer_init): Make sure to apply
14561 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14562
14563 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14564
14565 PR sanitizer/60275
14566 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14567 New options.
14568 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14569 if flag_sanitize_undefined_trap_on_error.
14570 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14571 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14572 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14573 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14574 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14575 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14576 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14577 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14578 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14579 * ubsan.c (ubsan_instrument_unreachable): Return
14580 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14581 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14582 if flag_sanitize_undefined_trap_on_error and
14583 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14584 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14585 instrument_bool_enum_load): Emit __builtin_trap () if
14586 flag_sanitize_undefined_trap_on_error and
14587 __builtin_handle_*_abort () if !flag_sanitize_recover.
14588 * doc/invoke.texi (-fsanitize-recover,
14589 -fsanitize-undefined-trap-on-error): Document.
14590
14591 2014-04-22 Christian Bruel <christian.bruel@st.com>
14592
14593 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14594 Force immediates to SImode.
14595
14596 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14597
14598 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14599 (lroundsfsi2): New.
14600 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
14601 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
14602 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
14603 (nios2_fpu_insn): Add entry for round.
14604 (N2FPU_NO_ERRNO_P): Define.
14605 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
14606 flag_errno_math.
14607 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
14608
14609 2014-04-22 Richard Henderson <rth@redhat.com>
14610
14611 * config/aarch64/aarch64 (addti3, subti3): New expanders.
14612 (add<GPI>3_compare0): Remove leading * from name.
14613 (add<GPI>3_carryin): Likewise.
14614 (sub<GPI>3_compare0): Likewise.
14615 (sub<GPI>3_carryin): Likewise.
14616 (<su_optab>mulditi3): New expander.
14617 (multi3): New expander.
14618 (madd<GPI>): Remove leading * from name.
14619
14620 2014-04-22 Martin Jambor <mjambor@suse.cz>
14621
14622 * cgraphclones.c (cgraph_function_versioning): Copy
14623 ipa_transforms_to_apply instead of asserting it is empty.
14624
14625 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
14626
14627 PR target/60868
14628 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
14629 on count_exp to get mode.
14630
14631 2014-04-22 Andrew Pinski <apinski@cavium.com>
14632
14633 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14634 Handle TLS for ILP32.
14635 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
14636 (tlsie_small_<mode>): this and handle PTR.
14637 (tlsie_small_sidi): New pattern.
14638 (tlsle_small): Change to an expand to handle ILP32.
14639 (tlsle_small_<mode>): New pattern.
14640 (tlsdesc_small): Rename to ...
14641 (tlsdesc_small_<mode>): this and handle PTR.
14642
14643 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14644
14645 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
14646
14647 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14648
14649 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14650 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
14651 (aarch64_types_signed_poly_qualifiers): Likewise.
14652 (aarch64_types_unsigned_signed_qualifiers): Likewise.
14653 (aarch64_types_poly_signed_qualifiers): Likewise.
14654 (TYPES_REINTERP_SS): Type macro added.
14655 (TYPES_REINTERP_SU): Likewise.
14656 (TYPES_REINTERP_SP): Likewise.
14657 (TYPES_REINTERP_US): Likewise.
14658 (TYPES_REINTERP_PS): Likewise.
14659 (aarch64_fold_builtin): New expression folding added.
14660 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
14661 Declarations removed.
14662 (REINTERP_SS): Declarations added.
14663 (REINTERP_US): Likewise.
14664 (REINTERP_PS): Likewise.
14665 (REINTERP_SU): Likewise.
14666 (REINTERP_SP): Likewise.
14667 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
14668 (vreinterpretq_p8_f64): Likewise.
14669 (vreinterpret_p16_f64): Likewise.
14670 (vreinterpretq_p16_f64): Likewise.
14671 (vreinterpret_f32_f64): Likewise.
14672 (vreinterpretq_f32_f64): Likewise.
14673 (vreinterpret_f64_f32): Likewise.
14674 (vreinterpret_f64_p8): Likewise.
14675 (vreinterpret_f64_p16): Likewise.
14676 (vreinterpret_f64_s8): Likewise.
14677 (vreinterpret_f64_s16): Likewise.
14678 (vreinterpret_f64_s32): Likewise.
14679 (vreinterpret_f64_s64): Likewise.
14680 (vreinterpret_f64_u8): Likewise.
14681 (vreinterpret_f64_u16): Likewise.
14682 (vreinterpret_f64_u32): Likewise.
14683 (vreinterpret_f64_u64): Likewise.
14684 (vreinterpretq_f64_f32): Likewise.
14685 (vreinterpretq_f64_p8): Likewise.
14686 (vreinterpretq_f64_p16): Likewise.
14687 (vreinterpretq_f64_s8): Likewise.
14688 (vreinterpretq_f64_s16): Likewise.
14689 (vreinterpretq_f64_s32): Likewise.
14690 (vreinterpretq_f64_s64): Likewise.
14691 (vreinterpretq_f64_u8): Likewise.
14692 (vreinterpretq_f64_u16): Likewise.
14693 (vreinterpretq_f64_u32): Likewise.
14694 (vreinterpretq_f64_u64): Likewise.
14695 (vreinterpret_s64_f64): Likewise.
14696 (vreinterpretq_s64_f64): Likewise.
14697 (vreinterpret_u64_f64): Likewise.
14698 (vreinterpretq_u64_f64): Likewise.
14699 (vreinterpret_s8_f64): Likewise.
14700 (vreinterpretq_s8_f64): Likewise.
14701 (vreinterpret_s16_f64): Likewise.
14702 (vreinterpretq_s16_f64): Likewise.
14703 (vreinterpret_s32_f64): Likewise.
14704 (vreinterpretq_s32_f64): Likewise.
14705 (vreinterpret_u8_f64): Likewise.
14706 (vreinterpretq_u8_f64): Likewise.
14707 (vreinterpret_u16_f64): Likewise.
14708 (vreinterpretq_u16_f64): Likewise.
14709 (vreinterpret_u32_f64): Likewise.
14710 (vreinterpretq_u32_f64): Likewise.
14711
14712 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14713
14714 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14715 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
14716 (vreinterpret_p8_s8): Likewise.
14717 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
14718 (vreinterpret_p8_s16): Likewise.
14719 (vreinterpret_p8_s32): Likewise.
14720 (vreinterpret_p8_s64): Likewise.
14721 (vreinterpret_p8_f32): Likewise.
14722 (vreinterpret_p8_u8): Likewise.
14723 (vreinterpret_p8_u16): Likewise.
14724 (vreinterpret_p8_u32): Likewise.
14725 (vreinterpret_p8_u64): Likewise.
14726 (vreinterpret_p8_p16): Likewise.
14727 (vreinterpretq_p8_s8): Likewise.
14728 (vreinterpretq_p8_s16): Likewise.
14729 (vreinterpretq_p8_s32): Likewise.
14730 (vreinterpretq_p8_s64): Likewise.
14731 (vreinterpretq_p8_f32): Likewise.
14732 (vreinterpretq_p8_u8): Likewise.
14733 (vreinterpretq_p8_u16): Likewise.
14734 (vreinterpretq_p8_u32): Likewise.
14735 (vreinterpretq_p8_u64): Likewise.
14736 (vreinterpretq_p8_p16): Likewise.
14737 (vreinterpret_p16_s8): Likewise.
14738 (vreinterpret_p16_s16): Likewise.
14739 (vreinterpret_p16_s32): Likewise.
14740 (vreinterpret_p16_s64): Likewise.
14741 (vreinterpret_p16_f32): Likewise.
14742 (vreinterpret_p16_u8): Likewise.
14743 (vreinterpret_p16_u16): Likewise.
14744 (vreinterpret_p16_u32): Likewise.
14745 (vreinterpret_p16_u64): Likewise.
14746 (vreinterpret_p16_p8): Likewise.
14747 (vreinterpretq_p16_s8): Likewise.
14748 (vreinterpretq_p16_s16): Likewise.
14749 (vreinterpretq_p16_s32): Likewise.
14750 (vreinterpretq_p16_s64): Likewise.
14751 (vreinterpretq_p16_f32): Likewise.
14752 (vreinterpretq_p16_u8): Likewise.
14753 (vreinterpretq_p16_u16): Likewise.
14754 (vreinterpretq_p16_u32): Likewise.
14755 (vreinterpretq_p16_u64): Likewise.
14756 (vreinterpretq_p16_p8): Likewise.
14757 (vreinterpret_f32_s8): Likewise.
14758 (vreinterpret_f32_s16): Likewise.
14759 (vreinterpret_f32_s32): Likewise.
14760 (vreinterpret_f32_s64): Likewise.
14761 (vreinterpret_f32_u8): Likewise.
14762 (vreinterpret_f32_u16): Likewise.
14763 (vreinterpret_f32_u32): Likewise.
14764 (vreinterpret_f32_u64): Likewise.
14765 (vreinterpret_f32_p8): Likewise.
14766 (vreinterpret_f32_p16): Likewise.
14767 (vreinterpretq_f32_s8): Likewise.
14768 (vreinterpretq_f32_s16): Likewise.
14769 (vreinterpretq_f32_s32): Likewise.
14770 (vreinterpretq_f32_s64): Likewise.
14771 (vreinterpretq_f32_u8): Likewise.
14772 (vreinterpretq_f32_u16): Likewise.
14773 (vreinterpretq_f32_u32): Likewise.
14774 (vreinterpretq_f32_u64): Likewise.
14775 (vreinterpretq_f32_p8): Likewise.
14776 (vreinterpretq_f32_p16): Likewise.
14777 (vreinterpret_s64_s8): Likewise.
14778 (vreinterpret_s64_s16): Likewise.
14779 (vreinterpret_s64_s32): Likewise.
14780 (vreinterpret_s64_f32): Likewise.
14781 (vreinterpret_s64_u8): Likewise.
14782 (vreinterpret_s64_u16): Likewise.
14783 (vreinterpret_s64_u32): Likewise.
14784 (vreinterpret_s64_u64): Likewise.
14785 (vreinterpret_s64_p8): Likewise.
14786 (vreinterpret_s64_p16): Likewise.
14787 (vreinterpretq_s64_s8): Likewise.
14788 (vreinterpretq_s64_s16): Likewise.
14789 (vreinterpretq_s64_s32): Likewise.
14790 (vreinterpretq_s64_f32): Likewise.
14791 (vreinterpretq_s64_u8): Likewise.
14792 (vreinterpretq_s64_u16): Likewise.
14793 (vreinterpretq_s64_u32): Likewise.
14794 (vreinterpretq_s64_u64): Likewise.
14795 (vreinterpretq_s64_p8): Likewise.
14796 (vreinterpretq_s64_p16): Likewise.
14797 (vreinterpret_u64_s8): Likewise.
14798 (vreinterpret_u64_s16): Likewise.
14799 (vreinterpret_u64_s32): Likewise.
14800 (vreinterpret_u64_s64): Likewise.
14801 (vreinterpret_u64_f32): Likewise.
14802 (vreinterpret_u64_u8): Likewise.
14803 (vreinterpret_u64_u16): Likewise.
14804 (vreinterpret_u64_u32): Likewise.
14805 (vreinterpret_u64_p8): Likewise.
14806 (vreinterpret_u64_p16): Likewise.
14807 (vreinterpretq_u64_s8): Likewise.
14808 (vreinterpretq_u64_s16): Likewise.
14809 (vreinterpretq_u64_s32): Likewise.
14810 (vreinterpretq_u64_s64): Likewise.
14811 (vreinterpretq_u64_f32): Likewise.
14812 (vreinterpretq_u64_u8): Likewise.
14813 (vreinterpretq_u64_u16): Likewise.
14814 (vreinterpretq_u64_u32): Likewise.
14815 (vreinterpretq_u64_p8): Likewise.
14816 (vreinterpretq_u64_p16): Likewise.
14817 (vreinterpret_s8_s16): Likewise.
14818 (vreinterpret_s8_s32): Likewise.
14819 (vreinterpret_s8_s64): Likewise.
14820 (vreinterpret_s8_f32): Likewise.
14821 (vreinterpret_s8_u8): Likewise.
14822 (vreinterpret_s8_u16): Likewise.
14823 (vreinterpret_s8_u32): Likewise.
14824 (vreinterpret_s8_u64): Likewise.
14825 (vreinterpret_s8_p8): Likewise.
14826 (vreinterpret_s8_p16): Likewise.
14827 (vreinterpretq_s8_s16): Likewise.
14828 (vreinterpretq_s8_s32): Likewise.
14829 (vreinterpretq_s8_s64): Likewise.
14830 (vreinterpretq_s8_f32): Likewise.
14831 (vreinterpretq_s8_u8): Likewise.
14832 (vreinterpretq_s8_u16): Likewise.
14833 (vreinterpretq_s8_u32): Likewise.
14834 (vreinterpretq_s8_u64): Likewise.
14835 (vreinterpretq_s8_p8): Likewise.
14836 (vreinterpretq_s8_p16): Likewise.
14837 (vreinterpret_s16_s8): Likewise.
14838 (vreinterpret_s16_s32): Likewise.
14839 (vreinterpret_s16_s64): Likewise.
14840 (vreinterpret_s16_f32): Likewise.
14841 (vreinterpret_s16_u8): Likewise.
14842 (vreinterpret_s16_u16): Likewise.
14843 (vreinterpret_s16_u32): Likewise.
14844 (vreinterpret_s16_u64): Likewise.
14845 (vreinterpret_s16_p8): Likewise.
14846 (vreinterpret_s16_p16): Likewise.
14847 (vreinterpretq_s16_s8): Likewise.
14848 (vreinterpretq_s16_s32): Likewise.
14849 (vreinterpretq_s16_s64): Likewise.
14850 (vreinterpretq_s16_f32): Likewise.
14851 (vreinterpretq_s16_u8): Likewise.
14852 (vreinterpretq_s16_u16): Likewise.
14853 (vreinterpretq_s16_u32): Likewise.
14854 (vreinterpretq_s16_u64): Likewise.
14855 (vreinterpretq_s16_p8): Likewise.
14856 (vreinterpretq_s16_p16): Likewise.
14857 (vreinterpret_s32_s8): Likewise.
14858 (vreinterpret_s32_s16): Likewise.
14859 (vreinterpret_s32_s64): Likewise.
14860 (vreinterpret_s32_f32): Likewise.
14861 (vreinterpret_s32_u8): Likewise.
14862 (vreinterpret_s32_u16): Likewise.
14863 (vreinterpret_s32_u32): Likewise.
14864 (vreinterpret_s32_u64): Likewise.
14865 (vreinterpret_s32_p8): Likewise.
14866 (vreinterpret_s32_p16): Likewise.
14867 (vreinterpretq_s32_s8): Likewise.
14868 (vreinterpretq_s32_s16): Likewise.
14869 (vreinterpretq_s32_s64): Likewise.
14870 (vreinterpretq_s32_f32): Likewise.
14871 (vreinterpretq_s32_u8): Likewise.
14872 (vreinterpretq_s32_u16): Likewise.
14873 (vreinterpretq_s32_u32): Likewise.
14874 (vreinterpretq_s32_u64): Likewise.
14875 (vreinterpretq_s32_p8): Likewise.
14876 (vreinterpretq_s32_p16): Likewise.
14877 (vreinterpret_u8_s8): Likewise.
14878 (vreinterpret_u8_s16): Likewise.
14879 (vreinterpret_u8_s32): Likewise.
14880 (vreinterpret_u8_s64): Likewise.
14881 (vreinterpret_u8_f32): Likewise.
14882 (vreinterpret_u8_u16): Likewise.
14883 (vreinterpret_u8_u32): Likewise.
14884 (vreinterpret_u8_u64): Likewise.
14885 (vreinterpret_u8_p8): Likewise.
14886 (vreinterpret_u8_p16): Likewise.
14887 (vreinterpretq_u8_s8): Likewise.
14888 (vreinterpretq_u8_s16): Likewise.
14889 (vreinterpretq_u8_s32): Likewise.
14890 (vreinterpretq_u8_s64): Likewise.
14891 (vreinterpretq_u8_f32): Likewise.
14892 (vreinterpretq_u8_u16): Likewise.
14893 (vreinterpretq_u8_u32): Likewise.
14894 (vreinterpretq_u8_u64): Likewise.
14895 (vreinterpretq_u8_p8): Likewise.
14896 (vreinterpretq_u8_p16): Likewise.
14897 (vreinterpret_u16_s8): Likewise.
14898 (vreinterpret_u16_s16): Likewise.
14899 (vreinterpret_u16_s32): Likewise.
14900 (vreinterpret_u16_s64): Likewise.
14901 (vreinterpret_u16_f32): Likewise.
14902 (vreinterpret_u16_u8): Likewise.
14903 (vreinterpret_u16_u32): Likewise.
14904 (vreinterpret_u16_u64): Likewise.
14905 (vreinterpret_u16_p8): Likewise.
14906 (vreinterpret_u16_p16): Likewise.
14907 (vreinterpretq_u16_s8): Likewise.
14908 (vreinterpretq_u16_s16): Likewise.
14909 (vreinterpretq_u16_s32): Likewise.
14910 (vreinterpretq_u16_s64): Likewise.
14911 (vreinterpretq_u16_f32): Likewise.
14912 (vreinterpretq_u16_u8): Likewise.
14913 (vreinterpretq_u16_u32): Likewise.
14914 (vreinterpretq_u16_u64): Likewise.
14915 (vreinterpretq_u16_p8): Likewise.
14916 (vreinterpretq_u16_p16): Likewise.
14917 (vreinterpret_u32_s8): Likewise.
14918 (vreinterpret_u32_s16): Likewise.
14919 (vreinterpret_u32_s32): Likewise.
14920 (vreinterpret_u32_s64): Likewise.
14921 (vreinterpret_u32_f32): Likewise.
14922 (vreinterpret_u32_u8): Likewise.
14923 (vreinterpret_u32_u16): Likewise.
14924 (vreinterpret_u32_u64): Likewise.
14925 (vreinterpret_u32_p8): Likewise.
14926 (vreinterpret_u32_p16): Likewise.
14927 (vreinterpretq_u32_s8): Likewise.
14928 (vreinterpretq_u32_s16): Likewise.
14929 (vreinterpretq_u32_s32): Likewise.
14930 (vreinterpretq_u32_s64): Likewise.
14931 (vreinterpretq_u32_f32): Likewise.
14932 (vreinterpretq_u32_u8): Likewise.
14933 (vreinterpretq_u32_u16): Likewise.
14934 (vreinterpretq_u32_u64): Likewise.
14935 (vreinterpretq_u32_p8): Likewise.
14936 (vreinterpretq_u32_p16): Likewise.
14937
14938 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14939
14940 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
14941 Pattern extended.
14942 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
14943 (sqabs): Likewise.
14944 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
14945 (vqnegd_s64): Likewise.
14946 (vqabs_s64): Likewise.
14947 (vqabsd_s64): Likewise.
14948
14949 2014-04-22 Richard Henderson <rth@redhat.com>
14950
14951 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
14952 computation to the top of the loop.
14953
14954 2014-04-22 Renlin <renlin.li@arm.com>
14955 Jiong Wang <jiong.wang@arm.com>
14956
14957 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
14958 * config/aarch64/aarch64.c (aarch64_layout_frame)
14959 (aarch64_initial_elimination_offset): Likewise.
14960
14961 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
14962
14963 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
14964 Fix indentation.
14965
14966 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
14967
14968 * machmode.h (bitwise_mode_for_mode): Declare.
14969 * stor-layout.h (bitwise_type_for_mode): Likewise.
14970 * stor-layout.c (bitwise_mode_for_mode): New function.
14971 (bitwise_type_for_mode): Likewise.
14972 * builtins.c (fold_builtin_memory_op): Use it instead of
14973 int_mode_for_mode and build_nonstandard_integer_type.
14974
14975 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14976
14977 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
14978 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
14979 (*-*-solaris2*): Simplify.
14980 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
14981 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
14982 *-*-solaris2.9* handling.
14983
14984 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
14985 as bug.
14986 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
14987 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
14988 handling, simplify.
14989 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
14990 * configure: Regenerate.
14991
14992 * config/i386/sol2-9.h: Remove.
14993
14994 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
14995 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
14996 Remove Solaris 9 references.
14997
14998 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
14999
15000 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
15001 (floatuns<GPI:mode><GPF:mode>2): Remove.
15002 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
15003 and floatuns conversions.
15004 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
15005 and floatuns conversions.
15006 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
15007 (w1,w2): New mode attributes for inequal width conversions.
15008
15009 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15010
15011 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15012 the output asm format.
15013
15014 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15015
15016 * config/aarch64/aarch64-simd.md
15017 (aarch64_cm<optab>di): Always split.
15018 (*aarch64_cm<optab>di): New.
15019 (aarch64_cmtstdi): Always split.
15020 (*aarch64_cmtstdi): New.
15021
15022 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15023
15024 PR tree-optimization/60823
15025 * omp-low.c (ipa_simd_modify_function_body): Go through
15026 all SSA_NAMEs and for those refering to vector arguments
15027 which are going to be replaced adjust SSA_NAME_VAR and,
15028 if it is a default definition, change it into a non-default
15029 definition assigned at the beginning of function from new_decl.
15030 (ipa_simd_modify_stmt_ops): Rewritten.
15031 * tree-dfa.c (set_ssa_default_def): When removing default def,
15032 check for NULL loc instead of NULL *loc.
15033
15034 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15035
15036 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15037 restrictions on core registers for DImode values in Thumb2.
15038
15039 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15040
15041 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15042 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15043
15044 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15045
15046 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15047 (*iordi_notzesidi_di): Likewise.
15048 (*iordi_notsesidi_di): Likewise.
15049
15050 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15051
15052 * config/arm/arm-protos.h (tune_params): New struct members.
15053 * config/arm/arm.c: Initialise tune_params per processor.
15054 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15055 for speed, based on new tune_params.
15056
15057 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15058
15059 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15060 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15061 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15062 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15063 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15064 (vrnda_f64): Likewise.
15065 (vrndi_f64): Likewise.
15066 (vrndm_f64): Likewise.
15067 (vrndn_f64): Likewise.
15068 (vrndp_f64): Likewise.
15069 (vrndx_f64): Likewise.
15070
15071 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15072
15073 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15074 GET_MODE_SIZE argument is enum machine_mode.
15075
15076 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15077
15078 PR target/60910
15079 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15080 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15081
15082 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15083
15084 PR middle-end/60281
15085 * asan.c (asan_emit_stack_protection): Force the base to align to
15086 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15087 appropriate bits if STRICT_ALIGNMENT.
15088 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15089 when asan is on.
15090 (expand_used_vars): Leave a space in the stack frame for alignment
15091 if STRICT_ALIGNMENT.
15092
15093 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15094
15095 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15096 than a gimple.
15097 (gimple_store_p): Likewise.
15098 (gimple_assign_load_p): Likewise.
15099 (gimple_assign_cast_p): Likewise.
15100 (gimple_clobber_p): Likewise.
15101
15102 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15103 rather than a gimple.
15104 (gimple_assign_cast_p): Likewise.
15105
15106 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15107
15108 PR target/60735
15109 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15110 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15111
15112 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15113 more debug information for E500 if -mdebug=reg.
15114
15115 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15116
15117 PR target/60909
15118 * config/i386/i386.c (ix86_expand_builtin)
15119 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15120 register for target RTX.
15121 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15122
15123 2014-04-18 Cong Hou <congh@google.com>
15124
15125 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15126 the widen-mult pattern by handling two operands with different sizes,
15127 and operands whose size is smaller than half of the result type.
15128
15129 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15130
15131 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15132 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15133 (do_estimate_edge_time): Compute it.
15134 * ipa-inline.c (want_inline_small_function_p): Bypass
15135 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15136
15137 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15138
15139 * ipa-inline.c (spec_rem): New static variable.
15140 (dump_overall_stats): New function.
15141 (dump_inline_stats): New function.
15142
15143 2014-04-18 Richard Henderson <rth@redhat.com>
15144
15145 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15146 to GET_MODE_SIZE, not a reg_class_t.
15147
15148 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15149
15150 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15151 (vsx_xxmrglw_<mode>): Likewise.
15152
15153 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15154
15155 PR target/60876
15156 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15157 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15158 (rs6000_init_hard_regno_mode_ok): Likewise.
15159
15160 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15161
15162 * ipa-inline.c (inline_small_functions): Account only non-cold
15163 functions.
15164 * doc/invoke.texi (inline-unit-growth): Update documentation.
15165
15166 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15167
15168 * config/rs6000/rs6000.md (addti3, subti3): New.
15169
15170 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15171
15172 PR target/60863
15173 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15174 comment. Check optimize_insn_for_size_p instead of
15175 optimize_insn_for_speed_p.
15176
15177 2014-04-17 Martin Jambor <mjambor@suse.cz>
15178
15179 * gimple-iterator.c (gsi_start_edge): New function.
15180 * gimple-iterator.h (gsi_start_edge): Declare.
15181 * tree-sra.c (single_non_eh_succ): New function.
15182 (disqualify_ops_if_throwing_stmt): Renamed to
15183 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15184 having one non-EH successor BB.
15185 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15186 generate loads into replacements.
15187 (sra_modify_assign): Likewise and and also use the simple path for
15188 such statements.
15189 (sra_modify_function_body): Commit statements on edges.
15190
15191 2014-04-17 Richard Biener <rguenther@suse.de>
15192
15193 PR middle-end/60849
15194 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15195 comparison results and add clarifying comment.
15196
15197 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15198
15199 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15200 (blank_mode): Initialize it.
15201 (emit_mode_size_inline, emit_mode_nunits_inline,
15202 emit_mode_inner_inline): New functions.
15203 (emit_insn_modes_h): Call them and surround their output with
15204 #if GCC_VERSION >= 4001 ... #endif.
15205 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15206 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15207 mode_* arrays if the argument is __builtin_constant_p.
15208 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15209 is enum machine_mode.
15210
15211 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15212
15213 * passes.c (opt_pass::execute): Adjust.
15214 (pass_manager::execute_pass_mode_switching): Likewise.
15215 (early_local_passes::execute): Likewise.
15216 (execute_one_pass): Pass cfun to the pass's execute method.
15217 * tree-pass.h (opt_pass::execute): Add function * argument.
15218 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15219 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15220 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15221 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15222 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15223 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15224 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15225 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15226 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15227 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15228 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15229 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15230 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15231 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15232 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15233 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15234 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15235 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15236 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15237 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15238 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15239 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15240 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15241 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15242 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15243 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15244 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15245 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15246 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15247 Adjust.
15248
15249 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15250
15251 * passes.c (opt_pass::gate): Take function * argument.
15252 (gate_all_early_local_passes): Merge into
15253 (early_local_passes::gate): this.
15254 (gate_all_early_optimizations): Merge into
15255 (all_early_optimizations::gate): this.
15256 (gate_all_optimizations): Mege into
15257 (all_optimizations::gate): this.
15258 (gate_all_optimizations_g): Merge into
15259 (all_optimizations_g::gate): this.
15260 (gate_rest_of_compilation): Mege into
15261 (rest_of_compilation::gate): this.
15262 (gate_postreload): Merge into
15263 (postreload::gate): this.
15264 (dump_one_pass): Pass cfun to the pass's gate method.
15265 (execute_ipa_summary_passes): Likewise.
15266 (execute_one_pass): Likewise.
15267 (ipa_write_summaries_2): Likewise.
15268 (ipa_write_optimization_summaries_1): Likewise.
15269 (ipa_read_summaries_1): Likewise.
15270 (ipa_read_optimization_summaries_1): Likewise.
15271 (execute_ipa_stmt_fixups): Likewise.
15272 * tree-pass.h (opt_pass::gate): Add function * argument.
15273 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15274 combine-stack-adj.c, combine.c, compare-elim.c,
15275 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15276 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15277 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15278 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15279 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15280 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15281 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15282 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15283 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15284 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15285 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15286 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15287 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15288 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15289 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15290 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15291 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15292 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15293 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15294 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15295 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15296 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15297 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15298 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15299 var-tracking.c, vtable-verify.c, web.c: Adjust.
15300
15301 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15302
15303 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15304 * configure: Regenerate.
15305
15306 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15307
15308 * passes.c (dump_one_pass): don't check pass->has_gate.
15309 (execute_ipa_summary_passes): Likewise.
15310 (execute_one_pass): Likewise.
15311 (ipa_write_summaries_2): Likewise.
15312 (ipa_write_optimization_summaries_1): Likewise.
15313 (ipa_read_optimization_summaries_1): Likewise.
15314 (execute_ipa_stmt_fixups): Likewise.
15315 * tree-pass.h (pass_data::has_gate): Remove.
15316 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15317 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15318 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15319 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15320 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15321 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15322 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15323 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15324 gimple-low.c, gimple-ssa-isolate-paths.c,
15325 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15326 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15327 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15328 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15329 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15330 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15331 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15332 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15333 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15334 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15335 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15336 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15337 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15338 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15339 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15340 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15341 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15342 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15343 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15344 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15345 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15346 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15347 Adjust.
15348
15349 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15350
15351 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15352 declaration.
15353 * passes.c (pass_manager::register_dump_files_1): Merge into
15354 (pass_manager::register_dump_files): this, and remove its handling of
15355 properties since the pass always has the properties anyway.
15356 (pass_manager::pass_manager): Adjust.
15357
15358 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15359
15360 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15361 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15362 dealing with properties.
15363 (pass_manager::register_dump_files): Adjust.
15364
15365 2014-03-20 Mark Wielaard <mjw@redhat.com>
15366
15367 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15368 then represent the bound as normal constant value.
15369
15370 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15371
15372 PR target/60847
15373 Forward port from 4.8 branch
15374 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15375
15376 * config/i386/bmiintrin.h (_blsi_u32): New.
15377 (_blsi_u64): Ditto.
15378 (_blsr_u32): Ditto.
15379 (_blsr_u64): Ditto.
15380 (_blsmsk_u32): Ditto.
15381 (_blsmsk_u64): Ditto.
15382 (_tzcnt_u32): Ditto.
15383 (_tzcnt_u64): Ditto.
15384
15385 2014-04-17 Kito Cheng <kito@0xlab.org>
15386
15387 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15388
15389 2014-04-17 Richard Biener <rguenther@suse.de>
15390
15391 PR middle-end/60849
15392 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15393 boolean results for comparisons.
15394
15395 2014-04-17 Richard Biener <rguenther@suse.de>
15396
15397 PR tree-optimization/60836
15398 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15399 initial PHI args to be gimple values.
15400
15401 2014-04-17 Richard Biener <rguenther@suse.de>
15402
15403 PR tree-optimization/60841
15404 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15405 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15406 of stmts to SLP build.
15407 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15408 (vect_analyze_slp): Likewise.
15409 (vect_analyze_slp_instance): Likewise.
15410 (vect_build_slp_tree): Limit overall SLP tree growth.
15411 * tree-vectorizer.h (vect_analyze_data_refs,
15412 vect_analyze_slp): Adjust prototypes.
15413
15414 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15415
15416 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15417 Silvermont.
15418
15419 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15420
15421 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15422 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15423 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15424 for TARGET_SLOW_PSHUFB
15425
15426 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15427
15428 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15429 * config/i386/i386.c (intel_cost): Ditto.
15430
15431 2014-04-17 Joey Ye <joey.ye@arm.com>
15432
15433 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15434
15435 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15436
15437 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15438 with -fuse-profile.
15439
15440 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15441
15442 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15443 (type_all_derivations_known_p): New predicate.
15444 (type_all_ctors_visible_p): New predicate.
15445 (type_possibly_instantiated_p): New predicate.
15446 (get_odr_type): Compute all_derivations_known.
15447 (dump_odr_type): Dump the flag.
15448 (maybe_record_type): Cleanup.
15449 (record_target_from_binfo): Add bases_to_consider array;
15450 record bases for types w/o instances and skip CXX destructor.
15451 (possible_polymorphic_call_targets_1): Add bases_to_consider
15452 and consider_construction parameters; check if type may have instance.
15453 (get_polymorphic_call_info): Set maybe_in_construction to true
15454 when we know nothing.
15455 (record_targets_from_bases): Skip CXX destructors; they are
15456 never called for types in construction.
15457 (possible_polymorphic_call_targets): Do not record target when
15458 type may not have instance.
15459
15460 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15461
15462 PR ipa/60854
15463 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15464 external aliases alive, too.
15465
15466 2014-04-16 Andrew Pinski <apinski@cavium.com>
15467
15468 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15469 definition.
15470
15471 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15472
15473 * final.c (compute_alignments): Do not apply loop alignment to a block
15474 falling through to the exit.
15475
15476 2014-04-16 Catherine Moore <clm@codesourcery.com>
15477
15478 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15479 Adjust constraints for microMIPS store patterns.
15480
15481 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15482
15483 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15484
15485 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15486
15487 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15488 (append_use): Run at -O0.
15489 (append_vdef): Likewise.
15490 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15491 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15492
15493 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15494
15495 PR tree-optimization/60844
15496 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15497 (propagate_op_to_single_use, remove_visited_stmt_chain,
15498 linearize_expr, repropagate_negates, reassociate_bb): Use it
15499 instead of gsi_remove.
15500
15501 2014-04-16 Martin Jambor <mjambor@suse.cz>
15502
15503 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15504 ipa_transforms_to_apply.
15505 (cgraph_function_versioning): Assert that old_node has empty
15506 ipa_transforms_to_apply.
15507 * trans-mem.c (ipa_tm_create_version): Likewise.
15508 * tree-inline.c (tree_function_versioning): Do not duplicate
15509 ipa_transforms_to_apply.
15510
15511 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15512
15513 PR target/60817
15514 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15515 x86_64-*-* cases.
15516 Pass necessary as flags on 64-bit Solaris/x86.
15517 Use lowercase relocs for x86_64-*-*.
15518 * configure: Regenerate.
15519
15520 2014-04-15 Jan Hubicka <jh@suse.cz>
15521
15522 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15523 (maybe_record_node, likely_target_p): Use it.
15524
15525 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15526
15527 PR target/60839
15528 Revert following patch
15529
15530 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15531
15532 PR target/60735
15533 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15534 software floating point or no floating point registers, do not
15535 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15536 in GPRs that occurs after we tested for GPRs that would never be
15537 true.
15538
15539 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15540 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15541 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15542 specifically allow DDmode, since that does not use the SPE SIMD
15543 instructions.
15544
15545 2014-03-21 Mark Wielaard <mjw@redhat.com>
15546
15547 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15548 as unsigned or int depending on type and value used.
15549
15550 2014-04-15 Richard Biener <rguenther@suse.de>
15551
15552 PR rtl-optimization/56965
15553 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15554 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15555 ... here.
15556 * alias.c (true_dependence_1): Do not call
15557 nonoverlapping_component_refs_p.
15558 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15559 nonoverlapping_component_refs_p.
15560 (indirect_refs_may_alias_p): Likewise.
15561
15562 2014-04-15 Teresa Johnson <tejohnson@google.com>
15563
15564 * cfg.c (dump_bb_info): Fix flags check.
15565 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15566
15567 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15568
15569 PR rtl-optimization/60663
15570 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15571 avoid 0 cost.
15572
15573 2014-04-15 Richard Biener <rguenther@suse.de>
15574
15575 * lto-streamer.h (LTO_major_version): Bump to 4.
15576
15577 2014-04-15 Richard Biener <rguenther@suse.de>
15578
15579 * common.opt (lto_partition_model): New enum.
15580 (flto-partition=): Merge separate options with a single with argument,
15581 add -flto-partition=one support.
15582 * flag-types.h (enum lto_partition_model): Declare.
15583 * opts.c (finish_options): Remove duplicate -flto-partition=
15584 option check.
15585 * lto-wrapper.c (run_gcc): Adjust.
15586
15587 2014-04-15 Richard Biener <rguenther@suse.de>
15588
15589 * alias.c (ncr_compar): New function.
15590 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15591
15592 2014-04-15 Richard Biener <rguenther@suse.de>
15593
15594 * alias.c (record_component_aliases): Do not walk BINFOs.
15595
15596 2014-04-15 Richard Biener <rguenther@suse.de>
15597
15598 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15599 Add struct function argument and adjust.
15600 (find_func_aliases_for_call): Likewise.
15601 (find_func_aliases): Likewise.
15602 (find_func_clobbers): Likewise.
15603 (intra_create_variable_infos): Likewise.
15604 (compute_points_to_sets): Likewise.
15605 (ipa_pta_execute): Adjust. Do not push/pop cfun.
15606
15607 2014-04-15 Richard Biener <rguenther@suse.de>
15608
15609 * tree.c (iterative_hash_expr): Use enum tree_code_class
15610 to store TREE_CODE_CLASS.
15611 (tree_block): Likewise.
15612 (tree_set_block): Likewise.
15613 * tree.h (fold_build_pointer_plus_loc): Use
15614 convert_to_ptrofftype_loc.
15615
15616 2014-04-15 Jakub Jelinek <jakub@redhat.com>
15617
15618 PR plugins/59335
15619 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
15620 added in 4.9.
15621
15622 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
15623
15624 * cfgloop.h (struct loop): Move force_vectorize down.
15625 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
15626 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
15627 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
15628 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
15629 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
15630 * tree-core.h (enum annot_expr_kind): Add new kind values.
15631 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
15632 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
15633 kinds.
15634 * tree.def (ANNOTATE_EXPR): Tweak comment.
15635
15636 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15637
15638 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
15639 cxa_pure_virtual).
15640
15641 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
15642
15643 * tree.h (TYPE_IDENTIFIER): Declare.
15644 * tree.c (subrange_type_for_debug_p): Use it.
15645 * godump.c (go_format_type): Likewise.
15646 * dwarf2out.c (is_cxx_auto, modified_type_die,
15647 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
15648 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
15649
15650 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15651
15652 PR lto/60820
15653 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
15654
15655 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
15656
15657 * config/i386/i386.c (examine_argument): Return bool. Return true if
15658 parameter should be passed in memory.
15659 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
15660 (construct_container): Update calls to examine_argument.
15661 (function_arg_advance_64): Ditto.
15662 (return_in_memory_32): Merge with ix86_return_in_memory.
15663 (return_in_memory_64): Ditto.
15664 (return_in_memory_ms_64): Ditto.
15665
15666 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15667
15668 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
15669 * coverage.c (coverage_compute_profile_id): Handle externally visible
15670 symbols.
15671
15672 2014-04-14 Martin Jambor <mjambor@suse.cz>
15673
15674 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
15675 DECL_DISREGARD_INLINE_LIMITS functions.
15676
15677 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15678
15679 PR target/60827
15680 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
15681
15682 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15683
15684 PR target/60827
15685 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
15686 optimize_insn_for_speed_p instead of
15687 optimize_function_for_speed_p.
15688
15689 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
15690
15691 * doc/invoke.texi (free): Document AArch64.
15692
15693 2014-04-14 Richard Biener <rguenther@suse.de>
15694
15695 PR tree-optimization/60042
15696 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
15697 (insert_into_preds_of_block): Do not prevent PHI insertion
15698 for REFERENCE exprs here ...
15699 (eliminate_dom_walker::before_dom_children): ... but prevent
15700 their use here under similar conditions when applied to the
15701 IL after PRE optimizations.
15702
15703 2014-04-14 Richard Biener <rguenther@suse.de>
15704
15705 * passes.def: Move early points-to after early SRA.
15706
15707 2014-04-14 Richard Biener <rguenther@suse.de>
15708
15709 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
15710 check for which sign-changes we allow when forwarding
15711 a converted value into a switch.
15712
15713 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15714
15715 * stor-layout.c (place_field): Finalize non-constant offset for the
15716 field, if any.
15717
15718 2014-04-14 Richard Biener <rguenther@suse.de>
15719
15720 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
15721 as argument.
15722 (expand_switch_using_bit_tests_p): Likewise.
15723 (process_switch): Compute and pass on speed_p based on the
15724 switch stmt.
15725 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
15726 optimize_bb_for_speed_p.
15727
15728 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15729
15730 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
15731 * function.h (struct function): Rename has_force_vect_loops into
15732 has_force_vectorize_loops.
15733 * lto-streamer-in.c (input_cfg): Adjust for renaming.
15734 (input_struct_function_base): Likewise.
15735 * lto-streamer-out.c (output_cfg): Likewise.
15736 (output_struct_function_base): Likewise.
15737 * omp-low.c (expand_omp_simd): Likewise.
15738 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15739 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15740 (version_loop_for_if_conversion): Likewise.
15741 (tree_if_conversion): Likewise.
15742 (main_tree_if_conversion): Likewise.
15743 (gate_tree_if_conversion): Likewise.
15744 * tree-inline.c (copy_loops): Likewise.
15745 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
15746 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
15747 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15748 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
15749 * tree-vectorizer.c (vectorize_loops): Likewise.
15750 * tree-vectorizer.h (unlimited_cost_model): Likewise.
15751
15752 2014-04-14 Richard Biener <rguenther@suse.de>
15753
15754 PR lto/60720
15755 * lto-streamer-out.c (wrap_refs): New function.
15756 (lto_output): Wrap symbol references in global initializes in
15757 type-preserving MEM_REFs.
15758
15759 2014-04-14 Christian Bruel <christian.bruel@st.com>
15760
15761 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
15762
15763 2014-04-14 Christian Bruel <christian.bruel@st.com>
15764
15765 * config/sh/sh.md (setmemqi): New expand pattern.
15766 * config/sh/sh.h (CLEAR_RATIO): Define.
15767 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
15768 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
15769
15770 2014-04-14 Richard Biener <rguenther@suse.de>
15771
15772 PR middle-end/55022
15773 * fold-const.c (negate_expr_p): Don't negate directional rounding
15774 division.
15775 (fold_negate_expr): Likewise.
15776
15777 2014-04-14 Richard Biener <rguenther@suse.de>
15778
15779 PR tree-optimization/59817
15780 PR tree-optimization/60453
15781 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
15782 recursion to catch all CHRECs in the scalar evolution and restrict
15783 the predicate for the remains appropriately.
15784
15785 2014-04-12 Catherine Moore <clm@codesourcery.com>
15786
15787 * config/mips/constraints.md: Add new register constraint "kb".
15788 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
15789 (*movhi_internal): Likewise.
15790 (*movqi_internal): Likewise.
15791 * config/mips/mips.h (M16_STORE_REGS): New register class.
15792 (REG_CLASS_NAMES): Add M16_STORE_REGS.
15793 (REG_CLASS_CONTENTS): Likewise.
15794 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
15795
15796 2014-04-11 Tobias Burnus <burnus@net-b.de>
15797
15798 PR c/60194
15799 * doc/invoke.texi (-Wformat-signedness): Document it.
15800 (Wformat=2): Mention that this enables -Wformat-signedness.
15801
15802 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15803
15804 * common/config/epiphany/epiphany-common.c
15805 (epiphany_option_optimization_table): Enable section anchors by
15806 default at -O1 or higher.
15807 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
15808 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
15809 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
15810 carries no extra cost.
15811 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
15812 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
15813 * config/epiphany/predicates.md (memclob_operand): New predicate.
15814 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
15815 Use memclob_operand predicate and X constraint for operand 3.
15816
15817 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15818
15819 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
15820 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
15821 its operands.
15822
15823 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15824
15825 PR rtl-optimization/60651
15826 * mode-switching.c (optimize_mode_switching): Make sure to emit
15827 sets of a lower numbered entity before sets of a higher numbered
15828 entity to a mode of the same or lower priority.
15829 When creating a seginfo for a basic block that starts with a code
15830 label, move the insertion point past the code label.
15831 (new_seginfo): Document and enforce requirement that
15832 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
15833 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
15834 * doc/tm.texi: Regenerate.
15835
15836 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
15837
15838 PR target/60811
15839 * config/arc/arc.c (arc_save_restore): Fix assert typo.
15840
15841 2013-04-11 Jakub Jelinek <jakub@redhat.com>
15842
15843 * BASE-VER: Set to 4.10.0.
15844
15845 2014-04-11 Tobias Burnus <burnus@net-b.de>
15846
15847 PR other/59055
15848 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
15849 * doc/gcc.texi (Service): Update description in the @menu
15850 * doc/invoke.texi (Option Summary): Remove misplaced and
15851 duplicated @menu.
15852
15853 2014-04-11 Steve Ellcey <sellcey@mips.com>
15854 Jakub Jelinek <jakub@redhat.com>
15855
15856 PR middle-end/60556
15857 * expr.c (convert_move): Use emit_store_flag_force instead of
15858 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
15859 argument to it.
15860
15861 2014-04-11 Richard Biener <rguenther@suse.de>
15862
15863 PR middle-end/60797
15864 * varasm.c (assemble_alias): Avoid endless error reporting
15865 recursion by setting TREE_ASM_WRITTEN.
15866
15867 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15868
15869 * config/s390/s390.md: Add a splitter for NOT rtx.
15870
15871 2014-04-11 Jakub Jelinek <jakub@redhat.com>
15872
15873 PR rtl-optimization/60663
15874 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
15875
15876 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
15877 Jakub Jelinek <jakub@redhat.com>
15878
15879 PR lto/60567
15880 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
15881 flag from decl_node to node.
15882
15883 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15884
15885 PR debug/60655
15886 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
15887 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
15888 ameliorating the cases where it can be.
15889
15890 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
15891
15892 Revert
15893 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15894
15895 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15896 (loadsync_<mode>): Change mode.
15897 (load_quadpti, store_quadpti): New.
15898 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15899 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15900 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
15901
15902 2014-04-09 Cong Hou <congh@google.com>
15903
15904 PR testsuite/60773
15905 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
15906 documentation.
15907
15908 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15909
15910 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
15911 instead of vnor to exploit possible fusion opportunity in the
15912 future.
15913 (altivec_expand_vec_perm_const_le): Likewise.
15914
15915 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15916
15917 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15918 (loadsync_<mode>): Change mode.
15919 (load_quadpti, store_quadpti): New.
15920 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15921 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15922
15923 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
15924
15925 PR target/60763
15926 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
15927 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
15928 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
15929
15930 2014-04-08 Richard Biener <rguenther@suse.de>
15931
15932 PR middle-end/60706
15933 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
15934 a 64bit widest int print double-int similar to on HWI64 hosts.
15935
15936 2014-04-08 Richard Biener <rguenther@suse.de>
15937
15938 PR tree-optimization/60785
15939 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
15940 default defs properly.
15941
15942 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
15943
15944 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
15945 (Weffc++): Likewise.
15946
15947 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
15948
15949 * ipa-devirt.c (maybe_record_node): When node is not recorded,
15950 set completep to false rather than true.
15951
15952 2014-04-07 Douglas B Rupp <rupp@adacore.com>
15953
15954 PR target/60504
15955 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
15956 ARM_TARGET2_DWARF_FORMAT.
15957
15958 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
15959
15960 PR target/60609
15961 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
15962 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
15963 ADDR_DIFF_VEC.
15964
15965 2014-04-07 Richard Biener <rguenther@suse.de>
15966
15967 PR tree-optimization/60766
15968 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
15969 (may_eliminate_iv): Convert cand_value_at result to desired type.
15970
15971 2014-04-07 Jason Merrill <jason@redhat.com>
15972
15973 PR c++/60731
15974 * common.opt (-fno-gnu-unique): Add.
15975 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
15976
15977 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15978
15979 * haifa-sched.c: Fix outdated function reference and minor
15980 grammar errors in introductory comment.
15981
15982 2014-04-07 Richard Biener <rguenther@suse.de>
15983
15984 PR middle-end/60750
15985 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
15986 for noreturn calls.
15987 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
15988
15989 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
15990
15991 PR debug/55794
15992 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
15993 size accounting for thunks.
15994 (pa_asm_output_mi_thunk): Use final_start_function() and
15995 final_end_function() to output function start and end directives.
15996
15997 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15998
15999 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
16000 device specific ISA/ feature information. Remove short_sp and
16001 errata_skip ds. Add avr_device_specific_features enum to have device
16002 specific info.
16003 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
16004 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
16005 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
16006 updated device specific info.
16007 * config/avr/avr-mcus.def: Merge device specific details to
16008 dev_attribute field.
16009 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16010 errata_skip.
16011 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16012 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16013 assembler if RMW isa supported by current device.
16014 * config/avr/genmultilib.awk: Update as device info structure changed.
16015 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16016
16017 2014-04-04 Cong Hou <congh@google.com>
16018
16019 PR tree-optimization/60656
16020 * tree-vect-stmts.c (supportable_widening_operation):
16021 Fix a bug that elements in a vector with vect_used_by_reduction
16022 property are incorrectly reordered when the operation on it is not
16023 consistant with the one in reduction operation.
16024
16025 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16026
16027 PR rtl-optimization/60155
16028 * gcse.c (record_set_data): New function.
16029 (single_set_gcse): New function.
16030 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16031 (hoist_code): Likewise.
16032 (get_pressure_class_and_nregs): Likewise.
16033
16034 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16035
16036 * explow.c (probe_stack_range): Emit a final optimization blockage.
16037
16038 2014-04-04 Anthony Green <green@moxielogic.com>
16039
16040 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16041 typos.
16042
16043 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16044
16045 PR ipa/59626
16046 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16047 flags are set only during streaming.
16048 * ipa.c (process_references, walk_polymorphic_call_targets,
16049 symtab_remove_unreachable_nodes): Drop bodies of always inline
16050 after early inlining.
16051 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16052
16053 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16054 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16055
16056 PR debug/60655
16057 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16058 containing a NOT.
16059
16060 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16061
16062 PR bootstrap/60743
16063 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16064 duration.
16065 (cortex_a53_fdivd): Likewise.
16066
16067 2014-04-04 Martin Jambor <mjambor@suse.cz>
16068
16069 PR ipa/60640
16070 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16071 Adjust all callers.
16072 * cgraph.c (clone_of_p): Also return true if thunks match.
16073 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16074 cgraph_function_or_thunk_node and an obsolete comment.
16075 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16076 file.
16077 (build_function_decl_skip_args): Likewise.
16078 (set_new_clone_decl_and_node_flags): New function.
16079 (duplicate_thunk_for_node): Likewise.
16080 (redirect_edge_duplicating_thunks): Likewise.
16081 (cgraph_clone_node): New parameter args_to_skip, pass it to
16082 redirect_edge_duplicating_thunks which is called instead of
16083 cgraph_redirect_edge_callee.
16084 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16085 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16086
16087 2014-04-04 Jeff Law <law@redhat.com>
16088
16089 PR target/60657
16090 * config/arm/predicates.md (const_int_I_operand): New predicate.
16091 (const_int_M_operand): Similarly.
16092 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16093 const_int_operand.
16094 (insv_t2, extv_reg, extzv_t2): Likewise.
16095 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16096 (pop_multiple_with_writeback_and_return): Likewise.
16097 (vfp_pop_multiple_with_writeback): Likewise
16098
16099 2014-04-04 Richard Biener <rguenther@suse.de>
16100
16101 PR ipa/60746
16102 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16103 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16104 non-GIMPLE_LABELs.
16105 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16106 * gimplify.c (gimple_add_tmp_var_fn): New function.
16107 * gimple-expr.h (create_tmp_reg_fn): Declare.
16108 * gimple-expr.c (create_tmp_reg_fn): New function.
16109 * gimple-low.c (record_vars_into): Don't change cfun.
16110 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16111 code generation without cfun.
16112
16113 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16114
16115 PR bootstrap/60719
16116 * Makefile.in (install-driver): Fix shell scripting.
16117
16118 2014-04-03 Cong Hou <congh@google.com>
16119
16120 PR tree-optimization/60505
16121 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16122 threshold of number of iterations below which no vectorization
16123 will be done.
16124 * tree-vect-loop.c (new_loop_vec_info):
16125 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16126 * tree-vect-loop.c (vect_analyze_loop_operations):
16127 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16128 * tree-vect-loop.c (vect_transform_loop):
16129 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16130 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16131 of iterations of the loop and see if we should build the epilogue.
16132
16133 2014-04-03 Richard Biener <rguenther@suse.de>
16134
16135 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16136 (streamer_tree_cache_create): Adjust.
16137 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16138 to allow optional nodes array.
16139 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16140 (streamer_tree_cache_append): Likewise.
16141 (streamer_tree_cache_create): Create nodes array optionally
16142 as specified by parameter.
16143 * lto-streamer-out.c (create_output_block): Avoid maintaining
16144 the node array in the writer cache.
16145 (DFS_write_tree): Remove assertion.
16146 (produce_asm_for_decls): Free the out decl state hash table early.
16147 * lto-streamer-in.c (lto_data_in_create): Adjust for
16148 streamer_tree_cache_create prototype change.
16149
16150 2014-04-03 Richard Biener <rguenther@suse.de>
16151
16152 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16153 set TREE_CHAIN to NULL_TREE.
16154
16155 2014-04-03 Richard Biener <rguenther@suse.de>
16156
16157 PR tree-optimization/60740
16158 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16159 over all GIMPLE_COND operands.
16160
16161 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16162
16163 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16164 (Weffc++): Remove Scott's numbering, merge lists and reference
16165 Wnon-virtual-dtor.
16166
16167 2014-04-03 Nick Clifton <nickc@redhat.com>
16168
16169 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16170 properly.
16171
16172 2014-04-03 Martin Jambor <mjambor@suse.cz>
16173
16174 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16175 mention gcc_unreachable before failing.
16176 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16177 removed symbols.
16178
16179 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16180
16181 PR ipa/60659
16182 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16183 inconsistent code and instead mark the context inconsistent.
16184 (possible_polymorphic_call_targets): For inconsistent contexts
16185 return empty complete list.
16186
16187 2014-04-02 Anthony Green <green@moxielogic.com>
16188
16189 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16190 (extendqisi2, extendhisi2): Define.
16191 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16192 (WCHAR_TYPE): Change to unsigned int.
16193
16194 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16195
16196 PR tree-optimization/60733
16197 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16198 insertion point for PHI candidates to be the end of the feeding
16199 block for the PHI argument.
16200
16201 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16202
16203 PR rtl-optimization/60650
16204 * lra-constraints.c (process_alt_operands): Decrease reject for
16205 earlyclobber matching.
16206
16207 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16208
16209 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16210
16211 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16212
16213 * config/spu/spu.c (pad_bb): Do not crash when the last
16214 insn is CODE_FOR_blockage.
16215
16216 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16217
16218 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16219 lies outside the target mode.
16220
16221 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16222
16223 PR target/60735
16224 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16225 software floating point or no floating point registers, do not
16226 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16227 in GPRs that occurs after we tested for GPRs that would never be
16228 true.
16229
16230 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16231 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16232 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16233 specifically allow DDmode, since that does not use the SPE SIMD
16234 instructions.
16235
16236 2014-04-02 Richard Biener <rguenther@suse.de>
16237
16238 PR middle-end/60729
16239 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16240 MODE_INTs. Properly use negv_optab.
16241 (expand_abs): Likewise.
16242
16243 2014-04-02 Richard Biener <rguenther@suse.de>
16244
16245 PR bootstrap/60719
16246 * Makefile.in (install-driver): Guard extra installs with special
16247 names properly.
16248
16249 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16250
16251 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16252 Document vec_vgbbd.
16253
16254 2014-04-01 Richard Henderson <rth@redhat.com>
16255
16256 PR target/60704
16257 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16258 alternative enabled before register allocation.
16259
16260 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16261
16262 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16263 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16264 typo.
16265 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16266 (nios2_got_address): Update nios2_large_got_address call site.
16267 (nios2_delegitimize_address): New function.
16268 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16269 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16270 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16271
16272 2014-04-01 Martin Husemann <martin@duskware.de>
16273
16274 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16275 for -mabi=32.
16276
16277 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16278
16279 PR rtl-optimization/60604
16280 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16281 check from register_operand.
16282 (register_operand): Redefine in terms of general_operand.
16283 (nonmemory_operand): Use register_operand for the non-constant cases.
16284
16285 2014-04-01 Richard Biener <rguenther@suse.de>
16286
16287 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16288
16289 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16290
16291 * doc/invoke.texi (mapp-regs): Clarify.
16292
16293 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16294
16295 * config/i386/avx512fintrin.h (__v32hi): Define type.
16296 (__v64qi): Likewise.
16297 (_mm512_set1_epi8): Define.
16298 (_mm512_set1_epi16): Define.
16299 (_mm512_set4_epi32): Define.
16300 (_mm512_set4_epi64): Define.
16301 (_mm512_set4_pd): Define.
16302 (_mm512_set4_ps): Define.
16303 (_mm512_setr4_epi64): Define.
16304 (_mm512_setr4_epi32): Define.
16305 (_mm512_setr4_pd): Define.
16306 (_mm512_setr4_ps): Define.
16307 (_mm512_setzero_epi32): Define.
16308
16309 2014-03-31 Martin Jambor <mjambor@suse.cz>
16310
16311 PR middle-end/60647
16312 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16313 callsite_arguments_match_p. Updated all callers. Also check types of
16314 corresponding formal parameters and actual arguments.
16315 (not_all_callers_have_enough_arguments_p) Renamed to
16316 some_callers_have_mismatched_arguments_p.
16317
16318 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16319
16320 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16321
16322 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16323
16324 PR target/60034
16325 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16326 section anchor.
16327
16328 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16329
16330 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16331 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16332 Split out
16333 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16334 Use FMAMODE_NOVF512 mode iterator.
16335 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16336 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16337 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16338 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16339 Split out
16340 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16341 Use VF_128_256 mode iterator.
16342 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16343 Ditto.
16344
16345 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16346
16347 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16348 static chain if needed.
16349
16350 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16351
16352 PR target/60697
16353 * lra-constraints.c (index_part_to_reg): New.
16354 (process_address): Use it.
16355
16356 2014-03-27 Jeff Law <law@redhat.com>
16357 Jakub Jelinek <jakub@redhat.com>
16358
16359 PR target/60648
16360 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16361 gen_rtx_{PLUS,MULT} to build up the address expression.
16362
16363 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16364 creating non-canonical RTL.
16365
16366 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16367
16368 PR ipa/60243
16369 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16370 functions; reorganize to make cheap checks first.
16371 (inline_small_functions): Do not estimate growth when dumping;
16372 it is expensive.
16373 * ipa-inline.h (inline_summary): Add min_size.
16374 (growth_likely_positive): New function.
16375 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16376 (set_cond_stmt_execution_predicate): Cleanup.
16377 (estimate_edge_size_and_time): Compute min_size.
16378 (estimate_calls_size_and_time): Likewise.
16379 (estimate_node_size_and_time): Likewise.
16380 (inline_update_overall_summary): Update min_size.
16381 (do_estimate_edge_time): Likewise.
16382 (do_estimate_edge_size): Update.
16383 (do_estimate_edge_hints): Update.
16384 (growth_likely_positive): New function.
16385
16386 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16387
16388 PR target/60693
16389 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16390 also if addr has VOIDmode.
16391
16392 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16393
16394 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16395 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16396 Declare extern.
16397 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16398 instructions as well as AdvancedSIMD loads.
16399
16400 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16401
16402 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16403 Use crypto_aese type.
16404 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16405 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16406 crypto_aese, crypto_aesmc. Move to types.md.
16407 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16408 crypto_aesmc.
16409 * config/arm/iterators.md (crypto_type): Likewise.
16410
16411 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16412
16413 * cgraph.c: Include expr.h and tree-dfa.h.
16414 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16415 remove LHS.
16416
16417 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16418
16419 PR target/60675
16420 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16421 regs from checking multi-reg pseudos.
16422
16423 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16424
16425 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16426
16427 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16428
16429 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16430 if it would clobber the stack pointer, even temporarily.
16431
16432 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16433
16434 * mode-switching.c: Make small adjustments to the top comment.
16435
16436 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16437
16438 * config/rs6000/constraints.md (wD constraint): New constraint to
16439 match the constant integer to get the top DImode/DFmode out of a
16440 vector in a VSX register.
16441
16442 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16443 match the constant integer to get the top DImode/DFmode out of a
16444 vector in a VSX register.
16445
16446 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16447 for ISA 2.07.
16448
16449 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16450 vbpermq builtins.
16451
16452 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16453 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16454
16455 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16456 Optimize vec_extract of 64-bit values, where the value being
16457 extracted is in the top word, where we can use scalar
16458 instructions. Add direct move and store support. Combine the big
16459 endian/little endian vector select load support into a single insn.
16460 (vsx_extract_<mode>_internal1): Likewise.
16461 (vsx_extract_<mode>_internal2): Likewise.
16462 (vsx_extract_<mode>_load): Likewise.
16463 (vsx_extract_<mode>_store): Likewise.
16464 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16465 combined into vsx_extract_<mode>_load.
16466 (vsx_extract_<mode>_one_le): Likewise.
16467
16468 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16469 define the top 64-bit vector element.
16470
16471 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16472 constraint.
16473
16474 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16475 Document vec_vbpermq builtin.
16476
16477 PR target/60672
16478 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16479 enable use of xxsldwi and xxpermdi builtin functions.
16480 (vec_xxpermdi): Likewise.
16481
16482 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16483 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16484
16485 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16486
16487 PR rtl-optimization/60650
16488 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16489 first_p. Use it.
16490 (find_spills_for): New.
16491 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16492 Spill all pseudos on the second iteration.
16493
16494 2014-03-27 Marek Polacek <polacek@redhat.com>
16495
16496 PR c/50347
16497 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16498 types.
16499
16500 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16501
16502 * config/s390/s390.c (s390_can_use_return_insn): Check for
16503 call-saved FPRs on 31 bit.
16504
16505 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16506
16507 PR middle-end/60682
16508 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16509 if they need regimplification, just drop them instead of
16510 calling gimple_regimplify_operands on them.
16511
16512 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16513
16514 PR target/60580
16515 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16516 (aarch64_frame_pointer_required): Adjust logic.
16517 (aarch64_can_eliminate): Adjust logic.
16518 (aarch64_override_options_after_change): Adjust logic.
16519
16520 2014-03-27 Dehao Chen <dehao@google.com>
16521
16522 * ipa-inline.c (early_inliner): Update node's inline info.
16523
16524 2014-03-26 Dehao Chen <dehao@google.com>
16525
16526 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16527 compiler inserted conditional jumps for NAN float check.
16528
16529 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16530
16531 * ubsan.h (ubsan_create_data): Change second argument's type
16532 to const location_t *.
16533 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16534 _("<unknown>").
16535 (ubsan_create_data): Change second argument to const location_t *PLOC.
16536 Create Loc field whenever PLOC is non-NULL.
16537 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16538 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16539 callers.
16540
16541 PR other/59545
16542 * real.c (real_to_integer2): Change type of low to UHWI.
16543
16544 2014-03-26 Tobias Burnus <burnus@net-b.de>
16545
16546 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16547 (CILK_SELF_SPECS): New define.
16548 (driver_self_specs): Use it.
16549
16550 2014-03-26 Richard Biener <rguenther@suse.de>
16551
16552 * tree-pretty-print.c (percent_K_format): Implement special
16553 case for LTO and its stripped down BLOCK tree.
16554
16555 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16556
16557 PR sanitizer/60636
16558 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16559
16560 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16561 one range is range_int_cst_p, but not both, at least optimize
16562 addition/subtraction of 0 and multiplication by 0 or 1.
16563 * gimple-fold.c (gimple_fold_call): Fold
16564 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16565 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16566 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16567
16568 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16569
16570 PR rtl-optimization/60452
16571 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16572 <case REG>: Return 1 for invalid offsets from the frame pointer.
16573
16574 2014-03-26 Marek Polacek <polacek@redhat.com>
16575
16576 PR c/37428
16577 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16578 a structure/union.
16579
16580 2014-03-26 Marek Polacek <polacek@redhat.com>
16581
16582 PR c/39525
16583 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16584 field members.
16585
16586 2014-03-26 Marek Polacek <polacek@redhat.com>
16587
16588 PR other/59545
16589 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16590 multiplication in unsigned type.
16591
16592 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16593
16594 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16595
16596 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16597
16598 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16599
16600 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16601
16602 PR ipa/60315
16603 * cif-code.def (UNREACHABLE) New code.
16604 * ipa-inline.c (inline_small_functions): Skip edges to
16605 __builtlin_unreachable.
16606 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
16607 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
16608 predicate to __bulitin_unreachable.
16609 (set_cond_stmt_execution_predicate): Fix issue when
16610 invert_tree_comparison returns ERROR_MARK.
16611 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
16612 propagate to inline clones.
16613 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
16614 to unreachable.
16615 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
16616 * cgraphclones.c (cgraph_clone_node): If call destination is already
16617 ureachable, do not redirect it back.
16618 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
16619 unreachable.
16620
16621 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16622
16623 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
16624 Do not modify inline clones.
16625
16626 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16627
16628 * config/i386/i386.md (general_sext_operand): New mode attr.
16629 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
16630 don't generate (sign_extend (const_int)).
16631 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
16632 operands[2]. Use We constraint instead of <i> and
16633 <general_sext_operand> predicate instead of <general_operand>.
16634 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
16635 * config/i386/constraints.md (We): New constraint.
16636 * config/i386/predicates.md (x86_64_sext_operand,
16637 sext_operand): New predicates.
16638
16639 2014-03-25 Martin Jambor <mjambor@suse.cz>
16640
16641 PR ipa/60600
16642 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
16643 inconsistent devirtualizations to __builtin_unreachable.
16644
16645 2014-03-25 Marek Polacek <polacek@redhat.com>
16646
16647 PR c/35449
16648 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
16649
16650 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
16651
16652 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
16653 order of elements for big-endian.
16654
16655 2014-03-25 Richard Biener <rguenther@suse.de>
16656
16657 PR middle-end/60635
16658 * gimplify-me.c (gimple_regimplify_operands): Update the
16659 re-gimplifed stmt.
16660
16661 2014-03-25 Martin Jambor <mjambor@suse.cz>
16662
16663 PR ipa/59176
16664 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
16665 (lto_output_varpool_node): Likewise.
16666 (input_overwrite_node): Likewise.
16667 (input_varpool_node): Likewise.
16668
16669 2014-03-25 Richard Biener <rguenther@suse.de>
16670
16671 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
16672 (run_gcc): Likewise.
16673
16674 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16675
16676 * combine.c (simplify_compare_const): Add MODE argument.
16677 Handle mode_width 0 as very large mode_width.
16678 (try_combine, simplify_comparison): Adjust callers.
16679
16680 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
16681 type to avoid signed integer overflow.
16682 * explow.c (plus_constant): Likewise.
16683
16684 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16685
16686 * doc/generic.texi: Correct typos.
16687
16688 2014-03-24 Tobias Burnus <burnus@net-b.de>
16689
16690 * doc/invoke.texi (-flto): Expand section about
16691 using static libraries with LTO.
16692
16693 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16694
16695 PR rtl-optimization/60501
16696 * optabs.def (addptr3_optab): New optab.
16697 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
16698 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
16699 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
16700
16701 * lra.c (emit_add3_insn): Use the addptr pattern if available.
16702
16703 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
16704
16705 2014-03-24 Ulrich Drepper <drepper@gmail.com>
16706
16707 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
16708 _mm512_set1_pd.
16709
16710 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
16711 (_mm256_undefined_ps): Define.
16712 (_mm256_undefined_pd): Define.
16713 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
16714 (_mm_undefined_pd): Define.
16715 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
16716 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
16717 (_mm512_undefined_ps): Define.
16718 (_mm512_undefined_pd): Define.
16719 Use _mm*_undefined_*.
16720 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
16721
16722 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
16723
16724 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
16725 (lshr_simd): DI mode added.
16726 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
16727 (aarch64_ushr_simddi): Likewise.
16728 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
16729 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
16730 (vshrd_n_u64): Likewise.
16731
16732 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16733
16734 * Makefile.in (s-macro_list): Depend on cc1.
16735
16736 2014-03-23 Teresa Johnson <tejohnson@google.com>
16737
16738 * ipa-utils.c (ipa_print_order): Use specified dump file.
16739
16740 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
16741
16742 PR rtl-optimization/60601
16743 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
16744
16745 * gcc.c (eval_spec_function): Initialize save_growing_value.
16746
16747 2014-03-22 Jakub Jelinek <jakub@redhat.com>
16748
16749 PR sanitizer/60613
16750 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
16751 code == MINUS_EXPR, never swap op0 with op1.
16752
16753 * toplev.c (init_local_tick): Avoid signed integer multiplication
16754 overflow.
16755 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
16756 shift by first operand's bitsize.
16757
16758 2014-03-21 Jakub Jelinek <jakub@redhat.com>
16759
16760 PR target/60610
16761 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
16762 redefine to 1 or 0.
16763 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
16764 TARGET_ISA_64BIT_P(x).
16765
16766 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16767
16768 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
16769 pattern for vector nor instead of subtract from splat(-1).
16770 (altivec_expand_vec_perm_const_le): Likewise.
16771
16772 2014-03-21 Richard Henderson <rth@twiddle.net>
16773
16774 PR target/60598
16775 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
16776 related insns after epilogue_completed.
16777
16778 2014-03-21 Martin Jambor <mjambor@suse.cz>
16779
16780 PR ipa/59176
16781 * cgraph.h (symtab_node): New flag body_removed.
16782 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
16783 when removing bodies.
16784 * symtab.c (dump_symtab_base): Dump body_removed flag.
16785 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
16786 had their bodies removed.
16787
16788 2014-03-21 Martin Jambor <mjambor@suse.cz>
16789
16790 PR ipa/60419
16791 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
16792 in the border.
16793
16794 2014-03-21 Richard Biener <rguenther@suse.de>
16795
16796 PR tree-optimization/60577
16797 * tree-core.h (struct tree_base): Document nothrow_flag use
16798 in DECL_NONALIASED.
16799 * tree.h (DECL_NONALIASED): New.
16800 (may_be_aliased): Adjust.
16801 * coverage.c (build_var): Set DECL_NONALIASED.
16802
16803 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16804
16805 * expr.c (expand_expr_real_1): Remove outdated comment.
16806
16807 2014-03-20 Jakub Jelinek <jakub@redhat.com>
16808
16809 PR middle-end/60597
16810 * ira.c (adjust_cleared_regs): Call copy_rtx on
16811 *reg_equiv[REGNO (loc)].src_p before passing it to
16812 simplify_replace_fn_rtx.
16813
16814 PR target/60568
16815 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
16816 into CONST, put pic register as first operand of PLUS. Use
16817 gen_const_mem for both 32-bit and 64-bit PIC got loads.
16818
16819 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16820
16821 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
16822
16823 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16824
16825 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
16826 around for store forwarding issue in the FPU on the UT699.
16827 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
16828 loads and operations if -mfix-ut699 is specified.
16829 (divtf3_hq): Tweak attribute.
16830 (sqrttf2_hq): Likewise.
16831
16832 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16833
16834 * calls.c (store_one_arg): Remove incorrect const qualification on the
16835 type of the temporary.
16836 * cfgexpand.c (expand_return): Likewise.
16837 * expr.c (expand_constructor): Likewise.
16838 (expand_expr_real_1): Likewise.
16839
16840 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16841
16842 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
16843 of parts.
16844
16845 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16846
16847 PR target/60039
16848 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
16849
16850 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
16851
16852 * config/arm/aarch-common-protos.h
16853 (alu_cost_table): Fix spelling of "extend".
16854 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
16855
16856 2014-03-19 Richard Biener <rguenther@suse.de>
16857
16858 PR middle-end/60553
16859 * tree-core.h (tree_type_common): Re-order pointer members
16860 to reduce recursion depth during GC walks.
16861
16862 2014-03-19 Marek Polacek <polacek@redhat.com>
16863
16864 PR sanitizer/60569
16865 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
16866 before accessing it.
16867
16868 2014-03-19 Richard Biener <rguenther@suse.de>
16869
16870 PR lto/59543
16871 * lto-streamer-in.c (input_function): In WPA stage do not drop
16872 debug stmts.
16873
16874 2014-03-19 Jakub Jelinek <jakub@redhat.com>
16875
16876 PR tree-optimization/60559
16877 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
16878 with build_zero_cst assignment.
16879
16880 2014-03-18 Kai Tietz <ktietz@redhat.com>
16881
16882 PR rtl-optimization/56356
16883 * sdbout.c (sdbout_parms): Verify that parms'
16884 incoming argument is valid.
16885 (sdbout_reg_parms): Likewise.
16886
16887 2014-03-18 Richard Henderson <rth@redhat.com>
16888
16889 PR target/60562
16890 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
16891 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
16892 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
16893
16894 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
16895
16896 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
16897 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
16898 Italicize plugin event names in description. Explain that
16899 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
16900 Remind that no GCC functions should be called after PLUGIN_FINISH.
16901 Explain what pragmas with expansion are.
16902
16903 2014-03-18 Martin Liska <mliska@suse.cz>
16904
16905 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
16906 gimple call statement is update.
16907 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
16908 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
16909
16910 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16911
16912 PR sanitizer/60557
16913 * ubsan.c (ubsan_instrument_unreachable): Call
16914 initialize_sanitizer_builtins.
16915 (ubsan_pass): Likewise.
16916
16917 PR sanitizer/60535
16918 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
16919 varpool_finalize_decl instead of rest_of_decl_compilation.
16920
16921 2014-03-18 Richard Biener <rguenther@suse.de>
16922
16923 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
16924 by using bitmap_and_compl instead of bitmap_and_compl_into.
16925 (df_rd_transfer_function): Likewise.
16926
16927 2014-03-18 Richard Biener <rguenther@suse.de>
16928
16929 * doc/lto.texi (fresolution): Fix typo.
16930
16931 2014-03-18 Richard Biener <rguenther@suse.de>
16932
16933 * doc/invoke.texi (flto): Update for changes in 4.9.
16934
16935 2014-03-18 Richard Biener <rguenther@suse.de>
16936
16937 * doc/loop.texi: Remove section on the removed lambda framework.
16938 Update loop docs with recent changes in preserving loop structure.
16939
16940 2014-03-18 Richard Biener <rguenther@suse.de>
16941
16942 * doc/lto.texi (-fresolution): Document.
16943
16944 2014-03-18 Richard Biener <rguenther@suse.de>
16945
16946 * doc/contrib.texi: Adjust my name.
16947
16948 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16949
16950 PR ipa/58721
16951 * internal-fn.c: Include diagnostic-core.h.
16952 (expand_BUILTIN_EXPECT): New function.
16953 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
16954 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
16955 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
16956 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
16957 IFN_BUILTIN_EXPECT.
16958 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
16959 Revert 3 argument __builtin_expect code.
16960 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
16961 * gimple-fold.c (gimple_fold_call): Likewise.
16962 * tree.h (fold_builtin_expect): New prototype.
16963 * builtins.c (build_builtin_expect_predicate): Add predictor
16964 argument, if non-NULL, create 3 argument __builtin_expect.
16965 (fold_builtin_expect): No longer static. Add ARG2 argument,
16966 pass it through to build_builtin_expect_predicate.
16967 (fold_builtin_2): Adjust caller.
16968 (fold_builtin_3): Handle BUILT_IN_EXPECT.
16969 * internal-fn.def (BUILTIN_EXPECT): New.
16970
16971 2014-03-18 Tobias Burnus <burnus@net-b.de>
16972
16973 PR ipa/58721
16974 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
16975 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
16976 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
16977
16978 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
16979
16980 PR ipa/58721
16981 * predict.c (combine_predictions_for_bb): Fix up formatting.
16982 (expr_expected_value_1, expr_expected_value): Add predictor argument,
16983 fill what it points to if non-NULL.
16984 (tree_predict_by_opcode): Adjust caller, use the predictor.
16985 * predict.def (PRED_COMPARE_AND_SWAP): Add.
16986
16987 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
16988
16989 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
16990 proper constant for the store mode.
16991
16992 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
16993
16994 * symtab.c (change_decl_assembler_name): Fix transparent alias
16995 chain construction.
16996
16997 2014-03-16 Renlin Li <Renlin.Li@arm.com>
16998
16999 * config/aarch64/aarch64.c: Correct the comments about the
17000 aarch64 stack layout.
17001
17002 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
17003
17004 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
17005 check for GF_OMP_FOR_KIND_FOR.
17006
17007 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17008
17009 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
17010 ymm and zmm register names.
17011
17012 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17013
17014 PR target/60516
17015 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17016 note creation for the 2010-08-31 changes.
17017
17018 2014-03-17 Marek Polacek <polacek@redhat.com>
17019
17020 PR middle-end/60534
17021 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17022 as -fno-tree-loop-vectorize.
17023 (expand_omp_simd): Likewise.
17024
17025 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17026
17027 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17028 (eligible_for_call_delay): New prototype.
17029 * config/sparc/sparc.c (tls_call_delay): Rename into...
17030 (eligible_for_call_delay): ...this. Return false if the instruction
17031 cannot be put in the delay slot of a branch.
17032 (eligible_for_restore_insn): Simplify.
17033 (eligible_for_return_delay): Return false if the instruction cannot be
17034 put in the delay slot of a branch and simplify.
17035 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17036 put in the delay slot of a branch.
17037 * config/sparc/sparc.md (fix_ut699): New attribute.
17038 (tls_call_delay): Delete.
17039 (in_call_delay): Reimplement.
17040 (eligible_for_sibcall_delay): Rename into...
17041 (in_sibcall_delay): ...this.
17042 (eligible_for_return_delay): Rename into...
17043 (in_return_delay): ...this.
17044 (in_branch_delay): Reimplement.
17045 (in_uncond_branch_delay): Delete.
17046 (in_annul_branch_delay): Delete.
17047
17048 2014-03-14 Richard Henderson <rth@redhat.com>
17049
17050 PR target/60525
17051 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17052 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17053 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17054 (floathi splitters): Remove.
17055 (float<SWI48x>xf2): New pattern.
17056 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17057 code that tried to handle DImode for 32-bit, but which was excluded
17058 by the pattern's condition. Drop allocation of stack temporary.
17059 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17060 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17061 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17062 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17063 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17064 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17065 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17066 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17067 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17068 (*float<SWI48x><X87MODEF>2_i387): Remove.
17069 (all float _with_temp splitters): Remove.
17070 (*float<SWI48x><MODEF>2_i387): New pattern.
17071 (*float<SWI48><MODEF>2_sse): New pattern.
17072 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17073 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17074
17075 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17076 Marek Polacek <polacek@redhat.com>
17077
17078 PR middle-end/60484
17079 * common.opt (dump_base_name_prefixed): New Variable.
17080 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17081 if x_dump_base_name_prefixed is already set, set it at the end.
17082
17083 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17084
17085 PR rtl-optimization/60508
17086 * lra-constraints.c (get_reload_reg): Add new parameter
17087 in_subreg_p.
17088 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17089 Pass the new parameter values.
17090
17091 2014-03-14 Richard Biener <rguenther@suse.de>
17092
17093 * common.opt: Revert unintented changes from r205065.
17094 * opts.c: Likewise.
17095
17096 2014-03-14 Richard Biener <rguenther@suse.de>
17097
17098 PR middle-end/60518
17099 * cfghooks.c (split_block): Properly adjust all loops the
17100 block was a latch of.
17101
17102 2014-03-14 Martin Jambor <mjambor@suse.cz>
17103
17104 PR lto/60461
17105 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17106 and simplify it.
17107
17108 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17109
17110 PR target/59396
17111 * config/avr/avr.c (avr_set_current_function): Pass function name
17112 through default_strip_name_encoding before sanity checking instead
17113 of skipping the first char of the assembler name.
17114
17115 2014-03-13 Richard Henderson <rth@redhat.com>
17116
17117 PR debug/60438
17118 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17119 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17120 * config/i386/i386-protos.h: Likewise.
17121 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17122 in the expander instead of a splitter.
17123 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17124 any possibility of requiring a memory.
17125 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17126 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17127 (fp branch splitters): Update for ix86_split_fp_branch.
17128 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17129 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17130 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17131 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17132 (*fop_<MODEF>_3_i387): Likewise.
17133 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17134 (splitters for the fop_* register patterns): Remove.
17135 (fscalexf4_i387): Rename from *fscalexf4_i387.
17136 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17137
17138 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17139
17140 PR tree-optimization/59779
17141 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17142 type for bitsize and maxsize instead of HOST_WIDE_INT.
17143
17144 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17145
17146 PR rtl-optimization/57320
17147 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17148 the CFG after thread_prologue_and_epilogue_insns.
17149
17150 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17151
17152 PR rtl-optimization/57189
17153 * lra-constraints.c (process_alt_operands): Disfavor spilling
17154 vector pseudos.
17155
17156 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17157
17158 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17159
17160 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17161
17162 PR tree-optimization/59025
17163 PR middle-end/60418
17164 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17165 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17166
17167 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17168
17169 PR target/60486
17170 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17171 calls of avr_out_plus_1.
17172
17173 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17174
17175 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17176 BB's single pred and update the father loop's latch info later.
17177
17178 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17179
17180 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17181 (VEC_M): Likewise.
17182 (VEC_N): Likewise.
17183 (VEC_R): Likewise.
17184 (VEC_base): Likewise.
17185 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17186 registers, we need to swap double words in little endian mode.
17187
17188 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17189 to be a container mode for 128-bit integer operations added in ISA
17190 2.07. Unlike TImode and PTImode, the preferred register set is
17191 the Altivec/VMX registers for the 128-bit operations.
17192
17193 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17194 declarations.
17195 (rs6000_split_128bit_ok_p): Likewise.
17196
17197 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17198 macros for creating ISA 2.07 normal and overloaded builtin
17199 functions with 3 arguments.
17200 (BU_P8V_OVERLOAD_3): Likewise.
17201 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17202 for use as overloaded functions.
17203 (VPERM_1TI_UNS): Likewise.
17204 (VSEL_1TI): Likewise.
17205 (VSEL_1TI_UNS): Likewise.
17206 (ST_INTERNAL_1ti): Likewise.
17207 (LD_INTERNAL_1ti): Likewise.
17208 (XXSEL_1TI): Likewise.
17209 (XXSEL_1TI_UNS): Likewise.
17210 (VPERM_1TI): Likewise.
17211 (VPERM_1TI_UNS): Likewise.
17212 (XXPERMDI_1TI): Likewise.
17213 (SET_1TI): Likewise.
17214 (LXVD2X_V1TI): Likewise.
17215 (STXVD2X_V1TI): Likewise.
17216 (VEC_INIT_V1TI): Likewise.
17217 (VEC_SET_V1TI): Likewise.
17218 (VEC_EXT_V1TI): Likewise.
17219 (EQV_V1TI): Likewise.
17220 (NAND_V1TI): Likewise.
17221 (ORC_V1TI): Likewise.
17222 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17223 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17224 overloaded builtin.
17225 (VADDUQM): Likewise.
17226 (VSUBCUQ): Likewise.
17227 (VADDEUQM): Likewise.
17228 (VADDECUQ): Likewise.
17229 (VSUBEUQM): Likewise.
17230 (VSUBECUQ): Likewise.
17231
17232 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17233 __int128_t and __uint128_t types.
17234 (__uint128_type): Likewise.
17235 (altivec_categorize_keyword): Add support for vector __int128_t,
17236 vector __uint128_t, vector __int128, and vector unsigned __int128
17237 as a container type for TImode operations that need to be done in
17238 VSX/Altivec registers.
17239 (rs6000_macro_to_expand): Likewise.
17240 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17241 to support 128-bit integer instructions vaddcuq, vadduqm,
17242 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17243 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17244
17245 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17246 for V1TImode, and set up preferences to use VSX/Altivec registers.
17247 Setup VSX reload handlers.
17248 (rs6000_debug_reg_global): Likewise.
17249 (rs6000_init_hard_regno_mode_ok): Likewise.
17250 (rs6000_preferred_simd_mode): Likewise.
17251 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17252 (easy_altivec_constant): Likewise.
17253 (output_vec_const_move): Likewise.
17254 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17255 simple move.
17256 (rs6000_expand_vector_extract): Likewise.
17257 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17258 addressing.
17259 (rs6000_const_vec): Add support for V1TImode.
17260 (rs6000_emit_le_vsx_load): Swap double words when loading or
17261 storing TImode/V1TImode.
17262 (rs6000_emit_le_vsx_store): Likewise.
17263 (rs6000_emit_le_vsx_move): Likewise.
17264 (rs6000_emit_move): Add support for V1TImode.
17265 (altivec_expand_ld_builtin): Likewise.
17266 (altivec_expand_st_builtin): Likewise.
17267 (altivec_expand_vec_init_builtin): Likewise.
17268 (altivec_expand_builtin): Likewise.
17269 (rs6000_init_builtins): Add support for V1TImode type. Add
17270 support for ISA 2.07 128-bit integer builtins. Define type names
17271 for the VSX/Altivec vector types.
17272 (altivec_init_builtins): Add support for overloaded vector
17273 functions with V1TImode type.
17274 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17275 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17276 external function.
17277 (rs6000_split_128bit_ok_p): Likewise.
17278 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17279 __int128_t and vector __uint128_t.
17280
17281 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17282 and mode attributes.
17283 (VSX_M): Likewise.
17284 (VSX_M2): Likewise.
17285 (VSm): Likewise.
17286 (VSs): Likewise.
17287 (VSr): Likewise.
17288 (VSv): Likewise.
17289 (VS_scalar): Likewise.
17290 (VS_double): Likewise.
17291 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17292
17293 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17294 we support the ISA 2.07 128-bit integer arithmetic instructions.
17295 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17296 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17297 and TImode types for use with the builtin functions.
17298 (V1TI_type_node): Likewise.
17299 (unsigned_V1TI_type_node): Likewise.
17300 (intTI_type_internal_node): Likewise.
17301 (uintTI_type_internal_node): Likewise.
17302
17303 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17304 128-bit builtin functions.
17305 (UNSPEC_VADDEUQM): Likewise.
17306 (UNSPEC_VADDECUQ): Likewise.
17307 (UNSPEC_VSUBCUQ): Likewise.
17308 (UNSPEC_VSUBEUQM): Likewise.
17309 (UNSPEC_VSUBECUQ): Likewise.
17310 (VM): Add V1TImode to vector mode iterators.
17311 (VM2): Likewise.
17312 (VI_unit): Likewise.
17313 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17314 (altivec_vaddcuq): Likewise.
17315 (altivec_vsubuqm): Likewise.
17316 (altivec_vsubcuq): Likewise.
17317 (altivec_vaddeuqm): Likewise.
17318 (altivec_vaddecuq): Likewise.
17319 (altivec_vsubeuqm): Likewise.
17320 (altivec_vsubecuq): Likewise.
17321
17322 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17323 mode iterators.
17324 (BOOL_128): Likewise.
17325 (BOOL_REGS_OUTPUT): Likewise.
17326 (BOOL_REGS_OP1): Likewise.
17327 (BOOL_REGS_OP2): Likewise.
17328 (BOOL_REGS_UNARY): Likewise.
17329 (BOOL_REGS_AND_CR0): Likewise.
17330
17331 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17332 128-bit integer builtin support.
17333 (vec_vadduqm): Likewise.
17334 (vec_vaddecuq): Likewise.
17335 (vec_vaddeuqm): Likewise.
17336 (vec_vsubecuq): Likewise.
17337 (vec_vsubeuqm): Likewise.
17338 (vec_vsubcuq): Likewise.
17339 (vec_vsubuqm): Likewise.
17340
17341 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17342 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17343 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17344 128-bit integer add/subtract to ISA 2.07.
17345
17346 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17347
17348 * config/arc/arc.c (arc_predicate_delay_insns):
17349 Fix third argument passed to conditionalize_nonjump.
17350
17351 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17352
17353 * config/aarch64/aarch64-builtins.c
17354 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17355 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17356 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17357 instead of __builtin_lfloor.
17358 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17359
17360 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17361
17362 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17363 (tree_ssa_ifcombine_bb_1): New function.
17364 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17365 is an empty forwarder block to then_bb or vice versa and then_bb
17366 and else_bb are effectively swapped.
17367
17368 2014-03-12 Christian Bruel <christian.bruel@st.com>
17369
17370 PR target/60264
17371 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17372 REG_CFA_DEF_CFA note.
17373 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17374 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17375
17376 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17377
17378 PR tree-optimization/60454
17379 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17380
17381 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17382
17383 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17384 Do not define target_cpu_default2 to generic.
17385 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17386 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17387 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17388
17389 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17390 Marc Glisse <marc.glisse@inria.fr>
17391
17392 PR tree-optimization/60502
17393 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17394 instead of build_low_bits_mask.
17395
17396 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17397
17398 PR middle-end/60482
17399 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17400 if there are multiple uses, but op doesn't live on E edge.
17401 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17402 clobber stmts before __builtin_unreachable.
17403
17404 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17405
17406 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17407 hard_frame_pointer_rtx.
17408 * cse.c (cse_insn): Remove volatile check.
17409 * cselib.c (cselib_process_insn): Likewise.
17410 * dse.c (scan_insn): Likewise.
17411
17412 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17413
17414 * config/arc/arc.c (conditionalize_nonjump): New function,
17415 broken out of ...
17416 (arc_ifcvt): ... this.
17417 (arc_predicate_delay_insns): Use it.
17418
17419 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17420
17421 * config/arc/predicates.md (extend_operand): During/after reload,
17422 allow const_int_operand.
17423 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17424 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17425 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17426 to "i".
17427 (umulsi3_highpart_i): Likewise.
17428
17429 2014-03-11 Richard Biener <rguenther@suse.de>
17430
17431 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17432 Add asserts to guard possible wrong-code bugs.
17433
17434 2014-03-11 Richard Biener <rguenther@suse.de>
17435
17436 PR tree-optimization/60429
17437 PR tree-optimization/60485
17438 * tree-ssa-structalias.c (set_union_with_increment): Properly
17439 take into account all fields that overlap the shifted vars.
17440 (do_sd_constraint): Likewise.
17441 (do_ds_constraint): Likewise.
17442 (get_constraint_for_ptr_offset): Likewise.
17443
17444 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17445
17446 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17447 (nios2_compute_frame_layout):
17448 Add calculation of cfun->machine->fp_save_offset.
17449 (nios2_expand_prologue): Correct setting of frame pointer register
17450 in prologue.
17451 (nios2_expand_epilogue): Update recovery of stack pointer from
17452 frame pointer accordingly.
17453 (nios2_initial_elimination_offset): Update calculation of offset
17454 for eliminating to HARD_FRAME_POINTER_REGNUM.
17455
17456 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17457
17458 PR ipa/60457
17459 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17460 cgraph_get_create_node on VAR_DECLs.
17461
17462 2014-03-10 Richard Biener <rguenther@suse.de>
17463
17464 PR middle-end/60474
17465 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17466
17467 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17468
17469 * config/vms/vms.opt (vms_float_format): New variable.
17470
17471 2014-03-08 Tobias Burnus <burnus@net-b.de>
17472
17473 * doc/invoke.texi (-fcilkplus): Update implementation status.
17474
17475 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17476 Richard Biener <rguenther@suse.de>
17477
17478 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17479 consistently accross all TUs.
17480 (run_gcc): Enable -fshort-double automatically at link at link-time
17481 and disallow override.
17482
17483 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17484
17485 PR target/58271
17486 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17487 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17488 if they can't be used.
17489
17490 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17491
17492 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17493 for Solaris 11/x86 ld.
17494 * configure: Regenerate.
17495
17496 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17497
17498 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17499 (LIB_TLS_SPEC): Save as ld_tls_libs.
17500 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17501 (HAVE_AS_IX86_TLSLDM): New test.
17502 * configure, config.in: Regenerate.
17503 * config/i386/i386.c (legitimize_tls_address): Fall back to
17504 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17505 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17506 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17507 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17508
17509 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17510
17511 * common.opt (fira-loop-pressure): Mark as optimization.
17512
17513 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17514
17515 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17516 an OpenMP mappable type.
17517
17518 2014-03-06 Matthias Klose <doko@ubuntu.com>
17519
17520 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17521 MULTILIB_OSDIRNAMES is not defined.
17522
17523 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17524 Meador Inge <meadori@codesourcery.com>
17525
17526 PR target/58595
17527 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17528 (arm_legitimize_address): Call legitimize_tls_address for any
17529 arm_tls_referenced_p expression, handle constant addend. Call it
17530 before testing for !TARGET_ARM.
17531 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17532
17533 2014-03-06 Richard Biener <rguenther@suse.de>
17534
17535 PR middle-end/60445
17536 PR lto/60424
17537 PR lto/60427
17538 Revert
17539 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17540
17541 * tree-streamer.c (record_common_node): Assert we don't record
17542 nodes with type double.
17543 (preload_common_node): Skip type double, complex double and double
17544 pointer since it is now frontend dependent due to fshort-double option.
17545
17546 2014-03-06 Richard Biener <rguenther@suse.de>
17547
17548 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17549 or -fno-lto is specified and the linker has full plugin support.
17550 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17551 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17552 * lto-wrapper.c (merge_and_complain): Merge compile-time
17553 optimization levels.
17554 (run_gcc): And pass it through to the link options.
17555
17556 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17557
17558 PR debug/60381
17559 Revert:
17560 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17561 PR debug/59992
17562 * cselib.c (remove_useless_values): Skip to avoid quadratic
17563 behavior if the condition moved from...
17564 (cselib_process_insn): ... here holds.
17565
17566 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17567
17568 PR plugins/59335
17569 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17570 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17571
17572 PR plugins/59335
17573 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17574 (TM_H): Add x86-tune.def.
17575
17576 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17577
17578 * config/aarch64/aarch64.c (generic_tunings):
17579 Use cortexa57_extra_costs.
17580
17581 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17582
17583 PR lto/60404
17584 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17585 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17586 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17587 cost for in_lto_p.
17588
17589 2014-03-04 Heiher <r@hev.cc>
17590
17591 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17592 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17593
17594 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17595
17596 * config/i386/predicates.md (const2356_operand): Change to ...
17597 (const2367_operand): ... this.
17598 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17599 const2367_operand.
17600 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17601 (*avx512pf_scatterpf<mode>sf): Ditto.
17602 (avx512pf_scatterpf<mode>df): Ditto.
17603 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17604 (*avx512pf_scatterpf<mode>df): Ditto.
17605 * config/i386/i386.c (ix86_expand_builtin): Update
17606 incorrect hint operand error message.
17607
17608 2014-03-04 Richard Biener <rguenther@suse.de>
17609
17610 * lto-section-in.c (lto_get_section_data): Fix const cast.
17611
17612 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17613
17614 * tree-streamer.c (record_common_node): Assert we don't record
17615 nodes with type double.
17616 (preload_common_node): Skip type double, complex double and double
17617 pointer since it is now frontend dependent due to fshort-double option.
17618
17619 2014-03-04 Richard Biener <rguenther@suse.de>
17620
17621 PR lto/60405
17622 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
17623 (lto_input_toplevel_asms): Likewise.
17624 * lto-section-in.c (lto_get_section_data): Instead do it here
17625 for every section.
17626
17627 2014-03-04 Richard Biener <rguenther@suse.de>
17628
17629 PR tree-optimization/60382
17630 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
17631 dead PHIs a reduction.
17632
17633 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
17634
17635 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
17636 hint value.
17637 (_mm_prefetch): Move out of GCC target("sse") pragma.
17638 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
17639 GCC target("prfchw") pragma.
17640 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
17641 for locality <= 2.
17642 * config/i386/i386.c (ix86_option_override_internal): Enable
17643 -mprfchw with -mprefetchwt1.
17644
17645 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17646
17647 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
17648 Mark as varying.
17649
17650 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17651
17652 * opts.h (CL_PCH_IGNORE): Define.
17653 * targhooks.c (option_affects_pch_p):
17654 Return false for options that have CL_PCH_IGNORE set.
17655 * opt-functions.awk: Process PchIgnore.
17656 * doc/options.texi: Document PchIgnore.
17657
17658 * config/arc/arc.opt (misize): Add PchIgnore property.
17659
17660 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17661
17662 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
17663 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
17664 constraint on constants to permit them being loaded into
17665 GENERAL_REGS or BASE_REGS.
17666
17667 2014-03-03 Nick Clifton <nickc@redhat.com>
17668
17669 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
17670 anti-cacnonical alternatives.
17671 (negandhi3_real): New pattern.
17672 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
17673
17674 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17675
17676 * config/avr/avr-mcus.def: Remove atxmega16x1.
17677 * config/avr/avr-tables.opt: Regenerate.
17678 * config/avr/t-multilib: Regenerate.
17679 * doc/avr-mmcu.texi: Regenerate.
17680
17681 2014-03-03 Tobias Grosser <tobias@grosser.es>
17682 Mircea Namolaru <mircea.namolaru@inria.fr>
17683
17684 PR tree-optimization/58028
17685 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
17686 scalar dimensions.
17687
17688 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17689
17690 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
17691 not handled by recognizers.
17692
17693 2014-03-03 Jakub Jelinek <jakub@redhat.com>
17694
17695 PR middle-end/60175
17696 * function.c (expand_function_end): Don't emit
17697 clobber_return_register sequence if clobber_after is a BARRIER.
17698 * cfgexpand.c (construct_exit_block): Append instructions before
17699 return_label to prev_bb.
17700
17701 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17702
17703 * config/rs6000/constraints.md: Document reserved use of "wc".
17704
17705 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17706
17707 PR ipa/60150
17708 * ipa.c (function_and_variable_visibility): When dissolving comdat
17709 group, also set all symbols to local.
17710
17711 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17712
17713 PR ipa/60306
17714
17715 Revert:
17716 2013-12-14 Jan Hubicka <jh@suse.cz>
17717 PR middle-end/58477
17718 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
17719
17720 2014-03-02 Jon Beniston <jon@beniston.com>
17721
17722 PR bootstrap/48230
17723 PR bootstrap/50927
17724 PR bootstrap/52466
17725 PR target/46898
17726 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
17727 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
17728 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
17729 (simple_return, *simple_return): New patterns
17730 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
17731 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
17732
17733 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
17734
17735 * dwarf2out.c (gen_subprogram_die): Tidy.
17736
17737 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17738
17739 PR target/60071
17740 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
17741 (*mov_t_msb_neg_negc): ... this new insn.
17742
17743 2014-02-28 Jason Merrill <jason@redhat.com>
17744
17745 PR c++/58678
17746 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
17747 function.
17748
17749 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
17750
17751 PR c++/60314
17752 * dwarf2out.c (decltype_auto_die): New static.
17753 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
17754 (gen_type_die_with_usage): Handle 'decltype(auto)'.
17755 (is_cxx_auto): Likewise.
17756
17757 2014-02-28 Ian Bolton <ian.bolton@arm.com>
17758
17759 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
17760 we are not using general regs only.
17761
17762 2014-02-28 Richard Biener <rguenther@suse.de>
17763
17764 PR target/60280
17765 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
17766 previous fix and only allow to remove trivial pre-headers
17767 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
17768 (remove_forwarder_block): Properly update the latch of a loop.
17769
17770 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17771
17772 PR debug/59992
17773 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
17774 (cselib_preserved_hash_table): New.
17775 (preserve_constants_and_equivs): Move preserved vals to it.
17776 (cselib_find_slot): Look it up first.
17777 (cselib_init): Initialize it.
17778 (cselib_finish): Release it.
17779 (dump_cselib_table): Dump it.
17780
17781 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17782
17783 PR debug/59992
17784 * cselib.c (remove_useless_values): Skip to avoid quadratic
17785 behavior if the condition moved from...
17786 (cselib_process_insn): ... here holds.
17787
17788 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17789
17790 PR debug/57232
17791 * var-tracking.c (vt_initialize): Apply the same condition to
17792 preserve the CFA base value.
17793
17794 2014-02-28 Joey Ye <joey.ye@arm.com>
17795
17796 PR target/PR60169
17797 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
17798 if reload in progress or completed.
17799
17800 2014-02-28 Tobias Burnus <burnus@net-b.de>
17801
17802 PR middle-end/60147
17803 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
17804 NAMELIST_DECL.
17805
17806 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
17807
17808 * doc/tm.texi.in (Condition Code Status): Update documention for
17809 relative locations of cc0-setter and cc0-user.
17810
17811 2014-02-27 Jeff Law <law@redhat.com>
17812
17813 PR rtl-optimization/52714
17814 * combine.c (try_combine): When splitting an unrecognized PARALLEL
17815 into two independent simple sets, if I3 is a jump, ensure the
17816 pattern we place into I3 is a (set (pc) ...).
17817
17818 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
17819 Jeff Law <law@redhat.com>
17820
17821 PR rtl-optimization/49847
17822 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
17823 are in different blocks.
17824 * doc/tm.texi (Condition Code Status): Update documention for
17825 relative locations of cc0-setter and cc0-user.
17826
17827 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
17828
17829 PR target/59222
17830 * lra.c (lra_emit_add): Check SUBREG too.
17831
17832 2014-02-27 Andreas Schwab <schwab@suse.de>
17833
17834 * config/m68k/m68k.c (m68k_option_override): Disable
17835 -flive-range-shrinkage for classic m68k.
17836 (m68k_override_options_after_change): Likewise.
17837
17838 2014-02-27 Marek Polacek <polacek@redhat.com>
17839
17840 PR middle-end/59223
17841 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
17842 -Wmaybe-uninitialized.
17843
17844 2014-02-27 Alan Modra <amodra@gmail.com>
17845
17846 PR target/57936
17847 * reload1.c (emit_input_reload_insns): When reload_override_in,
17848 set old to rl->in_reg when rl->in_reg is a subreg.
17849
17850 2014-02-26 Richard Biener <rguenther@suse.de>
17851
17852 PR bootstrap/60343
17853 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
17854
17855 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17856
17857 * common/config/i386/predicates.md (const1256_operand): Remove.
17858 (const2356_operand): New.
17859 (const_1_to_2_operand): Remove.
17860 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17861 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17862 (*avx512pf_gatherpf<mode>sf): Ditto.
17863 (avx512pf_gatherpf<mode>df): Ditto.
17864 (*avx512pf_gatherpf<mode>df_mask): Ditto.
17865 (*avx512pf_gatherpf<mode>df): Ditto.
17866 (avx512pf_scatterpf<mode>sf): Ditto.
17867 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17868 (*avx512pf_scatterpf<mode>sf): Ditto.
17869 (avx512pf_scatterpf<mode>df): Ditto.
17870 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17871 (*avx512pf_scatterpf<mode>df): Ditto.
17872 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
17873
17874 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
17875
17876 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
17877 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
17878 (_mm512_mask_testn_epi64_mask): Move to ...
17879 * config/i386/avx512cdintrin.h: Here.
17880 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
17881 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
17882 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
17883 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
17884 TARGET_AVX512F from TARGET_AVX512CD.
17885
17886 2014-02-26 Richard Biener <rguenther@suse.de>
17887
17888 PR ipa/60327
17889 * ipa.c (walk_polymorphic_call_targets): Properly guard
17890 call to inline_update_overall_summary.
17891
17892 2014-02-26 Bin Cheng <bin.cheng@arm.com>
17893
17894 PR target/60280
17895 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
17896 and latches only if requested. Fix latch if it is removed.
17897 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
17898 LOOPS_HAVE_PREHEADERS.
17899
17900 2014-02-25 Andrew Pinski <apinski@cavium.com>
17901
17902 * builtins.c (expand_builtin_thread_pointer): Create a new target
17903 when the target is NULL.
17904
17905 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
17906
17907 PR rtl-optimization/60317
17908 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17909 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17910 * lra-assigns.c: Include params.h.
17911 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
17912 other reload pseudos considerations.
17913
17914 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17915
17916 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
17917 to use canonical form for nor<mode>3.
17918
17919 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17920
17921 PR target/55426
17922 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
17923 conversions.
17924
17925 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17926
17927 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
17928 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
17929 (ix86_handle_option): Handle OPT_mprefetchwt1.
17930 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
17931 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17932 PREFETCHWT1 CPUID.
17933 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17934 OPTION_MASK_ISA_PREFETCHWT1.
17935 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
17936 (PTA_PREFETCHWT1): New.
17937 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
17938 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
17939 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
17940 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
17941 (*prefetch_avx512pf_<mode>_: Change into ...
17942 (*prefetch_prefetchwt1_<mode>: This.
17943 * config/i386/i386.opt (mprefetchwt1): New.
17944 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
17945 (_mm_prefetch): Handle intent to write.
17946 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
17947
17948 2014-02-25 Richard Biener <rguenther@suse.de>
17949
17950 PR middle-end/60291
17951 * emit-rtl.c (mem_attrs_htab): Remove.
17952 (mem_attrs_htab_hash): Likewise.
17953 (mem_attrs_htab_eq): Likewise.
17954 (set_mem_attrs): Always allocate new mem-attrs when something changed.
17955 (init_emit_once): Do not allocate mem_attrs_htab.
17956
17957 2014-02-25 Richard Biener <rguenther@suse.de>
17958
17959 PR lto/60319
17960 * lto-opts.c (lto_write_options): Output non-explicit conservative
17961 -fwrapv, -fno-trapv and -fno-strict-overflow.
17962 * lto-wrapper.c (merge_and_complain): Handle merging those options.
17963 (run_gcc): And pass them through.
17964
17965 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17966
17967 * sel-sched.c (calculate_new_fences): New parameter ptime.
17968 Calculate it as a maximum over all fence cycles.
17969 (sel_sched_region_2): Adjust the call to calculate_new_fences.
17970 Print the final schedule timing when sched_verbose.
17971
17972 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17973
17974 PR rtl-optimization/60292
17975 * sel-sched.c (fill_vec_av_set): Do not reset target availability
17976 bit fot the fence instruction.
17977
17978 2014-02-24 Alangi Derick <alangiderick@gmail.com>
17979
17980 * calls.h: Fix typo in comment.
17981
17982 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
17983
17984 * config/pa/pa.c (pa_output_move_double): Don't valididate when
17985 adjusting offsetable addresses.
17986
17987 2014-02-24 Guozhi Wei <carrot@google.com>
17988
17989 * sparseset.h (sparseset_pop): Fix the wrong index.
17990
17991 2014-02-24 Walter Lee <walt@tilera.com>
17992
17993 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
17994 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
17995 triplet.
17996 * common/config/tilegx/tilegx-common.c
17997 (TARGET_DEFAULT_TARGET_FLAGS): Define.
17998 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
17999 (LINK_SPEC): Ditto.
18000 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
18001 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
18002 (tilegx_gimplify_va_arg_expr): Handle big endian.
18003 (tilegx_expand_unaligned_load): Ditto.
18004 (tilegx_expand_unaligned_store): Ditto.
18005 (TARGET_RETURN_IN_MSB): New.
18006 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
18007 (TARGET_ENDIAN_DEFAULT): New.
18008 (TARGET_BIG_ENDIAN): Handle big endian.
18009 (BYTES_BIG_ENDIAN): Ditto.
18010 (WORDS_BIG_ENDIAN): Ditto.
18011 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18012 (ENDIAN_SPEC): New.
18013 (EXTRA_SPECS): New.
18014 * config/tilegx/tilegx.md (extv): Handle big endian.
18015 (extzv): Ditto.
18016 (insn_st<n>): Ditto.
18017 (insn_st<n>_add<bitsuffix>): Ditto.
18018 (insn_stnt<n>): Ditto.
18019 (insn_stnt<n>_add<bitsuffix>):Ditto.
18020 (vec_interleave_highv8qi): Handle big endian.
18021 (vec_interleave_highv8qi_be): New.
18022 (vec_interleave_highv8qi_le): New.
18023 (insn_v1int_h): Handle big endian.
18024 (vec_interleave_lowv8qi): Handle big endian.
18025 (vec_interleave_lowv8qi_be): New.
18026 (vec_interleave_lowv8qi_le): New.
18027 (insn_v1int_l): Handle big endian.
18028 (vec_interleave_highv4hi): Handle big endian.
18029 (vec_interleave_highv4hi_be): New.
18030 (vec_interleave_highv4hi_le): New.
18031 (insn_v2int_h): Handle big endian.
18032 (vec_interleave_lowv4hi): Handle big endian.
18033 (vec_interleave_lowv4hi_be): New.
18034 (vec_interleave_lowv4hi_le): New.
18035 (insn_v2int_l): Handle big endian.
18036 (vec_interleave_highv2si): Handle big endian.
18037 (vec_interleave_highv2si_be): New.
18038 (vec_interleave_highv2si_le): New.
18039 (insn_v4int_h): Handle big endian.
18040 (vec_interleave_lowv2si): Handle big endian.
18041 (vec_interleave_lowv2si_be): New.
18042 (vec_interleave_lowv2si_le): New.
18043 (insn_v4int_l): Handle big endian.
18044 * config/tilegx/tilegx.opt (mbig-endian): New option.
18045 (mlittle-endian): New option.
18046 * doc/install.texi: Document tilegxbe-linux.
18047 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18048
18049 2014-02-24 Martin Jambor <mjambor@suse.cz>
18050
18051 PR ipa/60266
18052 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18053 there are no parameter descriptors.
18054
18055 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18056
18057 PR rtl-optimization/60268
18058 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18059 initialization to ...
18060 (sched_rgn_init): ... here.
18061 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18062
18063 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18064
18065 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18066 names.
18067
18068 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18069
18070 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18071 definition.
18072
18073 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18074
18075 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18076 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18077
18078 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18079
18080 * config/microblaze/predicates.md: Add cmp_op predicate.
18081 * config/microblaze/microblaze.md: Add branch_compare instruction
18082 which uses cmp_op predicate and emits cmp insn before branch.
18083 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18084 to microblaze_expand_conditional_branch and consolidate logic.
18085 (microblaze_expand_conditional_branch): emit branch_compare
18086 insn instead of handling cmp op separate from branch insn.
18087
18088 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18089
18090 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18091 to permit subregs.
18092
18093 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18094
18095 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18096 define_insn with define_expand and new define_insn
18097 *altivec_lve<VI_char>x_internal.
18098 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18099 and new define_insn *altivec_stve<VI_char>x_internal.
18100 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18101 prototype.
18102 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18103 lve*x built-ins.
18104 (altivec_expand_stvex_be): New function.
18105
18106 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18107
18108 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18109 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18110 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18111 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18112
18113 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18114
18115 PR target/60298
18116 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18117 instead of emit_move_insn.
18118
18119 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18120
18121 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18122 vspltw with vsldoi.
18123 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18124 gen_altivec_vsumsws.
18125
18126 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18127
18128 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18129 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18130 (altivec_lvxl_<mode>): New define_expand incorporating
18131 -maltivec=be semantics where needed.
18132 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18133 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18134 semantics where needed.
18135 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18136 (altivec_stvx_<mode>): New define_expand incorporating
18137 -maltivec=be semantics where needed.
18138 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18139 VM2 iterator instead of V4SI.
18140 (altivec_stvxl_<mode>): New define_expand incorporating
18141 -maltivec=be semantics where needed.
18142 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18143 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18144 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18145 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18146 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18147 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18148 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18149 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18150 ALTIVEC_BUILTIN_STVXL.
18151 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18152 (altivec_expand_stvx_be): Likewise.
18153 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18154 (altivec_expand_lvx_be): Likewise.
18155 (altivec_expand_stvx_be): Likewise.
18156 (altivec_expand_builtin): Add cases for
18157 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18158 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18159 (altivec_init_builtins): Add definitions for
18160 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18161 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18162
18163 2014-02-21 Catherine Moore <clm@codesourcery.com>
18164
18165 * doc/invoke.texi (mvirt, mno-virt): Document.
18166 * config/mips/mips.opt (mvirt): New option.
18167 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18168
18169 2014-02-21 Richard Biener <rguenther@suse.de>
18170
18171 PR tree-optimization/60276
18172 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18173 (STMT_VINFO_MIN_NEG_DIST): New macro.
18174 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18175 STMT_VINFO_MIN_NEG_DIST.
18176 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18177 made for negative dependence distances still hold.
18178
18179 2014-02-21 Richard Biener <rguenther@suse.de>
18180
18181 PR middle-end/60291
18182 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18183 DECL_INITIAL for globals not in the current function context.
18184
18185 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18186
18187 PR tree-optimization/56490
18188 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18189 * tree-ssa-uninit.c: Include params.h.
18190 (compute_control_dep_chain): Add num_calls argument, return false
18191 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18192 num_calls to recursive call.
18193 (find_predicates): Change dep_chain into normal array,
18194 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18195 variable and adjust compute_control_dep_chain caller.
18196 (find_def_preds): Likewise.
18197
18198 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18199
18200 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18201 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18202
18203 2014-02-21 Nick Clifton <nickc@redhat.com>
18204
18205 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18206 (pushhi1): Likewise.
18207 (popqi1): Add mode to pre_dec.
18208 (pophi1): Likewise.
18209
18210 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18211
18212 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18213 mode for mask of V8SFmode permutation.
18214
18215 2014-02-20 Richard Henderson <rth@redhat.com>
18216
18217 PR c++/60272
18218 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18219 a new pseudo for OLDVAL.
18220
18221 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18222
18223 PR target/57896
18224 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18225 gen_reg_rtx if d->testing_p.
18226 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18227 if d->testing_p and we will certainly return true.
18228 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18229 if d->testing_p.
18230
18231 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18232
18233 * emit-rtl.c (gen_reg_rtx): Assert that
18234 crtl->emit.regno_pointer_align_length is non-zero.
18235
18236 2014-02-20 Richard Henderson <rth@redhat.com>
18237
18238 PR c++/60272
18239 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18240 on failure the store back into EXPECT.
18241
18242 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18243 Sandra Loosemore <sandra@codesourcery.com>
18244
18245 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18246 * config/nios2/nios2.c (nios2_function_profiler): Add
18247 -fPIC (flag_pic == 2) support.
18248 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18249 (nios2_large_offset_p): New function.
18250 (nios2_unspec_reloc_p): Move up position, update to use
18251 nios2_large_offset_p.
18252 (nios2_unspec_address): Remove function.
18253 (nios2_unspec_offset): New function.
18254 (nios2_large_got_address): New function.
18255 (nios2_got_address): Add large offset support.
18256 (nios2_legitimize_tls_address): Update usage of removed and new
18257 functions.
18258 (nios2_symbol_binds_local_p): New function.
18259 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18260 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18261 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18262 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18263 processing for (const (unspec ...)).
18264 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18265
18266 2014-02-20 Richard Biener <rguenther@suse.de>
18267
18268 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18269 doing the substitution.
18270 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18271
18272 2014-02-20 Martin Jambor <mjambor@suse.cz>
18273
18274 PR ipa/55260
18275 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18276 info when checking whether lattices are bottom.
18277
18278 2014-02-20 Richard Biener <rguenther@suse.de>
18279
18280 PR middle-end/60221
18281 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18282 regions at -O0.
18283
18284 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18285
18286 PR ipa/58555
18287 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18288 parameter specifying the scaling.
18289 (inline_call): Update.
18290 (want_inline_recursively): Guard division by zero.
18291 (recursive_inlining): Update.
18292 * ipa-inline.h (clone_inlined_nodes): Update.
18293
18294 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18295
18296 PR target/60204
18297 * config/i386/i386.c (classify_argument): Pass structures of size
18298 64 bytes or less in register.
18299
18300 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18301 Kirill Yukhin <kirill.yukhin@intel.com>
18302
18303 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18304 (_mm_rcp28_round_ss): Ditto.
18305 (_mm_rsqrt28_round_sd): Ditto.
18306 (_mm_rsqrt28_round_ss): Ditto.
18307 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18308 (_mm_rcp14_round_ss): Ditto.
18309 (_mm_rsqrt14_round_sd): Ditto.
18310 (_mm_rsqrt14_round_ss): Ditto.
18311 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18312 the first input operand, get rid of match_dup.
18313 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18314 attribute to sse.
18315 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18316 Ditto.
18317 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18318 operand as the first input operand, set type attribute.
18319 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18320 Set type attribute.
18321 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18322 operand as the first input operand, set type attribute.
18323
18324 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18325
18326 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18327 bit of zero.
18328
18329 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18330
18331 PR target/60207
18332 * config/i386/i386.c (construct_container): Remove TFmode check
18333 for X86_64_INTEGER_CLASS.
18334
18335 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18336
18337 PR target/59794
18338 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18339 only when -Wpsabi is enabled.
18340
18341 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18342
18343 PR target/59799
18344 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18345 passing arrays in registers are the same as for structs, so remove the
18346 special case for them.
18347
18348 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18349
18350 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18351 destination type, extract only the valid bits if the source type is not
18352 integral and has a different mode.
18353
18354 2014-02-19 Richard Biener <rguenther@suse.de>
18355
18356 PR ipa/60243
18357 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18358 for all calls.
18359
18360 2014-02-19 Richard Biener <rguenther@suse.de>
18361
18362 PR ipa/60243
18363 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18364 (ipa_modify_call_arguments): Emit an argument load explicitely and
18365 preserve virtual SSA form there and for the replacement call.
18366 Do not update SSA form nor free dominance info.
18367
18368 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18369
18370 * ipa.c (function_and_variable_visibility): Also clear WEAK
18371 flag when disolving COMDAT_GROUP.
18372
18373 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18374
18375 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18376 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18377 not devirtualizing.
18378 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18379 do more sanity checks.
18380 (detect_type_change): Return true when giving up early.
18381 (compute_complex_assign_jump_func): Fix type parameter of
18382 ipa_set_ancestor_jf.
18383 (compute_complex_ancestor_jump_func): Likewise.
18384 (update_jump_functions_after_inlining): Fix updating of
18385 ancestor function.
18386 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18387
18388 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18389
18390 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18391 inline clones when edge disappears.
18392
18393 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18394
18395 PR target/60203
18396 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18397 Split 64-bit moves into 2 patterns. Do not allow the use of
18398 direct move for TDmode in little endian, since the decimal value
18399 has little endian bytes within a word, but the 64-bit pieces are
18400 ordered in a big endian fashion, and normal subreg's of TDmode are
18401 not allowed.
18402 (mov<mode>_64bit_dm): Likewise.
18403 (movtd_64bit_nodm): Likewise.
18404
18405 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18406
18407 PR tree-optimization/60174
18408 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18409 statement of an SSA_NAME that occurs in an abnormal PHI node.
18410
18411 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18412
18413 PR sanitizer/60142
18414 * final.c (SEEN_BB): Remove.
18415 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18416 (final_scan_insn): Don't force_source_line on second
18417 NOTE_INSN_BASIC_BLOCK.
18418
18419 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18420
18421 PR target/60205
18422 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18423 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18424 (type_natural_mode): Warn ABI change when %zmm register is not
18425 available for AVX512F vector value passing.
18426
18427 2014-02-18 Kai Tietz <ktietz@redhat.com>
18428
18429 PR target/60193
18430 * config/i386/i386.c (ix86_expand_prologue): Use value in
18431 rax register as displacement when restoring %r10 or %rax.
18432 Fix wrong offset when restoring both registers.
18433
18434 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18435
18436 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18437 assertion with conditional return.
18438
18439 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18440 Uros Bizjak <ubizjak@gmail.com>
18441
18442 PR driver/60233
18443 * config/i386/driver-i386.c (host_detect_local_cpu): If
18444 YMM state is not saved by the OS, also clear has_f16c. Move
18445 CPUID 0x80000001 handling before YMM state saving checking.
18446
18447 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18448
18449 PR rtl-optimization/58960
18450 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18451 factored out from ...
18452 (sched_init): ... here.
18453 (free_global_sched_pressure_data): New, factored out from ...
18454 (sched_finish): ... here.
18455 * sched-int.h (free_global_sched_pressure_data): Declare.
18456 * sched-rgn.c (nr_regions_initial): New static global.
18457 (haifa_find_rgns): Initialize it.
18458 (schedule_region): Disable sched-pressure for the newly
18459 generated regions.
18460
18461 2014-02-17 Richard Biener <rguenther@suse.de>
18462
18463 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18464 release SSA defs of pattern stmts.
18465
18466 2014-02-17 Richard Biener <rguenther@suse.de>
18467
18468 * tree-inline.c (expand_call_inline): Release the virtual
18469 operand defined by the call we are about to inline.
18470
18471 2014-02-17 Richard Biener <rguenther@suse.de>
18472
18473 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18474
18475 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18476 Ilya Tocar <ilya.tocar@intel.com>
18477
18478 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18479 arguments order in builtin.
18480 (_mm512_permutexvar_epi64): Ditto.
18481 (_mm512_mask_permutexvar_epi64): Ditto
18482 (_mm512_maskz_permutexvar_epi32): Ditto
18483 (_mm512_permutexvar_epi32): Ditto
18484 (_mm512_mask_permutexvar_epi32): Ditto
18485
18486 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18487
18488 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18489 (p8_vmrgow): Likewise.
18490
18491 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18492
18493 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18494 endian targets.
18495
18496 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18497
18498 PR target/60203
18499 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18500 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18501 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18502 using direct move instructions on ISA 2.07. Also adjust
18503 instruction length for 64-bit.
18504 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18505 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18506
18507 2014-02-15 Alan Modra <amodra@gmail.com>
18508
18509 PR target/58675
18510 PR target/57935
18511 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18512 find_replacement on parts of insn rtl that might be reloaded.
18513
18514 2014-02-15 Richard Biener <rguenther@suse.de>
18515
18516 PR tree-optimization/60183
18517 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18518 (tree_ssa_phiprop): Calculate and free post-dominators.
18519
18520 2014-02-14 Jeff Law <law@redhat.com>
18521
18522 PR rtl-optimization/60131
18523 * ree.c (get_extended_src_reg): New function.
18524 (combine_reaching_defs): Use it rather than assuming location of REG.
18525 (find_and_remove_re): Verify first operand of extension is
18526 a REG before adding the insns to the copy list.
18527
18528 2014-02-14 Roland McGrath <mcgrathr@google.com>
18529
18530 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18531 * configure: Regenerated.
18532 * config.in: Regenerated.
18533 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18534 instead of ASM_SHORT.
18535
18536 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18537 Richard Earnshaw <rearnsha@arm.com>
18538
18539 PR rtl-optimization/59535
18540 * lra-constraints.c (process_alt_operands): Encourage alternative
18541 when unassigned pseudo class is superset of the alternative class.
18542 (inherit_reload_reg): Don't inherit when optimizing for code size.
18543 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18544 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18545 modes not less than 4 for Thumb1.
18546
18547 2014-02-14 Kyle McMartin <kyle@redhat.com>
18548
18549 PR pch/60010
18550 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18551
18552 2014-02-14 Richard Biener <rguenther@suse.de>
18553
18554 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18555 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18556 Do not strip INDIRECT_REFs.
18557
18558 2014-02-14 Richard Biener <rguenther@suse.de>
18559
18560 PR lto/60179
18561 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18562 DECL_FUNCTION_SPECIFIC_TARGET.
18563 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18564 * tree-streamer-out.c (pack_ts_target_option): Remove.
18565 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18566 (write_ts_function_decl_tree_pointers): Do not stream
18567 DECL_FUNCTION_SPECIFIC_TARGET.
18568 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18569 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18570 (lto_input_ts_function_decl_tree_pointers): Do not stream
18571 DECL_FUNCTION_SPECIFIC_TARGET.
18572
18573 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18574
18575 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18576 (get_initial_def_for_induction, vectorizable_induction): Ignore
18577 debug stmts when looking for exit_phi.
18578 (vectorizable_live_operation): Fix up condition.
18579
18580 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18581
18582 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18583 nreverse() because it changes the content of original tree list.
18584
18585 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18586
18587 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18588 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18589
18590 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18591
18592 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18593 GNU coding standards.
18594
18595 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18596
18597 PR debug/60152
18598 * dwarf2out.c (gen_subprogram_die): Don't call
18599 add_calling_convention_attribute if subr_die is old_die.
18600
18601 2014-02-13 Sharad Singhai <singhai@google.com>
18602
18603 * doc/optinfo.texi: Fix order of nodes.
18604
18605 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
18606
18607 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
18608 operands[2], not operands[3].
18609
18610 2014-02-13 Richard Biener <rguenther@suse.de>
18611
18612 PR bootstrap/59878
18613 * doc/install.texi (ISL): Update recommended version to 0.12.2,
18614 mention the possibility of an in-tree build.
18615 (CLooG): Update recommended version to 0.18.1, mention the
18616 possibility of an in-tree build and clarify that the ISL
18617 bundled with CLooG does not work.
18618
18619 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18620
18621 PR target/43546
18622 * expr.c (compress_float_constant): If x is a hard register,
18623 extend into a pseudo and then move to x.
18624
18625 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
18626
18627 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
18628 caused by bad second argument to warning_at() with -mhotpatch and
18629 nested functions (e.g. with gfortran).
18630
18631 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
18632
18633 * opts.c (option_name): Remove "enabled by default" rider.
18634
18635 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
18636
18637 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
18638
18639 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
18640 Uros Bizjak <ubizjak@gmail.com>
18641
18642 PR target/60151
18643 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
18644 * configure: Regenerated.
18645
18646 2014-02-12 Richard Biener <rguenther@suse.de>
18647
18648 * vec.c (vec_prefix::calculate_allocation): Move as
18649 inline variant to vec.h.
18650 (vec_prefix::calculate_allocation_1): New out-of-line version.
18651 * vec.h (vec_prefix::calculate_allocation_1): Declare.
18652 (vec_prefix::m_has_auto_buf): Rename to ...
18653 (vec_prefix::m_using_auto_storage): ... this.
18654 (vec_prefix::calculate_allocation): Inline the easy cases
18655 and dispatch to calculate_allocation_1 which doesn't need the
18656 prefix address.
18657 (va_heap::reserve): Use gcc_checking_assert.
18658 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
18659 m_using_auto_storage.
18660 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
18661 member and adjust.
18662 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
18663 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
18664 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
18665
18666 2014-02-12 Richard Biener <rguenther@suse.de>
18667
18668 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
18669 when we found a dependence.
18670
18671 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
18672
18673 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
18674 common code...
18675 (maybe_fold_stmt): ... into this new function.
18676 * omp-low.c (lower_omp): Update comment.
18677
18678 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
18679 last use.
18680
18681 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
18682 dereference.
18683
18684 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
18685
18686 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
18687 identifiers in comments.
18688 (cortexa53_extra_costs): Likewise.
18689 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
18690 (cortexa7_extra_costs): Likewise.
18691 (cortexa12_extra_costs): Likewise.
18692 (cortexa15_extra_costs): Likewise.
18693 (v7m_extra_costs): Likewise.
18694
18695 2014-02-12 Richard Biener <rguenther@suse.de>
18696
18697 PR middle-end/60092
18698 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
18699 of posix_memalign being successful.
18700 (lower_stmt): Restrict lowering of posix_memalign to when
18701 -ftree-bit-ccp is enabled.
18702
18703 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18704
18705 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
18706 arg_loc.
18707 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18708
18709 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
18710
18711 PR rtl-optimization/60116
18712 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
18713 other_insn once the combination has been validated.
18714
18715 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
18716
18717 PR lto/59468
18718 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
18719 and wrapper.
18720 * ipa-devirt.c: Include demangle.h
18721 (odr_violation_reported): New static variable.
18722 (add_type_duplicate): Update odr_violations.
18723 (maybe_record_node): Add completep parameter; update it.
18724 (record_target_from_binfo): Add COMPLETEP parameter;
18725 update it as needed.
18726 (possible_polymorphic_call_targets_1): Likewise.
18727 (struct polymorphic_call_target_d): Add nonconstruction_targets;
18728 rename FINAL to COMPLETE.
18729 (record_targets_from_bases): Sanity check we found the binfo;
18730 fix COMPLETEP updating.
18731 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
18732 parameter, fix computing of COMPLETEP.
18733 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
18734 at LTO time do demangling.
18735 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
18736 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
18737 parameter.
18738 (gimple_get_virt_method_for_binfo): Likewise.
18739 * gimple-fold.h (gimple_get_virt_method_for_binfo,
18740 gimple_get_virt_method_for_vtable): Update prototypes.
18741
18742 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
18743
18744 PR target/49008
18745 * genautomata.c (add_presence_absence): Fix typo with
18746 {final_}presence_list.
18747
18748 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18749
18750 PR target/60137
18751 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
18752 for VSX/Altivec vectors that land in GPR registers.
18753
18754 2014-02-11 Richard Henderson <rth@redhat.com>
18755 Jakub Jelinek <jakub@redhat.com>
18756
18757 PR debug/59776
18758 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
18759 around drhs if type conversion to lacc->type is not useless.
18760
18761 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18762
18763 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
18764 tuning struct.
18765 (cortex-a57.cortex-a53): Likewise.
18766 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
18767
18768 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18769
18770 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
18771 arm_restrict_it.
18772
18773 2014-02-11 Renlin Li <Renlin.Li@arm.com>
18774
18775 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
18776 add_options_for_arm_vfp3.
18777
18778 2014-02-11 Jeff Law <law@redhat.com>
18779
18780 PR middle-end/54041
18781 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
18782 object with an undesirable mode.
18783
18784 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18785
18786 PR libgomp/60107
18787 * config/i386/sol2-9.h: New file.
18788 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
18789 *-*-solaris2.9*): Use it.
18790
18791 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18792
18793 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
18794 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
18795
18796 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18797
18798 * config/microblaze/microblaze.c: Extend mcpu version format
18799
18800 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
18801
18802 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
18803
18804 2014-02-10 Richard Henderson <rth@redhat.com>
18805
18806 PR target/59927
18807 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
18808 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
18809 ms-abi vs -mno-accumulate-outgoing-args.
18810 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
18811 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
18812 respect to ms-abi.
18813
18814 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18815
18816 PR middle-end/60080
18817 * cfgexpand.c (expand_asm_operands): Attach source location to
18818 ASM_INPUT rtx objects.
18819 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
18820
18821 2014-02-10 Nick Clifton <nickc@redhat.com>
18822
18823 * config/mn10300/mn10300.c (popcount): New function.
18824 (mn10300_expand_prologue): Include saved registers in stack usage
18825 count.
18826
18827 2014-02-10 Jeff Law <law@redhat.com>
18828
18829 PR middle-end/52306
18830 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
18831 when changing the SET_DEST of a prior insn to avoid an input reload.
18832
18833 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18834
18835 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
18836 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
18837 -mcall-openbsd, or -mcall-linux.
18838 (CC1_ENDIAN_BIG_SPEC): Remove.
18839 (CC1_ENDIAN_LITTLE_SPEC): Remove.
18840 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18841 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
18842 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
18843 and %cc1_endian_default.
18844 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18845
18846 2014-02-10 Richard Biener <rguenther@suse.de>
18847
18848 PR tree-optimization/60115
18849 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
18850 MEM_REF handling. Properly verify that the accesses are not
18851 out of the objects bound.
18852
18853 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18854
18855 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
18856 coretex to cortex.
18857
18858 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
18859
18860 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
18861 proper constants and fix formatting.
18862 (possible_polymorphic_call_targets): Fix formatting.
18863
18864 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
18865 Ilya Tocar <ilya.tocar@intel.com>
18866
18867 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
18868 (_mm512_loadu_epi32): Renamed into...
18869 (_mm512_loadu_si512): This.
18870 (_mm512_storeu_epi32): Renamed into...
18871 (_mm512_storeu_si512): This.
18872 (_mm512_maskz_ceil_ps): Removed.
18873 (_mm512_maskz_ceil_pd): Ditto.
18874 (_mm512_maskz_floor_ps): Ditto.
18875 (_mm512_maskz_floor_pd): Ditto.
18876 (_mm512_floor_round_ps): Ditto.
18877 (_mm512_floor_round_pd): Ditto.
18878 (_mm512_ceil_round_ps): Ditto.
18879 (_mm512_ceil_round_pd): Ditto.
18880 (_mm512_mask_floor_round_ps): Ditto.
18881 (_mm512_mask_floor_round_pd): Ditto.
18882 (_mm512_mask_ceil_round_ps): Ditto.
18883 (_mm512_mask_ceil_round_pd): Ditto.
18884 (_mm512_maskz_floor_round_ps): Ditto.
18885 (_mm512_maskz_floor_round_pd): Ditto.
18886 (_mm512_maskz_ceil_round_ps): Ditto.
18887 (_mm512_maskz_ceil_round_pd): Ditto.
18888 (_mm512_expand_pd): Ditto.
18889 (_mm512_expand_ps): Ditto.
18890 * config/i386/i386.c (ix86_builtins): Remove
18891 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
18892 (bdesc_args): Ditto.
18893 * config/i386/predicates.md (const1256_operand): New.
18894 (const_1_to_2_operand): Ditto.
18895 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18896 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18897 (*avx512pf_gatherpf<mode>sf): Ditto.
18898 (avx512pf_gatherpf<mode>df): Ditto.
18899 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18900 (*avx512pf_gatherpf<mode>df): Ditto.
18901 (avx512pf_scatterpf<mode>sf): Ditto.
18902 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18903 (*avx512pf_scatterpf<mode>sf): Ditto.
18904 (avx512pf_scatterpf<mode>df): Ditto.
18905 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18906 (*avx512pf_scatterpf<mode>df): Ditto.
18907 (avx512f_expand<mode>): Removed.
18908 (<shift_insn><mode>3<mask_name>): Change predicate type.
18909
18910 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18911
18912 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
18913 not at the end of datarefs vector use ordered_remove to avoid
18914 reordering datarefs vector.
18915
18916 PR c/59984
18917 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
18918 mark local addressable non-static vars as GOVD_PRIVATE
18919 instead of GOVD_LOCAL.
18920 * omp-low.c (lower_omp_for): Move gimple_bind_vars
18921 and BLOCK_VARS of gimple_bind_block to new_stmt rather
18922 than copying them.
18923
18924 PR middle-end/60092
18925 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
18926 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
18927 assume_aligned or alloc_align attributes.
18928 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
18929 arguments. Handle also assume_aligned and alloc_align attributes.
18930 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
18931 calls to functions with assume_aligned or alloc_align attributes.
18932 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
18933
18934 2014-02-08 Terry Guo <terry.guo@arm.com>
18935
18936 * doc/invoke.texi: Document ARM -march=armv7e-m.
18937
18938 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18939
18940 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
18941 flag on __cilkrts_rethrow builtin.
18942
18943 PR ipa/60026
18944 * ipa-cp.c (determine_versionability): Fail at -O0
18945 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
18946 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
18947
18948 Revert:
18949 2014-02-04 Jakub Jelinek <jakub@redhat.com>
18950
18951 PR ipa/60026
18952 * tree-inline.c (copy_forbidden): Fail for
18953 __attribute__((optimize (0))) functions.
18954
18955 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18956
18957 * varpool.c: Include pointer-set.h.
18958 (varpool_remove_unreferenced_decls): Variables in other partitions
18959 will not be output; be however careful to not lose information
18960 about partitioning.
18961
18962 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18963
18964 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
18965 lookup in the vtable constructor.
18966
18967 2014-02-07 Jeff Law <law@redhat.com>
18968
18969 PR target/40977
18970 * config/m68k/m68k.md (ashldi_extsi): Turn into a
18971 define_insn_and_split.
18972
18973 * ipa-inline.c (inline_small_functions): Fix typos.
18974
18975 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18976
18977 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
18978 (s390_can_use_return_insn): Declare.
18979 * config/s390/s390.h (EPILOGUE_USES): Define.
18980 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
18981 instructions.
18982 (s390_chunkify_start): Handle return JUMP_LABELs.
18983 (s390_early_mach): Emit a main_pool instruction on the entry edge.
18984 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
18985 (s390_can_use_return_insn): New functions.
18986 (s390_fix_long_loop_prediction): Handle conditional returns.
18987 (TARGET_SET_UP_BY_PROLOGUE): Define.
18988 * config/s390/s390.md (ANY_RETURN): New code iterator.
18989 (*creturn, *csimple_return, return, simple_return): New patterns.
18990
18991 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18992
18993 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
18994 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
18995 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
18996 REG_CFA_RESTORE list when deciding not to restore a register.
18997
18998 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18999
19000 * config/s390/s390.c: Include tree-pass.h and context.h.
19001 (s390_early_mach): New function, split out from...
19002 (s390_emit_prologue): ...here.
19003 (pass_data_s390_early_mach): New pass structure.
19004 (pass_s390_early_mach): New class.
19005 (s390_option_override): Create and register early_mach pass.
19006 Move to end of file.
19007
19008 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19009
19010 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19011 to match for the exit block.
19012
19013 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19014
19015 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19016 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19017 Reject misaligned operands.
19018
19019 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19020
19021 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19022
19023 2014-02-07 Richard Biener <rguenther@suse.de>
19024
19025 PR middle-end/60092
19026 * gimple-low.c (lower_builtin_posix_memalign): New function.
19027 (lower_stmt): Call it to lower posix_memalign in a way
19028 to make alignment info accessible.
19029
19030 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19031
19032 PR c++/60082
19033 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19034 __builtin_setjmp_receiver.
19035
19036 2014-02-07 Richard Biener <rguenther@suse.de>
19037
19038 PR middle-end/60092
19039 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19040 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19041 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19042 Handle BUILT_IN_POSIX_MEMALIGN.
19043 (find_func_clobbers): Likewise.
19044 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19045 (call_may_clobber_ref_p_1): Likewise.
19046
19047 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19048
19049 PR ipa/59918
19050 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19051 sanity check.
19052
19053 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19054
19055 PR ipa/59469
19056 * lto-cgraph.c (lto_output_node): Use
19057 symtab_get_symbol_partitioning_class.
19058 (lto_output_varpool_node): likewise.
19059 (symtab_get_symbol_partitioning_class): Move here from
19060 lto/lto-partition.c
19061 * cgraph.h (symbol_partitioning_class): Likewise.
19062 (symtab_get_symbol_partitioning_class): Declare.
19063
19064 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19065
19066 * ggc.h (ggc_internal_cleared_alloc): New macro.
19067 * vec.h (vec_safe_copy): Handle memory stats.
19068 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19069 * target-globals.c (save_target_globals): Likewise.
19070
19071 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19072
19073 PR target/60077
19074 * expr.c (emit_move_resolve_push): Export; be bit more selective
19075 on when to clear alias set.
19076 * expr.h (emit_move_resolve_push): Declare.
19077 * function.h (struct function): Add tail_call_marked.
19078 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19079 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19080 * config/i386/i386.md (TImode move expander): De not call
19081 ix86_expand_push.
19082 (FP push expanders): Preserve memory attributes.
19083 * config/i386/sse.md (push<mode>1): Remove.
19084 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19085 (ix86_expand_push): Remove.
19086 * config/i386/mmx.md (push<mode>1): Remove.
19087
19088 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19089
19090 PR rtl-optimization/60030
19091 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19092 lopart with paradoxical subreg before shifting it up by hprec.
19093
19094 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19095
19096 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19097 Remove extra newline at end of file.
19098 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19099 (arm_issue_rate): Handle cortexa57.
19100 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19101 (cortex-a57.cortex-a53): Likewise.
19102
19103 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19104
19105 PR target/59575
19106 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19107 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19108 bitmask.
19109 (arm_expand_prologue): Adjust all callers.
19110 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19111 info, registers also at the lowest numbered registers side. Use
19112 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19113 XEXP.
19114
19115 PR debug/59992
19116 * var-tracking.c (adjust_mems): Before adding a SET to
19117 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19118
19119 2014-02-06 Alan Modra <amodra@gmail.com>
19120
19121 PR target/60032
19122 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19123 change SDmode to DDmode when lra_in_progress.
19124
19125 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19126
19127 PR middle-end/59150
19128 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19129 free_data_ref on the dr first, and before goto again also set dr
19130 to the next dr. For simd_lane_access, free old datarefs[i] before
19131 overwriting it. For get_vectype_for_scalar_type failure, don't
19132 free_data_ref if simd_lane_access.
19133
19134 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19135
19136 PR target/60062
19137 * tree.h (opts_for_fn): New inline function.
19138 (opt_for_fn): Define.
19139 * config/i386/i386.c (ix86_function_regparm): Use
19140 opt_for_fn (decl, optimize) instead of optimize.
19141
19142 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19143
19144 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19145 for SYMBOL_REF in large memory model.
19146
19147 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19148
19149 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19150 and crypto support.
19151 (cortex-a57): Likewise.
19152 (cortex-a57.cortex-a53): Likewise.
19153
19154 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19155 Kugan Vivekanandarajah <kuganv@linaro.org>
19156
19157 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19158 unaligned_access.
19159 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19160
19161 2014-02-06 Richard Biener <rguenther@suse.de>
19162
19163 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19164 set_loop_copy and initialize_original_copy_tables.
19165
19166 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19167
19168 * config/aarch64/aarch64-simd.md
19169 (aarch64_ashr_simddi): Change QI to SI.
19170
19171 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19172 Jakub Jelinek <jakub@redhat.com>
19173
19174 PR middle-end/60013
19175 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19176 of the dataflow.
19177
19178 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19179
19180 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19181 CODE_FOR_altivec_vpku[hw]um to
19182 CODE_FOR_altivec_vpku[hw]um_direct.
19183 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19184 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19185 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19186 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19187
19188 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19189
19190 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19191 generation for -maltivec=be.
19192 (altivec_vsumsws): Simplify redundant test.
19193
19194 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19195
19196 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19197 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19198 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19199 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19200 gen_altivec_vpkuwum.
19201 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19202 BYTES_BIG_ENDIAN.
19203 (altivec_vpks<VI_char>ss): Likewise.
19204 (altivec_vpks<VI_char>us): Likewise.
19205 (altivec_vpku<VI_char>us): Likewise.
19206 (altivec_vpku<VI_char>um): Likewise.
19207 (altivec_vpku<VI_char>um_direct): New (copy of
19208 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19209 internal use).
19210 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19211 target is little endian and -maltivec=be is not specified.
19212 (*altivec_vupkhs<VU_char>_direct): New (copy of
19213 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19214 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19215 target is little endian and -maltivec=be is not specified.
19216 (*altivec_vupkls<VU_char>_direct): New (copy of
19217 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19218 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19219 little endian and -maltivec=be is not specified.
19220 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19221 little endian and -maltivec=be is not specified.
19222
19223 2014-02-05 Richard Henderson <rth@redhat.com>
19224
19225 PR debug/52727
19226 * combine-stack-adj.c: Revert r206943.
19227 * sched-int.h (struct deps_desc): Add last_args_size.
19228 * sched-deps.c (init_deps): Initialize it.
19229 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19230 contain REG_ARGS_SIZE notes.
19231
19232 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19233
19234 * lto-cgraph.c (asm_nodes_output): Make global.
19235 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19236 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19237 (driver_handle_option): Handle OPT_fwpa.
19238
19239 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19240
19241 PR ipa/59947
19242 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19243 a comment typo and formatting issue. If odr_hash hasn't been
19244 created, return vNULL and set *completep to false.
19245
19246 PR middle-end/57499
19247 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19248 bb with no successors.
19249
19250 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19251
19252 PR target/59718
19253 * doc/invoke.texi (-march): Clarify documentation for ARM.
19254 (-mtune): Likewise.
19255 (-mcpu): Likewise.
19256
19257 2014-02-05 Richard Biener <rguenther@suse.de>
19258
19259 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19260 when not vectorizing because of too many alias checks.
19261 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19262 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19263
19264 2014-02-05 Nick Clifton <nickc@redhat.com>
19265
19266 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19267 accept extended registers in any mode when compiling for the MN10300.
19268
19269 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19270
19271 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19272 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19273 sanitization attributes.
19274 (can_inline_edge_p): Likewise.
19275 (sanitize_attrs_match_for_inline_p): New function.
19276
19277 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19278
19279 * ipa-prop.c (detect_type_change): Shor circuit testing of
19280 type changes on THIS pointer.
19281
19282 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19283
19284 PR target/59777
19285 * config/pa/pa.c (legitimize_tls_address): Return original address
19286 if not passed a SYMBOL_REF rtx.
19287 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19288 addresses.
19289 (pa_emit_move_sequence): Simplify TLS source operands.
19290 (pa_legitimate_constant_p): Reject all TLS constants.
19291 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19292 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19293
19294 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19295
19296 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19297 groups when we know they are controlled by LTO.
19298 * varasm.c (default_binds_local_p_1): If object is in other partition,
19299 it will be resolved locally.
19300
19301 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19302
19303 * config/host-linux.c (linux_gt_pch_use_address): Don't
19304 use SSIZE_MAX because it is not always defined.
19305
19306 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19307
19308 PR bootstrap/59913
19309 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19310 threshold for pseudo splitting.
19311 (update_ebb_live_info): Process call argument hard registers and
19312 hard registers from insn definition too.
19313 (max_small_class_regs_num): New constant.
19314 (inherit_in_ebb): Update live hard regs through EBBs. Update
19315 reloads_num only for small register classes. Don't split for
19316 outputs of jumps.
19317
19318 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19319
19320 PR ipa/60058
19321 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19322 is non-null.
19323
19324 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19325
19326 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19327 visibility is safe.
19328
19329 2014-02-04 Marek Polacek <polacek@redhat.com>
19330
19331 * gdbinit.in (pel): Define.
19332
19333 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19334
19335 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19336 behavior.
19337
19338 2014-02-04 Richard Biener <rguenther@suse.de>
19339
19340 PR lto/59723
19341 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19342 in function context local.
19343 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19344 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19345 similar to LTO_imported_decl_ref.
19346
19347 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19348
19349 PR tree-optimization/60002
19350 * cgraphclones.c (build_function_decl_skip_args): Clear
19351 DECL_LANG_SPECIFIC.
19352
19353 PR tree-optimization/60023
19354 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19355 false to gsi_replace.
19356 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19357 has been in some EH region and vec_stmt could throw, add
19358 vec_stmt into the same EH region.
19359 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19360 has no lhs, ignore it.
19361 * internal-fn.c (expand_MASK_LOAD): Likewise.
19362
19363 PR ipa/60026
19364 * tree-inline.c (copy_forbidden): Fail for
19365 __attribute__((optimize (0))) functions.
19366
19367 PR other/58712
19368 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19369 is set, copy one less argument.
19370 (expand_simd_clones): Don't subtract clone_info->inbranch
19371 from simd_clone_struct_alloc argument.
19372
19373 PR rtl-optimization/57915
19374 * recog.c (simplify_while_replacing): If all unary/binary/relational
19375 operation arguments are constant, attempt to simplify those.
19376
19377 PR middle-end/59261
19378 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19379 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19380
19381 2014-02-04 Richard Biener <rguenther@suse.de>
19382
19383 PR tree-optimization/60012
19384 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19385 TBAA disambiguation to all DDRs.
19386
19387 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19388
19389 PR target/59788
19390 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19391 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19392
19393 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19394
19395 PR ipa/59882
19396 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19397
19398 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19399
19400 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19401 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19402
19403 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19404
19405 PR ipa/59831
19406 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19407 to figure out targets of polymorphic calls with known decl.
19408 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19409 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19410 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19411 (get_polymorphic_call_info): ... here.
19412 (get_polymorphic_call_info_from_invariant): New function.
19413
19414 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19415
19416 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19417 lookup via vtable pointer; check for type consistency
19418 and turn inconsitent facts into UNREACHABLE.
19419 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19420 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19421 type inconsistent querries; return UNREACHABLE instead.
19422
19423 2014-02-03 Richard Henderson <rth@twiddle.net>
19424
19425 PR tree-opt/59924
19426 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19427 already processed this node.
19428 (normalize_one_pred_1): Pass along mark_set.
19429 (normalize_one_pred): Create and destroy a pointer_set_t.
19430 (normalize_one_pred_chain): Likewise.
19431
19432 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19433
19434 PR gcov-profile/58602
19435 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19436
19437 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19438
19439 PR ipa/59831
19440 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19441 -fno-devirtualize; try to devirtualize by the knowledge of
19442 virtual table pointer given by aggregate propagation.
19443 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19444 (ipa_print_node_jump_functions): Dump also offset that
19445 is relevant for polymorphic calls.
19446 (determine_known_aggregate_parts): Add arg_type parameter; use it
19447 instead of determining the type from pointer type.
19448 (ipa_compute_jump_functions_for_edge): Update call of
19449 determine_known_aggregate_parts.
19450 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19451 (gimple_get_virt_method_for_binfo): ... here; simplify using
19452 vtable_pointer_value_to_vtable.
19453 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19454 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19455 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19456 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19457 POINTER_PLUS_EXPR.
19458 (vtable_pointer_value_to_binfo): ... here.
19459 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19460
19461 2014-02-03 Teresa Johnson <tejohnson@google.com>
19462
19463 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19464 redef of outer loop index variable.
19465
19466 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19467
19468 PR c++/53017
19469 PR c++/59211
19470 * doc/extend.texi (Function Attributes): Typo.
19471
19472 2014-02-03 Cong Hou <congh@google.com>
19473
19474 PR tree-optimization/60000
19475 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19476 if the vectorized statement is a store. A store statement can only
19477 appear at the end of pattern statements.
19478
19479 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19480
19481 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19482 (ix86_option_override_internal): Default long double to 64-bit for
19483 32-bit Bionic and to 128-bit for 64-bit Bionic.
19484
19485 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19486 TARGET_LONG_DOUBLE_128 is true.
19487 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19488
19489 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19490 (mlong-double-64): Negate -mlong-double-128.
19491 (mlong-double-128): New option.
19492
19493 * config/i386/i386-c.c (ix86_target_macros): Define
19494 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19495
19496 * doc/invoke.texi: Document -mlong-double-128.
19497
19498 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19499
19500 PR rtl-optimization/60024
19501 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19502
19503 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19504
19505 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19506
19507 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19508
19509 PR rtl-optimization/57662
19510 * sel-sched.c (code_motion_path_driver): Do not mark already not
19511 existing blocks in the visiting bitmap.
19512
19513 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19514
19515 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19516 on the insn being emitted.
19517
19518 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19519 Will Deacon <will.deacon@arm.com>
19520
19521 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19522
19523 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19524
19525 * config/arm/arm-tables.opt: Regenerate.
19526
19527 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19528
19529 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19530 for vector types other than V16QImode.
19531 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19532 define_expand, and call altivec_expand_vec_perm_le when producing
19533 code with little endian element order.
19534 (*altivec_vperm_<mode>_internal): New insn having previous
19535 behavior of altivec_vperm_<mode>.
19536 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19537 altivec_expand_vec_perm_le when producing code with little endian
19538 element order.
19539 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19540 behavior of altivec_vperm_<mode>_uns.
19541
19542 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19543
19544 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19545 (altivec_vsumsws): Add handling for -maltivec=be with a little
19546 endian target.
19547 (altivec_vsumsws_direct): New.
19548 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19549 gen_altivec_vsumsws.
19550
19551 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19552
19553 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19554 vtable_pointer_value_to_binfo): New functions.
19555 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19556 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19557
19558 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19559
19560 * config/nios2/nios2.md (load_got_register): Initialize GOT
19561 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19562 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19563
19564 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19565
19566 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19567 preserverd by passthrough, do not propagate the type.
19568
19569 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19570
19571 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19572 (mips_atomic_assign_expand_fenv): New function.
19573 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19574
19575 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19576
19577 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19578 (__builtin_mips_set_fcsr): Likewise.
19579 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19580 MIPS_USI_FTYPE_VOID.
19581 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19582 (mips16_expand_set_fcsr): Likewise.
19583 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19584 (mips16_set_fcsr_stub): Likewise.
19585 (mips16_get_fcsr_one_only_stub): New class.
19586 (mips16_set_fcsr_one_only_stub): Likewise.
19587 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19588 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19589 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19590 (hard_float): New availability predicate.
19591 (mips_builtins): Add get_fcsr and set_fcsr.
19592 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19593 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19594 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19595 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19596 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19597 patterns.
19598
19599 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19600
19601 * config/mips/mips.c (mips_one_only_stub): New class.
19602 (mips_need_mips16_rdhwr_p): Replace with...
19603 (mips16_rdhwr_stub): ...this new variable.
19604 (mips16_stub_call_address): New function.
19605 (mips16_rdhwr_one_only_stub): New class.
19606 (mips_expand_thread_pointer): Use mips16_stub_call_address.
19607 (mips_output_mips16_rdhwr): Delete.
19608 (mips_finish_stub): New function.
19609 (mips_code_end): Use it to handle rdhwr stubs.
19610
19611 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
19612
19613 PR target/60017
19614 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
19615 when calculating size of integer atomic types.
19616
19617 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
19618
19619 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
19620
19621 2014-02-01 Jakub Jelinek <jakub@redhat.com>
19622
19623 PR tree-optimization/60003
19624 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
19625 * profile.c (branch_prob): Use gimple_call_builtin_p
19626 to check for BUILT_IN_SETJMP_RECEIVER.
19627 * tree-inline.c (copy_bb): Call notice_special_calls.
19628
19629 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
19630
19631 PR bootstrap/59985
19632 * lra-constraints.c (process_alt_operands): Update reload_sum only
19633 on the first pass.
19634
19635 2014-01-31 Richard Henderson <rth@redhat.com>
19636
19637 PR middle-end/60004
19638 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
19639 until after else_eh is processed.
19640
19641 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19642
19643 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
19644 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
19645 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
19646 in smmintrin.h, remove them.
19647 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
19648 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
19649 * config/i386/i386.md (ROUND_SAE): Fix value.
19650 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
19651 (const48_operand): New.
19652 * config/i386/subst.md (round), (round_expand): Use
19653 const_4_or_8_to_11_operand.
19654 (round_saeonly), (round_saeonly_expand): Use const48_operand.
19655
19656 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19657
19658 * config/i386/constraints.md (Yk): Swap meaning with k.
19659 * config/i386/i386.md (movhi_internal): Change Yk to k.
19660 (movqi_internal): Ditto.
19661 (*k<logic><mode>): Ditto.
19662 (*andhi_1): Ditto.
19663 (*andqi_1): Ditto.
19664 (kandn<mode>): Ditto.
19665 (*<code>hi_1): Ditto.
19666 (*<code>qi_1): Ditto.
19667 (kxnor<mode>): Ditto.
19668 (kortestzhi): Ditto.
19669 (kortestchi): Ditto.
19670 (kunpckhi): Ditto.
19671 (*one_cmplhi2_1): Ditto.
19672 (*one_cmplqi2_1): Ditto.
19673 * config/i386/sse.md (): Change k to Yk.
19674 (avx512f_load<mode>_mask): Ditto.
19675 (avx512f_blendm<mode>): Ditto.
19676 (avx512f_store<mode>_mask): Ditto.
19677 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
19678 (avx512f_storedqu<mode>_mask): Ditto.
19679 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
19680 Ditto.
19681 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
19682 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
19683 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
19684 (avx512f_maskcmp<mode>3): Ditto.
19685 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
19686 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
19687 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
19688 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
19689 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
19690 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
19691 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
19692 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
19693 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
19694 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
19695 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
19696 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
19697 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
19698 (vec_extract_lo_<mode>_maskm): Ditto.
19699 (vec_extract_hi_<mode>_maskm): Ditto.
19700 (avx512f_vternlog<mode>_mask): Ditto.
19701 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
19702 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
19703 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
19704 (avx512f_<code>v8div16qi2_mask): Ditto.
19705 (avx512f_<code>v8div16qi2_mask_store): Ditto.
19706 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
19707 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
19708 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
19709 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
19710 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19711 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19712 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19713 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19714 (avx512cd_maskb_vec_dupv8di): Ditto.
19715 (avx512cd_maskw_vec_dupv16si): Ditto.
19716 (avx512f_vpermi2var<mode>3_maskz): Ditto.
19717 (avx512f_vpermi2var<mode>3_mask): Ditto.
19718 (avx512f_vpermi2var<mode>3_mask): Ditto.
19719 (avx512f_vpermt2var<mode>3_maskz): Ditto.
19720 (*avx512f_gathersi<mode>): Ditto.
19721 (*avx512f_gathersi<mode>_2): Ditto.
19722 (*avx512f_gatherdi<mode>): Ditto.
19723 (*avx512f_gatherdi<mode>_2): Ditto.
19724 (*avx512f_scattersi<mode>): Ditto.
19725 (*avx512f_scatterdi<mode>): Ditto.
19726 (avx512f_compress<mode>_mask): Ditto.
19727 (avx512f_compressstore<mode>_mask): Ditto.
19728 (avx512f_expand<mode>_mask): Ditto.
19729 * config/i386/subst.md (mask): Change k to Yk.
19730 (mask_scalar_merge): Ditto.
19731 (sd): Ditto.
19732
19733 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
19734
19735 * doc/extend.texi (Vector Extensions): Document ?: in C++.
19736
19737 2014-01-31 Richard Biener <rguenther@suse.de>
19738
19739 PR middle-end/59990
19740 * builtins.c (fold_builtin_memory_op): Make sure to not
19741 use a floating-point mode or a boolean or enumeral type for
19742 the copy operation.
19743
19744 2014-01-30 DJ Delorie <dj@redhat.com>
19745
19746 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
19747 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
19748 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
19749 whenever main() has an epilogue.
19750
19751 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19752
19753 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
19754 unused variable "field".
19755 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
19756 (vsx_mergeh_<mode>): Likewise.
19757 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
19758 (altivec_vmrghh): Likewise.
19759 (altivec_vmrghw): Likewise.
19760 (altivec_vmrglb): Likewise.
19761 (altivec_vmrglh): Likewise.
19762 (altivec_vmrglw): Likewise.
19763 (altivec_vspltb): Add missing uses.
19764 (altivec_vsplth): Likewise.
19765 (altivec_vspltw): Likewise.
19766 (altivec_vspltsf): Likewise.
19767
19768 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19769
19770 PR target/59923
19771 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
19772 frame related instructions.
19773
19774 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
19775
19776 PR rtl-optimization/59959
19777 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
19778 any reload of register whose subreg is invalid.
19779
19780 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19781
19782 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
19783 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
19784 Add missing return type - void.
19785
19786 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19787
19788 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
19789 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
19790 remove element index adjustment for endian (now handled in vsx.md
19791 and altivec.md).
19792 (altivec_expand_vec_perm_const): Use
19793 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
19794 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
19795 (vsx_xxspltw_<mode>): Adjust element index for little endian.
19796 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
19797 define_expand and a new define_insn *altivec_vspltb_internal;
19798 adjust for -maltivec=be on a little endian target.
19799 (altivec_vspltb_direct): New.
19800 (altivec_vsplth): Divide into a define_expand and a new
19801 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
19802 little endian target.
19803 (altivec_vsplth_direct): New.
19804 (altivec_vspltw): Divide into a define_expand and a new
19805 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
19806 little endian target.
19807 (altivec_vspltw_direct): New.
19808 (altivec_vspltsf): Divide into a define_expand and a new
19809 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
19810 a little endian target.
19811
19812 2014-01-30 Richard Biener <rguenther@suse.de>
19813
19814 PR tree-optimization/59993
19815 * tree-ssa-forwprop.c (associate_pointerplus): Check we
19816 can propagate form the earlier stmt and avoid the transform
19817 when the intermediate result is needed.
19818
19819 2014-01-30 Alangi Derick <alangiderick@gmail.com>
19820
19821 * README.Portability: Fix typo.
19822
19823 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
19824
19825 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
19826 comparison_operator with ordered_comparison_operator.
19827
19828 2014-01-30 Nick Clifton <nickc@redhat.com>
19829
19830 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
19831 Rename to mn10300_store_multiple_regs.
19832 * config/mn10300/mn10300.c: Likewise.
19833 * config/mn10300/mn10300.md (store_movm): Fix typo: call
19834 store_multiple_regs.
19835 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
19836 Call mn10300_store_multiple_regs.
19837
19838 2014-01-30 Nick Clifton <nickc@redhat.com>
19839 DJ Delorie <dj@redhat.com>
19840
19841 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
19842 %fp 2 to keep registers after it properly word-aligned.
19843 (rl78_alloc_physical_registers_umul): Handle the case where both
19844 input operands are the same.
19845
19846 2014-01-30 Richard Biener <rguenther@suse.de>
19847
19848 PR tree-optimization/59903
19849 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
19850 check properly.
19851
19852 2014-01-30 Jason Merrill <jason@redhat.com>
19853
19854 PR c++/59633
19855 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
19856
19857 PR c++/59645
19858 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
19859
19860 2014-01-30 Richard Biener <rguenther@suse.de>
19861
19862 PR tree-optimization/59951
19863 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
19864
19865 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
19866
19867 PR target/59784
19868 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
19869 SFmode to DFmode case.
19870
19871 2014-01-29 DJ Delorie <dj@redhat.com>
19872
19873 * config/msp430/msp430.opt (-minrt): New.
19874 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
19875 if -minrt given.
19876 (ENDFILE_SPEC): Likewise.
19877
19878 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
19879
19880 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
19881 (estimate_function_body_sizes): Use it.
19882
19883 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
19884
19885 PR c++/58561
19886 * dwarf2out.c (is_cxx_auto): New.
19887 (is_base_type): Use it.
19888 (gen_type_die_with_usage): Likewise.
19889
19890 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19891
19892 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
19893 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
19894 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
19895 -maltivec=be with LE targets.
19896 (vsx_mergeh_<mode>): Likewise.
19897 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
19898 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
19899 (altivec_vmrghb): Replace with define_expand and new
19900 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
19901 (altivec_vmrghb_direct): New define_insn.
19902 (altivec_vmrghh): Replace with define_expand and new
19903 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
19904 (altivec_vmrghh_direct): New define_insn.
19905 (altivec_vmrghw): Replace with define_expand and new
19906 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
19907 (altivec_vmrghw_direct): New define_insn.
19908 (*altivec_vmrghsf): Adjust for endianness.
19909 (altivec_vmrglb): Replace with define_expand and new
19910 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
19911 (altivec_vmrglb_direct): New define_insn.
19912 (altivec_vmrglh): Replace with define_expand and new
19913 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
19914 (altivec_vmrglh_direct): New define_insn.
19915 (altivec_vmrglw): Replace with define_expand and new
19916 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
19917 (altivec_vmrglw_direct): New define_insn.
19918 (*altivec_vmrglsf): Adjust for endianness.
19919 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19920 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19921 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19922 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19923 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19924 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19925 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19926 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19927
19928 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
19929
19930 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
19931 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
19932 whitespace.
19933
19934 2014-01-29 Richard Biener <rguenther@suse.de>
19935
19936 PR tree-optimization/58742
19937 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
19938 associate_pointerplus_align.
19939 (associate_pointerplus_diff): New function.
19940 (associate_pointerplus): Likewise. Call associate_pointerplus_align
19941 and associate_pointerplus_diff.
19942
19943 2014-01-29 Richard Biener <rguenther@suse.de>
19944
19945 * lto-streamer.h (LTO_major_version): Bump to 3.
19946 (LTO_minor_version): Reset to 0.
19947
19948 2014-01-29 Renlin Li <Renlin.Li@arm.com>
19949
19950 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
19951 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
19952 (arm_file_start): Generate correct asm header for armv7ve.
19953 * config/arm/bpabi.h: Add multilib support for armv7ve.
19954 * config/arm/driver-arm.c: Change the architectures of cortex-a7
19955 and cortex-a15 to armv7ve.
19956 * config/arm/t-aprofile: Add multilib support for armv7ve.
19957 * doc/invoke.texi: Document -march=armv7ve.
19958
19959 2014-01-29 Richard Biener <rguenther@suse.de>
19960
19961 PR tree-optimization/58742
19962 * tree-ssa-forwprop.c (associate_plusminus): Return true
19963 if we changed sth, defer EH cleanup to ...
19964 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
19965 (simplify_mult): New function.
19966
19967 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19968
19969 PR middle-end/59917
19970 PR tree-optimization/59920
19971 * tree.c (build_common_builtin_nodes): Remove
19972 __builtin_setjmp_dispatcher initialization.
19973 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
19974 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
19975 instead of gsi_after_labels + manually skipping debug stmts.
19976 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
19977 ignore bbs with IFN_ABNORMAL_DISPATCHER.
19978 * tree-inline.c (copy_edges_for_bb): Remove
19979 can_make_abnormal_goto argument, instead add abnormal_goto_dest
19980 argument. Ignore computed_goto_p stmts. Don't call
19981 make_abnormal_goto_edges. If a call might need abnormal edges
19982 for non-local gotos, see if it already has an edge to
19983 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
19984 with true argument, don't do anything then, otherwise add
19985 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
19986 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
19987 caller.
19988 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
19989 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
19990 (lower_stmt): Don't set data->calls_builtin_setjmp.
19991 (lower_builtin_setjmp): Adjust comment.
19992 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
19993 * tree-cfg.c (found_computed_goto): Remove.
19994 (factor_computed_gotos): Remove.
19995 (make_goto_expr_edges): Return bool, true for computed gotos.
19996 Don't call make_abnormal_goto_edges.
19997 (build_gimple_cfg): Don't set found_computed_goto, don't call
19998 factor_computed_gotos.
19999 (computed_goto_p): No longer static.
20000 (make_blocks): Don't set found_computed_goto.
20001 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
20002 (make_edges): If make_goto_expr_edges returns true, push bb
20003 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
20004 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
20005 vector. Record mapping between bbs and OpenMP regions if there
20006 are any, adjust make_gimple_omp_edges caller. Call
20007 handle_abnormal_edges.
20008 (make_abnormal_goto_edges): Remove.
20009 * tree-cfg.h (make_abnormal_goto_edges): Remove.
20010 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20011 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20012 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20013 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20014 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20015 filling *region also set *region_idx to (*region)->entry->index.
20016
20017 PR other/58712
20018 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20019 For REGs set ORIGINAL_REGNO.
20020
20021 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20022
20023 * doc/md.texi: Mention that a target shouldn't implement
20024 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20025 than hi/lo pair.
20026
20027 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20028
20029 PR tree-optimization/59594
20030 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20031 a copy of the datarefs vector rather than the vector itself.
20032
20033 2014-01-28 Jason Merrill <jason@redhat.com>
20034
20035 PR c++/53756
20036 * dwarf2out.c (auto_die): New static.
20037 (gen_type_die_with_usage): Handle C++1y 'auto'.
20038 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20039 on definition.
20040
20041 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20042
20043 PR target/59672
20044 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20045 (SPEC_X32): Likewise.
20046 (SPEC_64): Likewise.
20047 * config/i386/i386.c (ix86_option_override_internal): Turn off
20048 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20049 for TARGET_16BIT.
20050 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20051 * config/i386/i386.h (TARGET_16BIT): New macro.
20052 (TARGET_16BIT_P): Likewise.
20053 * config/i386/i386.opt: Add m16.
20054 * doc/invoke.texi: Document -m16.
20055
20056 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20057
20058 PR preprocessor/59935
20059 * input.c (location_get_source_line): Bail out on when line number
20060 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20061
20062 2014-01-28 Richard Biener <rguenther@suse.de>
20063
20064 PR tree-optimization/58742
20065 * tree-ssa-forwprop.c (associate_plusminus): Handle
20066 pointer subtraction of the form (T)(P + A) - (T)P.
20067
20068 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20069
20070 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20071 at const_int_cost.
20072
20073 2014-01-28 Richard Biener <rguenther@suse.de>
20074
20075 Revert
20076 2014-01-28 Richard Biener <rguenther@suse.de>
20077
20078 PR rtl-optimization/45364
20079 PR rtl-optimization/59890
20080 * var-tracking.c (local_get_addr_clear_given_value): Handle
20081 already cleared slot.
20082 (val_reset): Handle not allocated local_get_addr_cache.
20083 (vt_find_locations): Use post-order on the inverted CFG.
20084
20085 2014-01-28 Richard Biener <rguenther@suse.de>
20086
20087 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20088
20089 2014-01-28 Richard Biener <rguenther@suse.de>
20090
20091 PR rtl-optimization/45364
20092 PR rtl-optimization/59890
20093 * var-tracking.c (local_get_addr_clear_given_value): Handle
20094 already cleared slot.
20095 (val_reset): Handle not allocated local_get_addr_cache.
20096 (vt_find_locations): Use post-order on the inverted CFG.
20097
20098 2014-01-28 Alan Modra <amodra@gmail.com>
20099
20100 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20101 * configure.ac <recursive call for build != host>: Define
20102 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20103 and LD_FOR_BUILD too.
20104 * configure: Regenerate.
20105
20106 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20107
20108 * config/i386/i386.c (get_builtin_code_for_version): Separate
20109 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20110 Broadwell from Haswell.
20111
20112 2014-01-27 Steve Ellcey <sellcey@mips.com>
20113
20114 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20115 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20116 * config/mips/mips.c (mips_option_override): Change setting
20117 of TARGET_DSP.
20118 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20119 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20120 Change from Mask to Var.
20121
20122 2014-01-27 Jeff Law <law@redhat.com>
20123
20124 * ipa-inline.c (inline_small_functions): Fix typo.
20125
20126 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20127
20128 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20129 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20130 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20131 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20132 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20133 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20134 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20135 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20136 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20137 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20138 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20139 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20140 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20141 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20142 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20143 (_mm512_storeu_epi64): Ditto.
20144 (_mm512_cmpge_epi32_mask): Ditto.
20145 (_mm512_cmpge_epu32_mask): Ditto.
20146 (_mm512_cmpge_epi64_mask): Ditto.
20147 (_mm512_cmpge_epu64_mask): Ditto.
20148 (_mm512_cmple_epi32_mask): Ditto.
20149 (_mm512_cmple_epu32_mask): Ditto.
20150 (_mm512_cmple_epi64_mask): Ditto.
20151 (_mm512_cmple_epu64_mask): Ditto.
20152 (_mm512_cmplt_epi32_mask): Ditto.
20153 (_mm512_cmplt_epu32_mask): Ditto.
20154 (_mm512_cmplt_epi64_mask): Ditto.
20155 (_mm512_cmplt_epu64_mask): Ditto.
20156 (_mm512_cmpneq_epi32_mask): Ditto.
20157 (_mm512_cmpneq_epu32_mask): Ditto.
20158 (_mm512_cmpneq_epi64_mask): Ditto.
20159 (_mm512_cmpneq_epu64_mask): Ditto.
20160 (_mm512_expand_pd): Ditto.
20161 (_mm512_expand_ps): Ditto.
20162 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20163 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20164 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20165 * config/i386/i386.c (ix86_builtins): Add
20166 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20167 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20168 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20169 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20170 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20171 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20172 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20173 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20174 IX86_BUILTIN_PMOVUSQW512_MEM.
20175 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20176 __builtin_ia32_pmovsqd512mem_mask,
20177 __builtin_ia32_pmovqd512mem_mask,
20178 __builtin_ia32_pmovusqw512mem_mask,
20179 __builtin_ia32_pmovsqw512mem_mask,
20180 __builtin_ia32_pmovqw512mem_mask,
20181 __builtin_ia32_pmovusdw512mem_mask,
20182 __builtin_ia32_pmovsdw512mem_mask,
20183 __builtin_ia32_pmovdw512mem_mask,
20184 __builtin_ia32_pmovqb512mem_mask,
20185 __builtin_ia32_pmovusqb512mem_mask,
20186 __builtin_ia32_pmovsqb512mem_mask,
20187 __builtin_ia32_pmovusdb512mem_mask,
20188 __builtin_ia32_pmovsdb512mem_mask,
20189 __builtin_ia32_pmovdb512mem_mask.
20190 (bdesc_args): Add __builtin_ia32_expanddf512,
20191 __builtin_ia32_expandsf512.
20192 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20193 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20194 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20195 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20196 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20197 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20198 (avx512f_<code>v8div16qi2_mask_store): This.
20199 (avx512f_expand<mode>): New.
20200
20201 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20202
20203 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20204 New.
20205 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20206 (_mm512_prefetch_i32scatter_pd): Ditto.
20207 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20208 (_mm512_prefetch_i64scatter_pd): Ditto.
20209 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20210 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20211 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20212 (_mm512_prefetch_i32scatter_ps): Ditto.
20213 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20214 (_mm512_prefetch_i64scatter_ps): Ditto.
20215 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20216 * config/i386/i386-builtin-types.def: Define
20217 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20218 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20219 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20220 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20221 IX86_BUILTIN_SCATTERPFQPD.
20222 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20223 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20224 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20225 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20226 __builtin_ia32_scatterpfqps.
20227 (ix86_expand_builtin): Expand new built-ins.
20228 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20229 fix memory access data type.
20230 (*avx512pf_gatherpf<mode>_mask): Ditto.
20231 (*avx512pf_gatherpf<mode>): Ditto.
20232 (avx512pf_scatterpf<mode>): Ditto.
20233 (*avx512pf_scatterpf<mode>_mask): Ditto.
20234 (*avx512pf_scatterpf<mode>): Ditto.
20235 (GATHER_SCATTER_SF_MEM_MODE): New.
20236 (avx512pf_gatherpf<mode>df): Ditto.
20237 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20238 (*avx512pf_scatterpf<mode>df): Ditto.
20239
20240 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20241
20242 PR bootstrap/59934
20243 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20244 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20245 reached.
20246
20247 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20248
20249 * common/config/arm/arm-common.c
20250 (arm_rewrite_mcpu): Handle multiple names.
20251 * config/arm/arm.h
20252 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20253
20254 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20255
20256 * gimple-builder.h (create_gimple_tmp): Delete.
20257
20258 2014-01-27 Christian Bruel <christian.bruel@st.com>
20259
20260 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20261 words comparisons.
20262
20263 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20264
20265 * config/pa/pa.md (call): Generate indirect long calls to non-local
20266 functions when outputing 32-bit code.
20267 (call_value): Likewise except for special call to buggy powf function.
20268
20269 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20270 portable runtime and PIC indirect calls.
20271 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20272 and PIC call sequences. Use ldo instead of blr to set return register
20273 in PIC call sequence.
20274
20275 2014-01-25 Walter Lee <walt@tilera.com>
20276
20277 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20278 avoid clobbering a live register.
20279
20280 2014-01-25 Walter Lee <walt@tilera.com>
20281
20282 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20283 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20284 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20285 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20286
20287 2014-01-25 Walter Lee <walt@tilera.com>
20288
20289 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20290 arguments on even registers.
20291 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20292 STACK_BOUNDARY.
20293 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20294 (BIGGEST_ALIGNMENT): Ditto.
20295 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20296
20297 2014-01-25 Walter Lee <walt@tilera.com>
20298
20299 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20300 insns before bundling.
20301 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20302
20303 2014-01-25 Walter Lee <walt@tilera.com>
20304
20305 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20306 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20307 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20308
20309 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20310
20311 * config/mips/constraints.md (kl): Delete.
20312 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20313 define expands, using...
20314 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20315 instructions for MIPS16.
20316 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20317 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20318
20319 2014-01-25 Walter Lee <walt@tilera.com>
20320
20321 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20322 (clzdi2): Ditto.
20323 (ffsdi2): Ditto.
20324
20325 2014-01-25 Walter Lee <walt@tilera.com>
20326
20327 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20328 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20329
20330 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20331
20332 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20333 Handle XOR.
20334
20335 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20336
20337 * print-rtl.c (in_call_function_usage): New var.
20338 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20339 EXPR_LIST mode as mode and not as reg note name.
20340
20341 PR middle-end/59561
20342 * cfgloopmanip.c (copy_loop_info): If
20343 loop->warned_aggressive_loop_optimizations, make sure
20344 the flag is set in target loop too.
20345
20346 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20347
20348 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20349 flag_cilkplus.
20350 * builtins.def: Likewise.
20351 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20352 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20353 * ira.c (ira_setup_eliminable_regset): Likewise.
20354 * omp-low.c (gate_expand_omp): Likewise.
20355 (execute_lower_omp): Likewise.
20356 (diagnose_sb_0): Likewise.
20357 (gate_diagnose_omp_blocks): Likewise.
20358 (simd_clone_clauses_extract): Likewise.
20359 (gate): Likewise.
20360
20361 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20362
20363 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20364 correction for little endian...
20365 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20366 here.
20367
20368 2014-01-24 Jeff Law <law@redhat.com>
20369
20370 PR tree-optimization/59919
20371 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20372 for non-returning calls.
20373
20374 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20375
20376 * common/config/aarch64/aarch64-common.c
20377 (aarch64_rewrite_mcpu): Handle multiple names.
20378 * config/aarch64/aarch64.h
20379 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20380
20381 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20382
20383 * input.c (add_file_to_cache_tab): Handle the case where fopen
20384 returns NULL.
20385
20386 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20387
20388 PR target/59929
20389 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20390 from push operand if code of push isn't PRE_DEC.
20391
20392 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20393
20394 PR target/59909
20395 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20396 -mquad-memory-atomic. Update -mquad-memory documentation to say
20397 it is only used for non-atomic loads/stores.
20398
20399 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20400 -mquad-memory or -mquad-memory-atomic switches.
20401
20402 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20403 -mquad-memory-atomic to ISA 2.07 support.
20404
20405 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20406 to separate support of normal quad word memory operations (ldq, stq)
20407 from the atomic quad word memory operations.
20408
20409 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20410 support to separate non-atomic quad word operations from atomic
20411 quad word operations. Disable non-atomic quad word operations in
20412 little endian mode so that we don't have to swap words after the
20413 load and before the store.
20414 (quad_load_store_p): Add comment about atomic quad word support.
20415 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20416 options printed with -mdebug=reg.
20417
20418 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20419 -mquad-memory-atomic as the test for whether we have quad word
20420 atomic instructions.
20421 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20422 or -mp8-vector are used, allow byte/half-word atomic operations.
20423
20424 * config/rs6000/sync.md (load_lockedti): Insure that the address
20425 is a proper indexed or indirect address for the lqarx instruction.
20426 On little endian systems, swap the hi/lo registers after the lqarx
20427 instruction.
20428 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20429 insure the address is valid for the lqarx instruction.
20430 (store_conditionalti): Insure that the address is a proper indexed
20431 or indirect address for the stqcrx. instruction. On little endian
20432 systems, swap the hi/lo registers before doing the stqcrx.
20433 instruction.
20434 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20435 insure the address is valid for the stqcrx. instruction.
20436
20437 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20438 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20439 type of quad memory support is available.
20440
20441 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20442
20443 PR regression/59915
20444 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20445 there is a danger of looping.
20446
20447 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20448
20449 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20450 force flag_ira_loop_pressure if set via command line.
20451
20452 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20453
20454 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20455 (ashr_simd): New builtin handling DI mode.
20456 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20457 (aarch64_sshr_simddi): New match pattern.
20458 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20459 (vshrd_n_s64): Likewise.
20460 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20461
20462 2014-01-23 Nick Clifton <nickc@redhat.com>
20463
20464 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20465 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20466 favour of mcu specific scripts.
20467 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20468 430x multilibs.
20469
20470 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20471 Alex Velenko <Alex.Velenko@arm.com>
20472
20473 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20474 (vaddv_s16): Likewise.
20475 (vaddv_s32): Likewise.
20476 (vaddv_u8): Likewise.
20477 (vaddv_u16): Likewise.
20478 (vaddv_u32): Likewise.
20479 (vaddvq_s8): Likewise.
20480 (vaddvq_s16): Likewise.
20481 (vaddvq_s32): Likewise.
20482 (vaddvq_s64): Likewise.
20483 (vaddvq_u8): Likewise.
20484 (vaddvq_u16): Likewise.
20485 (vaddvq_u32): Likewise.
20486 (vaddvq_u64): Likewise.
20487 (vaddv_f32): Likewise.
20488 (vaddvq_f32): Likewise.
20489 (vaddvq_f64): Likewise.
20490 (vmaxv_f32): Likewise.
20491 (vmaxv_s8): Likewise.
20492 (vmaxv_s16): Likewise.
20493 (vmaxv_s32): Likewise.
20494 (vmaxv_u8): Likewise.
20495 (vmaxv_u16): Likewise.
20496 (vmaxv_u32): Likewise.
20497 (vmaxvq_f32): Likewise.
20498 (vmaxvq_f64): Likewise.
20499 (vmaxvq_s8): Likewise.
20500 (vmaxvq_s16): Likewise.
20501 (vmaxvq_s32): Likewise.
20502 (vmaxvq_u8): Likewise.
20503 (vmaxvq_u16): Likewise.
20504 (vmaxvq_u32): Likewise.
20505 (vmaxnmv_f32): Likewise.
20506 (vmaxnmvq_f32): Likewise.
20507 (vmaxnmvq_f64): Likewise.
20508 (vminv_f32): Likewise.
20509 (vminv_s8): Likewise.
20510 (vminv_s16): Likewise.
20511 (vminv_s32): Likewise.
20512 (vminv_u8): Likewise.
20513 (vminv_u16): Likewise.
20514 (vminv_u32): Likewise.
20515 (vminvq_f32): Likewise.
20516 (vminvq_f64): Likewise.
20517 (vminvq_s8): Likewise.
20518 (vminvq_s16): Likewise.
20519 (vminvq_s32): Likewise.
20520 (vminvq_u8): Likewise.
20521 (vminvq_u16): Likewise.
20522 (vminvq_u32): Likewise.
20523 (vminnmv_f32): Likewise.
20524 (vminnmvq_f32): Likewise.
20525 (vminnmvq_f64): Likewise.
20526
20527 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20528
20529 * config/aarch64/aarch64-simd.md
20530 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20531 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20532 (*aarch64_mul3_elt<mode>): Likewise.
20533 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20534 (*aarch64_mul3_elt_to_64v2df): Likewise.
20535 (*aarch64_mla_elt<mode>): Likewise.
20536 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20537 (*aarch64_mls_elt<mode>): Likewise.
20538 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20539 (*aarch64_fma4_elt<mode>): Likewise.
20540 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20541 (*aarch64_fma4_elt_to_64v2df): Likewise.
20542 (*aarch64_fnma4_elt<mode>): Likewise.
20543 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20544 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20545 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20546 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20547 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20548 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20549 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20550 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20551 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20552
20553 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20554
20555 * config/aarch64/aarch64-simd.md
20556 (aarch64_be_checked_get_lane<mode>): New define_expand.
20557 * config/aarch64/aarch64-simd-builtins.def
20558 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20559 New builtin definition.
20560 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20561 Use new safe be builtin.
20562
20563 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20564
20565 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20566 New define_insn.
20567 (aarch64_be_st1<mode>): Likewise.
20568 (aarch_ld1<VALL:mode>): Define_expand modified.
20569 (aarch_st1<VALL:mode>): Likewise.
20570 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20571 (UNSPEC_ST1): Likewise.
20572
20573 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20574
20575 * config/microblaze/microblaze.md: Add trap insn and attribute
20576
20577 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20578
20579 PR preprocessor/58580
20580 * input.h (location_get_source_line): Take an additional line_size
20581 parameter.
20582 (void diagnostics_file_cache_fini): Declare new function.
20583 * input.c (struct fcache): New type.
20584 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20585 New static constants.
20586 (diagnostic_file_cache_init, total_lines_num)
20587 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20588 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20589 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20590 (get_next_line, read_next_line, goto_next_line, read_line_num):
20591 New static function definitions.
20592 (diagnostic_file_cache_fini): New function.
20593 (location_get_source_line): Take an additional output line_len
20594 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20595 read_line_num.
20596 * diagnostic.c (diagnostic_finish): Call
20597 diagnostic_file_cache_fini.
20598 (adjust_line): Take an additional input parameter for the length
20599 of the line, rather than calculating it with strlen.
20600 (diagnostic_show_locus): Adjust the use of
20601 location_get_source_line and adjust_line with respect to their new
20602 signature. While displaying a line now, do not stop at the first
20603 null byte. Rather, display the zero byte as a space and keep
20604 going until we reach the size of the line.
20605 * Makefile.in: Add vec.o to OBJS-libcommon
20606
20607 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20608 Ilya Tocar <ilya.tocar@intel.com>
20609
20610 * config/i386/avx512fintrin.h (_mm512_kmov): New.
20611 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
20612 (__builtin_ia32_kmov16): Ditto.
20613 * config/i386/i386.md (UNSPEC_KMOV): New.
20614 (kmovw): Ditto.
20615
20616 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20617
20618 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
20619 (_mm512_storeu_si512): Ditto.
20620
20621 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
20622
20623 PR target/52125
20624 * rtl.h (get_referenced_operands): Declare.
20625 * recog.c (get_referenced_operands): New function.
20626 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
20627 operands have been referenced when recording LO_SUM references.
20628
20629 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
20630
20631 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
20632
20633 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20634
20635 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
20636 Enable for generic and recent AMD targets.
20637
20638 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20639
20640 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
20641 ARG_SIZE note when adjustment was eliminated.
20642
20643 2014-01-22 Jeff Law <law@redhat.com>
20644
20645 PR tree-optimization/59597
20646 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
20647 in file. Accept new argument REGISTERING and use it to modify
20648 dump output appropriately.
20649 (register_jump_thread): Corresponding changes.
20650 (mark_threaded_blocks): Reinstate code to cancel unprofitable
20651 thread paths involving joiner blocks. Add code to dump cancelled
20652 jump threading paths.
20653
20654 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
20655
20656 PR rtl-optimization/59477
20657 * lra-constraints.c (inherit_in_ebb): Process call for living hard
20658 regs. Update reloads_num and potential_reload_hard_regs for all insns.
20659
20660 2014-01-22 Tom Tromey <tromey@redhat.com>
20661
20662 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
20663 PARAMS.
20664 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
20665
20666 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20667
20668 PR rtl-optimization/59896
20669 * lra-constraints.c (process_alt_operands): Check unused note for
20670 matched operands of insn with no output reloads.
20671
20672 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
20673
20674 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
20675 (mips_move_from_gpr_cost): Likewise.
20676
20677 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20678
20679 PR rtl-optimization/59858
20680 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
20681 ira_class_hard_regs_num.
20682 (process_alt_operands): Increase reject for dying matched operand.
20683
20684 2014-01-21 Jakub Jelinek <jakub@redhat.com>
20685
20686 PR target/59003
20687 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
20688 smaller than size, perform several stores or loads and stores
20689 at dst + count - size to store or copy all of size bytes, rather
20690 than just last modesize bytes.
20691
20692 2014-01-20 DJ Delorie <dj@redhat.com>
20693
20694 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
20695 that CLOBBERs are REGs before propogating their values.
20696
20697 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
20698
20699 PR middle-end/59789
20700 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
20701 (cgraph_inline_failed_type): New function.
20702 * cgraph.h (DEFCIFCODE): Add type.
20703 (cgraph_inline_failed_type_t): New enum.
20704 (cgraph_inline_failed_type): New prototype.
20705 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
20706 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20707 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
20708 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
20709 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
20710 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
20711 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
20712 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
20713 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
20714 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
20715 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
20716 OPTIMIZATION_MISMATCH.
20717 * tree-inline.c (expand_call_inline): Emit errors during
20718 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
20719
20720 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20721
20722 PR target/59685
20723 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
20724 mode attribute in insn output.
20725
20726 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
20727
20728 * output.h (output_constant): Delete.
20729 * varasm.c (output_constant): Make private.
20730
20731 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
20732
20733 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
20734
20735 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20736
20737 PR middle-end/59860
20738 * tree.h (fold_builtin_strcat): New prototype.
20739 * builtins.c (fold_builtin_strcat): No longer static. Add len
20740 argument, if non-NULL, don't call c_strlen. Optimize
20741 directly into __builtin_memcpy instead of __builtin_strcpy.
20742 (fold_builtin_2): Adjust fold_builtin_strcat caller.
20743 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
20744
20745 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20746
20747 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20748 for SImode_address_operand operands, having only a REG argument.
20749
20750 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
20751
20752 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
20753 loader name using mbig-endian.
20754 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
20755
20756 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20757
20758 * doc/invoke.texi (-march): Clarify documentation for AArch64.
20759 (-mtune): Likewise.
20760 (-mcpu): Likewise.
20761
20762 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
20763
20764 * config/aarch64/aarch64-protos.h
20765 (aarch64_cannot_change_mode_class_ptr): Declare.
20766 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
20767 aarch64_cannot_change_mode_class_ptr): New.
20768 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
20769 backend hook aarch64_cannot_change_mode_class.
20770
20771 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20772
20773 * common/config/aarch64/aarch64-common.c
20774 (aarch64_handle_option): Don't handle any option order logic here.
20775 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
20776 selected_cpu, warn on architecture version mismatch.
20777 (aarch64_override_options): Fix parsing order for option strings.
20778
20779 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20780 Iain Sandoe <iain@codesourcery.com>
20781
20782 PR bootstrap/59496
20783 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
20784 warning. Amend comment to reflect current functionality.
20785
20786 2014-01-20 Richard Biener <rguenther@suse.de>
20787
20788 PR middle-end/59860
20789 * builtins.c (fold_builtin_strcat): Remove case better handled
20790 by tree-ssa-strlen.c.
20791
20792 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
20793
20794 * config/aarch64/aarch64.opt
20795 (mcpu, march, mtune): Make case-insensitive.
20796
20797 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20798
20799 PR target/59880
20800 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20801 if operands[1] is a REG or ZERO_EXTEND of a REG.
20802
20803 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
20804
20805 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
20806
20807 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
20808
20809 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
20810 long non-pic millicode calls.
20811
20812 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20813
20814 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
20815
20816 2014-01-19 Kito Cheng <kito@0xlab.org>
20817
20818 * builtins.c (expand_movstr): Check movstr expand done or fail.
20819
20820 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20821 H.J. Lu <hongjiu.lu@intel.com>
20822
20823 PR target/59379
20824 * config/i386/i386.md (*lea<mode>): Zero-extend return register
20825 to DImode for zero-extended addresses.
20826
20827 2014-01-19 Jakub Jelinek <jakub@redhat.com>
20828
20829 PR rtl-optimization/57763
20830 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
20831 on the new indirect jump_insn and increment LABEL_NUSES (label).
20832
20833 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
20834
20835 PR bootstrap/59580
20836 PR bootstrap/59583
20837 * config.gcc (x86_archs): New variable.
20838 (x86_64_archs): Likewise.
20839 (x86_cpus): Likewise.
20840 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
20841 --with-arch/--with-cpu= options.
20842 Support --with-arch=/--with-cpu={nehalem,westmere,
20843 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
20844
20845 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20846
20847 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
20848 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
20849
20850 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20851
20852 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
20853
20854 2014-01-18 Jakub Jelinek <jakub@redhat.com>
20855
20856 PR target/58944
20857 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
20858 clear cpp_get_options (parse_in)->warn_unused_macros for
20859 ix86_target_macros_internal with cpp_define.
20860
20861 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
20862
20863 * jump.c (delete_related_insns): Keep (use (insn))s.
20864 * reorg.c (redundant_insn): Check for barriers too.
20865
20866 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20867
20868 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
20869
20870 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
20871
20872 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
20873 call to $$dyncall when TARGET_LONG_CALLS is true.
20874
20875 2014-01-17 Jeff Law <law@redhat.com>
20876
20877 * ree.c (combine_set_extension): Temporarily disable test for
20878 changing number of hard registers.
20879
20880 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20881
20882 PR middle-end/58125
20883 * ipa-inline-analysis.c (inline_free_summary):
20884 Do not free summary of aliases.
20885
20886 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20887
20888 PR middle-end/59706
20889 * gimplify.c (gimplify_expr): Use create_tmp_var
20890 instead of create_tmp_var_raw. If cond doesn't have
20891 integral type, don't add the IFN_ANNOTATE builtin at all.
20892
20893 2014-01-17 Martin Jambor <mjambor@suse.cz>
20894
20895 PR ipa/59736
20896 * ipa-cp.c (prev_edge_clone): New variable.
20897 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
20898 Also resize prev_edge_clone vector.
20899 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
20900 (ipcp_edge_removal_hook): New function.
20901 (ipcp_driver): Register ipcp_edge_removal_hook.
20902
20903 2014-01-17 Andrew Pinski <apinski@cavium.com>
20904 Steve Ellcey <sellcey@mips.com>
20905
20906 PR target/59462
20907 * config/mips/mips.c (mips_print_operand): Check operand mode instead
20908 of operator mode.
20909
20910 2014-01-17 Jeff Law <law@redhat.com>
20911
20912 PR middle-end/57904
20913 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
20914 so that pass_ccp runs first.
20915
20916 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20917
20918 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
20919 (ix86_adjust_cost): Use !TARGET_XXX.
20920 (do_reorder_for_imul): Likewise.
20921 (swap_top_of_ready_list): Likewise.
20922 (ix86_sched_reorder): Likewise.
20923
20924 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20925
20926 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20927 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
20928 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
20929 (intel_memset): New. Duplicate slm_memset.
20930 (intel_cost): New. Duplicate slm_cost.
20931 (m_INTEL): New macro.
20932 (processor_target_table): Add "intel".
20933 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
20934 with PROCESSOR_INTEL for "intel".
20935 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
20936 PROCESSOR_SILVERMONT.
20937 (ix86_issue_rate): Likewise.
20938 (ix86_adjust_cost): Likewise.
20939 (ia32_multipass_dfa_lookahead): Likewise.
20940 (swap_top_of_ready_list): Likewise.
20941 (ix86_sched_reorder): Likewise.
20942 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
20943 instead of TARGET_OPT_AGU.
20944 * config/i386/i386.h (TARGET_INTEL): New.
20945 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
20946 (processor_type): Add PROCESSOR_INTEL.
20947 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
20948 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
20949
20950 2014-01-17 Marek Polacek <polacek@redhat.com>
20951
20952 PR c/58346
20953 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
20954 size is zero.
20955
20956 2014-01-17 Richard Biener <rguenther@suse.de>
20957
20958 PR tree-optimization/46590
20959 * opts.c (default_options_table): Add entries for
20960 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
20961 all enabled at -O1 but not for -Og.
20962 * common.opt (fbranch-count-reg): Remove Init(1).
20963 (fmove-loop-invariants): Likewise.
20964 (ftree-pta): Likewise.
20965
20966 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20967
20968 * config/i386/i386.c (ix86_data_alignment): For compatibility with
20969 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
20970 decls to at least the GCC 4.8 used alignments.
20971
20972 PR fortran/59440
20973 * tree-nested.c (convert_nonlocal_reference_stmt,
20974 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
20975 of GIMPLE_BIND stmts, adjust associated decls.
20976
20977 2014-01-17 Richard Biener <rguenther@suse.de>
20978
20979 PR tree-optimization/46590
20980 * vec.h (vec<>::bseach): New member function implementing
20981 binary search according to C89 bsearch.
20982 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
20983 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
20984 bitmap pointer again. Make accesses_in_loop a flat array.
20985 (mem_ref_obstack): New global.
20986 (outermost_indep_loop): Adjust for mem_ref->stored changes.
20987 (mark_ref_stored): Likewise.
20988 (ref_indep_loop_p_2): Likewise.
20989 (set_ref_stored_in_loop): New helper function.
20990 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
20991 (memref_free): Adjust.
20992 (record_mem_ref_loc): Simplify.
20993 (gather_mem_refs_stmt): Adjust.
20994 (sort_locs_in_loop_postorder_cmp): New function.
20995 (analyze_memory_references): Sort accesses_in_loop after
20996 loop postorder number.
20997 (find_ref_loc_in_loop_cmp): New function.
20998 (for_all_locs_in_loop): Find relevant cluster of locs in
20999 accesses_in_loop and iterate without recursion.
21000 (execute_sm): Avoid uninit warning.
21001 (struct ref_always_accessed): Simplify.
21002 (ref_always_accessed::operator ()): Likewise.
21003 (ref_always_accessed_p): Likewise.
21004 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
21005 loop postorder numbers here.
21006 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
21007 numbers.
21008
21009 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21010
21011 PR c++/57945
21012 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21013 on decls for which assemble_alias has been called.
21014
21015 2014-01-17 Nick Clifton <nickc@redhat.com>
21016
21017 * config/msp430/msp430.opt: (mcpu): New option.
21018 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21019 (msp430_option_override): Parse target_cpu. If the MCU name
21020 matches a generic string, clear target_mcu.
21021 (msp430_attr): Allow numeric interrupt values up to 63.
21022 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21023 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21024 option.
21025 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21026 Add mcpu matches.
21027 * config/msp430/msp430.md (popm): Use %J rather than %I.
21028 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21029 (addhi_cy_i): Use immediate_operand for operand 2.
21030 * doc/invoke.texi: Document -mcpu option.
21031
21032 2014-01-17 Richard Biener <rguenther@suse.de>
21033
21034 PR rtl-optimization/38518
21035 * df.h (df_analyze_loop): Declare.
21036 * df-core.c: Include cfgloop.h.
21037 (df_analyze_1): Split out main part of df_analyze.
21038 (df_analyze): Adjust.
21039 (loop_inverted_post_order_compute): New function.
21040 (loop_post_order_compute): Likewise.
21041 (df_analyze_loop): New function avoiding whole-function
21042 postorder computes.
21043 * loop-invariant.c (find_defs): Use df_analyze_loop.
21044 (find_invariants): Adjust.
21045 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21046
21047 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21048
21049 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21050 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21051
21052 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21053
21054 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21055 traversal when removing references.
21056
21057 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21058
21059 PR ipa/59775
21060 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21061
21062 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21063
21064 PR middle-end/56791
21065 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21066 pushing a reload for an autoinc when we had previously reloaded an
21067 inner part of the address.
21068
21069 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21070
21071 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21072 field.
21073 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21074 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21075 when not giving up or versioning for alias only because of
21076 loop->safelen.
21077 (vect_analyze_data_ref_dependences): Set to true.
21078 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21079 is a GIMPLE_PHI.
21080 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21081 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21082 to the condition.
21083
21084 PR middle-end/58344
21085 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21086
21087 PR target/59839
21088 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21089 operand 0 predicate for gathers, use a new pseudo as subtarget.
21090
21091 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21092
21093 PR middle-end/59609
21094 * lra-constraints.c (process_alt_operands): Add printing debug info.
21095 Check absence of input/output reloads for matched operands too.
21096
21097 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21098
21099 PR rtl-optimization/59835
21100 * ira.c (ira_init_register_move_cost): Increase cost for
21101 impossible modes.
21102
21103 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21104
21105 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21106
21107 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21108
21109 PR target/59780
21110 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21111 non-register objects. Use gen_(high/low)part more consistently.
21112 Fix assertions.
21113
21114 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21115
21116 PR target/59844
21117 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21118 endian support, remove tests for WORDS_BIG_ENDIAN.
21119 (p8_mfvsrd_3_<mode>): Likewise.
21120 (reload_gpr_from_vsx<mode>): Likewise.
21121 (reload_gpr_from_vsxsf): Likewise.
21122 (p8_mfvsrd_4_disf): Likewise.
21123
21124 2014-01-16 Richard Biener <rguenther@suse.de>
21125
21126 PR rtl-optimization/46590
21127 * lcm.c (compute_antinout_edge): Use postorder iteration.
21128 (compute_laterin): Use inverted postorder iteration.
21129
21130 2014-01-16 Nick Clifton <nickc@redhat.com>
21131
21132 PR middle-end/28865
21133 * varasm.c (output_constant): Return the number of bytes actually
21134 emitted.
21135 (output_constructor_array_range): Update the field size with the
21136 number of bytes emitted by output_constant.
21137 (output_constructor_regular_field): Likewise. Also do not
21138 complain if the total number of bytes emitted is now greater
21139 than the expected fieldpos.
21140 * output.h (output_constant): Update prototype and descriptive comment.
21141
21142 2014-01-16 Marek Polacek <polacek@redhat.com>
21143
21144 PR middle-end/59827
21145 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21146 it is error_mark_node.
21147
21148 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21149
21150 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21151 VALID_AVX256_REG_OR_OI_MODE.
21152
21153 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21154
21155 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21156 current procedure should be profiled.
21157
21158 2014-01-15 Andrew Pinski <apinski@cavium.com>
21159
21160 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21161 of moving from/to the STACK_REG register class.
21162
21163 2014-01-15 Richard Henderson <rth@redhat.com>
21164
21165 PR debug/54694
21166 * reginfo.c (global_regs_decl): Globalize.
21167 * rtl.h (global_regs_decl): Declare.
21168 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21169 reserved via global_regs.
21170
21171 2014-01-15 Teresa Johnson <tejohnson@google.com>
21172
21173 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21174
21175 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21176
21177 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21178 and vmulosh rather than call gen_vec_widen_smult_*.
21179 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21180 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21181 (vec_widen_smult_even_v16qi): Likewise.
21182 (vec_widen_umult_even_v8hi): Likewise.
21183 (vec_widen_smult_even_v8hi): Likewise.
21184 (vec_widen_umult_odd_v16qi): Likewise.
21185 (vec_widen_smult_odd_v16qi): Likewise.
21186 (vec_widen_umult_odd_v8hi): Likewise.
21187 (vec_widen_smult_odd_v8hi): Likewise.
21188 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21189 vmuloub rather than call gen_vec_widen_umult_*.
21190 (vec_widen_umult_lo_v16qi): Likewise.
21191 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21192 vmulosb rather than call gen_vec_widen_smult_*.
21193 (vec_widen_smult_lo_v16qi): Likewise.
21194 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21195 rather than call gen_vec_widen_umult_*.
21196 (vec_widen_umult_lo_v8hi): Likewise.
21197 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21198 rather than call gen_vec_widen_smult_*.
21199 (vec_widen_smult_lo_v8hi): Likewise.
21200
21201 2014-01-15 Jeff Law <law@redhat.com>
21202
21203 PR tree-optimization/59747
21204 * ree.c (find_and_remove_re): Properly handle case where a second
21205 eliminated extension requires widening a copy created for elimination
21206 of a prior extension.
21207 (combine_set_extension): Ensure that the number of hard regs needed
21208 for a destination register does not change when we widen it.
21209
21210 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21211
21212 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21213 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21214 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21215 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21216 (avr-*-rtems*): Likewise.
21217 (bfin*-rtems*): Likewise.
21218 (moxie-*-rtems*): Likewise.
21219 (h8300-*-rtems*): Likewise.
21220 (i[34567]86-*-rtems*): Likewise.
21221 (lm32-*-rtems*): Likewise.
21222 (m32r-*-rtems*): Likewise.
21223 (m68k-*-rtems*): Likewise.
21224 (microblaze*-*-rtems*): Likewise.
21225 (mips*-*-rtems*): Likewise.
21226 (powerpc-*-rtems*): Likewise.
21227 (sh-*-rtems*): Likewise.
21228 (sparc-*-rtems*): Likewise.
21229 (sparc64-*-rtems*): Likewise.
21230 (v850-*-rtems*): Likewise.
21231 (m32c-*-rtems*): Likewise.
21232
21233 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21234
21235 PR rtl-optimization/59511
21236 * ira.c (ira_init_register_move_cost): Use memory costs for some
21237 cases of register move cost calculations.
21238 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21239 instead of BB frequency.
21240 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21241 * lra-assigns.c (find_hard_regno_for): Ditto.
21242
21243 2014-01-15 Richard Biener <rguenther@suse.de>
21244
21245 PR tree-optimization/59822
21246 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21247 (vectorizable_load): Use it to hoist defs of uses of invariant
21248 loads out of the loop.
21249
21250 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21251 Kugan Vivekanandarajah <kuganv@linaro.org>
21252
21253 PR target/59695
21254 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21255 truncation.
21256
21257 2014-01-15 Richard Biener <rguenther@suse.de>
21258
21259 PR rtl-optimization/59802
21260 * lcm.c (compute_available): Use inverted postorder to seed
21261 the initial worklist.
21262
21263 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21264
21265 PR target/59803
21266 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21267 ADDR_REGS for invalid symrefs in non-PIC code.
21268
21269 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21270
21271 PR other/58712
21272 * builtins.c (determine_block_size): Initialize *probable_max_size
21273 even if len_rtx is CONST_INT.
21274
21275 2014-01-14 Andrew Pinski <apinski@cavium.com>
21276
21277 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21278 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21279 (cortexa53_tunings): Likewise.
21280 (aarch64_sched_issue_rate): New function.
21281 (TARGET_SCHED_ISSUE_RATE): Define.
21282
21283 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21284
21285 * ira-costs.c (find_costs_and_classes): Add missed
21286 ira_init_register_move_cost_if_necessary.
21287
21288 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21289
21290 PR target/59787
21291 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21292
21293 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21294
21295 PR target/59794
21296 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21297 to indicate if type is used for function return value. Warn ABI
21298 change if the vector mode isn't available for function return value.
21299 (ix86_function_arg_advance): Pass false to type_natural_mode.
21300 (ix86_function_arg): Likewise.
21301 (ix86_gimplify_va_arg): Likewise.
21302 (function_arg_32): Don't warn ABI change.
21303 (ix86_function_value): Pass true to type_natural_mode.
21304 (ix86_return_in_memory): Likewise.
21305 (ix86_struct_value_rtx): Removed.
21306 (TARGET_STRUCT_VALUE_RTX): Likewise.
21307
21308 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21309
21310 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21311 converting a conditional jump into a conditional return.
21312
21313 2014-01-14 Richard Biener <rguenther@suse.de>
21314
21315 PR tree-optimization/58921
21316 PR tree-optimization/59006
21317 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21318 hoisting invariant stmts.
21319 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21320 invariant loads on the preheader edge if possible.
21321
21322 2014-01-14 Joey Ye <joey.ye@arm.com>
21323
21324 * doc/plugin.texi (Building GCC plugins): Update to C++.
21325
21326 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21327
21328 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21329 (_mm_rcp28_round_ss): Ditto.
21330 (_mm_rsqrt28_round_sd): Ditto.
21331 (_mm_rsqrt28_round_ss): Ditto.
21332 (_mm_rcp28_sd): Ditto.
21333 (_mm_rcp28_ss): Ditto.
21334 (_mm_rsqrt28_sd): Ditto.
21335 (_mm_rsqrt28_ss): Ditto.
21336 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21337 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21338 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21339 (IX86_BUILTIN_RCP28SD): Ditto.
21340 (IX86_BUILTIN_RCP28SS): Ditto.
21341 (IX86_BUILTIN_RSQRT28SD): Ditto.
21342 (IX86_BUILTIN_RSQRT28SS): Ditto.
21343 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21344 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21345 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21346 (ix86_expand_special_args_builtin): Expand new FTYPE.
21347 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21348 (srcp14<mode>): Make insn unary.
21349 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21350 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21351 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21352 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21353 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21354 Fix rounding: make it SAE only.
21355 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21356 Ditto.
21357 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21358 Ditto.
21359 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21360 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21361 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21362 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21363 (round_saeonly_mask_scalar_operand4): Ditto.
21364 (round_saeonly_mask_scalar_op3): Ditto.
21365 (round_saeonly_mask_scalar_op4): Ditto.
21366
21367 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21368
21369 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21370 Implement -maltivec=be for vec_insert and vec_extract.
21371
21372 2014-01-10 DJ Delorie <dj@redhat.com>
21373
21374 * config/msp430/msp430.md (call_internal): Don't allow memory
21375 references with SP as the base register.
21376 (call_value_internal): Likewise.
21377 * config/msp430/constraints.md (Yc): New. For memory references
21378 that don't use SP as a base register.
21379
21380 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21381 "an integer without a # prefix"
21382 * config/msp430/msp430.md (epilogue_helper): Use it.
21383
21384 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21385
21386 PR target/59617
21387 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21388 AVX512F gather builtins.
21389 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21390 on gather decls with INTEGER_TYPE masktype.
21391 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21392 directly into the builtin rather than hoisting it before loop.
21393
21394 PR tree-optimization/59387
21395 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21396 (scev_const_prop): If folded_casts and type has undefined overflow,
21397 use force_gimple_operand instead of force_gimple_operand_gsi and
21398 for each added stmt if it is assign with
21399 arith_code_with_undefined_signed_overflow, call
21400 rewrite_to_defined_overflow.
21401 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21402 gimple-fold.h instead.
21403 (arith_code_with_undefined_signed_overflow,
21404 rewrite_to_defined_overflow): Moved to ...
21405 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21406 rewrite_to_defined_overflow): ... here. No longer static.
21407 Include gimplify-me.h.
21408 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21409 rewrite_to_defined_overflow): New prototypes.
21410
21411 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21412
21413 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21414
21415 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21416
21417 * builtins.c (get_object_alignment_2): Minor tweak.
21418 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21419
21420 2014-01-13 Christian Bruel <christian.bruel@st.com>
21421
21422 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21423 optimized non constant lengths.
21424
21425 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21426
21427 PR libgomp/59194
21428 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21429 load as __atomic_load_N if possible.
21430
21431 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21432
21433 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21434 target parameter.
21435 (rs6000_expand_builtin): Adjust call.
21436
21437 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21438
21439 PR target/58115
21440 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21441 * config/rs6000/rs6000.c: Include target-globals.h.
21442 (rs6000_set_current_function): Instead of doing target_reinit
21443 unconditionally, use save_target_globals_default_opts and
21444 restore_target_globals.
21445
21446 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21447 FPSCR.
21448 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21449 (rs6000_expand_builtin): Handle mffs and mtfsf.
21450 (rs6000_init_builtins): Define mffs and mtfsf.
21451 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21452 (rs6000_mffs): New pattern.
21453 (rs6000_mtfsf): New pattern.
21454
21455 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21456
21457 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21458 Start narrowing with START. Apply candidate-use pair
21459 and check overall cost in narrowing.
21460 (iv_ca_prune): Pass new argument.
21461
21462 2014-01-10 Jeff Law <law@redhat.com>
21463
21464 PR middle-end/59743
21465 * ree.c (combine_reaching_defs): Ensure the defining statement
21466 occurs before the extension when optimizing extensions with
21467 different source and destination hard registers.
21468
21469 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21470
21471 PR ipa/58585
21472 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21473 vtables into the type inheritance graph.
21474
21475 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21476
21477 PR rtl-optimization/59754
21478 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21479 modes in the REGNO != REGNO case.
21480
21481 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21482
21483 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21484
21485 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21486
21487 PR tree-optimization/59745
21488 * tree-predcom.c (tree_predictive_commoning_loop): Call
21489 free_affine_expand_cache if giving up because components is NULL.
21490
21491 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21492 GC in payload of target_globals struct instead of allocating them on
21493 the heap and the larger structs separately using GC.
21494 * target-globals.h (struct target_globals): Make regs, hard_regs,
21495 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21496 of GTY((skip)) and change type to void *.
21497 (reset_target_globals): Cast loads from those fields to corresponding
21498 types.
21499
21500 2014-01-10 Steve Ellcey <sellcey@mips.com>
21501
21502 PR plugins/59335
21503 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21504 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21505 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21506
21507 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21508
21509 PR target/59744
21510 * aarch64-modes.def (CC_Zmode): New flags mode.
21511 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21512 represents an equality.
21513 (aarch64_get_condition_code): Handle CC_Zmode.
21514 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21515
21516 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21517
21518 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21519 extraction in good case.
21520
21521 2014-01-10 Richard Biener <rguenther@suse.de>
21522
21523 PR tree-optimization/59374
21524 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21525 checking after SLP discovery. Mark stmts not participating
21526 in any SLP instance properly.
21527
21528 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21529
21530 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21531 when handling a SET rtx.
21532
21533 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21534
21535 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21536 (cortex-a57): Likewise.
21537 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21538
21539 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21540
21541 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21542 non-iwmmxt builtins.
21543
21544 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21545
21546 PR ipa/58252
21547 PR ipa/59226
21548 * ipa-devirt.c record_target_from_binfo): Take as argument
21549 stack of binfos and lookup matching one for virtual inheritance.
21550 (possible_polymorphic_call_targets_1): Update.
21551
21552 2014-01-10 Huacai Chen <chenhc@lemote.com>
21553
21554 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21555 kernel strings for Loongson-2E/2F/3A.
21556
21557 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21558
21559 PR middle-end/59670
21560 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21561 is_gimple_call before calling gimple_call_internal_p.
21562
21563 2014-01-09 Steve Ellcey <sellcey@mips.com>
21564
21565 * Makefile.in (TREE_FLOW_H): Remove.
21566 (TREE_SSA_H): Add file names from tree-flow.h.
21567 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21568 * tree.h: Remove tree-flow.h reference.
21569 * hash-table.h: Remove tree-flow.h reference.
21570 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21571 reference with tree-ssa-loop.h.
21572
21573 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21574
21575 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21576 default element-order behavior for -maltivec.
21577 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21578 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21579 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21580 when targeting big endian, at least for now.
21581 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21582
21583 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21584
21585 PR middle-end/47735
21586 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21587 var satisfies use_register_for_decl, just take into account type
21588 alignment, rather than decl alignment.
21589
21590 PR tree-optimization/59622
21591 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21592 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21593 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21594 Don't devirtualize for inplace at all. For targets.length () == 1,
21595 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21596
21597 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21598
21599 * config/i386/i386.md (cpu): Remove the unused btver1.
21600
21601 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21602
21603 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
21604
21605 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21606
21607 PR target/58115
21608 * tree-core.h (struct target_globals): New forward declaration.
21609 (struct tree_target_option): Add globals field.
21610 * tree.h (TREE_TARGET_GLOBALS): Define.
21611 (prepare_target_option_nodes_for_pch): New prototype.
21612 * target-globals.h (struct target_globals): Define even if
21613 !SWITCHABLE_TARGET.
21614 * tree.c (prepare_target_option_node_for_pch,
21615 prepare_target_option_nodes_for_pch): New functions.
21616 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
21617 * config/i386/i386.c: Include target-globals.h.
21618 (ix86_set_current_function): Instead of doing target_reinit
21619 unconditionally, use save_target_globals_default_opts and
21620 restore_target_globals.
21621
21622 2014-01-09 Richard Biener <rguenther@suse.de>
21623
21624 PR tree-optimization/59715
21625 * tree-cfg.h (split_critical_edges): Declare.
21626 * tree-cfg.c (split_critical_edges): Export.
21627 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
21628
21629 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
21630
21631 * cfgexpand.c (expand_stack_vars): Optionally disable
21632 asan stack protection.
21633 (expand_used_vars): Likewise.
21634 (partition_stack_vars): Likewise.
21635 * asan.c (asan_emit_stack_protection): Optionally disable
21636 after return stack usage.
21637 (instrument_derefs): Optionally disable memory access instrumentation.
21638 (instrument_builtin_call): Likewise.
21639 (instrument_strlen_call): Likewise.
21640 (asan_protect_global): Optionally disable global variables protection.
21641 * doc/invoke.texi: Added doc for new options.
21642 * params.def: Added new options.
21643 * params.h: Likewise.
21644
21645 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21646
21647 PR rtl-optimization/59724
21648 * ifcvt.c (cond_exec_process_if_block): Don't call
21649 flow_find_head_matching_sequence with 0 longest_match.
21650 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
21651 non-active insns if !stop_after.
21652 (try_head_merge_bb): Revert 2014-01-07 changes.
21653
21654 2014-01-08 Jeff Law <law@redhat.com>
21655
21656 * ree.c (get_sub_rtx): New function, extracted from...
21657 (merge_def_and_ext): Here.
21658 (combine_reaching_defs): Use get_sub_rtx.
21659
21660 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
21661
21662 * cgraph.h (varpool_variable_node): Do not choke on null node.
21663
21664 2014-01-08 Catherine Moore <clm@codesourcery.com>
21665
21666 * config/mips/mips.md (simple_return): Attempt to use JRC
21667 for microMIPS.
21668 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
21669
21670 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21671
21672 PR rtl-optimization/59137
21673 * reorg.c (steal_delay_list_from_target): Call update_block for
21674 elided insns.
21675 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
21676
21677 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21678
21679 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21680 two duplicate entries.
21681
21682 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21683
21684 Revert:
21685 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
21686
21687 * config/mips/mips.c (mips_truncated_op_cost): New function.
21688 (mips_rtx_costs): Adjust test for BADDU.
21689 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
21690
21691 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
21692
21693 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
21694 (*baddu_si): ...this new pattern.
21695
21696 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21697
21698 PR ipa/59722
21699 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
21700
21701 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21702
21703 PR middle-end/57748
21704 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
21705 inner_reference_p.
21706 (expand_expr, expand_normal): Adjust.
21707 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
21708 inner_reference_p. Use inner_reference_p to expand inner references.
21709 (store_expr): Adjust.
21710 * cfgexpand.c (expand_call_stmt): Adjust.
21711
21712 2014-01-08 Rong Xu <xur@google.com>
21713
21714 * gcov-io.c (gcov_var): Move from gcov-io.h.
21715 (gcov_position): Ditto.
21716 (gcov_is_error): Ditto.
21717 (gcov_rewrite): Ditto.
21718 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
21719 only part to libgcc/libgcov.h.
21720
21721 2014-01-08 Marek Polacek <polacek@redhat.com>
21722
21723 PR middle-end/59669
21724 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
21725
21726 2014-01-08 Marek Polacek <polacek@redhat.com>
21727
21728 PR sanitizer/59667
21729 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
21730
21731 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21732
21733 PR rtl-optimization/59649
21734 * stor-layout.c (get_mode_bounds): For BImode return
21735 0 and STORE_FLAG_VALUE.
21736
21737 2014-01-08 Richard Biener <rguenther@suse.de>
21738
21739 PR middle-end/59630
21740 * gimple.h (is_gimple_builtin_call): Remove.
21741 (gimple_builtin_call_types_compatible_p): New.
21742 (gimple_call_builtin_p): New overload.
21743 * gimple.c (is_gimple_builtin_call): Remove.
21744 (validate_call): Rename to ...
21745 (gimple_builtin_call_types_compatible_p): ... this and export. Also
21746 check return types.
21747 (validate_type): New static function.
21748 (gimple_call_builtin_p): New overload and adjust.
21749 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
21750 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
21751 (gimple_fold_stmt_to_constant_1): Likewise.
21752 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
21753
21754 2014-01-08 Richard Biener <rguenther@suse.de>
21755
21756 PR middle-end/59471
21757 * gimplify.c (gimplify_expr): Gimplify register-register type
21758 VIEW_CONVERT_EXPRs to separate stmts.
21759
21760 2014-01-07 Jeff Law <law@redhat.com>
21761
21762 PR middle-end/53623
21763 * ree.c (combine_set_extension): Handle case where source
21764 and destination registers in an extension insn are different.
21765 (combine_reaching_defs): Allow source and destination registers
21766 in extension to be different under limited circumstances.
21767 (add_removable_extension): Remove restriction that the
21768 source and destination registers in the extension are the same.
21769 (find_and_remove_re): Emit a copy from the extension's
21770 destination to its source after the defining insn if
21771 the source and destination registers are different.
21772
21773 PR middle-end/59285
21774 * ifcvt.c (merge_if_block): If we are merging a block with more than
21775 one successor with a block with no successors, remove any BARRIER
21776 after the second block.
21777
21778 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
21779
21780 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
21781
21782 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
21783
21784 PR target/59652
21785 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
21786 for 14-bit register offsets when INT14_OK_STRICT is false.
21787
21788 2014-01-07 Roland Stigge <stigge@antcom.de>
21789 Michael Meissner <meissner@linux.vnet.ibm.com>
21790
21791 PR 57386/target
21792 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21793 Only check TFmode for SPE constants. Don't check TImode or TDmode.
21794
21795 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
21796
21797 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
21798 -mcpu.
21799
21800 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
21801
21802 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
21803 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
21804 rtx is const0_rtx or not.
21805
21806 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
21807
21808 PR target/58115
21809 * target-globals.c (save_target_globals): Remove this_fn_optab
21810 handling.
21811 * toplev.c: Include optabs.h.
21812 (target_reinit): Temporarily restore the global options if another
21813 set of options are in force.
21814
21815 2014-01-07 Jakub Jelinek <jakub@redhat.com>
21816
21817 PR rtl-optimization/58668
21818 * cfgcleanup.c (flow_find_cross_jump): Don't count
21819 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
21820 to determine what is counted.
21821 (flow_find_head_matching_sequence): Use active_insn_p to determine
21822 what is counted.
21823 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
21824 counting change.
21825 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
21826 determine what is counted.
21827
21828 PR tree-optimization/59643
21829 * tree-predcom.c (split_data_refs_to_components): If one dr is
21830 read and one write, determine_offset fails and the write isn't
21831 in the bad component, just put the read into the bad component.
21832
21833 2014-01-07 Mike Stump <mikestump@comcast.net>
21834 Jakub Jelinek <jakub@redhat.com>
21835
21836 PR pch/59436
21837 * tree-core.h (struct tree_optimization_option): Change optabs
21838 type from unsigned char * to void *.
21839 * optabs.c (init_tree_optimization_optabs): Adjust
21840 TREE_OPTIMIZATION_OPTABS initialization.
21841
21842 2014-01-06 Jakub Jelinek <jakub@redhat.com>
21843
21844 PR target/59644
21845 * config/i386/i386.h (struct machine_function): Add
21846 no_drap_save_restore field.
21847 * config/i386/i386.c (ix86_save_reg): Use
21848 !cfun->machine->no_drap_save_restore instead of
21849 crtl->stack_realign_needed.
21850 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
21851 this function clears frame_pointer_needed. Set
21852 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
21853 and DRAP reg is needed.
21854
21855 2014-01-06 Marek Polacek <polacek@redhat.com>
21856
21857 PR c/57773
21858 * doc/implement-c.texi: Mention that other integer types are
21859 permitted as bit-field types in strictly conforming mode.
21860
21861 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
21862
21863 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
21864 is newly allocated.
21865
21866 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
21867
21868 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
21869
21870 2014-01-06 Martin Jambor <mjambor@suse.cz>
21871
21872 PR ipa/59008
21873 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
21874 to int.
21875 * ipa-prop.c (ipa_print_node_params): Fix indentation.
21876
21877 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
21878
21879 PR debug/59350
21880 PR debug/59510
21881 * var-tracking.c (add_stores): Preserve the value of the source even if
21882 we don't record the store.
21883
21884 2014-01-06 Terry Guo <terry.guo@arm.com>
21885
21886 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
21887
21888 2014-01-05 Iain Sandoe <iain@codesourcery.com>
21889
21890 PR bootstrap/59541
21891 * config/darwin.c (darwin_function_section): Adjust return values to
21892 correspond to optimisation changes made in r206070.
21893
21894 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
21895
21896 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
21897 from prefetch_block tune setting.
21898 (nocona_cost): Correct size of prefetch block to 64.
21899
21900 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
21901
21902 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
21903 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
21904 used to save the static chain register in the computation of the offset
21905 from which the FP registers need to be restored.
21906
21907 2014-01-04 Jakub Jelinek <jakub@redhat.com>
21908
21909 PR tree-optimization/59519
21910 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
21911 ICE if get_current_def (current_new_name) is already non-NULL, as long
21912 as it is a phi result of some other phi in *new_exit_bb that has
21913 the same argument.
21914
21915 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
21916 or vmovdqu* for misaligned_operand.
21917 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
21918 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
21919 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
21920 aligned_mem for AVX512F masked aligned load and store builtins and for
21921 non-temporal moves.
21922
21923 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
21924
21925 PR tree-optimization/59651
21926 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21927 Address range for negative step should be added by TYPE_SIZE_UNIT.
21928
21929 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
21930
21931 * config/m68k/m68k.c (handle_move_double): Handle pushes with
21932 overlapping registers also for registers other than the stack pointer.
21933
21934 2014-01-03 Marek Polacek <polacek@redhat.com>
21935
21936 PR other/59661
21937 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
21938 __builtin_FILE.
21939
21940 2014-01-03 Jakub Jelinek <jakub@redhat.com>
21941
21942 PR target/59625
21943 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
21944 asm goto as jump.
21945
21946 * config/i386/i386.md (MODE_SIZE): New mode attribute.
21947 (push splitter): Use <P:MODE_SIZE> instead of
21948 GET_MODE_SIZE (<P:MODE>mode).
21949 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
21950 (mov -1, reg peephole2): Likewise.
21951 * config/i386/sse.md (*mov<mode>_internal,
21952 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
21953 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
21954 *<code><mode>3, *andnot<mode>3<mask_name>,
21955 <mask_codefor><code><mode>3<mask_name>): Likewise.
21956 * config/i386/subst.md (mask_mode512bit_condition,
21957 sd_mask_mode512bit_condition): Likewise.
21958
21959 2014-01-02 Xinliang David Li <davidxl@google.com>
21960
21961 PR tree-optimization/59303
21962 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
21963 (dump_predicates): Better output format.
21964 (pred_equal_p): New function.
21965 (is_neq_relop_p): Ditto.
21966 (is_neq_zero_form_p): Ditto.
21967 (pred_expr_equal_p): Ditto.
21968 (pred_neg_p): Ditto.
21969 (simplify_pred): Ditto.
21970 (simplify_preds_2): Ditto.
21971 (simplify_preds_3): Ditto.
21972 (simplify_preds_4): Ditto.
21973 (simplify_preds): Ditto.
21974 (push_pred): Ditto.
21975 (push_to_worklist): Ditto.
21976 (get_pred_info_from_cmp): Ditto.
21977 (is_degenerated_phi): Ditto.
21978 (normalize_one_pred_1): Ditto.
21979 (normalize_one_pred): Ditto.
21980 (normalize_one_pred_chain): Ditto.
21981 (normalize_preds): Ditto.
21982 (normalize_cond_1): Remove function.
21983 (normalize_cond): Ditto.
21984 (is_gcond_subset_of): Ditto.
21985 (is_subset_of_any): Ditto.
21986 (is_or_set_subset_of): Ditto.
21987 (is_and_set_subset_of): Ditto.
21988 (is_norm_cond_subset_of): Ditto.
21989 (pred_chain_length_cmp): Ditto.
21990 (convert_control_dep_chain_into_preds): Type change.
21991 (find_predicates): Ditto.
21992 (find_def_preds): Ditto.
21993 (destroy_predicates_vecs): Ditto.
21994 (find_matching_predicates_in_rest_chains): Ditto.
21995 (use_pred_not_overlap_with_undef_path_pred): Ditto.
21996 (is_pred_expr_subset): Ditto.
21997 (is_pred_chain_subset_of): Ditto.
21998 (is_included_in): Ditto.
21999 (is_superset_of): Ditto.
22000
22001 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22002
22003 Update copyright years.
22004
22005 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22006
22007 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
22008 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
22009 config/arc/arc.md, config/arc/arc.opt,
22010 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22011 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22012 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22013 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22014 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22015 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22016 vtable-verify.c, vtable-verify.h: Use the standard form for the
22017 copyright notice.
22018
22019 2014-01-02 Tobias Burnus <burnus@net-b.de>
22020
22021 * gcc.c (process_command): Update copyright notice dates.
22022 * gcov-dump.c: Ditto.
22023 * gcov.c: Ditto.
22024 * doc/cpp.texi: Bump @copying's copyright year.
22025 * doc/cppinternals.texi: Ditto.
22026 * doc/gcc.texi: Ditto.
22027 * doc/gccint.texi: Ditto.
22028 * doc/gcov.texi: Ditto.
22029 * doc/install.texi: Ditto.
22030 * doc/invoke.texi: Ditto.
22031
22032 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22033
22034 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22035
22036 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22037
22038 * config/i386/sse.md (*mov<mode>_internal): Guard
22039 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22040
22041 PR rtl-optimization/59647
22042 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22043 new_rtx into UNSIGNED_FLOAT rtxes.
22044 \f
22045 Copyright (C) 2014 Free Software Foundation, Inc.
22046
22047 Copying and distribution of this file, with or without modification,
22048 are permitted in any medium without royalty provided the copyright
22049 notice and this notice are preserved.