peephole returns an rtx_insn
[gcc.git] / gcc / ChangeLog
1 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2
3 * output.h (peephole): Strengthen return type from rtx to
4 rtx_insn *.
5 * rtl.h (delete_for_peephole): Likewise for both params.
6 * genpeep.c (main): In generated "peephole" function, strengthen
7 return type and local "insn" from rtx to rtx_insn *. For now,
8 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
9 rtx_insn *, with a checked cast.
10 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
11 locals "insn", "next", "prev" from rtx to rtx_insn *.
12
13 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
14
15 PR tree-optimization/62112
16 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
17 * gimple-iterator.h (gsi_replace): Return bool.
18 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
19 moved from ref_may_alias_global_p.
20 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
21 New overloads.
22 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
23 (stmt_kills_ref_p_1): Rename...
24 (stmt_kills_ref_p): ... to this.
25 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
26 stmt_kills_ref_p): Declare.
27 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
28 Move the self-assignment case...
29 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
30
31 2014-08-21 David Malcolm <dmalcolm@redhat.com>
32
33 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
34
35 * emit-rtl.c (try_split): Likewise, also for locals "before" and
36 "after". For now, don't strengthen param "trial", which requires
37 adding checked casts when returning it.
38
39 2014-08-21 David Malcolm <dmalcolm@redhat.com>
40
41 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
42 "label" from rtx to rtx_code_label *. Strengthen param 1 of
43 "var_location" hook from rtx to rtx_insn *.
44 (debug_nothing_rtx): Delete in favor of...
45 (debug_nothing_rtx_code_label): New prototype.
46 (debug_nothing_rtx_rtx): Delete unused prototype.
47 (debug_nothing_rtx_insn): New prototype.
48
49 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
50 invoking debug_hooks->var_location (in two places, one in a NOTE
51 case of a switch statement, the other guarded by a CALL_P
52 conditional. Add checked cast to rtx_code_label * when invoking
53 debug_hooks->label (within CODE_LABEL case of switch statement).
54
55 * dbxout.c (dbx_debug_hooks): Update "label" hook from
56 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
57 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
58 (xcoff_debug_hooks): Likewise.
59 * debug.c (do_nothing_debug_hooks): Likewise.
60 (debug_nothing_rtx): Delete in favor of...
61 (debug_nothing_rtx_insn): New function.
62 (debug_nothing_rtx_rtx): Delete unused function.
63 (debug_nothing_rtx_code_label): New function.
64 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
65 debug_nothing_rtx to debug_nothing_rtx_code_label.
66 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
67 to rtx_insn *.
68 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
69 debug_nothing_rtx to debug_nothing_rtx_insn.
70 (sdbout_label): Strengthen param "insn" from rtx to
71 rtx_code_label *.
72 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
73 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
74 "var_location" hook from debug_nothing_rtx to
75 debug_nothing_rtx_insn.
76
77 2014-08-21 David Malcolm <dmalcolm@redhat.com>
78
79 * recog.h (insn_output_fn): Update this function typedef to match
80 the changes below to the generated output functions, strengthening
81 the 2nd param from rtx to rtx_insn *.
82
83 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
84 insn when invoking an output function, to match the new signature
85 of insn_output_fn with a stronger second param.
86
87 * genconditions.c (write_header): In the generated code for
88 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
89 to match the other changes in this patch.
90
91 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
92 the generated "gen_" functions from rtx to rtx_insn * within their
93 implementations.
94
95 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
96 the subfunctions within the generated "recog_", "split", "peephole2"
97 function trees from rtx to rtx_insn *. For now, the top-level
98 generated functions ("recog", "split", "peephole2") continue to
99 take a plain rtx for "insn", to avoid introducing dependencies on
100 other patches. Rename this 2nd param from "insn" to
101 "uncast_insn", and reintroduce "insn" as a local variable of type
102 rtx_insn *, initialized at the top of the generated function with
103 a checked cast on "uncast_insn".
104 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
105 the generated "gen_" functions from rtx to rtx_insn * within their
106 prototypes.
107
108 * genoutput.c (process_template): Strengthen the 2nd param within
109 the generated "output_" functions "insn" from rtx to rtx_insn *.
110
111 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
112
113 * tree-profile.c (tree_profiling): Skip external functions
114 when doing coverage instrumentation.
115 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
116
117 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
118
119 * config/rs6000/altivec.h (vec_cpsgn): New #define.
120 (vec_mergee): Likewise.
121 (vec_mergeo): Likewise.
122 (vec_cntlz): Likewise.
123 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
124 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
125 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
126 VMRGEW, and VMRGOW.
127 * doc/extend.texi: Document various forms of vec_cpsgn,
128 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
129 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
130 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
131 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
132 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
133
134 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
135
136 * config/rs6000/rs6000.c (context.h): New include.
137 (tree-pass.h): Likewise.
138 (make_pass_analyze_swaps): New decl.
139 (rs6000_option_override): Register pass_analyze_swaps.
140 (swap_web_entry): New subsclass of web_entry_base (df.h).
141 (special_handling_values): New enum.
142 (union_defs): New function.
143 (union_uses): Likewise.
144 (insn_is_load_p): Likewise.
145 (insn_is_store_p): Likewise.
146 (insn_is_swap_p): Likewise.
147 (rtx_is_swappable_p): Likewise.
148 (insn_is_swappable_p): Likewise.
149 (chain_purpose): New enum.
150 (chain_contains_only_swaps): New function.
151 (mark_swaps_for_removal): Likewise.
152 (swap_const_vector_halves): Likewise.
153 (adjust_subreg_index): Likewise.
154 (permute_load): Likewise.
155 (permute_store): Likewise.
156 (handle_special_swappables): Likewise.
157 (replace_swap_with_copy): Likewise.
158 (dump_swap_insn_table): Likewise.
159 (rs6000_analyze_swaps): Likewise.
160 (pass_data_analyze_swaps): New pass_data.
161 (pass_analyze_swaps): New rtl_opt_pass.
162 (make_pass_analyze_swaps): New function.
163 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
164
165 2014-08-21 David Malcolm <dmalcolm@redhat.com>
166
167 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
168 type from rtx to rtx_insn *.
169 (create_copy_of_insn_rtx): Likewise.
170 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
171 (create_copy_of_insn_rtx): Likewise, also for local "res".
172
173 2014-08-21 David Malcolm <dmalcolm@redhat.com>
174
175 * rtl.h (find_first_parameter_load): Strengthen return type from
176 rtx to rtx_insn *.
177 * rtlanal.c (find_first_parameter_load): Strengthen return type
178 from rtx to rtx_insn *. Add checked cast for now, to postpone
179 strengthening the params.
180
181 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
182
183 PR fortran/44054
184 * diagnostic.c: Set default caret.
185 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
186 line is needed.
187 * diagnostic.h (struct diagnostic_context):
188
189 2014-08-21 David Malcolm <dmalcolm@redhat.com>
190
191 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
192 (sel_bb_head): Strengthen return type insn_t (currently just an
193 rtx) to rtx_insn *.
194 (sel_bb_end): Likewise.
195
196 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
197 (sel_bb_head): Strengthen return type and local "head" from
198 insn_t (currently just an rtx) to rtx_insn *.
199 (sel_bb_end): Likewise for return type.
200 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
201 working with insn.
202
203 2014-08-21 David Malcolm <dmalcolm@redhat.com>
204
205 * basic-block.h (get_last_bb_insn): Strengthen return type from
206 rtx to rtx_insn *.
207 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
208 end".
209
210 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
211
212 PR fortran/44054
213 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
214 to here ...
215 (diagnostic_report_diagnostic): ... from here.
216 * toplev.c (general_init): Move code to c-family.
217
218 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
219
220 * df.h (web_entry_base): Replace existing struct web_entry with a
221 new class web_entry_base with only the predecessor member.
222 (unionfind_root): Remove declaration and move to class member.
223 (unionfind_union): Remove declaration and move to friend
224 function.
225 (union_defs): Remove declaration.
226 * web.c (web_entry_base::unionfind_root): Modify to be member
227 function and adjust accessors.
228 (unionfind_union): Modify to be friend function and adjust
229 accessors.
230 (web_entry): New subclass of web_entry_base containing the reg
231 member.
232 (union_match_dups): Modify for struct -> class changes.
233 (union_defs): Likewise.
234 (entry_register): Likewise.
235 (pass_web::execute): Likewise.
236
237 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
238
239 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
240 builtin define __VEC_ELEMENT_REG_ORDER__.
241
242 2014-08-20 Martin Jambor <mjambor@suse.cz>
243 Wei Mi <wmi@google.com>
244
245 PR ipa/60449
246 PR middle-end/61776
247 * tree-ssa-operands.c (update_stmt_operands): Remove
248 MODIFIED_NORETURN_CALLS.
249 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
250 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
251 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
252 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
253 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
254 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
255 (gimple_call_set_ctrl_altering): New func.
256 (gimple_call_ctrl_altering_p): Ditto.
257 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
258 (make_blocks): Use gimple_call_initialize_ctrl_altering.
259 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
260 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
261 remove MODIFIED_NORETURN_CALLS.
262
263 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
264
265 * coverage.c (coverage_compute_profile_id): Return non-0;
266 also handle symbols with unique name.
267 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
268
269 2014-08-20 Steve Ellcey <sellcey@mips.com>
270
271 PR middle-end/49191
272 * doc/sourcebuild.texi (non_strict_align): New.
273
274 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
275
276 * cgraphunit.c (ipa_passes, compile): Reshedule
277 symtab_remove_unreachable_nodes passes; update comments.
278 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
279 TODO_remove_functions before the pass; the functions ought to be
280 already removed.
281 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
282 TODO_remove_functions.
283 * passes.c (pass_data_early_local_passes): Do not schedule function
284 removal.
285 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
286
287 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
288
289 PR c/59304
290 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
291 before setting the option.
292 * diagnostic.c (diagnostic_classify_diagnostic): Record
293 command-line status.
294
295 2014-08-20 Richard Biener <rguenther@suse.de>
296
297 PR lto/62190
298 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
299 to build uint{16,32,64}_type_node.
300
301 2014-08-20 Terry Guo <terry.guo@arm.com>
302
303 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
304 with immediate_operand.
305
306 2014-08-20 David Malcolm <dmalcolm@redhat.com>
307
308 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
309 "insn" from an as_a to a safe_as_a, for the case when "insn" is
310 NULL.
311
312 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
313
314 PR preprocessor/51303
315 * incpath.c (remove_duplicates): Use cpp_warning.
316
317 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
318
319 PR c/60975
320 PR c/53063
321 * doc/options.texi (CPP): Document it.
322 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
323 * optc-gen.awk: Handle CPP.
324 * opth-gen.awk: Likewise.
325
326 2014-08-19 David Malcolm <dmalcolm@redhat.com>
327
328 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
329 rtx_insn *.
330 (duplicate_insn_chain): Likewise.
331 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
332 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
333 checked cast for now (until we can strengthen the params in the
334 same way).
335 (duplicate_insn_chain): Likewise.
336
337 2014-08-19 David Malcolm <dmalcolm@redhat.com>
338
339 * rtl.h (next_cc0_user): Strengthen return type from rtx to
340 rtx_insn *.
341 (prev_cc0_setter): Likewise.
342
343 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
344 rtx_insn *, adding checked casts for now as necessary.
345 (prev_cc0_setter): Likewise.
346
347 2014-08-19 David Malcolm <dmalcolm@redhat.com>
348
349 * expr.h (emit_move_insn): Strengthen return type from rtx to
350 rtx_insn *.
351 (emit_move_insn_1): Likewise.
352 (emit_move_complex_push): Likewise.
353 (emit_move_complex_parts): Likewise.
354
355 * expr.c (emit_move_via_integer): Strengthen return type from rtx
356 to rtx_insn *. Replace use of NULL_RTX with NULL when working
357 with insns.
358 (emit_move_complex_push): Strengthen return type from rtx to
359 rtx_insn *.
360 (emit_move_complex): Likewise, also for local "ret".
361 (emit_move_ccmode): Likewise.
362 (emit_move_multi_word): Likewise for return type and locals
363 "last_insn", "seq".
364 (emit_move_insn_1): Likewise for return type and locals "result",
365 "ret".
366 (emit_move_insn): Likewise for return type and local "last_insn".
367 (compress_float_constant): Likewise.
368
369 2014-08-19 David Malcolm <dmalcolm@redhat.com>
370
371 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
372 from rtx to rtx_insn *.
373
374 * rtl.h (emit_insn_before): Likewise.
375 (emit_insn_before_noloc): Likewise.
376 (emit_insn_before_setloc): Likewise.
377 (emit_jump_insn_before): Likewise.
378 (emit_jump_insn_before_noloc): Likewise.
379 (emit_jump_insn_before_setloc): Likewise.
380 (emit_call_insn_before): Likewise.
381 (emit_call_insn_before_noloc): Likewise.
382 (emit_call_insn_before_setloc): Likewise.
383 (emit_debug_insn_before): Likewise.
384 (emit_debug_insn_before_noloc): Likewise.
385 (emit_debug_insn_before_setloc): Likewise.
386 (emit_label_before): Likewise.
387 (emit_insn_after): Likewise.
388 (emit_insn_after_noloc): Likewise.
389 (emit_insn_after_setloc): Likewise.
390 (emit_jump_insn_after): Likewise.
391 (emit_jump_insn_after_noloc): Likewise.
392 (emit_jump_insn_after_setloc): Likewise.
393 (emit_call_insn_after): Likewise.
394 (emit_call_insn_after_noloc): Likewise.
395 (emit_call_insn_after_setloc): Likewise.
396 (emit_debug_insn_after): Likewise.
397 (emit_debug_insn_after_noloc): Likewise.
398 (emit_debug_insn_after_setloc): Likewise.
399 (emit_label_after): Likewise.
400 (emit_insn): Likewise.
401 (emit_debug_insn): Likewise.
402 (emit_jump_insn): Likewise.
403 (emit_call_insn): Likewise.
404 (emit_label): Likewise.
405 (gen_clobber): Likewise.
406 (emit_clobber): Likewise.
407 (gen_use): Likewise.
408 (emit_use): Likewise.
409 (emit): Likewise.
410
411 (emit_barrier_before): Strengthen return type from rtx to
412 rtx_barrier *.
413 (emit_barrier_after): Likewise.
414 (emit_barrier): Likewise.
415
416 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
417 from rtx to rtx_insn *. Add checked casts for now when converting
418 "last" from rtx to rtx_insn *.
419 (emit_insn_before_noloc): Likewise for return type.
420 (emit_jump_insn_before_noloc): Likewise.
421 (emit_call_insn_before_noloc): Likewise.
422 (emit_debug_insn_before_noloc): Likewise.
423 (emit_barrier_before): Strengthen return type and local "insn"
424 from rtx to rtx_barrier *.
425 (emit_label_before): Strengthen return type from rtx to
426 rtx_insn *. Add checked cast for now when returning param
427 (emit_pattern_after_noloc): Strengthen return type from rtx to
428 rtx_insn *. Add checked casts for now when converting "last" from
429 rtx to rtx_insn *.
430 (emit_insn_after_noloc): Strengthen return type from rtx to
431 rtx_insn *.
432 (emit_jump_insn_after_noloc): Likewise.
433 (emit_call_insn_after_noloc): Likewise.
434 (emit_debug_insn_after_noloc): Likewise.
435 (emit_barrier_after): Strengthen return type from rtx to
436 rtx_barrier *.
437 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
438 Add checked cast for now when converting "label" from rtx to
439 rtx_insn *.
440 (emit_pattern_after_setloc): Strengthen return type from rtx to
441 rtx_insn *. Add checked casts for now when converting "last" from
442 rtx to rtx_insn *.
443 (emit_pattern_after): Strengthen return type from rtx to
444 rtx_insn *.
445 (emit_insn_after_setloc): Likewise.
446 (emit_insn_after): Likewise.
447 (emit_jump_insn_after_setloc): Likewise.
448 (emit_jump_insn_after): Likewise.
449 (emit_call_insn_after_setloc): Likewise.
450 (emit_call_insn_after): Likewise.
451 (emit_debug_insn_after_setloc): Likewise.
452 (emit_debug_insn_after): Likewise.
453 (emit_pattern_before_setloc): Likewise. Add checked casts for now
454 when converting "last" from rtx to rtx_insn *.
455 (emit_pattern_before): Strengthen return type from rtx to
456 rtx_insn *.
457 (emit_insn_before_setloc): Likewise.
458 (emit_insn_before): Likewise.
459 (emit_jump_insn_before_setloc): Likewise.
460 (emit_jump_insn_before): Likewise.
461 (emit_call_insn_before_setloc): Likewise.
462 (emit_call_insn_before): Likewise.
463 (emit_debug_insn_before_setloc): Likewise.
464 (emit_debug_insn_before): Likewise.
465 (emit_insn): Strengthen return type and locals "last", "insn",
466 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
467 within cases where we know we have an insn.
468 (emit_debug_insn): Likewise.
469 (emit_jump_insn): Likewise.
470 (emit_call_insn): Strengthen return type and local "insn" from rtx
471 to rtx_insn *.
472 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
473 a checked cast to rtx_insn * for now on "label".
474 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
475 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
476 (emit_use): Likewise.
477 (gen_use): Likewise, also for local "seq".
478 (emit): Likewise for return type and local "insn".
479 (rtx_insn): Likewise for return type and local "new_rtx".
480
481 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
482 from rtx to rtx_barrier *.
483
484 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
485 changed return type from rtx to rtx_insn *, we must update
486 "emit_fn" type, and this in turn means updating...
487 (frame_insn): ...this. Strengthen return type from rtx to
488 rtx_insn *. Introduce a new local "insn" of the appropriate type.
489
490 2014-08-19 David Malcolm <dmalcolm@redhat.com>
491
492 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
493 rtx to rtx_jump_table_data *. Also for local.
494 * rtl.h (emit_jump_table_data): Likewise.
495
496 2014-08-19 David Malcolm <dmalcolm@redhat.com>
497
498 * basic-block.h (create_basic_block_structure): Strengthen third
499 param "bb_note" from rtx to rtx_note *.
500 * rtl.h (emit_note_before): Strengthen return type from rtx to
501 rtx_note *.
502 (emit_note_after): Likewise.
503 (emit_note): Likewise.
504 (emit_note_copy): Likewise. Also, strengthen param similarly.
505 * function.h (struct rtl_data): Strengthen field
506 "x_stack_check_probe_note" from rtx to rtx_note *.
507
508 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
509 from rtx to rtx_note *.
510 * cfgrtl.c (create_basic_block_structure): Strengthen third param
511 "bb_note" from rtx to rtx_note *.
512 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
513 when calling emit_note_copy.
514 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
515 rtx_note *.
516 (emit_note_after): Likewise.
517 (emit_note_before): Likewise.
518 (emit_note_copy): Likewise. Also, strengthen param similarly.
519 (emit_note): Likewise.
520 * except.c (emit_note_eh_region_end): Likewise for return type.
521 Strengthen local "next" from rtx to rtx_insn *.
522 (convert_to_eh_region_ranges): Strengthen local "note"
523 from rtx to rtx_note *.
524 * final.c (change_scope): Likewise.
525 (reemit_insn_block_notes): Likewise, for both locals named "note".
526 Also, strengthen local "insn" from rtx to rtx_insn *.
527 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
528 rtx to rtx_note *.
529 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
530 strengthen local "seq" from rtx to rtx_insn *.
531 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
532 to rtx_note *.
533 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
534 vec<rtx_note *>.
535 (get_bb_note_from_pool): Strengthen return type from rtx to
536 rtx_note *.
537 (sel_create_basic_block): Strengthen local "new_bb_note" from
538 insn_t to rtx_note *.
539 * var-tracking.c (emit_note_insn_var_location): Strengthen local
540 "note" from rtx to rtx_note *.
541 (emit_notes_in_bb): Likewise.
542
543 2014-08-19 David Malcolm <dmalcolm@redhat.com>
544
545 * function.h (struct rtl_data): Strengthen field
546 "x_parm_birth_insn" from rtx to rtx_insn *.
547 * function.c (struct assign_parm_data_all): Strengthen fields
548 "first_conversion_insn" and "last_conversion_insn" from rtx to
549 rtx_insn *.
550
551 2014-08-19 David Malcolm <dmalcolm@redhat.com>
552
553 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
554 to rtx_insn *; also for local "var_end_seq".
555 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
556 (maybe_cleanup_end_of_block): Likewise for param "last" and local
557 "insn".
558 (expand_gimple_cond): Likewise for locals "last2" and "last".
559 (mark_transaction_restart_calls): Likewise for local "insn".
560 (expand_gimple_stmt): Likewise for return type and locals "last"
561 and "insn".
562 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
563 (avoid_complex_debug_insns): Likewise for param "insn".
564 (expand_debug_locations): Likewise for locals "insn", "last",
565 "prev_insn" and "insn2".
566 (expand_gimple_basic_block): Likewise for local "last".
567 (construct_exit_block): Likewise for locals "head", "end",
568 "orig_end".
569 (pass_expand::execute): Likewise for locals "var_seq",
570 "var_ret_seq", "next".
571
572 2014-08-19 David Malcolm <dmalcolm@redhat.com>
573
574 * asan.h (asan_emit_stack_protection): Strengthen return type from
575 rtx to rtx_insn *.
576 * asan.c (asan_emit_stack_protection): Likewise. Add local
577 "insns" to hold the return value.
578
579 2014-08-19 David Malcolm <dmalcolm@redhat.com>
580
581 * basic-block.h (bb_note): Strengthen return type from rtx to
582 rtx_note *.
583 * sched-int.h (bb_note): Likewise.
584 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
585
586 2014-08-19 David Malcolm <dmalcolm@redhat.com>
587
588 * rtl.h (make_insn_raw): Strengthen return type from rtx to
589 rtx_insn *.
590
591 * emit-rtl.c (make_insn_raw): Strengthen return type and local
592 "insn" from rtx to rtx_insn *.
593 (make_debug_insn_raw): Strengthen return type from rtx to
594 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
595 (make_jump_insn_raw): Strengthen return type from rtx to
596 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
597 (make_call_insn_raw): Strengthen return type from rtx to
598 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
599 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
600 callback from rtx to rtx_insn *; likewise for local "insn" and
601 "next", adding a checked cast to rtx_insn in the relevant cases of
602 the switch statement.
603 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
604 callback from rtx to rtx_insn *.
605 (emit_pattern_after_setloc): Likewise.
606 (emit_pattern_after): Likewise.
607 (emit_pattern_before_setloc): Likewise.
608 (emit_pattern_before): Likewise.
609
610 2014-08-19 David Malcolm <dmalcolm@redhat.com>
611
612 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
613 rtx_call_insn *.
614 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
615 accepting an rtx_insn *.
616 (last_call_insn): Strengthen return type from rtx to
617 rtx_call_insn *.
618
619 2014-08-19 David Malcolm <dmalcolm@redhat.com>
620
621 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
622 "insns" from rtx to rtx_insn *.
623 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
624 locals "insn" and "prev".
625
626 2014-08-19 David Malcolm <dmalcolm@redhat.com>
627
628 * rtl.h (tablejump_p): Strengthen third param from rtx * to
629 rtx_jump_table_data **.
630
631 * cfgbuild.c (make_edges): Introduce local "table", using it in
632 place of "tmp" for jump table data.
633 (find_bb_boundaries): Strengthen local "table" from rtx to
634 rtx_jump_table_data *.
635 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
636 (outgoing_edges_match): Likewise for locals "table1" and "table2".
637 (try_crossjump_to_edge): Likewise.
638 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
639 "table".
640 (patch_jump_insn): Introduce local "table", using it in place of
641 "tmp" for jump table data.
642 (force_nonfallthru_and_redirect): Introduce local "table", so that
643 call to tablejump_p can receive an rtx_jump_table_data **. Update
644 logic around the call to overwrite "note" appropriately if
645 tablejump_p returns non-zero.
646 (get_last_bb_insn): Introduce local "table", using it in place of
647 "tmp" for jump table data.
648 * dwarf2cfi.c (create_trace_edges): Likewise.
649
650 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
651 from rtx to rtx_jump_table_data *.
652 (create_fix_barrier): Strengthen local "tmp" from rtx to
653 rtx_jump_table_data *.
654 (arm_reorg): Likewise for local "table".
655
656 * config/s390/s390.c (s390_chunkify_start): Likewise.
657
658 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
659
660 * jump.c (delete_related_insns): Strengthen local "lab_next" from
661 rtx to rtx_jump_table_data *.
662
663 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
664 rtx_jump_table_data **. Add a checked cast when writing through
665 the pointer: we know there that local "table" is non-NULL and that
666 JUMP_TABLE_DATA_P (table) holds.
667 (label_is_jump_target_p): Introduce local "table", using it in
668 place of "tmp" for jump table data.
669
670 2014-08-19 Marek Polacek <polacek@redhat.com>
671
672 PR c++/62153
673 * doc/invoke.texi: Document -Wbool-compare.
674
675 2014-08-19 David Malcolm <dmalcolm@redhat.com>
676
677 * rtl.h (entry_of_function): Strengthen return type from rtx to
678 rtx_insn *.
679 * cfgrtl.c (entry_of_function): Likewise.
680
681 2014-08-19 David Malcolm <dmalcolm@redhat.com>
682
683 * emit-rtl.h (get_insns): Strengthen return type from rtx to
684 rtx_insn *, adding a checked cast for now.
685 (get_last_insn): Likewise.
686
687 2014-08-19 David Malcolm <dmalcolm@redhat.com>
688
689 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
690 rtx_code_label *.
691
692 * emit-rtl.c (gen_label_rtx): Likewise.
693
694 2014-08-19 David Malcolm <dmalcolm@redhat.com>
695
696 * rtl.h (previous_insn): Strengthen return type from rtx to
697 rtx_insn *.
698 (next_insn): Likewise.
699 (prev_nonnote_insn): Likewise.
700 (prev_nonnote_insn_bb): Likewise.
701 (next_nonnote_insn): Likewise.
702 (next_nonnote_insn_bb): Likewise.
703 (prev_nondebug_insn): Likewise.
704 (next_nondebug_insn): Likewise.
705 (prev_nonnote_nondebug_insn): Likewise.
706 (next_nonnote_nondebug_insn): Likewise.
707 (prev_real_insn): Likewise.
708 (next_real_insn): Likewise.
709 (prev_active_insn): Likewise.
710 (next_active_insn): Likewise.
711
712 * emit-rtl.c (next_insn): Strengthen return type from rtx to
713 rtx_insn *, adding a checked cast.
714 (previous_insn): Likewise.
715 (next_nonnote_insn): Likewise.
716 (next_nonnote_insn_bb): Likewise.
717 (prev_nonnote_insn): Likewise.
718 (prev_nonnote_insn_bb): Likewise.
719 (next_nondebug_insn): Likewise.
720 (prev_nondebug_insn): Likewise.
721 (next_nonnote_nondebug_insn): Likewise.
722 (prev_nonnote_nondebug_insn): Likewise.
723 (next_real_insn): Likewise.
724 (prev_real_insn): Likewise.
725 (next_active_insn): Likewise.
726 (prev_active_insn): Likewise.
727
728 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
729 param "stepfunc" so that it returns an rtx_insn * rather than an
730 rtx, to track the change to prev_nonnote_insn_bb, which is the
731 only function this is called with.
732 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
733
734 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
735
736 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
737 assert.
738
739 2014-08-19 David Malcolm <dmalcolm@redhat.com>
740
741 * coretypes.h (class rtx_debug_insn): Add forward declaration.
742 (class rtx_nonjump_insn): Likewise.
743 (class rtx_jump_insn): Likewise.
744 (class rtx_call_insn): Likewise.
745 (class rtx_jump_table_data): Likewise.
746 (class rtx_barrier): Likewise.
747 (class rtx_code_label): Likewise.
748 (class rtx_note): Likewise.
749
750 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
751 adding the invariant DEBUG_INSN_P (X).
752 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
753 the invariant NONJUMP_INSN_P (X).
754 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
755 the invariant JUMP_P (X).
756 (class rtx_call_insn): New, a subclass of rtx_insn, adding
757 the invariant CALL_P (X).
758 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
759 invariant JUMP_TABLE_DATA_P (X).
760 (class rtx_barrier): New, a subclass of rtx_insn, adding the
761 invariant BARRIER_P (X).
762 (class rtx_code_label): New, a subclass of rtx_insn, adding
763 the invariant LABEL_P (X).
764 (class rtx_note): New, a subclass of rtx_insn, adding
765 the invariant NOTE_P(X).
766 (is_a_helper <rtx_debug_insn *>::test): New.
767 (is_a_helper <rtx_nonjump_insn *>::test): New.
768 (is_a_helper <rtx_jump_insn *>::test): New.
769 (is_a_helper <rtx_call_insn *>::test): New.
770 (is_a_helper <rtx_jump_table_data *>::test): New functions,
771 overloaded for both rtx and rtx_insn *.
772 (is_a_helper <rtx_barrier *>::test): New.
773 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
774 for both rtx and rtx_insn *.
775 (is_a_helper <rtx_note *>::test): New.
776
777 2014-08-19 Marek Polacek <polacek@redhat.com>
778
779 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
780 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
781 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
782 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
783
784 2014-08-19 David Malcolm <dmalcolm@redhat.com>
785
786 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
787 rtx_insn *. To help with transition, for now, convert from an
788 access macro into a pair of functions: BND_TO, returning an
789 rtx_insn *, and...
790 (SET_BND_TO): New function, for use where BND_TO is used as an
791 lvalue.
792
793 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
794 SET_BND_TO.
795 (BND_TO): New function, adding a checked cast.
796 (SET_BND_TO): New function.
797
798 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
799 SET_BND_TO.
800 (compute_av_set_on_boundaries): Likewise.
801
802 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
803
804 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
805 destination if it is used in source.
806 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
807 (*popcount<mode>2_falsedep_1): Likewise.
808
809 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
810
811 PR other/62168
812 * configure.ac: Set install_gold_as_default to no first.
813 * configure: Regenerated.
814
815 2014-08-19 David Malcolm <dmalcolm@redhat.com>
816
817 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
818 "note_list" field will eventually be an rtx_insn *. To help with
819 transition, for now, convert from an access macro into a pair of
820 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
821 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
822 used as an lvalue.
823
824 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
825 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
826
827 * sel-sched-ir.c (init_bb): Likewise.
828 (sel_restore_notes): Likewise.
829 (move_bb_info): Likewise.
830 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
831 (SET_BB_NOTE_LIST): New function.
832
833 2014-08-19 David Malcolm <dmalcolm@redhat.com>
834
835 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
836 field will eventually be an rtx_insn *. To help with transition,
837 for now, convert from an access macro into a pair of functions:
838 VINSN_INSN_RTX, returning an rtx_insn *, and...
839 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
840 is used as an lvalue.
841
842 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
843 SET_VINSN_INSN_RTX where it's used as an lvalue.
844 (VINSN_INSN_RTX): New function.
845 (SET_VINSN_INSN_RTX): New function.
846
847 2014-08-19 David Malcolm <dmalcolm@redhat.com>
848
849 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
850 eventually be rtx_insn *, but to help with transition, for now,
851 convert from an access macro into a pair of functions: DEP_PRO
852 returning an rtx_insn * and...
853 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
854 lvalue, returning an rtx&.
855 (DEP_CON): Analogous changes to DEP_PRO above.
856 (SET_DEP_CON): Likewise.
857
858 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
859 an lvalue to SET_DEP_CON.
860 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
861 (sd_copy_back_deps): Likewise for DEP_CON.
862 (DEP_PRO): New function, adding a checked cast for now.
863 (DEP_CON): Likewise.
864 (SET_DEP_PRO): New function.
865 (SET_DEP_CON): Likewise.
866
867 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
868
869 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
870 (extra_options): Add i386/cygwin.opt.
871 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
872 (CPP_SPEC): Accept -pthread.
873 (LINK_SPEC): Ditto.
874 (GOMP_SELF_SPECS): Update comment.
875 * config/i386/cygwin.opt: New file for -pthread flag.
876
877 2014-08-19 David Malcolm <dmalcolm@redhat.com>
878
879 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
880 * df.h (DF_REF_INSN): Convert from a macro to a function, so
881 that we can return an rtx_insn *.
882
883 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
884
885 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
886 when building executables, not DLLs. Add --large-address-aware
887 under the same conditions.
888 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
889 when building executables, not DLLs. Add --large-address-aware
890 under the same conditions when using -m32.
891
892 * config/i386/cygwin-stdint.h: Throughout, make type
893 definitions dependent on target architecture, not host.
894
895 2014-08-19 David Malcolm <dmalcolm@redhat.com>
896
897 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
898 the return type from rtx to rtx_insn *, which will enable various
899 conversions in followup patches. For now this is is done by a
900 checked cast.
901 (NEXT_INSN): Likewise.
902 (SET_PREV_INSN): Convert to an inline function. This is intended
903 for use as an lvalue, and so returns an rtx& to allow in-place
904 modification.
905 (SET_NEXT_INSN): Likewise.
906
907 2014-07-08 Mark Wielaard <mjw@redhat.com>
908
909 PR debug/59051
910 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
911
912 2014-08-19 Marek Polacek <polacek@redhat.com>
913
914 PR c/61271
915 * cgraphunit.c (handle_alias_pairs): Fix condition.
916
917 2014-08-19 Richard Biener <rguenther@suse.de>
918
919 * gimple-fold.c (fold_gimple_assign): Properly build a
920 null-pointer constant when devirtualizing addresses.
921
922 2014-07-07 Mark Wielaard <mjw@redhat.com>
923
924 * dwarf2out.c (decl_quals): New function.
925 (modified_type_die): Take one cv_quals argument instead of two,
926 one for const and one for volatile.
927 (add_type_attribute): Likewise.
928 (generic_parameter_die): Call add_type_attribute with one modifier
929 argument.
930 (base_type_for_mode): Likewise.
931 (add_bounds_info): Likewise.
932 (add_subscript_info): Likewise.
933 (gen_array_type_die): Likewise.
934 (gen_descr_array_type_die): Likewise.
935 (gen_entry_point_die): Likewise.
936 (gen_enumeration_type_die): Likewise.
937 (gen_formal_parameter_die): Likewise.
938 (gen_subprogram_die): Likewise.
939 (gen_variable_die): Likewise.
940 (gen_const_die): Likewise.
941 (gen_field_die): Likewise.
942 (gen_pointer_type_die): Likewise.
943 (gen_reference_type_die): Likewise.
944 (gen_ptr_to_mbr_type_die): Likewise.
945 (gen_inheritance_die): Likewise.
946 (gen_subroutine_type_die): Likewise.
947 (gen_typedef_die): Likewise.
948 (force_type_die): Likewise.
949
950 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
951
952 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
953 if unset.
954 * configure: Regenerate.
955
956 2014-08-19 Richard Biener <rguenther@suse.de>
957
958 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
959 DECL_EXTERNALs in BLOCKs as non-references.
960 * tree-streamer-out.c (streamer_write_chain): Likewise.
961
962 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
963 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
964 Anna Tikhonova <anna.tikhonova@intel.com>
965 Ilya Tocar <ilya.tocar@intel.com>
966 Andrey Turetskiy <andrey.turetskiy@intel.com>
967 Ilya Verbin <ilya.verbin@intel.com>
968 Kirill Yukhin <kirill.yukhin@intel.com>
969 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
970
971 * config/i386/sse.md
972 (define_mode_iterator VI48_AVX512F): Delete.
973 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
974 (define_mode_iterator VI2_AVX512VL): Ditto.
975 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
976 Delete.
977 (define_insn
978 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
979 New.
980 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
981 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
982 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
983 with VI48_AVX512F_AVX512VL): New.
984 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
985 with VI2_AVX512VL): Ditto.
986
987 2014-08-19 Marek Polacek <polacek@redhat.com>
988
989 * doc/invoke.texi: Document -Wc99-c11-compat.
990
991 2014-08-19 David Malcolm <dmalcolm@redhat.com>
992
993 * rtl.h (PREV_INSN): Split macro in two: the existing one,
994 for rvalues, and...
995 (SET_PREV_INSN): New macro, for use as an lvalue.
996 (NEXT_INSN, SET_NEXT_INSN): Likewise.
997
998 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
999 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1000 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1001 (fixup_abnormal_edges): Likewise.
1002 (unlink_insn_chain): Likewise.
1003 (fixup_reorder_chain): Likewise.
1004 (cfg_layout_delete_block): Likewise.
1005 (cfg_layout_merge_blocks): Likewise.
1006 * combine.c (update_cfg_for_uncondjump): Likewise.
1007 * emit-rtl.c (link_insn_into_chain): Likewise.
1008 (remove_insn): Likewise.
1009 (delete_insns_since): Likewise.
1010 (reorder_insns_nobb): Likewise.
1011 (emit_insn_after_1): Likewise.
1012 * final.c (rest_of_clean_state): Likewise.
1013 (final_scan_insn): Likewise.
1014 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1015 * haifa-sched.c (concat_note_lists): Likewise.
1016 (remove_notes): Likewise.
1017 (restore_other_notes): Likewise.
1018 (move_insn): Likewise.
1019 (unlink_bb_notes): Likewise.
1020 (restore_bb_notes): Likewise.
1021 * jump.c (delete_for_peephole): Likewise.
1022 * optabs.c (emit_libcall_block_1): Likewise.
1023 * reorg.c (emit_delay_sequence): Likewise.
1024 (fill_simple_delay_slots): Likewise.
1025 * sel-sched-ir.c (sel_move_insn): Likewise.
1026 (sel_remove_insn): Likewise.
1027 (get_bb_note_from_pool): Likewise.
1028 * sel-sched.c (move_nop_to_previous_block): Likewise.
1029
1030 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1031 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1032 (c6x_gen_bundles): Likewise.
1033 (hwloop_optimize): Likewise.
1034 * config/frv/frv.c (frv_function_prologue): Likewise.
1035 (frv_register_nop): Likewise.
1036 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1037 (ia64_reorg): Likewise.
1038 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1039 (mep_make_bundle): Likewise.
1040 (mep_bundle_insns): Likewise.
1041 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1042 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1043 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1044
1045 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1046
1047 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1048 return type from rtx to rtx_insn *.
1049 (BB_END): Likewise.
1050 (BB_HEADER): Likewise.
1051 (BB_FOOTER): Likewise.
1052 (SET_BB_HEAD): Convert to a function.
1053 (SET_BB_END): Likewise.
1054 (SET_BB_HEADER): Likewise.
1055 (SET_BB_FOOTER): Likewise.
1056
1057 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1058 Strengthen the return type from rtx to rtx_insn *. For now, this
1059 is done by adding a checked cast, but this will eventually
1060 become a field lookup.
1061 (BB_END): Likewise.
1062 (BB_HEADER): Likewise.
1063 (BB_FOOTER): Likewise.
1064 (SET_BB_HEAD): New function, from macro of same name. This is
1065 intended for use as an lvalue, and so returns an rtx& to allow
1066 in-place modification.
1067 (SET_BB_END): Likewise.
1068 (SET_BB_HEADER): Likewise.
1069 (SET_BB_FOOTER): Likewise.
1070
1071 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1072
1073 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1074 for rvalues, and...
1075 (SET_BB_HEAD): New macro, for use as a lvalue.
1076 (BB_END, SET_BB_END): Likewise.
1077 (BB_HEADER, SET_BB_HEADER): Likewise.
1078 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1079
1080 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1081 of BB_* macros into SET_BB_* macros.
1082 (fix_crossing_unconditional_branches): Likewise.
1083 * caller-save.c (save_call_clobbered_regs): Likewise.
1084 (insert_one_insn): Likewise.
1085 * cfgbuild.c (find_bb_boundaries): Likewise.
1086 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1087 (outgoing_edges_match): Likewise.
1088 (try_optimize_cfg): Likewise.
1089 * cfgexpand.c (expand_gimple_cond): Likewise.
1090 (expand_gimple_tailcall): Likewise.
1091 (expand_gimple_basic_block): Likewise.
1092 (construct_exit_block): Likewise.
1093 * cfgrtl.c (delete_insn): Likewise.
1094 (create_basic_block_structure): Likewise.
1095 (rtl_delete_block): Likewise.
1096 (rtl_split_block): Likewise.
1097 (emit_nop_for_unique_locus_between): Likewise.
1098 (rtl_merge_blocks): Likewise.
1099 (block_label): Likewise.
1100 (try_redirect_by_replacing_jump): Likewise.
1101 (emit_barrier_after_bb): Likewise.
1102 (fixup_abnormal_edges): Likewise.
1103 (record_effective_endpoints): Likewise.
1104 (relink_block_chain): Likewise.
1105 (fixup_reorder_chain): Likewise.
1106 (fixup_fallthru_exit_predecessor): Likewise.
1107 (cfg_layout_duplicate_bb): Likewise.
1108 (cfg_layout_split_block): Likewise.
1109 (cfg_layout_delete_block): Likewise.
1110 (cfg_layout_merge_blocks): Likewise.
1111 * combine.c (update_cfg_for_uncondjump): Likewise.
1112 * emit-rtl.c (add_insn_after): Likewise.
1113 (remove_insn): Likewise.
1114 (reorder_insns): Likewise.
1115 (emit_insn_after_1): Likewise.
1116 * haifa-sched.c (get_ebb_head_tail): Likewise.
1117 (restore_other_notes): Likewise.
1118 (move_insn): Likewise.
1119 (sched_extend_bb): Likewise.
1120 (fix_jump_move): Likewise.
1121 * ifcvt.c (noce_process_if_block): Likewise.
1122 (dead_or_predicable): Likewise.
1123 * ira.c (update_equiv_regs): Likewise.
1124 * reg-stack.c (change_stack): Likewise.
1125 * sel-sched-ir.c (sel_move_insn): Likewise.
1126 * sel-sched.c (move_nop_to_previous_block): Likewise.
1127
1128 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1129 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1130
1131 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1132
1133 * rtl.h (for_each_rtx_in_insn): New function.
1134 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1135
1136 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1137
1138 * coretypes.h (class rtx_insn): Add forward declaration.
1139
1140 * rtl.h: Include is-a.h.
1141 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1142 workaround to ensure gengtype knows inheritance is occurring,
1143 whilst continuing to use the pre-existing special-casing for
1144 rtx_def.
1145 (class rtx_insn): New subclass of rtx_def, adding the
1146 invariant that we're dealing with something we can sanely use
1147 INSN_UID, NEXT_INSN, PREV_INSN on.
1148 (is_a_helper <rtx_insn *>::test): New.
1149 (is_a_helper <const rtx_insn *>::test): New.
1150
1151 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1152
1153 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1154
1155 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1156
1157 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1158 comdats as extern.
1159
1160 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1161
1162 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1163 to BUILT_IN_UNREACHABLE.
1164
1165 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1166
1167 PR target/62011
1168 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1169 New tune flag.
1170 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1171 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1172 (ffs<mode>2): Do not expand with tzcnt for
1173 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1174 (ffssi2_no_cmove): Ditto.
1175 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1176 (ctz<mode>2): New expander.
1177 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1178 (*ctz<mode>2_falsedep): New insn.
1179 (*ctz<mode>2): Rename from ctz<mode>2.
1180 (clz<mode>2_lzcnt): New expander.
1181 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1182 (*clz<mode>2_lzcnt_falsedep): New insn.
1183 (*clz<mode>2): Rename from ctz<mode>2.
1184 (popcount<mode>2): New expander.
1185 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1186 (*popcount<mode>2_falsedep): New insn.
1187 (*popcount<mode>2): Rename from ctz<mode>2.
1188 (*popcount<mode>2_cmp): Remove.
1189 (*popcountsi2_cmp_zext): Ditto.
1190
1191 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1192
1193 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1194 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1195 * config/microblaze/microblaze.h
1196 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1197
1198 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1199
1200 PR other/62168
1201 * configure.ac: Set install_gold_as_default to no for
1202 --enable-gold=no.
1203 * configure: Regenerated.
1204
1205 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1206
1207 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1208 * config.in: Add undef of HAVE_isl.
1209 * configure: Regenerate.
1210 * configure.ac: Add definition of HAVE_isl.
1211 * graphite-blocking.c: Add checking of HAVE_isl.
1212 * graphite-dependences.c: Likewise.
1213 * graphite-interchange.c: Likewise.
1214 * graphite-isl-ast-to-gimple.c: Likewise.
1215 * graphite-optimize-isl.c: Likewise.
1216 * graphite-poly.c: Likewise.
1217 * graphite-scop-detection.c: Likewise.
1218 * graphite-sese-to-poly.c: Likewise.
1219 * graphite.c: Likewise.
1220 * toplev.c: Replace the checking of HAVE_cloog with the checking
1221 of HAVE_isl.
1222
1223 2014-08-18 Richard Biener <rguenther@suse.de>
1224
1225 PR tree-optimization/62090
1226 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1227 (fold_builtin_3): Do not fold snprintf.
1228 (fold_builtin_4): Likewise.
1229 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1230 moved from builtins.c.
1231 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1232 (gimple_fold_builtin): Do not fold sprintf here.
1233
1234 2014-08-18 Richard Biener <rguenther@suse.de>
1235
1236 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1237 code to ...
1238 (maybe_canonicalize_mem_ref_addr): ... this function.
1239 (fold_stmt_1): Apply it here before all simplification.
1240
1241 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1242
1243 PR ipa/61800
1244 * cgraph.h (cgraph_node::create_indirect_edge): Add
1245 compute_indirect_info param.
1246 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1247 indirect_info only when it is required.
1248 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1249 indirect_info fore cloned indirect edge.
1250
1251 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1252 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1253 Anna Tikhonova <anna.tikhonova@intel.com>
1254 Ilya Tocar <ilya.tocar@intel.com>
1255 Andrey Turetskiy <andrey.turetskiy@intel.com>
1256 Ilya Verbin <ilya.verbin@intel.com>
1257 Kirill Yukhin <kirill.yukhin@intel.com>
1258 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1259
1260 * config/i386/sse.md
1261 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1262 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1263
1264 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1265 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1266 Anna Tikhonova <anna.tikhonova@intel.com>
1267 Ilya Tocar <ilya.tocar@intel.com>
1268 Andrey Turetskiy <andrey.turetskiy@intel.com>
1269 Ilya Verbin <ilya.verbin@intel.com>
1270 Kirill Yukhin <kirill.yukhin@intel.com>
1271 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1272
1273 * config/i386/sse.md
1274 (define_mode_iterator VF1_AVX512VL): New.
1275 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1276 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1277 New.
1278
1279 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1280 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1281 Anna Tikhonova <anna.tikhonova@intel.com>
1282 Ilya Tocar <ilya.tocar@intel.com>
1283 Andrey Turetskiy <andrey.turetskiy@intel.com>
1284 Ilya Verbin <ilya.verbin@intel.com>
1285 Kirill Yukhin <kirill.yukhin@intel.com>
1286 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1287
1288 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1289 * config/i386/i386.md
1290 (define_code_iterator any_float): New.
1291 (define_code_attr floatsuffix): New.
1292 * config/i386/sse.md
1293 (define_mode_iterator VF1_128_256VL): New.
1294 (define_mode_iterator VF2_512_256VL): New.
1295 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1296 TARGET check.
1297 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1298 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1299 New.
1300 (define_mode_attr qq2pssuff): New.
1301 (define_mode_attr sselongvecmode): New.
1302 (define_mode_attr sselongvecmodelower): New.
1303 (define_mode_attr sseintvecmode3): New.
1304 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1305 New.
1306 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1307 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1308 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1309 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1310
1311 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1312 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1313 Anna Tikhonova <anna.tikhonova@intel.com>
1314 Ilya Tocar <ilya.tocar@intel.com>
1315 Andrey Turetskiy <andrey.turetskiy@intel.com>
1316 Ilya Verbin <ilya.verbin@intel.com>
1317 Kirill Yukhin <kirill.yukhin@intel.com>
1318 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1319
1320 * config/i386/sse.md
1321 (define_mode_iterator VF2_AVX512VL): New.
1322 (define_mode_attr sseintvecmode2): New.
1323 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1324 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1325 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1326 (define_insn
1327 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1328 Ditto.
1329 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1330 Ditto.
1331 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1332 Ditto.
1333
1334 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1335 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1336 Anna Tikhonova <anna.tikhonova@intel.com>
1337 Ilya Tocar <ilya.tocar@intel.com>
1338 Andrey Turetskiy <andrey.turetskiy@intel.com>
1339 Ilya Verbin <ilya.verbin@intel.com>
1340 Kirill Yukhin <kirill.yukhin@intel.com>
1341 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1342
1343 * config/i386/i386.md
1344 (define_insn "*movoi_internal_avx"): Add evex version.
1345 (define_insn "*movti_internal"): Ditto.
1346
1347 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1348 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1349 Anna Tikhonova <anna.tikhonova@intel.com>
1350 Ilya Tocar <ilya.tocar@intel.com>
1351 Andrey Turetskiy <andrey.turetskiy@intel.com>
1352 Ilya Verbin <ilya.verbin@intel.com>
1353 Kirill Yukhin <kirill.yukhin@intel.com>
1354 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1355
1356 * config/i386/i386.md
1357 (define_attr "isa"): Add avx512dq, noavx512dq.
1358 (define_attr "enabled"): Ditto.
1359 * config/i386/sse.md
1360 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1361
1362 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1363 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1364 Anna Tikhonova <anna.tikhonova@intel.com>
1365 Ilya Tocar <ilya.tocar@intel.com>
1366 Andrey Turetskiy <andrey.turetskiy@intel.com>
1367 Ilya Verbin <ilya.verbin@intel.com>
1368 Kirill Yukhin <kirill.yukhin@intel.com>
1369 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1370
1371 * config/i386/i386.c
1372 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1373 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1374 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1375 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1376 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1377 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1378 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1379 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1380 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1381 * config/i386/sse.md
1382 (define_mode_iterator VMOVE): Allow V4TI mode.
1383 (define_mode_iterator V_AVX512VL): New.
1384 (define_mode_iterator V): New handling for AVX512VL.
1385 (define_insn "avx512f_load<mode>_mask"): Delete.
1386 (define_insn "<avx512>_load<mode>_mask"): New.
1387 (define_insn "avx512f_store<mode>_mask"): Delete.
1388 (define_insn "<avx512>_store<mode>_mask"): New.
1389
1390
1391 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1392
1393 PR sanitizer/62089
1394 * asan.c (instrument_derefs): Fix bitfield check.
1395
1396 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1397
1398 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1399 * config/rs6000/htm.md (ttest): Remove clobber.
1400 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1401 (and_operand): Reformat.
1402 (and_2rld_operand): New predicate.
1403 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1404 parameter.
1405 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1406 parameter. Handle AND directly.
1407 (rs6000_split_logical_di): Remove last parameter.
1408 (rs6000_split_logical): Remove last parameter. Remove obsolete
1409 comment.
1410 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1411 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1412 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1413 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1414 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1415 and 5 anonymous splitters): Delete.
1416 (and<mode>3): New expander.
1417 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1418 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1419 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1420 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1421 (floatdisf2_internal1): Remove clobbers.
1422 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1423 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1424 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1425 (and<mode>3 for BOOL_128): Remove clobber.
1426 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1427 rs6000_split_logical.
1428 (*bool<mode>3_internal for BOOL_128): Adjust call of
1429 rs6000_split_logical.
1430 (*boolc<mode>3_internal1 for BOOL_128,
1431 *boolc<mode>3_internal2 for BOOL_128,
1432 *boolcc<mode>3_internal1 for BOOL_128,
1433 *boolcc<mode>3_internal2 for BOOL_128,
1434 *eqv<mode>3_internal1 for BOOL_128,
1435 *eqv<mode>3_internal2 for BOOL_128,
1436 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1437 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1438 clobber.
1439 (*vec_reload_and_reg_<mptrsize>): Delete.
1440
1441 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1442
1443 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1444 and split, *boolccsi3_internal3 and split): Delete.
1445 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1446 *boolccdi3_internal3 and split): Delete.
1447 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1448 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1449
1450 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1451
1452 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1453 and split, *boolcsi3_internal3 and split): Delete.
1454 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1455 *boolcdi3_internal3 and split): Delete.
1456 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1457
1458 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1459
1460 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1461 <'u'>: Also support printing the low-order 16 bits.
1462 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1463 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1464 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1465 *booldi3_internal3 and split): Delete.
1466 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1467 *bool<mode>3_dot2): New.
1468 (two anonymous define_splits for non_logical_cint_operand): Merge.
1469
1470 2014-08-17 Marek Polacek <polacek@redhat.com>
1471 Manuel López-Ibáñez <manu@gcc.gnu.org>
1472
1473 PR c/62059
1474 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1475 (diagnostic_show_locus): Don't print caret diagnostic
1476 if a column is larger than the line_width.
1477
1478 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1479
1480 * common.opt: Make the ISL AST generator to be the main code generator
1481 of Graphite.
1482
1483 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1484
1485 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1486
1487 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1488
1489 PR target/61641
1490 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1491 Declare.
1492 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1493 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1494 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1495 Define.
1496 * config/pa/pa.md (begin_brtab): Delete insn.
1497 (end_brtab): Likewise.
1498
1499 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1500
1501 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1502
1503 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1504
1505 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1506 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1507 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1508 (get_dynamic_type): Remove.
1509 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1510 (clear_speculation): Bring to ipa-deivrt.h
1511 (get_class_context): Rename to ...
1512 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1513 (contains_type_p): Update.
1514 (get_dynamic_type): Rename to ...
1515 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1516 (possible_polymorphic_call_targets): UPdate.
1517 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1518 * ipa-prop.c (ipa_analyze_call_uses): Update.
1519
1520 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1521
1522 * doc/invoke.texi (SH options): Document missing processor variant
1523 options. Remove references to Hitachi. Undocument deprecated mspace
1524 option.
1525
1526 2014-08-15 Jason Merrill <jason@redhat.com>
1527
1528 * tree.c (type_hash_canon): Uncomment assert.
1529
1530 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1531
1532 * input.h (in_system_header_at): Add comment.
1533
1534 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1535
1536 PR fortran/44054
1537 * diagnostic.c (build_message_string): Make it extern.
1538 * diagnostic.h (build_message_string): Make it extern.
1539
1540 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1541
1542 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1543 load/store from/to non-floating class pseudo.
1544
1545 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1546
1547 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1548
1549 2014-08-15 Richard Biener <rguenther@suse.de>
1550
1551 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1552 (get_constraint_for_ssa_var): Remove dead code.
1553 (get_constraint_for_1): Adjust.
1554 (find_what_var_points_to): Likewise.
1555 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1556
1557 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1558
1559 PR target/61878
1560 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1561 (_mm512_mask_cmpge_epu32_mask): Ditto.
1562 (_mm512_cmpge_epu32_mask): Ditto.
1563 (_mm512_mask_cmpge_epi64_mask): Ditto.
1564 (_mm512_cmpge_epi64_mask): Ditto.
1565 (_mm512_mask_cmpge_epu64_mask): Ditto.
1566 (_mm512_cmpge_epu64_mask): Ditto.
1567 (_mm512_mask_cmple_epi32_mask): Ditto.
1568 (_mm512_cmple_epi32_mask): Ditto.
1569 (_mm512_mask_cmple_epu32_mask): Ditto.
1570 (_mm512_cmple_epu32_mask): Ditto.
1571 (_mm512_mask_cmple_epi64_mask): Ditto.
1572 (_mm512_cmple_epi64_mask): Ditto.
1573 (_mm512_mask_cmple_epu64_mask): Ditto.
1574 (_mm512_cmple_epu64_mask): Ditto.
1575 (_mm512_mask_cmplt_epi32_mask): Ditto.
1576 (_mm512_cmplt_epi32_mask): Ditto.
1577 (_mm512_mask_cmplt_epu32_mask): Ditto.
1578 (_mm512_cmplt_epu32_mask): Ditto.
1579 (_mm512_mask_cmplt_epi64_mask): Ditto.
1580 (_mm512_cmplt_epi64_mask): Ditto.
1581 (_mm512_mask_cmplt_epu64_mask): Ditto.
1582 (_mm512_cmplt_epu64_mask): Ditto.
1583 (_mm512_mask_cmpneq_epi32_mask): Ditto.
1584 (_mm512_mask_cmpneq_epu32_mask): Ditto.
1585 (_mm512_cmpneq_epu32_mask): Ditto.
1586 (_mm512_mask_cmpneq_epi64_mask): Ditto.
1587 (_mm512_cmpneq_epi64_mask): Ditto.
1588 (_mm512_mask_cmpneq_epu64_mask): Ditto.
1589 (_mm512_cmpneq_epu64_mask): Ditto.
1590 (_mm512_castpd_ps): Ditto.
1591 (_mm512_castpd_si512): Ditto.
1592 (_mm512_castps_pd): Ditto.
1593 (_mm512_castps_si512): Ditto.
1594 (_mm512_castsi512_ps): Ditto.
1595 (_mm512_castsi512_pd): Ditto.
1596 (_mm512_castpd512_pd128): Ditto.
1597 (_mm512_castps512_ps128): Ditto.
1598 (_mm512_castsi512_si128): Ditto.
1599 (_mm512_castpd512_pd256): Ditto.
1600 (_mm512_castps512_ps256): Ditto.
1601 (_mm512_castsi512_si256): Ditto.
1602 (_mm512_castpd128_pd512): Ditto.
1603 (_mm512_castps128_ps512): Ditto.
1604 (_mm512_castsi128_si512): Ditto.
1605 (_mm512_castpd256_pd512): Ditto.
1606 (_mm512_castps256_ps512): Ditto.
1607 (_mm512_castsi256_si512): Ditto.
1608 (_mm512_cmpeq_epu32_mask): Ditto.
1609 (_mm512_mask_cmpeq_epu32_mask): Ditto.
1610 (_mm512_mask_cmpeq_epu64_mask): Ditto.
1611 (_mm512_cmpeq_epu64_mask): Ditto.
1612 (_mm512_cmpgt_epu32_mask): Ditto.
1613 (_mm512_mask_cmpgt_epu32_mask): Ditto.
1614 (_mm512_mask_cmpgt_epu64_mask): Ditto.
1615 (_mm512_cmpgt_epu64_mask): Ditto.
1616 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
1617 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
1618 * config/i386/i386.c (enum ix86_builtins): Add
1619 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
1620 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
1621 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
1622 (bdesc_args): Add __builtin_ia32_si512_256si,
1623 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
1624 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
1625 __builtin_ia32_pd512_pd.
1626 (ix86_expand_args_builtin): Handle new FTYPEs.
1627 * config/i386/sse.md (castmode): Add 512-bit modes.
1628 (AVX512MODE2P): New.
1629 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
1630 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
1631
1632 2014-08-15 Richard Biener <rguenther@suse.de>
1633
1634 * fold-const.c (tree_swap_operands_p): Put all constants
1635 last, also strip sign-changing NOPs when considering further
1636 canonicalization. Canonicalize also when optimizing for size.
1637
1638 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1639
1640 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
1641 one_match > zero_match case to just before simple_sequence.
1642
1643 2014-08-15 Richard Biener <rguenther@suse.de>
1644
1645 * data-streamer.h (streamer_string_index, string_for_index):
1646 Remove.
1647 * data-streamer-out.c (streamer_string_index): Make static.
1648 * data-streamer-in.c (string_for_index): Likewise.
1649 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
1650 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
1651
1652 2014-08-15 Richard Biener <rguenther@suse.de>
1653
1654 PR tree-optimization/62031
1655 * tree-data-ref.c (dr_analyze_indices): Do not set
1656 DR_UNCONSTRAINED_BASE.
1657 (dr_may_alias_p): All indirect accesses have to go the
1658 formerly DR_UNCONSTRAINED_BASE path.
1659 * tree-data-ref.h (struct indices): Remove
1660 unconstrained_base member.
1661 (DR_UNCONSTRAINED_BASE): Remove.
1662
1663 2014-08-15 Jakub Jelinek <jakub@redhat.com>
1664
1665 PR middle-end/62092
1666 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
1667 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
1668 in OMP_CLAUSE_MAP in some outer target region.
1669
1670 2014-08-15 Bin Cheng <bin.cheng@arm.com>
1671
1672 * tree-ssa-loop-ivopts.c (ivopts_data): New field
1673 name_expansion_cache.
1674 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
1675 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
1676 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
1677 (difference_cannot_overflow_p): New parameter. Use affine
1678 expansion for equality check.
1679 (iv_elimination_compare_lt): Pass new argument.
1680
1681 2014-08-14 DJ Delorie <dj@redhat.com>
1682
1683 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
1684 variables to the accumulator.
1685
1686 * config/rl78/predicates.md (rl78_near_mem_operand): New.
1687 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
1688 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
1689 with far-far moves.
1690
1691 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
1692 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
1693 (umulqihi3_virt): Likewise.
1694 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
1695 (umulqihi3_real): Likewise.
1696
1697 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
1698
1699 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1700
1701 PR tree-optimization/62091
1702 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
1703 function_entry_reached.
1704 (walk_aliased_vdefs): Clear it here.
1705 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
1706
1707 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1708
1709 * ipa-utils.h (compare_virtual_tables): Declare.
1710 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
1711
1712 2014-08-14 Marek Polacek <polacek@redhat.com>
1713
1714 DR 458
1715 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
1716 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
1717
1718 2014-08-14 Tom de Vries <tom@codesourcery.com>
1719
1720 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
1721
1722 2014-08-14 Tom de Vries <tom@codesourcery.com>
1723
1724 PR rtl-optimization/62004
1725 PR rtl-optimization/62030
1726 * ifcvt.c (rtx_interchangeable_p): New function.
1727 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
1728 * emit-rtl.h (mem_attrs_eq_p): Declare.
1729
1730 2014-08-14 Roman Gareev <gareevroman@gmail.com>
1731
1732 * graphite-scop-detection.c:
1733 Add inclusion of cp-tree.h.
1734 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
1735 in case they are pointers to object types
1736
1737 2014-08-14 Richard Biener <rguenther@suse.de>
1738
1739 * BASE-VER: Change to 5.0.0
1740
1741 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1742 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1743 Anna Tikhonova <anna.tikhonova@intel.com>
1744 Ilya Tocar <ilya.tocar@intel.com>
1745 Andrey Turetskiy <andrey.turetskiy@intel.com>
1746 Ilya Verbin <ilya.verbin@intel.com>
1747 Kirill Yukhin <kirill.yukhin@intel.com>
1748 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1749
1750 * config/i386/sse.md (define_mode_attr avx512): New.
1751 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
1752 V4DI modes.
1753 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
1754 (define_mode_attr ssse3_avx2): Ditto.
1755 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
1756 (define_mode_attr avx2_avx512bw): New.
1757 (define_mode_attr ssedoublemodelower): New.
1758 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
1759 V32HI, V64QI modes.
1760 (define_mode_attr ssebytemode): Allow V8DI modes.
1761 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
1762 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
1763 (define_mode_attr ssePSmode2): New.
1764 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
1765 V16HI, V32HI modes.
1766 (define_mode_attr dbpsadbwmode): New.
1767 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
1768 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
1769 (vi8_sse4_1_avx2_avx512): New.
1770 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
1771 mode attribute.
1772 (define_mode_attr blendbits): Move before its immediate use.
1773
1774 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1776 Anna Tikhonova <anna.tikhonova@intel.com>
1777 Ilya Tocar <ilya.tocar@intel.com>
1778 Andrey Turetskiy <andrey.turetskiy@intel.com>
1779 Ilya Verbin <ilya.verbin@intel.com>
1780 Kirill Yukhin <kirill.yukhin@intel.com>
1781 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1782
1783 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
1784 * config/i386/subst.md
1785 (define_mode_iterator SUBST_V): Update.
1786 (define_mode_iterator SUBST_A): Ditto.
1787 (define_subst_attr "mask_operand7"): New.
1788 (define_subst_attr "mask_operand10"): New.
1789 (define_subst_attr "mask_operand_arg34") : New.
1790 (define_subst_attr "mask_expand_op3"): New.
1791 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
1792 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
1793 (define_subst_attr "mask_avx512vl_condition"): New.
1794 (define_subst_attr "round_mask_operand4"): Ditto.
1795 (define_subst_attr "round_mask_scalar_op3"): Delete.
1796 (define_subst_attr "round_mask_op4"): New.
1797 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
1798 V16SImode.
1799 (define_subst_attr "round_modev8sf_condition"): New.
1800 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
1801 <MODE>mode.
1802 (define_subst_attr "round_saeonly_mask_operand4"): New.
1803 (define_subst_attr "round_saeonly_mask_op4"): New.
1804 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
1805 V8DImode, V16SImode.
1806 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
1807 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
1808 (define_subst_attr "mask_expand4_args"): New.
1809 (define_subst "mask_expand4"): New.
1810
1811 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1812 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1813 Anna Tikhonova <anna.tikhonova@intel.com>
1814 Ilya Tocar <ilya.tocar@intel.com>
1815 Andrey Turetskiy <andrey.turetskiy@intel.com>
1816 Ilya Verbin <ilya.verbin@intel.com>
1817 Kirill Yukhin <kirill.yukhin@intel.com>
1818 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1819
1820 * config/i386/i386.md
1821 (define_attr "isa"): Add avx512bw,noavx512bw.
1822 (define_attr "enabled"): Ditto.
1823 (define_split): Add 32/64-bit mask logic.
1824 (define_insn "*k<logic>qi"): New.
1825 (define_insn "*k<logic>hi"): New.
1826 (define_insn "*anddi_1"): Add mask version.
1827 (define_insn "*andsi_1"): Ditto.
1828 (define_insn "*<code><mode>_1"): Ditto.
1829 (define_insn "*<code>hi_1"): Ditto.
1830 (define_insn "kxnor<mode>"): New.
1831 (define_insn "kunpcksi"): New.
1832 (define_insn "kunpckdi"): New.
1833 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
1834 (define_insn "*one_cmplhi2_1"): Ditto.
1835
1836 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1837 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1838 Anna Tikhonova <anna.tikhonova@intel.com>
1839 Ilya Tocar <ilya.tocar@intel.com>
1840 Andrey Turetskiy <andrey.turetskiy@intel.com>
1841 Ilya Verbin <ilya.verbin@intel.com>
1842 Kirill Yukhin <kirill.yukhin@intel.com>
1843 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1844
1845 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
1846 V32HImode.
1847
1848 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1849 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1850 Anna Tikhonova <anna.tikhonova@intel.com>
1851 Ilya Tocar <ilya.tocar@intel.com>
1852 Andrey Turetskiy <andrey.turetskiy@intel.com>
1853 Ilya Verbin <ilya.verbin@intel.com>
1854 Kirill Yukhin <kirill.yukhin@intel.com>
1855 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1856
1857 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
1858 registers.
1859 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
1860 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
1861 xmm/ymm16+ when availble.
1862 * config/i386/i386.h
1863 (HARD_REGNO_NREGS): Add mask regs.
1864 (VALID_AVX512F_REG_MODE): Ditto.
1865 (VALID_AVX512F_REG_MODE) : Define.
1866 (VALID_MASK_AVX512BW_MODE): Ditto.
1867 (reg_class) (MASK_REG_P(X)): Define.
1868 * config/i386/i386.md: Do not split long moves with mask register,
1869 use kmovb if avx512bw is availible.
1870 (movdi_internal): Handle mask registers.
1871
1872 2014-08-14 Richard Biener <rguenther@suse.de>
1873
1874 PR tree-optimization/62081
1875 * tree-ssa-loop.c (pass_fix_loops): New pass.
1876 (pass_tree_loop::gate): Do not fixup loops here.
1877 * tree-pass.h (make_pass_fix_loops): Declare.
1878 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
1879
1880 2014-08-14 Richard Biener <rguenther@suse.de>
1881
1882 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
1883 (type_hash_canon): ... this and avoid 2nd lookup for the add.
1884
1885 2014-08-14 Richard Biener <rguenther@suse.de>
1886
1887 PR tree-optimization/62090
1888 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
1889 (fold_builtin_2): Do not fold sprintf.
1890 (fold_builtin_3): Likewise.
1891 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
1892 moved from builtins.c.
1893 (gimple_fold_builtin): Fold sprintf.
1894
1895 2014-08-14 Richard Biener <rguenther@suse.de>
1896
1897 PR rtl-optimization/62079
1898 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
1899 run cleanup_cfg.
1900
1901 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1902
1903 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
1904 current_function_decl.
1905
1906 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
1907
1908 * cgraph.c (cgraph_node::function_symbol): Fix wrong
1909 cgraph_function_node to cgraph_node::function_symbol
1910 refactoring.
1911
1912 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
1913
1914 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
1915 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
1916
1917 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
1918
1919 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
1920 warning.
1921
1922 2014-08-13 Roman Gareev <gareevroman@gmail.com>
1923
1924 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
1925 generator.
1926
1927 2014-08-12 Jakub Jelinek <jakub@redhat.com>
1928
1929 PR target/62025
1930 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
1931 any registers that are used in mem_insn.
1932
1933 2014-08-12 Steve Ellcey <sellcey@mips.com>
1934
1935 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
1936
1937 2014-08-12 Steve Ellcey <sellcey@mips.com>
1938
1939 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
1940 (MULTILIB_DIRNAMES): Ditto.
1941 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
1942 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
1943 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
1944 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
1945 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
1946 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
1947
1948 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1949
1950 PR target/61413
1951 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
1952 of __ARM_SIZEOF_WCHAR_T.
1953
1954 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1955
1956 PR target/62098
1957 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
1958 Remove unnecessary attributes.
1959
1960 2014-08-12 Yury Gribov <y.gribov@samsung.com>
1961
1962 * internal-fn.c (init_internal_fns): Fix off-by-one.
1963
1964 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
1965 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1966 Anna Tikhonova <anna.tikhonova@intel.com>
1967 Ilya Tocar <ilya.tocar@intel.com>
1968 Andrey Turetskiy <andrey.turetskiy@intel.com>
1969 Ilya Verbin <ilya.verbin@intel.com>
1970 Kirill Yukhin <kirill.yukhin@intel.com>
1971 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1972
1973 * config/i386/i386.c (standard_sse_constant_opcode): Use
1974 vpxord/vpternlog if avx512 is availible.
1975
1976 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1977
1978 PR middle-end/62103
1979 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
1980 bitfields, that is when size doesn't match the size of type or the
1981 size of the constructor.
1982
1983 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1984
1985 * config/rs6000/constraints.md (wh constraint): New constraint,
1986 for FP registers if direct move is available.
1987 (wi constraint): New constraint, for VSX/FP registers that can
1988 handle 64-bit integers.
1989 (wj constraint): New constraint for VSX/FP registers that can
1990 handle 64-bit integers for direct moves.
1991 (wk constraint): New constraint for VSX/FP registers that can
1992 handle 64-bit doubles for direct moves.
1993 (wy constraint): Make documentation match implementation.
1994
1995 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
1996 scalar_in_vmx_p field to simplify tests of whether SFmode or
1997 DFmode can go in the Altivec registers.
1998 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
1999 (rs6000_setup_reg_addr_masks): Likewise.
2000 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2001 field, and wh/wi/wj/wk constraints.
2002 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2003 the wh/wi/wj/wk constraints.
2004 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2005 upper registers, prefer VSX registers unless the operation is a
2006 memory operation with REG+OFFSET addressing.
2007
2008 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2009 DImode. Change SFmode to use ww constraint instead of d to allow
2010 SF registers in the upper registers.
2011 (VSr2): Likewise.
2012 (VSr3): Likewise.
2013 (VSr5): Fix thinko in comment.
2014 (VSa): New mode attribute that is an alternative to wa, that
2015 returns the VSX register class that a mode can go in, but may not
2016 be the preferred register class.
2017 (VS_64dm): New mode attribute for appropriate register classes for
2018 referencing 64-bit elements of vectors for direct moves and normal
2019 moves.
2020 (VS_64reg): Likewise.
2021 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2022 register allocator to only registers the data type can handle.
2023 (vsx_le_perm_load_<mode>): Likewise.
2024 (vsx_le_perm_store_<mode>): Likewise.
2025 (vsx_xxpermdi2_le_<mode>): Likewise.
2026 (vsx_xxpermdi4_le_<mode>): Likewise.
2027 (vsx_lxvd2x2_le_<mode>): Likewise.
2028 (vsx_lxvd2x4_le_<mode>): Likewise.
2029 (vsx_stxvd2x2_le_<mode>): Likewise.
2030 (vsx_add<mode>3): Likewise.
2031 (vsx_sub<mode>3): Likewise.
2032 (vsx_mul<mode>3): Likewise.
2033 (vsx_div<mode>3): Likewise.
2034 (vsx_tdiv<mode>3_internal): Likewise.
2035 (vsx_fre<mode>2): Likewise.
2036 (vsx_neg<mode>2): Likewise.
2037 (vsx_abs<mode>2): Likewise.
2038 (vsx_nabs<mode>2): Likewise.
2039 (vsx_smax<mode>3): Likewise.
2040 (vsx_smin<mode>3): Likewise.
2041 (vsx_sqrt<mode>2): Likewise.
2042 (vsx_rsqrte<mode>2): Likewise.
2043 (vsx_tsqrt<mode>2_internal): Likewise.
2044 (vsx_fms<mode>4): Likewise.
2045 (vsx_nfma<mode>4): Likewise.
2046 (vsx_eq<mode>): Likewise.
2047 (vsx_gt<mode>): Likewise.
2048 (vsx_ge<mode>): Likewise.
2049 (vsx_eq<mode>_p): Likewise.
2050 (vsx_gt<mode>_p): Likewise.
2051 (vsx_ge<mode>_p): Likewise.
2052 (vsx_xxsel<mode>): Likewise.
2053 (vsx_xxsel<mode>_uns): Likewise.
2054 (vsx_copysign<mode>3): Likewise.
2055 (vsx_float<VSi><mode>2): Likewise.
2056 (vsx_floatuns<VSi><mode>2): Likewise.
2057 (vsx_fix_trunc<mode><VSi>2): Likewise.
2058 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2059 (vsx_x<VSv>r<VSs>i): Likewise.
2060 (vsx_x<VSv>r<VSs>ic): Likewise.
2061 (vsx_btrunc<mode>2): Likewise.
2062 (vsx_b2trunc<mode>2): Likewise.
2063 (vsx_floor<mode>2): Likewise.
2064 (vsx_ceil<mode>2): Likewise.
2065 (vsx_<VS_spdp_insn>): Likewise.
2066 (vsx_xscvspdp): Likewise.
2067 (vsx_xvcvspuxds): Likewise.
2068 (vsx_float_fix_<mode>2): Likewise.
2069 (vsx_set_<mode>): Likewise.
2070 (vsx_extract_<mode>_internal1): Likewise.
2071 (vsx_extract_<mode>_internal2): Likewise.
2072 (vsx_extract_<mode>_load): Likewise.
2073 (vsx_extract_<mode>_store): Likewise.
2074 (vsx_splat_<mode>): Likewise.
2075 (vsx_xxspltw_<mode>): Likewise.
2076 (vsx_xxspltw_<mode>_direct): Likewise.
2077 (vsx_xxmrghw_<mode>): Likewise.
2078 (vsx_xxmrglw_<mode>): Likewise.
2079 (vsx_xxsldwi_<mode>): Likewise.
2080 (vsx_xscvdpspn): Tighten constraints to only use register classes
2081 the types use.
2082 (vsx_xscvspdpn): Likewise.
2083 (vsx_xscvdpspn_scalar): Likewise.
2084
2085 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2086 wj, and wk constraints.
2087 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2088 general purpose registers.
2089
2090 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2091 direct moves.
2092 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2093 DImode instead of wm. Use wk constraint for direct move of DFmode
2094 instead of wm.
2095 (extendsidi2_lfiwax): Likewise.
2096 (lfiwax): Likewise.
2097 (lfiwzx): Likewise.
2098 (movdi_internal64): Likewise.
2099
2100 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2101 wk constraints. Make the wy constraint documentation match them
2102 implementation.
2103
2104 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2105
2106 Replacement of isl_int by isl_val
2107 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2108 (compute_bounds_for_param): use isl_val instead of isl_int
2109 (compute_bounds_for_loop): likewise
2110 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2111 (build_linearized_memory_access): use isl_val instead of isl_int
2112 (pdr_stride_in_loop): likewise
2113 * graphite-optimize-isl.c:
2114 (getPrevectorMap): use isl_val instead of isl_int
2115 * graphite-poly.c:
2116 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2117 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2118 (extern the_isl_ctx): declare
2119 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2120 (extract_affine_gmp): likewise
2121 (wrap): likewise
2122 (build_loop_iteration_domains): likewise
2123 (add_param_constraints): likewise
2124
2125 2014-08-11 Richard Biener <rguenther@suse.de>
2126
2127 PR tree-optimization/62075
2128 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2129 handle uses in patterns.
2130
2131 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2132 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2133 Anna Tikhonova <anna.tikhonova@intel.com>
2134 Ilya Tocar <ilya.tocar@intel.com>
2135 Andrey Turetskiy <andrey.turetskiy@intel.com>
2136 Ilya Verbin <ilya.verbin@intel.com>
2137 Kirill Yukhin <kirill.yukhin@intel.com>
2138 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2139
2140 * common/config/i386/i386-common.c
2141 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2142 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2143 (ix86_handle_option): Handle OPT_mavx512vl.
2144 * config/i386/cpuid.h (bit_AVX512VL): Define.
2145 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2146 set -mavx512vl accordingly.
2147 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2148 OPTION_MASK_ISA_AVX512VL.
2149 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2150 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2151 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2152 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2153 * config/i386/i386.h (TARGET_AVX512VL): Define.
2154 (TARGET_AVX512VL_P(x)): Ditto.
2155 * config/i386/i386.opt: Add mavx512vl.
2156
2157 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2158
2159 PR tree-optimization/62073
2160 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2161 a basic block.
2162
2163 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2164 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2165 Anna Tikhonova <anna.tikhonova@intel.com>
2166 Ilya Tocar <ilya.tocar@intel.com>
2167 Andrey Turetskiy <andrey.turetskiy@intel.com>
2168 Ilya Verbin <ilya.verbin@intel.com>
2169 Kirill Yukhin <kirill.yukhin@intel.com>
2170 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2171
2172 * common/config/i386/i386-common.c
2173 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2174 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2175 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2176 (ix86_handle_option): Handle OPT_mavx512bw.
2177 * config/i386/cpuid.h (bit_AVX512BW): Define.
2178 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2179 set -mavx512bw accordingly.
2180 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2181 OPTION_MASK_ISA_AVX512BW.
2182 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2183 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2184 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2185 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2186 * config/i386/i386.h (TARGET_AVX512BW): Define.
2187 (TARGET_AVX512BW_P(x)): Ditto.
2188 * config/i386/i386.opt: Add mavx512bw.
2189
2190 2014-08-11 Richard Biener <rguenther@suse.de>
2191
2192 PR tree-optimization/62070
2193 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2194 Remove SSA checking.
2195
2196 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2197
2198 * asan.c (asan_check_flags): New enum.
2199 (build_check_stmt_with_calls): Removed function.
2200 (build_check_stmt): Split inlining logic to
2201 asan_expand_check_ifn.
2202 (instrument_derefs): Rename parameter.
2203 (instrument_mem_region_access): Rename parameter.
2204 (instrument_strlen_call): Likewise.
2205 (asan_expand_check_ifn): New function.
2206 (asan_instrument): Remove old code.
2207 (pass_sanopt::execute): Change handling of
2208 asan-instrumentation-with-call-threshold.
2209 (asan_clear_shadow): Fix formatting.
2210 (asan_function_start): Likewise.
2211 (asan_emit_stack_protection): Likewise.
2212 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2213 Update description.
2214 * internal-fn.c (expand_ASAN_CHECK): New function.
2215 * internal-fn.def (ASAN_CHECK): New internal function.
2216 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2217 Update description.
2218 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2219 * tree.c: Small comment fix.
2220
2221 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2222
2223 * gimple.c (gimple_call_fnspec): Support internal functions.
2224 (gimple_call_return_flags): Use const.
2225 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2226 * internal-fn.def: Add fnspec information.
2227 * internal-fn.h (internal_fn_fnspec): New function.
2228 (init_internal_fns): Declare new function.
2229 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2230 (init_internal_fns): New function.
2231 * tree-core.h: Update macro call.
2232 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2233
2234 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2235
2236 * lto-streamer.h (struct output_block::symbol): Change from
2237 struct symtab_node to plain symtab_node.
2238 (referenced_from_this_partition_p): Change first parameter
2239 from struct symtab_node to plain symtab_node.
2240
2241 2014-08-10 Marek Polacek <polacek@redhat.com>
2242
2243 PR c/51849
2244 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2245
2246 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2247
2248 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2249 DECL correctly; do not give up on types in static storage.
2250
2251 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2252
2253 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2254
2255 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2256
2257 * graphite-isl-ast-to-gimple.c:
2258 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2259
2260 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2261
2262 2014-08-08 Guozhi Wei <carrot@google.com>
2263
2264 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2265
2266 2014-08-08 Cary Coutant <ccoutant@google.com>
2267
2268 * dwarf2out.c (get_skeleton_type_unit): Remove.
2269 (output_skeleton_debug_sections): Remove skeleton type units.
2270 (output_comdat_type_unit): Likewise.
2271 (dwarf2out_finish): Likewise.
2272
2273 2014-08-07 Yi Yang <ahyangyi@google.com>
2274
2275 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2276
2277 2014-08-08 Richard Biener <rguenther@suse.de>
2278
2279 * lto-streamer.h (struct lto_input_block): Make it a class
2280 with a constructor.
2281 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2282 (struct lto_function_header, struct lto_simple_header,
2283 struct lto_simple_header_with_strings,
2284 struct lto_decl_header, struct lto_function_header): Make
2285 a simple inheritance hieararchy. Remove unused fields.
2286 (struct lto_asm_header): Remove.
2287 * lto-streamer-out.c (produce_asm): Adjust.
2288 (lto_output_toplevel_asms): Likewise.
2289 (produce_asm_for_decls): Likewise.
2290 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2291 * data-streamer-in.c (string_for_index): Likewise.
2292 * ipa-inline-analysis.c (inline_read_section): Likewise.
2293 * ipa-prop.c (ipa_prop_read_section): Likewise.
2294 (read_replacements_section): Likewise.
2295 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2296 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2297 (lto_destroy_simple_input_block): Likewise.
2298 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2299 (lto_input_toplevel_asms): Likewise.
2300
2301 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2302 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2303 Anna Tikhonova <anna.tikhonova@intel.com>
2304 Ilya Tocar <ilya.tocar@intel.com>
2305 Andrey Turetskiy <andrey.turetskiy@intel.com>
2306 Ilya Verbin <ilya.verbin@intel.com>
2307 Kirill Yukhin <kirill.yukhin@intel.com>
2308 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2309
2310 * common/config/i386/i386-common.c
2311 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2312 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2313 (ix86_handle_option): Handle OPT_mavx512dq.
2314 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2315 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2316 set -mavx512dq accordingly.
2317 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2318 OPTION_MASK_ISA_AVX512DQ.
2319 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2320 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2321 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2322 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2323 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2324 (TARGET_AVX512DQ_P(x)): Ditto.
2325 * config/i386/i386.opt: Add mavx512dq.
2326
2327 2014-08-08 Richard Biener <rguenther@suse.de>
2328
2329 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2330 target_percent, target_percent_s): Export.
2331 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2332 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2333 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2334 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2335 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2336 Move to gimple-fold.c.
2337 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2338 strcat and strcpy.
2339 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2340 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2341 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2342 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2343 (rewrite_call_expr_array): Remove.
2344 (fold_builtin_sprintf_chk): Likewise.
2345 (fold_builtin_snprintf_chk): Likewise.
2346 (fold_builtin_varargs): Remove handling of sprintf_chk,
2347 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2348 (gimple_fold_builtin_sprintf_chk): Remove.
2349 (gimple_fold_builtin_snprintf_chk): Likewise.
2350 (gimple_fold_builtin_varargs): Likewise.
2351 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2352 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2353 * gimple.c (gimple_seq_add_seq_without_update): New function.
2354 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2355 * gimple-fold.c: Include output.h.
2356 (gsi_replace_with_seq_vops): New function, split out from ...
2357 (gimplify_and_update_call_from_tree): ... here.
2358 (replace_call_with_value): New function.
2359 (replace_call_with_call_and_fold): Likewise.
2360 (var_decl_component_p): Moved from builtins.c.
2361 (gimple_fold_builtin_memory_op): Moved from builtins.c
2362 fold_builtin_memory_op and rewritten to GIMPLE.
2363 (gimple_fold_builtin_memset): Likewise.
2364 (gimple_fold_builtin_strcpy): Likewise.
2365 (gimple_fold_builtin_strncpy): Likewise.
2366 (gimple_fold_builtin_strcat): Likewise.
2367 (gimple_fold_builtin_fputs): Likewise.
2368 (gimple_fold_builtin_memory_chk): Likewise.
2369 (gimple_fold_builtin_stxcpy_chk): Likewise.
2370 (gimple_fold_builtin_stxncpy_chk): Likewise.
2371 (gimple_fold_builtin_snprintf_chk): Likewise.
2372 (gimple_fold_builtin_sprintf_chk): Likewise.
2373 (gimple_fold_builtin_strlen): New function.
2374 (gimple_fold_builtin_with_strlen): New function split out from
2375 gimple_fold_builtin.
2376 (gimple_fold_builtin): Change signature and handle
2377 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2378 here. Call gimple_fold_builtin_with_strlen.
2379 (gimple_fold_call): Adjust.
2380
2381 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2382
2383 * calls.c (precompute_arguments): Check
2384 promoted_for_signed_and_unsigned_p and set the promoted mode.
2385 (promoted_for_signed_and_unsigned_p): New function.
2386 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2387 and set the promoted mode.
2388 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2389 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2390 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2391
2392
2393 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2394
2395 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2396 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2397 (expand_call): Likewise.
2398 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2399 to get promoted mode.
2400 * combine.c (record_promoted_value): Skip > 0 comparison with
2401 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2402 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2403 of SUBREG_PROMOTED_UNSIGNED_P.
2404 (convert_modes): Likewise.
2405 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2406 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2407 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2408 SUBREG_PROMOTED_UNSIGNED_SET.
2409 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2410 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2411 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2412 SUBREG_PROMOTED_SET.
2413 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2414 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2415 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2416 of SUBREG_PROMOTED_UNSIGNED_P.
2417 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2418 (SUBREG_PROMOTED_SET): New define.
2419 (SUBREG_PROMOTED_GET): Likewise.
2420 (SUBREG_PROMOTED_SIGN): Likewise.
2421 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2422 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2423 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2424 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2425 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2426 (nonzero_bits1): Skip > 0 comparison with the results as
2427 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2428 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2429 of !SUBREG_PROMOTED_UNSIGNED_P.
2430 * simplify-rtx.c (simplify_unary_operation_1): Use new
2431 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2432 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2433 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2434 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2435
2436 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2437
2438 * ipa-devirt.c: Include gimple-pretty-print.h
2439 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2440 further tests.
2441 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2442 (get_polymorphic_call_info): Fix return value
2443 (type_change_info): New sturcture based on ipa-prop
2444 variant.
2445 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2446 based on ipa-prop variant.
2447 (extr_type_from_vtbl_ptr_store): New function
2448 based on ipa-prop variant.
2449 (record_known_type): New function.
2450 (check_stmt_for_type_change): New function.
2451 (get_dynamic_type): New function.
2452 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2453 * tree-ssa-pre.c: ipa-utils.h
2454 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2455 machinery; sanity check with ipa-prop devirtualization.
2456 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2457 polymorphic flag.
2458
2459 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2460
2461 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2462 * alias.c, cfgexpand.c, cgraphbuild.c,
2463 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2464 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2465 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2466 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2467 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2468 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2469 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2470 dse.c, except.c, gengtype.c, gimple-expr.c,
2471 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2472 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2473 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2474 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2475 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2476 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2477 pointer-set.h.
2478 * pointer-set.c: Remove file.
2479 * pointer-set.h: Remove file.
2480
2481 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2482
2483 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2484 * config/arm/types.md (f_sels, f_seld): Delete.
2485
2486 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2487
2488 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2489 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2490 (aarch64_movdi_<mode>high): Likewise.
2491 (aarch64_mov<mode>high_di): Likewise.
2492 (aarch64_movdi_<mode>low): Likewise.
2493 (aarch64_mov<mode>low_di): Likewise.
2494 (aarch64_movtilow_tilow): Likewise.
2495 Add comment explaining usage of fp,simd attributes and of
2496 TARGET_FLOAT and TARGET_SIMD.
2497
2498 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2499 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2500
2501 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2502 Use MOVN when one of the half-words is 0xffff.
2503
2504 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2505
2506 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2507
2508 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2509
2510 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2511 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2512 (rfs_str): String corresponding to RFS_* constants.
2513 (rank_for_schedule_stats_t): New typedef.
2514 (rank_for_schedule_stats): New static variable.
2515 (rfs_result): New static function.
2516 (rank_for_schedule): Track statistics for deciding heuristics.
2517 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2518 static functions.
2519 (ready_sort): Use them for debug printouts.
2520 (schedule_block): Init statistics state. Print statistics on
2521 rank_for_schedule decisions.
2522
2523 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2524
2525 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2526
2527 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2528
2529 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2530 constraint.
2531
2532 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2533
2534 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2535 function to not conflict.
2536 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2537 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2538 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2539 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2540 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2541 of pointer_map.
2542
2543 2014-08-07 Marek Polacek <polacek@redhat.com>
2544
2545 * fold-const.c (fold_binary_loc): Add folding of
2546 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2547
2548 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2549
2550 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2551 instead of type size.
2552 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2553
2554 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2555
2556 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2557 (*thumb1_movqi_insn): Likewise.
2558 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2559
2560 2014-08-07 Tom de Vries <tom@codesourcery.com>
2561
2562 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2563 (glibc_2_11_or_earlier): Remove effective-target keywords.
2564
2565 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2566
2567 * config/arm/arm.c (bdesc_2arg): Fix typo.
2568 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2569
2570 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2571
2572 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2573
2574 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2575
2576 PR debug/61923
2577 * haifa-sched.c (advance_one_cycle): Fix dump.
2578 (schedule_block): Don't advance cycle if we are already at the
2579 beginning of the cycle.
2580
2581 2014-08-06 Martin Jambor <mjambor@suse.cz>
2582
2583 PR ipa/61393
2584 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
2585
2586 2014-08-06 Richard Biener <rguenther@suse.de>
2587
2588 PR lto/62034
2589 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
2590 SCCs here.
2591 (lto_input_tree): Pop SCCs here.
2592
2593 2014-08-06 Richard Biener <rguenther@suse.de>
2594
2595 PR tree-optimization/61320
2596 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
2597 handle misaligned loads.
2598
2599 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
2600
2601 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
2602 (aarch64_expand_vec_perm_const): Check for dup before zip.
2603
2604 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2605
2606 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
2607 CONST_INT_P instead of GET_CODE and compare.
2608 (aarch64_select_cc_mode): Likewise.
2609 (aarch64_print_operand): Likewise.
2610 (aarch64_rtx_costs): Likewise.
2611 (aarch64_simd_valid_immediate): Likewise.
2612 (aarch64_simd_check_vect_par_cnst_half): Likewise.
2613 (aarch64_simd_emit_pair_result_insn): Likewise.
2614
2615 2014-08-05 David Malcolm <dmalcolm@redhat.com>
2616
2617 * gdbhooks.py (find_gcc_source_dir): New helper function.
2618 (class PassNames): New class, locating and parsing passes.def.
2619 (class BreakOnPass): New command "break-on-pass".
2620
2621 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
2622
2623 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
2624 getting olde.
2625
2626 2014-08-05 Richard Biener <rguenther@suse.de>
2627
2628 PR rtl-optimization/61672
2629 * emit-rtl.h (mem_attrs_eq_p): Declare.
2630 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
2631 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
2632 * cfgcleanup.c (merge_memattrs): Likewise.
2633 Include emit-rtl.h.
2634
2635 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2636
2637 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
2638 rather than singleton vectors.
2639 (vqdmlsls_lane_s32): Likewise.
2640
2641 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2642
2643 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
2644 Use VSDQ_HSI mode iterator.
2645 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2646 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
2647 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
2648 Use BUILTIN_VDQHS macro.
2649 (sqrdmulh_laneq): Likewise.
2650 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
2651 (vqdmlals_laneq_s32): Likewise.
2652 (vqdmlslh_laneq_s16): Likewise.
2653 (vqdmlsls_laneq_s32): Likewise.
2654 (vqdmulhh_laneq_s16): Likewise.
2655 (vqdmulhs_laneq_s32): Likewise.
2656 (vqrdmulhh_laneq_s16): Likewise.
2657 (vqrdmulhs_laneq_s32): Likewise.
2658
2659 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2660
2661 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
2662 (vmuld_laneq_f64): Likewise.
2663 (vmuls_laneq_f32): Likewise.
2664 (vmul_n_f64): Likewise.
2665 (vmuld_lane_f64): Reimplement in C.
2666 (vmuls_lane_f32): Likewise.
2667
2668 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2669
2670 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
2671 to reservation.
2672 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2673
2674 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2675
2676 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
2677 (rbitsi2): Likewise.
2678 (*arm_rev): Set predicable and predicable_short_it attributes.
2679
2680 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2681
2682 * convert.c (convert_to_integer): Guard transformation to lrint by
2683 -fno-math-errno.
2684
2685 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
2686
2687 * config/aarch64/aarch64-builtins.c
2688 (aarch64_simd_builtin_type_mode): Delete.
2689 (v8qi_UP): Remap to V8QImode.
2690 (v4hi_UP): Remap to V4HImode.
2691 (v2si_UP): Remap to V2SImode.
2692 (v2sf_UP): Remap to V2SFmode.
2693 (v1df_UP): Remap to V1DFmode.
2694 (di_UP): Remap to DImode.
2695 (df_UP): Remap to DFmode.
2696 (v16qi_UP):V16QImode.
2697 (v8hi_UP): Remap to V8HImode.
2698 (v4si_UP): Remap to V4SImode.
2699 (v4sf_UP): Remap to V4SFmode.
2700 (v2di_UP): Remap to V2DImode.
2701 (v2df_UP): Remap to V2DFmode.
2702 (ti_UP): Remap to TImode.
2703 (ei_UP): Remap to EImode.
2704 (oi_UP): Remap to OImode.
2705 (ci_UP): Map to CImode.
2706 (xi_UP): Remap to XImode.
2707 (si_UP): Remap to SImode.
2708 (sf_UP): Remap to SFmode.
2709 (hi_UP): Remap to HImode.
2710 (qi_UP): Remap to QImode.
2711 (aarch64_simd_builtin_datum): Make mode a machine_mode.
2712 (VAR1): Build builtin name.
2713 (aarch64_init_simd_builtins): Remove dead code.
2714
2715 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2716
2717 * graphite-isl-ast-to-gimple.c:
2718 (set_options): New function.
2719 (scop_to_isl_ast): Add calling of set_options.
2720
2721 2014-08-05 Jakub Jelinek <jakub@redhat.com>
2722
2723 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
2724 (analyze_iv_to_split_insn): Don't initialize them.
2725 (get_ivts_expr): Removed.
2726 (allocate_basic_variable, insert_base_initialization): Use
2727 SET_SRC instead of *get_ivts_expr.
2728 (split_iv): Use &SET_SRC instead of get_ivts_expr.
2729
2730 2014-08-05 Roman Gareev <gareevroman@gmail.com>
2731
2732 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
2733 (translate_isl_ast_for_loop): Add checking of the
2734 flag_loop_parallelize_all.
2735 (ast_build_before_for): New function.
2736 (scop_to_isl_ast): Add checking of the
2737 flag_loop_parallelize_all.
2738 * graphite-dependences.c: Move the defenition of the
2739 scop_get_dependences from graphite-optimize-isl.c to this file.
2740 (apply_schedule_on_deps): Add checking of the ux's emptiness.
2741 (carries_deps): Add checking of the x's value.
2742 * graphite-optimize-isl.c: Move the defenition of the
2743 scop_get_dependences to graphite-dependences.c.
2744 * graphite-poly.h: Add declarations of scop_get_dependences
2745 and carries_deps.
2746
2747 2014-08-04 Rohit <rohitarulraj@freescale.com>
2748
2749 PR target/60102
2750 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
2751 names.
2752 (alt_reg_names): Likewise.
2753 (rs6000_dwarf_register_span): For SPE high registers, replace
2754 dwarf register numbers with GCC hard register numbers.
2755 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
2756 (rs6000_dbx_register_number): For SPE high registers, return dwarf
2757 register number for the corresponding GCC hard register number.
2758 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
2759 newly added GCC hard register numbers for SPE high registers.
2760 (DWARF_FRAME_REGISTERS): Likewise.
2761 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
2762 (DWARF_FRAME_REGNUM): Likewise.
2763 (FIXED_REGISTERS): Likewise.
2764 (CALL_USED_REGISTERS): Likewise.
2765 (CALL_REALLY_USED_REGISTERS): Likewise.
2766 (REG_ALLOC_ORDER): Likewise.
2767 (enum reg_class): Likewise.
2768 (REG_CLASS_NAMES): Likewise.
2769 (REG_CLASS_CONTENTS): Likewise.
2770 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
2771
2772 2014-08-04 Richard Biener <rguenther@suse.de>
2773
2774 * gimple-fold.h (gimple_fold_builtin): Remove.
2775 * gimple-fold.c (gimple_fold_builtin): Make static.
2776 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
2777 fold_stmt, not gimple_fold_builtin.
2778
2779 2014-08-04 Martin Liska <mliska@suse.cz>
2780
2781 * cgraph.h (csi_end_p): Removed.
2782 (csi_next): Likewise.
2783 (csi_node): Likewise.
2784 (csi_start): Likewise.
2785 (cgraph_node_in_set_p): Likewise.
2786 (cgraph_node_set_size): Likewise.
2787 (vsi_end_p): Likewise.
2788 (vsi_next): Likewise.
2789 (vsi_node): Likewise.
2790 (vsi_start): Likewise.
2791 (varpool_node_set_size): Likewise.
2792 (cgraph_node_set_nonempty_p): Likewise.
2793 (varpool_node_set_nonempty_p): Likewise.
2794 * cgraphunit.c (cgraph_process_new_functions): vec replaces
2795 cgraph_node_set.
2796 * ipa-inline-transform.c: Likewise.
2797 * ipa-utils.c (cgraph_node_set_new): Removed.
2798 (cgraph_node_set_add): Likewise.
2799 (cgraph_node_set_remove): Likewise.
2800 (cgraph_node_set_find): Likewise.
2801 (dump_cgraph_node_set): Likewise.
2802 (debug_cgraph_node_set): Likewise.
2803 (free_cgraph_node_set): Likewise.
2804 (varpool_node_set_new): Likewise.
2805 (varpool_node_set_add): Likewise.
2806 (varpool_node_set_remove): Likewise.
2807 (varpool_node_set_find): Likewise.
2808 (dump_varpool_node_set): Likewise.
2809 (free_varpool_node_set): Likewise.
2810 (debug_varpool_node_set): Likewise.
2811 * tree-emutls.c (struct tls_var_data):
2812 (emutls_index): Removed.
2813 (emutls_decl): Likewise.
2814 (gen_emutls_addr): Function implementation uses newly added
2815 hash_map<varpool_node *, tls_var_data>.
2816 (clear_access_vars): Likewise.
2817 (create_emultls_var): Likewise.
2818 (ipa_lower_emutls): Likewise.
2819 (reset_access): New function.
2820
2821 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2822
2823 * config/i386/i386.c (ix86_option_override_internal): Add
2824 PTA_RDRND and PTA_MOVBE for bdver4.
2825
2826 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2827 James Greenhalgh <james.greenhalgh@arm.com>
2828
2829 * doc/md.texi (clrsb): Document.
2830 (clz): Change reference to x into operand 1.
2831 (ctz): Likewise.
2832 (popcount): Likewise.
2833
2834 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2835
2836 PR target/61713
2837 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
2838 move to subtarget in serial version if result is ignored.
2839
2840 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2841 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2842
2843 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
2844 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
2845 (sched_analyze_insn): Update use of try_group_insn to
2846 sched_macro_fuse_insns.
2847 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
2848 arguments that are not conditional jumps.
2849
2850 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2851
2852 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
2853 family information. Handle BTVER2 cpu with cpuid family value.
2854
2855 2014-08-04 Tom de Vries <tom@codesourcery.com>
2856
2857 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2858 (glibc_2_11_or_earlier): Document effective-target keywords.
2859
2860 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2861
2862 * ipa-devirt.c (odr_type_warn_count): Add type.
2863 (possible_polymorphic_call_targets): Set it.
2864 (ipa_devirt): Use it.
2865
2866 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
2867
2868 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
2869 Document.
2870 * ipa-devirt.c: Include hash-map.h
2871 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
2872 (clear_speculation): Break out of ...
2873 (get_class_context): ... here; speed up handling obviously useless
2874 speculations.
2875 (odr_type_warn_count, decl_warn_count): New structures.
2876 (final_warning_record): New structure.
2877 (final_warning_records): New static variable.
2878 (possible_polymorphic_call_targets): Cleanup handling of
2879 speculative info; do not build speculation when user do not care;
2880 record info about warnings when asked for.
2881 (add_decl_warning): New function.
2882 (type_warning_cmp): New function.
2883 (decl_warning_cmp): New function.
2884 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
2885 (gate): Enable pass when warnings are requested.
2886 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
2887 options.
2888
2889 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2890
2891 * hash-map.h (default_hashmap_traits::mark_key_deleted):
2892 Fix cast.
2893 (hash_map::remove): New method.
2894 (hash_map::traverse): New method.
2895 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
2896 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
2897 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
2898 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
2899 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
2900 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
2901 pointer_map.
2902
2903 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2904
2905 * hash-set.h: new File.
2906 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
2907 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
2908 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
2909 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
2910 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
2911 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
2912 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
2913 varpool.c: Use hash_set instead of pointer_set.
2914
2915 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
2916
2917 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
2918
2919 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2920
2921 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
2922 for frame access when strict_p is false.
2923
2924 2014-08-01 Renlin Li <renlin.li@arm.com>
2925 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2926
2927 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
2928 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
2929 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
2930 Declaration.
2931 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
2932 predicate.
2933 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
2934 aarch64_mem_pair_offset.
2935
2936 2014-08-01 Jiong Wang <jiong.wang@arm.com>
2937
2938 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
2939 offset.
2940 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
2941 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
2942
2943 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
2944
2945 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
2946
2947 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
2948
2949 PR regression/61510
2950 * cgraphunit.c (analyze_functions): Use get_create rather than get
2951 for decls which are clones of abstract functions.
2952
2953 2014-08-01 Martin Liska <mliska@suse.cz>
2954
2955 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
2956 * ipa-prop.h (count_formal_params): Global function created from static.
2957 * ipa-prop.c (count_formal_params): Likewise.
2958 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
2959 profiles for semantically equivalent functions.
2960 * passes.c (do_per_function): If we load body of a function
2961 during WPA, this condition should behave same.
2962 * varpool.c (ctor_for_folding): More tolerant assert for variable
2963 aliases created during WPA.
2964
2965 2014-08-01 Martin Liska <mliska@suse.cz>
2966
2967 * doc/invoke.texi (Options That Control Optimization): Documentation
2968 for -foptimize-strlen introduced. Optimization levels default options
2969 fixed.
2970
2971 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2972
2973 * opts.c (common_handle_option): Handle -fsanitize=alignment.
2974 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
2975 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
2976 type to bool.
2977 * stor-layout.h (min_align_of_type): New prototype.
2978 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
2979 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
2980 check.
2981 * ubsan.c: Include builtins.h.
2982 (ubsan_expand_bounds_ifn): Change return type to bool,
2983 always return true.
2984 (ubsan_expand_null_ifn): Change return type to bool, change
2985 argument to gimple_stmt_iterator *. Handle both null and alignment
2986 sanitization, take type from ckind argument's type rather than
2987 first argument.
2988 (instrument_member_call): Removed.
2989 (instrument_mem_ref): Remove t argument, add mem and base arguments.
2990 Handle both null and alignment sanitization, don't say whole
2991 struct access is member access. Build 3 argument IFN_UBSAN_NULL
2992 call instead of 2 argument.
2993 (instrument_null): Adjust instrument_mem_ref caller. Don't
2994 instrument calls here.
2995 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
2996 like SANITIZE_NULL.
2997 * stor-layout.c (min_align_of_type): New function.
2998 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
2999 Or it into SANITIZE_UNDEFINED.
3000 * doc/invoke.texi (-fsanitize=alignment): Document.
3001
3002 2014-07-31 Andi Kleen <ak@linux.intel.com>
3003
3004 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3005
3006 2014-07-31 Andi Kleen <ak@linux.intel.com>
3007
3008 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3009 inchash.
3010 (vn_reference_compute_hash): Dito.
3011 (vn_nary_op_compute_hash): Dito.
3012 (vn_phi_compute_hash): Dito.
3013 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3014
3015 2014-07-31 Andi Kleen <ak@linux.intel.com>
3016
3017 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3018 Rename to inchash:add_expr_commutative. Convert to inchash.
3019 (iterative_hash_hashable_expr): Rename to
3020 inchash:add_hashable_expr. Convert to inchash.
3021 (avail_expr_hash): Dito.
3022
3023 2014-07-31 Andi Kleen <ak@linux.intel.com>
3024
3025 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3026 Convert to inchash.
3027
3028 2014-07-31 Andi Kleen <ak@linux.intel.com>
3029
3030 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3031
3032 2014-07-31 Andi Kleen <ak@linux.intel.com>
3033
3034 * Makefile.in (OBJS): Add rtlhash.o
3035 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3036 (loc_checksum): Dito.
3037 (loc_checksum_ordered): Dito.
3038 (hash_loc_operands): Dito.
3039 (hash_locs): Dito.
3040 (hash_loc_list): Dito.
3041 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3042 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3043 * rtlhash.c: New file.
3044 * rtlhash.h: New file.
3045
3046 2014-07-31 Andi Kleen <ak@linux.intel.com>
3047
3048 * inchash.h (inchash): Change inchash class to namespace.
3049 (class hash): ... Rename from inchash.
3050 (add_object): Move from macro to class template.
3051 * lto-streamer-out.c (hash_tree): Change inchash
3052 to inchash::hash.
3053 * tree.c (build_type_attribute_qual_variant): Dito.
3054 (type_hash_list): Dito.
3055 (attribute_hash_list): Dito.
3056 (iterative_hstate_expr): Rename to inchash::add_expr
3057 (build_range_type_1): Change inchash to inchash::hash
3058 and use hash::add_expr.
3059 (build_array_type_1): Dito.
3060 (build_function_type): Dito
3061 (build_method_type_directly): Dito.
3062 (build_offset_type): Dito.
3063 (build_complex_type): Dito.
3064 (make_vector_type): Dito.
3065 * tree.h (iterative_hash_expr): Dito.
3066
3067 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3068
3069 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3070
3071 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3072
3073 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3074 correct alphabetical position.
3075 (vpaddd_f64): Rewrite using builtins.
3076 (vpaddd_s64): Move to correct alphabetical position.
3077 (vpaddd_u64): New.
3078
3079 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3080
3081 PR target/61844
3082 * config/sh/sh.c (sh_legitimate_address_p,
3083 sh_legitimize_reload_address): Handle reg+reg address modes when
3084 ALLOW_INDEXED_ADDRESS is false.
3085 * config/sh/predicates.md (general_movsrc_operand,
3086 general_movdst_operand): Likewise.
3087
3088 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3089
3090 * config/aarch64/aarch64-builtins.c
3091 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3092 BYTES_BIG_ENDIAN.
3093
3094 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3095
3096 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3097 the generated mask based on BYTES_BIG_ENDIAN.
3098 (aarch64_simd_check_vect_par_cnst_half): New.
3099 * config/aarch64/aarch64-protos.h
3100 (aarch64_simd_check_vect_par_cnst_half): New.
3101 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3102 the check out to aarch64_simd_check_vect_par_cnst_half.
3103 (vect_par_cnst_lo_half): Likewise.
3104 * config/aarch64/aarch64-simd.md
3105 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3106 (move_hi_quad_<mode>): Always generate a low mask.
3107
3108 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3109
3110 * doc/invoke.texi (AVR Options): Add documentation about
3111 __AVR_DEVICE_NAME__ built-in macro.
3112
3113 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3114
3115 PR target/61948
3116 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3117 constraints are satisfied.
3118 (<shift>di3_neon): Likewise.
3119
3120 2014-07-31 Richard Biener <rguenther@suse.de>
3121
3122 PR tree-optimization/61964
3123 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3124 by structural equality.
3125
3126 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3127
3128 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3129 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3130 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3131 New enums.
3132 * gcc.c (sanitize_spec_function): Support new option.
3133 (SANITIZER_SPEC): Remove now redundant check.
3134 * opts.c (common_handle_option): Support new option.
3135 (finish_options): Check for incompatibilities.
3136 * toplev.c (process_options): Split userspace-specific checks.
3137
3138 2014-07-31 Richard Biener <rguenther@suse.de>
3139
3140 * lto-streamer.h (struct output_block): Remove global.
3141 (struct data_in): Remove labels, num_named_labels and
3142 num_unnamed_labels.
3143 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3144 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3145
3146 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3147
3148 PR c++/60517
3149 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3150 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3151 (isolate_path): New argument to avoid inserting a trap.
3152 (find_implicit_erroneous_behaviour): Handle returning the address
3153 of a local variable.
3154 (find_explicit_erroneous_behaviour): Likewise.
3155
3156 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3157
3158 PR lto/61868
3159 * toplev.c (init_random_seed): Move piece of code never called to
3160 set_random_seed.
3161 (set_random_seed): see above.
3162
3163 2014-07-31 Tom de Vries <tom@codesourcery.com>
3164
3165 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3166
3167 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3168
3169 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3170 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3171
3172 2014-07-31 Richard Biener <rguenther@suse.de>
3173
3174 * data-streamer.h (streamer_write_data_stream): Declare here,
3175 renamed from ...
3176 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3177 * lto-cgraph.c (lto_output_node): Adjust.
3178 (lto_output_varpool_node): Likewise.
3179 * data-streamer-out.c (streamer_string_index): Likewise.
3180 (streamer_write_data_stream, lto_append_block): Move from ...
3181 * lto-section-out.c (lto_output_data_stream,
3182 lto_append_block): ... here.
3183
3184 2014-07-30 Mike Stump <mikestump@comcast.net>
3185
3186 * configure.ac: Also check for popen.
3187 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3188 * configure: Regenerate.
3189 * config.in: Regenerate.
3190
3191 2014-07-30 Martin Jambor <mjambor@suse.cz>
3192
3193 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3194 parameter to gimple.
3195
3196 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3197
3198 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3199 address as second parameter to __tpf_eh_return routine.
3200
3201 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3202
3203 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3204 Thumb2.
3205
3206 2014-07-30 Tom Tromey <tromey@redhat.com>
3207
3208 PR c/59855
3209 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3210 * doc/extend.texi (Type Attributes): Document designated_init
3211 attribute.
3212
3213 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3214
3215 * graphite-isl-ast-to-gimple.c:
3216 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3217 (gcc_expression_from_isl_expression): Pass type to
3218 gcc_expression_from_isl_ast_expr_id.
3219
3220 2014-07-30 Richard Biener <rguenther@suse.de>
3221
3222 * lto-streamer.h (lto_write_data): New function.
3223 * langhooks.c (lhd_append_data): Do not free block.
3224 * lto-section-out.c (lto_write_data): New function writing
3225 raw data to the current section.
3226 (lto_write_stream): Adjust for langhook semantic change.
3227 (lto_destroy_simple_output_block): Write header directly.
3228 * lto-opts.c (lto_write_options): Write options directly.
3229 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3230 (lto_output_toplevel_asms): Likewise.
3231 (copy_function_or_variable): Copy data directly.
3232 (write_global_references): Output index table directly.
3233 (lto_output_decl_state_refs): Likewise.
3234 (write_symbol): Write data directly.
3235 (produce_symtab): Adjust.
3236 (produce_asm_for_decls): Output header and refs directly.
3237
3238 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3239
3240 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3241 to speculative_targets
3242 (get_class_context): Fix handling of contextes without outer type;
3243 avoid matching non-polymorphic types in LTO.
3244 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3245 parameter to speculative_targetsp; handle speculation.
3246 (dump_possible_polymorphic_call_targets): Update dumping.
3247
3248 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3249
3250 * common.opt (Wodr): Enable by default.
3251
3252 2014-07-29 Olivier Hainque <hainque@adacore.com>
3253
3254 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3255
3256 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3257
3258 PR bootstrap/61914
3259 * gengtype.c (strtoken): New function.
3260 (create_user_defined_type): Replace strtok with strtoken.
3261
3262 2014-07-29 Nathan Sidwell <nathan@acm.org>
3263
3264 * gcov-io.c (gcov_var): Make hidden.
3265 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3266 (gcov_do_dump): Declare.
3267 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3268
3269 2014-07-29 Martin Jambor <mjambor@suse.cz>
3270
3271 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3272 parameter to gimple.
3273 (sra_modify_assign): Likewise.
3274
3275 2014-07-29 Richard Biener <rguenther@suse.de>
3276
3277 PR middle-end/52478
3278 * expr.c (expand_expr_real_2): Revert last change.
3279
3280 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3281
3282 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3283 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3284 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3285 call.
3286 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3287 (contains_type_p): Forward declare.
3288 (polymorphic_call_target_hasher::hash): Hash speculative info.
3289 (polymorphic_call_target_hasher::equal): Compare speculative info.
3290 (get_class_context): Handle speuclation.
3291 (contains_type_p): Update.
3292 (get_polymorphic_call_info_for_decl): Update.
3293 (walk_ssa_copies): Break out from ...
3294 (get_polymorphic_call_info): ... here; set speculative context
3295 before giving up.
3296 * ipa-prop.c (ipa_write_indirect_edge_info,
3297 ipa_read_indirect_edge_info): Stream speculative context.
3298 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3299 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3300 SPECULATIVE_MAYBE_DERIVED_TYPE).
3301 (possible_polymorphic_call_targets overriders): Update.
3302 (dump_possible_polymorphic_call_targets overriders): Update.
3303 (dump_possible_polymorphic_call_target_p overriders): Update.
3304
3305 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3306
3307 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3308 ipa-devirt path; fix thinko there.
3309
3310 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3311
3312 * config/i386/i386.c (ix86_return_in_memory): Replace one
3313 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3314
3315 2014-07-28 Marek Polacek <polacek@redhat.com>
3316
3317 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3318
3319 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3320
3321 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3322 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3323 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3324 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3325 (USE_LD_AS_NEEDED): Likewise.
3326 (ASM_APP_ON): Likewise.
3327 (ASM_APP_OFF): Likewise.
3328 (TARGET_POSIX_IO): Likewise.
3329 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3330 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3331 (USE_LD_AS_NEEDED): Likewise.
3332 (ASM_APP_ON): Likewise.
3333 (ASM_APP_OFF): Likewise.
3334 (TARGET_POSIX_IO): Likewise.
3335
3336 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3337
3338 PR middle-end/61734
3339 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3340 operators other than the equality operators.
3341
3342 2014-07-28 Richard Biener <rguenther@suse.de>
3343
3344 PR middle-end/52478
3345 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3346 sure to register SImode ones, not only >= word_mode ones.
3347 * expr.c (expand_expr_real_2): When expanding -ftrapv
3348 binops do not use OPTAB_LIB_WIDEN.
3349
3350 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3351
3352 PR middle-end/61919
3353 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3354 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3355 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3356 inserting them in the insn stream.
3357
3358 2014-07-28 Marek Polacek <polacek@redhat.com>
3359
3360 PR middle-end/61913
3361 * common.opt (Wodr): Add Var.
3362
3363 2014-07-28 Richard Biener <rguenther@suse.de>
3364
3365 PR tree-optimization/61921
3366 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3367 if there is a varpool node before dereferencing it.
3368
3369 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3370
3371 * graphite-sese-to-poly.c:
3372 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3373 id of the pbb), which contains pointer to the pbb1.
3374
3375 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3376
3377 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3378
3379 * graphite-isl-ast-to-gimple.c:
3380 (graphite_create_new_guard): New function.
3381 (translate_isl_ast_node_if): New function.
3382 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3383
3384 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3385
3386 2014-07-27 Anthony Green <green@moxielogic.com>
3387
3388 * config.gcc: Add moxie-*-moxiebox* configuration.
3389 * config/moxie/moxiebox.h: New file.
3390
3391 2014-07-26 Andrew Pinski <apinski@cavium.com>
3392
3393 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3394 from the read only register.
3395
3396 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3397
3398 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3399 as the allocation class if it isn't likely to be spilled.
3400
3401 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3402
3403 * rtl.h (tls_referenced_p): Declare.
3404 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3405 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3406 (mips_cannot_force_const_mem): Use tls_referenced_p.
3407 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3408 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3409 instead of pa_tls_referenced_p.
3410 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3411 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3412 (pa_legitimate_constant_p): Likewise.
3413 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3414 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3415 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3416 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3417 rs6000_tls_referenced_p.
3418 (rs6000_tls_symbol_ref_1): Delete.
3419
3420 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3421
3422 PR target/44551
3423 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3424 Optimize inverse of a VEC_CONCAT.
3425
3426 2014-07-25 Xinliang David Li <davidxl@google.com>
3427
3428 * params.def: New parameter.
3429 * coverage.c (get_coverage_counts): Check new flag.
3430 (coverage_compute_profile_id): Check new flag.
3431 (coverage_begin_function): Check new flag.
3432 (coverage_end_function): Check new flag.
3433 * value-prof.c (coverage_node_map_initialized_p): New function.
3434 (init_node_map): Populate map with all functions.
3435 * doc/invoke.texi: Document new parameter.
3436
3437 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3438 Richard Biener <rguenther@suse.de>
3439
3440 * lto-streamer-out.c (struct sccs): Turn to ...
3441 (class DFS): ... this one; refactor the DFS walk so it can
3442 be re-done on per-SCC basis.
3443 (DFS::DFS): New constructor.
3444 (DFS::~DFS): New destructor.
3445 (hash_tree): Add new MAP argument holding in-SCC hash values;
3446 remove POINTER_TYPE hashing hack.
3447 (scc_entry_compare): Rename to ...
3448 (DFS::scc_entry_compare): ... this one.
3449 (hash_scc): Rename to ...
3450 (DFS::hash_scc): ... this one; pass output_block instead
3451 of streamer_cache; work harder to get unique and stable SCC
3452 hashes.
3453 (DFS_write_tree): Rename to ...
3454 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3455 (lto_output_tree): Update.
3456
3457 2014-07-25 Andi Kleen <ak@linux.intel.com>
3458
3459 * lto-streamer-out.c (hash_tree): Convert to inchash.
3460
3461 2014-07-25 Andi Kleen <ak@linux.intel.com>
3462
3463 * tree.c (build_type_attribute_qual_variant): Use inchash.
3464 (type_hash_list): Dito.
3465 (attribute_hash_list): Dito
3466 (iterative_hstate_expr): Dito.
3467 (iterative_hash_expr): Dito.
3468 (build_range_type_1): Dito.
3469 (build_array_type_1): Dito.
3470 (build_function_type): Dito.
3471 (build_method_type_directly): Dito.
3472 (build_offset_type): Dito.
3473 (build_complex_type): Dito.
3474 (make_vector_type): Dito.
3475 * tree.h (iterative_hash_expr): Add compat wrapper.
3476 (iterative_hstate_expr): Add.
3477
3478 2014-07-25 Andi Kleen <ak@linux.intel.com>
3479
3480 * Makefile.in (OBJS): Add inchash.o.
3481 (PLUGIN_HEADERS): Add inchash.h.
3482 * ipa-devirt.c: Include inchash.h.
3483 * lto-streamer-out.c: Dito.
3484 * tree-ssa-dom.c: Dito.
3485 * tree-ssa-pre.c: Dito.
3486 * tree-ssa-sccvn.c: Dito.
3487 * tree-ssa-tail-merge.c: Dito.
3488 * asan.c: Dito.
3489 * tree.c (iterative_hash_hashval_t): Move to ...
3490 (iterative_hash_host_wide_int): Move to ...
3491 * inchash.c: Here. New file.
3492 * tree.h (iterative_hash_hashval_t): Move to ...
3493 (iterative_hash_host_wide_int): Move to ...
3494 * inchash.h: Here. New file.
3495
3496 2014-07-25 Richard Biener <rguenther@suse.de>
3497
3498 PR middle-end/61762
3499 PR middle-end/61894
3500 * fold-const.c (native_encode_int): Add and handle offset
3501 parameter to do partial encodings of expr.
3502 (native_encode_fixed): Likewise.
3503 (native_encode_real): Likewise.
3504 (native_encode_complex): Likewise.
3505 (native_encode_vector): Likewise.
3506 (native_encode_string): Likewise.
3507 (native_encode_expr): Likewise.
3508 * fold-const.c (native_encode_expr): Add offset parameter
3509 defaulting to -1.
3510 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3511 (fold_ctor_reference): Handle all reads from tcc_constant
3512 ctors.
3513
3514 2014-07-25 Richard Biener <rguenther@suse.de>
3515
3516 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3517 as possibly unused.
3518
3519 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3520
3521 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3522
3523 2014-07-24 Kyle McMartin <kyle@redhat.com>
3524
3525 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3526
3527 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3528
3529 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3530 Add prototype.
3531 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3532 function.
3533 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3534 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3535 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3536
3537 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3538
3539 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3540 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3541 aggregate types. Instead, *all* aggregate types, except for single-
3542 element or homogeneous float/vector aggregates, are quadword-aligned
3543 if required by their type alignment. Issue -Wpsabi note when a type
3544 is now treated differently than before.
3545
3546 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3547
3548 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3549 does not fit fully into floating-point registers, and there is still
3550 space in the register parameter area, use GPRs to pass those parts
3551 of the argument. Issue -Wpsabi note if any parameter is now treated
3552 differently than before.
3553 (rs6000_arg_partial_bytes): Update.
3554
3555 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3556
3557 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3558
3559 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3560
3561 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3562 * toplev.c (initialize_rtl): Don't use it. Move previously
3563 "language-dependent" calls to...
3564 (backend_init): ...here.
3565 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3566 Assert that RTL initialization hasn't happend yet.
3567
3568 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3569
3570 PR rtl-optimization/61629
3571 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3572 they have already been initialized.
3573
3574 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3575
3576 PR middle-end/61268
3577 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3578 DECL_INCOMING_RTL and entry_parm.
3579 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3580 * calls.c (load_register_parameters): Likewise argument values.
3581 (emit_library_call_value_1, store_one_arg): Likewise argument
3582 save areas.
3583 * config/i386/i386.c (assign_386_stack_local): Likewise the local
3584 stack slot.
3585 * explow.c (validize_mem): Modify the argument in-place.
3586
3587 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3588
3589 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
3590 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
3591
3592 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3593
3594 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
3595 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
3596
3597 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3598
3599 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
3600 (aarch64_save_callee_saves): New parameter "skip_wb".
3601 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
3602
3603 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3604
3605 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
3606 "wb_candidate2".
3607 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
3608
3609 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3610
3611 * graphite-isl-ast-to-gimple.c:
3612 (graphite_create_new_loop): Add calling of isl_id_free to properly
3613 decrement reference counts.
3614
3615 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
3616
3617 2014-07-24 Martin Liska <mliska@suse.cz>
3618 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
3619 function used.
3620 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
3621 (rs6000_code_end): Likewise.
3622
3623 2014-07-24 Martin Liska <mliska@suse.cz>
3624
3625 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
3626 symtab_node funtion used.
3627 (rs6000_xcoff_declare_object_name): Likewise.
3628
3629 2014-07-24 Martin Liska <mliska@suse.cz>
3630
3631 * cgraphunit.c (compile): Correct function used.
3632
3633 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3634
3635 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
3636 as non-indexable.
3637
3638 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
3639
3640 PR lto/61802
3641 * varasm.c (bss_initializer_p): Handle offlined ctors.
3642 (align_variable, get_variable_align): Likewise.
3643 (make_decl_one_only): Likewise.
3644 (default_binds_local_p_1): Likewise.
3645 (decl_binds_to_current_def_p): Likewise.
3646 (get_variable_section): Get constructor if it is offlined.
3647 (assemble_variable_contents): Sanity check that the caller
3648 streamed in the ctor in LTO.
3649
3650 2014-07-24 Roman Gareev <gareevroman@gmail.com>
3651
3652 * graphite-isl-ast-to-gimple.c:
3653 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
3654 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
3655 isl_ast_op_pdiv_r to the different case.
3656
3657 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
3658
3659 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3660
3661 PR middle-end/61876
3662 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
3663 when flag_errno_math is on.
3664
3665 2014-07-24 Martin Liska <mliska@suse.cz>
3666
3667 * cgraph.h (varpool_node):
3668 (availability get_availability (void)):
3669 created from cgraph_variable_initializer_availability
3670 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
3671 created from: cgraph_variable_initializer_availability
3672 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
3673 (void finalize_named_section_flags (void)):
3674 created from varpool_finalize_named_section_flags
3675 (bool assemble_decl (void)): created from varpool_assemble_decl
3676 (void analyze (void)): created from varpool_analyze_node
3677 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
3678 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
3679 (void remove_initializer (void)): created from varpool_remove_initializer
3680 (tree get_constructor (void)): created from varpool_get_constructor
3681 (bool externally_visible_p (void)): created from varpool_externally_visible_p
3682 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
3683 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
3684 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
3685 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
3686 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
3687 (static bool output_variables (void)): created from varpool_output_variables
3688 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
3689 created from varpool_extra_name_alias
3690 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
3691 (static void dump_varpool (FILE *f)): created from dump_varpool
3692 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
3693 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
3694 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
3695 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
3696 (void assemble_aliases (void)): created from assemble_aliases
3697
3698 2014-07-24 Martin Liska <mliska@suse.cz>
3699
3700 * cgraph.h (symtab_node):
3701 (void register_symbol (void)): created from symtab_register_node
3702 (void remove (void)): created from symtab_remove_node
3703 (void dump (FILE *f)): created from dump_symtab_node
3704 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
3705 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
3706 (struct ipa_ref *add_reference (symtab_node *referred_node,
3707 enum ipa_ref_use use_type)): created from add_reference
3708 (struct ipa_ref *add_reference (symtab_node *referred_node,
3709 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
3710 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
3711 gimple stmt)): created from maybe_add_reference
3712 (bool semantically_equivalent_p (symtab_node *target)): created from
3713 symtab_semantically_equivalent_p
3714 (void remove_from_same_comdat_group (void)): created from
3715 remove_from_same_comdat_group
3716 (void add_to_same_comdat_group (symtab_node *old_node)): created from
3717 symtab_add_to_same_comdat_group
3718 (void dissolve_same_comdat_group_list (void)): created from
3719 symtab_dissolve_same_comdat_group_list
3720 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
3721 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
3722 created from symtab_alias_ultimate_target
3723 (inline symtab_node *next_defined_symbol (void)): created from
3724 symtab_next_defined_symbol
3725 (bool resolve_alias (symtab_node *target)): created from
3726 symtab_resolve_alias
3727 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
3728 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
3729 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
3730 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
3731 (void set_section (const char *section)): created from set_section_1
3732 (enum availability get_availability (void)): created from symtab_node_availability
3733 (void make_decl_local (void)): created from symtab_make_decl_local
3734 (bool real_symbol_p (void)): created from symtab_read_node
3735 (can_be_discarded_p (void)): created from symtab_can_be_discarded
3736 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
3737 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
3738 symtab_in_same_comdat_p;
3739 (bool address_taken_from_non_vtable_p (void)): created from
3740 address_taken_from_non_vtable_p
3741 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
3742 (static void dump_table (FILE *)): created from dump_symtab
3743 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
3744 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
3745 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
3746 symtab_used_from_object_file_p
3747 (void dump_base (FILE *)): created from dump_symtab_base
3748 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
3749 (void unregister (void)): created from symtab_unregister_node
3750 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
3751 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
3752 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
3753 symtab_nonoverwritable_alias_1
3754 * cgraph.h (cgraph_node):
3755 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
3756 created from cgraph_remove_node_and_inline_clones
3757 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
3758 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
3759 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
3760 (cgraph_node *function_symbol (enum availability *avail = NULL)):
3761 created from cgraph_function_node
3762 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
3763 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
3764 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
3765 created from cgraph_create_clone
3766 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
3767 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
3768 created from cgraph_create_virtual_clone
3769 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
3770 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
3771 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
3772 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
3773 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
3774 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
3775 created from cgraph_function_version_info
3776 (struct cgraph_function_version_info *insert_new_function_version (void)):
3777 created from insert_new_cgraph_node_version
3778 (struct cgraph_function_version_info *function_version (void)): created from
3779 get_cgraph_node_version
3780 (void analyze (void)): created from analyze_function
3781 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
3782 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
3783 tree real_alias) cgraph_add_thunk
3784 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
3785 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
3786 created from cgraph_function_or_thunk_node
3787 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
3788 created from expand_thunk
3789 (void reset (void)): created from cgraph_reset_node
3790 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
3791 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
3792 (void remove (void)): created from cgraph_remove_node
3793 (void dump (FILE *f)): created from dump_cgraph_node
3794 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
3795 (bool get_body (void)): created from cgraph_get_body
3796 (void release_body (void)): created from cgraph_release_function_body
3797 (void unnest (void)): created from cgraph_unnest_node
3798 (void make_local (void)): created from cgraph_make_node_local
3799 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
3800 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
3801 gcov_type count, int freq)): created from cgraph_create_edge
3802 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
3803 gcov_type count, int freq)): created from cgraph_create_indirect_edge
3804 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
3805 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
3806 created from cgraph_create_edge_including_clones
3807 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
3808 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
3809 (void remove_callers (void)): created from cgraph_node_remove_callers
3810 (void remove_callees (void)): created from cgraph_node_remove_callees
3811 (enum availability get_availability (void)): created from cgraph_function_body_availability
3812 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
3813 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
3814 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
3815 (void call_duplication_hooks (cgraph_node *node2)): created from
3816 cgraph_call_node_duplication_hooks
3817 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
3818 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
3819 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
3820 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
3821 (void call_function_insertion_hooks (void)):
3822 created from cgraph_call_function_insertion_hooks
3823 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
3824 (bool local_p (void)): created from cgraph_local_node
3825 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
3826 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
3827 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
3828 (inline bool only_called_directly_or_aliased_p (void)):
3829 created from cgraph_only_called_directly_or_aliased_p
3830 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
3831 created from cgraph_will_be_removed_from_program_if_no_direct_calls
3832 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
3833 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
3834 (bool can_remove_if_no_direct_calls_p (void)):
3835 created from cgraph_can_remove_if_no_direct_calls_p
3836 (inline bool has_gimple_body_p (void)):
3837 created from cgraph_function_with_gimple_body_p
3838 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
3839 (static void dump_cgraph (FILE *f)): created from dump_cgraph
3840 (static inline void debug_cgraph (void)): created from debug_cgraph
3841 (static void record_function_versions (tree decl1, tree decl2)):
3842 created from record_function_versions
3843 (static void delete_function_version (tree decl)):
3844 created from delete_function_version
3845 (static void add_new_function (tree fndecl, bool lowered)):
3846 created from cgraph_add_new_function
3847 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
3848 (static cgraph_node * create (tree decl)): created from cgraph_create_node
3849 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
3850 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
3851 (static cgraph_node *get_for_asmname (tree asmname)):
3852 created from cgraph_node_for_asm
3853 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
3854 created from cgraph_same_body_alias
3855 (static bool used_from_object_file_p_worker (cgraph_node *node,
3856 void *): new function
3857 (static bool non_local_p (cgraph_node *node, void *)):
3858 created from cgraph_non_local_node_p_1
3859 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
3860 created from verify_cgraph
3861 (static bool make_local (cgraph_node *node, void *)):
3862 created from cgraph_make_node_local
3863 (static cgraph_node *create_alias (tree alias, tree target)):
3864 created from cgraph_create_function_alias
3865 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
3866 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
3867 created from cgraph_create_edge_1
3868 * cgraph.h (varpool_node):
3869 (void remove (void)): created from varpool_remove_node
3870 (void dump (FILE *f)): created from dump_varpool_node
3871
3872 2014-07-24 Richard Biener <rguenther@suse.de>
3873
3874 PR ipa/61823
3875 * tree-ssa-structalias.c (create_variable_info_for_1):
3876 Use varpool_get_constructor.
3877 (create_variable_info_for): Likewise.
3878
3879 2014-07-24 Jiong Wang <jiong.wang@arm.com>
3880
3881 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
3882 subtract outgoing area size when restoring stack_pointer_rtx.
3883
3884 2014-07-24 Nick Clifton <nickc@redhat.com>
3885
3886 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
3887 that operations are taking place in parallel.
3888 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
3889
3890 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
3891
3892 * omp-low.c (extract_omp_for_data): Add missing break statement.
3893
3894 2014-07-24 Richard Biener <rguenther@suse.de>
3895
3896 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
3897 * tree-inline.c (estimate_move_cost): Add speed_p parameter
3898 and adjust MOVE_RATIO query accordingly.
3899 (estimate_num_insns): Adjust callers.
3900 * ipa-prop.c (ipa_populate_param_decls): Likewise.
3901 * ipa-cp.c (gather_context_independent_values,
3902 estimate_local_effects): Likewise.
3903 * ipa-split.c (consider_split): Likewise.
3904
3905 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
3906
3907 * config/i386/driver-i386.c: Remove names of unused arguments and
3908 unnecessary unused attributes.
3909 * config/i386/host-mingw32.c: Likewise.
3910 * config/i386/i386.c: Likewise.
3911 * config/i386/winnt-stubs.c: Likewise.
3912 * config/i386/winnt.c: Likewise.
3913
3914 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3915
3916 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
3917 (aarch64_gen_loadwb_pair): New helper function.
3918 (aarch64_expand_epilogue): Simplify code using new helper functions.
3919 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
3920
3921 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3922
3923 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
3924 (aarch64_gen_storewb_pair): New helper function.
3925 (aarch64_expand_prologue): Simplify code using new helper functions.
3926 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
3927
3928 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3929
3930 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
3931 Rename to aarch64_save_callee_saves, remove restore code.
3932 (aarch64_restore_callee_saves): New function.
3933
3934 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3935
3936 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
3937 (aarch64_save_callee_saves): New function to handle reg save
3938 for both core and vectore regs.
3939
3940 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3941
3942 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
3943 (aarch64_gen_store_pair): New helper function.
3944 (aarch64_save_or_restore_callee_save_registers)
3945 (aarch64_save_or_restore_fprs): Use new helper functions.
3946
3947 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3948
3949 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
3950 (aarch64_save_or_restore_callee_save_registers)
3951 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
3952
3953 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3954
3955 * config/aarch64/aarch64.c
3956 (aarch64_save_or_restore_callee_save_registers)
3957 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
3958
3959 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3960
3961 * config/aarch64/aarch64.c
3962 (aarch64_save_or_restore_callee_save_registers)
3963 (aarch64_save_or_restore_fprs): Remove 'increment'.
3964
3965 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3966
3967 * config/aarch64/aarch64.c
3968 (aarch64_save_or_restore_callee_save_registers)
3969 (aarch64_save_or_restore_fprs): Use register offset in
3970 cfun->machine->frame.reg_offset.
3971
3972 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3973
3974 * config/aarch64/aarch64.c
3975 (aarch64_save_or_restore_callee_save_registers)
3976 (aarch64_save_or_restore_fprs): Remove base_rtx.
3977
3978 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3979
3980 * config/aarch64/aarch64.c
3981 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
3982 to 'start_offset'. Remove local variable 'start_offset'.
3983
3984 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3985
3986 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
3987 type to HOST_WIDE_INT.
3988
3989 2014-07-23 Jiong Wang <jiong.wang@arm.com>
3990
3991 * config/aarch64/aarch64.c (aarch64_expand_prologue)
3992 (aarch64_save_or_restore_fprs)
3993 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
3994
3995 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
3996
3997 * config/arm/t-rtems-eabi: Add
3998 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
3999 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4000 mbig-endian/mthumb/march=armv7-r, and
4001 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4002 multilibs.
4003
4004 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4005 Chris Johns <chrisj@rtems.org>
4006 Joel Sherrill <joel.sherrill@oarcorp.com>
4007
4008 * config.gcc: Add nios2-*-rtems*.
4009 * config/nios2/rtems.h: New file.
4010 * gcc/config/nios2/t-rtems: New file.
4011
4012 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4013
4014 PR target/61396
4015 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4016 constant numbers, not general constants.
4017 (rs6000_expand_vector_init): Ditto.
4018
4019 2014-07-23 Nathan Sidwell <nathan@acm.org>
4020
4021 * gcov-tool.c (gcov_list): Declare here.
4022 (set_gcov_list): Remove.
4023 (gcov_output_files): Set gcov_list directly.
4024
4025 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4026
4027 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4028
4029 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4030
4031 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4032 callee-saved registers are available for padding purpose
4033 and r3 is not mandatory, then prefer use those callee-saved
4034 instead of r3.
4035
4036 2014-07-23 Richard Biener <rguenther@suse.de>
4037
4038 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4039 * combine.c: Include statistics.h and params.h.
4040 (combine_instructions): Guard three and four insn combines
4041 with max-combine-insns value. Record statistics for combines
4042 performed.
4043 * doc/invoke.texi (max-combine-insns): Document new param.
4044
4045 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4046
4047 * graphite-isl-ast-to-gimple.c:
4048 (translate_isl_ast_node_block): New function.
4049 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4050
4051 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4052 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4053
4054 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4055
4056 * graphite-isl-ast-to-gimple.c:
4057 (get_max_schedule_dimensions): New function.
4058 (extend_schedule): Likewise.
4059 (generate_isl_schedule): Add calling of extend_schedule and
4060 get_max_schedule_dimensions.
4061
4062 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4063
4064 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4065 (case UNSPEC): Handle UNSPEC_RBIT.
4066
4067 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4068
4069 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4070 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4071
4072 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4073
4074 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4075
4076 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4077
4078 * graphite-isl-ast-to-gimple.c:
4079 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4080 (ivs_params_clear):
4081 (build_iv_mapping): New function.
4082 (translate_isl_ast_node_user): Likewise.
4083 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4084
4085 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4086 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4087 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4088
4089 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4090
4091 PR target/55701
4092 * config/arm/arm.md (setmem): New pattern.
4093 * config/arm/arm-protos.h (struct tune_params): New fields.
4094 (arm_gen_setmem): New prototype.
4095 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4096 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4097 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4098 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4099 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4100 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4101 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4102 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4103 (arm_const_inline_cost): New function.
4104 (arm_block_set_max_insns): New function.
4105 (arm_block_set_non_vect_profit_p): New function.
4106 (arm_block_set_vect_profit_p): New function.
4107 (arm_block_set_unaligned_vect): New function.
4108 (arm_block_set_aligned_vect): New function.
4109 (arm_block_set_unaligned_non_vect): New function.
4110 (arm_block_set_aligned_non_vect): New function.
4111 (arm_block_set_vect, arm_gen_setmem): New functions.
4112
4113 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4114
4115 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4116
4117 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4118
4119 PR target/61855
4120 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4121 out of #ifdef __OPTIMIZE__.
4122
4123 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4124
4125 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4126 different trapping status if -fnon-call-exceptions is enabled.
4127
4128 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4129
4130 * expr.c (store_field): Handle VOIDmode for calls that return values
4131 in multiple locations.
4132
4133 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4134
4135 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4136 (altivec_vsldoi_<mode>): Likewise.
4137
4138 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4139
4140 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4141 to the number of characters in the line.
4142
4143 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4144
4145 * graphite-isl-ast-to-gimple.c: Add using of
4146 build_nonstandard_integer_type instead of int128_integer_type_node.
4147
4148 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4149
4150 * toplev.c (output_stack_usage): Adjust the location of the warning.
4151
4152 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4153
4154 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4155 (*membar_storeload): Disable for LEON3.
4156
4157 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4158
4159 PR rtl-optimization/61461
4160 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4161
4162 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4163
4164 PR target/61794
4165 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4166 Fix instruction constraint.
4167 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4168
4169 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4170
4171 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4172
4173 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4174
4175 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4176 GNU coding standards.
4177 (nds32_register_move_cost): Likewise.
4178 (nds32_memory_move_cost): Likewise.
4179 (nds32_address_cost): Likewise.
4180
4181 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4182
4183 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4184
4185 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4186
4187 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4188 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4189 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4190 (HAVE_sync_compare_and_swapqi): Define.
4191 (HAVE_sync_compare_and_swaphi): Likewise.
4192 (HAVE_sync_compare_and_swapsi): Likewise.
4193
4194 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4195
4196 * config/mips/p5600.md: Add missing cpu tests.
4197
4198 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4199
4200 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4201 (vmla_f64): Likewise.
4202 (vfms_f64): Likewise.
4203 (vmls_f64): Likewise.
4204
4205 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4206
4207 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4208 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4209
4210 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4211
4212 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4213 (vmlal_high_lane_s32): Likewise.
4214 (vmlal_high_lane_u16): Likewise.
4215 (vmlal_high_lane_u32): Likewise.
4216 (vmlsl_high_lane_s16): Likewise.
4217 (vmlsl_high_lane_s32): Likewise.
4218 (vmlsl_high_lane_u16): Likewise.
4219 (vmlsl_high_lane_u32): Likewise.
4220
4221 2014-07-17 Terry Guo <terry.guo@arm.com>
4222
4223 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4224 (alus_reg): Renamed to alus_sreg.
4225 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4226 from alu_reg to alu_sreg. Change type of dsp instructions from
4227 alu_reg to alu_dsp_reg.
4228 * config/arm/thumb1.md: Likewise.
4229 * config/arm/thumb2.md: Likewise.
4230 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4231 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4232 with alu_sreg and alus_sreg.
4233 * config/arm/arm1026ejs.md (alu_op): Likewise.
4234 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4235 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4236 * config/arm/fa526.md (526_alu_op): Likewise.
4237 * config/arm/fa606te.md (606te_alu_op): Likewise.
4238 * config/arm/fa626te.md (626te_alu_op): Likewise.
4239 * config/arm/fa726te.md (726te_alu_op): Likewise.
4240 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4241 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4242 alu_sreg, alu_dsp_reg and alus_sreg.
4243 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4244 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4245 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4246 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4247 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4248 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4249 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4250 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4251 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4252 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4253 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4254 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4255 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4256 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4257 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4258 alus_reg to alus_sreg.
4259
4260 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4261
4262 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4263 infinity format.
4264
4265 2014-07-17 Richard Biener <rguenther@suse.de>
4266
4267 PR rtl-optimization/61801
4268 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4269 don't set reg_pending_barrier if it appears in a debug-insn.
4270
4271 2014-07-16 DJ Delorie <dj@redhat.com>
4272
4273 * config/rx/rx.c (rx_option_override): Fix alignment values.
4274 (rx_align_for_label): Likewise.
4275
4276 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4277
4278 PR target/61737.
4279 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4280 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4281 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4282 functions.
4283 (cris_print_index, cris_print_operand, cris_constant_index_p)
4284 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4285 (cris_address_cost): Ditto last CONSTANT_P.
4286 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4287 callers changed. Yield cris_offsettable_symbol for non-PIC
4288 constant symbolic expressions including labels. Yield cris_unspec
4289 for all unspecs.
4290 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4291 target to pic_offset_table_rtx for calls that will likely go
4292 through PLT, const0_rtx when they can't. All callers changed.
4293 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4294 symbolic expressions to be PICified. Remove second, redundant,
4295 assert on can_create_pseudo_p returning non-zero. Use
4296 replace_equiv_address_nv, not replace_equiv_address, for final
4297 operand update.
4298 * config/cris/cris.md ("movsi"): Move variable t to pattern
4299 toplevel. Adjust assert for new cris_symbol_type member. Use
4300 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4301 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4302 for lapc stricter.
4303 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4304 ("call", "call_value"): Use second incoming operand as a marker
4305 for pic-offset-table-register being used.
4306 ("*expanded_call_non_v32", "*expanded_call_v32")
4307 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4308 second incoming operand to CALL, match cris_call_type_marker.
4309 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4310 ("*expanded_call_side"): Ditto. Fix typo in comment.
4311 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4312 CONSTANT_P.
4313 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4314 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4315 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4316 users changed. Add members cris_offsettable_symbol and cris_unspec.
4317 (cris_symbol_type): Rename from cris_pic_symbol_type.
4318 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4319 just CONSTANT_P.
4320 * config/cris/cris-protos.h (cris_symbol_type_of,
4321 cris_expand_pic_call_address): Adjust prototypes.
4322 (cris_legitimate_constant_p): New prototype.
4323
4324 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4325 an existing tmake_file. Don't add t-slibgcc and t-linux.
4326
4327 2014-07-17 Jason Merrill <jason@redhat.com>
4328
4329 PR c++/61623
4330 * symtab.c (symtab_remove_from_same_comdat_group): Also
4331 set_comdat_group to NULL_TREE.
4332 (verify_symtab): Fix diagnostic.
4333
4334 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4335
4336 PR target/61662
4337 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4338
4339 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4340
4341 Support location tracking for built-in macro tokens
4342 * input.h (is_location_from_builtin_token): New function declaration.
4343 * input.c (is_location_from_builtin_token): New function definition.
4344 * toplev.c (general_init): Tell libcpp what the pre-defined
4345 spelling location for built-in tokens is.
4346
4347 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4348
4349 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4350 on the FUNCTION_DECL.
4351
4352 2014-07-16 Richard Biener <rguenther@suse.de>
4353
4354 PR other/61782
4355 * doc/extend.texi (always_inline): Clarify.
4356
4357 2014-07-15 Eric Christopher <echristo@gmail.com>
4358
4359 * doc/invoke.texi (Link Options): Document -z option.
4360
4361 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4362
4363 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4364 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4365
4366 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4367
4368 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4369
4370 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4371
4372 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4373 varpool_assemble_decl.
4374 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4375 true.
4376
4377 2014-07-15 Michael Matz <matz@suse.de>
4378
4379 PR rtl-optimization/61772
4380 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4381
4382 2014-07-15 Richard Biener <rguenther@suse.de>
4383
4384 * opts.c (default_options_table): Disable bit-ccp at -Og.
4385
4386 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4387
4388 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4389
4390 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4391
4392 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4393 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4394 call langhook for unknown declaration.
4395 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4396 * tree.h (DECL_ARGUMENTS): Update.
4397 * print-tree.c (print_node): Update.
4398 * tree-core.h (tree_decl_non_common): Remove arguments.
4399 (tree_function_decl): Add arguments.
4400
4401 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4402
4403 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4404
4405 2014-07-14 Richard Biener <rguenther@suse.de>
4406
4407 PR tree-optimization/61779
4408 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4409 simplifying a condition.
4410
4411 2014-07-14 Richard Biener <rguenther@suse.de>
4412
4413 * builtins.c (c_strlen): Make only_value == 2 really only
4414 affect warning generation.
4415
4416 2014-07-14 Richard Biener <rguenther@suse.de>
4417
4418 PR tree-optimization/61757
4419 PR tree-optimization/61783
4420 PR tree-optimization/61787
4421 * tree-ssa-dom.c (record_equality): Revert canonicalization
4422 change and add comment.
4423 (propagate_rhs_into_lhs): Revert previous fix, removing
4424 loop depth restriction again.
4425
4426 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4427
4428 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4429 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4430 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4431 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4432 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4433 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4434 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4435
4436 2014-07-14 Richard Biener <rguenther@suse.de>
4437
4438 * cgraph.h (decl_in_symtab_p): Make inline.
4439
4440 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4441
4442 PR middle-end/61294
4443 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4444
4445 PR target/61656
4446 * config/i386/i386.c (classify_argument): Don't merge classes above
4447 number of words.
4448
4449 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4450
4451 * cgraph.h (symtab_node): Add nonzero_address.
4452 (decl_in_symtab_p): Break out from ...
4453 (symtab_get_node): ... here.
4454 * fold-const.c: Include cgraph.h
4455 (tree_single_nonzero_warnv_p): Use symtab to determine
4456 if symbol is non-zero.
4457 * symtab.c (symtab_node::nonzero_address): New method.
4458
4459 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4460
4461 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4462 forgotten in previous commit.
4463
4464 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4465
4466 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4467 on builtin types.
4468 * ipa-devirt.c: Include stor-layout.h and intl.h
4469 (odr_subtypes_equivalent_p): New function.
4470 (warn_odr): New function.
4471 (warn_type_mismatch): New function.
4472 (odr_types_equivalent_p): New function.
4473 (add_type_duplicate): Use it.
4474 * common.opt (Wodr): New flag.
4475 * doc/invoke.texi (Wodr): Document new warning.
4476
4477 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4478
4479 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4480 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4481 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4482 (varpool_get_constructor): Push CTORS_IN timevar.
4483 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4484
4485 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4486
4487 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4488 Remove VOID_FTYPE_PUSHORT.
4489 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4490 Change code to USHORT_FTYPE_VOID.
4491 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4492 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4493 (ix86_atomic_assign_expand_fenv): Update for
4494 __builtin_ia32_fnstsw changes.
4495 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4496 (fnstsw): Change operand 0 to nonimmediate operand.
4497
4498 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4499
4500 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4501 (varpool_get_constructor): New function.
4502 (varpool_ctor_useable_for_folding_p): Break out from ...
4503 (ctor_for_folding): ... here; use varpool_get_constructor.
4504 (varpool_assemble_decl): Likewise.
4505 * lto-streamer.h (struct output_block): Turn cgraph_node
4506 to symbol filed.
4507 (lto_input_variable_constructor): Declare.
4508 * ipa-visibility.c (function_and_variable_visibility): Use
4509 varpool_get_constructor.
4510 * cgraph.h (varpool_get_constructor): Declare.
4511 (varpool_ctor_useable_for_folding_p): New function.
4512 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4513 parameter; return error_mark_node for non-trivial constructors.
4514 (lto_write_tree_1, DFS_write_tree): Update use of
4515 get_symbol_initial_value.
4516 (output_function): Update initialization of symbol.
4517 (output_constructor): New function.
4518 (copy_function): Rename to ..
4519 (copy_function_or_variable): ... this one; handle vars too.
4520 (lto_output): Output variable sections.
4521 * lto-streamer-in.c (input_constructor): New function.
4522 (lto_read_body): Rename from ...
4523 (lto_read_body_or_constructor): ... this one; handle vars too.
4524 (lto_input_variable_constructor): New function.
4525 * ipa-prop.c (ipa_prop_write_jump_functions,
4526 ipa_prop_write_all_agg_replacement): Update.
4527 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4528 (output_cgraph_opt_summary): Set symbol to NULL.
4529
4530 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4531
4532 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4533 non-polymorphic types.
4534 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4535 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4536 of types is not polymorphic.
4537
4538 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4539
4540 * lra-constraints.c (remove_inheritance_pseudos): Process
4541 destination pseudo too.
4542
4543 2014-07-11 Rong Xu <xur@google.com>
4544
4545 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4546 commit r212448.
4547
4548 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4549
4550 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4551 * config/avr/avr-devices.c (AVR_MCU): Same.
4552 (avr_mcu_types): add text start value to end of device list.
4553 * config/avr/avr-mcus.def: Add text section start for all devices.
4554 (ata5782): Add new avr5 device.
4555 (ata5831): Same.
4556 * config/avr/avr-tables.opt: Regenerate.
4557 * config/avr/avr.h: Add declaration for text section start handler.
4558 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4559 SPEC functions.
4560 (LINK_SPEC): Include text section start handler to linker spec.
4561 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4562 pass -Ttext option to linker if the text section start for the device
4563 is not zero.
4564 * config/avr/t-multilib: Regenerate.
4565 * doc/avr-mmcu.texi: Regenerate.
4566
4567 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4568
4569 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4570 * config/rs6000/aix52.h (LINK_SPEC): Same.
4571 * config/rs6000/aix53.h (LINK_SPEC): Same.
4572 * config/rs6000/aix61.h (LINK_SPEC): Same.
4573 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4574
4575 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4576
4577 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4578 (graphite_verify): New function.
4579 (ivs_params_clear): New function.
4580 (gcc_expression_from_isl_ast_expr_id): New function.
4581 (gcc_expression_from_isl_expr_int): New function.
4582 (binary_op_to_tree): New function.
4583 (ternary_op_to_tree): New function.
4584 (unary_op_to_tree): New function.
4585 (nary_op_to_tree): New function.
4586 (gcc_expression_from_isl_expr_op): New function.
4587 (gcc_expression_from_isl_expression): New function.
4588 (graphite_create_new_loop): New function.
4589 (translate_isl_ast_for_loop): New function.
4590 (get_upper_bound): New function.
4591 (graphite_create_new_loop_guard): New function.
4592 (translate_isl_ast_node_for): New function.
4593 (translate_isl_ast): New function.
4594 (add_parameters_to_ivs_params): New function.
4595 (scop_to_isl_ast): New parameter ip.
4596 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
4597
4598 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4599
4600 * config/xtensa/predicates.md (call expander): Update for
4601 DECL_SECTION_NAME being string.
4602
4603 2014-07-11 Richard Biener <rguenther@suse.de>
4604
4605 PR middle-end/61473
4606 * builtins.c (fold_builtin_memory_op): Inline memory moves that
4607 can be implemented with a single load followed by a single store.
4608 (c_strlen): Only warn when only_value is not 2.
4609
4610 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
4611
4612 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
4613
4614 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
4615
4616 PR target/61561
4617 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
4618 (*movhi_bytes): Likewise.
4619 (*arm_movqi_insn): Likewise.
4620
4621 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
4622
4623 PR target/56858
4624 * config/alpha/alpha.c: Include tree-pass.h, context.h
4625 and pass_manager.h.
4626 (pass_data_handle_trap_shadows): New pass.
4627 (pass_handle_trap_shadows::gate): New pass gate function.
4628 (make_pass_handle_trap_shadows): New function.
4629 (rest_of_handle_trap_shadows): Ditto.
4630
4631 (alpha_align_insns_1): Rename from alpha_align_insns.
4632 (pass_data_align_insns): New pass.
4633 (pass_align_insns::gate): New pass gate function.
4634 (make_pass_aling_insns): New function.
4635 (rest_of_align_insns): Ditto.
4636 (alpha_align_insns): Ditto.
4637
4638 (alpha_option_override): Declare handle_trap_shadows info
4639 and align_insns_info. Register handle_trap_shadows and align_insns
4640 passes here.
4641 (alpha_reorg): Do not call alpha_trap_shadows and
4642 alpha_align_insn from here.
4643
4644 (alpha_pad_function_end): Do not skip BARRIERs.
4645
4646 2014-07-10 Rong Xu <xur@google.com>
4647
4648 Add gcov-tool: an offline gcda profile processing tool support.
4649 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
4650 (gcov_is_error): Ditto.
4651 (gcov_read_string): Ditto.
4652 (gcov_read_sync): Ditto.
4653 * gcov-io.h: Move counter defines to gcov-counter.def.
4654 * gcov-dump.c (tag_counters): Use gcov-counter.def.
4655 * coverage.c: Ditto.
4656 * gcov-tool.c: Offline gcda profile processing tool.
4657 (unlink_gcda_file): Remove one gcda file.
4658 (unlink_profile_dir): Remove gcda files from the profile path.
4659 (gcov_output_files): Output gcda files to an output dir.
4660 (profile_merge): Merge two profiles in directory.
4661 (print_merge_usage_message): Print merge usage.
4662 (merge_usage): Print merge usage and exit.
4663 (do_merge): Driver for profile merge sub-command.
4664 (profile_rewrite): Rewrite profile.
4665 (print_rewrite_usage_message): Print rewrite usage.
4666 (rewrite_usage): Print rewrite usage and exit.
4667 (do_rewrite): Driver for profile rewrite sub-command.
4668 (print_usage): Print gcov-info usage and exit.
4669 (print_version): Print gcov-info version.
4670 (process_args): Process arguments.
4671 (main): Main routine for gcov-tool.
4672 * Makefile.in: Build and install gcov-tool.
4673 * gcov-counter.def: New file split from gcov-io.h.
4674 * doc/gcc.texi: Include gcov-tool.texi.
4675 * doc/gcov-tool.texi: Document for gcov-tool.
4676
4677 2014-07-10 Richard Biener <rguenther@suse.de>
4678
4679 PR tree-optimization/61757
4680 * tree-ssa-dom.c (loop_depth_of_name): Restore.
4681 (propagate_rhs_into_lhs): Revert part of last change.
4682
4683 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
4684
4685 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
4686 FUNCTION_DECLs.
4687
4688 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
4689
4690 PR middle-end/53590
4691 * function.c (allocate_struct_function): Revert r188667 change.
4692
4693 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
4694
4695 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
4696
4697 * doc/install.texi: Remove links to defunct package providers for
4698 Solaris.
4699
4700 2014-07-09 Tom de Vries <tom@codesourcery.com>
4701
4702 * final.c (get_call_fndecl): Declare.
4703 (self_recursive_call_p): New function.
4704 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
4705
4706 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4707
4708 * ipa-devirt.c (record_node): Walk through aliases.
4709
4710 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4711
4712 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
4713
4714 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4715
4716 Revert:
4717 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
4718
4719 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4720
4721 * ipa-visibility.c (function_and_variable_visibility): Remove
4722 temporary hack disabling local aliases on AIX.
4723
4724 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4725
4726 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
4727 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
4728
4729 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4730
4731 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
4732 * rs6000/rs6000.c: Inline output of .set instruction.
4733 (declare_alias_data): New struct.
4734 (rs6000_declare_alias): New function.
4735 (rs6000_xcoff_declare_function_name): Use it.
4736 (rs6000_xcoff_declare_object_name): New function.
4737 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
4738 (ASM_OUTPUT_DEF): Turn to empty definition.
4739
4740 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4741
4742 PR bootstrap/61679
4743 * hash-table.h: use hash_table::value_type instead of
4744 Descriptor::value_type in the return types of several methods.
4745
4746 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4747
4748 * tree-pass.h (pass_data): Remove has_execute member.
4749 * passes.c (execute_one_pass): Don't check pass->has_execute.
4750 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
4751 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
4752 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
4753 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
4754 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
4755 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
4756 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
4757 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
4758 gimple-low.c, gimple-ssa-isolate-paths.c,
4759 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
4760 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
4761 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
4762 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
4763 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4764 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
4765 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
4766 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
4767 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
4768 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
4769 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
4770 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4771 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
4772 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
4773 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
4774 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
4775 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
4776 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
4777 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
4778 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
4779 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
4780 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
4781 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
4782 web.c: Remove initializer for pass_data::has_execute.
4783
4784 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
4785
4786 * graphite-htab.h: Use hash_map instead of hash_table.
4787 * graphite-clast-to-gimple.c: Adjust.
4788 * passes.c: Use hash_map instead of hash_table.
4789 * sese.c: Likewise.
4790 * sese.h: Remove now unused code.
4791
4792 2014-07-08 Sriraman Tallam <tmsriram@google.com>
4793
4794 PR target/61599
4795 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
4796 than zero.
4797
4798 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4799
4800 PR rtl-optimization/61673
4801 * combine.c (simplify_comparison): Test just mode's sign bit
4802 in tmode rather than the sign bit and any bits above it.
4803
4804 2014-07-08 Roman Gareev <gareevroman@gmail.com>
4805
4806 * graphite-isl-ast-to-gimple.c (generate_isl_context):
4807 Add __isl_give to the declaration.
4808 (generate_isl_schedule): Likewise.
4809 (scop_to_isl_ast): Likewise.
4810
4811 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4812
4813 * config/arm/arm.c (cortexa5_extra_costs): New table.
4814 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
4815
4816 2014-07-08 Jakub Jelinek <jakub@redhat.com>
4817
4818 PR tree-optimization/61725
4819 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
4820 range, use range_includes_zerop_p instead of integer_zerop on
4821 vr0->min, only use log2 of max if min is not negative.
4822
4823 2014-07-08 Richard Biener <rguenther@suse.de>
4824
4825 * tree-ssa-dom.h (loop_depth_of_name): Remove.
4826 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
4827 restriction on loop depth difference.
4828 (record_equality): Likewise.
4829 (propagate_rhs_into_lhs): Likewise. Simplify condition.
4830 (loop_depth_of_name): Remove.
4831 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
4832 restriction on loop depth difference.
4833 (init_copy_prop): Likewise.
4834
4835 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
4836
4837 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
4838 parameter.
4839 (walk_aliased_vdefs): Likewise.
4840 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
4841 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
4842 (detect_type_change_from_memory_writes): Check if entry was reached.
4843
4844 2014-07-08 Richard Biener <rguenther@suse.de>
4845
4846 PR tree-optimization/61681
4847 * tree-ssa-structalias.c (find_what_var_points_to): Expand
4848 NONLOCAL inside ESCAPED.
4849
4850 2014-07-08 Richard Biener <rguenther@suse.de>
4851
4852 PR tree-optimization/61680
4853 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4854 Handle properly all read-write dependences with group accesses.
4855
4856 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4857
4858 PR tree-optimization/61576
4859 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
4860 block containing reduction statement is predecessor of phi basi block.
4861
4862 2014-07-08 Marek Polacek <polacek@redhat.com>
4863
4864 PR c/60226
4865 * fold-const.c (round_up_loc): Change the parameter type.
4866 Remove assert.
4867 * fold-const.h (round_up_loc): Adjust declaration.
4868 * stor-layout.c (finalize_record_size): Check for too large types.
4869
4870 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
4871
4872 * symtab.c: Include calls.h.
4873 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
4874
4875 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
4876
4877 * config/rs6000/rs6000.c (output_vec_const_move): Handle
4878 little-endian code generation.
4879 * config/rs6000/spe.md (spe_evmergehi): Rename to...
4880 (vec_perm00_v2si): ... this. Handle little-endian code generation.
4881 (spe_evmergehilo): Rename to...
4882 (vec_perm01_v2si): ... this. Handle little-endian code generation.
4883 (spe_evmergelo): Rename to...
4884 (vec_perm11_v2si): ... this. Handle little-endian code generation.
4885 (spe_evmergelohi): Rename to...
4886 (vec_perm10_v2si): ... this. Handle little-endian code generation.
4887 (spe_evmergehi, spe_evmergehilo): New expanders.
4888 (spe_evmergelo, spe_evmergelohi): Likewise.
4889 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
4890 (*frob_tf_ti): Likewise.
4891 (*frob_<mode>_di_2): Likewise.
4892 (*frob_tf_di_8_2): Likewise.
4893 (*frob_di_<mode>): Likewise.
4894 (*frob_ti_tf): Likewise.
4895 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
4896 (*frob_ti_<mode>_8_2): Likewise.
4897 (*frob_ti_tf_2): Likewise.
4898 (mov_si<mode>_e500_subreg0): Rename to...
4899 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
4900 endianness only.
4901 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
4902 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
4903 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
4904 the big endianness only.
4905 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
4906 (*mov_si<mode>_e500_subreg0_2): Rename to...
4907 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
4908 big big endianness only.
4909 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
4910 (*mov_si<mode>_e500_subreg4): Rename to...
4911 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
4912 endianness only.
4913 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
4914 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
4915 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
4916 the big endianness only.
4917 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
4918 pattern.
4919 (*mov_si<mode>_e500_subreg4_2): Rename to...
4920 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
4921 endianness only.
4922 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
4923 (*mov_sitf_e500_subreg8): Rename to...
4924 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
4925 endianness only.
4926 (*mov_sitf_e500_subreg8_le): New instruction pattern.
4927 (*mov_sitf_e500_subreg8_2): Rename to...
4928 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
4929 endianness only.
4930 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
4931 (*mov_sitf_e500_subreg12): Rename to...
4932 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
4933 endianness only.
4934 (*mov_sitf_e500_subreg12_le): New instruction pattern.
4935 (*mov_sitf_e500_subreg12_2): Rename to...
4936 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
4937 endianness only.
4938 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
4939
4940 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
4941
4942 * asan.c (instrument_strlen_call): Do not instrument first byte
4943 in strlen if already instrumented.
4944
4945 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4946
4947 * config/arm/arm.opt (mwords-little-endian): Delete.
4948 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
4949 of TARGET_LITTLE_WORDS.
4950 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
4951 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
4952 warning.
4953 * doc/invoke.texi: Remove references to -mwords-little-endian.
4954
4955 2014-07-07 Jakub Jelinek <jakub@redhat.com>
4956
4957 * expmed.c (struct init_expmed_rtl): Change all fields but
4958 pow2 and cint from struct rtx_def to rtx.
4959 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
4960 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
4961 at the end again.
4962
4963 2014-07-06 Marek Polacek <polacek@redhat.com>
4964
4965 PR c/6940
4966 * doc/invoke.texi: Document -Wsizeof-array-argument.
4967
4968 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
4969
4970 * wide-int.h (wide_int_storage): Change declaration from struct
4971 to class.
4972
4973 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
4974
4975 * cgraph.c (cgraph_create_indirect_edge): Update call of
4976 get_polymorphic_call_info.
4977 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
4978 (possible_polymorphic_call_targets): Add parameter call.
4979 (decl_maybe_in_construction_p): New predicate.
4980 (get_polymorphic_call_info): Add parameter call;
4981 use decl_maybe_in_construction_p.
4982 * gimple-fold.c (fold_gimple_assign): Update use of
4983 possible_polymorphic_call_targets.
4984 (gimple_fold_call): Likewise.
4985 * ipa-prop.c: Inlcude calls.h
4986 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
4987 (param_type_may_change_p): New predicate.
4988 (detect_type_change_from_memory_writes): Break out from ...
4989 (detect_type_change): ... this one; use param_type_may_change_p.
4990 (detect_type_change_ssa): Use param_type_may_change_p.
4991 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
4992
4993 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
4994
4995 PR target/49423
4996 * config/arm/arm-protos.h (arm_legitimate_address_p,
4997 arm_is_constant_pool_ref): Add prototypes.
4998 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
4999 (arm_is_constant_pool_ref) New function.
5000 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5001 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5002 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5003 operand. Remove pool_range and neg_pool_range attributes.
5004 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5005 pool_range and neg_pool_range attributes.
5006 * config/arm/constraints.md (Uh): New constraint.
5007 (Uq): Don't allow constant pool references.
5008
5009 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5010
5011 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5012 (move_lo_quad_internal_be_<mode>): Likewise.
5013 (move_lo_quad_<mode>): Convert to define_expand.
5014 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5015 (aarch64_simd_move_hi_quad_be_<mode>): New.
5016 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5017 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5018 (aarch64_combinez_be<mode>): New.
5019 (aarch64_combine<mode>): Convert to define_expand.
5020 (aarch64_combine_internal<mode>): New.
5021 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5022
5023 2014-07-04 Tom de Vries <tom@codesourcery.com>
5024
5025 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5026 combination of earlyclobber and read/write modifiers.
5027
5028 2014-07-04 Tom de Vries <tom@codesourcery.com>
5029
5030 * config/aarch64/aarch64-simd.md
5031 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5032
5033 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5034
5035 PR target/61714
5036 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5037
5038 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5039
5040 PR middle-end/61654
5041 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5042
5043 PR tree-optimization/61684
5044 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5045 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5046
5047 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5048 Kito Cheng <kito@0xlab.org>
5049 Monk Chiang <sh.chiang04@gmail.com>
5050
5051 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5052 (nds32_symbol_load_store_p): Move to ...
5053 (nds32_fp_as_gp_check_available): Move to ...
5054 * config/nds32/nds32-fp-as-gp.c: ... here.
5055 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5056 extern declaration.
5057
5058 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5059 Kito Cheng <kito@0xlab.org>
5060 Monk Chiang <sh.chiang04@gmail.com>
5061
5062 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5063 (nds32_expand_store_multiple): Move to ...
5064 (nds32_expand_movmemqi): Move to ...
5065 * config/nds32/nds32-memory-manipulation.c: ... here.
5066
5067 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5068 Kito Cheng <kito@0xlab.org>
5069 Monk Chiang <sh.chiang04@gmail.com>
5070
5071 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5072 (nds32_output_casesi_pc_relative): Move to ...
5073 (nds32_output_casesi): Move to ...
5074 (nds32_mem_format): Move to ...
5075 (nds32_output_16bit_store): Move to ...
5076 (nds32_output_16bit_load): Move to ...
5077 (nds32_output_32bit_store): Move to ...
5078 (nds32_output_32bit_load): Move to ...
5079 (nds32_output_32bit_load_s): Move to ...
5080 (nds32_output_stack_push): Move to ...
5081 (nds32_output_stack_pop): Move to ...
5082 * config/nds32/nds32-md-auxiliary.c: ... here.
5083
5084 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5085 Ling-Hua Tseng <uranus@tinlans.org>
5086
5087 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5088 the purpose of this file.
5089
5090 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5091 Kito Cheng <kito@0xlab.org>
5092 Monk Chiang <sh.chiang04@gmail.com>
5093
5094 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5095 (nds32_address_cost): Move implementation to ...
5096 * config/nds32/nds32-cost.c: ... here.
5097 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5098 (nds32_address_cost_impl): Declare.
5099
5100 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5101 Kito Cheng <kito@0xlab.org>
5102 Monk Chiang <sh.chiang04@gmail.com>
5103
5104 * config/nds32/nds32.c
5105 (nds32_consecutive_registers_load_store_p): Move to ...
5106 (nds32_valid_multiple_load_store): Move to ...
5107 (nds32_valid_stack_push_pop): Move to ...
5108 (nds32_can_use_bclr_p): Move to ...
5109 (nds32_can_use_bset_p): Move to ...
5110 (nds32_can_use_btgl_p): Move to ...
5111 (nds32_can_use_bitci_p): Move to ...
5112 * config/nds32/nds32-predicates.c: ... here.
5113
5114 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5115 Kito Cheng <kito@0xlab.org>
5116 Monk Chiang <sh.chiang04@gmail.com>
5117
5118 * config/nds32/nds32.c
5119 (nds32_expand_builtin_null_ftype_reg): Move to ...
5120 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5121 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5122 (nds32_init_builtins): Move implementation to ...
5123 (nds32_expand_builtin): Move implementation to ...
5124 * config/nds32/nds32-intrinsic.c: ... here.
5125 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5126 (nds32_expand_builtin_impl): Declare.
5127
5128 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5129 Kito Cheng <kito@0xlab.org>
5130 Monk Chiang <sh.chiang04@gmail.com>
5131
5132 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5133 (nds32_emit_section_tail_template): Move to ...
5134 (nds32_emit_isr_jmptbl_section): Move to ...
5135 (nds32_emit_isr_vector_section): Move to ...
5136 (nds32_emit_isr_reset_conten): Move to ...
5137 (nds32_check_isr_attrs_conflict): Move to ...
5138 (nds32_construct_isr_vectors_information): Move to ...
5139 (nds32_asm_file_start): Move implementation to ...
5140 (nds32_asm_file_end): Move implementation to ...
5141 * config/nds32/nds32-isr.c: ... here.
5142 * config/nds32/nds32-protos.h
5143 (nds32_check_isr_attrs_conflict): Declare.
5144 (nds32_construct_isr_vectors_information): Declare.
5145 (nds32_asm_file_start_for_isr): Declare.
5146 (nds32_asm_file_end_for_isr): Declare.
5147
5148 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5149 Kito Cheng <kito@0xlab.org>
5150 Monk Chiang <sh.chiang04@gmail.com>
5151
5152 * config.gcc (nds32*): Add new modules to extra_objs.
5153 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5154 (nds32be-*-*): Likewise.
5155 * config/nds32/nds32-cost.c: New file.
5156 * config/nds32/nds32-fp-as-gp.c: New file.
5157 * config/nds32/nds32-intrinsic.c: New file.
5158 * config/nds32/nds32-isr.c: New file.
5159 * config/nds32/nds32-md-auxiliary.c: New file.
5160 * config/nds32/nds32-memory-manipulation.c: New file.
5161 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5162 * config/nds32/nds32-predicates.c: New file.
5163 * config/nds32/t-nds32: New file.
5164
5165 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5166
5167 PR tree-optimization/61682
5168 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5169 using cases and when one of the operands is equal to 1.
5170
5171 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5172
5173 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5174 ashr<mode>3): Correct mode of operands[2].
5175 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5176 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5177 Correct mode of operands[2]. Fix split condition.
5178
5179 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5180
5181 * arm.md (arch): Add armv6_or_vfpv3.
5182 (arch_enabled): Add test for the above.
5183 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5184 on VFP9.
5185 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5186
5187 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5188
5189 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5190 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5191 HWI 1 and negate the unsigned value.
5192 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5193 use AND instead of shift.
5194 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5195
5196 2014-07-03 Marek Polacek <polacek@redhat.com>
5197
5198 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5199 (-fsanitize=float-divide-by-zero): Move to the table with
5200 -fsanitize=undefined suboptions.
5201 (-fsanitize=float-cast-overflow): Likewise.
5202
5203 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5204
5205 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5206 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5207 endianness.
5208
5209 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5210
5211 * loop-invariant.c (struct invariant): Add a new member: eqno;
5212 (find_identical_invariants): Update eqno;
5213 (create_new_invariant): Init eqno;
5214 (get_inv_cost): Compute comp_cost with eqno;
5215
5216 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5217
5218 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5219 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5220 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5221 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5222 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5223
5224 2014-07-02 Christian Bruel <christian.bruel@st.com>
5225
5226 PR target/29349
5227 PR target/53513
5228 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5229 (make_preds_opaque): Delete.
5230 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5231 (commit_mode_sets): New function.
5232 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5233 Process all modes at once.
5234 * basic-block.h (pre_edge_lcm_avs): Declare.
5235 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5236 Call clear_aux_for_edges. Fix comments.
5237 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5238 (pre_edge_rev_lcm): Idem.
5239 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5240 parameter.
5241 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5242 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5243 Idem.
5244 * config/i386/i386.c (x96_emit_mode_set): Idem.
5245 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5246 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5247 (fpscr_toggle) Disallow from delay slot.
5248 * target.def (emit_mode_set): Add prev_mode parameter.
5249 * doc/tm.texi: Regenerate.
5250
5251 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5252
5253 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5254 variable i.
5255
5256 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5257
5258 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5259 vtable_pointer_value_to_vtable): Constify.
5260 (contains_polymorphic_type_p): Declare.
5261 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5262 vtable_pointer_value_to_vtable): Constify.
5263 (contains_polymorphic_type_p): New predicate.
5264 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5265 polymorphic types.
5266 (ipa_set_ancestor_jf): Likewise.
5267 (detect_type_change): Return false in easy cases.
5268 (compute_complex_assign_jump_func): Require type to contain
5269 polymorphic type.
5270 (compute_known_type_jump_func): Likewise.
5271
5272 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5273
5274 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5275 Remove.
5276 (type_in_anonymous_namespace_p): Constify argument.
5277 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5278 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5279 (main_odr_variant): New function.
5280 (hash_type_name): Make static; update assert; do not ICE on
5281 non-records.
5282 (types_same_for_odr): Bring here from tree.c; simplify and remove
5283 old structural comparing code that doesn't work for templates.
5284 (odr_hasher::equal): Update assert.
5285 (add_type_duplicate): Return true when bases should be computed;
5286 replace incomplete loader by complete; do not output duplicated
5287 warnings; do not ICE on non-records; set odr_violated flag.
5288 (get_odr_type): Be ready to replace incomplete type by complete
5289 one; work on ODR variants instead of main variants; reorder item
5290 in array so bases have still smaller indexes.
5291 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5292 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5293
5294 2014-07-01 Cary Coutant <ccoutant@google.com>
5295
5296 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5297 lookup.
5298 (resolve_addr_in_expr): When replacing the rtx in a location list
5299 entry, get a new address table entry.
5300 (dwarf2out_finish): Call index_location_lists even if there are no
5301 addr_index_table entries yet.
5302
5303 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5304
5305 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5306 change for not being obvious.
5307
5308 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5309
5310 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5311 unused argument.
5312
5313 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5314
5315 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5316 (vcagt_f64): Likewise.
5317 (vcale_f64): Likewise.
5318 (vcaled_f64): Likewise.
5319 (vcales_f32): Likewise.
5320 (vcalt_f64): Likewise.
5321 (vcaltd_f64): Likewise.
5322 (vcalts_f32): Likewise.
5323
5324 2014-07-01 Marek Polacek <polacek@redhat.com>
5325
5326 * doc/invoke.texi: Document -Wint-conversion.
5327
5328 2014-07-01 Marek Polacek <polacek@redhat.com>
5329
5330 PR c/58286
5331 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5332
5333 2014-07-01 Martin Liska <mliska@suse.cz>
5334
5335 IPA REF alias refactoring
5336 * cgraph.h (iterate_direct_aliases): New function.
5337 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5338 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5339 FOR_EACH_ALIAS added.
5340 (cgraph_for_node_and_aliases): Likewise.
5341 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5342 * ipa-inline.c (reset_edge_caches): Likewise.
5343 (update_caller_keys): Likewise.
5344 * trans-mem.c (ipa_tm_execute): Likewise.
5345 *varpool.c (varpool_analyze_node): Likewise.
5346 (varpool_for_node_and_aliases): Likewise.
5347 * ipa-ref.h (first_alias): New function.
5348 (last_alias): Likewise.
5349 (has_aliases_p): Likewise.
5350 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5351 is sensitive to IPA_REF_ALIASes.
5352 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5353 are put at the beginning of the list.
5354 (symtab_node::iterate_direct_aliases): New function.
5355
5356 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5357
5358 Revert:
5359 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5360 type is complete.
5361 (write_ts_type_common_tree_pointers): Do not stream fields not set
5362 for incomplete types; do not stream duplicated fields for variants;
5363 sanity check that variant and type match.
5364 (write_ts_type_non_common_tree_pointers): Likewise.
5365 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5366 TYPE_SIZE whether type is complete.
5367 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5368 write_ts_type_common_tree_pointers
5369 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5370
5371 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5372
5373 * var-tracking.c (add_stores): Return instead of asserting if old
5374 and new values for conditional store are the same.
5375
5376 2014-06-30 Richard Henderson <rth@redhat.com>
5377
5378 PR rtl-opt/61608
5379 PR target/39284
5380 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5381 the cfg if there were any changes.
5382 * passes.def: Revert move of peephole2 after reorder_blocks;
5383 move duplicate_computed_gotos before peephole2.
5384
5385 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5386
5387 * except.c (emit_note_eh_region_end): New helper function.
5388 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5389 emit EH_REGION_END note.
5390 * jump.c (cleanup_barriers): Do not split a call and its
5391 corresponding CALL_ARG_LOCATION note.
5392
5393 2014-06-30 Jeff Law <law@redhat.com>
5394
5395 PR tree-optimization/61607
5396 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5397 deeper into the SSA_NAME_VALUE chain.
5398
5399 2014-06-30 Marek Polacek <polacek@redhat.com>
5400
5401 * convert.c (convert_to_integer): Don't instrument conversions if the
5402 function has no_sanitize_undefined attribute.
5403 * ubsan.c: Don't run the ubsan pass if the function has
5404 no_sanitize_undefined attribute.
5405
5406 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5407
5408 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5409 -fsanitize=undefined suboptions.
5410
5411 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5412
5413 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5414 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5415 against bigendian and adjust indices.
5416
5417 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5418
5419 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5420
5421 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5422
5423 PR target/61633
5424 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5425 Add alternative; make early clobber. Adjust both split patterns
5426 to use operand 0 as the working register.
5427
5428 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5429
5430 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5431 as ira_object_id_map might be NULL, or 1.
5432
5433 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5434
5435 * loop-invariant.c (get_inv_cost): Handle register class.
5436 (gain_for_invariant): Check the register pressure of the inv
5437 and its overlapped register class, other than all.
5438
5439 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5440
5441 * doc/invoke.texi (Optimize Options): Fix descriptions of
5442 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5443
5444 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5445
5446 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5447 documentation.
5448
5449 2014-06-29 Tobias Grosser <tobias@grosser.es>
5450
5451 PR bootstrap/61650
5452 * graphite-isl-ast-to-gimple.c: Add missing guards.
5453
5454 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5455
5456 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5457 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5458 * flag-types.h: Add new enum fgraphite_generator.
5459 * graphite-isl-ast-to-gimple.c: New.
5460 * graphite-isl-ast-to-gimple.h: New.
5461 * graphite.c (graphite_transform_loops): Add choice of Graphite
5462 code generator, which depends on flag_graphite_code_gen.
5463
5464 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5465
5466 * graphite-dependences.c (subtract_commutative_associative_deps):
5467 Add NULL checking of the following variables: must_raw_no_source,
5468 may_raw_no_source, must_war_no_source, may_war_no_source,
5469 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5470 must_war, may_war, must_waw, may_waw.
5471
5472 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5473
5474 * graphite-clast-to-gimple.c: gloog is renamed to
5475 graphite_regenerate_ast_cloog. gloog_error is renamed to
5476 graphite_regenerate_error.
5477 * graphite-clast-to-gimple.h: The definition of the struct
5478 bb_pbb_def is moved to graphite-htab.h.
5479 Add inclusion of the hash-table.h.
5480 * graphite-htab.h: The declaration of the function gloog is moved
5481 to graphite-clast-to-gimple.h and renamed to
5482 graphite_regenerate_ast_cloog.
5483 * graphite.c (graphite_transform_loops): gloog is renamed
5484 to graphite_regenerate_ast_cloog.
5485
5486 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5487
5488 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5489 type is complete.
5490 (write_ts_type_common_tree_pointers): Do not stream fields not set
5491 for incomplete types; do not stream duplicated fields for variants;
5492 sanity check that variant and type match.
5493 (write_ts_type_non_common_tree_pointers): Likewise.
5494 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5495 TYPE_SIZE whether type is complete.
5496 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5497 write_ts_type_common_tree_pointers
5498 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5499
5500 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5501
5502 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5503
5504 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5505
5506 * tree-inline.c (remap_type_1): Do not duplicate fields
5507 that are shared in between type and its main variant.
5508
5509 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5510
5511 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5512 of the type.
5513 (ipa_set_ancestor_jf) Likewise.
5514 (check_stmt_for_type_change): Check that we work on main variant.
5515 (detect_type_change): Look into main variant.
5516 (compute_known_type_jump_func): Check that main variant has BINFO.
5517
5518 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5519
5520 * ipa-devirt.c (set_type_binfo): New function.
5521 (add_type_duplicate): Use it.
5522 (get_odr_type): Sanity check that binfos points to main variants.
5523 (get_class_context): Be sure the context's outer_type is main variant.
5524 (contains_type_p): Walk main variant.
5525 (get_polymorphic_call_info_for_decl): Set outer_type to be
5526 main variant.
5527 (get_polymorphic_call_info): Likewise.
5528 (possible_polymorphic_call_targets): Sanity check that we operate
5529 on main variant.
5530
5531 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5532
5533 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5534
5535 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5536
5537 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5538 accidental change due to wide-int branch merge.
5539
5540 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5541
5542 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5543 compressed debug support.
5544 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5545 * configure: Regenerate.
5546 * config.in: Regenerate.
5547 * common.opt (compressed_debug_sections): New enum.
5548 (gz, gz=): New options.
5549 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5550 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5551 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5552 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5553 LINK_COMPRESS_DEBUG_SPEC.
5554 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5555 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5556 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5557 (Debugging Options): Document -gz[=type].
5558
5559 2014-06-27 Martin Jambor <mjambor@suse.cz>
5560
5561 PR ipa/61160
5562 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5563 args_to_skip, use those from node instead. Copy args_to_skip and
5564 combined_args_to_skip from node to the new thunk.
5565 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5566 (cgraph_create_virtual_clone): Moved computation of
5567 combined_args_to_skip...
5568 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5569
5570 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5571
5572 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5573 redundant diagnostic machinary.
5574
5575 2014-06-27 Richard Biener <rguenther@suse.de>
5576
5577 * tree-ssa-math-opts.c (bswap_replace): Fix
5578 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5579
5580 2014-06-27 Martin Liska <mliska@suse.cz>
5581
5582 * gimple.h (gimple_location_safe): New function introduced.
5583 * cgraphunit.c (walk_polymorphic_call_targets): Usage
5584 of gimple_location_safe replaces gimple_location.
5585 (gimple_fold_call): Likewise.
5586 * ipa-devirt.c (ipa_devirt): Likewise.
5587 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5588 * ipa.c (walk_polymorphic_call_targets): Likewise.
5589 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5590
5591 2014-06-27 Jakub Jelinek <jakub@redhat.com>
5592
5593 PR tree-optimization/57233
5594 PR tree-optimization/61299
5595 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
5596 functions.
5597 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
5598 would be lowered to scalar shifts, check if corresponding
5599 shifts and vector BIT_IOR_EXPR are supported and don't lower
5600 or lower just to narrower vector type in that case.
5601 * expmed.c (expand_shift_1): Fix up handling of vector
5602 shifts and rotates.
5603
5604 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
5605
5606 PR target/61586
5607 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
5608
5609 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
5610
5611 * doc/invoke.texi (-fsemantic-interposition): Document.
5612 * common.opt (fsemantic-interposition): New flag.
5613 * varasm.c (decl_replaceable_p): Use it.
5614
5615 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5616
5617 PR target/61542
5618 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
5619 extraction other than index 3.
5620
5621 2014-06-26 Teresa Johnson <tejohnson@google.com>
5622
5623 * doc/invoke.texi: Fix typo.
5624 * dumpfile.c: Add support for documented -fdump-* options
5625 optimized/missed/note/optall.
5626
5627 2014-06-26 Martin Jambor <mjambor@suse.cz>
5628
5629 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
5630 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
5631 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
5632 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
5633 * opts.c (default_options_optimization): Set
5634 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
5635 * doc/invoke.texi (allow-load-data-races)
5636 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
5637 (allow-store-data-races): Document the new default.
5638
5639 2014-06-26 Martin Jambor <mjambor@suse.cz>
5640
5641 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
5642 renamed to ipa_impossible_devirt_target. Fix typo.
5643 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
5644 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
5645 ipa_impossible_devirt_target.
5646
5647 2014-06-26 Richard Biener <rguenther@suse.de>
5648
5649 PR tree-optimization/61607
5650 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
5651 explaining why we restrict copies on loop depth.
5652 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5653 on loop depth.
5654 (record_equivalences_from_phis): Instead add it here.
5655
5656 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
5657
5658 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
5659 (LTO_WRAPPER_OBJS): New variable.
5660 (lto-wrapper$(exeext)): Use it.
5661 * collect2.c: Include "collect-utils.h".
5662 (verbose, debug): Remove variables.
5663 (at_file_supplied): No longer static.
5664 (tool_name): New variable.
5665 (do_wait, fork_execute, maybe_unlink): Don't declare.
5666 (tool_cleanup): No longer static.
5667 (notice): Remove function.
5668 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
5669 fork_execute calls.
5670 (collect_wait, do_wait, collect_execute): Remove functions.
5671 (maybe_unlink): No longer static.
5672 * collect2.h (verbose, debug): Don't declare.
5673 (at_file_supplied): Declare.
5674 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
5675 changed.
5676 (collect_execute): Replace with implementation from collect2, plus a
5677 new arg use_atfile. All callers changed.
5678 (collect_wait): Replace with implementation from collect2.
5679 (maybe_unlink_file): Remove function.
5680 (fork_execute): Replace with implementation from collect2, plus a
5681 new arg use_atfile. All callers changed.
5682 (do_wait): Add call to utils_cleanup to the error path.
5683 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
5684 (tool_cleanup): Adjust declarations.
5685 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
5686 * tlink.c: Include "collect-utils.h".
5687 (tlink_execute): New arg use_atfile. All callers changed.
5688 (tlink_init, tlink_execute): Remove declarations.
5689
5690 * collect-utils.c (save_temps): New variable.
5691 (do_wait): Use it instead of debug. Use fatal_error.
5692 * collect-utils.h (save_temps): Declare.
5693 * collect2.c (verbose): Rename from vflag. All uses changed.
5694 (tool_cleanup): New function, copied from collect_atexit.
5695 (collect_atexit, handler): Just call it.
5696 * collect2.h (verbose): Declaration renamed from vflag.
5697 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
5698 debug.
5699
5700 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
5701 (lto-wrapper$(exeext)): Link with collect-utils.o.
5702 * collect-utils.c: New file.
5703 * collect-utils.h: New file.
5704 * lto-wrapper.c: Include "collect-utils.h".
5705 (args_name): Delete variable.
5706 (tool_name): New variable.
5707 (tool_cleanup): New function.
5708 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
5709 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
5710 (fork_execute): Remove functions.
5711
5712 2014-06-26 Nick Clifton <nickc@redhat.com>
5713
5714 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
5715
5716 * doc/extend.texi (Function Attributes): Fix typo in description
5717 of RX vector attribute.
5718
5719 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5720
5721 * config.gcc (supported_defaults): Error when passing either
5722 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
5723
5724 2014-06-26 Richard Biener <rguenther@suse.de>
5725
5726 * tree-ssa-dom.c (cprop_operand): Remove restriction on
5727 propagating volatile pointers.
5728
5729 2014-06-26 Richard Biener <rguenther@suse.de>
5730
5731 PR tree-optimization/61607
5732 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
5733 loop if we redirected its latch edge.
5734 (thread_block_1): Do not cancel loops prematurely.
5735
5736 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
5737
5738 * toplev.c (backend_init_target): Move init_emit_regs and
5739 init_regs to...
5740 (backend_init) ... here; skip ira_init_once and backend_init_target.
5741 (target_reinit) ... and here; clear
5742 this_target_rtl->lang_dependent_initialized.
5743 (lang_dependent_init_target): Clear
5744 this_target_rtl->lang_dependent_initialized;
5745 break out rtl initialization to ...
5746 (initialize_rtl): ... here; call also backend_init_target
5747 and ira_init_once.
5748 * toplev.h (initialize_rtl): New function.
5749 * function.c: Include toplev.h
5750 (init_function_start): Call initialize_rtl.
5751 * rtl.h (target_rtl): Add target_specific_initialized,
5752 lang_dependent_initialized.
5753
5754 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
5755 Jakub Jelinek <jakub@redhat.com>
5756
5757 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
5758
5759 2014-06-25 Tom de Vries <tom@codesourcery.com>
5760
5761 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
5762
5763 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5764
5765 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
5766 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
5767 Issue a strict overflow warning if appropriate.
5768
5769 2014-06-25 Martin Liska <mliska@suse.cz>
5770
5771 IPA REF refactoring
5772 * Makefile.in: Removed header file (ipa-ref-inline.h).
5773 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
5774 called.
5775 (cgraph_speculative_call_info): Likewise.
5776 (cgraph_for_node_thunks_and_aliases): Likewise.
5777 (cgraph_for_node_and_aliases): Likewise.
5778 (verify_cgraph_node): Likewise.
5779 * cgraph.h: Batch of IPA REF functions become member functions of
5780 symtab_node: add_reference, maybe_add_reference, clone_references,
5781 clone_referring, clone_reference, find_reference,
5782 remove_stmt_references, remove_all_references,
5783 remove_all_referring, dump_references, dump_referring,
5784 has_alias_p, iterate_reference, iterate_referring.
5785 * cgraphbuild.c (record_reference): New IPA REF function used.
5786 (record_type_list): Likewise.
5787 (record_eh_tables): Likewise.
5788 (mark_address): Likewise.
5789 (mark_load): Likewise.
5790 (mark_store): Likewise.
5791 (pass_build_cgraph_edges): Likewise.
5792 (rebuild_cgraph_edge): Likewise.
5793 (cgraph_rebuild_references): Likewise.
5794 (pass_remove_cgraph_callee_edges): Likewise.
5795 * cgraphclones.c (cgraph_clone_node): Likewise.
5796 (cgraph_create_virtual_clone): Likewise.
5797 (cgraph_materialize_clone): Likewise.
5798 (cgraph_materialize_all_clones): Likewise.
5799 * cgraphunit.c (cgraph_reset_node): Likewise.
5800 (cgraph_reset_node): Likewise.
5801 (analyze_function): Likewise.
5802 (assemble_thunks_and_aliases): Likewise.
5803 (expand_function): Likewise.
5804 * ipa-comdats.c (propagate_comdat_group): Likewise.
5805 (enqueue_references): Likewise.
5806 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
5807 (create_specialized_node): Likewise.
5808 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
5809 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
5810 * ipa-inline.c (reset_edge_caches): Likewise.
5811 (update_caller_keys): Likewise.
5812 (execute): Likewise.
5813 * ipa-prop.c (remove_described_reference): Likewise.
5814 (propagate_controlled_uses): Likewise.
5815 (ipa_edge_duplication_hook): Likewise.
5816 (ipa_modify_call_arguments): Likewise.
5817 * ipa-pure-const.c (propagate_pure_const): Likewise.
5818 * ipa-ref-inline.h: Header file removed, functions moved
5819 to symtab_node class.
5820 * ipa-ref.c (remove_reference): New class member function.
5821 (cannot_lead_to_return): New class member function.
5822 (referring_ref_list): Likewise.
5823 (referred_ref_list): Likewise.
5824 Rest of functions moved to symtab_node class.
5825 * ipa-ref.h: New member functions remove_reference,
5826 cannot_lead_to_return, referring_ref_list, referred_ref_list added
5827 to ipa_ref class.
5828 ipa_ref_list class has new member functions: first_reference,
5829 first_referring, clear, nreferences.
5830 * ipa-reference.c (analyze_function): New IPA REF function used.
5831 (write_node_summary_p): Likewise.
5832 (ipa_reference_write_optimization_summary): Likewise.
5833 * ipa-split.c (split_function): Likewise.
5834 * ipa-utils.c (ipa_reverse_postorder): Likewise.
5835 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
5836 (function_and_variable_visibility): Likewise.
5837 * ipa.c (has_addr_references_p): Likewise.
5838 (process_references): Argument type changed.
5839 (symtab_remove_unreachable_nodes): New IPA REF function used.
5840 (process_references): Likewise.
5841 (set_writeonly_bit): Likewise.
5842 * lto-cgraph.c: Implementation of new symtab_node member functions
5843 that uses new IPA REF functions.
5844 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
5845 function used.
5846 * lto-streamer-out.c (output_symbol_p): Likewise.
5847 * lto-streamer.h (referenced_from_this_partition_p): Argument type
5848 changed.
5849 * symtab.c: Implementation of new IPA REF API.
5850 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
5851 (ipa_tm_create_version): Likewise.
5852 (ipa_tm_execute): Likewise.
5853 * tree-emutls.c (gen_emutls_addr): Likewise.
5854 * tree-inline.c (copy_bb): Likewise.
5855 (delete_unreachable_blocks_update_callgraph): Likewise.
5856 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
5857 (varpool_for_node_and_aliases): Likewise.
5858
5859 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5860
5861 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
5862
5863 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
5864
5865 PR bootstrap/61598
5866 * fold-const.c (fold_checksum_tree): Use a hash_table of const
5867 tree_node * instead of tree_node *.
5868 (fold): Adjust.
5869 (print_fold_checksum): Likewise.
5870 (fold_check_failed): Likewise.
5871 (debug_fold_checksum): Likewise.
5872 (fold_build1_stat_loc): Likewise.
5873 (fold_build2_stat_loc): Likewise.
5874 (fold_build3_stat_loc): Likewise.
5875 (fold_build_call_array_loc): Likewise.
5876
5877 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
5878
5879 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
5880 implementation with call to...
5881 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
5882 function.
5883 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
5884 Declare.
5885
5886 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
5887
5888 PR tree-optimization/57742
5889 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
5890 after replacing the statement.
5891
5892 2014-06-25 Nick Clifton <nickc@redhat.com>
5893
5894 * config/v850/v850.c (GHS_default_section_names): Change to const
5895 char * type.
5896 (GHS_current_section_names): Likewise.
5897 (v850_insert_attributes): Do not build strings, just assign the
5898 names directly. Change the type of 'chosen_section' to const
5899 char*.
5900 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
5901 directly to the array entry.
5902 * config/v850/v850.h (GHS_default_section_names): Change to const
5903 char * type.
5904 (GHS_current_section_names): Likewise.
5905
5906 2014-06-25 Jakub Jelinek <jakub@redhat.com>
5907
5908 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
5909 (LANG_HOOKS_DECLS): Add it.
5910 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
5911 has correct type.
5912 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
5913 * langhooks.h (struct lang_hooks_for_decls): Add
5914 omp_clause_linear_ctor hook.
5915 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
5916 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
5917 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
5918 combined simd loop use omp_clause_linear_ctor hook.
5919
5920 2014-06-24 Cong Hou <congh@google.com>
5921
5922 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
5923 pattern recognition.
5924 (type_conversion_p): PROMOTION is true if it's a type promotion
5925 conversion, and false otherwise. Return true if the given expression
5926 is a type conversion one.
5927 * tree-vectorizer.h: Adjust the number of patterns.
5928 * tree.def: Add SAD_EXPR.
5929 * optabs.def: Add sad_optab.
5930 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
5931 * expr.c (expand_expr_real_2): Likewise.
5932 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5933 * gimple.c (get_gimple_rhs_num_ops): Likewise.
5934 * optabs.c (optab_for_tree_code): Likewise.
5935 * tree-cfg.c (estimate_operator_cost): Likewise.
5936 * tree-ssa-operands.c (get_expr_operands): Likewise.
5937 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
5938 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
5939 * doc/generic.texi: Add document for SAD_EXPR.
5940 * doc/md.texi: Add document for ssad and usad.
5941
5942 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5943
5944 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
5945 qualification in cast.
5946
5947 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
5948
5949 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
5950 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
5951 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
5952 (tree_function_decl): ... here.
5953 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
5954 streaming of vindex to ...
5955 (write_ts_function_decl_tree_pointers): ... here.
5956 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
5957 Do not stream DECL_VINDEX.
5958 (lto_input_ts_function_decl_tree_pointers): Stream it here.
5959
5960 2014-06-24 Catherine Moore <clm@codesourcery.com>
5961 Sandra Loosemore <sandra@codesourcery.com>
5962
5963 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
5964 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
5965 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
5966
5967 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5968
5969 * doc/invoke.texi (Warning Options): Remove duplicated
5970 -Wmaybe-uninitialized.
5971
5972 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
5973
5974 PR tree-optimization/57742
5975 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
5976 (handle_builtin_malloc, handle_builtin_memset): New functions.
5977 (strlen_optimize_stmt): Call them.
5978 * passes.def: Move strlen after loop+dom but before vrp.
5979
5980 2014-06-24 Jakub Jelinek <jakub@redhat.com>
5981
5982 PR target/61570
5983 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
5984 model family 6 CPU with has_longmode never use a CPU without
5985 64-bit support.
5986
5987 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
5988
5989 PR target/61570
5990 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
5991 the last change.
5992
5993 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
5994
5995 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
5996 * dominance.c (iterate_fix_dominators): Use hash_map instead of
5997 pointer_map.
5998 * hash-map.h: New file.
5999 * ipa-comdats.c: Use hash_map instead of pointer_map.
6000 * ipa.c: Likewise.
6001 * lto-section-out.c: Adjust.
6002 * lto-streamer.h: Replace pointer_map with hash_map.
6003 * symtab.c (verify_symtab): Likewise.
6004 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6005 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6006 * tree-streamer.h: Likewise.
6007 * tree-streamer.c: Adjust.
6008 * pointer-set.h: Remove pointer_map.
6009
6010 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6011
6012 * hash-table.h: Add a template arg to choose between storing values
6013 and storing pointers to values, and then provide partial
6014 specializations for both.
6015 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6016 should store, not the type values should point to.
6017 * tree-into-ssa.c (var_info_hasher): Likewise.
6018 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6019 * tree-complex.c: Adjust.
6020 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6021 table instead of int_tree_map *.
6022 * tree-parloops.c: Adjust.
6023 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6024 type is being stored.
6025 * tree-vectorizer.c: Adjust.
6026
6027 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6028
6029 * hash-table.h: Remove a layer of indirection from hash_table so that
6030 it contains the hash table's data instead of a pointer to the data.
6031 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6032 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6033 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6034 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6035 fold-const.c, gcse.c, ggc-common.c,
6036 gimple-ssa-strength-reduction.c, gimplify.c,
6037 graphite-clast-to-gimple.c, graphite-dependences.c,
6038 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6039 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6040 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6041 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6042 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6043 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6044 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6045 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6046 tree-ssa-live.c, tree-ssa-loop-im.c,
6047 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6048 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6049 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6050 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6051 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6052 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6053 vtable-verify.c, vtable-verify.h: Adjust.
6054
6055 2014-06-24 Richard Biener <rguenther@suse.de>
6056
6057 PR tree-optimization/61572
6058 * tree-ssa-sink.c (statement_sink_location): Do not sink
6059 loads from hard registers.
6060
6061 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6062
6063 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6064 not mentioned in clauses use private clause if the iterator is
6065 declared in #pragma omp for simd, and when adding lastprivate
6066 instead, add it to the outer #pragma omp for too. Diagnose
6067 if the variable is private in outer context. For simd collapse > 1
6068 loops, replace all iterators with temporaries.
6069 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6070 same even in collapse > 1 loops.
6071
6072 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6073 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6074 non-NULL.
6075 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6076 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6077 non-NULL.
6078 (gimplify_adjust_omp_clauses): Likewise.
6079 * omp-low.c (lower_rec_simd_input_clauses,
6080 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6081 safelen the same as safelen(1).
6082 * tree-nested.c (convert_nonlocal_omp_clauses,
6083 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6084 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6085 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6086 Fixup handling of GIMPLE_OMP_TARGET.
6087 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6088 GIMPLE_OMP_TARGET.
6089
6090 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6091
6092 PR tree-optimization/61554
6093 * tree-ssa-propagate.c: Include "bitmap.h".
6094 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6095 properly update constructor/destructor.
6096 (substitute_and_fold_dom_walker::before_dom_children):
6097 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6098 need_eh_cleaup instead.
6099 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6100 need_eh_cleanup.
6101
6102 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6103
6104 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6105 * tree-pass.h (make_pass_ipa_single_use): New pass.
6106 * cgraph.h (used_by_single_function): New flag.
6107 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6108 Stream it.
6109 * passes.def (pass_ipa_single_use): Scedule.
6110 * ipa.c (BOTTOM): New macro.
6111 (meet): New function
6112 (propagate_single_user): New function.
6113 (ipa_single_use): New function.
6114 (pass_data_ipa_single_use): New pass.
6115 (pass_ipa_single_use): New pass.
6116 (pass_ipa_single_use::gate): New gate.
6117 (make_pass_ipa_single_use): New function.
6118
6119 2014-06-23 Kai Tietz <ktietz@redhat.com>
6120
6121 PR target/39284
6122 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6123 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6124
6125 2014-06-23 Richard Biener <rguenther@suse.de>
6126
6127 * tree-ssa-loop.c (gate_loop): New function.
6128 (pass_tree_loop::gate): Call it.
6129 (pass_data_tree_no_loop, pass_tree_no_loop,
6130 make_pass_tree_no_loop): New.
6131 * tree-vectorizer.c: Include tree-scalar-evolution.c
6132 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6133 required.
6134 (pass_slp_vectorize::clone): New method.
6135 * timevar.def (TV_TREE_NOLOOP): New.
6136 * tree-pass.h (make_pass_tree_no_loop): Declare.
6137 * passes.def (pass_tree_no_loop): New pass group with
6138 SLP vectorizer.
6139
6140 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6141
6142 PR target/61570
6143 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6144 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6145
6146 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6147
6148 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6149 "yes" where needed.
6150
6151 2014-06-23 Alan Modra <amodra@gmail.com>
6152
6153 PR bootstrap/61583
6154 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6155 to zero on debug statements.
6156
6157 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6158
6159 PR target/60825
6160 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6161 Ignore third operand if present by marking qualifier_internal.
6162
6163 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6164
6165 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6166 vector extension.
6167 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6168 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6169 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6170 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6171 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6172 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6173 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6174 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6175 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6176 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6177 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6178 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6179 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6180 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6181 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6182 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6183 logic in GCC vector extensions
6184
6185 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6186 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6187 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6188 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6189 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6190 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6191 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6192 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6193 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6194 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6195
6196 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6197
6198 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6199 extensions.
6200
6201 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6202 (vget_low_s64): Use __GET_LOW macro.
6203 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6204 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6205 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6206 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6207 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6208
6209 (vcombine_s64): Use GCC vector extensions; remove cast.
6210 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6211 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6212 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6213 Fix type signature; remove cast.
6214
6215 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6216
6217 PR target/60825
6218 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6219 V1DFmode.
6220 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6221 add V1DFmode
6222 (BUILTIN_VD1): New.
6223 (BUILTIN_VD_RE): Remove.
6224 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6225 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6226 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6227 variant but not df.
6228 (vreinterpretv1df*, vreinterpret*v1df): New.
6229 (vreinterpretdf*, vreinterpret*df): Remove.
6230 * config/aarch64/aarch64-simd.md (aarch64_create,
6231 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6232 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6233 (VD1): New.
6234 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6235 (vcreate_f64): Remove cast, use v1df builtin.
6236 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6237 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6238 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6239 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6240 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6241 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6242 add range check using __builtin_aarch64_im_lane_boundsi.
6243 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6244 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6245 type signature, use gcc vector extensions.
6246 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6247 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6248 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6249 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6250 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6251 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6252 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6253 vreinterpret_u64_f64): Use v1df builtin not df.
6254
6255 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6256
6257 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6258 vector registers.
6259
6260 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6261
6262 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6263 priority directly.
6264
6265 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6266
6267 * loop-invariant.c (pre_check_invariant_p): New function.
6268 (find_invariant_insn): Call pre_check_invariant_p.
6269
6270 2014-06-22 Richard Henderson <rth@redhat.com>
6271
6272 PR target/61565
6273 * compare-elim.c (struct comparison): Add eh_note.
6274 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6275 a redundant comparison in a different EH region. Purge EH edges if
6276 necessary.
6277
6278 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6279
6280 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6281 (var_shift): Use it.
6282 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6283 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6284 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6285 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6286 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6287 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6288 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6289 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6290 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6291 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6292 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6293 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6294 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6295 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6296 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6297 *rotldi3_internal15be): Use the new attribute. Merge register and
6298 integer alternatives.
6299
6300 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6301
6302 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6303 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6304 split, *ashrdi3_internal3 and split): Delete, merge into...
6305 (ashr<mode>3): New expander.
6306 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6307 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6308
6309 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6310
6311 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6312 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6313 *rotldi3_internal3 and split): Delete, merge into...
6314 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6315 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6316 Use "rotlw" extended mnemonic.
6317
6318 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6319
6320 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6321 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6322 and split, *ashldi3_internal3 and split): Delete, merge into...
6323 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6324 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6325
6326 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6327
6328 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6329 (lshrsi3, two anonymous define_insns and define_splits,
6330 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6331 *lshrdi3_internal3 and split): Delete, merge into...
6332 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6333 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6334
6335 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6336
6337 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6338 Remove "O" alternative.
6339
6340 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6341
6342 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6343 (mips_move_from_gpr_cost): Likewise.
6344 (mips_register_move_cost): Update accordingly.
6345 (mips_secondary_reload_class): Remove name of in_p.
6346
6347 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6348
6349 PR target/61503
6350 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6351 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6352
6353 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6354
6355 * config/nios2/nios2.c: Include "builtins.h".
6356
6357 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6358
6359 * cgraph.h (tls_model_names): New variable.
6360 * print-tree.c (print_node): Simplify.
6361 * varpool.c (tls_model_names): New variable.
6362 (dump_varpool_node): Output tls model.
6363
6364 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6365
6366 * ipa-visibility.c (function_and_variable_visibility): Disable
6367 temporarily local aliases for some targets.
6368
6369 2014-06-20 Marek Polacek <polacek@redhat.com>
6370
6371 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6372 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6373 into SANITIZE_UNDEFINED.
6374 * doc/invoke.texi: Describe -fsanitize=bounds.
6375 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6376 functions created in the FEs.
6377 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6378 (expand_UBSAN_BOUNDS): New function.
6379 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6380 * internal-fn.h: Don't define internal functions here.
6381 * opts.c (common_handle_option): Add -fsanitize=bounds.
6382 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6383 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6384 * tree-core.h: Define internal functions here.
6385 (struct tree_base): Add ifn field.
6386 * tree-pretty-print.c: Include "internal-fn.h".
6387 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6388 * tree.c (get_callee_fndecl): Likewise.
6389 (build_call_expr_internal_loc): New function.
6390 * tree.def (CALL_EXPR): Update description.
6391 * tree.h (CALL_EXPR_IFN): Define.
6392 (build_call_expr_internal_loc): Declare.
6393 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6394 types.
6395 (ubsan_type_descriptor): Change bool parameter to enum
6396 ubsan_print_style. Adjust the code. Add handling of
6397 UBSAN_PRINT_ARRAY.
6398 (ubsan_expand_bounds_ifn): New function.
6399 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6400 (ubsan_build_overflow_builtin): Likewise.
6401 (instrument_bool_enum_load): Likewise.
6402 (ubsan_instrument_float_cast): Likewise.
6403 * ubsan.h (enum ubsan_print_style): New enum.
6404 (ubsan_expand_bounds_ifn): Declare.
6405 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6406
6407 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6408
6409 * config/rs6000/rs6000.md: Append `DONE' to preparation
6410 statements of `bswap' pattern splitters.
6411
6412 2014-06-20 Tom de Vries <tom@codesourcery.com>
6413
6414 * target.def (call_fusage_contains_non_callee_clobbers): Update
6415 definition.
6416 * doc/tm.texi: Regenerate.
6417
6418 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6419 Max Ostapenko <m.ostapenko@partner.samsung.com>
6420
6421 PR sanitizer/61547
6422 * asan.c (instrument_strlen_call): Fixed instrumentation of
6423 trailing byte.
6424
6425 2014-06-20 Martin Jambor <mjambor@suse.cz>
6426
6427 PR ipa/61540
6428 * ipa-prop.c (impossible_devirt_target): New function.
6429 (try_make_edge_direct_virtual_call): Use it, also instead of
6430 asserting.
6431
6432 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6433 Max Ostapenko <m.ostapenko@partner.samsung.com>
6434
6435 PR sanitizer/61530
6436 * asan.c (build_check_stmt): Add condition.
6437
6438 2014-06-20 Martin Jambor <mjambor@suse.cz>
6439
6440 PR ipa/61211
6441 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6442 expanded clones.
6443
6444 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6445
6446 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6447 Update comments.
6448 (VCONQ): Make comment more helpful.
6449 (VCON): Delete.
6450 * config/aarch64/aarch64-simd.md
6451 (aarch64_sqdmulh_lane<mode>):
6452 Use VCOND for operands 2. Update lane checking and flipping logic.
6453 (aarch64_sqrdmulh_lane<mode>): Likewise.
6454 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6455 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6456 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6457 attribute of operand 3 to VCOND.
6458 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6459 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6460 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6461 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6462 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6463 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6464 define_insn.
6465 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6466 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6467 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6468 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6469 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6470 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6471 operand to VCOND. Update lane flipping and bounds checking logic.
6472 (aarch64_sqdmlal2_lane<mode>): Likewise.
6473 (aarch64_sqdmlsl_lane<mode>): Likewise.
6474 (aarch64_sqdmull_lane<mode>): Likewise.
6475 (aarch64_sqdmull2_lane<mode>): Likewise.
6476 (aarch64_sqdmlal_laneq<mode>):
6477 Replace VCON usage with VCONQ.
6478 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6479 (aarch64_sqdmlal2_laneq<mode>): Emit
6480 aarch64_sqdmlal2_laneq<mode>_internal insn.
6481 Replace VCON with VCONQ.
6482 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6483 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6484 (aarch64_sqdmull_laneq<mode>): Emit
6485 aarch64_sqdmull_laneq<mode>_internal insn.
6486 Replace VCON with VCONQ.
6487 (aarch64_sqdmull2_laneq<mode>): Emit
6488 aarch64_sqdmull2_laneq<mode>_internal insn.
6489 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6490 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6491 of 3rd argument to int16x4_t.
6492 (vqdmlalh_lane_s16): Likewise.
6493 (vqdmlslh_lane_s16): Likewise.
6494 (vqdmull_high_lane_s16): Likewise.
6495 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6496 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6497 (vqdmlsl_lane_s16): Likewise.
6498 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6499 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6500 (vqdmlals_lane_s32): Likewise.
6501 (vqdmlsls_lane_s32): Likewise.
6502 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6503 (vqdmulls_lane_s32): Likewise.
6504 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6505 (vqdmlsl_lane_s32): Likewise.
6506 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6507 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6508 (vqrdmulhh_lane_s16): Likewise.
6509 (vqdmlsl_high_lane_s16): Likewise.
6510 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6511 (vqdmlsl_high_lane_s32): Likewise.
6512 (vqrdmulhs_lane_s32): Likewise.
6513
6514 2014-06-20 Tom de Vries <tom@codesourcery.com>
6515
6516 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6517 get_call_reg_set_usage.
6518
6519 2014-06-20 Tom de Vries <tom@codesourcery.com>
6520
6521 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6522 it contains all call_used_regs.
6523
6524 2014-06-20 Tom de Vries <tom@codesourcery.com>
6525
6526 * final.c (collect_fn_hard_reg_usage): Add and use variable
6527 function_used_regs.
6528
6529 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6530
6531 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6532 (set_init_priority, get_init_priority, set_fini_priority,
6533 get_fini_priority): New methods.
6534 * tree.c (init_priority_for_decl): Remove.
6535 (init_ttree): Do not initialize init priority.
6536 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6537 (decl_priority_info): Remove.
6538 (decl_init_priority_insert): Rewrite.
6539 (decl_fini_priority_insert): Rewrite.
6540 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6541 tree_priority_map_marked_p): Remove.
6542 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6543 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6544 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6545 not output priorities.
6546 (pack_ts_function_decl_value_fields): Likewise.
6547 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6548 not input priorities.
6549 (unpack_ts_function_decl_value_fields): Likewise.
6550 * symtab.c (symbol_priority_map): Declare.
6551 (init_priority_hash): Declare.
6552 (symtab_unregister_node): Unregister from priority hash, too.
6553 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6554 New methods.
6555 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6556 (symbol_priority_info): New function.
6557 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6558 New methods.
6559 * tree-core.h (tree_priority_map): Remove.
6560
6561 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6562
6563 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6564 0xff to uint64_t before shifting it up.
6565
6566 2014-06-20 Julian Brown <julian@codesourcery.com>
6567 Chung-Lin Tang <cltang@codesourcery.com>
6568
6569 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6570 TARGET_THUMB1_ONLY. Add comments.
6571
6572 2014-06-19 Tom de Vries <tom@codesourcery.com>
6573
6574 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6575 return type to void.
6576 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6577
6578 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6579
6580 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6581 as "move", from depends_on.
6582
6583 2014-06-19 Terry Guo <terry.guo@arm.com>
6584
6585 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
6586 stage.
6587
6588 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
6589
6590 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
6591 Remove cr5.
6592 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
6593
6594 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
6595
6596 PR target/61550
6597 * config/sh/sh.c (prepare_move_operands): Don't process TLS
6598 addresses here if reload in progress or completed.
6599
6600 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6601
6602 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
6603 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
6604 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
6605 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
6606 (mips_register_priority): New function that implements the target
6607 hook TARGET_REGISTER_PRIORITY.
6608 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
6609 (mips_lra_p): Likewise for TARGET_LRA_P.
6610 (TARGET_REGISTER_PRIORITY): Define macro.
6611 (TARGET_SPILL_CLASS): Likewise.
6612 (TARGET_LRA_P): Likewise.
6613 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
6614 classes.
6615 (REG_CLASS_NAMES): Likewise.
6616 (REG_CLASS_CONTENTS): Likewise.
6617 (BASE_REG_CLASS): Use M16_SP_REGS.
6618 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
6619 New set attribute to enable alternatives depending on the register
6620 allocator used.
6621 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
6622 (*lea64): Disable pattern for MIPS16.
6623 * config/mips/mips.opt (mlra): New option.
6624
6625 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
6626
6627 * lra-constraints.c (base_to_reg): New function.
6628 (process_address): Use new function.
6629
6630 2014-06-18 Tom de Vries <tom@codesourcery.com>
6631
6632 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
6633 * config/aarch64/aarch64.c
6634 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
6635 (aarch64_emit_call_insn): New function.
6636 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
6637 of emit_call_insn.
6638 * config/aarch64/aarch64.md (define_expand "call_internal")
6639 (define_expand "call_value_internal", define_expand "sibcall_internal")
6640 (define_expand "sibcall_value_internal"): New.
6641 (define_expand "call", define_expand "call_value")
6642 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
6643 expand variant and aarch64_emit_call_insn.
6644
6645 2014-06-18 Radovan Obradovic <robradovic@mips.com>
6646 Tom de Vries <tom@codesourcery.com>
6647
6648 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
6649 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
6650 Redefine to true.
6651 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
6652 clobbers to CALL_INSN_FUNCTION_USAGE.
6653 (define_expand "sibcall_internal")
6654 (define_expand "sibcall_value_internal"): New.
6655 (define_expand "call", define_expand "call_value"): Add argument to
6656 arm_emit_call_insn.
6657 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
6658 (define_expand "sibcall_value"): Use sibcall_value_internal and
6659 arm_emit_call_insn.
6660
6661 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6662
6663 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
6664
6665 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6666
6667 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
6668 __udivmoddi4.
6669
6670 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6671
6672 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
6673 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
6674 annotations. Fix DWARF information.
6675
6676 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6677
6678 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
6679 __udivmoddi4, and fixups for negative operands.
6680
6681 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6682
6683 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
6684
6685 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6686
6687 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
6688 to __udivmoddi4.
6689
6690 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6691
6692 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
6693 manipulation.
6694
6695 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6696
6697 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
6698 describing register usage on function entry and exit.
6699
6700 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6701
6702 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
6703 (__aeabi_ldivmod): Fix whitespace.
6704
6705 2014-06-18 Andreas Schwab <schwab@suse.de>
6706
6707 * doc/md.texi (Standard Names): Use @itemx for grouped items.
6708 Remove blank line after @item.
6709
6710 2014-06-18 Richard Henderson <rth@redhat.com>
6711
6712 PR target/61545
6713 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
6714
6715 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
6716
6717 * config/arm/arm.c (neon_vector_mem_operand): Allow register
6718 POST_MODIFY for neon loads and stores.
6719 (arm_print_operand): Output post-index register for neon loads and
6720 stores.
6721
6722 2014-06-18 Richard Biener <rguenther@suse.de>
6723
6724 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
6725
6726 2014-06-18 Richard Biener <rguenther@suse.de>
6727
6728 * tree-pass.h (make_pass_dce_loop): Remove.
6729 * passes.def: Replace pass_dce_loop with pass_dce.
6730 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
6731 changed free niter estimates and reset the scev cache.
6732 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
6733 make_pass_dce_loop): Remove.
6734 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
6735 (fini_copy_prop): Return whether something changed. Always
6736 let substitute_and_fold perform DCE and free niter estimates
6737 and reset the scev cache if so.
6738 (execute_copy_prop): If sth changed schedule cleanup-cfg.
6739 (pass_data_copy_prop): Do not unconditionally schedule
6740 cleanup-cfg or update-ssa.
6741
6742 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6743
6744 PR tree-optimization/61518
6745 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
6746 reduction var is used in reduction stmt or phi-function only.
6747
6748 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6749
6750 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
6751
6752 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6753
6754 PR tree-optimization/61517
6755 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
6756 whose rhs's first tree is the source expression instead of the
6757 expression itself.
6758 (find_bswap_or_nop): Likewise.
6759 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
6760 gimple stmt whose rhs's first tree is the source. In the memory source
6761 case, move the stmt to be replaced close to one of the original load to
6762 avoid the problem of a store between the load and the stmt's original
6763 location.
6764 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
6765 signature.
6766
6767 2014-06-18 Andreas Schwab <schwab@suse.de>
6768
6769 PR rtl-optimization/54555
6770 * postreload.c (move2add_use_add2_insn): Substitute
6771 STRICT_LOW_PART only if it is cheaper.
6772
6773 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
6774
6775 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
6776 Do not use unspec as call operand. Use memory_operand instead of
6777 memory_nox32_operand and add "m" operand constraint. Disable
6778 pattern for TARGET_X32.
6779 (*sibcall_pop_memory): Ditto.
6780 (*sibcall_value_memory): Ditto.
6781 (*sibcall_value_pop_memory): Ditto.
6782 (sibcall peepholes): Merge SImode and DImode patterns using
6783 W mode iterator. Use memory_operand instead of memory_nox32_operand.
6784 Disable pattern for TARGET_X32. Check if eliminated register is
6785 really dead after call insn. Generate call RTX without unspec operand.
6786 (sibcall_value peepholes): Ditto.
6787 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
6788 instead of memory_nox32_operand. Check if eliminated register is
6789 really dead after call insn. Generate call RTX without unspec operand.
6790 (sibcall_value_pop peepholes): Ditto.
6791 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
6792
6793 2014-06-18 Terry Guo <terry.guo@arm.com>
6794
6795 PR target/61544
6796 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
6797 reach the head.
6798
6799 2014-06-18 Olivier Hainque <hainque@adacore.com>
6800
6801 * tree-core.h (tree_block): Add an "end_locus" field, allowing
6802 memorization of the end of block source location.
6803 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
6804 * gimplify.c (gimplify_bind_expr): Propagate the block start and
6805 end source location info we have on the block entry/exit code we
6806 generate.
6807
6808 2014-06-18 Richard Biener <rguenther@suse.de>
6809
6810 * common.opt (fssa-phiopt): New option.
6811 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
6812 but not with -Og.
6813 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
6814 * doc/invoke.texi (-fssa-phiopt): Document.
6815
6816 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6817
6818 * genattrtab.c (n_bypassed): New variable.
6819 (process_bypasses): Initialise n_bypassed.
6820 Count number of bypassed reservations.
6821 (make_automaton_attrs): Allocate space for bypassed reservations
6822 rather than number of bypasses.
6823
6824 2014-06-18 Richard Biener <rguenther@suse.de>
6825
6826 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
6827 we propagated anything.
6828 (substitute_and_fold_dom_walker::before_dom_children): Something
6829 changed if we propagated into PHI arguments.
6830 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
6831 we removed a stmt.
6832
6833 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
6834
6835 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
6836 vector case.
6837 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
6838 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
6839 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
6840 Introduces alternative way of loads group permutaions.
6841 (vect_transform_grouped_load): Try alternative way of permutations.
6842
6843 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6844
6845 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
6846 changed in ORT_TARGET region, don't jump to do_outer.
6847 (struct gimplify_adjust_omp_clauses_data): New type.
6848 (gimplify_adjust_omp_clauses_1): Adjust for data being
6849 a struct gimplify_adjust_omp_clauses_data pointer instead
6850 of tree *. Pass pre_p as a new argument to
6851 lang_hooks.decls.omp_finish_clause hook.
6852 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
6853 splay_tree_foreach to pass both list_p and pre_p.
6854 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
6855 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
6856 gimplify_adjust_omp_clauses callers.
6857 * langhooks.c (lhd_omp_finish_clause): New function.
6858 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
6859 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
6860 * langhooks.h (struct lang_hooks_for_decls): Add a new
6861 gimple_seq * argument to omp_finish_clause hook.
6862 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
6863 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
6864 (scan_omp_parallel, lower_omp_for): When adding
6865 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
6866 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
6867 * tree-nested.c (convert_nonlocal_omp_clauses,
6868 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
6869 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
6870
6871 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
6872
6873 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
6874 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
6875
6876 2014-06-17 Xinliang David Li <davidxl@google.com>
6877
6878 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
6879 * passes.c (pass_init_dump_file): Do not set initialize
6880 flag to false unconditionally.
6881
6882 2014-06-17 Richard Biener <rguenther@suse.de>
6883
6884 * genopinit.c (main): Use vec<>::qsort method.
6885 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6886 Likewise.
6887 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
6888
6889 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
6890
6891 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
6892 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
6893 (mips_move_to_gpr_cost): Remove ST_REGS case.
6894 (mips_move_from_gpr_cost): Likewise.
6895 (mips_register_move_cost): Likewise.
6896 (mips_secondary_reload_class): Likewise.
6897
6898 2014-06-17 Richard Biener <rguenther@suse.de>
6899
6900 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
6901 (pass_all_optimizations): Move 3rd copy-prop pass from after
6902 fre to before ifcombine/phiopt.
6903
6904 2014-06-17 Richard Biener <rguenther@suse.de>
6905
6906 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
6907 and allow all blocks to be forwarders.
6908
6909 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
6910
6911 PR target/61483
6912 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
6913 variable 'size'; calculate 'size' right in the front; use
6914 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
6915 pcum->aapcs_stack_words.
6916
6917 2014-06-17 Nick Clifton <nickc@redhat.com>
6918
6919 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
6920 (umulhi3, mulsidi3, umulsidi3): Likewise.
6921
6922 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
6923
6924 PR middle-end/61508
6925 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
6926 check for section name.
6927
6928 2014-06-17 Richard Biener <rguenther@suse.de>
6929
6930 * tree-ssa-propagate.c: Include domwalk.h.
6931 (substitute_and_fold): Outline main worker into a domwalker ...
6932 (substitute_and_fold_dom_walker::before_dom_children): ... here.
6933 Schedule stmts we can fully propagate for removal. Remove
6934 poor-mans DCE.
6935 (substitute_and_fold): Apply a dominator walk to perform
6936 substitution. Process stmts scheduled for removal here.
6937
6938 2014-06-17 Richard Biener <rguenther@suse.de>
6939
6940 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
6941 of PHI node moving.
6942
6943 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
6944
6945 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
6946 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
6947 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
6948 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
6949 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
6950 TARGET_HARD_FLOAT.
6951 (get_fpscr) : Likewise.
6952
6953 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6954
6955 PR rtl-optimization/61325
6956 * lra-constraints.c (valid_address_p): Add forward declaration.
6957 (simplify_operand_subreg): Check address validity before and after
6958 alter_reg of memory subreg.
6959
6960 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
6961
6962 * config/i386/i386.c (decide_alg): Correctly handle
6963 maximum size of stringop algorithm.
6964
6965 2014-06-16 Yury Gribov <y.gribov@samsung.com>
6966
6967 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
6968
6969 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
6970
6971 PR rtl-optimization/61522
6972 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
6973
6974 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
6975
6976 Revert:
6977 * symtab.c (symtab_node::reset_section): New method.
6978 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
6979 for localization.
6980 * cgraph.h (reset_section): Declare.
6981 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
6982 do not consider comdat locals.
6983 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
6984 for new symbol.
6985 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
6986 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
6987 reset sections of symbols dragged out of the comdats.
6988 (function_and_variable_visibility): Reset sections of
6989 localized symbols.
6990
6991 2014-06-16 Richard Biener <rguenther@suse.de>
6992
6993 PR tree-optimization/61482
6994 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
6995 [-INF(OVF), +INF(OVF)] range.
6996
6997 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6998
6999 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7000 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7001 handling 32-bit multiplication.
7002
7003 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7004
7005 PR middle-end/61430
7006 * lra-lives.c (process_bb_lives): Skip creating copy during
7007 insn scan when src/dest has constrained to same regno.
7008
7009 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7010
7011 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7012 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7013
7014 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7015
7016 * asan.c (check_func): New function.
7017 (maybe_create_ssa_name): Likewise.
7018 (build_check_stmt_with_calls): Likewise.
7019 (use_calls_p): Likewise.
7020 (report_error_func): Change interface.
7021 (build_check_stmt): Allow non-integer lengths; add support
7022 for new parameter.
7023 (asan_instrument): Likewise.
7024 (instrument_mem_region_access): Moved code to build_check_stmt.
7025 (instrument_derefs): Likewise.
7026 (instrument_strlen_call): Likewise.
7027 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7028 * doc/invoke.texi: Describe new parameter.
7029 * params.def: Define new parameter.
7030 * params.h: Likewise.
7031 * sanitizer.def: Describe new builtins.
7032
7033 2014-06-16 Richard Biener <rguenther@suse.de>
7034
7035 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7036 Make all defs available at the end.
7037 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7038
7039 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7040
7041 PR plugins/45078
7042 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7043
7044 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7045
7046 PR bootstrap/61516
7047 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7048 initialization. Replace remaining use of uid.
7049
7050 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7051
7052 * c-family/c-common.c (handle_tls_model_attribute): Use
7053 set_decl_tls_model.
7054 * c-family/c-common.c (handle_tls_model_attribute): Use
7055 set_decl_tls_model.
7056 * cgraph.h (struct varpool_node): Add tls_model.
7057 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7058 * tree.h (DECL_TLS_MODEL): Update.
7059 (DECL_THREAD_LOCAL_P): Check that variable is static.
7060 (decl_tls_model): Declare.
7061 (set_decl_tls_model): Declare.
7062 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7063 set symbol prorperties.
7064 (get_emutls_init_templ_addr): Cleanup.
7065 (new_emutls_decl): Update.
7066 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7067 (lto_input_varpool_node): Likewise.
7068 * lto-streamer-out.c (hash_tree): Likewise.
7069 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7070 not stream DECL_TLS_MODEL.
7071 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7072 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7073
7074 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7075
7076 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7077
7078 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7079
7080 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7081 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7082 lists.
7083 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7084 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7085 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7086 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7087 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7088 (df_get_artificial_defs, df_get_artificial_uses)
7089 (df_single_def, df_single_use): Update accordingly.
7090 (df_refs_chain_dump): Take the first element in a linked list as
7091 parameter, rather than a pointer to an array of pointers.
7092 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7093 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7094 (df_chain_create_bb_process_use): Likewise.
7095 (df_md_bb_local_compute_process_def): Likewise.
7096 * fwprop.c (process_defs, process_uses): Likewise.
7097 (register_active_defs, update_uses): Likewise.
7098 (forward_propagate_asm): Update for new df_ref linking.
7099 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7100 (df_null_ref_rec, df_null_mw_rec): Likewise.
7101 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7102 explicitly.
7103 (df_scan_free_bb_info): Remove check for null artificial_defs.
7104 (df_install_ref_incremental): Adjust for new df_ref linking.
7105 Use a single-element insertion rather than a full sort.
7106 (df_ref_chain_delete_du_chain): Take the first element
7107 in a linked list as parameter, rather than a pointer to an array of
7108 pointers.
7109 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7110 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7111 (df_insn_info_delete): Remove check for null defs and call to
7112 df_scan_free_mws_vec.
7113 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7114 null rather than df_null_*_rec.
7115 (df_insn_rescan_debug_internal): Likewise, and update null
7116 checks in the same way. Remove check for null defs.
7117 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7118 Move a single element rather doing a full sort.
7119 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7120 linking.
7121 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7122 Initialize df_ref and df_mw_hardreg lists to null rather than
7123 df_null_*_rec.
7124 (df_ref_compare): Take df_refs as parameter, transferring the
7125 old interface to...
7126 (df_ref_ptr_compare): ...this new function.
7127 (df_sort_and_compress_refs): Update accordingly.
7128 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7129 old interface to...
7130 (df_mw_ptr_compare): ...this new function.
7131 (df_sort_and_compress_mws): Update accordingly.
7132 (df_install_refs, df_install_mws): Return a linked list rather than
7133 an array of pointers.
7134 (df_refs_add_to_chains): Assert that old lists are empty rather
7135 than freeing them.
7136 (df_insn_refs_verify): Don't handle null defs speciailly.
7137 * web.c (union_match_dups): Update for new df_ref linking.
7138
7139 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7140
7141 * df.h (df_ref_create, df_ref_remove): Delete.
7142 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7143 (df_ref_remove): Likewise.
7144
7145 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7146
7147 * df.h (df_single_def, df_single_use): New functions.
7148 * ira.c (find_moveable_pseudos): Use them.
7149
7150 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7151
7152 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7153 * df-problems.c (df_note_bb_compute): Use it.
7154 * regstat.c (regstat_bb_compute_ri): Likewise.
7155
7156 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7157
7158 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7159 * cse.c (cse_extended_basic_block): Use them.
7160 * dce.c (mark_artificial_use): Likewise.
7161 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7162 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7163 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7164 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7165 (df_simulate_initialize_backwards): Likewise.
7166 (df_simulate_finalize_backwards): Likewise.
7167 (df_simulate_initialize_forwards): Likewise.
7168 (df_md_simulate_artificial_defs_at_top): Likewise.
7169 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7170 * regrename.c (init_rename_info): Likewise.
7171 * regstat.c (regstat_bb_compute_ri): Likewise.
7172 (regstat_bb_compute_calls_crossed): Likewise.
7173
7174 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7175
7176 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7177 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7178 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7179 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7180 * combine.c (create_log_links): Likewise.
7181 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7182 (try_eliminate_compare): Likewise.
7183 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7184 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7185 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7186 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7187 (word_dce_process_block, dce_process_block): Likewise.
7188 * ddg.c (def_has_ccmode_p): Likewise.
7189 * df-core.c (df_bb_regno_first_def_find): Likewise.
7190 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7191 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7192 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7193 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7194 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7195 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7196 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7197 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7198 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7199 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7200 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7201 * fwprop.c (local_ref_killed_between_p): Likewise.
7202 (all_uses_available_at, free_load_extend): Likewise.
7203 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7204 * hw-doloop.c (scan_loop): Likewise.
7205 * ifcvt.c (dead_or_predicable): Likewise.
7206 * init-regs.c (initialize_uninitialized_regs): Likewise.
7207 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7208 (process_bb_node_lives): Likewise.
7209 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7210 (find_moveable_pseudos): Likewise.
7211 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7212 * recog.c (peep2_find_free_register): Likewise.
7213 * ree.c (get_defs): Likewise.
7214 * regstat.c (regstat_bb_compute_ri): Likewise.
7215 (regstat_bb_compute_calls_crossed): Likewise.
7216 * sched-deps.c (find_inc, find_mem): Likewise.
7217 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7218 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7219 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7220 (prepare_shrink_wrap): Likewise.
7221 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7222 * web.c (union_defs, pass_web::execute): Likewise.
7223 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7224 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7225
7226 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7227
7228 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7229 to inheritance pseudos.
7230 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7231
7232 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7233
7234 PR target/61415
7235 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7236 (BU_MISC_2): Rename to ...
7237 (BU_LDBL128_2): ... this.
7238 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7239 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7240 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7241 RS6000_BTM_LDBL128.
7242 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7243 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7244 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7245 (unpacktf_1): Likewise.
7246 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7247 (__builtin_longdouble_dw1): Likewise.
7248 * doc/sourcebuild.texi (longdouble128): Document.
7249
7250 2014-06-13 Jeff Law <law@redhat.com>
7251
7252 PR rtl-optimization/61094
7253 PR rtl-optimization/61446
7254 * ree.c (combine_reaching_defs): Get the mode for the copy from
7255 the extension insn rather than the defining insn.
7256
7257 2014-06-13 Dehao Chen <dehao@google.com>
7258
7259 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7260
7261 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7262
7263 * doc/install.texi (--enable-linker-plugin-configure-flags)
7264 (--enable-linker-plugin-flags): Document new flags.
7265
7266 2014-06-13 Martin Jambor <mjambor@suse.cz>
7267
7268 PR ipa/61186
7269 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7270 cache_token if returning early.
7271
7272 2014-06-13 Nick Clifton <nickc@redhat.com>
7273
7274 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7275 requested alignment is active.
7276 (LABEL_ALIGN): Likewise.
7277 (LOOP_ALIGN): Likewise.
7278
7279 2014-06-13 Richard Biener <rguenther@suse.de>
7280
7281 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7282 Rewrite to propagate the VN result into all uses where
7283 possible and to remove stmts becoming dead because of that.
7284 (eliminate): Generalize stmt removal handling, remove in
7285 reverse dominator order to support proper debug stmt
7286 generation. Update stmts before removing stmts.
7287 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7288
7289 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7290
7291 PR tree-optimization/61375
7292 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7293 symbolic number cannot be represented in an uint64_t.
7294 (find_bswap_or_nop_1): Likewise.
7295
7296 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7297
7298 * symtab.c (symtab_node::reset_section): New method.
7299 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7300 for localization.
7301 * cgraph.h (reset_section): Declare.
7302 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7303 do not consider comdat locals.
7304 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7305 for new symbol.
7306 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7307 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7308 reset sections of symbols dragged out of the comdats.
7309 (function_and_variable_visibility): Reset sections of
7310 localized symbols.
7311
7312 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7313
7314 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7315 to use symtab and decl_binds_to_current_def_p
7316 * tree-vectorizer.c (increase_alignment): Increase alignment
7317 of alias target, too.
7318
7319 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7320
7321 PR middle-end/61486
7322 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7323 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7324 if outer combined construct is distribute.
7325 (gimplify_omp_for): For OMP_DISTRIBUTE set
7326 gimplify_omp_ctxp->distribute.
7327 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7328 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7329 mapping into decl map.
7330
7331 2014-06-12 Jason Merrill <jason@redhat.com>
7332
7333 * common.opt (fabi-version): Change default to 0.
7334
7335 2014-06-12 Jason Merrill <jason@redhat.com>
7336
7337 * toplev.c (process_options): Reject -fabi-version=1.
7338
7339 2014-06-12 Jeff Law <law@redhat.com>
7340
7341 PR tree-optimization/61009
7342 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7343 value when we stop processing a block due to problematic PHIs.
7344
7345 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7346
7347 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7348 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7349 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7350 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7351 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7352 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7353 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7354 are not in the spec.
7355
7356 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7357
7358 PR target/59843
7359 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7360 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7361 Support V1DFmode.
7362
7363 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7364
7365 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7366
7367 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7368
7369 PR target/61443
7370 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7371 loading from address spaces.
7372
7373 2014-06-12 Martin Liska <mliska@suse.cz>
7374
7375 PR ipa/61462
7376 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7377 statement is reachable.
7378
7379 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7380
7381 * symtab.c (section_hash): New hash.
7382 (symtab_unregister_node): Clear section before freeing.
7383 (hash_section_hash_entry): New haser.
7384 (eq_sections): New function.
7385 (symtab_node::set_section_for_node): New method.
7386 (set_section_1): Update.
7387 (symtab_node::set_section): Take string instead of tree as parameter.
7388 (symtab_resolve_alias): Update.
7389 * cgraph.h (section_hash_entry_d): New structure.
7390 (section_hash_entry): New typedef.
7391 (cgraph_node): Change comdat_group_ to x_comdat_group,
7392 change section_ to x_section and turn into section_hash_entry;
7393 update accestors; put set_section_for_node offline.
7394 * tree.c (decl_section_name): Turn into string.
7395 (set_decl_section_name): Change parameter to be string.
7396 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7397 * sdbout.c (sdbout_one_type): Update.
7398 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7399 * varasm.c (IN_NAMED_SECTION, get_named_section,
7400 resolve_unique_section, hot_function_section, get_named_text_section,
7401 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7402 make_decl_rtl, default_unique_section): Update.
7403 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7404 (c6x_elf_unique_section): Update.
7405 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7406 * config/pa/pa.c (pa_function_section): Update.
7407 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7408 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7409 * config/arc/arc.c (arc_in_small_data_p): Update.
7410 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7411 * config/mcore/mcore.c (mcore_unique_section): Update.
7412 * config/mips/mips.c (mips16_build_function_stub): Update.
7413 (mips16_build_call_stub): Update.
7414 (mips_function_rodata_section): Update.
7415 (mips_in_small_data_p): Update.
7416 * config/score/score.c (score_in_small_data_p): Update.
7417 * config/rx/rx.c (rx_in_small_data): Update.
7418 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7419 (rs6000_xcoff_asm_named_section): Update.
7420 (rs6000_xcoff_unique_section): Update.
7421 * config/frv/frv.c (frv_string_begins_with): Update.
7422 (frv_in_small_data_p): Update.
7423 * config/v850/v850.c (v850_encode_data_area): Update.
7424 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7425 (bfin_handle_l1_data_attribute): Update.
7426 (bfin_handle_l2_attribute): Update.
7427 * config/mep/mep.c (mep_unique_section): Update.
7428 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7429 Update.
7430 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7431 (h8300_handle_tiny_data_attribute): Update.
7432 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7433 (m32r_in_small_data_p): Update.
7434 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7435 * config/i386/i386.c (ix86_in_large_data_p): Update.
7436 * config/i386/winnt.c (i386_pe_unique_section): Update.
7437 * config/darwin.c (darwin_function_section): Update.
7438 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7439 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7440 (new_emutls_decl): Update.
7441 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7442 input_varpool_node): Update.
7443 (ead_string_cst): Turn to ...
7444 (read_string): ... this one.
7445 * dwarf2out.c (secname_for_decl): Update.
7446 * asan.c (asan_protect_global): Update.
7447
7448 2014-06-11 DJ Delorie <dj@redhat.com>
7449
7450 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7451 cache lines.
7452 * config/rx/rx.c (rx_option_override): Likewise.
7453 (rx_align_for_label): Likewise.
7454
7455 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7456
7457 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7458
7459 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7460 prototype.
7461
7462 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7463
7464 * common.md: New file.
7465 * doc/md.texi: Update description of generic, machine-independent
7466 constraints.
7467 * config/s390/constraints.md (e): Delete.
7468 * Makefile.in (md_file): Include common.md.
7469 * config/m32c/t-m32c (md_file): Likewise.
7470 * genpreds.c (general_mem): New array.
7471 (generic_constraint_letters): Remove constraints now defined by
7472 common.md.
7473 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7474 Allow the first character to be '<' or '>' as well.
7475 * genoutput.c (general_mem): New array.
7476 (indep_constraints): Remove constraints now defined by common.md.
7477 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7478 Remove special handling of 'm'.
7479 * ira-costs.c (record_reg_classes): Remove special handling of
7480 constraints now defined by common.md.
7481 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7482 * ira-lives.c (single_reg_class): Likewise.
7483 (ira_implicitly_set_insn_hard_regs): Likewise.
7484 * lra-constraints.c (reg_class_from_constraints): Likewise.
7485 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7486 * postreload.c (reload_cse_simplify_operands): Likewise.
7487 * reload.c (push_secondary_reload, scratch_reload_class)
7488 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7489 * reload1.c (maybe_fix_stack_asms): Likewise.
7490 * targhooks.c (default_secondary_reload): Likewise.
7491 * stmt.c (parse_output_constraint): Likewise.
7492 * recog.c (preprocess_constraints): Likewise.
7493 (constrain_operands, peep2_find_free_register): Likewise.
7494 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7495 must be handled specially.
7496
7497 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7498
7499 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7500 * genpreds.c (have_const_dbl_constraints): Delete.
7501 (add_constraint): Don't set it.
7502 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7503 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7504 constraints using the lookup_constraint logic.
7505 * ira-lives.c (single_reg_class): Likewise.
7506 * ira.c (ira_setup_alts): Likewise.
7507 * lra-constraints.c (process_alt_operands): Likewise.
7508 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7509 * reload.c (find_reloads): Likewise.
7510
7511 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7512
7513 * genpreds.c (const_int_start, const_int_end): New variables.
7514 (choose_enum_order): Output CONST_INT constraints before memory
7515 constraints.
7516 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7517 Add CT_CONST_INT.
7518 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7519 * ira.c (ira_setup_alts): Likewise.
7520 * lra-constraints.c (process_alt_operands): Likewise.
7521 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7522 * reload.c (find_reloads): Likewise.
7523
7524 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7525
7526 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7527 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7528 * recog.c (preprocess_constraints): Update accordingly.
7529
7530 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7531
7532 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7533 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7534 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7535 * genpreds.c (print_type_tree): New function.
7536 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7537 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7538 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7539 Write out enum constraint_type and get_constraint_type.
7540 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7541 constraint_num rather than a constraint string.
7542 (satisfies_address_constraint_p): Likewise.
7543 (reg_class_from_constraints): Avoid old constraint macros.
7544 (process_alt_operands, process_address_1): Likewise.
7545 (curr_insn_transform): Likewise.
7546 * ira-costs.c (record_reg_classes): Likewise.
7547 (record_operand_costs): Likewise.
7548 * ira-lives.c (single_reg_class): Likewise.
7549 (ira_implicitly_set_insn_hard_regs): Likewise.
7550 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7551 * postreload.c (reload_cse_simplify_operands): Likewise.
7552 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7553 (constrain_operands, peep2_find_free_register): Likewise.
7554 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7555 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7556 * reload1.c (maybe_fix_stack_asms): Likewise.
7557 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7558 * targhooks.c (default_secondary_reload): Likewise.
7559 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7560 to EXTRA_CONSTRAINT_STR.
7561 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7562
7563 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7564
7565 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7566 (write_constraint_satisfied_p_array): ...this new function.
7567 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7568 an array.
7569 (write_insn_preds_c): Update accordingly.
7570
7571 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7572
7573 * genpreds.c (write_lookup_constraint): Rename to...
7574 (write_lookup_constraint_1): ...this.
7575 (write_lookup_constraint_array): New function.
7576 (write_tm_preds_h): Define lookup_constraint as an inline function
7577 that uses write_lookup_constraint_array where possible.
7578 (write_insn_preds_c): Update for the changes above.
7579
7580 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7581
7582 * doc/md.texi (regclass_for_constraint): Rename to...
7583 (reg_class_for_constraint): ...this.
7584 * genpreds.c (num_constraints, enum_order, register_start)
7585 (register_end, satisfied_start, memory_start, memory_end)
7586 (address_start, address_end): New variables.
7587 (add_constraint): Count the number of constraints.
7588 (choose_enum_order): New function.
7589 (write_enum_constraint_num): Iterate over enum_order.
7590 (write_regclass_for_constraint): Rename to...
7591 (write_reg_class_for_constraint_1): ...this and update output
7592 accordingly.
7593 (write_constraint_satisfied_p): Rename to...
7594 (write_constraint_satisfied_p_1): ...this and update output
7595 accordingly. Do nothing if all extra constraints are register
7596 constraints.
7597 (write_insn_extra_memory_constraint): Delete.
7598 (write_insn_extra_address_constraint): Delete.
7599 (write_range_function): New function.
7600 (write_tm_preds_h): Define constraint_satisfied_p and
7601 reg_class_for_constraint as inline functions that do a range check
7602 before calling the out-of-line function. Use write_range_function
7603 to implement insn_extra_{register,memory,address}_constraint,
7604 the first of which is new.
7605 (write_insn_preds_c): Update after above changes to write_* functions.
7606 (main): Call choose_enum_order.
7607
7608 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
7609
7610 PR tree-optimization/61306
7611 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
7612 expression instead of its size.
7613 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
7614 false to prevent optimization when the result is unpredictable due to
7615 arithmetic right shift of signed type with highest byte is set.
7616 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
7617 (init_symbolic_number): Likewise.
7618 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
7619 when the result is unpredictable due to sign extension.
7620
7621 2014-06-11 Terry Guo <terry.guo@arm.com>
7622
7623 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
7624 (*thumb1_addsi3): Ditto.
7625 (*thumb_subdi3): Ditto.
7626 (thumb1_subsi3_insn): Ditto.
7627 (*thumb_mulsi3): Ditto.
7628 (*thumb_mulsi3_v6): Ditto.
7629 (*thumb1_andsi3_insn): Ditto.
7630 (thumb1_bicsi3): Ditto.
7631 (*thumb1_iorsi3_insn): Ditto.
7632 (*thumb1_xorsi3_insn): Ditto.
7633 (*thumb1_ashlsi3): Ditto.
7634 (*thumb1_ashrsi3): Ditto.
7635 (*thumb1_lshrsi3): Ditto.
7636 (*thumb1_rotrsi3): Ditto.
7637 (*thumb1_negdi2): Ditto.
7638 (*thumb1_negsi2): Ditto.
7639 (*thumb1_abssi2): Ditto.
7640 (*thumb1_neg_abssi2): Ditto.
7641 (*thumb1_one_cmplsi2): Ditto.
7642 (*thumb1_zero_extendhisi2): Ditto.
7643 (*thumb1_zero_extendqisi2): Ditto.
7644 (*thumb1_zero_extendqisi2_v6): Ditto.
7645 (thumb1_extendhisi2): Ditto.
7646 (thumb1_extendqisi2): Ditto.
7647 (*thumb1_movdi_insn): Ditto.
7648 (*thumb1_movsi_insn): Ditto.
7649 (*thumb1_movhi_insn): Ditto.
7650 (thumb_movhi_clobber): Ditto.
7651 (*thumb1_movqi_insn): Ditto.
7652 (*thumb1_movhf): Ditto.
7653 (*thumb1_movsf_insn): Ditto.
7654 (*thumb_movdf_insn): Ditto.
7655 (movmem12b): Ditto.
7656 (movmem8b): Ditto.
7657 (cbranchqi4): Ditto.
7658 (cbranchsi4_insn): Ditto.
7659 (cbranchsi4_scratch): Ditto.
7660 (*negated_cbranchsi4): Ditto.
7661 (*tbit_cbranch): Ditto.
7662 (*tlobits_cbranch): Ditto.
7663 (*tstsi3_cbranch): Ditto.
7664 (*cbranchne_decr1): Ditto.
7665 (*addsi3_cbranch): Ditto.
7666 (*addsi3_cbranch_scratch): Ditto.
7667 (*thumb_cmpdi_zero): Ditto.
7668 (cstoresi_eq0_thumb1): Ditto.
7669 (cstoresi_ne0_thumb1): Ditto.
7670 (*cstoresi_eq0_thumb1_insn): Ditto.
7671 (*cstoresi_ne0_thumb1_insn): Ditto.
7672 (cstoresi_nltu_thumb1): Ditto.
7673 (cstoresi_ltu_thumb1): Ditto.
7674 (thumb1_addsi3_addgeu): Ditto.
7675 (*thumb_jump): Ditto.
7676 (*call_reg_thumb1_v5): Ditto.
7677 (*call_reg_thumb1): Ditto.
7678 (*call_value_reg_thumb1_v5): Ditto.
7679 (*call_value_reg_thumb1): Ditto.
7680 (*call_insn): Ditto.
7681 (*call_value_insn): Ditto.
7682 (thumb1_casesi_internal_pic): Ditto.
7683 (thumb1_casesi_dispatch): Ditto.
7684 (*thumb1_indirect_jump): Ditto.
7685 (prologue_thumb1_interwork): Ditto.
7686 (*epilogue_insns): Ditto.
7687 (consttable_1): Ditto.
7688 (consttable_2): Ditto.
7689 (tablejump): Ditto.
7690 (*thumb1_tablejump): Ditto.
7691 (thumb_eh_return): Ditto.
7692 (define_peephole2): Two of them are thumb1 only and got moved into
7693 new file thumb1.md.
7694 (define_split): Six of them are thumb1 only and got moved into new
7695 file thumb1.md.
7696 * config/arm/thumb1.md: New file comprised of above thumb1 only
7697 patterns.
7698
7699 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7700
7701 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
7702 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
7703 dependencies.
7704 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
7705 (aarch64_crc_builtin_datum): New struct.
7706 (aarch64_crc_builtin_data): New.
7707 (aarch64_init_crc32_builtins): New function.
7708 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
7709 (aarch64_crc32_expand_builtin): New.
7710 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
7711 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7712 __ARM_FEATURE_CRC32 when appropriate.
7713 (TARGET_CRC32): Define.
7714 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
7715 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
7716 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
7717 (aarch64_<crc_variant>): New pattern.
7718 * config/aarch64/arm_acle.h: New file.
7719 * config/aarch64/iterators.md (CRC): New int iterator.
7720 (crc_variant, crc_mode): New int attributes.
7721 * doc/aarch64-acle-intrinsics.texi: New file.
7722 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
7723 Include aarch64-acle-intrinsics.texi.
7724
7725 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
7726
7727 * tree-vect-data-refs.c (vect_grouped_store_supported): New
7728 check for stores group of length 3.
7729 (vect_permute_store_chain): New permutations for stores group of
7730 length 3.
7731 * tree-vect-stmts.c (vect_model_store_cost): Change cost
7732 of vec_perm_shuffle for the new permutations.
7733
7734 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7735
7736 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
7737 table rewriting temporarily on targets not supporting ONE_ONLY.
7738
7739 2014-06-11 Richard Biener <rguenther@suse.de>
7740
7741 PR middle-end/61437
7742 Revert
7743 2014-06-04 Richard Biener <rguenther@suse.de>
7744
7745 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
7746 TREE_PUBLIC and DECL_EXTERNAL decls.
7747
7748 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7749
7750 * varasm.c (set_implicit_section): New function.
7751 (resolve_unique_section): Use it to set implicit section
7752 for aliases, too.
7753 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
7754 (default_function_section): Likewise.
7755 (decl_binds_to_current_def_p): Constify argument.
7756 * varasm.h (decl_binds_to_current_def_p): Update prototype.
7757 * asan.c (asan_protect_global): Use
7758 symtab_get_node (decl)->implicit_section.
7759 * symtab.c (dump_symtab_base): Dump implicit sections.
7760 (verify_symtab_base): Verify sanity of sectoins and comdats.
7761 (symtab_resolve_alias): Alias share the section of its target.
7762 (set_section_1): New function.
7763 (symtab_node::set_section): Move here, recurse to aliases.
7764 (verify_symtab): Check for duplicated symtab lists.
7765 * tree-core.h (implicit_section_name_p): Remove.
7766 * tree-vect-data-refs.c: Include varasm.h.
7767 (vect_can_force_dr_alignment_p): Fix conditional on when
7768 decl bints to current definition; use
7769 symtab_get_node (decl)->implicit_section.
7770 * cgraph.c (cgraph_make_node_local_1): Fix section set.
7771 * cgraph.h (struct symtab_node): Add implicit_section.
7772 (set_section): Rename to ...
7773 (set_section_for_node): ... this one.
7774 (set_section): Declare.
7775 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
7776 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7777 input_overwrite_node, input_varpool_node): Stream implicit_section.
7778 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
7779 removal; it will fail in LTO.
7780
7781 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7782
7783 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
7784 Change second alternative type to f_mcr.
7785 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
7786 and 12th alternatives' types to f_mcr and f_mrc.
7787 (*movdi_aarch64): Same for 12th and 13th alternatives.
7788 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
7789 (aarch64_movtilow_tilow): Change type to fmov.
7790
7791 2014-06-10 Jiong Wang <jiong.wang@arm.com>
7792
7793 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
7794 (aarch64_save_or_restore_callee_save_registers): Fix layout.
7795
7796 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7797
7798 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
7799 New expander.
7800 (aarch64_sqrdmulh_lane<mode>): Likewise.
7801 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7802 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7803 (aarch64_sqdmulh_laneq<mode>): New expander.
7804 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7805 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
7806 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
7807 (aarch64_sqdmulh_lane<mode>): New expander.
7808 (aarch64_sqrdmulh_lane<mode>): Likewise.
7809 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
7810 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
7811 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
7812 (aarch64_sqdmlal_laneq<mode>): Likewise.
7813 (aarch64_sqdmlsl_lane<mode>): Likewise.
7814 (aarch64_sqdmlsl_laneq<mode>): Likewise.
7815 (aarch64_sqdmlal2_lane<mode>): Likewise.
7816 (aarch64_sqdmlal2_laneq<mode>): Likewise.
7817 (aarch64_sqdmlsl2_lane<mode>): Likewise.
7818 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7819 (aarch64_sqdmull_lane<mode>): Likewise.
7820 (aarch64_sqdmull_laneq<mode>): Likewise.
7821 (aarch64_sqdmull2_lane<mode>): Likewise.
7822 (aarch64_sqdmull2_laneq<mode>): Likewise.
7823
7824 2014-06-10 Richard Biener <rguenther@suse.de>
7825
7826 PR tree-optimization/61438
7827 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
7828 (eliminate_dom_walker::before_dom_children): Only try to inhibit
7829 insertion of IVs if running PRE.
7830 (eliminate): Adjust.
7831 (pass_pre::execute): Likewise.
7832 (pass_fre::execute): Likewise.
7833
7834 2014-06-10 Richard Biener <rguenther@suse.de>
7835
7836 PR middle-end/61456
7837 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7838 Do not use the main variant for the type comparison.
7839 (ncr_compar): Likewise.
7840 (nonoverlapping_component_refs_p): Likewise.
7841
7842 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
7843
7844 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
7845 REG_CFA_RESTORE mode.
7846
7847 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
7848
7849 * config/i386/i386.c (expand_vec_perm_pblendv): New.
7850 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
7851 expand_vec_perm_pblendv.
7852
7853 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7854
7855 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
7856 available.
7857 Simplify description of __crc32d and __crc32cd intrinsics.
7858 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
7859 availability.
7860
7861 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
7862
7863 PR lto/61334
7864 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
7865 * config.in: Regenerate.
7866 * configure: Likewise.
7867
7868 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
7869
7870 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
7871 and public vars.
7872 (intersect_static_var_sets): Remove.
7873 (propagate): Do not prune local statics.
7874
7875 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7876
7877 PR fortran/60928
7878 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
7879 Set lastprivate_firstprivate even if omp_private_outer_ref
7880 langhook returns true.
7881 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
7882 langhook, call unshare_expr on new_var and call
7883 build_outer_var_ref to get the last argument.
7884
7885 2014-06-10 Marek Polacek <polacek@redhat.com>
7886
7887 PR c/60988
7888 * doc/extend.texi: Add cindex for transparent_union.
7889
7890 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7891
7892 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
7893 init_symbolic_number ().
7894
7895 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
7896
7897 PR middle-end/61141
7898 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
7899 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
7900 (verify_rtl_sharing): Likewise.
7901
7902 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
7903
7904 PR c++/54442
7905 * tree.c (build_qualified_type): Use a canonical type for
7906 TYPE_CANONICAL.
7907
7908 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7909
7910 * config/arm/arm-modes.def: Remove XFmode.
7911
7912 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
7913
7914 PR target/61062
7915 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
7916 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
7917 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
7918 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
7919 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
7920 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
7921 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
7922 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
7923 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
7924
7925 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
7926
7927 * tree-core.h (tree_decl_with_vis): Remove section_name.
7928
7929 2014-06-09 Kito Cheng <kito@0xlab.org>
7930
7931 * ira.c (ira): Don't call init_caller_save if LRA enabled
7932 since LRA use its own infrastructure to handle that.
7933
7934 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7935
7936 * symtab.c (dump_symtab_base): Update dumping.
7937 (symtab_make_decl_local): Clear only DECL_COMDAT.
7938 * tree-vect-data-refs.c (Check that variable is static before
7939 tampering with sections.
7940 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
7941 (cgraph_create_virtual_clone): Likewise.
7942 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
7943 (decl_section_name, set_decl_section_name): New accessors.
7944 (find_decls_types_r): Do not walk section name
7945 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
7946 (decl_comdat_group, decl_comdat_group_id): Constify.
7947 (decl_section_name, set_decl_section_name): Update.
7948 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
7949 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
7950 (cgraph_make_node_local_1): Clear section and comdat group.
7951 * cgraph.h (set_comdat_group): Sanity check.
7952 (get_section, set_section): New.
7953 * ipa-comdats.c (ipa_comdats): Use get_section.
7954 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
7955 * lto-streamer-out.c: Do not follow section names.
7956 * c-family/c-common.c (handle_section_attribute): Update.
7957 * lto-cgraph.c (lto_output_node): Output section.
7958 (lto_output_varpool_node): Likewise.
7959 (read_comdat_group): Rename to ...
7960 (read_identifier): ... this one.
7961 (read_string_cst): New function.
7962 (input_node, input_varpool_node): Input section names.
7963 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7964 (new_emutls_decl): Update.
7965 (secname_for_decl): Check section names only of static vars.
7966 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
7967 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
7968 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
7969 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
7970 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
7971 * config/mcore/mcore.c (mcore_unique_section): Likewise.
7972 * config/mips/mips.c (mips16_build_function_stub): Likewise.
7973 * config/v850/v850.c (v850_insert_attributes): Likewise.
7974 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
7975 Likewise.
7976 (h8300_handle_tiny_data_attribute): Likewise.
7977 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
7978 (bfin_handle_l2_attribute): Likewise.
7979
7980 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7981
7982 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
7983 remove static initializer.
7984
7985 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7986
7987 * varasm.c (use_blocks_for_decl_p): Check symbol table
7988 instead of alias attribute.
7989 (place_block_symbol): Recurse on aliases.
7990
7991 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7992
7993 * ipa-visibility.c: Include varasm.h
7994 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
7995
7996 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
7997
7998 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
7999 outputting aliases.
8000
8001 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8002
8003 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8004 from test_insn into GGC space escape via SET_SRC.
8005
8006 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8007
8008 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8009 call statement, if any.
8010 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8011 statements, if any. Tidy up.
8012
8013 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8014
8015 PR target/61431
8016 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8017 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8018 handles swapping the two 64-bit double words on little endian
8019 systems. Include V1TImode and optionally TImode in VSX_LE so that
8020 these types are properly swapped. Change all of the insns and
8021 splits that do the 64-bit swaps to use VSX_LE.
8022 (vsx_le_perm_load_<mode>): Likewise.
8023 (vsx_le_perm_store_<mode>): Likewise.
8024 (splitters for little endian memory operations): Likewise.
8025 (vsx_xxpermdi2_le_<mode>): Likewise.
8026 (vsx_lxvd2x2_le_<mode>): Likewise.
8027 (vsx_stxvd2x2_le_<mode>): Likewise.
8028
8029 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8030
8031 PR target/61423
8032 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8033 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8034 and corresponding splitters. Zero extend general register
8035 or memory input operand to XMM temporary. Enable for
8036 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8037 (floatunssi<mode>2): Update expander predicate.
8038
8039 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8040
8041 PR rtl-optimization/61325
8042 * lra-constraints.c (process_address_1): Check scale equal to one
8043 to prevent transformation: base + scale * index => base + new_reg.
8044
8045 2014-06-06 Richard Biener <rguenther@suse.de>
8046
8047 PR tree-optimization/59299
8048 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8049 a def operand.
8050 (nearest_common_dominator_of_uses): Likewise.
8051 (statement_sink_location): Adjust. Support sinking loads.
8052
8053 2014-06-06 Martin Jambor <mjambor@suse.cz>
8054
8055 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8056 (build_agg_jump_func_from_list): Likewise.
8057 (determine_known_aggregate_parts): Renamed to
8058 determine_locally_known_aggregate_parts. Moved some functionality
8059 to the two functions above, removed bound checks.
8060
8061 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8062
8063 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8064 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8065 (aarch64_progress_pointer): Likewise.
8066 (aarch64_copy_one_part_and_move_pointers): Likewise.
8067 (aarch64_expand_movmen): Likewise.
8068 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8069 * config/aarch64/aarch64.md (movmem<mode>): New.
8070
8071 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8072
8073 * targhooks.c (default_add_stmt_cost): Call target specific
8074 hook instead of default one.
8075
8076 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8077
8078 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8079 endianness instead of host endianness.
8080 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8081 comments.
8082
8083 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8084
8085 PR debug/53927
8086 * function.c (instantiate_decls): Process the saved static chain.
8087 (expand_function_start): If not optimizing, save the static chain
8088 onto the stack.
8089 * tree-nested.c (convert_all_function_calls): Always create the static
8090 chain for nested functions if not optimizing.
8091
8092 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8093
8094 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8095
8096 2014-06-06 Richard Biener <rguenther@suse.de>
8097
8098 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8099 (construct_init_block): Likewise.
8100 (construct_exit_block): Likewise.
8101 (pass_expand::execute): Likewise.
8102 * graphite.c (graphite_transforms): Replace check for current_loops
8103 with a check for > 1 loops.
8104 (pass_graphite_transforms::execute): Adjust.
8105 * ipa-split.c (split_function): Remove check for current_loops.
8106 * omp-low.c (expand_parallel_call): Likewise.
8107 (expand_omp_for_init_counts): Likewise.
8108 (extract_omp_for_update_vars): Likewise.
8109 (expand_omp_for_generic): Likewise.
8110 (expand_omp_sections): Likewise.
8111 (expand_omp_target): Likewise.
8112 * tracer.c (tail_duplicate): Likewise.
8113 (pass_tracer::execute): Likewise.
8114 * trans-mem.c (expand_transaction): Likewise.
8115 * tree-complex.c (expand_complex_div_wide): Likewise.
8116 * tree-eh.c (lower_resx): Likewise.
8117 (cleanup_empty_eh_merge_phis): Likewise.
8118 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8119 current_loops with a check for > 1 loops.
8120 (pass_predcom::execute): Adjust.
8121 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8122 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8123 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8124 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8125 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8126 * tree-switch-conversion.c (process_switch): Likewise.
8127 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8128 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8129 (execute_vrp): Likewise.
8130 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8131
8132 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8133
8134 * rtl.h (insn_location): Declare.
8135 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8136 with UNKNOWN_LOCATION.
8137 * emit-rtl.c (insn_location): New function.
8138 * final.c (notice_source_line): Check that the instruction has a
8139 location before retrieving it and use insn_location.
8140 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8141 * print-rtl.c (print_rtx): Likewise.
8142
8143 2014-06-06 Richard Biener <rguenther@suse.de>
8144
8145 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8146
8147 2014-06-06 Christian Bruel <christian.bruel@st.com>
8148
8149 PR tree-optimization/43934
8150 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8151 cost.
8152
8153 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8154
8155 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8156 return NO_REGS for extra address and memory constraints. Handle
8157 operands that match (or are equivalent to something that matches)
8158 extra constant constraints. Ignore other non-register operands.
8159
8160 2014-06-06 Alan Modra <amodra@gmail.com>
8161
8162 PR target/61300
8163 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8164 * doc/tm.texi: Regenerate.
8165 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8166 Use throughout in place of REG_PARM_STACK_SPACE.
8167 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8168 "incoming" param. Pass to rs6000_function_parms_need_stack.
8169 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8170 prototype_p when incoming. Use function decl when incoming
8171 to handle K&R style functions.
8172 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8173 (INCOMING_REG_PARM_STACK_SPACE): Define.
8174
8175 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8176
8177 PR target/52472
8178 * cfgexpand.c (expand_debug_expr): Use address space of nested
8179 TREE_TYPE for ADDR_EXPR and MEM_REF.
8180
8181 2014-06-05 Jeff Law <law@redhat.com>
8182
8183 PR tree-optimization/61289
8184 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8185 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8186 looking for those which match LHS. All callers changed.
8187 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8188 parameters and code which manipulated them. All callers changed.
8189 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8190 and DST_MAP parameters. Simplify invalidation code by just calling
8191 invalidate_equivalences. All callers changed.
8192 (thread_across_edge): Simplify now that we don't need to maintain
8193 the map of equivalences to invalidate.
8194
8195 2014-06-05 Kai Tietz <ktietz@redhat.com>
8196 Richard Henderson <rth@redhat.com>
8197
8198 PR target/46219
8199 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8200 checking for !TARGET_X32.
8201 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8202 (sibcall_intern): New define_insn, plus required peepholes.
8203 (sibcall_pop_intern): Likewise.
8204 (sibcall_value_intern): Likewise.
8205 (sibcall_value_pop_intern): Likewise.
8206
8207 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8208
8209 * tree-inline.c (tree_function_versioning): Check DF info existence
8210 before accessing it.
8211
8212 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8213
8214 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8215 frame_size.
8216 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8217 aarch64_frame hard_fp_offset and frame_size.
8218 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8219 frame_size; remove original_frame_size.
8220 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8221 (aarch64_initial_elimination_offset): Remove frame_size and
8222 offset. Use aarch64_frame frame_size.
8223
8224 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8225 Jiong Wang <jiong.wang@arm.com>
8226 Renlin <renlin.li@arm.com>
8227
8228 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8229 initialization of R30 offset. Update offset. Iterate core
8230 regisers upto X30. Remove X29, X30 specific code.
8231
8232 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8233 Jiong Wang <jiong.wang@arm.com>
8234
8235 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8236 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8237 (aarch64_register_saved_on_entry): Adjust test.
8238
8239 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8240
8241 * config/aarch64/aarch64.h (machine_function): Move
8242 saved_varargs_size from here...
8243 (aarch64_frame): ... to here.
8244
8245 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8246 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8247 (aarch64_initial_elimination_offset)
8248 (aarch64_setup_incoming_varargs): Adjust location of
8249 saved_varargs_size.
8250
8251 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8252
8253 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8254 layout comment.
8255
8256 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8257 Prachi Godbole <Prachi.Godbole@imgtec.com>
8258
8259 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8260 mips32r5 entry to use PROCESSOR_P5600.
8261 * config/mips/mips-tables.opt: Regenerate.
8262 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8263 * config/mips/mips.c (mips_fmadd_bypass): New function.
8264 (mips_rtx_cost_data): Add costs for p5600.
8265 (mips_issue_rate): Add support for p5600.
8266 (mips_multipass_dfa_lookahead): Likewise.
8267 * config/mips/mips.h (TUNE_P5600): New define.
8268 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8269 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8270 * config/mips/mips.md: Include p5600.md.
8271 (processor): Add p5600.
8272 * config/mips/p5600.md: New file.
8273
8274 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8275
8276 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8277 * config/i386/predicates.md (palignr_operand): New.
8278 Indicates if permutation is suitable for palignr instruction.
8279
8280 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8281
8282 PR tree-optimization/61319
8283 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8284 stmt belongs to loop.
8285
8286 2014-06-05 Richard Biener <rguenther@suse.de>
8287
8288 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8289 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8290 (lookup_tmp_var): Adjust.
8291 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8292
8293 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8294
8295 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8296
8297 2014-06-05 Marek Polacek <polacek@redhat.com>
8298
8299 PR c/49706
8300 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8301
8302 2014-06-04 Tom de Vries <tom@codesourcery.com>
8303
8304 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8305 CONST_INT.
8306
8307 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8308
8309 PR tree-optimization/61385
8310 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8311
8312 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8313
8314 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8315 changed to use fatal_error.
8316 (main): Ensure lto_wrapper_cleanup is run atexit.
8317
8318 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8319
8320 * lra-constraints.c (valid_address_p): Move earlier in file.
8321 (address_eliminator): New structure.
8322 (satisfies_memory_constraint_p): New function.
8323 (satisfies_address_constraint_p): Likewise.
8324 (process_alt_operands, process_address, curr_insn_transform): Use them.
8325
8326 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8327
8328 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8329 const pointer.
8330 (target_lra_int, default_target_lra_int, this_target_lra_int)
8331 (op_alt_data): Delete.
8332 * lra.h (lra_init): Delete.
8333 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8334 (init_insn_code_data_once): Remove op_alt_data handling.
8335 (finish_insn_code_data_once): Likewise.
8336 (init_op_alt_data): Delete.
8337 (get_static_insn_data): Initialize operand_alternative to null.
8338 (free_insn_recog_data): Cast operand_alternative before freeing it.
8339 (setup_operand_alternative): Take the operand_alternative as
8340 parameter and assume it isn't already cached in the static
8341 insn data.
8342 (lra_set_insn_recog_data): Update accordingly.
8343 (lra_init): Delete.
8344 * ira.c (ira_init): Don't call lra_init.
8345 * target-globals.h (this_target_lra_int): Declare.
8346 (target_globals): Remove lra_int.
8347 (restore_target_globals): Update accordingly.
8348 * target-globals.c: Don't include lra-int.h.
8349 (default_target_globals, save_target_globals): Remove lra_int.
8350
8351 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8352
8353 * recog.h (operand_alternative): Convert reg_class, reject,
8354 matched and matches into bitfields.
8355 (preprocess_constraints): New overload.
8356 (preprocess_insn_constraints): New function.
8357 (preprocess_constraints): Take the insn as parameter.
8358 (recog_op_alt): Change into a pointer.
8359 (target_recog): Add x_op_alt.
8360 * recog.c (asm_op_alt): New variable.
8361 (recog_op_alt): Change into a pointer.
8362 (preprocess_constraints): New overload, replacing the old function
8363 definition with one that doesn't use global state.
8364 (preprocess_insn_constraints): New function.
8365 (preprocess_constraints): Use them. Take the insn as parameter.
8366 Use asm_op_alt for asms.
8367 (recog_init): Free existing x_op_alt entries.
8368 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8369 pointer const.
8370 (make_early_clobber_and_input_conflicts): Likewise.
8371 (process_bb_node_lives): Pass the insn to process_constraints.
8372 * reg-stack.c (check_asm_stack_operands): Likewise.
8373 (subst_asm_stack_regs): Likewise.
8374 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8375 * regrename.c (build_def_use): Likewise.
8376 * sched-deps.c (sched_analyze_insn): Likewise.
8377 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8378 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8379 (note_invalid_constants): Likewise.
8380 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8381 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8382 const.
8383
8384 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8385
8386 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8387 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8388 alternatives.
8389 (make_early_clobber_and_input_conflicts): Likewise.
8390 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8391
8392 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8393
8394 * recog.h (alternative_class): New function.
8395 (which_op_alt): Return a const recog_op_alt.
8396 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8397 (subst_asm_stack_regs): Likewise.
8398 * config/arm/arm.c (note_invalid_constants): Likewise.
8399 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8400 the operand_alternative; use alternative class instead.
8401 * sel-sched.c (get_reg_class): Likewise.
8402 * regrename.c (build_def_use): Likewise.
8403 (hide_operands, restore_operands, record_out_operands): Update type
8404 accordingly.
8405
8406 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8407
8408 * recog.h (recog_op_alt): Convert to a flat array.
8409 (which_op_alt): New function.
8410 * recog.c (recog_op_alt): Convert to a flat array.
8411 (preprocess_constraints): Update accordingly, grouping all
8412 operands of the same alternative together, rather than the
8413 other way around.
8414 * ira-lives.c (check_and_make_def_conflict): Likewise.
8415 (make_early_clobber_and_input_conflicts): Likewise.
8416 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8417 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8418 (subst_asm_stack_regs): Likewise.
8419 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8420 * regrename.c (hide_operands, record_out_operands): Likewise.
8421 (build_def_use): Likewise.
8422 * sel-sched.c (get_reg_class): Likewise.
8423 * config/arm/arm.c (note_invalid_constants): Likewise.
8424
8425 2014-06-04 Jason Merrill <jason@redhat.com>
8426
8427 PR c++/51253
8428 PR c++/61382
8429 * gimplify.c (gimplify_arg): Non-static.
8430 * gimplify.h: Declare it.
8431
8432 2014-06-04 Richard Biener <rguenther@suse.de>
8433
8434 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8435 TREE_PUBLIC and DECL_EXTERNAL decls.
8436
8437 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8438
8439 * regcprop.c (copyprop_hardreg_forward_1): Account for
8440 HARD_REGNO_CALL_PART_CLOBBERED.
8441
8442 2014-06-04 Richard Biener <rguenther@suse.de>
8443
8444 * configure.ac: Check whether the underlying type of int64_t
8445 is long or long long.
8446 * configure: Regenerate.
8447 * config.in: Likewise.
8448 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8449 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8450
8451 2014-06-04 Richard Biener <rguenther@suse.de>
8452
8453 PR tree-optimization/60098
8454 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8455 we hit a kill.
8456 (dse_optimize_stmt): Simplify, now that we found a kill
8457 earlier.
8458
8459 2014-06-04 Richard Biener <rguenther@suse.de>
8460
8461 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8462 of accesses with non-invariant address.
8463
8464 2014-06-04 Martin Liska <mliska@suse.cz>
8465
8466 * cgraph.h (cgraph_make_wrapper): New function introduced.
8467 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8468 * ipa-inline.h (inline_analyze_function): The function is global.
8469 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8470
8471 2014-06-04 Martin Liska <mliska@suse.cz>
8472
8473 * tree.h (private_lookup_attribute_starting): New function.
8474 (lookup_attribute_starting): Likewise.
8475 * tree.c (private_lookup_attribute_starting): Likewise.
8476
8477 2014-06-04 Martin Liska <mliska@suse.cz>
8478
8479 * cgraph.h (expand_thunk): New argument added.
8480 (address_taken_from_non_vtable_p): New global function.
8481 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8482 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8483 * cgraphunit.c (analyze_function): Likewise.
8484 (assemble_thunks_and_aliases): Argument added to call.
8485 (expand_thunk): New argument forces to produce GIMPLE thunk.
8486
8487 2014-06-04 Martin Liska <mliska@suse.cz>
8488
8489 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8490 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8491 * profile.c (branch_prob): Likewise.
8492
8493 2014-06-04 Martin Jambor <mjambor@suse.cz>
8494
8495 PR ipa/61340
8496 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8497 handler for switch on an ipa_ref_use enum.
8498 * ipa-reference.c (analyze_function): Likewise.
8499
8500 2014-06-04 Kai Tietz <ktietz@redhat.com>
8501
8502 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8503 from old call-instruction.
8504
8505 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8506
8507 * config/aarch64/aarch64.c (aarch64_classify_address)
8508 (aarch64_legitimize_reload_address): Support full addressing modes
8509 for vector modes.
8510 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8511 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8512
8513 2014-06-03 Andrew Pinski <apinski@cavium.com>
8514
8515 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8516 for OP0.
8517
8518 2014-06-03 Andrew Pinski <apinski@cavium.com>
8519
8520 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8521 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8522
8523 2014-06-03 Kai Tietz <ktietz@redhat.com>
8524
8525 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8526 for 64-bit ms-abi.
8527
8528 2014-06-03 Dehao Chen <dehao@google.com>
8529
8530 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8531 the same loop.
8532
8533 2014-06-03 Marek Polacek <polacek@redhat.com>
8534
8535 PR c/60439
8536 * doc/invoke.texi: Document -Wswitch-bool.
8537 * function.c (stack_protect_epilogue): Cast controlling expression of
8538 the switch to int.
8539 * gengtype.c (walk_type): Generate switch expression with its
8540 controlling expression cast to int.
8541
8542 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8543
8544 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8545 and attiny841.
8546 * config/avr/avr-tables.opt: Regenerate.
8547 * config/avr/t-multilib: Regenerate.
8548 * doc/avr-mmcu.texi: Regenerate.
8549
8550 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8551 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8552
8553 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8554 (ata6617c, ata664251): Add new avr35 devices.
8555 (ata6612c): Add new avr4 device.
8556 (ata6613c, ata6614q): Add new avr5 devices.
8557 * config/avr/avr-tables.opt: Regenerate.
8558 * config/avr/t-multilib: Regenerate.
8559 * doc/avr-mmcu.texi: Regenerate.
8560
8561 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8562
8563 * gcc/config/aarch64/aarch64-builtins.c
8564 (aarch64_types_binop_ssu_qualifiers): New static data.
8565 (TYPES_BINOP_SSU): Define.
8566 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8567 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8568 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8569 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8570 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8571 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8572 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8573 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8574 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8575 suffix to builtin function name, remove cast.
8576 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8577 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8578 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8579
8580 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8581
8582 * gcc/config/aarch64/aarch64-builtins.c
8583 (aarch64_types_binop_uus_qualifiers,
8584 aarch64_types_shift_to_unsigned_qualifiers,
8585 aarch64_types_unsigned_shiftacc_qualifiers): Define.
8586 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
8587 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
8588 sqshlu_n, uqshl_n): Update qualifiers.
8589 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
8590 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
8591 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
8592 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
8593 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
8594 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
8595 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
8596 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
8597 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
8598 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
8599 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
8600 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
8601 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
8602 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
8603 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
8604 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
8605 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
8606 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
8607 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
8608 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
8609 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
8610 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
8611 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
8612 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
8613 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
8614 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
8615 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
8616
8617 2014-06-03 Teresa Johnson <tejohnson@google.com>
8618
8619 * tree-sra.c (modify_function): Record caller nodes after rebuild.
8620
8621 2014-06-02 Jason Merrill <jason@redhat.com>
8622
8623 PR c++/61020
8624 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
8625
8626 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8627
8628 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
8629 location == 0.
8630
8631 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8632
8633 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
8634 New pattern.
8635 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
8636 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
8637 * config/aarch64/iterators.md (REVERSE): New iterator.
8638 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
8639 (rev_op): New int_attribute.
8640 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
8641 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
8642 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
8643 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
8644 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
8645 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
8646 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
8647 Replace temporary __asm__ with __builtin_shuffle.
8648
8649 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8650
8651 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
8652 mips64r5.
8653 * config/mips/mips-tables.opt: Regenerate.
8654 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
8655 to use mips_isa_rev rather than ISA_MIPS32R2.
8656 * config/mips/mips.h (ISA_MIPS32R3): New define.
8657 (ISA_MIPS32R5): New define.
8658 (ISA_MIPS64R3): New define.
8659 (ISA_MIPS64R5): New define.
8660 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
8661 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
8662 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
8663 and mips64r5.
8664 (MIPS_ISA_SYNCI_SPEC): Likewise.
8665 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
8666 (LINK_SPEC): Added mips32r3 and mips32r5.
8667 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
8668 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
8669 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
8670 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
8671 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
8672 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
8673 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
8674
8675 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8676
8677 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
8678 options.
8679 * config/mips/mips.opt (mxpa): New option.
8680 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
8681 assembler.
8682
8683 2014-06-03 Martin Jambor <mjambor@suse.cz>
8684
8685 PR ipa/61160
8686 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
8687 thunks.
8688
8689 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
8690
8691 PR tree-optimization/61328
8692 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
8693 initialization from find_bswap_or_nop_1.
8694 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
8695 in source_expr2 before using the size value the function sets. Also
8696 make use of init_symbolic_number () in both the old place and
8697 find_bswap_or_nop_load () to avoid reading uninitialized memory when
8698 doing recursion in the GIMPLE_BINARY_RHS case.
8699
8700 2014-06-03 Richard Biener <rguenther@suse.de>
8701
8702 PR tree-optimization/61383
8703 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
8704 stmts can't trap.
8705
8706 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
8707
8708 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
8709 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
8710 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
8711 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
8712 in this file.
8713 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
8714 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
8715 * system.h: ...here and make it unconditional.
8716 * target.def (conditional_register_usage): Mention
8717 define_register_constraint instead of old-style constraint macros.
8718 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
8719 * doc/tm.texi: Regenerate.
8720 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
8721 protected by !USE_MD_CONSTRAINTS.
8722 * config/frv/frv.md: Remove quote from old version of documentation.
8723 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
8724 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
8725 CONST_DOUBLE_OK_FOR_LETTER.
8726 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
8727
8728 2014-06-02 Andrew Pinski <apinski@cavium.com>
8729
8730 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
8731 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
8732 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
8733 file whose name depends on -mabi= and -mbig-endian.
8734 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
8735 Handle LP64 better and handle ilp32 too.
8736 (MULTILIB_OPTIONS): Delete.
8737 (MULTILIB_DIRNAMES): Delete.
8738
8739 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
8740
8741 * expr.h: Remove prototypes of functions defined in builtins.c.
8742 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
8743 Remove prototypes of functions defined in builtins.c.
8744 * builtins.h: Update prototype list to include all exported functions.
8745 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
8746 no_c99_libc_has_function): Move to targhooks.c
8747 (build_string_literal, build_call_expr_loc_array,
8748 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
8749 to tree.c.
8750 (expand_builtin_object_size, fold_builtin_object_size): Make static.
8751 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
8752 no_c99_libc_has_function): Relocate from builtins.c.
8753 * tree.c: Include builtins.h.
8754 (build_call_expr_loc_array, build_call_expr_loc_vec,
8755 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
8756 from builtins.c.
8757 * fold-const.h (fold_fma): Move prototype to builtins.h.
8758 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
8759 * asan.c: Include builtins.h.
8760 * cfgexpand.c: Likewise.
8761 * convert.c: Likewise.
8762 * emit-rtl.c: Likewise.
8763 * except.c: Likewise.
8764 * expr.c: Likewise.
8765 * fold-const.c: Likewise.
8766 * gimple-fold.c: Likewise.
8767 * gimple-ssa-strength-reduction.c: Likewise.
8768 * gimplify.c: Likewise.
8769 * ipa-inline.c: Likewise.
8770 * ipa-prop.c: Likewise.
8771 * lto-streamer-out.c: Likewise.
8772 * stmt.c: Likewise.
8773 * tree-inline.c: Likewise.
8774 * tree-object-size.c: Likewise.
8775 * tree-sra.c: Likewise.
8776 * tree-ssa-ccp.c: Likewise.
8777 * tree-ssa-forwprop.c: Likewise.
8778 * tree-ssa-loop-ivcanon.c: Likewise.
8779 * tree-ssa-loop-ivopts.c: Likewise.
8780 * tree-ssa-math-opts.c: Likewise.
8781 * tree-ssa-reassoc.c: Likewise.
8782 * tree-ssa-threadedge.c: Likewise.
8783 * tree-streamer-in.c: Likewise.
8784 * tree-vect-data-refs.c: Likewise.
8785 * tree-vect-patterns.c: Likewise.
8786 * tree-vect-stmts.c: Likewise.
8787 * config/aarch64/aarch64.c: Likewise.
8788 * config/alpha/alpha.c: Likewise.
8789 * config/arc/arc.c: Likewise.
8790 * config/arm/arm.c: Likewise.
8791 * config/avr/avr.c: Likewise.
8792 * config/bfin/bfin.c: Likewise.
8793 * config/c6x/c6x.c: Likewise.
8794 * config/cr16/cr16.c: Likewise.
8795 * config/cris/cris.c: Likewise.
8796 * config/epiphany/epiphany.c: Likewise.
8797 * config/fr30/fr30.c: Likewise.
8798 * config/frv/frv.c: Likewise.
8799 * config/h8300/h8300.c: Likewise.
8800 * config/i386/i386.c: Likewise.
8801 * config/i386/winnt.c: Likewise.
8802 * config/ia64/ia64.c: Likewise.
8803 * config/iq2000/iq2000.c: Likewise.
8804 * config/lm32/lm32.c: Likewise.
8805 * config/m32c/m32c.c: Likewise.
8806 * config/m32r/m32r.c: Likewise.
8807 * config/m68k/m68k.c: Likewise.
8808 * config/mcore/mcore.c: Likewise.
8809 * config/mep/mep.c: Likewise.
8810 * config/microblaze/microblaze.c: Likewise.
8811 * config/mips/mips.c: Likewise.
8812 * config/mmix/mmix.c: Likewise.
8813 * config/mn10300/mn10300.c: Likewise.
8814 * config/moxie/moxie.c: Likewise.
8815 * config/msp430/msp430.c: Likewise.
8816 * config/nds32/nds32.c: Likewise.
8817 * config/pa/pa.c: Likewise.
8818 * config/pdp11/pdp11.c: Likewise.
8819 * config/picochip/picochip.c: Likewise.
8820 * config/rl78/rl78.c: Likewise.
8821 * config/rs6000/rs6000.c: Likewise.
8822 * config/rx/rx.c: Likewise.
8823 * config/s390/s390.c: Likewise.
8824 * config/score/score.c: Likewise.
8825 * config/sh/sh.c: Likewise.
8826 * config/sparc/sparc.c: Likewise.
8827 * config/spu/spu.c: Likewise.
8828 * config/stormy16/stormy16.c: Likewise.
8829 * config/tilegx/tilegx.c: Likewise.
8830 * config/tilepro/tilepro.c: Likewise.
8831 * config/v850/v850.c: Likewise.
8832 * config/vax/vax.c: Likewise.
8833 * config/xtensa/xtensa.c: Likewise.
8834
8835 2014-06-02 Jeff Law <law@redhat.com>
8836
8837 PR rtl-optimization/61094
8838 * ree.c (combine_reaching_defs): Do not reextend an insn if it
8839 was marked as do_no_reextend. If a copy is needed to eliminate
8840 an extension, then mark it as do_not_reextend.
8841
8842 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
8843
8844 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
8845
8846 2014-06-02 Richard Henderson <rth@redhat.com>
8847
8848 PR target/61336
8849 * config/alpha/alpha.c (print_operand_address): Allow symbolic
8850 addresses inside asms. Use output_operand_lossage instead of
8851 gcc_unreachable.
8852
8853 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
8854
8855 PR target/61239
8856 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
8857 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
8858
8859 2014-06-02 Tom de Vries <tom@codesourcery.com>
8860
8861 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
8862 case that x has VOIDmode.
8863
8864 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
8865
8866 * varasm.c (copy_constant): Delete function.
8867 (build_constant_desc): Don't call it.
8868
8869 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8870
8871 PR target/61154
8872 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
8873 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
8874 with immediate_operand.
8875
8876 2014-06-02 Andreas Schwab <schwab@suse.de>
8877
8878 * config/ia64/ia64.c
8879 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
8880 pending_data_specs first.
8881
8882 2014-06-02 Richard Biener <rguenther@suse.de>
8883
8884 PR tree-optimization/61378
8885 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
8886 valueized_anything.
8887
8888 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
8889
8890 * config/i386/constraints.md (Bw): Rename from 'w'.
8891 (Bz): Rename from 'z'.
8892 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
8893
8894 2014-06-01 Kai Tietz <ktietz@redhat.com>
8895
8896 PR target/61377
8897 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
8898 * config/i386/i386.md (sibcall_insn_operand): Use Bs
8899 instead of m constraint.
8900
8901 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
8902
8903 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
8904 a separate alternative where the scratch operand 2 is marked as
8905 early clobber.
8906
8907 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
8908
8909 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8910 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
8911 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
8912 and __builtins_arm_get_fpscr.
8913 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8914 __builtins_arm_get_fpscr.
8915 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
8916 __builtins_arm_ldfpscr.
8917 (arm_atomic_assign_expand_fenv): New function.
8918 * config/arm/vfp.md (set_fpscr): New pattern.
8919 (get_fpscr) : Likewise.
8920 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
8921 VUNSPEC_SET_FPSCR.
8922 * doc/extend.texi (AARCH64 Built-in Functions) : Document
8923 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
8924
8925 2014-05-30 Jakub Jelinek <jakub@redhat.com>
8926
8927 * asan.c (report_error_func): Add SLOW_P argument, use
8928 BUILT_IN_ASAN_*_N if set.
8929 (build_check_stmt): Likewise.
8930 (instrument_derefs): If T has insufficient alignment,
8931 force same handling as for odd sizes.
8932
8933 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
8934 BUILT_IN_ASAN_REPORT_STORE_N): New.
8935 * asan.c (struct asan_mem_ref): Change access_size type to
8936 HOST_WIDE_INT.
8937 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
8938 update_mem_ref_hash_table): Likewise.
8939 (asan_mem_ref_hasher::hash): Hash in a HWI.
8940 (report_error_func): Change size_in_bytes argument to HWI.
8941 Use *_N builtins if size_in_bytes is larger than 16 or not power of
8942 two.
8943 (build_shadow_mem_access): New function.
8944 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
8945 Handle size_in_bytes not power of two or larger than 16.
8946 (instrument_derefs): Don't give up if size_in_bytes is not
8947 power of two or is larger than 16.
8948
8949 2014-05-30 Kai Tietz <ktietz@redhat.com>
8950
8951 PR target/60104
8952 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
8953 for sibling-tail-calls.
8954 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
8955 to its use.
8956 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
8957 (sibcall_insn_operand): Add check for sibcall_memory_operand.
8958
8959 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8960
8961 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
8962 * config/avr/avr-tables.opt: Regenerate.
8963 * config/avr/t-multilib: Regenerate.
8964 * doc/avr-mmcu.texi: Regenerate.
8965
8966 2014-05-30 Ian Lance Taylor <iant@google.com>
8967
8968 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
8969 target("sse").
8970
8971 2014-05-30 Tom de Vries <tom@codesourcery.com>
8972
8973 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
8974 Redefine as true.
8975
8976 2014-05-30 Tom de Vries <tom@codesourcery.com>
8977
8978 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
8979 * lra.c (initialize_lra_reg_info_element): Add init of
8980 actual_call_used_reg_set field.
8981 (lra): Call lra_create_live_ranges before lra_inheritance for
8982 -fuse-caller-save.
8983 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
8984 -fuse-caller-save.
8985 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
8986 instead of call_used_reg_set for -fuse-caller-save.
8987 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
8988
8989 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8990
8991 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
8992 to mov_imm.
8993 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
8994
8995 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
8996
8997 * ira.c (ira_get_dup_out_num): Check for output operands at
8998 the start of the loop. Handle cases where an included alternative
8999 follows an excluded one.
9000
9001 2014-05-29 Mike Stump <mikestump@comcast.net>
9002
9003 PR debug/61352
9004 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9005 post ld passes when lto is used.
9006
9007 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9008
9009 PR rtl-optimization/61325
9010 * lra-constraints.c (process_address): Rename to process_address_1.
9011 (process_address): New function.
9012
9013 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9014
9015 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9016 TYPES_BINOPV): New static data.
9017 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9018 New builtin.
9019 * config/aarch64/aarch64-simd.md (aarch64_ext,
9020 aarch64_im_lane_boundsi): New patterns.
9021 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9022 patterns for EXT.
9023 (aarch64_evpc_ext): New function.
9024
9025 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9026
9027 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9028 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9029 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9030 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9031 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9032
9033 2014-05-29 Tom de Vries <tom@codesourcery.com>
9034
9035 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9036
9037 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9038 Richard Sandiford <rdsandiford@googlemail.com>
9039
9040 * arm/iterators.md (shiftable_ops): New code iterator.
9041 (t2_binop0, arith_shift_insn): New code attributes.
9042 * arm/predicates.md (shift_nomul_operator): New predicate.
9043 * arm/arm.md (insn_enabled): Delete.
9044 (enabled): Remove insn_enabled test.
9045 (*arith_shiftsi): Delete. Replace with ...
9046 (*<arith_shift_insn>_multsi): ... new pattern.
9047 (*<arith_shift_insn>_shiftsi): ... new pattern.
9048 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9049
9050 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9051 Tom de Vries <tom@codesourcery.com>
9052
9053 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9054 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9055 clobber.
9056 (mips_split_call): Use POST_CALL_TMP_REG.
9057 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9058
9059 2014-05-29 Tom de Vries <tom@codesourcery.com>
9060
9061 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9062 with #ifdef STACK_REGS.
9063
9064 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9065
9066 * varasm.c (get_variable_section): Walk aliases.
9067 (place_block_symbol): Walk aliases.
9068
9069 2014-05-28 Tom de Vries <tom@codesourcery.com>
9070
9071 Revert:
9072 2014-05-28 Tom de Vries <tom@codesourcery.com>
9073
9074 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9075 * lra.c (initialize_lra_reg_info_element): Add init of
9076 actual_call_used_reg_set field.
9077 (lra): Call lra_create_live_ranges before lra_inheritance for
9078 -fuse-caller-save.
9079 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9080 -fuse-caller-save.
9081 * lra-constraints.c (need_for_call_save_p): Use
9082 actual_call_used_reg_set instead of call_used_reg_set for
9083 -fuse-caller-save.
9084 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9085
9086 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9087
9088 * doc/md.texi: Document that the % constraint character must
9089 be at the beginning of the string.
9090 * genoutput.c (validate_insn_alternatives): Check that '=',
9091 '+' and '%' only appear at the beginning of a constraint.
9092 * ira.c (commutative_constraint_p): Delete.
9093 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9094 at the start of the string.
9095 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9096 duplicate '='s.
9097 * config/arm/neon.md (bicdi3_neon): Likewise.
9098 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9099 (slt_si, sltu_si): Likewise.
9100 * config/vax/vax.md (sbcdi3): Likewise.
9101 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9102 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9103 (mul64): Move '%' to beginning of constraint.
9104 * config/arm/arm.md (*xordi3_insn): Likewise.
9105 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9106 (xorsi3): Likewise.
9107
9108 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9109
9110 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9111
9112 2014-05-28 Jason Merrill <jason@redhat.com>
9113
9114 PR c++/47202
9115 * cgraph.h (symtab_node::get_comdat_group_id): New.
9116 * cgraphunit.c (analyze_functions): Call it.
9117 * symtab.c (dump_symtab_node): Likewise.
9118 * tree.c (decl_comdat_group_id): New.
9119 * tree.h: Declare it.
9120 * lto-streamer-out.c (write_symbol): Use it.
9121 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9122
9123 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9124
9125 PR bootstrap/PR61146
9126 * wide-int.cc: Do not include longlong.h when compiling with clang.
9127
9128 2014-05-28 Richard Biener <rguenther@suse.de>
9129
9130 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9131 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9132 (vrp_visit_assignment_or_call): Print less vertical space.
9133 (vrp_visit_stmt): Likewise.
9134 (vrp_visit_phi_node): Likewise. For a PHI argument with
9135 VR_VARYING range consider recording it as copy.
9136
9137 2014-05-28 Richard Biener <rguenther@suse.de>
9138
9139 Revert
9140 2014-05-28 Richard Biener <rguenther@suse.de>
9141
9142 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9143
9144 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9145
9146 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9147 sufficiently aligned and an offset is used at the same time.
9148 (expand_expr_real_1): Likewise.
9149
9150 2014-05-28 Richard Biener <rguenther@suse.de>
9151
9152 PR middle-end/61045
9153 * fold-const.c (fold_comparison): When folding
9154 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9155 the sign of the remaining constant operand stays the same.
9156
9157 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9158
9159 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9160 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9161 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9162 to the assembler.
9163 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9164 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9165 (m32bit-doubles) Likewise.
9166 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9167 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9168 option for RL78.
9169
9170 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9171
9172 * configure.ac ($gcc_cv_ld_clearcap): New test.
9173 * configure: Regenerate.
9174 * config.in: Regenerate.
9175 * config/sol2.opt (mclear-hwcap): New option.
9176 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9177 * config/sol2-clearcap.map: Moved here from
9178 testsuite/gcc.target/i386/clearcap.map.
9179 * config/sol2-clearcapv2.map: Move here from
9180 gcc.target/i386/clearcapv2.map.
9181 * config/t-sol2 (install): Depend on install-clearcap-map.
9182 (install-clearcap-map): New target.
9183 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9184 -mclear-hwcap.
9185
9186 2014-05-28 Richard Biener <rguenther@suse.de>
9187
9188 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9189 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9190 ... here and remove the rest.
9191 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9192
9193 2014-05-28 Richard Biener <rguenther@suse.de>
9194
9195 PR tree-optimization/61335
9196 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9197 new range fails, drop to varying.
9198
9199 2014-05-28 Olivier Hainque <hainque@adacore.com>
9200
9201 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9202 (CPP_SPEC): Add entry for -mcpu=8548.
9203 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9204 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9205
9206 2014-05-28 Tom de Vries <tom@codesourcery.com>
9207
9208 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9209 * lra.c (initialize_lra_reg_info_element): Add init of
9210 actual_call_used_reg_set field.
9211 (lra): Call lra_create_live_ranges before lra_inheritance for
9212 -fuse-caller-save.
9213 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9214 -fuse-caller-save.
9215 * lra-constraints.c (need_for_call_save_p): Use
9216 actual_call_used_reg_set instead of call_used_reg_set for
9217 -fuse-caller-save.
9218 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9219
9220 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9221 Tom de Vries <tom@codesourcery.com>
9222
9223 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9224 to gccoptlist.
9225 (@item -fuse-caller-save): New item.
9226
9227 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9228 Tom de Vries <tom@codesourcery.com>
9229
9230 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9231 OPT_fuse_caller_save.
9232
9233 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9234 Tom de Vries <tom@codesourcery.com>
9235
9236 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9237 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9238 get_call_reg_set_usage.
9239 * resource.c (mark_set_resources, mark_target_live_regs): Use
9240 get_call_reg_set_usage.
9241 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9242 field.
9243 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9244 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9245 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9246 * ira-build.c (ira_create_allocno): Init
9247 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9248 (create_cap_allocno, propagate_allocno_info)
9249 (propagate_some_info_from_allocno)
9250 (copy_info_to_removed_store_destinations): Handle
9251 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9252 * ira-costs.c (ira_tune_allocno_costs): Use
9253 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9254
9255 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9256 Tom de Vries <tom@codesourcery.com>
9257
9258 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9259 and function_used_regs_valid fields.
9260 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9261 find_all_hard_reg_sets.
9262 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9263 (get_call_reg_set_usage): New function.
9264 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9265 * regs.h (get_call_reg_set_usage): Declare.
9266
9267 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9268
9269 PR libgcc/61152
9270 * config/dbx.h (License): Add Runtime Library Exception.
9271 * config/newlib-stdint.h (License): Same.
9272 * config/rtems.h (License): Same
9273 * config/initfini-array.h (License): Same
9274 * config/v850/v850.h (License): Same.
9275 * config/v850/v850-opts.h (License): Same
9276 * config/v850/rtems.h (License): Same.
9277
9278 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9279
9280 PR target/61044
9281 * doc/extend.texi (Local Labels): Note that label differences are
9282 not supported for AVR.
9283
9284 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9285 Olivier Hainque <hainque@adacore.com>
9286
9287 * rtl.h (set_for_reg_notes): Declare.
9288 * emit-rtl.c (set_for_reg_notes): New function.
9289 (set_unique_reg_note): Use it.
9290 * optabs.c (add_equal_note): Likewise
9291
9292 2014-05-27 Andrew Pinski <apinski@cavium.com>
9293
9294 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9295 Use <w> for the register in assembly template.
9296 (stack_protect_test): Use the mode of operands[0] for the result.
9297 (stack_protect_test_<mode>): Use <w> for the register
9298 in assembly template.
9299
9300 2014-05-27 DJ Delorie <dj@redhat.com>
9301
9302 * config/rx/rx.c (add_vector_labels): New.
9303 (rx_output_function_prologue): Call it.
9304 (rx_handle_func_attribute): Don't require empty arguments.
9305 (rx_handle_vector_attribute): New.
9306 (rx_attribute_table): Add "vector" attribute.
9307 * doc/extend.texi (interrupt, vector): Document new/changed
9308 RX-specific attributes.
9309
9310 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9311
9312 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9313
9314 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9315 predicate to detect a negative quotient.
9316
9317 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9318
9319 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9320 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9321 Add X - Y CMP 0 to X CMP Y transformation.
9322 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9323
9324 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9325
9326 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9327 before printing.
9328
9329 2014-05-27 Steve Ellcey <sellcey@mips.com>
9330
9331 * config/mips/mips.c: Add include of cgraph.h.
9332
9333 2014-05-27 Richard Biener <rguenther@suse.de>
9334
9335 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9336
9337 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9338
9339 PR libgcc/61152
9340 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9341 * config/arm/arm-cores.def (License): Same.
9342 * config/arm/arm-opts.h (License): Same.
9343 * config/arm/aout.h (License): Same.
9344 * config/arm/bpabi.h (License): Same.
9345 * config/arm/elf.h (License): Same.
9346 * config/arm/linux-elf.h (License): Same.
9347 * config/arm/linux-gas.h (License): Same.
9348 * config/arm/netbsd-elf.h (License): Same.
9349 * config/arm/uclinux-eabi.h (License): Same.
9350 * config/arm/uclinux-elf.h (License): Same.
9351 * config/arm/vxworks.h (License): Same.
9352
9353 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9354
9355 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9356 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9357 (arm_init_neon_builtins): Handle NEON_BSWAP.
9358 Define required type nodes.
9359 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9360 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9361 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9362 * config/arm/iterators.md (VDQHSD): New mode iterator.
9363
9364 2014-05-27 Richard Biener <rguenther@suse.de>
9365
9366 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9367 Try using literal operands when comparing value-ranges failed.
9368
9369 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9370
9371 * ira.c (commutative_operand): Adjust for change to recog_data.
9372 [Missing from previous commit.]
9373
9374 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9375
9376 * system.h (TEST_BIT): New macro.
9377 * recog.h (alternative_mask): New type.
9378 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9379 (recog_data_d): Replace alternative_enabled_p array with
9380 enabled_alternatives.
9381 (target_recog): New structure.
9382 (default_target_recog, this_target_recog): Declare.
9383 (get_enabled_alternatives, recog_init): Likewise.
9384 * recog.c (default_target_recog, this_target_recog): New variables.
9385 (get_enabled_alternatives): New function.
9386 (extract_insn): Use it.
9387 (recog_init): New function.
9388 (preprocess_constraints, constrain_operands): Adjust for change to
9389 recog_data.
9390 * postreload.c (reload_cse_simplify_operands): Likewise.
9391 * reload.c (find_reloads): Likewise.
9392 * ira-costs.c (record_reg_classes): Likewise.
9393 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9394 all alternatives after a disabled one would be skipped.
9395 (ira_implicitly_set_insn_hard_regs): Likewise.
9396 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9397 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9398 with enabled_alternatives.
9399 * lra.c (free_insn_recog_data): Update accordingly.
9400 (lra_update_insn_recog_data): Likewise.
9401 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9402 * lra-constraints.c (process_alt_operands): Likewise. Handle
9403 only_alternative as part of the enabled mask.
9404 * target-globals.h (this_target_recog): Declare.
9405 (target_globals): Add a recog field.
9406 (restore_target_globals): Restore this_target_recog.
9407 * target-globals.c: Include recog.h.
9408 (default_target_globals): Initialize recog field.
9409 (save_target_globals): Likewise.
9410 * reginfo.c (reinit_regs): Call recog_init.
9411 * toplev.c (backend_init_target): Likewise.
9412
9413 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9414
9415 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9416 rather than any named insn's code.
9417
9418 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9419
9420 PR libgcc/61152
9421 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9422 * config/arm/arm-cores.def (License): Same.
9423
9424 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9425
9426 * tree.h (decl_comdat_group): Declare.
9427 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9428 * tree.c (decl_comdat_group): Here.
9429
9430 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9431
9432 PR rtl-optimization/61222
9433 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9434 the shift, truncate the PLUS operand to the result mode.
9435
9436 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9437
9438 PR target/61271
9439 * config/i386/i386.c (ix86_rtx_costs)
9440 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9441 Fix condition.
9442
9443 2014-05-26 Martin Jambor <mjambor@suse.cz>
9444
9445 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9446 subreg uses.
9447
9448 2014-05-26 Richard Biener <rguenther@suse.de>
9449
9450 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9451 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9452 Provide specializations.
9453 (wi::int_traits <HOST_WIDE_INT>,
9454 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9455
9456 2014-05-26 Alan Modra <amodra@gmail.com>
9457
9458 PR target/61098
9459 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9460 params and return a bool. Remove dead code. Update comment.
9461 Assert we have a const_int source. Remove bogus code from
9462 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9463 handling of constants > 2G and reg_equal note, from..
9464 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9465 return value. Update comment. If we can, use a new pseudo
9466 for intermediate calculations.
9467 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9468 prototype.
9469 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9470 call to rs6000_emit_set_const in splitter.
9471 (movdi_internal64+2, +3): Likewise.
9472
9473 2014-05-26 Richard Biener <rguenther@suse.de>
9474
9475 * system.h: Define __STDC_FORMAT_MACROS before
9476 including inttypes.h.
9477 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9478 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9479 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9480 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9481 HOST_WIDEST_INT_C): Remove.
9482 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9483 if C99 inttypes.h is not available.
9484 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9485 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9486 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9487 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9488 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9489 (struct output_info): Likewise.
9490 (print_statistics): Adjust.
9491 (dump_bitmap_statistics): Likewise.
9492 * bt-load.c (migrate_btr_defs): Print with PRId64.
9493 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9494 (MAX_SAFE_MULTIPLIER): Adjust.
9495 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9496 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9497 dump_cgraph_node): Likewise.
9498 * final.c (dump_basic_block_info): Likewise.
9499 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9500 * gcov.c (format_gcov): Likewise.
9501 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9502 for calculation.
9503 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9504 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9505 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9506 Use PRId64 for dumping.
9507 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9508 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9509 (add_allocno_hard_regs): Adjust.
9510 * loop-doloop.c (doloop_modify): Print using PRId64.
9511 * loop-iv.c (inverse): Compute in uint64_t.
9512 (determine_max_iter, iv_number_of_iterations): Likewise.
9513 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9514 Print using PRId64.
9515 * lto-streamer-out.c (write_symbol): Use uint64_t.
9516 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9517 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9518 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9519 * modulo-sched.c (const_iteration_count): Use int64_t.
9520 (sms_schedule): Dump using PRId64.
9521 * predict.c (dump_prediction): Likewise.
9522 * pretty-print.h (pp_widest_integer): Remove.
9523 * profile.c (get_working_sets, is_edge_inconsistent,
9524 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9525 * tree-pretty-print.c (pp_double_int): Remove case handling
9526 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9527 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9528 and adjust users.
9529 (pass_optimize_bswap::execute): Remove restriction on hosts.
9530 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9531 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9532 * tree.c (widest_int_cst_value): Remove.
9533 * tree.h (widest_int_cst_value): Likewise.
9534 * value-prof.c (dump_histogram_value): Print using PRId64.
9535 * gengtype.c (main): Also inject int64_t.
9536 * ggc-page.c (struct max_alignment): Use int64_t.
9537 * alloc-pool.c (struct allocation_object_def): Likewise.
9538 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9539 for computation.
9540 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9541 * doc/tm.texi: Regenerated.
9542 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9543 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9544 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9545 mmix_output_register_setting): Use [u]int64_t in prototypes.
9546 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9547 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9548 mmix_output_octa, mmix_output_shifted_value): Adjust.
9549 (mmix_intval): Adjust. Remove unreachable case.
9550 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9551
9552 2014-05-26 Richard Biener <rguenther@suse.de>
9553
9554 * configure.ac: Drop __int64 type check. Insist that we
9555 found uint64_t and int64_t.
9556 * hwint.h (HOST_BITS_PER___INT64): Remove.
9557 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9558 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9559 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9560 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9561 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9562 for dst_q_src_df_rms_cdt.
9563 * configure: Regenerate.
9564 * config.in: Likewise.
9565
9566 2014-05-26 Michael Tautschnig <mt@debian.org>
9567
9568 PR target/61249
9569 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9570 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9571
9572 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9573
9574 PR rtl-optimization/61278
9575 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9576
9577 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9578
9579 PR rtl-optimization/61220
9580 Part of PR rtl-optimization/61225
9581 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9582 insn; skip split_edge for a block with only one successor.
9583
9584 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9585
9586 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
9587 for variables.
9588
9589 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9590
9591 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
9592 (update_vtable_references): New function.
9593 (function_and_variable_visibility): Rewrite also vtable initializers.
9594 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
9595
9596 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9597
9598 * ggc.h (ggc_grow): New function.
9599 * ggc-none.c (ggc_grow): New function.
9600 * ggc-page.c (ggc_grow): Likewise.
9601
9602 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9603
9604 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
9605 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
9606 comdat_can_be_unshared_p, cgraph_externally_visible_p,
9607 varpool_externally_visible_p, can_replace_by_local_alias,
9608 update_visibility_by_resolution_info, function_and_variable_visibility,
9609 pass_data_ipa_function_and_variable_visibility,
9610 make_pass_ipa_function_and_variable_visibility,
9611 whole_program_function_and_variable_visibility,
9612 pass_data_ipa_whole_program_visibility,
9613 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
9614 * cgraph.h (cgraph_local_node_p): Declare.
9615 * ipa-visibility.c: New file.
9616 * Makefile.in (OBJS): Add ipa-visiblity.o
9617
9618 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9619
9620 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
9621 that var decl is available.
9622
9623 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9624
9625 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
9626 symtab_node pointer.
9627 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
9628 (find_decls_types_r): Do not walk COMDAT_GROUP.
9629 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
9630 * varasm.c (make_decl_one_only): Use set_comdat_group;
9631 create node if needed.
9632 * ipa-inline-transform.c (save_inline_function_body): Update
9633 way we decl->symtab mapping.
9634 * symtab.c (symtab_hash, hash_node, eq_node
9635 symtab_insert_node_to_hashtable): Remove.
9636 (symtab_register_node): Update.
9637 (symtab_unregister_node): Update.
9638 (symtab_get_node): Reimplement as inline function.
9639 (symtab_add_to_same_comdat_group): Update.
9640 (symtab_dissolve_same_comdat_group_list): Update.
9641 (dump_symtab_base): Update.
9642 (verify_symtab_base): Update.
9643 (symtab_make_decl_local): Update.
9644 (fixup_same_cpp_alias_visibility): Update.
9645 (symtab_nonoverwritable_alias): Update.
9646 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
9647 * ipa.c (update_visibility_by_resolution_info): UPdate.
9648 * bb-reorder.c: Include cgraph.h
9649 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
9650 with comdat groups.
9651 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
9652 * cgraph.c (cgraph_get_create_node): Update.
9653 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
9654 and comdat_group_.
9655 (symtab_get_node): Make inline.
9656 (symtab_insert_node_to_hashtable): Remove.
9657 (symtab_can_be_discarded): Update.
9658 (decl_comdat_group): New function.
9659 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
9660 Update.
9661 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
9662 comdat group name.
9663 (read_comdat_group): New function.
9664 (input_node, input_varpool_node): Use it.
9665 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
9666 comdat groups.
9667 * mips.c (mips_start_unique_function): Likewise.
9668 (ix86_code_end): Likewise.
9669 (rs6000_code_end): Likweise.
9670 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
9671
9672 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9673
9674 * gengtype-state.c (fatal_reading_state): Bring offline.
9675 * optabs.c (widening_optab_handler): Bring offline.
9676 * optabs.h (widening_optab_handler): Likewise.
9677 * final.c (get_attr_length_1): Likewise.
9678
9679 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
9680
9681 * sched-int.h (sd_iterator_cond): Manually tail recurse.
9682
9683 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9684
9685 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
9686 (ppc440-compare): Include shift with dot.
9687 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
9688 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
9689 without dot.
9690 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
9691 without dot.
9692 (e6500_sfx2): Include it.
9693 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
9694 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
9695 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
9696 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
9697 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
9698 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
9699 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
9700 *lshiftrt_internal1le, *lshiftrt_internal1be,
9701 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
9702 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
9703 *rotldi3_internal10le, *rotldi3_internal10be,
9704 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
9705 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
9706 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
9707 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
9708 define_insns): Use type "shift" in the appropriate alternatives.
9709
9710 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9711
9712 * config/rs6000/rs6000.md (type): Add "logical". Delete
9713 "fast_compare".
9714 (dot): Adjust comment.
9715 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
9716 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
9717 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
9718 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
9719 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
9720 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
9721 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
9722 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9723
9724 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9725 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9726 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9727 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9728 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9729 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9730 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9731 * config/rs6000/8540.md (ppc8540_su): Adjust.
9732 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9733 cell-cmp-microcoded): Adjust.
9734 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9735 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9736 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9737 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9738 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9739 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9740 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9741 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9742 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9743 Adjust.
9744 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9745 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
9746 Adjust. Adjust comment.
9747 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9748 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9749
9750 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9751
9752 * config/rs6000/rs6000.md (type): Add "add".
9753 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
9754 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
9755 define_insns): Use it.
9756 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
9757
9758 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9759 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
9760 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9761 * config/rs6000/601.md (ppc601-integer): Adjust.
9762 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9763 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9764 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9765 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9766 * config/rs6000/8540.md (ppc8540_su): Adjust.
9767 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9768 cell-cmp-microcoded): Adjust.
9769 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
9770 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9771 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
9772 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
9773 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
9774 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9775 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
9776 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
9777 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
9778 Adjust.
9779 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
9780 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
9781 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9782 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
9783
9784 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9785
9786 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
9787 "delayed_compare", "var_delayed_compare".
9788 (var_shift): New attribute.
9789 (cell_micro): Adjust.
9790 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
9791 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
9792 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
9793 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9794 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9795 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9796 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9797 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
9798 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
9799 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
9800 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
9801 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
9802 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
9803 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
9804 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
9805 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
9806 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
9807 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
9808 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
9809 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
9810 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
9811 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
9812 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
9813 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9814 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9815
9816 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
9817 * config/rs6000/440.md (ppc440-integer): Adjust.
9818 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
9819 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
9820 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
9821 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
9822 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
9823 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
9824 * config/rs6000/8540.md (ppc8540_su): Adjust.
9825 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
9826 cell-cmp-microcoded): Adjust.
9827 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
9828 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9829 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
9830 e500mc64_delayed): Adjust.
9831 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
9832 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
9833 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
9834 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
9835 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
9836 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
9837 power6-delayed-compare, power6-var-delayed-compare): Adjust.
9838 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
9839 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
9840 Adjust comment.
9841 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
9842 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9843
9844 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9845
9846 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
9847 (bits): New mode_attr.
9848 (idiv_ldiv): Delete mode_attr.
9849 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
9850 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9851 rs6000_adjust_priority, is_nonpipeline_insn,
9852 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9853
9854 * config/rs6000/40x.md (ppc403-idiv): Adjust.
9855 * config/rs6000/440.md (ppc440-idiv): Adjust.
9856 * config/rs6000/476.md (ppc476-idiv): Adjust.
9857 * config/rs6000/601.md (ppc601-idiv): Adjust.
9858 * config/rs6000/603.md (ppc603-idiv): Adjust.
9859 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
9860 ppc620-ldiv): Adjust.
9861 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
9862 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
9863 * config/rs6000/8540.md (ppc8540_divide): Adjust.
9864 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
9865 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
9866 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
9867 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
9868 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
9869 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
9870 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
9871 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
9872 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
9873 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
9874 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
9875 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
9876 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
9877 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
9878 * config/rs6000/titan.md (titan_fxu_div): Adjust.
9879
9880 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9881
9882 * config/rs6000/rs6000.md (type): Delete "insert_word",
9883 "insert_dword". Add "insert".
9884 (size): Update comment.
9885 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9886 insn_must_be_first_in_group): Adjust.
9887 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9888 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9889 *insvsi_internal6, insvdi_internal): Adjust.
9890
9891 * config/rs6000/40x.md (ppc403-integer): Adjust.
9892 * config/rs6000/440.md (ppc440-integer): Adjust.
9893 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
9894 * config/rs6000/601.md (ppc601-integer): Adjust.
9895 * config/rs6000/603.md (ppc603-integer): Adjust.
9896 * config/rs6000/6xx.md (ppc604-integer): Adjust.
9897 * config/rs6000/7450.md (ppc7450-integer): Adjust.
9898 * config/rs6000/7xx.md (ppc750-integer): Adjust.
9899 * config/rs6000/8540.md (ppc8540_su): Adjust.
9900 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
9901 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
9902 * config/rs6000/e500mc.md (e500mc_su): Adjust.
9903 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
9904 * config/rs6000/e5500.md (e5500_sfx): Adjust.
9905 * config/rs6000/e6500.md (e6500_sfx): Adjust.
9906 * config/rs6000/mpc.md (mpccore-integer): Adjust.
9907 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
9908 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
9909 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
9910 * config/rs6000/power7.md (power7-integer): Adjust.
9911 * config/rs6000/power8.md (power8-1cyc): Adjust.
9912 * config/rs6000/rs64.md (rs64a-integer): Adjust.
9913 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
9914
9915 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9916
9917 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
9918 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
9919 (size): New attribute.
9920 (dot): New attribute.
9921 (cell_micro): Adjust.
9922 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
9923 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
9924 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
9925 umuldi3_highpart): Adjust.
9926 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
9927 rs6000_adjust_priority, is_nonpipeline_insn,
9928 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
9929
9930 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
9931 ppc405-imul3): Adjust.
9932 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
9933 * config/rs6000/476.md (ppc476-imul): Adjust.
9934 * config/rs6000/601.md (ppc601-imul): Adjust.
9935 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
9936 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
9937 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
9938 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
9939 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
9940 Adjust.
9941 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
9942 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
9943 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
9944 cell-imul): Adjust.
9945 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
9946 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
9947 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
9948 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
9949 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
9950 * config/rs6000/mpc.md (mpccore-imul): Adjust.
9951 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
9952 power4-lmul, power4-imul, power4-imul3): Adjust.
9953 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
9954 power5-lmul, power5-imul, power5-imul3): Adjust.
9955 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
9956 power6-lmul, power6-imul, power6-imul3): Adjust.
9957 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
9958 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
9959
9960 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
9961 rs64a-lmul): Adjust.
9962 * config/rs6000/titan.md (titan_imul): Adjust.
9963
9964 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9965
9966 * config/rs6000/rs6000.md (type): Add new value "halfmul".
9967 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
9968 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
9969 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
9970 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
9971 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
9972 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
9973 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
9974 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
9975 * config/rs6000/titan.md: Delete nonsensical comment.
9976 (titan_imul): Add type imul3.
9977 (titan_mulhw): Remove type imul3; add type halfmul.
9978
9979 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
9980
9981 * config/rs6000/rs6000.md (type): Reorder, reformat.
9982
9983 2014-05-23 Martin Jambor <mjambor@suse.cz>
9984
9985 PR tree-optimization/53787
9986 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
9987 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
9988 analysis_done, update all uses.
9989 * ipa-prop.c: Include domwalk.h
9990 (param_analysis_info): Removed.
9991 (param_aa_status): New type.
9992 (ipa_bb_info): Likewise.
9993 (func_body_info): Likewise.
9994 (ipa_get_bb_info): New function.
9995 (aa_overwalked): Likewise.
9996 (find_dominating_aa_status): Likewise.
9997 (parm_bb_aa_status_for_bb): Likewise.
9998 (parm_preserved_before_stmt_p): Changed to use new param AA info.
9999 (load_from_unmodified_param): Accept func_body_info as a parameter
10000 instead of parms_ainfo.
10001 (parm_ref_data_preserved_p): Changed to use new param AA info.
10002 (parm_ref_data_pass_through_p): Likewise.
10003 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10004 (compute_complex_assign_jump_func): Changed to use new param AA info.
10005 (compute_complex_ancestor_jump_func): Likewise.
10006 (ipa_compute_jump_functions_for_edge): Likewise.
10007 (ipa_compute_jump_functions): Removed.
10008 (ipa_compute_jump_functions_for_bb): New function.
10009 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10010 declarations down.
10011 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10012 and info, moved variable declarations down.
10013 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10014 node and info.
10015 (ipa_analyze_stmt_uses): Likewise.
10016 (ipa_analyze_params_uses): Removed.
10017 (ipa_analyze_params_uses_in_bb): New function.
10018 (ipa_analyze_controlled_uses): Likewise.
10019 (free_ipa_bb_info): Likewise.
10020 (analysis_dom_walker): New class.
10021 (ipa_analyze_node): Handle node-specific forbidden analysis,
10022 initialize and free func_body_info, use dominator walker.
10023 (ipcp_modif_dom_walker): New class.
10024 (ipcp_transform_function): Create and free func_body_info, use
10025 ipcp_modif_dom_walker, moved a lot of functionality there.
10026
10027 2014-05-23 Marek Polacek <polacek@redhat.com>
10028 Jakub Jelinek <jakub@redhat.com>
10029
10030 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10031 * gcc.c (sanitize_spec_function): Likewise.
10032 * convert.c (convert_to_integer): Include "ubsan.h". Add
10033 floating-point to integer instrumentation.
10034 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10035 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10036 SANITIZE_NONDEFAULT.
10037 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10038 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10039 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10040 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10041 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10042 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10043 float/double/long double.
10044 (ubsan_instrument_float_cast): New function.
10045 * ubsan.h (ubsan_instrument_float_cast): Declare.
10046
10047 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10048
10049 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10050 predicate.
10051 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10052 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10053 Adjust for tailcalling through registers.
10054 * config/aarch64/aarch64.h (enum reg_class): New caller save
10055 register class.
10056 (REG_CLASS_NAMES): Likewise.
10057 (REG_CLASS_CONTENTS): Likewise.
10058 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10059 Allow tailcalling without decls.
10060
10061 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10062
10063 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10064 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10065
10066 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10067 gsi, and variables v_* to v*.
10068
10069 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10070
10071 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10072
10073 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10074
10075 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10076 * omp-low.c: Update accordingly.
10077
10078 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10079 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10080 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10081 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10082 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10083 GF_OMP_TARGET_KIND_UPDATE.
10084
10085 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10086 Explicitly enumerate the expected region types.
10087
10088 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10089
10090 PR other/56955
10091 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10092 documentation; the old documentation didn't clearly state the
10093 constraints on the contents of the pointed-to storage.
10094
10095 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10096
10097 Fix bootstrap error on ia64
10098 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10099 Return default value.
10100
10101 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10102
10103 PR tree-optimization/54733
10104 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10105 (CMPNOP): Define.
10106 (find_bswap_or_nop_load): New.
10107 (find_bswap_1): Renamed to ...
10108 (find_bswap_or_nop_1): This. Also add support for memory source.
10109 (find_bswap): Renamed to ...
10110 (find_bswap_or_nop): This. Also add support for memory source and
10111 detection of bitwise operations equivalent to load in target
10112 endianness.
10113 (execute_optimize_bswap): Likewise. Also move its leading comment back
10114 in place and split statement transformation into ...
10115 (bswap_replace): This.
10116
10117 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10118
10119 PR rtl-optimization/61215
10120 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10121 simplify_gen_subreg until final substitution.
10122
10123 2014-05-23 Alan Modra <amodra@gmail.com>
10124
10125 PR target/61231
10126 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10127 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10128 Use "Y" constraint rather than "m".
10129
10130 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10131
10132 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10133 define.
10134 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10135 New function declaration.
10136 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10137 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10138 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10139 (aarch64_init_builtins) : Initialize builtins
10140 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10141 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10142 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10143 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10144 and __builtins_aarch64_set_fpsr.
10145 (aarch64_atomic_assign_expand_fenv): New function.
10146 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10147 (get_fpcr) : Likewise.
10148 (set_fpsr) : Likewise.
10149 (get_fpsr) : Likewise.
10150 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10151 and UNSPECV_SET_FPSR.
10152 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10153 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10154 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10155
10156 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10157
10158 PR rtl-optimization/60969
10159 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10160 constraints. Set up mem cost for NO_REGS case.
10161
10162 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10163
10164 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10165
10166 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10167
10168 * config/darwin.c: Include "lto-section-names.h".
10169 (LTO_SEGMENT_NAME): Don't define.
10170 * config/i386/winnt.c: Include "lto-section-names.h".
10171 * lto-streamer.c: Include "lto-section-names.h".
10172 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10173 * lto-wrapper.c: Include "lto-section-names.h".
10174 (LTO_SECTION_NAME_PREFIX): Don't define.
10175 * lto-section-names.h: New file.
10176 * cgraphunit.c: Include "lto-section-names.h".
10177
10178 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10179
10180 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10181
10182 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10183
10184 PR target/61208
10185 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10186
10187 2014-05-22 Nick Clifton <nickc@redhat.com>
10188
10189 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10190
10191 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10192
10193 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10194 -> (T)A transformation to integer types.
10195
10196 2014-05-22 Teresa Johnson <tejohnson@google.com>
10197
10198 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10199 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10200 (gcov_rewrite): Use gcov_nonruntime_assert.
10201 (gcov_open): Ditto.
10202 (gcov_write_words): Ditto.
10203 (gcov_write_length): Ditto.
10204 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10205 gcc_assert from IN_LIBGCOV code.
10206 (gcov_read_summary): Use gcov_error to flag profile corruption.
10207 (gcov_sync): Use gcov_nonruntime_assert.
10208 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10209 (gcov_histo_index): Use gcov_nonruntime_assert.
10210 (static void gcov_histogram_merge): Ditto.
10211 (compute_working_sets): Ditto.
10212 * gcov-io.h (gcov_nonruntime_assert): Define.
10213 (gcov_error): Define for !IN_LIBGCOV
10214
10215 2014-05-22 Richard Biener <rguenther@suse.de>
10216
10217 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10218 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10219 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10220 and deallocation site.
10221 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10222 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10223 passing through the incoming points-to set.
10224 (handle_lhs_call): Use flags argument instead of recomputing it.
10225 (find_func_aliases_for_call): Call handle_lhs_call with proper
10226 call return flags.
10227
10228 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10229
10230 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10231 all padding bits in REAL_VALUE_TYPE are cleared.
10232
10233 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10234
10235 Cleanup and improve multipass_dfa_lookahead_guard
10236 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10237 (core2i7_first_cycle_multipass_begin,)
10238 (core2i7_first_cycle_multipass_issue,)
10239 (core2i7_first_cycle_multipass_backtrack): Update signature.
10240 * config/ia64/ia64.c
10241 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10242 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10243 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10244 hook definition.
10245 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10246 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10247 values.
10248 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10249 return values.
10250 * doc/tm.texi: Regenerate.
10251 * doc/tm.texi.in
10252 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10253 * haifa-sched.c (ready_try): Make signed to allow negative values.
10254 (rebug_ready_list_1): Update.
10255 (choose_ready): Simplify.
10256 (sched_extend_ready_list): Update.
10257
10258 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10259
10260 Remove IA64 speculation tweaking flags
10261 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10262 speculation tuning flags.
10263 (msched-prefer-non-data-spec-insns,)
10264 (msched-prefer-non-control-spec-insns): Obsolete options.
10265 * haifa-sched.c (choose_ready): Remove handling of
10266 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10267 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10268 and PREFER_NON_DATA_SPEC.
10269 * sel-sched.c (process_spec_exprs): Remove handling of
10270 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10271
10272 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10273
10274 Improve scheduling debug output
10275 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10276 (advance_one_cycle): Update.
10277 (schedule_insn, queue_to_ready): Add debug printouts.
10278 (debug_ready_list_1): New static function.
10279 (debug_ready_list): Update.
10280 (max_issue): Add debug printouts.
10281 (dump_insn_stream): New static function.
10282 (schedule_block): Use it. Also better indent printouts.
10283
10284 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10285
10286 Fix sched_insn debug counter
10287 * haifa-sched.c (schedule_insn): Update.
10288 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10289 (save_backtrack_point, restore_backtrack_point): Update.
10290 (first_nonscheduled_insn): New static function.
10291 (queue_to_ready, choose_ready): Use it.
10292 (schedule_block): Init nonscheduled_insns_begin.
10293 (sched_emit_insn): Update.
10294
10295
10296 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10297
10298 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10299 to GENERAL_REGS.
10300 (aarch64_secondary_reload) : LikeWise.
10301 (aarch64_class_max_nregs) : Remove CORE_REGS.
10302 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10303 (REG_CLASS_NAMES) : Likewise.
10304 (REG_CLASS_CONTENTS) : LikeWise.
10305 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10306
10307 2014-05-21 Guozhi Wei <carrot@google.com>
10308
10309 PR target/61202
10310 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10311 constraint.
10312 (vqdmulhq_n_s16): Likewise.
10313
10314 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10315
10316 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10317
10318 2014-05-21 Marek Polacek <polacek@redhat.com>
10319
10320 PR sanitizer/61272
10321 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10322
10323 2014-05-21 Martin Jambor <mjambor@suse.cz>
10324
10325 * doc/invoke.texi (Optimize Options): Document parameters
10326 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10327 ipa-cp-array-index-hint-bonus.
10328
10329 2014-05-21 Mark Wielaard <mjw@redhat.com>
10330
10331 PR debug/16063
10332 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10333 version >= 3 or not strict DWARF.
10334 * langhooks.h (struct lang_hooks_for_types): Add
10335 enum_underlying_base_type.
10336 * langhooks.c (lhd_enum_underlying_base_type): New function.
10337 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10338 enum_underlying_base_type.
10339 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10340 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10341 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10342
10343 2014-05-21 Richard Biener <rguenther@suse.de>
10344
10345 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10346
10347 2014-05-21 John Marino <gnugcc@marino.st>
10348
10349 * config.gcc (*-*-dragonfly*): New target.
10350 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10351 * configure: Regenerate.
10352 * config/dragonfly-stdint.h: New.
10353 * config/dragonfly.h: New.
10354 * config/dragonfly.opt: New.
10355 * config/i386/dragonfly.h: New.
10356 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10357
10358 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10359
10360 * tree.def (VOID_CST): New.
10361 * tree-core.h (TI_VOID): New.
10362 * tree.h (void_node): New.
10363 * tree.c (tree_node_structure_for_code, tree_code_size)
10364 (iterative_hash_expr): Handle VOID_CST.
10365 (build_common_tree_nodes): Initialize void_node.
10366
10367 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10368
10369 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10370 functions.
10371 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10372
10373 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10374 more places.
10375
10376 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10377 flag_reorder_blocks_and_partition.
10378 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10379
10380 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10381
10382 PR target/54236
10383 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10384 constraints.
10385 (*addc_r_t): Add new insn_and_split.
10386
10387 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10388
10389 PR middle-end/61252
10390 * omp-low.c (handle_simd_reference): New function.
10391 (lower_rec_input_clauses): Use it. Defer adding reference
10392 initialization even for reduction without placeholder if in simd,
10393 handle it properly later on.
10394
10395 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10396
10397 PR tree-optimization/60899
10398 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10399 assume all static symbols will have definition wile parsing and
10400 check the do have definition later in compilation; check that
10401 variable referring symbol will be output before concluding that
10402 reference is safe; be conservative for referring local statics;
10403 be more precise about when comdat is output in other partition.
10404
10405 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10406
10407 PR bootstrap/60984
10408 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10409 parameter.
10410 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10411 (ipa_inline): Loop inline_to_all_callers until no more aliases
10412 are removed.
10413
10414 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10415
10416 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10417 set writeonly flag only for vars actually written to.
10418
10419 2014-05-20 Dehao Chen <dehao@google.com>
10420
10421 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10422 and callee count to get clone count.
10423 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10424 count in copy_body.
10425
10426 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10427
10428 PR rtl-optimization/61243
10429 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10430
10431 2014-05-20 Xinliang David Li <davidxl@google.com>
10432
10433 * cgraphunit.c (walk_polymorphic_call_targets): Add
10434 dbgcnt and fopt-info support.
10435 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10436 * ipa-devirt.c (ipa_devirt): Ditto.
10437 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10438 * ipa.c (walk_polymorphic_call_targets): Ditto.
10439 * gimple-fold.c (fold_gimple_assign): Ditto.
10440 (gimple_fold_call): Ditto.
10441 * dbgcnt.def: New counter.
10442
10443 2014-05-20 DJ Delorie <dj@redhat.com>
10444
10445 * config/msp430/msp430.md (split): Don't allow subregs when
10446 splitting SImode adds.
10447 (andneghi): Fix subtraction logic.
10448 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10449
10450 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10451
10452 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10453 symbols.
10454 * except.c (switch_to_exception_section, resolve_unique_section,
10455 get_named_text_section, default_function_rodata_section,
10456 align_variable, get_block_for_decl, default_section_type_flags):
10457 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10458 * symtab.c (symtab_add_to_same_comdat_group,
10459 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10460 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10461 Likewise.
10462 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10463 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10464 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10465 (c6x_function_in_section_p): Likewise.
10466 * config/darwin.c (machopic_select_section): Likewise.
10467 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10468 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10469 * config/mep/mep.c (mep_select_section): LIkewise.
10470 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10471
10472 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10473
10474 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10475 EH region of calls to pure functions that can throw an exception.
10476 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10477 (copy_reference_ops_from_call): Also copy the EH region of the call if
10478 it can throw an exception.
10479
10480 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10481
10482 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10483 nested VEC_SELECTs that are inverses of each other.
10484
10485 2014-05-20 Richard Biener <rguenther@suse.de>
10486
10487 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10488 (extract_and_process_scc_for_name): not here.
10489 (cond_dom_walker::before_dom_children): Only process
10490 stmts that end the BB in interesting ways.
10491 (run_scc_vn): Mark param uses as visited.
10492
10493 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10494
10495 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10496 arm_restrict_it.
10497
10498 2014-05-20 Nick Clifton <nickc@redhat.com>
10499
10500 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10501 (msp430_gimplify_va_arg_expr): New function.
10502 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10503
10504 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10505 operand 0 in order to prevent confusion about the number of
10506 registers involved.
10507
10508 2014-05-20 Richard Biener <rguenther@suse.de>
10509
10510 PR tree-optimization/61221
10511 * tree-ssa-pre.c (el_to_update): Remove.
10512 (eliminate_dom_walker::before_dom_children): Handle released
10513 VDEFs by value-numbering them to the associated VUSE. Update
10514 stmt immediately for substituted call address.
10515 (eliminate): Remove delayed stmt updating code.
10516 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10517 possibly late re-numbered vuses.
10518 (vn_reference_lookup_2): Adjust.
10519 (vn_reference_lookup_pieces): Likewise.
10520 (vn_reference_lookup): Likewise.
10521
10522 2014-05-20 Richard Biener <rguenther@suse.de>
10523
10524 * config.gcc: Remove need_64bit_hwint.
10525 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10526 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10527 it to be true.
10528 * config.in: Regenerate.
10529 * configure: Likewise.
10530
10531 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10532
10533 * doc/extend.texi: Create Label Attributes section,
10534 move all label attributes into it and reference it.
10535
10536 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10537
10538 * arm.c (thumb1_reorg): When scanning backwards skip anything
10539 that's not a proper insn.
10540
10541 2014-05-19 Richard Biener <rguenther@suse.de>
10542
10543 PR tree-optimization/61221
10544 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10545 Do nothing for unreachable blocks.
10546 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10547 Improve unreachability detection.
10548
10549 2014-05-19 Richard Biener <rguenther@suse.de>
10550
10551 PR tree-optimization/61209
10552 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10553
10554 2014-05-19 Nick Clifton <nickc@redhat.com>
10555
10556 * except.c (init_eh): Fix computation of builtin setjmp buffer
10557 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10558
10559 2014-05-19 Richard Biener <rguenther@suse.de>
10560
10561 PR tree-optimization/61184
10562 * tree-vrp.c (is_negative_overflow_infinity): Use
10563 TREE_OVERFLOW_P and do that check first.
10564 (is_positive_overflow_infinity): Likewise.
10565 (is_overflow_infinity): Likewise.
10566 (vrp_operand_equal_p): Properly treat operands with
10567 differing overflow as not equal.
10568
10569 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10570
10571 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10572 shift simplification where it was intended.
10573
10574 2014-05-19 Christian Bruel <christian.bruel@st.com>
10575
10576 PR target/61195
10577 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10578
10579 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10580
10581 PR target/61084
10582 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
10583 than wide_int.
10584
10585 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10586
10587 * reg-notes.def (CROSSING_JUMP): Likewise.
10588 * rtl.h (rtx_def): Update comment for jump flag.
10589 (CROSSING_JUMP_P): Define.
10590 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
10591 of a REG_CROSSING_JUMP note.
10592 * cfghooks.c (tidy_fallthru_edges): Likewise.
10593 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
10594 * emit-rtl.c (try_split): Likewise.
10595 * haifa-sched.c (sched_create_recovery_edges): Likewise.
10596 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
10597 * jump.c (redirect_jump_2): Likewise.
10598 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
10599 (relax_delay_slots): Likewise.
10600 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
10601 (bbit_di): Likewise.
10602 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
10603 * config/sh/sh.md (jump_compact): Likewise.
10604 * bb-reorder.c (rotate_loop): Likewise.
10605 (pass_duplicate_computed_gotos::execute): Likewise.
10606 (add_reg_crossing_jump_notes): Rename to...
10607 (update_crossing_jump_flags): ...this.
10608 (pass_partition_blocks::execute): Update accordingly.
10609
10610 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
10611
10612 * tree.h: Remove extraneous template <>.
10613
10614 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10615
10616 * ipa.c (symtab_remove_unreachable_nodes): Remove
10617 symbol from comdat group if its body was eliminated.
10618 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
10619 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
10620 (symtab_unregister_node): ... this one.
10621 (verify_symtab_base): More strict checking of comdats.
10622 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
10623
10624 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10625
10626 * tree-pass.h (make_pass_ipa_comdats): New pass.
10627 * timevar.def (TV_IPA_COMDATS): New timevar.
10628 * passes.def (pass_ipa_comdats): Add.
10629 * Makefile.in (OBJS): Add ipa-comdats.o
10630 * ipa-comdats.c: New file.
10631
10632 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10633
10634 * ipa.c (update_visibility_by_resolution_info): New function.
10635 (function_and_variable_visibility): Use it.
10636
10637 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
10638
10639 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
10640 New functions.
10641 (FOR_EACH_DEFINED_SYMBOL): New macro.
10642 (varpool_first_static_initializer, varpool_next_static_initializer,
10643 varpool_first_defined_variable, varpool_next_defined_variable):
10644 Fix comments.
10645 (symtab_in_same_comdat_p): Correctly deal with inline functions.
10646
10647 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10648
10649 * ggc-page.c (ggc_handle_finalizers): Add comment.
10650
10651 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10652
10653 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
10654 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
10655 (ggc_internal_cleared_alloc): Likewise.
10656 * ggc-page.c (finalizer): New class.
10657 (vec_finalizer): Likewise.
10658 (globals::finalizers): New member.
10659 (globals::vec_finalizers): Likewise.
10660 (ggc_internal_alloc): Record the finalizer if any for the block being
10661 allocated.
10662 (ggc_handle_finalizers): New function.
10663 (ggc_collect): Call ggc_handle_finalizers.
10664 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
10665 finalizer.
10666 (ggc_internal_cleared_alloc): Likewise.
10667 (finalize): New function.
10668 (need_finalization_p): Likewise.
10669 (ggc_alloc): Install the type's destructor as the finalizer if it
10670 might do something.
10671 (ggc_cleared_alloc): Likewise.
10672 (ggc_vec_alloc): Likewise.
10673 (ggc_cleared_vec_alloc): Likewise.
10674
10675 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10676
10677 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
10678
10679 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10680
10681 * alias.c (record_alias_subset): Adjust.
10682 * bitmap.c (bitmap_element_allocate): Likewise.
10683 (bitmap_gc_alloc_stat): Likewise.
10684 * cfg.c (init_flow): Likewise.
10685 (alloc_block): Likewise.
10686 (unchecked_make_edge): Likewise.
10687 * cfgloop.c (alloc_loop): Likewise.
10688 (flow_loops_find): Likewise.
10689 (rescan_loop_exit): Likewise.
10690 * cfgrtl.c (init_rtl_bb_info): Likewise.
10691 * cgraph.c (insert_new_cgraph_node_version): Likewise.
10692 (cgraph_allocate_node): Likewise.
10693 (cgraph_create_edge_1): Likewise.
10694 (cgraph_allocate_init_indirect_info): Likewise.
10695 * cgraphclones.c (cgraph_clone_edge): Likewise.
10696 * cgraphunit.c (add_asm_node): Likewise.
10697 (init_lowered_empty_function): Likewise.
10698 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
10699 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10700 (alpha_use_linkage): Likewise.
10701 * config/arc/arc.c (arc_init_machine_status): Likewise.
10702 * config/arm/arm.c (arm_init_machine_status): Likewise.
10703 * config/avr/avr.c (avr_init_machine_status): Likewise.
10704 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10705 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
10706 * config/cris/cris.c (cris_init_machine_status): Likewise.
10707 * config/darwin.c (machopic_indirection_name): Likewise.
10708 (darwin_build_constant_cfstring): Likewise.
10709 (darwin_enter_string_into_cfstring_table): Likewise.
10710 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
10711 * config/frv/frv.c (frv_init_machine_status): Likewise.
10712 * config/i386/i386.c (get_dllimport_decl): Likewise.
10713 (ix86_init_machine_status): Likewise.
10714 (assign_386_stack_local): Likewise.
10715 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10716 (i386_pe_maybe_record_exported_symbol): Likewise.
10717 (i386_pe_record_stub): Likewise.
10718 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10719 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10720 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10721 (m32c_note_pragma_address): Likewise.
10722 * config/mep/mep.c (mep_init_machine_status): Likewise.
10723 (mep_note_pragma_flag): Likewise.
10724 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10725 (mips16_local_alias): Likewise.
10726 (mips_init_machine_status): Likewise.
10727 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10728 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10729 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
10730 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
10731 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
10732 * config/pa/pa.c (pa_init_machine_status): Likewise.
10733 (pa_get_deferred_plabel): Likewise.
10734 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
10735 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10736 (rs6000_init_machine_status): Likewise.
10737 (output_toc): Likewise.
10738 * config/s390/s390.c (s390_init_machine_status): Likewise.
10739 * config/score/score.c (score_output_external): Likewise.
10740 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10741 * config/spu/spu.c (spu_init_machine_status): Likewise.
10742 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
10743 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
10744 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10745 * coverage.c (coverage_end_function): Likewise.
10746 * dbxout.c (dbxout_init): Likewise.
10747 * doc/gty.texi: Don't mention variable_size attribute.
10748 * dwarf2cfi.c (new_cfi): Adjust.
10749 (new_cfi_row): Likewise.
10750 (copy_cfi_row): Likewise.
10751 (create_cie_data): Likewise.
10752 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
10753 (new_loc_descr): Likewise.
10754 (find_AT_string_in_table): Likewise.
10755 (add_addr_table_entry): Likewise.
10756 (new_die): Likewise.
10757 (add_var_loc_to_decl): Likewise.
10758 (clone_die): Likewise.
10759 (clone_as_declaration): Likewise.
10760 (break_out_comdat_types): Likewise.
10761 (new_loc_list): Likewise.
10762 (add_loc_descr_to_each): Likewise.
10763 (add_location_or_const_value_attribute): Likewise.
10764 (add_linkage_name): Likewise.
10765 (lookup_filename): Likewise.
10766 (dwarf2out_var_location): Likewise.
10767 (new_line_info_table): Likewise.
10768 (dwarf2out_init): Likewise.
10769 (mem_loc_descriptor): Likewise.
10770 (loc_descriptor): Likewise.
10771 (add_const_value_attribute): Likewise.
10772 (tree_add_const_value_attribute): Likewise.
10773 (comp_dir_string): Likewise.
10774 (dwarf2out_vms_debug_main_pointer): Likewise.
10775 (string_cst_pool_decl): Likewise.
10776 * emit-rtl.c (set_mem_attrs): Likewise.
10777 (get_reg_attrs): Likewise.
10778 (start_sequence): Likewise.
10779 (init_emit): Likewise.
10780 (init_emit_regs): Likewise.
10781 * except.c (init_eh_for_function): Likewise.
10782 (gen_eh_region): Likewise.
10783 (gen_eh_region_catch): Likewise.
10784 (gen_eh_landing_pad): Likewise.
10785 (add_call_site): Likewise.
10786 * function.c (add_frame_space): Likewise.
10787 (insert_temp_slot_address): Likewise.
10788 (assign_stack_temp_for_type): Likewise.
10789 (get_hard_reg_initial_val): Likewise.
10790 (allocate_struct_function): Likewise.
10791 (prepare_function_start): Likewise.
10792 (types_used_by_var_decl_insert): Likewise.
10793 * gengtype.c (variable_size_p): Remove function.
10794 (enum alloc_quantity): Remove enum.
10795 (write_typed_alloc_def): Remove function.
10796 (write_typed_struct_alloc_def): Likewise.
10797 (write_typed_typedef_alloc_def): Likewise.
10798 (write_typed_alloc_defns): Likewise.
10799 (main): Adjust.
10800 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
10801 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
10802 * ggc.h (ggc_alloc): new function.
10803 (ggc_cleared_alloc): Likewise.
10804 (ggc_vec_alloc): Template on type of vector element, and remove
10805 element size argument.
10806 (ggc_cleared_vec_alloc): Likewise.
10807 * gimple.c (gimple_build_omp_for): Adjust.
10808 (gimple_copy): Likewise.
10809 * ipa-cp.c (get_replacement_map): Likewise.
10810 (find_aggregate_values_for_callers_subset): Likewise.
10811 (known_aggs_to_agg_replacement_list): Likewise.
10812 * ipa-devirt.c (get_odr_type): Likewise.
10813 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
10814 (read_agg_replacement_chain): Likewise.
10815 * loop-iv.c (get_simple_loop_desc): Likewise.
10816 * lto-cgraph.c (input_node_opt_summary): Likewise.
10817 * lto-section-in.c (lto_new_in_decl_state): Likewise.
10818 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10819 (input_eh_region): Likewise.
10820 (input_eh_lp): Likewise.
10821 (input_cfg): Likewise.
10822 * optabs.c (set_optab_libfunc): Likewise.
10823 (init_tree_optimization_optabs): Likewise.
10824 (set_conv_libfunc): Likewise.
10825 * passes.c (do_per_function_toporder): Likewise.
10826 * rtl.h: Don't use variable_size gty attribute.
10827 * sese.c (if_region_set_false_region): Adjust.
10828 * stringpool.c (gt_pch_save_stringpool): Likewise.
10829 * target-globals.c (save_target_globals): Likewise.
10830 * toplev.c (general_init): Likewise.
10831 * trans-mem.c (record_tm_replacement): Likewise.
10832 (split_bb_make_tm_edge): Likewise.
10833 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10834 * tree-data-ref.h (lambda_vector_new): Likewise.
10835 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10836 * tree-iterator.c (tsi_link_before): Likewise.
10837 (tsi_link_after): Likewise.
10838 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10839 * tree-ssa-loop-niter.c (record_estimate): Likewise.
10840 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10841 * tree-ssa-operands.h: Don't use variable_size gty attribute.
10842 * tree-ssa.c (init_tree_ssa): Adjust.
10843 * tree-ssanames.c (set_range_info): Likewise.
10844 (get_ptr_info): Likewise.
10845 (duplicate_ssa_name_ptr_info): Likewise.
10846 (duplicate_ssa_name_range_info): Likewise.
10847 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
10848 (unpack_ts_fixed_cst_value_fields): Likewise.
10849 * tree.c (build_fixed): Likewise.
10850 (build_real): Likewise.
10851 (build_string): Likewise.
10852 (decl_priority_info): Likewise.
10853 (decl_debug_expr_insert): Likewise.
10854 (decl_value_expr_insert): Likewise.
10855 (decl_debug_args_insert): Likewise.
10856 (type_hash_add): Likewise.
10857 (build_omp_clause): Likewise.
10858 * ubsan.c (decl_for_type_insert): Likewise.
10859 * varasm.c (get_unnamed_section): Likewise.
10860 (get_noswitch_section): Likewise.
10861 (get_section): Likewise.
10862 (get_block_for_section): Likewise.
10863 (create_block_symbol): Likewise.
10864 (build_constant_desc): Likewise.
10865 (create_constant_pool): Likewise.
10866 (force_const_mem): Likewise.
10867 (record_tm_clone_pair): Likewise.
10868 * varpool.c (varpool_create_empty_node): Likewise.
10869
10870 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
10871
10872 * dwarf2out.c (tree_add_const_value_attribute): Call
10873 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
10874 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
10875 instead of ggc_internal_<x>alloc_stat.
10876 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
10877 (ggc_realloc): Likewise.
10878 * ggc-none.c (ggc_internal_alloc): Likewise.
10879 (ggc_internal_cleared_alloc): Likewise.
10880 * ggc-page.c: Likewise.
10881 * ggc.h (ggc_internal_alloc_stat): Likewise.
10882 (ggc_internal_alloc): Remove macro.
10883 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
10884 (ggc_internal_cleared_alloc): Remove macro.
10885 (GGC_RESIZEVEC): Adjust.
10886 (ggc_resizevar): Remove macro.
10887 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
10888 (ggc_internal_cleared_vec_alloc_stat): Likewise.
10889 (ggc_internal_vec_cleared_alloc): Remove macro.
10890 (ggc_alloc_atomic_stat): Drop _stat suffix.
10891 (ggc_alloc_atomic): Remove macro.
10892 (ggc_alloc_cleared_atomic): Remove macro.
10893 (ggc_alloc_string_stat): Drop _stat suffix.
10894 (ggc_alloc_string): Remove macro.
10895 (ggc_alloc_rtx_def_stat): Adjust.
10896 (ggc_alloc_tree_node_stat): Likewise.
10897 (ggc_alloc_cleared_tree_node_stat): Likewise.
10898 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
10899 (ggc_alloc_cleared_simd_clone_stat): Likewise.
10900 * gimple.c (gimple_build_omp_for): Likewise.
10901 (gimple_copy): Likewise.
10902 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
10903 * toplev.c (realloc_for_line_map): Adjust.
10904 * tree-data-ref.h (lambda_vector_new): Likewise.
10905 * tree-phinodes.c (allocate_phi_node): Likewise.
10906 * tree.c (grow_tree_vec_stat): Likewise.
10907 * vec.h (va_gc::reserve): Adjust.
10908
10909 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
10910
10911 * config/microblaze/microblaze.c (break_handler): New Declaration.
10912 (microblaze_break_function_p,microblaze_is_break_handler): New.
10913 (compute_frame_size): Use microblaze_break_function_p.
10914 Add the test of break_handler.
10915 (microblaze_function_prologue) : Add the test of variable
10916 break_handler. Check the fnname by BREAK_HANDLER_NAME.
10917 (microblaze_function_epilogue) : Add the test of break_handler.
10918 (microblaze_globalize_label) : Add the test of break_handler.
10919 Check the name by BREAK_HANDLER_NAME.
10920
10921 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
10922
10923 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
10924 microblaze_is_break_handler test.
10925 (call_internal1,call_value_intern): Use microblaze_break_function_p.
10926 Use SYMBOL_REF_DECL.
10927
10928 * config/microblaze/microblaze-protos.h
10929 (microblaze_break_function_p,microblaze_is_break_handler):
10930 New Declaration.
10931
10932 * doc/extend.texi (MicroBlaze break_handler Functions): Document
10933 new MicroBlaze break_handler functions.
10934
10935 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10936
10937 * doc/extend.texi (Size of an asm): Move node text according
10938 to its @menu entry position.
10939
10940 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
10941
10942 PR tree-optimization/61140
10943 PR tree-optimization/61150
10944 PR tree-optimization/61197
10945 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
10946
10947 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
10948
10949 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
10950
10951 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
10952
10953 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
10954 __SIZEOF_INT128__ is defined.
10955
10956 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10957
10958 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
10959 (rs6000_delegitimize_address): Use it.
10960
10961 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
10962
10963 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
10964 inplace argument. Store the new address in the original MEM when true.
10965 * emit-rtl.c (change_address_1): Likewise.
10966 (adjust_address_1, adjust_automodify_address_1, offset_address):
10967 Update accordingly.
10968 * rtl.h (plus_constant): Add an inplace argument.
10969 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
10970 when true. Avoid generating (plus X (const_int 0)).
10971 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
10972 in-place. Pass true to plus_constant.
10973 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
10974
10975 2014-05-16 Dehao Chen <dehao@google.com>
10976
10977 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
10978
10979 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10980
10981 PR target/54089
10982 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
10983 patterns.
10984 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
10985
10986 2014-05-16 Dehao Chen <dehao@google.com>
10987
10988 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
10989 optimize_function_for_size_p.
10990 * regs.h (REG_FREQ_FROM_BB): Likewise.
10991
10992 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
10993
10994 PR target/51244
10995 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
10996 negt_reg_operand cases.
10997 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
10998 predicate.
10999 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11000
11001 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11002
11003 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11004 target variants.
11005
11006 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11007
11008 Revert:
11009 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11010
11011 * tree-cfg.c (dump_function_to_file): Dump the return type of
11012 functions, in a line to itself before the function body, mimicking
11013 the layout of a C function.
11014
11015 2014-05-16 Dehao Chen <dehao@google.com>
11016
11017 * cfghooks.c (make_forwarder_block): Use direct computation to
11018 get fall-through edge's count and frequency.
11019
11020 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11021
11022 * config/arc/arc.c (arc_init): Fix typo in error message.
11023 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11024 (split_stack_prologue_scratch_regno): Likewise.
11025 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11026 word from error message.
11027
11028 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11029
11030 * ira-costs.c: Fix typo in comment.
11031
11032 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11033
11034 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11035
11036 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11037
11038 * varpool.c (dump_varpool_node): Dump write-only flag.
11039 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11040 write-only flag.
11041 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11042 write-only variables.
11043 * ipa.c (process_references): New function.
11044 (set_readonly_bit): New function.
11045 (set_writeonly_bit): New function.
11046 (clear_addressable_bit): New function.
11047 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11048 fix handling of aliases.
11049 * cgraph.h (struct varpool_node): Add writeonly flag.
11050
11051 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11052
11053 PR rtl-optimization/60969
11054 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11055 Calculate costs for this case.
11056
11057 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11058
11059 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11060 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11061
11062 2014-05-16 Richard Biener <rguenther@suse.de>
11063
11064 PR tree-optimization/61194
11065 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11066 bool patterns ending in a COND_EXPR.
11067
11068 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11069
11070 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11071
11072 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11073
11074 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11075 where we were unable to cost an RTX.
11076
11077 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11078
11079 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11080 HIGH, LO_SUM.
11081
11082 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11083 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11084
11085 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11086
11087 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11088 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11089
11090 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11091 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11092
11093 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11094 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11095
11096 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11097 operators.
11098
11099 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11100 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11101
11102 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11103 DIV/MOD.
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_arith_op_extract_p): New.
11109 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
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): Improve costs for
11115 rotates and shifts.
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): Cost
11121 ZERO_EXTEND and SIGN_EXTEND better.
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_costs): Improve cost for
11127 logical operations.
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): Use address
11133 costs when costing loads and stores to memory.
11134
11135 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11136 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11137
11138 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11139 for SET RTX.
11140
11141 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11142
11143 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11144
11145 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11146 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11147
11148 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11149 to...
11150 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11151 well formed.
11152 (aarch64_rtx_mult_cost): New.
11153 (aarch64_rtx_costs): Use it, refactor as appropriate.
11154
11155 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11156 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11157
11158 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11159 emit instructions, return number of instructions which would
11160 be emitted.
11161 (aarch64_add_constant): Update call to aarch64_build_constant.
11162 (aarch64_output_mi_thunk): Likewise.
11163 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11164 a CONST_DOUBLE.
11165
11166 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11167
11168 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11169 (TARGET_RTX_COSTS): Call it.
11170
11171 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11172
11173 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11174 (cortexa57_vector_cost): Likewise.
11175 (cortexa57_tunings): Use them.
11176
11177 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11178
11179 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11180 (cpu_addrcost_table): Use it.
11181 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11182 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11183 move it.
11184
11185 2014-05-16 Richard Biener <rguenther@suse.de>
11186
11187 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11188 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11189 (visit_phi): Ignore edges marked as not executable.
11190 (class cond_dom_walker): New.
11191 (cond_dom_walker::before_dom_children): Value-number
11192 control statements and mark successor edges as not
11193 executable if possible.
11194 (run_scc_vn): First walk all control statements in
11195 dominator order, marking edges as not executable.
11196 * tree-inline.c (copy_edges_for_bb): Be not confused
11197 about random edge flags.
11198
11199 2014-05-16 Richard Biener <rguenther@suse.de>
11200
11201 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11202
11203 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11204
11205 PR target/61193
11206 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11207 (__TM_simple_begin): Use it.
11208 (__TM_begin): Likewise.
11209
11210 2014-05-15 Martin Jambor <mjambor@suse.cz>
11211
11212 PR ipa/61085
11213 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11214 type_preserved flag when the indirect edge is polymorphic.
11215
11216 2014-05-15 Martin Jambor <mjambor@suse.cz>
11217
11218 PR tree-optimization/61090
11219 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11220 build_ref_for_model.
11221
11222 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11223
11224 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11225 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11226
11227 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11228
11229 PR tree-optimization/61158
11230 * fold-const.c (fold_binary_loc): If X is zero-extended and
11231 shiftc >= prec, make sure zerobits is all ones instead of
11232 invoking undefined behavior.
11233
11234 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11235
11236 * regcprop.h: New file.
11237 * regcprop.c (skip_debug_insn_p): New decl.
11238 (replace_oldest_value_reg): Check skip_debug_insn_p.
11239 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11240 * shrink-wrap.c: Include regcprop.h.
11241 (prepare_shrink_wrap): Call
11242 copyprop_hardreg_forward_bb_without_debug_insn.
11243
11244 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11245
11246 * shrink-wrap.h: Update comment.
11247 * shrink-wrap.c: Update comment.
11248 (next_block_for_reg): Rename to live_edge_for_reg.
11249 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11250 (move_insn_for_shrink_wrap): Split live_edge.
11251 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11252
11253 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11254
11255 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11256 Delete.
11257 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11258 * config/sparc/sparc.md (fptype_ut699): New attribute.
11259 (in_branch_delay): Return false if -mfix-ut699 is specified and
11260 fptype_ut699 is set to single.
11261 (truncdfsf2): Add fptype_ut699 attribute.
11262 (fix_truncdfsi2): Likewise.
11263 (floatsisf2): Change fptype attribute.
11264 (fix_truncsfsi2): Likewise.
11265 (negtf2_notv9): Delete.
11266 (negtf2_v9): Likewise.
11267 (negtf2_hq): New instruction.
11268 (negtf2): New instruction and splitter.
11269 (negdf2_notv9): Rewrite.
11270 (abstf2_notv9): Delete.
11271 (abstf2_hq_v9): Likewise.
11272 (abstf2_v9): Likewise.
11273 (abstf2_hq): New instruction.
11274 (abstf2): New instruction and splitter.
11275 (absdf2_notv9): Rewrite.
11276
11277 2014-05-14 Cary Coutant <ccoutant@google.com>
11278
11279 PR debug/61013
11280 * opts.c (common_handle_option): Don't special-case "-g".
11281 (set_debug_level): Default to at least level 2 with "-g".
11282
11283 2014-05-14 DJ Delorie <dj@redhat.com>
11284
11285 * config/msp430/msp430.c (msp430_builtin): Add
11286 MSP430_BUILTIN_DELAY_CYCLES.
11287 (msp430_init_builtins): Register void __delay_cycles(long long).
11288 (msp430_builtin_decl): Add it.
11289 (cg_magic_constant): New.
11290 (msp430_expand_delay_cycles): New.
11291 (msp430_expand_builtin): Call it.
11292 (msp430_print_operand_raw): Change integer printing from "int" to
11293 HOST_WIDE_INT.
11294 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11295 (delay_cycles_start): New.
11296 (delay_cycles_end): New.
11297 (delay_cycles_32): New.
11298 (delay_cycles_32x): New.
11299 (delay_cycles_16): New.
11300 (delay_cycles_16x): New.
11301 (delay_cycles_2): New.
11302 (delay_cycles_1): New.
11303 * doc/extend.texi: Document __delay_cycles().
11304
11305 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11306
11307 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11308 length attribute computation.
11309
11310 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11311
11312 PR debug/61188
11313 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11314
11315 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11316
11317 PR target/61084
11318 * config/sparc/sparc.md: Fix types of low and high in DI constant
11319 splitter. Use gen_int_mode in some other splitters.
11320
11321 2014-05-14 Martin Jambor <mjambor@suse.cz>
11322
11323 PR ipa/60897
11324 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11325
11326 2014-05-14 James Norris <jnorris@codesourcery.com>
11327
11328 * omp-low.c (expand_parallel_call): Remove shadow variable.
11329 (expand_omp_taskreg): Likewise.
11330
11331 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11332
11333 * common/config/i386/i386-common.c
11334 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11335 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11336 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11337 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11338 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11339 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11340 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11341 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11342 xsavecintrin.h, xsavesintrin.h.
11343 (x86_64-*-*): Ditto.
11344 * config/i386/clflushoptintrin.h: New.
11345 * config/i386/xsavecintrin.h: Ditto.
11346 * config/i386/xsavesintrin.h: Ditto.
11347 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11348 (bit_XSAVES): Ditto.
11349 (bit_XSAVES): Ditto.
11350 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11351 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11352 -mno-clflushopt.
11353 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11354 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11355 OPTION_MASK_ISA_XSAVES.
11356 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11357 -mxsavec, -mxsaves.
11358 (PTA_CLFLUSHOPT) Define.
11359 (PTA_XSAVEC): Ditto.
11360 (PTA_XSAVES): Ditto.
11361 (ix86_option_override_internal): Handle new options.
11362 (ix86_valid_target_attribute_inner_p): Ditto.
11363 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11364 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11365 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11366 (bdesc_special_args): Add __builtin_ia32_xsaves,
11367 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11368 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11369 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11370 (ix86_expand_builtin): Handle new builtins.
11371 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11372 (TARGET_CLFLUSHOPT_P): Ditto.
11373 (TARGET_XSAVEC): Ditto.
11374 (TARGET_XSAVEC_P): Ditto.
11375 (TARGET_XSAVES): Ditto.
11376 (TARGET_XSAVES_P): Ditto.
11377 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11378 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11379 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11380 (ANY_XRSTOR): New.
11381 (ANY_XRSTOR64): Ditto.
11382 (xrstor): Ditto.
11383 (xrstor): Change into <xrstor>.
11384 (xrstor_rex64): Change into <xrstor>_rex64.
11385 (xrstor64): Change into <xrstor>64
11386 (clflushopt): New.
11387 * config/i386/i386.opt (mclflushopt): New.
11388 (mxsavec): Ditto.
11389 (mxsaves): Ditto.
11390 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11391 xsavecintrin.h.
11392 * doc/invoke.texi: Document new options.
11393
11394 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11395
11396 PR rtl-optimization/60866
11397 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11398 Default it to -1. Pass it down to init_simplejump_data.
11399 (init_simplejump_data): New parameter old_seqno. Pass it down
11400 to get_seqno_for_a_jump.
11401 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11402 initializing new jump seqno as a last resort. Add comment.
11403 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11404 jump and pass it down to sel_init_new_insn.
11405 (sel_redirect_edge_and_branch_force): Likewise.
11406
11407 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11408
11409 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11410 shifted values to avoid build warning.
11411
11412 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11413
11414 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11415 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11416 (cfg_layout_merge_blocks): Likewise.
11417 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11418
11419 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11420
11421 PR rtl-optimization/60901
11422 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11423 bb predecessor belongs to the same scheduling region. Adjust comment.
11424
11425 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11426
11427 * doc/sourcebuild.texi: (dfp_hw): Document.
11428 (p8vector_hw): Likewise.
11429 (powerpc_eabi_ok): Likewise.
11430 (powerpc_elfv2): Likewise.
11431 (powerpc_htm_ok): Likewise.
11432 (ppc_recip_hw): Likewise.
11433 (vsx_hw): Likewise.
11434
11435 2014-05-13 Cary Coutant <ccoutant@google.com>
11436
11437 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11438
11439 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11440
11441 * gengtype-parse.c (require3): Eliminate in favor of...
11442 (require4): New.
11443 (require_template_declaration): Update to support optional single *
11444 on a type.
11445
11446 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11447 (create_user_defined_type): Handle a single level of explicit
11448 pointerness within template arguments.
11449 (struct write_types_data): Add field "kind".
11450 (filter_type_name): Handle "*" character.
11451 (write_user_func_for_structure_ptr): Require a write_types_data
11452 rather than just a prefix string, so that we can look up the kind
11453 of the wtd and use it as an index into wrote_user_func_for_ptr,
11454 ensuring that such functions are written at most once. Support
11455 subclasses by invoking the marking function of the ultimate base class.
11456 (write_user_func_for_structure_body): Require a write_types_data
11457 rather than just a prefix string, so that we can pass this to
11458 write_user_func_for_structure_ptr.
11459 (write_func_for_structure): Likewise.
11460 (ggc_wtd): Add initializer of new "kind" field.
11461 (pch_wtd): Likewise.
11462
11463 * gengtype.h (enum write_types_kinds): New.
11464 (struct type): Add field wrote_user_func_for_ptr to the "s"
11465 union member.
11466
11467 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11468
11469 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11470 instead of const_binop.
11471 (fold_binary_loc): Likewise.
11472
11473 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11474
11475 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11476 calculation to match get_ref_base_and_extent.
11477
11478 2014-05-13 Catherine Moore <clm@codesourcery.com>
11479 Sandra Loosemore <sandra@codesourcery.com>
11480
11481 * configure.ac: Fix assembly for explicit JALR relocation check.
11482 * configure: Regenerate.
11483
11484 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11485
11486 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11487 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11488 Remove associated type declarations and initialisations.
11489 (arm_expand_neon_builtin): Likewise.
11490 (neon_emit_pair_result_insn): Delete.
11491 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11492 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11493 (neon_vzip<mode>): Likewise.
11494 (neon_vuzp<mode>): Likewise.
11495
11496 2014-05-13 Richard Biener <rguenther@suse.de>
11497
11498 PR ipa/60973
11499 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11500 it needs revisiting whether the call still may be tail-called.
11501
11502 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11503
11504 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11505 * rtl.h (block_symbol): Reduce number of fields to 2.
11506 (rtx_def): Add u2.symbol_ref_flags.
11507 (SYMBOL_REF_FLAGS): Use it.
11508 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11509 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11510 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11511 Lower index of SYMBOL_REF_DATA.
11512 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11513 Print SYMBOL_REF_FLAGS at the same time.
11514 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11515
11516 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11517
11518 * rtl.def (VAR_LOCATION): Remove "i" field.
11519 * rtl.h (rtx_def): Add u2.var_location_status.
11520 (PAT_VAR_LOCATION_STATUS): Use it.
11521 (gen_rtx_VAR_LOCATION): Declare.
11522 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11523 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11524 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11525
11526 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11527
11528 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11529 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11530
11531 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11532
11533 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11534 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11535 * rtl.h (rtx_def): Add insn_uid to u2 field.
11536 (RTX_FLAG_CHECK8): Delete in favor of...
11537 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11538 (INSN_DELETED_P): Update accordingly.
11539 (INSN_UID): Use u2.insn_uid.
11540 (INSN_CHAIN_CODE_P): Define.
11541 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11542 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11543 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11544 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11545 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11546 indices accordingly.
11547 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11548 Update indices for insn-chain rtxes.
11549 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11550 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11551 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11552 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11553 * combine.c (try_combine): Likewise.
11554 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11555
11556 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11557
11558 * rtl.def (REG): Remove middle field.
11559 * rtl.h (rtx_def): Add orignal_regno to u2.
11560 (ORIGINAL_REGNO): Use it instead of field 1.
11561 (REG_ATTRS): Lower field index accordingly.
11562 * gengtype.c (adjust_field_rtx_def): Remove handling of
11563 ORIGINAL_REGNO. Move REG_ATTRS index down.
11564 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11565 code that prints the REGNO.
11566
11567 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11568
11569 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11570 GENERATOR_FILE.
11571
11572 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11573
11574 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11575
11576 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11577
11578 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11579 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11580
11581 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11582
11583 * config/aarch64/aarch64-protos.h
11584 (aarch64_hard_regno_caller_save_mode): New prototype.
11585 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
11586 New function.
11587 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11588
11589 2014-05-13 Christian Bruel <christian.bruel@st.com>
11590
11591 * target.def (mode_switching): New hook vector.
11592 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
11593 (mode_exit, modepriority_to_mode): Likewise.
11594 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
11595 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11596 * target.h: Include tm.h and hard-reg-set.h.
11597 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
11598 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
11599 * doc/tm.texi Regenerate.
11600 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11601 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11602 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
11603 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
11604 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
11605 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11606 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
11607 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
11608 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
11609 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
11610 (ix86_emit_mode_set): Hookify.
11611 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
11612 Delete.
11613 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
11614 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
11615 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
11616 (epiphany_mode_priority_to_mode): Remove declaration.
11617 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
11618 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
11619 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
11620 Likewise.
11621 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
11622 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
11623 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
11624
11625 2014-05-13 Jakub Jelinek <jakub@redhat.com>
11626
11627 PR target/61060
11628 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
11629 is const0_rtx, return immediately. Don't test count == 0 when
11630 it is always true.
11631
11632 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11633
11634 * Makefile.in: add shrink-wrap.o.
11635 * config/i386/i386.c: include "shrink-wrap.h"
11636 * function.c: Likewise.
11637 (requires_stack_frame_p, next_block_for_reg,
11638 move_insn_for_shrink_wrap, prepare_shrink_wrap,
11639 dup_block_and_redirect): Move to shrink-wrap.c
11640 (thread_prologue_and_epilogue_insns): Extract three code segments
11641 as functions in shrink-wrap.c
11642 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
11643 shrink-wrap.h
11644 * shrink-wrap.c: New file.
11645 * shrink-wrap.h: New file.
11646
11647 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11648
11649 * doc/extend.texi: Reflect current numbers of pragmas. Remove
11650 reference to Solaris.
11651
11652 2014-05-12 Mike Stump <mikestump@comcast.net>
11653
11654 PR other/31778
11655 * genattrtab.c (filename): Add.
11656 (convert_set_attr_alternative): Improve error message.
11657 (check_defs): Restore read_md_filename for error messages.
11658 (gen_insn): Save filename.
11659
11660 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
11661
11662 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
11663 -fno-local-ivars and -fivar-visibility.
11664 * c-family/c.opt: Make -Wshadow also implicitly enable
11665 -Wshadow-ivar.
11666
11667 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
11668
11669 * doc/tm.texi: Remove reference to deleted macro.
11670 * doc/tm.texi.in: Likewise.
11671
11672 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11673
11674 PR target/60991
11675 * config/avr/avr.c (avr_out_store_psi): Use correct constant
11676 to restore Y.
11677
11678 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
11679
11680 PR libgcc/61152
11681 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
11682 * config/arm/aout.h (License): Same.
11683 * config/arm/bpabi.h (License): Same.
11684 * config/arm/elf.h (License): Same.
11685 * config/arm/linux-elf.h (License): Same.
11686 * config/arm/linux-gas.h (License): Same.
11687 * config/arm/netbsd-elf.h (License): Same.
11688 * config/arm/uclinux-eabi.h (License): Same.
11689 * config/arm/uclinux-elf.h (License): Same.
11690 * config/arm/vxworks.h (License): Same.
11691
11692 2014-05-11 Jakub Jelinek <jakub@redhat.com>
11693
11694 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
11695 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
11696 number of operands to 3.
11697 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
11698 * tree-nested.c (convert_nonlocal_omp_clauses,
11699 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
11700 * gimplify.c (gimplify_scan_omp_clauses): Handle
11701 OMP_CLAUSE_LINEAR_STMT.
11702 * omp-low.c (lower_rec_input_clauses): Fix typo.
11703 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
11704 cast between Fortran boolean_type_node and C _Bool if
11705 needed.
11706
11707 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
11708
11709 PR tree-optimization/61136
11710 * wide-int.h (multiple_of_p): Define a version that doesn't return
11711 the quotient.
11712 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
11713 integer_zerop/const_binop pair.
11714 (multiple_of_p): Likewise, converting both operands to widest_int
11715 precision.
11716
11717 2014-05-09 Teresa Johnson <tejohnson@google.com>
11718
11719 * cgraphunit.c (analyze_functions): Use correct dump file.
11720
11721 2014-05-09 Florian Weimer <fweimer@redhat.com>
11722
11723 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
11724 expand_used_vars.
11725 (stack_protect_return_slot_p): New function.
11726 (expand_used_vars): Call stack_protect_decl_p and
11727 stack_protect_return_slot_p for -fstack-protector-strong.
11728
11729 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
11730 Andrew Haley <aph@redhat.com>
11731 Richard Sandiford <rdsandiford@googlemail.com>
11732
11733 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
11734 pages.
11735
11736 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
11737
11738 PR middle-end/61111
11739 * fold-const.c (fold_binary_loc): Changed width of mask.
11740
11741 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11742
11743 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
11744 unsigned int initializers for regno_in, regno_out.
11745
11746 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
11747
11748 PR target/61055
11749 * config/avr/avr.md (cc): Add new attribute set_vzn.
11750 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
11751 Set cc insn attribute to set_vzn instead of set_zn for alternatives
11752 with INC, DEC or NEG.
11753 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
11754 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
11755 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
11756
11757 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11758
11759 Revert:
11760 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11761
11762 * wide-int.cc (UTItype): Define.
11763 (UDWtype): Define for appropriate W_TYPE_SIZE.
11764
11765 2014-05-09 Richard Biener <rguenther@suse.de>
11766
11767 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
11768 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
11769 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
11770 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
11771 ssa_propagate): Adjust.
11772
11773 2014-05-08 Jeff Law <law@redhat.com>
11774
11775 PR tree-optimization/61009
11776 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
11777 tri-state rather than a boolean. When a block is too big to
11778 thread through, inform caller via negative return value.
11779 (thread_across_edge): If a block was too big for normal threading,
11780 then it's too big for a joiner too, so remove temporary equivalences
11781 and return immediately.
11782
11783 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11784 Matthias Klose <doko@ubuntu.com>
11785
11786 PR driver/61106
11787 * optc-gen.awk: Fix option handling for -Wunused-parameter.
11788
11789 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11790
11791 PR target/59952
11792 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
11793
11794 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
11795
11796 PR target/61092
11797 * config/alpha/alpha.c: Include gimple-iterator.h.
11798 (alpha_gimple_fold_builtin): New function. Move
11799 ALPHA_BUILTIN_UMULH folding from ...
11800 (alpha_fold_builtin): ... here.
11801 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
11802
11803 2014-05-08 Wei Mi <wmi@google.com>
11804
11805 PR target/58066
11806 * config/i386/i386.c (ix86_compute_frame_layout): Update
11807 preferred_stack_boundary for call, expanded from tls descriptor.
11808 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
11809 to depend on SP register.
11810 (*tls_local_dynamic_base_32_gnu): Ditto.
11811 (*tls_local_dynamic_32_once): Ditto.
11812 (tls_global_dynamic_64_<mode>): Set
11813 ix86_tls_descriptor_calls_expanded_in_cfun.
11814 (tls_local_dynamic_base_64_<mode>): Ditto.
11815 (tls_global_dynamic_32): Set
11816 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
11817 to depend on SP register.
11818 (tls_local_dynamic_base_32): Ditto.
11819
11820 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11821
11822 * config/arm/arm_neon.h: Update comment.
11823 * config/arm/neon-docgen.ml: Delete.
11824 * config/arm/neon-gen.ml: Delete.
11825 * doc/arm-neon-intrinsics.texi: Update comment.
11826
11827 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11828
11829 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
11830 and v4sf versions.
11831 (vand, vorr, veor, vorn, vbic): Remove.
11832 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
11833 iterator.
11834 (neon_vsub_unspec): Likewise.
11835 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
11836
11837 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11838
11839 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
11840 (vadd_s16): Likewise.
11841 (vadd_s32): Likewise.
11842 (vadd_f32): Likewise.
11843 (vadd_u8): Likewise.
11844 (vadd_u16): Likewise.
11845 (vadd_u32): Likewise.
11846 (vadd_s64): Likewise.
11847 (vadd_u64): Likewise.
11848 (vaddq_s8): Likewise.
11849 (vaddq_s16): Likewise.
11850 (vaddq_s32): Likewise.
11851 (vaddq_s64): Likewise.
11852 (vaddq_f32): Likewise.
11853 (vaddq_u8): Likewise.
11854 (vaddq_u16): Likewise.
11855 (vaddq_u32): Likewise.
11856 (vaddq_u64): Likewise.
11857 (vmul_s8): Likewise.
11858 (vmul_s16): Likewise.
11859 (vmul_s32): Likewise.
11860 (vmul_f32): Likewise.
11861 (vmul_u8): Likewise.
11862 (vmul_u16): Likewise.
11863 (vmul_u32): Likewise.
11864 (vmul_p8): Likewise.
11865 (vmulq_s8): Likewise.
11866 (vmulq_s16): Likewise.
11867 (vmulq_s32): Likewise.
11868 (vmulq_f32): Likewise.
11869 (vmulq_u8): Likewise.
11870 (vmulq_u16): Likewise.
11871 (vmulq_u32): Likewise.
11872 (vsub_s8): Likewise.
11873 (vsub_s16): Likewise.
11874 (vsub_s32): Likewise.
11875 (vsub_f32): Likewise.
11876 (vsub_u8): Likewise.
11877 (vsub_u16): Likewise.
11878 (vsub_u32): Likewise.
11879 (vsub_s64): Likewise.
11880 (vsub_u64): Likewise.
11881 (vsubq_s8): Likewise.
11882 (vsubq_s16): Likewise.
11883 (vsubq_s32): Likewise.
11884 (vsubq_s64): Likewise.
11885 (vsubq_f32): Likewise.
11886 (vsubq_u8): Likewise.
11887 (vsubq_u16): Likewise.
11888 (vsubq_u32): Likewise.
11889 (vsubq_u64): Likewise.
11890 (vand_s8): Likewise.
11891 (vand_s16): Likewise.
11892 (vand_s32): Likewise.
11893 (vand_u8): Likewise.
11894 (vand_u16): Likewise.
11895 (vand_u32): Likewise.
11896 (vand_s64): Likewise.
11897 (vand_u64): Likewise.
11898 (vandq_s8): Likewise.
11899 (vandq_s16): Likewise.
11900 (vandq_s32): Likewise.
11901 (vandq_s64): Likewise.
11902 (vandq_u8): Likewise.
11903 (vandq_u16): Likewise.
11904 (vandq_u32): Likewise.
11905 (vandq_u64): Likewise.
11906 (vorr_s8): Likewise.
11907 (vorr_s16): Likewise.
11908 (vorr_s32): Likewise.
11909 (vorr_u8): Likewise.
11910 (vorr_u16): Likewise.
11911 (vorr_u32): Likewise.
11912 (vorr_s64): Likewise.
11913 (vorr_u64): Likewise.
11914 (vorrq_s8): Likewise.
11915 (vorrq_s16): Likewise.
11916 (vorrq_s32): Likewise.
11917 (vorrq_s64): Likewise.
11918 (vorrq_u8): Likewise.
11919 (vorrq_u16): Likewise.
11920 (vorrq_u32): Likewise.
11921 (vorrq_u64): Likewise.
11922 (veor_s8): Likewise.
11923 (veor_s16): Likewise.
11924 (veor_s32): Likewise.
11925 (veor_u8): Likewise.
11926 (veor_u16): Likewise.
11927 (veor_u32): Likewise.
11928 (veor_s64): Likewise.
11929 (veor_u64): Likewise.
11930 (veorq_s8): Likewise.
11931 (veorq_s16): Likewise.
11932 (veorq_s32): Likewise.
11933 (veorq_s64): Likewise.
11934 (veorq_u8): Likewise.
11935 (veorq_u16): Likewise.
11936 (veorq_u32): Likewise.
11937 (veorq_u64): Likewise.
11938 (vbic_s8): Likewise.
11939 (vbic_s16): Likewise.
11940 (vbic_s32): Likewise.
11941 (vbic_u8): Likewise.
11942 (vbic_u16): Likewise.
11943 (vbic_u32): Likewise.
11944 (vbic_s64): Likewise.
11945 (vbic_u64): Likewise.
11946 (vbicq_s8): Likewise.
11947 (vbicq_s16): Likewise.
11948 (vbicq_s32): Likewise.
11949 (vbicq_s64): Likewise.
11950 (vbicq_u8): Likewise.
11951 (vbicq_u16): Likewise.
11952 (vbicq_u32): Likewise.
11953 (vbicq_u64): Likewise.
11954 (vorn_s8): Likewise.
11955 (vorn_s16): Likewise.
11956 (vorn_s32): Likewise.
11957 (vorn_u8): Likewise.
11958 (vorn_u16): Likewise.
11959 (vorn_u32): Likewise.
11960 (vorn_s64): Likewise.
11961 (vorn_u64): Likewise.
11962 (vornq_s8): Likewise.
11963 (vornq_s16): Likewise.
11964 (vornq_s32): Likewise.
11965 (vornq_s64): Likewise.
11966 (vornq_u8): Likewise.
11967 (vornq_u16): Likewise.
11968 (vornq_u32): Likewise.
11969 (vornq_u64): Likewise.
11970
11971 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11972
11973 * wide-int.cc (UTItype): Define.
11974 (UDWtype): Define for appropriate W_TYPE_SIZE.
11975
11976 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
11977
11978 PR tree-optimization/59100
11979 * tree-ssa-phiopt.c: Include tree-inline.h.
11980 (neutral_element_p, absorbing_element_p): New functions.
11981 (value_replacement): Handle conditional binary operations with a
11982 neutral or absorbing element.
11983
11984 2014-05-08 Richard Biener <rguenther@suse.de>
11985
11986 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
11987 folding the expression.
11988 (valueize_expr): Remove.
11989 (visit_reference_op_load): Do not valueize the result of
11990 vn_get_expr_for.
11991 (simplify_binary_expression): Likewise.
11992 (simplify_unary_expression): Likewise.
11993
11994 2014-05-08 Richard Biener <rguenther@suse.de>
11995
11996 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
11997 looking at TYPE_ARG_TYPES.
11998
11999 2014-05-08 Richard Biener <rguenther@suse.de>
12000
12001 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12002 pointer propagation special-case.
12003
12004 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12005
12006 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12007 core part of address expressions.
12008
12009 2014-05-08 Alan Modra <amodra@gmail.com>
12010
12011 PR target/60737
12012 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12013 loads and stores when -mno-strict-align at any alignment.
12014 (expand_block_clear): Similarly. Also correct calculation of
12015 instruction count.
12016
12017 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12018
12019 PR middle-end/39246
12020 * tree-complex.c (expand_complex_move): Keep line info when expanding
12021 complex move.
12022 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12023 of complex expression. Use new argument to display correct location
12024 for values coming from phi statement.
12025 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12026 (warn_uninitialized_phi): Pass location of phi argument to
12027 warn_uninit.
12028 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12029 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12030
12031 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12032
12033 * config/rs6000/predicates.md (indexed_address_mem): New.
12034 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12035 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12036 fpstore_ux, fpstore_u.
12037 (sign_extend, indexed, update): New.
12038 (cell_micro): Adjust.
12039 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12040 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12041 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12042 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12043 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12044 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12045 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12046 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12047 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12048 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12049 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12050 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12051 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12052 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12053 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12054
12055 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12056 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12057 *vsx_extract_<mode>_store): Adjust.
12058 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12059 is_cracked_insn, insn_must_be_first_in_group,
12060 insn_must_be_last_in_group): Adjust.
12061
12062 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12063 Adjust.
12064 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12065 ppc440-fpstore): Adjust.
12066 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12067 ppc476-fpstore): Adjust.
12068 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12069 ppc601-fpstore): Adjust.
12070 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12071 Adjust.
12072 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12073 Adjust.
12074 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12075 ppc7450-fpstore): Adjust.
12076 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12077 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12078 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12079 Adjust.
12080 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12081 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12082 cell-fpstore, cell-fpstore-update): Adjust.
12083 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12084 ppce300c3_store, ppce300c3_fpstore): Adjust.
12085 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12086 e500mc_fpstore): Adjust.
12087 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12088 e500mc64_store, e500mc64_fpstore): Adjust.
12089 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12090 e5500_fpstore): Adjust.
12091 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12092 e6500_fpstore): Adjust.
12093 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12094 Adjust.
12095 * config/rs6000/power4.md (power4-load, power4-load-ext,
12096 power4-load-ext-update, power4-load-ext-update-indexed,
12097 power4-load-update-indexed, power4-load-update, power4-fpload,
12098 power4-fpload-update, power4-store, power4-store-update,
12099 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12100 Adjust.
12101 * config/rs6000/power5.md (power5-load, power5-load-ext,
12102 power5-load-ext-update, power5-load-ext-update-indexed,
12103 power5-load-update-indexed, power5-load-update, power5-fpload,
12104 power5-fpload-update, power5-store, power5-store-update,
12105 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12106 Adjust.
12107 * config/rs6000/power6.md (power6-load, power6-load-ext,
12108 power6-load-update, power6-load-update-indexed,
12109 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12110 power6-fpload-update, power6-store, power6-store-update,
12111 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12112 Adjust.
12113 * config/rs6000/power7.md (power7-load, power7-load-ext,
12114 power7-load-update, power7-load-update-indexed,
12115 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12116 power7-fpload-update, power7-store, power7-store-update,
12117 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12118 Adjust.
12119 * config/rs6000/power8.md (power8-load, power8-load-update,
12120 power8-load-ext, power8-load-ext-update, power8-fpload,
12121 power8-fpload-update, power8-store, power8-store-update-indexed,
12122 power8-fpstore, power8-fpstore-update): Adjust.
12123 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12124 Adjust.
12125 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12126 titan_lsu_store, titan_lsu_fpstore): Adjust.
12127 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12128
12129 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12130
12131 PR target/60884
12132 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12133 unrolled byte insns. Emit address increments after move insns.
12134
12135 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12136
12137 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12138 const_gimple, rather than a gimple.
12139 (gimple_call_builtin_p): Likewise, for the three variants.
12140
12141 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12142 (gimple_call_builtin_p): Likewise, for the three variants.
12143
12144 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12145
12146 PR tree-optimization/61095
12147 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12148
12149 2014-05-07 Richard Biener <rguenther@suse.de>
12150
12151 PR tree-optimization/61034
12152 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12153 (maybe_skip_until): Use translate to take into account
12154 lattices when trying to do disambiguations.
12155 (get_continuation_for_phi_1): Likewise.
12156 (get_continuation_for_phi): Adjust for added translate arguments.
12157 (walk_non_aliased_vuses): Likewise.
12158 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12159 (walk_non_aliased_vuses): Likewise.
12160 (call_may_clobber_ref_p_1): Declare.
12161 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12162 calls. Stop early if we are only supposed to disambiguate.
12163 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12164
12165 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12166
12167 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12168 Emit an error when the function has arguments.
12169
12170 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12171
12172 * cfgloop.h (unswitch_loops): Remove.
12173 * doc/passes.texi: Remove references to loop-unswitch.c
12174 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12175
12176 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12177
12178 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12179 check for loads group of length 3.
12180 (vect_permute_load_chain): New permutations for loads group of
12181 length 3.
12182 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12183 of vec_perm_shuffle for the new permutations.
12184
12185 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12186
12187 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12188 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12189 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12190 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12191 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12192 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12193 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12194 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12195
12196 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12197
12198 * loop-unswitch.c: Delete.
12199
12200 2014-05-07 Richard Biener <rguenther@suse.de>
12201
12202 * config.gcc: Always set need_64bit_hwint to yes.
12203
12204 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12205
12206 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12207 of using optimize_size.
12208
12209 2014-05-06 Mike Stump <mikestump@comcast.net>
12210
12211 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12212
12213 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12214
12215 * config/i386/sse.md (*mov<mode>_internal)
12216 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12217 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12218 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12219 (*<code><mode>3, *andnot<mode>3<mask_name>)
12220 (<mask_codefor><code><mode>3<mask_name>): Only consider
12221 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12222
12223 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12224
12225 Revert:
12226 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12227
12228 * lra-constraints.c (valid_address_p): Move earlier in file.
12229 Add a constraint argument to the address_info version.
12230 (satisfies_memory_constraint_p): New function.
12231 (satisfies_address_constraint_p): Likewise.
12232 (process_alt_operands, curr_insn_transform): Use them.
12233 (process_address): Pass the constraint to valid_address_p when
12234 checking address operands.
12235
12236 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12237
12238 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12239 to their respective blocks. Fix inadvertent use of "node".
12240
12241 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12242
12243 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12244 out from...
12245 (init_emit_once): ...here.
12246 * rtl.h (init_derived_machine_modes): Declare.
12247 * toplev.c (do_compile): Call it even if no_backend.
12248
12249 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12250 Mike Stump <mikestump@comcast.net>
12251 Richard Sandiford <rdsandiford@googlemail.com>
12252 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12253
12254 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12255 (rtx_equal_for_memref_p): Update comment.
12256 (adjust_offset_for_component_ref): Use wide-int interfaces.
12257 * builtins.c (get_object_alignment_2): Likewise.
12258 (c_readstr): Likewise.
12259 (target_char_cast): Add comment.
12260 (determine_block_size): Use wide-int interfaces.
12261 (expand_builtin_signbit): Likewise.
12262 (fold_builtin_int_roundingfn): Likewise.
12263 (fold_builtin_bitop): Likewise.
12264 (fold_builtin_bswap): Likewise.
12265 (fold_builtin_logarithm): Use signop.
12266 (fold_builtin_pow): Likewise.
12267 (fold_builtin_memory_op): Use wide-int interfaces.
12268 (fold_builtin_object_size): Likewise.
12269 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12270 nb_iterations_estimate.
12271 (record_niter_bound): Use wide-int interfaces.
12272 (get_estimated_loop_iterations_int): Likewise.
12273 (get_estimated_loop_iterations): Likewise.
12274 (get_max_loop_iterations): Likewise.
12275 * cfgloop.h: Include wide-int.h.
12276 (struct nb_iter_bound): Change bound to widest_int.
12277 (struct loop): Change nb_iterations_upper_bound and
12278 nb_iterations_estimate to widest_int.
12279 (record_niter_bound): Switch to use widest_int.
12280 (get_estimated_loop_iterations): Likewise.
12281 (get_max_loop_iterations): Likewise.
12282 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12283 update for wide-int.
12284 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12285 * combine.c (try_combine): Likewise.
12286 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12287 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12288 interfaces.
12289 (aarch64_float_const_representable_p): Likewise.
12290 * config/arc/arc.c: Include wide-int.h.
12291 (arc_can_use_doloop_p): Use wide-int interfaces.
12292 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12293 (vfp3_const_double_index): Likewise.
12294 * config/avr/avr.c (avr_out_round): Likewise.
12295 (avr_fold_builtin): Likewise.
12296 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12297 (bfin_can_use_doloop_p): Likewise.
12298 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12299 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12300 * config/i386/i386.c: Include wide-int.h.
12301 (ix86_data_alignment): Use wide-int interfaces.
12302 (ix86_local_alignment): Likewise.
12303 (ix86_emit_swsqrtsf): Update real_from_integer.
12304 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12305 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12306 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12307 (zero_constant): Likewise.
12308 (input_operand): Likewise.
12309 (splat_input_operand): Likewise.
12310 (non_logical_cint_operand): Change const_double to const_wide_int.
12311 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12312 (easy_altivec_constant): Remove comment.
12313 (paired_expand_vector_init): Use CONSTANT_P.
12314 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12315 (rs6000_emit_move): Update checks.
12316 (rs6000_aggregate_candidate): Use wide-int interfaces.
12317 (rs6000_expand_ternop_builtin): Likewise.
12318 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12319 (rs6000_assemble_integer): Likewise.
12320 (rs6000_hash_constant): Likewise.
12321 (output_toc): Likewise.
12322 (rs6000_rtx_costs): Likewise.
12323 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12324 * config/rs6000/rs6000-c.c: Include wide-int.h.
12325 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12326 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12327 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12328 Handle CONST_WIDE_INT.
12329 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12330 Use tree_fits_uhwi_p.
12331 * config/sparc/sparc.c: Include wide-int.h.
12332 (sparc_fold_builtin): Use wide-int interfaces.
12333 * config/vax/vax.c: Include wide-int.h.
12334 (vax_float_literal): Use real_from_integer.
12335 * coretypes.h (struct hwivec_def): New.
12336 (hwivec): New.
12337 (const_hwivec): New.
12338 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12339 (equiv_constant): Handle CONST_WIDE_INT.
12340 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12341 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12342 * dbxout.c (stabstr_U): Use wide-int interfaces.
12343 (dbxout_type): Update to use cst_fits_shwi_p.
12344 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12345 (TARGET_SUPPORTS_WIDE_INT): Add default.
12346 * dfp.c: Include wide-int.h.
12347 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12348 decimal_real_to_integer.
12349 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12350 decimal_real_to_integer.
12351 * doc/generic.texi (Constant expressions): Update for wide_int.
12352 * doc/rtl.texi (const_double): Likewise.
12353 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12354 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12355 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12356 (REAL_VALUE_FROM_INT): Remove.
12357 (TARGET_SUPPORTS_WIDE_INT): New.
12358 * doc/tm.texi: Regenerate.
12359 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12360 * double-int.h: Include wide-int.h.
12361 (struct wi::int_traits): New.
12362 * dwarf2out.c (get_full_len): New.
12363 (dw_val_equal_p): Add case dw_val_class_wide_int.
12364 (size_of_loc_descr): Likewise.
12365 (output_loc_operands): Likewise.
12366 (insert_double): Remove.
12367 (insert_wide_int): New.
12368 (add_AT_wide): New.
12369 (print_die): Add case dw_val_class_wide_int.
12370 (attr_checksum): Likewise.
12371 (attr_checksum_ordered): Likewise.
12372 (same_dw_val_p): Likewise.
12373 (size_of_die): Likewise.
12374 (value_format): Likewise.
12375 (output_die): Likewise.
12376 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12377 Use wide-int.
12378 (clz_loc_descriptor): Use wide-int interfaces.
12379 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12380 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12381 (round_up_to_align): Use wide-int interfaces.
12382 (field_byte_offset): Likewise.
12383 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12384 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12385 CONST_DOUBLE handling. Use wide-int interfaces.
12386 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12387 (gen_enumeration_type_die): Use add_AT_wide.
12388 (hash_loc_operands): Add case dw_val_class_wide_int.
12389 (compare_loc_operands): Likewise.
12390 * dwarf2out.h: Include wide-int.h.
12391 (wide_int_ptr): New.
12392 (enum dw_val_class): Add dw_val_class_wide_int.
12393 (struct dw_val_struct): Add val_wide.
12394 * emit-rtl.c (const_wide_int_htab): New.
12395 (const_wide_int_htab_hash): New.
12396 (const_wide_int_htab_eq): New.
12397 (lookup_const_wide_int): New.
12398 (const_double_htab_hash): Use wide-int interfaces.
12399 (const_double_htab_eq): Likewise.
12400 (rtx_to_double_int): Conditionally compile for wide-int.
12401 (immed_double_int_const): Rename to immed_wide_int_const and
12402 update for wide-int.
12403 (immed_double_const): Conditionally compile for wide-int.
12404 (init_emit_once): Use wide-int interfaces.
12405 * explow.c (plus_constant): Likewise.
12406 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12407 (lshift_value): Use wide-int interfaces.
12408 (expand_mult): Likewise.
12409 (choose_multiplier): Likewise.
12410 (expand_smod_pow2): Likewise.
12411 (make_tree): Likewise.
12412 * expr.c (convert_modes): Consolidate handling of constants.
12413 Use wide-int interfaces.
12414 (emit_group_load_1): Add note.
12415 (store_expr): Update comment.
12416 (get_inner_reference): Use wide-int interfaces.
12417 (expand_constructor): Update comment.
12418 (expand_expr_real_2): Use wide-int interfaces.
12419 (expand_expr_real_1): Likewise.
12420 (reduce_to_bit_field_precision): Likewise.
12421 (const_vector_from_tree): Likewise.
12422 * final.c: Include wide-int-print.h.
12423 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12424 * fixed-value.c: Include wide-int.h.
12425 (fixed_from_string): Use wide-int interfaces.
12426 (fixed_to_decimal): Likewise.
12427 (fixed_convert_from_real): Likewise.
12428 (real_convert_from_fixed): Likewise.
12429 * fold-const.h (mem_ref_offset): Return an offset_int.
12430 (div_if_zero_remainder): Remove code parameter.
12431 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12432 Use wide-int interfaces.
12433 (may_negate_without_overflow_p): Use wide-int interfaces.
12434 (negate_expr_p): Likewise.
12435 (fold_negate_expr): Likewise.
12436 (int_const_binop_1): Likewise.
12437 (const_binop): Likewise.
12438 (fold_convert_const_int_from_int): Likewise.
12439 (fold_convert_const_int_from_real): Likewise.
12440 (fold_convert_const_int_from_fixed): Likewise.
12441 (fold_convert_const_fixed_from_int): Likewise.
12442 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12443 (sign_bit_p): Use wide-int interfaces.
12444 (make_range_step): Likewise.
12445 (build_range_check): Likewise. Pass an integer of the correct type
12446 instead of using integer_one_node.
12447 (range_predecessor): Pass an integer of the correct type instead
12448 of using integer_one_node.
12449 (range_successor): Likewise.
12450 (merge_ranges): Likewise.
12451 (unextend): Use wide-int interfaces.
12452 (extract_muldiv_1): Likewise.
12453 (fold_div_compare): Likewise.
12454 (fold_single_bit_test): Likewise.
12455 (fold_sign_changed_comparison): Likewise.
12456 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12457 (fold_plusminus_mult_expr): Use wide-int interfaces.
12458 (native_encode_int): Likewise.
12459 (native_interpret_int): Likewise.
12460 (fold_unary_loc): Likewise.
12461 (pointer_may_wrap_p): Likewise.
12462 (size_low_cst): Likewise.
12463 (mask_with_tz): Likewise.
12464 (fold_binary_loc): Likewise.
12465 (fold_ternary_loc): Likewise.
12466 (multiple_of_p): Likewise.
12467 (tree_call_nonnegative_warnv_p): Update calls to
12468 tree_int_cst_min_precision and real_from_integer.
12469 (fold_negate_const): Use wide-int interfaces.
12470 (fold_abs_const): Likewise.
12471 (fold_relational_const): Use tree_int_cst_lt.
12472 (round_up_loc): Use wide-int interfaces.
12473 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12474 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12475 * gengtype.c: Remove include of double-int.h.
12476 (do_typedef): Use wide-int interfaces.
12477 (open_base_files): Add wide-int.h.
12478 (main): Add offset_int and widest_int typedefs.
12479 * gengtype-lex.l: Handle "^".
12480 (CXX_KEYWORD): Add "static".
12481 * gengtype-parse.c (require3): New.
12482 (require_template_declaration): Handle constant template arguments
12483 and nested templates.
12484 * gengtype-state.c: Don't include "double-int.h".
12485 * genpreds.c (write_one_predicate_function): Update comment.
12486 (write_tm_constrs_h): Add check for hval and lval use in
12487 CONST_WIDE_INT.
12488 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12489 (add_to_sequence): Likewise.
12490 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12491 and const_double_operand.
12492 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12493 interfaces.
12494 * gimple-fold.c (get_base_constructor): Likewise.
12495 (fold_array_ctor_reference): Likewise.
12496 (fold_nonarray_ctor_reference): Likewise.
12497 (fold_const_aggregate_ref_1): Likewise.
12498 (gimple_val_nonnegative_real_p): Likewise.
12499 (gimple_fold_indirect_ref): Likewise.
12500 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12501 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12502 (struct slsr_cand_d): Change index to be widest_int.
12503 (struct incr_info_d): Change incr to be widest_int.
12504 (alloc_cand_and_find_basis): Use wide-int interfaces.
12505 (slsr_process_phi): Likewise.
12506 (backtrace_base_for_ref): Likewise. Return a widest_int.
12507 (restructure_reference): Take a widest_int instead of a double_int.
12508 (slsr_process_ref): Use wide-int interfaces.
12509 (create_mul_ssa_cand): Likewise.
12510 (create_mul_imm_cand): Likewise.
12511 (create_add_ssa_cand): Likewise.
12512 (create_add_imm_cand): Take a widest_int instead of a double_int.
12513 (slsr_process_add): Use wide-int interfaces.
12514 (slsr_process_cast): Likewise.
12515 (slsr_process_copy): Likewise.
12516 (dump_candidate): Likewise.
12517 (dump_incr_vec): Likewise.
12518 (replace_ref): Likewise.
12519 (cand_increment): Likewise. Return a widest_int.
12520 (cand_abs_increment): Likewise.
12521 (replace_mult_candidate): Take a widest_int instead of a double_int.
12522 (replace_unconditional_candidate): Use wide-int interfaces.
12523 (incr_vec_index): Take a widest_int instead of a double_int.
12524 (create_add_on_incoming_edge): Likewise.
12525 (create_phi_basis): Use wide-int interfaces.
12526 (replace_conditional_candidate): Likewise.
12527 (record_increment): Take a widest_int instead of a double_int.
12528 (record_phi_increments): Use wide-int interfaces.
12529 (phi_incr_cost): Take a widest_int instead of a double_int.
12530 (lowest_cost_path): Likewise.
12531 (total_savings): Likewise.
12532 (analyze_increments): Use wide-int interfaces.
12533 (ncd_with_phi): Take a widest_int instead of a double_int.
12534 (ncd_of_cand_and_phis): Likewise.
12535 (nearest_common_dominator_for_cands): Likewise.
12536 (insert_initializers): Use wide-int interfaces.
12537 (all_phi_incrs_profitable): Likewise.
12538 (replace_one_candidate): Likewise.
12539 (replace_profitable_candidates): Likewise.
12540 * godump.c: Include wide-int-print.h.
12541 (go_output_typedef): Use wide-int interfaces.
12542 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12543 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12544 (build_loop_iteration_domains): Likewise.
12545 * hooks.h: Include wide-int.h rather than double-int.h.
12546 (hook_bool_dint_dint_uint_bool_true): Delete.
12547 (hook_bool_wint_wint_uint_bool_true): Declare.
12548 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12549 (hook_bool_wint_wint_uint_bool_true): New.
12550 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12551 interfaces.
12552 (ubsan_expand_si_overflow_mul_check): Likewise.
12553 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12554 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12555 (get_ancestor_addr_info): Likewise.
12556 (ipa_modify_call_arguments): Likewise.
12557 * loop-doloop.c (doloop_modify): Likewise.
12558 (doloop_optimize): Likewise.
12559 * loop-iv.c (iv_number_of_iterations): Likewise.
12560 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12561 (unroll_loop_constant_iterations): Likewise.
12562 (decide_unroll_runtime_iterations): Likewise.
12563 (unroll_loop_runtime_iterations): Likewise.
12564 (decide_peel_simple): Likewise.
12565 (decide_unroll_stupid): Likewise.
12566 * lto-streamer-in.c (streamer_read_wi): Add.
12567 (input_cfg): Use wide-int interfaces.
12568 (lto_input_tree_1): Likewise.
12569 * lto-streamer-out.c (streamer_write_wi): Add.
12570 (hash_tree): Use wide-int interfaces.
12571 (output_cfg): Likewise.
12572 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12573 (GTFILES): Add wide-int.h and signop.h.
12574 (TAGS): Look for .cc files too.
12575 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12576 * optabs.c (expand_subword_shift): Likewise.
12577 (expand_doubleword_shift): Likewise.
12578 (expand_absneg_bit): Likewise.
12579 (expand_copysign_absneg): Likewise.
12580 (expand_copysign_bit): Likewise.
12581 * postreload.c (reload_cse_simplify_set): Likewise.
12582 * predict.c (predict_iv_comparison): Likewise.
12583 * pretty-print.h: Include wide-int-print.h.
12584 (pp_wide_int) New.
12585 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
12586 * print-tree.c: Include wide-int-print.h.
12587 (print_node_brief): Use wide-int interfaces.
12588 (print_node): Likewise.
12589 * read-rtl.c (validate_const_wide_int): New.
12590 (read_rtx_code): Add CONST_WIDE_INT case.
12591 * real.c: Include wide-int.h.
12592 (real_to_integer2): Delete.
12593 (real_to_integer): New function, returning a wide_int.
12594 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12595 (ten_to_ptwo): Update call to real_from_integer.
12596 (real_digit): Likewise.
12597 * real.h: Include signop.h, wide-int.h and insn-modes.h.
12598 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
12599 (REAL_VALUE_TO_INT): Delete.
12600 (real_to_integer): Declare a wide-int form.
12601 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
12602 * recog.c (const_int_operand): Improve comment.
12603 (const_scalar_int_operand): New.
12604 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
12605 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
12606 (split_double): Likewise.
12607 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
12608 (rtx_size): Likewise.
12609 (rtx_alloc_stat_v): New.
12610 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
12611 (cwi_output_hex): New.
12612 (iterative_hash_rtx): Handle CONST_WIDE_INT.
12613 (cwi_check_failed_bounds): New.
12614 * rtl.def (CONST_WIDE_INT): New.
12615 * rtl.h: Include <utility> and wide-int.h.
12616 (struct hwivec_def): New.
12617 (CWI_GET_NUM_ELEM): New.
12618 (CWI_PUT_NUM_ELEM): New.
12619 (struct rtx_def): Add num_elem and hwiv.
12620 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
12621 (CASE_CONST_UNIQUE): Likewise.
12622 (CASE_CONST_ANY): Likewise.
12623 (CONST_SCALAR_INT_P): Likewise.
12624 (CONST_WIDE_INT_P): New.
12625 (CWI_ELT): New.
12626 (HWIVEC_CHECK): New.
12627 (cwi_check_failed_bounds): New.
12628 (CWI_ELT): New.
12629 (HWIVEC_CHECK): New.
12630 (CONST_WIDE_INT_VEC) New.
12631 (CONST_WIDE_INT_NUNITS) New.
12632 (CONST_WIDE_INT_ELT) New.
12633 (rtx_mode_t): New type.
12634 (wi::int_traits <rtx_mode_t>): New.
12635 (wi::shwi): New.
12636 (wi::min_value): New.
12637 (wi::max_value): New.
12638 (rtx_alloc_v) New.
12639 (const_wide_int_alloc): New.
12640 (immed_wide_int_const): New.
12641 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
12642 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
12643 * signop.h: New file.
12644 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
12645 (simplify_const_unary_operation): Use wide-int interfaces.
12646 (simplify_binary_operation_1): Likewise.
12647 (simplify_const_binary_operation): Likewise.
12648 (simplify_const_relational_operation): Likewise.
12649 (simplify_immed_subreg): Likewise.
12650 * stmt.c (expand_case): Likewise.
12651 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
12652 signop rather than a bool.
12653 * stor-layout.c (layout_type): Use wide-int interfaces.
12654 (initialize_sizetypes): Update calls to
12655 set_min_and_max_values_for_integral_type.
12656 (set_min_and_max_values_for_integral_type): Take a signop rather
12657 than a bool. Use wide-int interfaces.
12658 (fixup_signed_type): Update accordingly. Remove
12659 HOST_BITS_PER_DOUBLE_INT limit.
12660 (fixup_unsigned_type): Likewise.
12661 * system.h (STATIC_CONSTANT_P): New.
12662 (STATIC_ASSERT): New.
12663 * target.def (can_use_doloop_p): Take widest_ints rather than
12664 double_ints.
12665 * target.h: Include wide-int.h rather than double-int.h.
12666 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
12667 than double_ints.
12668 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
12669 rather than INT_CST_LT_UNSIGNED.
12670 (can_use_doloop_if_innermost): Take widest_ints rather than
12671 double_ints.
12672 * tree-affine.c: Include wide-int-print.h.
12673 (double_int_ext_for_comb): Delete.
12674 (wide_int_ext_for_comb): New.
12675 (aff_combination_zero): Use wide-int interfaces.
12676 (aff_combination_const): Take a widest_int instead of a double_int.
12677 (aff_combination_elt): Use wide-int interfaces.
12678 (aff_combination_scale): Take a widest_int instead of a double_int.
12679 (aff_combination_add_elt): Likewise.
12680 (aff_combination_add_cst): Likewise.
12681 (aff_combination_add): Use wide-int interfaces.
12682 (aff_combination_convert): Likewise.
12683 (tree_to_aff_combination): Likewise.
12684 (add_elt_to_tree): Take a widest_int instead of a double_int.
12685 (aff_combination_to_tree): Use wide-int interfaces.
12686 (aff_combination_remove_elt): Likewise.
12687 (aff_combination_add_product): Take a widest_int instead of
12688 a double_int.
12689 (aff_combination_mult): Use wide-int interfaces.
12690 (aff_combination_expand): Likewise.
12691 (double_int_constant_multiple_p): Delete.
12692 (wide_int_constant_multiple_p): New.
12693 (aff_combination_constant_multiple_p): Take a widest_int pointer
12694 instead of a double_int pointer.
12695 (print_aff): Use wide-int interfaces.
12696 (get_inner_reference_aff): Take a widest_int pointer
12697 instead of a double_int pointer.
12698 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
12699 * tree-affine.h: Include wide-int.h.
12700 (struct aff_comb_elt): Change type of coef to widest_int.
12701 (struct affine_tree_combination): Change type of offset to widest_int.
12702 (double_int_ext_for_comb): Delete.
12703 (wide_int_ext_for_comb): New.
12704 (aff_combination_const): Use widest_int instead of double_int.
12705 (aff_combination_scale): Likewise.
12706 (aff_combination_add_elt): Likewise.
12707 (aff_combination_constant_multiple_p): Likewise.
12708 (get_inner_reference_aff): Likewise.
12709 (aff_comb_cannot_overlap_p): Likewise.
12710 (aff_combination_zero_p): Use wide-int interfaces.
12711 * tree.c: Include tree.h.
12712 (init_ttree): Use make_int_cst.
12713 (tree_code_size): Removed code for INTEGER_CST case.
12714 (tree_size): Add INTEGER_CST case.
12715 (make_node_stat): Update comment.
12716 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
12717 (build_int_cst_type): Use wide-int interfaces.
12718 (double_int_to_tree): Likewise.
12719 (double_int_fits_to_tree_p): Delete.
12720 (force_fit_type_double): Delete.
12721 (force_fit_type): New.
12722 (int_cst_hash_hash): Use wide-int interfaces.
12723 (int_cst_hash_eq): Likewise.
12724 (build_int_cst_wide): Delete.
12725 (wide_int_to_tree): New.
12726 (cache_integer_cst): Use wide-int interfaces.
12727 (build_low_bits_mask): Likewise.
12728 (cst_and_fits_in_hwi): Likewise.
12729 (real_value_from_int_cst): Likewise.
12730 (make_int_cst_stat): New.
12731 (integer_zerop): Use wide_int interfaces.
12732 (integer_onep): Likewise.
12733 (integer_all_onesp): Likewise.
12734 (integer_pow2p): Likewise.
12735 (integer_nonzerop): Likewise.
12736 (tree_log2): Likewise.
12737 (tree_floor_log2): Likewise.
12738 (tree_ctz): Likewise.
12739 (int_size_in_bytes): Likewise.
12740 (mem_ref_offset): Return an offset_int rather than a double_int.
12741 (build_type_attribute_qual_variant): Use wide_int interfaces.
12742 (type_hash_eq): Likewise
12743 (tree_int_cst_equal): Likewise.
12744 (tree_int_cst_lt): Delete.
12745 (tree_int_cst_compare): Likewise.
12746 (tree_fits_shwi_p): Use wide_int interfaces.
12747 (tree_fits_uhwi_p): Likewise.
12748 (tree_int_cst_sign_bit): Likewise.
12749 (tree_int_cst_sgn): Likewise.
12750 (tree_int_cst_min_precision): Take a signop rather than a bool.
12751 (simple_cst_equal): Use wide_int interfaces.
12752 (compare_tree_int): Likewise.
12753 (iterative_hash_expr): Likewise.
12754 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
12755 INT_CST_LT.
12756 (get_type_static_bounds): Use wide_int interfaces.
12757 (tree_int_cst_elt_check_failed): New.
12758 (build_common_tree_nodes): Reordered to set prec before filling in
12759 value.
12760 (int_cst_value): Check cst_and_fits_in_hwi.
12761 (widest_int_cst_value): Use wide_int interfaces.
12762 (upper_bound_in_type): Likewise.
12763 (lower_bound_in_type): Likewise.
12764 (num_ending_zeros): Likewise.
12765 (drop_tree_overflow): Likewise.
12766 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
12767 (gen_conditions_for_pow_cst_base): Likewise.
12768 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
12769 (group_case_labels_stmt): Use wide-int interfaces.
12770 (verify_gimple_assign_binary): Likewise.
12771 (print_loop): Likewise.
12772 * tree-chrec.c (tree_fold_binomial): Likewise.
12773 * tree-core.h (struct tree_base): Add int_length.
12774 (struct tree_int_cst): Change rep of value.
12775 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
12776 (dr_may_alias_p): Likewise.
12777 (max_stmt_executions_tree): Likewise.
12778 * tree.def (INTEGER_CST): Update comment.
12779 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
12780 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
12781 * tree-dump.c: Include wide-int.h and wide-int-print.h.
12782 (dequeue_and_dump): Use wide-int interfaces.
12783 * tree.h: Include wide-int.h.
12784 (NULL_TREE): Moved to earlier loc in file.
12785 (TREE_INT_CST_ELT_CHECK): New.
12786 (tree_int_cst_elt_check_failed): New.
12787 (TYPE_SIGN): New.
12788 (TREE_INT_CST): Delete.
12789 (TREE_INT_CST_LOW): Use wide-int interfaces.
12790 (TREE_INT_CST_HIGH): Delete.
12791 (TREE_INT_CST_NUNITS): New.
12792 (TREE_INT_CST_EXT_NUNITS): Likewise.
12793 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
12794 (TREE_INT_CST_ELT): Likewise.
12795 (INT_CST_LT): Delete.
12796 (tree_int_cst_elt_check): New (two forms).
12797 (type_code_size): Update comment.
12798 (make_int_cst_stat, make_int_cst): New.
12799 (tree_to_double_int): Delete.
12800 (double_int_fits_to_tree_p): Delete.
12801 (force_fit_type_double): Delete.
12802 (build_int_cstu): Replace with out-of-line function.
12803 (build_int_cst_wide): Delete.
12804 (tree_int_cst_lt): Define inline.
12805 (tree_int_cst_le): New.
12806 (tree_int_cst_compare): Define inline.
12807 (tree_int_cst_min_precision): Take a signop rather than a bool.
12808 (wi::int_traits <const_tree>): New.
12809 (wi::int_traits <tree>): New.
12810 (wi::extended_tree): New.
12811 (wi::int_traits <wi::extended_tree>): New.
12812 (wi::to_widest): New.
12813 (wi::to_offset): New.
12814 (wi::fits_to_tree_p): New.
12815 (wi::min_value): New.
12816 (wi::max_value): New.
12817 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
12818 (copy_tree_body_r): Likewise.
12819 * tree-object-size.c (compute_object_offset): Likewise.
12820 (addr_object_size): Likewise.
12821 * tree-predcom.c: Include wide-int-print.h.
12822 (struct dref_d): Change type of offset to widest_int.
12823 (dump_dref): Call wide-int printer.
12824 (aff_combination_dr_offset): Use wide-int interfaces.
12825 (determine_offset): Take a widest_int pointer rather than a
12826 double_int pointer.
12827 (split_data_refs_to_components): Use wide-int interfaces.
12828 (suitable_component_p): Likewise.
12829 (order_drefs): Likewise.
12830 (add_ref_to_chain): Likewise.
12831 (valid_initializer_p): Likewise.
12832 (determine_roots_comp): Likewise.
12833 * tree-pretty-print.c: Include wide-int-print.h.
12834 (dump_generic_node): Use wide-int interfaces.
12835 * tree-sra.c (sra_ipa_modify_expr): Likewise.
12836 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12837 (move_fixed_address_to_symbol): Likewise.
12838 (move_hint_to_base): Likewise.
12839 (move_pointer_to_base): Likewise.
12840 (move_variant_to_index): Likewise.
12841 (most_expensive_mult_to_index): Likewise.
12842 (addr_to_parts): Likewise.
12843 (copy_ref_info): Likewise.
12844 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
12845 (indirect_refs_may_alias_p): Likewise.
12846 (stmt_kills_ref_p_1): Likewise.
12847 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
12848 * tree-ssa-ccp.c: Update comment at top of file. Include
12849 wide-int-print.h.
12850 (struct prop_value_d): Change type of mask to widest_int.
12851 (extend_mask): New function.
12852 (dump_lattice_value): Use wide-int interfaces.
12853 (get_default_value): Likewise.
12854 (set_constant_value): Likewise.
12855 (set_value_varying): Likewise.
12856 (valid_lattice_transition): Likewise.
12857 (set_lattice_value): Likewise.
12858 (value_to_double_int): Delete.
12859 (value_to_wide_int): New.
12860 (get_value_from_alignment): Use wide-int interfaces.
12861 (get_value_for_expr): Likewise.
12862 (do_dbg_cnt): Likewise.
12863 (ccp_finalize): Likewise.
12864 (ccp_lattice_meet): Likewise.
12865 (bit_value_unop_1): Use widest_ints rather than double_ints.
12866 (bit_value_binop_1): Likewise.
12867 (bit_value_unop): Use wide-int interfaces.
12868 (bit_value_binop): Likewise.
12869 (bit_value_assume_aligned): Likewise.
12870 (evaluate_stmt): Likewise.
12871 (ccp_fold_stmt): Likewise.
12872 (visit_cond_stmt): Likewise.
12873 (ccp_visit_stmt): Likewise.
12874 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12875 (constant_pointer_difference): Likewise.
12876 (associate_pointerplus): Likewise.
12877 (combine_conversions): Likewise.
12878 * tree-ssa-loop.h: Include wide-int.h.
12879 (struct tree_niter_desc): Change type of max to widest_int.
12880 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
12881 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
12882 (remove_redundant_iv_tests): Likewise.
12883 (canonicalize_loop_induction_variables): Likewise.
12884 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
12885 (constant_multiple_of): Take a widest_int pointer instead of
12886 a double_int pointer.
12887 (get_computation_aff): Use wide-int interfaces.
12888 (ptr_difference_cost): Likewise.
12889 (difference_cost): Likewise.
12890 (get_loop_invariant_expr_id): Likewise.
12891 (get_computation_cost_at): Likewise.
12892 (iv_elimination_compare_lt): Likewise.
12893 (may_eliminate_iv): Likewise.
12894 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
12895 instead of double_int.
12896 (max_loop_iterations): Likewise.
12897 (max_stmt_executions): Likewise.
12898 (estimated_stmt_executions): Likewise.
12899 * tree-ssa-loop-niter.c: Include wide-int-print.h.
12900 (split_to_var_and_offset): Use wide-int interfaces.
12901 (determine_value_range): Likewise.
12902 (bound_difference_of_offsetted_base): Likewise.
12903 (bounds_add): Take a widest_int instead of a double_int.
12904 (number_of_iterations_ne_max): Use wide-int interfaces.
12905 (number_of_iterations_ne): Likewise.
12906 (number_of_iterations_lt_to_ne): Likewise.
12907 (assert_loop_rolls_lt): Likewise.
12908 (number_of_iterations_lt): Likewise.
12909 (number_of_iterations_le): Likewise.
12910 (number_of_iterations_cond): Likewise.
12911 (number_of_iterations_exit): Likewise.
12912 (finite_loop_p): Likewise.
12913 (derive_constant_upper_bound_assign): Likewise.
12914 (derive_constant_upper_bound): Return a widest_int.
12915 (derive_constant_upper_bound_ops): Likewise.
12916 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
12917 (record_estimate): Take a widest_int rather than a double_int.
12918 (record_nonwrapping_iv): Use wide-int interfaces.
12919 (double_int_cmp): Delete.
12920 (wide_int_cmp): New.
12921 (bound_index): Take a widest_int rather than a double_int.
12922 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
12923 (maybe_lower_iteration_bound): Likewise.
12924 (estimate_numbers_of_iterations_loop): Likewise.
12925 (estimated_loop_iterations): Take a widest_int pointer than than
12926 a double_int pointer.
12927 (estimated_loop_iterations_int): Use wide-int interfaces.
12928 (max_loop_iterations): Take a widest_int pointer than than
12929 a double_int pointer.
12930 (max_loop_iterations_int): Use wide-int interfaces.
12931 (max_stmt_executions): Take a widest_int pointer than than
12932 a double_int pointer.
12933 (estimated_stmt_executions): Likewise.
12934 (n_of_executions_at_most): Use wide-int interfaces.
12935 (scev_probably_wraps_p): Likewise.
12936 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
12937 to real_to_integer.
12938 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
12939 interfaces.
12940 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
12941 double_ints. Adjust for trailing_wide_ints <3> representation.
12942 (set_nonzero_bits): Likewise.
12943 (get_range_info): Return wide_ints rather than double_ints.
12944 Adjust for trailing_wide_ints <3> representation.
12945 (get_nonzero_bits): Likewise.
12946 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
12947 representation.
12948 * tree-ssanames.h (struct range_info_def): Replace min, max and
12949 nonzero_bits with a trailing_wide_ints <3>.
12950 (set_range_info): Use wide_int_refs rather than double_ints.
12951 (set_nonzero_bits): Likewise.
12952 (get_range_info): Return wide_ints rather than double_ints.
12953 (get_nonzero_bits): Likewise.
12954 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
12955 * tree-ssa-pre.c (phi_translate_1): Likewise.
12956 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
12957 (acceptable_pow_call): Likewise.
12958 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
12959 interfaces.
12960 (vn_reference_fold_indirect): Likewise.
12961 (vn_reference_maybe_forwprop_address): Likewise.
12962 (valueize_refs_1): Likewise.
12963 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
12964 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
12965 tree_int_cst_lt and tree_int_cst_le.
12966 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
12967 interfaces.
12968 (streamer_alloc_tree): Likewise.
12969 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
12970 (streamer_write_tree_header): Likewise.
12971 (streamer_write_integer_cst): Likewise.
12972 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12973 (build_constructors): Likewise.
12974 (array_value_type): Likewise.
12975 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
12976 (vect_check_gather): Likewise.
12977 * tree-vect-generic.c (build_replicated_const): Likewise.
12978 (expand_vector_divmod): Likewise.
12979 * tree-vect-loop.c (vect_transform_loop): Likewise.
12980 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
12981 (vect_do_peeling_for_alignment): Likewise.
12982 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
12983 * tree-vrp.c: Include wide-int.h.
12984 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
12985 (extract_range_from_assert): Use wide-int interfaces.
12986 (vrp_int_const_binop): Likewise.
12987 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
12988 double_int pointers.
12989 (ranges_from_anti_range): Use wide-int interfaces.
12990 (quad_int_cmp): Delete.
12991 (quad_int_pair_sort): Likewise.
12992 (extract_range_from_binary_expr_1): Use wide-int interfaces.
12993 (extract_range_from_unary_expr_1): Likewise.
12994 (adjust_range_with_scev): Likewise.
12995 (masked_increment): Take and return wide_ints rather than double_ints.
12996 (register_edge_assert_for_2): Use wide-int interfaces.
12997 (check_array_ref): Likewise.
12998 (search_for_addr_array): Likewise.
12999 (maybe_set_nonzero_bits): Likewise.
13000 (union_ranges): Pass an integer of the correct type instead of
13001 using integer_one_node.
13002 (intersect_ranges): Likewise.
13003 (simplify_truth_ops_using_ranges): Likewise.
13004 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13005 (range_fits_type_p): Likewise.
13006 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13007 a bool.
13008 (simplify_conversion_using_ranges): Use wide-int interfaces.
13009 (simplify_float_conversion_using_ranges): Likewise.
13010 (vrp_finalize): Likewise.
13011 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13012 (gimple_stringops_transform): Likewise.
13013 * varasm.c (decode_addr_const): Likewise.
13014 (const_hash_1): Likewise.
13015 (const_rtx_hash_1): Likewise
13016 (output_constant): Likewise.
13017 (array_size_for_constructor): Likewise.
13018 (output_constructor_regular_field): Likewise.
13019 (output_constructor_bitfield): Likewise.
13020 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13021 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13022 GENERATOR_FILEs.
13023 * gencheck.c: Define BITS_PER_UNIT.
13024 * wide-int.cc: New.
13025 * wide-int.h: New.
13026 * wide-int-print.cc: New.
13027 * wide-int-print.h: New.
13028
13029 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13030
13031 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13032
13033 2014-05-06 Richard Biener <rguenther@suse.de>
13034
13035 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13036 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13037 (TODO_verify_all): Adjust.
13038 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13039 TODO_verify_stmts and TODO_verify_rtl_sharing.
13040 * bb-reorder.c: Likewise.
13041 * cfgexpand.c: Likewise.
13042 * cprop.c: Likewise.
13043 * cse.c: Likewise.
13044 * function.c: Likewise.
13045 * fwprop.c: Likewise.
13046 * gcse.c: Likewise.
13047 * gimple-ssa-isolate-paths.c: Likewise.
13048 * gimple-ssa-strength-reduction.c: Likewise.
13049 * ipa-split.c: Likewise.
13050 * loop-init.c: Likewise.
13051 * loop-unroll.c: Likewise.
13052 * lower-subreg.c: Likewise.
13053 * modulo-sched.c: Likewise.
13054 * postreload-gcse.c: Likewise.
13055 * predict.c: Likewise.
13056 * recog.c: Likewise.
13057 * sched-rgn.c: Likewise.
13058 * store-motion.c: Likewise.
13059 * tracer.c: Likewise.
13060 * trans-mem.c: Likewise.
13061 * tree-call-cdce.c: Likewise.
13062 * tree-cfg.c: Likewise.
13063 * tree-cfgcleanup.c: Likewise.
13064 * tree-complex.c: Likewise.
13065 * tree-eh.c: Likewise.
13066 * tree-emutls.c: Likewise.
13067 * tree-if-conv.c: Likewise.
13068 * tree-into-ssa.c: Likewise.
13069 * tree-loop-distribution.c: Likewise.
13070 * tree-object-size.c: Likewise.
13071 * tree-parloops.c: Likewise.
13072 * tree-pass.h: Likewise.
13073 * tree-sra.c: Likewise.
13074 * tree-ssa-ccp.c: Likewise.
13075 * tree-ssa-copy.c: Likewise.
13076 * tree-ssa-copyrename.c: Likewise.
13077 * tree-ssa-dce.c: Likewise.
13078 * tree-ssa-dom.c: Likewise.
13079 * tree-ssa-dse.c: Likewise.
13080 * tree-ssa-forwprop.c: Likewise.
13081 * tree-ssa-ifcombine.c: Likewise.
13082 * tree-ssa-loop-ch.c: Likewise.
13083 * tree-ssa-loop-ivcanon.c: Likewise.
13084 * tree-ssa-loop.c: Likewise.
13085 * tree-ssa-math-opts.c: Likewise.
13086 * tree-ssa-phiopt.c: Likewise.
13087 * tree-ssa-phiprop.c: Likewise.
13088 * tree-ssa-pre.c: Likewise.
13089 * tree-ssa-reassoc.c: Likewise.
13090 * tree-ssa-sink.c: Likewise.
13091 * tree-ssa-strlen.c: Likewise.
13092 * tree-ssa-tail-merge.c: Likewise.
13093 * tree-ssa-uncprop.c: Likewise.
13094 * tree-switch-conversion.c: Likewise.
13095 * tree-tailcall.c: Likewise.
13096 * tree-vect-generic.c: Likewise.
13097 * tree-vectorizer.c: Likewise.
13098 * tree-vrp.c: Likewise.
13099 * tsan.c: Likewise.
13100 * var-tracking.c: Likewise.
13101 * bt-load.c: Likewise.
13102 * cfgcleanup.c: Likewise.
13103 * combine-stack-adj.c: Likewise.
13104 * combine.c: Likewise.
13105 * compare-elim.c: Likewise.
13106 * config/epiphany/resolve-sw-modes.c: Likewise.
13107 * config/i386/i386.c: Likewise.
13108 * config/mips/mips.c: Likewise.
13109 * config/s390/s390.c: Likewise.
13110 * config/sh/sh_treg_combine.cc: Likewise.
13111 * config/sparc/sparc.c: Likewise.
13112 * dce.c: Likewise.
13113 * dse.c: Likewise.
13114 * final.c: Likewise.
13115 * ifcvt.c: Likewise.
13116 * mode-switching.c: Likewise.
13117 * passes.c: Likewise.
13118 * postreload.c: Likewise.
13119 * ree.c: Likewise.
13120 * reg-stack.c: Likewise.
13121 * regcprop.c: Likewise.
13122 * regrename.c: Likewise.
13123 * web.c: Likewise.
13124
13125 2014-05-06 Richard Biener <rguenther@suse.de>
13126
13127 PR middle-end/61070
13128 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13129 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13130
13131 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13132
13133 PR ipa/60965
13134 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13135
13136 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13137 Tom de Vries <tom@codesourcery.com>
13138
13139 * target.def (call_fusage_contains_non_callee_clobbers): New
13140 DEFHOOKPOD.
13141 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13142 Hooks to @menu.
13143 (@node Miscellaneous Register Hooks): New node.
13144 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13145 * doc/tm.texi: Regenerate.
13146
13147 2014-05-05 Marek Polacek <polacek@redhat.com>
13148
13149 PR driver/61065
13150 * opts.c (common_handle_option): Call error_at instead of warning_at.
13151
13152 2014-05-05 Richard Biener <rguenther@suse.de>
13153
13154 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13155 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13156 under the TODO_verify_il umbrella.
13157
13158 2014-05-05 Richard Biener <rguenther@suse.de>
13159
13160 * passes.c (execute_function_todo): Move TODO_verify_flow under
13161 the TODO_verify_ul umbrella.
13162
13163 2014-05-05 Richard Biener <rguenther@suse.de>
13164
13165 PR middle-end/61010
13166 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13167 X & CST away from a CST that is the mask of a mode.
13168
13169 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13170
13171 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13172 int argument to enum machine_mode.
13173 (picochip_class_max_nregs): Ditto.
13174 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13175 (picochip_class_max_nregs): Ditto.
13176
13177 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13178
13179 * target.def: Add new target hook.
13180 * doc/tm.texi: Regenerate.
13181 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13182 * targhooks.c (default_keep_leaf_when_profiled): New function.
13183
13184 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13185 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13186
13187 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13188
13189 PR tree-optimization/60363
13190 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13191 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13192 (update_destination_phis): New parameter.
13193 (create_edge_and_update_destination_phis): Ditto.
13194 (ssa_fix_duplicate_block_edges): Pass new arguments.
13195 (thread_single_edge): Ditto.
13196
13197 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13198
13199 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13200 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13201 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13202 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13203 Use RS6000_BTM_HARD_FLOAT.
13204 (BU_MISC_2): Likewise.
13205 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13206 RS6000_BTM_HARD_FLOAT.
13207 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13208 is explicitly used.
13209 (rs6000_invalid_builtin): Add hard floating builtin support.
13210 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13211 hard float builtins.
13212 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13213
13214 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13215
13216 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13217 Add missing function* argument.
13218
13219 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13220
13221 * lra-constraints.c (valid_address_p): Move earlier in file.
13222 Add a constraint argument to the address_info version.
13223 (satisfies_memory_constraint_p): New function.
13224 (satisfies_address_constraint_p): Likewise.
13225 (process_alt_operands, curr_insn_transform): Use them.
13226 (process_address): Pass the constraint to valid_address_p when
13227 checking address operands.
13228
13229 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13230
13231 * config/mips/mips.c (mips_isa_rev): New variable.
13232 (mips_set_architecture): Set it.
13233 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13234 from mips_isa_rev.
13235 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13236 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13237 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13238 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13239 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13240 conditions in terms of mips_isa_rev.
13241 (mips_isa_rev): Declare.
13242
13243 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13244
13245 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13246 (prob_unlikely, prob_likely): Make variables const.
13247
13248 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13249
13250 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13251
13252 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13253
13254 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13255
13256 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13257
13258 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13259 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13260 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13261 functions.
13262 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13263 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13264 sh_pass_in_reg_p.
13265 Replace usage of ROUND_REG with sh_round_reg.
13266 Use CEIL instead of ROUND_ADVANCE.
13267
13268 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13269
13270 PR target/61026
13271 * config/sh/sh.c: Include stdlib headers before everything else.
13272
13273 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13274
13275 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13276 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13277 (gimplify_adjust_omp_clauses): Simd region is never
13278 directly nested in combined parallel. Instead, for linear
13279 with copyin/copyout, if in combined for simd loop, make decl
13280 firstprivate/lastprivate on OMP_FOR.
13281 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13282 expand_omp_for_static_chunk): When setting endvar, also set
13283 fd->loop.v to the same value.
13284
13285 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13286
13287 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13288
13289 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13290
13291 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13292 expression.
13293
13294 2014-05-02 Marek Polacek <polacek@redhat.com>
13295
13296 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13297
13298 2014-05-02 Kito Cheng <kito@0xlab.org>
13299
13300 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13301 to a C expression marco.
13302 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13303 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13304 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13305 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13306 HONOR_REG_ALLOC_ORDER.
13307 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13308
13309 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13310
13311 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13312
13313 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13314
13315 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13316
13317 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13318
13319 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13320 (convert_scalar_cond_reduction): Likewise.
13321 (predicate_scalar_phi): Add recognition and transformation
13322 of simple conditioanl reduction to be vectorizable.
13323
13324 2014-05-01 Marek Polacek <polacek@redhat.com>
13325
13326 PR c/43245
13327 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13328
13329 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13330
13331 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13332 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13333 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13334 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13335 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13336 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13337 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13338 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13339
13340 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13341
13342 * config/arc/arc.opt (mlra): Move comment above option name
13343 to avoid mis-parsing as language options.
13344
13345 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13346
13347 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13348 * config/sol2.h: ... here.
13349 * config/sol2-10.h: Remove.
13350
13351 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13352 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13353 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13354 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13355 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13356 * config/sol2.h: ... here.
13357 (SECTION_NAME_FORMAT): Don't redefine.
13358 (STARTFILE_ARCH32_SPEC): Rename to ...
13359 (STARTFILE_ARCH_SPEC): ... this.
13360 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13361 * config/sparc/sol2.h: ... here.
13362 (SECTION_NAME_FORMAT): Don't undef.
13363 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13364 (SUBTARGET_EXTRA_SPECS): Remove.
13365 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13366
13367 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13368 (MD_STARTFILE_PREFIX): Remove.
13369 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13370 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13371 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13372 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13373 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13374 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13375 * config/i386/sol2.h: ... here.
13376 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13377 * config/i386/sol2-bi.h: Remove.
13378 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13379 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13380
13381 * config/i386/t-sol2-64: Rename to ...
13382 * config/i386/t-sol2: ... this.
13383 * config/sparc/t-sol2-64: Rename to ...
13384 * config/sparc/t-sol2: ... this.
13385
13386 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13387 sol2_tm_file_head, sol2_tm_file_tail.
13388 Include ${cpu_type}/sol2.h before sol2.h.
13389 Remove sol2-10.h.
13390 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13391 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13392 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13393 Reflect i386/t-sol2-64 renaming.
13394 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13395 Reflect sparc/t-sol2-64 renaming.
13396
13397 2014-04-30 Richard Biener <rguenther@suse.de>
13398
13399 * passes.c (execute_function_todo): Move TODO_verify_stmts
13400 and TODO_verify_ssa under the TODO_verify_il umbrella.
13401 * tree-ssa.h (verify_ssa): Adjust prototype.
13402 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13403 we should verify SSA operands.
13404 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13405 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13406 whether we should verify whether not throwing stmts have EH info.
13407 * graphite-scop-detection.c (create_sese_edges): Adjust.
13408 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13409 * tree-eh.c (lower_try_finally_switch): Do not add the
13410 default case label twice.
13411
13412 2014-04-30 Marek Polacek <polacek@redhat.com>
13413
13414 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13415 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13416 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13417 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13418
13419 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13420
13421 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13422 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13423 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13424 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13425 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13426 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13427 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13428 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13429
13430 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13431
13432 * tree-cfg.c (dump_function_to_file): Dump the return type of
13433 functions, in a line to itself before the function body, mimicking
13434 the layout of a C function.
13435
13436 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13437
13438 PR tree-optimization/60971
13439 * tree-tailcall.c (process_assignment): Reject conversions which
13440 reduce precision.
13441
13442 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13443
13444 * calls.c (initialize_argument_information): Always treat
13445 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13446 (expand_call): Likewise.
13447 (emit_library_call_calue_1): Likewise.
13448 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13449 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13450 code accordingly.
13451
13452 2014-04-29 Nick Clifton <nickc@redhat.com>
13453
13454 * config/msp430/msp430.md (umulsidi): Fix typo.
13455 (mulhisi3): Enable even inside interrupt handlers.
13456 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13457 bigger return address pushed in large mode.
13458
13459 2014-04-29 Nick Clifton <nickc@redhat.com>
13460
13461 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13462 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13463 available modes.
13464 * config/m32r/m32r.c (init_reg_tables): Likewise.
13465 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13466 enum to hold the modes.
13467
13468 2014-04-29 Richard Biener <rguenther@suse.de>
13469
13470 * dominance.c (free_dominance_info): Add overload with
13471 function parameter.
13472 (dom_info_state): Likewise.
13473 (dom_info_available_p): Likewise.
13474 * basic-block.h (free_dominance_info, dom_info_state,
13475 dom_info_available_p): Declare overloads.
13476 * passes.c (execute_function_todo): Verify that verifiers
13477 don't change dominator info state. Drop dominator info
13478 for IPA pass invocations.
13479 * cgraph.c (release_function_body): Restore asserts that
13480 dominator information is released.
13481
13482 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13483
13484 * doc/invoke.texi: Fix typo.
13485 * tree-vrp.c: Fix typos.
13486 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13487
13488 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13489
13490 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13491
13492 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13493
13494 * config/aarch64/aarch64-builtins.c
13495 (aarch64_types_storestruct_lane_qualifiers): New.
13496 (TYPES_STORESTRUCT_LANE): Likewise.
13497 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13498 (st3_lane): Likewise.
13499 (st4_lane): Likewise.
13500 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13501 (vec_store_lanesci_lane<mode>): Likewise.
13502 (vec_store_lanesxi_lane<mode>): Likewise.
13503 (aarch64_st2_lane<VQ:mode>): Likewise.
13504 (aarch64_st3_lane<VQ:mode>): Likewise.
13505 (aarch64_st4_lane<VQ:mode>): Likewise.
13506 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13507 * config/aarch64/arm_neon.h
13508 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13509 use new macro arguments.
13510 (__ST3_LANE_FUNC): Likewise.
13511 (__ST4_LANE_FUNC): Likewise.
13512 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13513 (V_THREE_ELEM): Likewise.
13514 (V_FOUR_ELEM): Likewise.
13515
13516 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13517
13518 * doc/gimple.texi: Replace the description of the now-defunct
13519 union gimple_statement_d with a diagram showing the
13520 gimple_statement_base class hierarchy and its relationships to
13521 the GSS_ and GIMPLE_ enums.
13522
13523 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13524
13525 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13526 * config/aarch64/aarch64.c
13527 (aarch64_cannot_change_mode_class): Weaken conditions.
13528 (aarch64_modes_tieable_p): New.
13529 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13530
13531 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13532
13533 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13534 (loadsync_<mode>): Change mode.
13535 (load_quadpti, store_quadpti): New.
13536 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13537 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13538
13539 2014-04-28 Martin Jambor <mjambor@suse.cz>
13540
13541 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13542 same alias type as the original statement.
13543 (subreplacement_assignment_data): New type.
13544 (handle_unscalarized_data_in_subtree): New type of parameter,
13545 generate new memory accesses with same alias type as the original
13546 statement.
13547 (load_assign_lhs_subreplacements): Likewise.
13548 (sra_modify_constructor_assign): Generate new memory accesses with
13549 same alias type as the original statement.
13550
13551 2014-04-28 Richard Biener <rguenther@suse.de>
13552
13553 * tree-pass.h (TODO_verify_il): Define.
13554 (TODO_verify_all): Complete properly.
13555 * passes.c (execute_function_todo): Move existing loop-closed
13556 SSA verification under TODO_verify_il.
13557 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13558 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13559 Fix tree sharing issue.
13560
13561 2014-04-28 Richard Biener <rguenther@suse.de>
13562
13563 PR middle-end/60092
13564 * builtins.def (DEF_C11_BUILTIN): Add.
13565 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13566 * coretypes.h (enum function_class): Add function_c11_misc.
13567 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13568 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13569 (call_may_clobber_ref_p_1): Likewise.
13570 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13571 (mark_all_reaching_defs_necessary_1): Likewise.
13572 (propagate_necessity): Likewise.
13573 (eliminate_unnecessary_stmts): Likewise.
13574 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13575
13576 2014-04-28 Richard Biener <rguenther@suse.de>
13577
13578 * tree-vrp.c (vrp_var_may_overflow): Remove.
13579 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13580 with overflow immediately bump to one before that value and
13581 let iteration figure out overflow status.
13582
13583 2014-04-28 Richard Biener <rguenther@suse.de>
13584
13585 * configure.ac: Do valgrind header checks unconditionally.
13586 Add --enable-valgrind-annotations.
13587 * system.h: Guard valgrind header inclusion with
13588 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
13589 * alloc-pool.c (pool_alloc, pool_free): Use
13590 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
13591 to guard possibly dead code.
13592 * config.in: Regenerated.
13593 * configure: Likewise.
13594
13595 2014-04-28 Jeff Law <law@redhat.com>
13596
13597 PR tree-optimization/60902
13598 * tree-ssa-threadedge.c
13599 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
13600 over real defs when invalidating outputs from statements that do not
13601 produce useful outputs for threading.
13602
13603 2014-04-28 Richard Biener <rguenther@suse.de>
13604
13605 PR tree-optimization/60979
13606 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
13607 SCOPs that end in a block with a successor with abnormal
13608 predecessors.
13609
13610 2014-04-28 Richard Biener <rguenther@suse.de>
13611
13612 * tree-pass.h (execute_pass_list): Adjust prototype.
13613 * passes.c (pass_manager::execute_early_local_passes): Adjust.
13614 (do_per_function): Change callback signature, push all actual
13615 work to the callbals.
13616 (do_per_function_toporder): Likewise.
13617 (execute_function_dump): Adjust.
13618 (execute_function_todo): Likewise.
13619 (clear_last_verified): Likewise.
13620 (verify_curr_properties): Likewise.
13621 (update_properties_after_pass): Likewise.
13622 (execute_pass_list_1): Split out from ...
13623 (execute_pass_list): ... here. Adjust.
13624 (execute_ipa_pass_list): Likewise.
13625 * cgraphunit.c (cgraph_add_new_function): Adjust.
13626 (analyze_function): Likewise.
13627 (expand_function): Likewise.
13628 * cgraph.c (release_function_body): Free dominance info
13629 here instead of asserting it was magically freed elsewhere.
13630
13631 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
13632
13633 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
13634 * configure: Regenerate.
13635 * config/sparc/sparc.opt (muser-mode): New option.
13636 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
13637 for LEON3.
13638 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
13639 * doc/invoke.texi (SPARC options): Document -muser-mode.
13640
13641 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
13642
13643 * cselib.c (find_slot_memmode): Delete.
13644 (cselib_hasher): Change compare_type to a struct.
13645 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
13646 constants.
13647 (preserve_constants_and_equivs): Adjust for new compare_type.
13648 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
13649 (wrap_constant): Delete.
13650 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
13651
13652 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
13653
13654 * doc/install.texi (Building with profile feedback): Remove
13655 outdated sentence.
13656
13657 2014-04-26 Tom de Vries <tom@codesourcery.com>
13658
13659 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
13660 array accesses.
13661
13662 2014-04-25 Cary Coutant <ccoutant@google.com>
13663
13664 PR debug/60929
13665 * dwarf2out.c (should_move_die_to_comdat): A type definition
13666 can contain a subprogram definition, but don't move it to a
13667 comdat unit.
13668 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
13669 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
13670 from original DIE.
13671 (clone_tree_hash): Rename to...
13672 (clone_tree_partial): ...this; change callers. Copy
13673 DW_TAG_subprogram DIEs as declarations.
13674 (copy_decls_walk): Don't copy children of a declaration into a
13675 type unit.
13676
13677 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
13678
13679 PR target/60969
13680 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
13681 alternative 12.
13682
13683 2014-04-25 Jiong Wang <jiong.wang@arm.com>
13684
13685 * config/arm/predicates.md (call_insn_operand): Add long_call check.
13686 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
13687 reg for long_call.
13688 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
13689 restriction.
13690
13691 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13692
13693 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
13694
13695 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13696
13697 PR tree-optimization/60930
13698 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
13699 creating a multiply candidate by folding two constant
13700 multiplicands when the result overflows.
13701
13702 2014-04-25 Jakub Jelinek <jakub@redhat.com>
13703
13704 PR tree-optimization/60960
13705 * tree-vect-generic.c (expand_vector_operation): Only call
13706 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
13707
13708 2014-04-25 Tom de Vries <tom@codesourcery.com>
13709
13710 * expr.c (clobber_reg_mode): New function.
13711 * expr.h (clobber_reg): New function.
13712
13713 2014-04-25 Tom de Vries <tom@codesourcery.com>
13714
13715 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
13716 clobbers.
13717
13718 2014-04-25 Radovan Obradovic <robradovic@mips.com>
13719 Tom de Vries <tom@codesourcery.com>
13720
13721 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
13722 handle.
13723 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
13724 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
13725 new argument to find_all_hard_reg_sets call.
13726
13727 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13728
13729 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
13730 Use HOST_WIDE_INT_C for mask literal.
13731 (aarch_rev16_shleft_mask_imm_p): Likewise.
13732
13733 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
13734
13735 PR target/60941
13736 * config/sparc/sparc.md (ashlsi3_extend): Delete.
13737
13738 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
13739
13740 PR preprocessor/56540
13741 * config/i386/i386-c.c (ix86_target_macros): Define
13742 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
13743
13744 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13745
13746 * configure.ac (tga_func): Remove.
13747 (LIB_TLS_SPEC): Remove.
13748 * configure: Regenerate.
13749 * config.in: Regenerate.
13750 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
13751
13752 2014-04-25 Richard Biener <rguenther@suse.de>
13753
13754 PR ipa/60912
13755 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
13756 call stmt use/clobber sets during stmt walk instead of
13757 walking the possibly incomplete set of caller edges.
13758
13759 2014-04-25 Richard Biener <rguenther@suse.de>
13760
13761 PR ipa/60911
13762 * passes.c (apply_ipa_transforms): Inline into only caller ...
13763 (execute_one_pass): ... here. Properly bring in function
13764 bodies for nodes we want to apply IPA transforms to.
13765
13766 2014-04-24 Cong Hou <congh@google.com>
13767
13768 PR tree-optimization/60896
13769 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
13770 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
13771 (vect_mark_pattern_stmts): Set the def type of all statements in
13772 PATTERN_DEF_SEQ as vect_internal_def.
13773
13774 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13775
13776 * doc/extend.texi (PowerPC Built-in Functions): Document new
13777 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
13778 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
13779
13780 * config/rs6000/predicates.md (const_0_to_3_operand): New
13781 predicate to match 0..3 integer constants.
13782
13783 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
13784 to support adding miscellaneous builtin functions.
13785 (BU_DFP_MISC_2): Likewise.
13786 (BU_P7_MISC_1): Likewise.
13787 (BU_P7_MISC_2): Likewise.
13788 (BU_P8V_MISC_3): Likewise.
13789 (BU_MISC_1): Likewise.
13790 (BU_MISC_2): Likewise.
13791 (DIVWE): Add extended divide builtin functions.
13792 (DIVWEO): Likewise.
13793 (DIVWEU): Likewise.
13794 (DIVWEUO): Likewise.
13795 (DIVDE): Likewise.
13796 (DIVDEO): Likewise.
13797 (DIVDEU): Likewise.
13798 (DIVDEUO): Likewise.
13799 (DXEX): Add decimal floating-point builtin functions.
13800 (DXEXQ): Likewise.
13801 (DDEDPD): Likewise.
13802 (DDEDPDQ): Likewise.
13803 (DENBCD): Likewise.
13804 (DENBCDQ): Likewise.
13805 (DIEX): Likewise.
13806 (DIEXQ): Likewise.
13807 (DSCLI): Likewise.
13808 (DSCLIQ): Likewise.
13809 (DSCRI): Likewise.
13810 (DSCRIQ): Likewise.
13811 (CDTBCD): Add new BCD builtin functions.
13812 (CBCDTD): Likewise.
13813 (ADDG6S): Likewise.
13814 (BCDADD): Likewise.
13815 (BCDADD_LT): Likewise.
13816 (BCDADD_EQ): Likewise.
13817 (BCDADD_GT): Likewise.
13818 (BCDADD_OV): Likewise.
13819 (BCDSUB): Likewise.
13820 (BCDSUB_LT): Likewise.
13821 (BCDSUB_EQ): Likewise.
13822 (BCDSUB_GT): Likewise.
13823 (BCDSUB_OV): Likewise.
13824 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
13825 (UNPACK_TD): Likewise.
13826 (PACK_TF): Likewise.
13827 (UNPACK_TF): Likewise.
13828 (UNPACK_TF_0): Likewise.
13829 (UNPACK_TF_1): Likewise.
13830 (PACK_V1TI): Likewise.
13831 (UNPACK_V1TI): Likewise.
13832
13833 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
13834 support for decimal floating point builtin functions.
13835 (rs6000_expand_ternop_builtin): Add checks for the new builtin
13836 functions that take constant arguments.
13837 (rs6000_invalid_builtin): Add decimal floating point builtin support.
13838 (rs6000_init_builtins): Setup long double, _Decimal64, and
13839 _Decimal128 types for new builtin functions.
13840 (builtin_function_type): Set the unsigned flags appropriately for
13841 the new builtin functions.
13842 (rs6000_opt_masks): Add support for decimal floating point builtin
13843 functions.
13844
13845 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
13846 floating point builtin functions.
13847 (RS6000_BTM_COMMON): Likewise.
13848 (RS6000_BTI_long_double): Likewise.
13849 (RS6000_BTI_dfloat64): Likewise.
13850 (RS6000_BTI_dfloat128): Likewise.
13851 (long_double_type_internal_node): Likewise.
13852 (dfloat64_type_internal_node): Likewise.
13853 (dfloat128_type_internal_node): Likewise.
13854
13855 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
13856 2.07 bcd arithmetic instructions.
13857 (UNSPEC_BCDSUB): Likewise.
13858 (UNSPEC_BCD_OVERFLOW): Likewise.
13859 (UNSPEC_BCD_ADD_SUB): Likewise.
13860 (bcd_add_sub): Likewise.
13861 (BCD_TEST): Likewise.
13862 (bcd<bcd_add_sub>): Likewise.
13863 (bcd<bcd_add_sub>_test): Likewise.
13864 (bcd<bcd_add_sub>_test2): Likewise.
13865 (bcd<bcd_add_sub>_<code>): Likewise.
13866 (peephole2 for combined bcd ops): Likewise.
13867
13868 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
13869 decimal floating point builtin functions.
13870 (UNSPEC_DENBCD): Likewise.
13871 (UNSPEC_DXEX): Likewise.
13872 (UNSPEC_DIEX): Likewise.
13873 (UNSPEC_DSCLI): Likewise.
13874 (UNSPEC_DSCRI): Likewise.
13875 (D64_D128): Likewise.
13876 (dfp_suffix): Likewise.
13877 (dfp_ddedpd_<mode>): Likewise.
13878 (dfp_denbcd_<mode>): Likewise.
13879 (dfp_dxex_<mode>): Likewise.
13880 (dfp_diex_<mode>): Likewise.
13881 (dfp_dscli_<mode>): Likewise.
13882 (dfp_dscri_<mode>): Likewise.
13883
13884 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
13885 builtin functions.
13886 (UNSPEC_CDTBCD): Likewise.
13887 (UNSPEC_CBCDTD): Likewise.
13888 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
13889 (UNSPEC_DIVEO): Likewise.
13890 (UNSPEC_DIVEU): Likewise.
13891 (UNSPEC_DIVEUO): Likewise.
13892 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
13893 pack/unpack 128-bit types.
13894 (UNSPEC_PACK_128BIT): Likewise.
13895 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
13896 (udiv<mode>3): Use idiv_ldiv mode attribute.
13897 (div<mode>3): Likewise.
13898 (addg6s): Add new BCD builtin functions.
13899 (cdtbcd): Likewise.
13900 (cbcdtd): Likewise.
13901 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
13902 (div_extend): Likewise.
13903 (div<div_extend>_<mode>"): Likewise.
13904 (FP128_64): Add support for new builtin functions to pack/unpack
13905 128-bit types.
13906 (unpack<mode>): Likewise.
13907 (unpacktf_0): Likewise.
13908 (unpacktf_1): Likewise.
13909 (unpack<mode>_dm): Likewise.
13910 (unpack<mode>_nodm): Likewise.
13911 (pack<mode>): Likewise.
13912 (unpackv1ti): Likewise.
13913 (packv1ti): Likewise.
13914
13915 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
13916
13917 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
13918 is disabled.
13919
13920 2014-04-24 Jakub Jelinek <jakub@redhat.com>
13921
13922 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
13923 * gimplify.c (omp_is_private): Change last argument's type to int.
13924 Only diagnose lastprivate if the simd argument is 1, only diagnose
13925 linear if the simd argument is 2.
13926 (gimplify_omp_for): Adjust omp_is_private callers. When adding
13927 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
13928 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
13929 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
13930 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
13931 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13932 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
13933 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
13934 * tree-nested.c (convert_nonlocal_omp_clauses,
13935 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
13936
13937 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
13938
13939 PR target/60822
13940 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
13941 operand 1.
13942
13943 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
13944
13945 * flag-types.h (enum ivar_visibility): Add.
13946
13947 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
13948
13949 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
13950 function * argument.
13951
13952 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
13953
13954 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
13955
13956 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13957 Tom de Vries <tom@codesourcery.com>
13958
13959 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
13960 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
13961 reg-note.
13962 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
13963 * emit-rtl.c (try_split): Same.
13964
13965 2014-04-24 Radovan Obradovic <robradovic@mips.com>
13966 Tom de Vries <tom@codesourcery.com>
13967
13968 * common.opt (fuse-caller-save): New option.
13969
13970 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
13971
13972 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
13973 elements for big-endian.
13974
13975 2014-04-24 Richard Biener <rguenther@suse.de>
13976
13977 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
13978 during TER and instead use the sepops interface for expanding
13979 non-GIMPLE_SINGLE_RHS.
13980
13981 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13982
13983 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
13984 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
13985
13986 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13987
13988 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
13989 assembler 64-bit option.
13990 * configure: Regenerate.
13991
13992 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13993
13994 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
13995 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
13996 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
13997 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
13998 (TARGET_CRYPTO): Take TARGET_SIMD into account.
13999
14000 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14001
14002 * config/aarch64/aarch64-builtins.c
14003 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14004 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14005 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14006 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14007 builtins.
14008 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14009 (Vrevsuff): New mode attribute.
14010
14011 2014-04-24 Terry Guo <terry.guo@arm.com>
14012
14013 * config/arm/arm.h (machine_function): Define variable
14014 after_arm_reorg here.
14015 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14016 (arm_split_constant): Update the way to access variable
14017 after_arm_reorg.
14018 (arm_reorg): Ditto.
14019 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14020
14021 2014-04-23 Tom de Vries <tom@codesourcery.com>
14022
14023 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14024
14025 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14026
14027 * is-a.h: Update comments to reflect the following changes to the
14028 "pointerness" of the API, making the template parameter match the
14029 return type, allowing use of is-a.h with typedefs of pointers.
14030 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14031 that the return type matches the parameter to the is_a_helper.
14032 (as_a): Likewise.
14033 (dyn_cast): Likewise.
14034
14035 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14036 pointer from the is-a.h API.
14037
14038 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14039 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14040 is-a.h API.
14041 (is_a_helper <varpool_node>::test): Likewise, convert to...
14042 (is_a_helper <varpool_node *>::test): ...this.
14043
14044 (varpool_first_variable): Update for removal of implicit pointer
14045 from the is-a.h API.
14046 (varpool_next_variable): Likewise.
14047 (varpool_first_static_initializer): Likewise.
14048 (varpool_next_static_initializer): Likewise.
14049 (varpool_first_defined_variable): Likewise.
14050 (varpool_next_defined_variable): Likewise.
14051 (cgraph_first_defined_function): Likewise.
14052 (cgraph_next_defined_function): Likewise.
14053 (cgraph_first_function): Likewise.
14054 (cgraph_next_function): Likewise.
14055 (cgraph_first_function_with_gimple_body): Likewise.
14056 (cgraph_next_function_with_gimple_body): Likewise.
14057 (cgraph_alias_target): Likewise.
14058 (varpool_alias_target): Likewise.
14059 (cgraph_function_or_thunk_node): Likewise.
14060 (varpool_variable_node): Likewise.
14061 (symtab_real_symbol_p): Likewise.
14062 * cgraphunit.c (referred_to_p): Likewise.
14063 (analyze_functions): Likewise.
14064 (handle_alias_pairs): Likewise.
14065 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14066 * gimple-ssa.h (gimple_vuse_op): Likewise.
14067 (gimple_vdef_op): Likewise.
14068 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14069 * gimple.c (gimple_build_asm_1): Likewise.
14070 (gimple_build_try): Likewise.
14071 (gimple_build_resx): Likewise.
14072 (gimple_build_eh_dispatch): Likewise.
14073 (gimple_build_omp_for): Likewise.
14074 (gimple_omp_for_set_clauses): Likewise.
14075
14076 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14077 (is_a_helper <gimple_statement_asm *>::test): ...this.
14078 (is_a_helper <gimple_statement_bind>::test): Convert to...
14079 (is_a_helper <gimple_statement_bind *>::test): ...this.
14080 (is_a_helper <gimple_statement_call>::test): Convert to...
14081 (is_a_helper <gimple_statement_call *>::test): ...this.
14082 (is_a_helper <gimple_statement_catch>::test): Convert to...
14083 (is_a_helper <gimple_statement_catch *>::test): ...this.
14084 (is_a_helper <gimple_statement_resx>::test): Convert to...
14085 (is_a_helper <gimple_statement_resx *>::test): ...this.
14086 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14087 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14088 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14089 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14090 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14091 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14092 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14093 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14094 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14095 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14096 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14097 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14098 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14099 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14100 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14101 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14102 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14103 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14104 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14105 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14106 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14107 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14108 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14109 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14110 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14111 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14112 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14113 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14114 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14115 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14116 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14117 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14118 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14119 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14120 (is_a_helper <gimple_statement_phi>::test): Convert to...
14121 (is_a_helper <gimple_statement_phi *>::test): ...this.
14122 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14123 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14124 (is_a_helper <gimple_statement_try>::test): Convert to...
14125 (is_a_helper <gimple_statement_try *>::test): ...this.
14126 (is_a_helper <gimple_statement_wce>::test): Convert to...
14127 (is_a_helper <gimple_statement_wce *>::test): ...this.
14128 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14129 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14130 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14131 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14132 (is_a_helper <const gimple_statement_call>::test): Convert to...
14133 (is_a_helper <const gimple_statement_call *>::test): ...this.
14134 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14135 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14136 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14137 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14138 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14139 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14140 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14141 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14142 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14143 Convert to...
14144 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14145 ...this.
14146 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14147 Convert to...
14148 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14149 ...this.
14150 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14151 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14152 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14153 to...
14154 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14155 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14156 to...
14157 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14158 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14159 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14160 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14161 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14162 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14163 to...
14164 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14165 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14166 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14167 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14168 to...
14169 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14170 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14171 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14172 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14173 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14174 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14175 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14176 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14177 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14178 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14179 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14180 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14181 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14182 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14183 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14184 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14185 to...
14186 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14187 ...this.
14188 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14189 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14190
14191 (gimple_use_ops): Update for removal of implicit pointer from the
14192 is-a.h API.
14193 (gimple_set_use_ops): Likewise.
14194 (gimple_vuse): Likewise.
14195 (gimple_vdef): Likewise.
14196 (gimple_vuse_ptr): Likewise.
14197 (gimple_vdef_ptr): Likewise.
14198 (gimple_set_vuse): Likewise.
14199 (gimple_set_vdef): Likewise.
14200 (gimple_omp_return_set_lhs): Likewise.
14201 (gimple_omp_return_lhs): Likewise.
14202 (gimple_omp_return_lhs_ptr): Likewise.
14203 (gimple_call_fntype): Likewise.
14204 (gimple_call_set_fntype): Likewise.
14205 (gimple_call_set_internal_fn): Likewise.
14206 (gimple_call_use_set): Likewise.
14207 (gimple_call_clobber_set): Likewise.
14208 (gimple_bind_vars): Likewise.
14209 (gimple_bind_set_vars): Likewise.
14210 (gimple_bind_body_ptr): Likewise.
14211 (gimple_bind_set_body): Likewise.
14212 (gimple_bind_add_stmt): Likewise.
14213 (gimple_bind_block): Likewise.
14214 (gimple_bind_set_block): Likewise.
14215 (gimple_asm_ninputs): Likewise.
14216 (gimple_asm_noutputs): Likewise.
14217 (gimple_asm_nclobbers): Likewise.
14218 (gimple_asm_nlabels): Likewise.
14219 (gimple_asm_input_op): Likewise.
14220 (gimple_asm_input_op_ptr): Likewise.
14221 (gimple_asm_output_op): Likewise.
14222 (gimple_asm_output_op_ptr): Likewise.
14223 (gimple_asm_set_output_op): Likewise.
14224 (gimple_asm_clobber_op): Likewise.
14225 (gimple_asm_set_clobber_op): Likewise.
14226 (gimple_asm_label_op): Likewise.
14227 (gimple_asm_set_label_op): Likewise.
14228 (gimple_asm_string): Likewise.
14229 (gimple_catch_types): Likewise.
14230 (gimple_catch_types_ptr): Likewise.
14231 (gimple_catch_handler_ptr): Likewise.
14232 (gimple_catch_set_types): Likewise.
14233 (gimple_catch_set_handler): Likewise.
14234 (gimple_eh_filter_types): Likewise.
14235 (gimple_eh_filter_types_ptr): Likewise.
14236 (gimple_eh_filter_failure_ptr): Likewise.
14237 (gimple_eh_filter_set_types): Likewise.
14238 (gimple_eh_filter_set_failure): Likewise.
14239 (gimple_eh_must_not_throw_fndecl): Likewise.
14240 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14241 (gimple_eh_else_n_body_ptr): Likewise.
14242 (gimple_eh_else_e_body_ptr): Likewise.
14243 (gimple_eh_else_set_n_body): Likewise.
14244 (gimple_eh_else_set_e_body): Likewise.
14245 (gimple_try_eval_ptr): Likewise.
14246 (gimple_try_cleanup_ptr): Likewise.
14247 (gimple_try_set_eval): Likewise.
14248 (gimple_try_set_cleanup): Likewise.
14249 (gimple_wce_cleanup_ptr): Likewise.
14250 (gimple_wce_set_cleanup): Likewise.
14251 (gimple_phi_capacity): Likewise.
14252 (gimple_phi_num_args): Likewise.
14253 (gimple_phi_result): Likewise.
14254 (gimple_phi_result_ptr): Likewise.
14255 (gimple_phi_set_result): Likewise.
14256 (gimple_phi_arg): Likewise.
14257 (gimple_phi_set_arg): Likewise.
14258 (gimple_resx_region): Likewise.
14259 (gimple_resx_set_region): Likewise.
14260 (gimple_eh_dispatch_region): Likewise.
14261 (gimple_eh_dispatch_set_region): Likewise.
14262 (gimple_omp_critical_name): Likewise.
14263 (gimple_omp_critical_name_ptr): Likewise.
14264 (gimple_omp_critical_set_name): Likewise.
14265 (gimple_omp_for_clauses): Likewise.
14266 (gimple_omp_for_clauses_ptr): Likewise.
14267 (gimple_omp_for_set_clauses): Likewise.
14268 (gimple_omp_for_collapse): Likewise.
14269 (gimple_omp_for_index): Likewise.
14270 (gimple_omp_for_index_ptr): Likewise.
14271 (gimple_omp_for_set_index): Likewise.
14272 (gimple_omp_for_initial): Likewise.
14273 (gimple_omp_for_initial_ptr): Likewise.
14274 (gimple_omp_for_set_initial): Likewise.
14275 (gimple_omp_for_final): Likewise.
14276 (gimple_omp_for_final_ptr): Likewise.
14277 (gimple_omp_for_set_final): Likewise.
14278 (gimple_omp_for_incr): Likewise.
14279 (gimple_omp_for_incr_ptr): Likewise.
14280 (gimple_omp_for_set_incr): Likewise.
14281 (gimple_omp_for_pre_body_ptr): Likewise.
14282 (gimple_omp_for_set_pre_body): Likewise.
14283 (gimple_omp_parallel_clauses): Likewise.
14284 (gimple_omp_parallel_clauses_ptr): Likewise.
14285 (gimple_omp_parallel_set_clauses): Likewise.
14286 (gimple_omp_parallel_child_fn): Likewise.
14287 (gimple_omp_parallel_child_fn_ptr): Likewise.
14288 (gimple_omp_parallel_set_child_fn): Likewise.
14289 (gimple_omp_parallel_data_arg): Likewise.
14290 (gimple_omp_parallel_data_arg_ptr): Likewise.
14291 (gimple_omp_parallel_set_data_arg): Likewise.
14292 (gimple_omp_task_clauses): Likewise.
14293 (gimple_omp_task_clauses_ptr): Likewise.
14294 (gimple_omp_task_set_clauses): Likewise.
14295 (gimple_omp_task_child_fn): Likewise.
14296 (gimple_omp_task_child_fn_ptr): Likewise.
14297 (gimple_omp_task_set_child_fn): Likewise.
14298 (gimple_omp_task_data_arg): Likewise.
14299 (gimple_omp_task_data_arg_ptr): Likewise.
14300 (gimple_omp_task_set_data_arg): Likewise.
14301 (gimple_omp_taskreg_clauses): Likewise.
14302 (gimple_omp_taskreg_clauses_ptr): Likewise.
14303 (gimple_omp_taskreg_set_clauses): Likewise.
14304 (gimple_omp_taskreg_child_fn): Likewise.
14305 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14306 (gimple_omp_taskreg_set_child_fn): Likewise.
14307 (gimple_omp_taskreg_data_arg): Likewise.
14308 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14309 (gimple_omp_taskreg_set_data_arg): Likewise.
14310 (gimple_omp_task_copy_fn): Likewise.
14311 (gimple_omp_task_copy_fn_ptr): Likewise.
14312 (gimple_omp_task_set_copy_fn): Likewise.
14313 (gimple_omp_task_arg_size): Likewise.
14314 (gimple_omp_task_arg_size_ptr): Likewise.
14315 (gimple_omp_task_set_arg_size): Likewise.
14316 (gimple_omp_task_arg_align): Likewise.
14317 (gimple_omp_task_arg_align_ptr): Likewise.
14318 (gimple_omp_task_set_arg_align): Likewise.
14319 (gimple_omp_single_clauses): Likewise.
14320 (gimple_omp_single_clauses_ptr): Likewise.
14321 (gimple_omp_single_set_clauses): Likewise.
14322 (gimple_omp_target_clauses): Likewise.
14323 (gimple_omp_target_clauses_ptr): Likewise.
14324 (gimple_omp_target_set_clauses): Likewise.
14325 (gimple_omp_target_child_fn): Likewise.
14326 (gimple_omp_target_child_fn_ptr): Likewise.
14327 (gimple_omp_target_set_child_fn): Likewise.
14328 (gimple_omp_target_data_arg): Likewise.
14329 (gimple_omp_target_data_arg_ptr): Likewise.
14330 (gimple_omp_target_set_data_arg): Likewise.
14331 (gimple_omp_teams_clauses): Likewise.
14332 (gimple_omp_teams_clauses_ptr): Likewise.
14333 (gimple_omp_teams_set_clauses): Likewise.
14334 (gimple_omp_sections_clauses): Likewise.
14335 (gimple_omp_sections_clauses_ptr): Likewise.
14336 (gimple_omp_sections_set_clauses): Likewise.
14337 (gimple_omp_sections_control): Likewise.
14338 (gimple_omp_sections_control_ptr): Likewise.
14339 (gimple_omp_sections_set_control): Likewise.
14340 (gimple_omp_for_set_cond): Likewise.
14341 (gimple_omp_for_cond): Likewise.
14342 (gimple_omp_atomic_store_set_val): Likewise.
14343 (gimple_omp_atomic_store_val): Likewise.
14344 (gimple_omp_atomic_store_val_ptr): Likewise.
14345 (gimple_omp_atomic_load_set_lhs): Likewise.
14346 (gimple_omp_atomic_load_lhs): Likewise.
14347 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14348 (gimple_omp_atomic_load_set_rhs): Likewise.
14349 (gimple_omp_atomic_load_rhs): Likewise.
14350 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14351 (gimple_omp_continue_control_def): Likewise.
14352 (gimple_omp_continue_control_def_ptr): Likewise.
14353 (gimple_omp_continue_set_control_def): Likewise.
14354 (gimple_omp_continue_control_use): Likewise.
14355 (gimple_omp_continue_control_use_ptr): Likewise.
14356 (gimple_omp_continue_set_control_use): Likewise.
14357 (gimple_transaction_body_ptr): Likewise.
14358 (gimple_transaction_label): Likewise.
14359 (gimple_transaction_label_ptr): Likewise.
14360 (gimple_transaction_set_body): Likewise.
14361 (gimple_transaction_set_label): Likewise.
14362
14363 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14364 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14365 * ipa-ref.c (ipa_record_reference): Likewise.
14366 * ipa-reference.c (analyze_function): Likewise.
14367 (ipa_reference_write_optimization_summary): Likewise.
14368 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14369 (address_taken_from_non_vtable_p): Likewise.
14370 (comdat_can_be_unshared_p_1): Likewise.
14371 * lto-cgraph.c (lto_output_ref): Likewise.
14372 (add_references): Likewise.
14373 (compute_ltrans_boundary): Likewise.
14374 (output_symtab): Likewise.
14375 (input_ref): Likewise.
14376 (input_cgraph_1): Likewise.
14377 (output_cgraph_opt_summary): Likewise.
14378 * lto-streamer-out.c (lto_output): Likewise.
14379 (output_symbol_p): Likewise.
14380 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14381 (lsei_start_function_in_partition): Likewise.
14382 (lsei_next_variable_in_partition): Likewise.
14383 (lsei_start_variable_in_partition): Likewise.
14384 * symtab.c (insert_to_assembler_name_hash): Likewise.
14385 (unlink_from_assembler_name_hash): Likewise.
14386 (symtab_unregister_node): Likewise.
14387 (symtab_remove_node): Likewise.
14388 (dump_symtab_node): Likewise.
14389 (verify_symtab_base): Likewise.
14390 (verify_symtab_node): Likewise.
14391 (symtab_make_decl_local): Likewise.
14392 (symtab_alias_ultimate_target): Likewise.
14393 (symtab_resolve_alias): Likewise.
14394 (symtab_get_symbol_partitioning_class): Likewise.
14395 * tree-phinodes.c (allocate_phi_node): Likewise.
14396 (reserve_phi_args_for_new_edge): Likewise.
14397 (remove_phi_args): Likewise.
14398 * varpool.c (varpool_node_for_asm): Likewise.
14399 (varpool_remove_unreferenced_decls): Likewise.
14400
14401 2014-04-23 Jeff Law <law@redhat.com>
14402
14403 PR tree-optimization/60902
14404 * tree-ssa-threadedge.c
14405 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14406 invalidate outputs from statements that do not produce useful
14407 outputs for threading.
14408
14409 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14410
14411 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14412 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14413 machine descriptions for Stack Smashing Protector.
14414
14415 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14416
14417 * aarch64.md (<optab>_rol<mode>3): New pattern.
14418 (<optab>_rolsi3_uxtw): Likewise.
14419 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14420
14421 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14422
14423 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14424 (arm_cortex_a12_tune): Likewise.
14425
14426 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14427
14428 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14429
14430 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14431
14432 * config/arm/arm.md (arm_rev16si2): New pattern.
14433 (arm_rev16si2_alt): Likewise.
14434 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14435
14436 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14437
14438 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14439 (rev16<mode>2_alt): Likewise.
14440 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14441 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14442 (aarch_rev16_shleft_mask_imm_p): Likewise.
14443 (aarch_rev16_p_1): Likewise.
14444 (aarch_rev16_p): Likewise.
14445 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14446 (aarch_rev16_shright_mask_imm_p): Likewise.
14447 (aarch_rev16_shleft_mask_imm_p): Likewise.
14448
14449 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14450
14451 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14452 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14453 rev cost.
14454 (cortex_a53_extra_costs): Likewise.
14455 (cortex_a57_extra_costs): Likewise.
14456 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14457 (cortexa7_extra_costs): Likewise.
14458 (cortexa8_extra_costs): Likewise.
14459 (cortexa12_extra_costs): Likewise.
14460 (cortexa15_extra_costs): Likewise.
14461 (v7m_extra_costs): Likewise.
14462 (arm_new_rtx_costs): Handle BSWAP.
14463
14464 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14465
14466 * config/arm/arm.c (cortexa8_extra_costs): New table.
14467 (arm_cortex_a8_tune): New tuning struct.
14468 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14469
14470 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14471
14472 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14473
14474 2014-04-23 Richard Biener <rguenther@suse.de>
14475
14476 * Makefile.in (OBJS): Remove loop-unswitch.o.
14477 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14478 * passes.def (pass_rtl_unswitch): Likewise.
14479 * loop-init.c (gate_rtl_unswitch): Likewise.
14480 (rtl_unswitch): Likewise.
14481 (pass_data_rtl_unswitch): Likewise.
14482 (pass_rtl_unswitch): Likewise.
14483 (make_pass_rtl_unswitch): Likewise.
14484 * rtl.h (reversed_condition): Likewise.
14485 (compare_and_jump_seq): Likewise.
14486 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14487 and make static.
14488 * loop-unroll.c (compare_and_jump_seq): Likewise.
14489
14490 2014-04-23 Richard Biener <rguenther@suse.de>
14491
14492 PR tree-optimization/60903
14493 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14494 commented code block.
14495 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14496 loop flags to newly created BBs and edges.
14497
14498 2014-04-23 Nick Clifton <nickc@redhat.com>
14499
14500 * config/msp430/msp430.c (msp430_handle_option): Move function
14501 to msp430-common.c
14502 (msp430_option_override): Simplify mcu and mcpu option handling.
14503 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14504 support for -mhwmult command line option.
14505 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14506 -mhwmult command line option.
14507 (msp430_hwmult_enabled): Delete.
14508 (msp43o_output_labelref): Add support for -mhwmult command line option.
14509 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14510 (umulsidi3): Likewise.
14511 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14512 (mcpu, mlarge, msmall): Likewise.
14513 (mhwmult): New option.
14514 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14515 prototype.
14516 (msp430_is_f5_mcu): Remove prototype.
14517 (msp430_use_f5_series_hwmult): Add prototype.
14518 * config/msp430/msp430-opts.h: New file.
14519 * common/config/msp430: New directory.
14520 * common/config/msp430/msp430-common.c: New file.
14521 * config.gcc (msp430): Remove target_has_targetm_common.
14522 * doc/invoke.texi: Document -mhwmult command line option.
14523
14524 2014-04-23 Nick Clifton <nickc@redhat.com>
14525
14526 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14527 default-manifest.o if it can be found in the search path.
14528 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14529
14530 2014-04-23 Terry Guo <terry.guo@arm.com>
14531
14532 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14533
14534 2014-04-23 Richard Biener <rguenther@suse.de>
14535
14536 PR middle-end/60895
14537 * tree-inline.c (declare_return_variable): Use mark_addressable.
14538
14539 2014-04-23 Richard Biener <rguenther@suse.de>
14540
14541 PR middle-end/60891
14542 * loop-init.c (loop_optimizer_init): Make sure to apply
14543 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14544
14545 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14546
14547 PR sanitizer/60275
14548 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14549 New options.
14550 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14551 if flag_sanitize_undefined_trap_on_error.
14552 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14553 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14554 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14555 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14556 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14557 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14558 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14559 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14560 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14561 * ubsan.c (ubsan_instrument_unreachable): Return
14562 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14563 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14564 if flag_sanitize_undefined_trap_on_error and
14565 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14566 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14567 instrument_bool_enum_load): Emit __builtin_trap () if
14568 flag_sanitize_undefined_trap_on_error and
14569 __builtin_handle_*_abort () if !flag_sanitize_recover.
14570 * doc/invoke.texi (-fsanitize-recover,
14571 -fsanitize-undefined-trap-on-error): Document.
14572
14573 2014-04-22 Christian Bruel <christian.bruel@st.com>
14574
14575 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14576 Force immediates to SImode.
14577
14578 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14579
14580 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14581 (lroundsfsi2): New.
14582 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
14583 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
14584 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
14585 (nios2_fpu_insn): Add entry for round.
14586 (N2FPU_NO_ERRNO_P): Define.
14587 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
14588 flag_errno_math.
14589 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
14590
14591 2014-04-22 Richard Henderson <rth@redhat.com>
14592
14593 * config/aarch64/aarch64 (addti3, subti3): New expanders.
14594 (add<GPI>3_compare0): Remove leading * from name.
14595 (add<GPI>3_carryin): Likewise.
14596 (sub<GPI>3_compare0): Likewise.
14597 (sub<GPI>3_carryin): Likewise.
14598 (<su_optab>mulditi3): New expander.
14599 (multi3): New expander.
14600 (madd<GPI>): Remove leading * from name.
14601
14602 2014-04-22 Martin Jambor <mjambor@suse.cz>
14603
14604 * cgraphclones.c (cgraph_function_versioning): Copy
14605 ipa_transforms_to_apply instead of asserting it is empty.
14606
14607 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
14608
14609 PR target/60868
14610 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
14611 on count_exp to get mode.
14612
14613 2014-04-22 Andrew Pinski <apinski@cavium.com>
14614
14615 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
14616 Handle TLS for ILP32.
14617 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
14618 (tlsie_small_<mode>): this and handle PTR.
14619 (tlsie_small_sidi): New pattern.
14620 (tlsle_small): Change to an expand to handle ILP32.
14621 (tlsle_small_<mode>): New pattern.
14622 (tlsdesc_small): Rename to ...
14623 (tlsdesc_small_<mode>): this and handle PTR.
14624
14625 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14626
14627 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
14628
14629 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14630
14631 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14632 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
14633 (aarch64_types_signed_poly_qualifiers): Likewise.
14634 (aarch64_types_unsigned_signed_qualifiers): Likewise.
14635 (aarch64_types_poly_signed_qualifiers): Likewise.
14636 (TYPES_REINTERP_SS): Type macro added.
14637 (TYPES_REINTERP_SU): Likewise.
14638 (TYPES_REINTERP_SP): Likewise.
14639 (TYPES_REINTERP_US): Likewise.
14640 (TYPES_REINTERP_PS): Likewise.
14641 (aarch64_fold_builtin): New expression folding added.
14642 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
14643 Declarations removed.
14644 (REINTERP_SS): Declarations added.
14645 (REINTERP_US): Likewise.
14646 (REINTERP_PS): Likewise.
14647 (REINTERP_SU): Likewise.
14648 (REINTERP_SP): Likewise.
14649 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
14650 (vreinterpretq_p8_f64): Likewise.
14651 (vreinterpret_p16_f64): Likewise.
14652 (vreinterpretq_p16_f64): Likewise.
14653 (vreinterpret_f32_f64): Likewise.
14654 (vreinterpretq_f32_f64): Likewise.
14655 (vreinterpret_f64_f32): Likewise.
14656 (vreinterpret_f64_p8): Likewise.
14657 (vreinterpret_f64_p16): Likewise.
14658 (vreinterpret_f64_s8): Likewise.
14659 (vreinterpret_f64_s16): Likewise.
14660 (vreinterpret_f64_s32): Likewise.
14661 (vreinterpret_f64_s64): Likewise.
14662 (vreinterpret_f64_u8): Likewise.
14663 (vreinterpret_f64_u16): Likewise.
14664 (vreinterpret_f64_u32): Likewise.
14665 (vreinterpret_f64_u64): Likewise.
14666 (vreinterpretq_f64_f32): Likewise.
14667 (vreinterpretq_f64_p8): Likewise.
14668 (vreinterpretq_f64_p16): Likewise.
14669 (vreinterpretq_f64_s8): Likewise.
14670 (vreinterpretq_f64_s16): Likewise.
14671 (vreinterpretq_f64_s32): Likewise.
14672 (vreinterpretq_f64_s64): Likewise.
14673 (vreinterpretq_f64_u8): Likewise.
14674 (vreinterpretq_f64_u16): Likewise.
14675 (vreinterpretq_f64_u32): Likewise.
14676 (vreinterpretq_f64_u64): Likewise.
14677 (vreinterpret_s64_f64): Likewise.
14678 (vreinterpretq_s64_f64): Likewise.
14679 (vreinterpret_u64_f64): Likewise.
14680 (vreinterpretq_u64_f64): Likewise.
14681 (vreinterpret_s8_f64): Likewise.
14682 (vreinterpretq_s8_f64): Likewise.
14683 (vreinterpret_s16_f64): Likewise.
14684 (vreinterpretq_s16_f64): Likewise.
14685 (vreinterpret_s32_f64): Likewise.
14686 (vreinterpretq_s32_f64): Likewise.
14687 (vreinterpret_u8_f64): Likewise.
14688 (vreinterpretq_u8_f64): Likewise.
14689 (vreinterpret_u16_f64): Likewise.
14690 (vreinterpretq_u16_f64): Likewise.
14691 (vreinterpret_u32_f64): Likewise.
14692 (vreinterpretq_u32_f64): Likewise.
14693
14694 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14695
14696 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
14697 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
14698 (vreinterpret_p8_s8): Likewise.
14699 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
14700 (vreinterpret_p8_s16): Likewise.
14701 (vreinterpret_p8_s32): Likewise.
14702 (vreinterpret_p8_s64): Likewise.
14703 (vreinterpret_p8_f32): Likewise.
14704 (vreinterpret_p8_u8): Likewise.
14705 (vreinterpret_p8_u16): Likewise.
14706 (vreinterpret_p8_u32): Likewise.
14707 (vreinterpret_p8_u64): Likewise.
14708 (vreinterpret_p8_p16): Likewise.
14709 (vreinterpretq_p8_s8): Likewise.
14710 (vreinterpretq_p8_s16): Likewise.
14711 (vreinterpretq_p8_s32): Likewise.
14712 (vreinterpretq_p8_s64): Likewise.
14713 (vreinterpretq_p8_f32): Likewise.
14714 (vreinterpretq_p8_u8): Likewise.
14715 (vreinterpretq_p8_u16): Likewise.
14716 (vreinterpretq_p8_u32): Likewise.
14717 (vreinterpretq_p8_u64): Likewise.
14718 (vreinterpretq_p8_p16): Likewise.
14719 (vreinterpret_p16_s8): Likewise.
14720 (vreinterpret_p16_s16): Likewise.
14721 (vreinterpret_p16_s32): Likewise.
14722 (vreinterpret_p16_s64): Likewise.
14723 (vreinterpret_p16_f32): Likewise.
14724 (vreinterpret_p16_u8): Likewise.
14725 (vreinterpret_p16_u16): Likewise.
14726 (vreinterpret_p16_u32): Likewise.
14727 (vreinterpret_p16_u64): Likewise.
14728 (vreinterpret_p16_p8): Likewise.
14729 (vreinterpretq_p16_s8): Likewise.
14730 (vreinterpretq_p16_s16): Likewise.
14731 (vreinterpretq_p16_s32): Likewise.
14732 (vreinterpretq_p16_s64): Likewise.
14733 (vreinterpretq_p16_f32): Likewise.
14734 (vreinterpretq_p16_u8): Likewise.
14735 (vreinterpretq_p16_u16): Likewise.
14736 (vreinterpretq_p16_u32): Likewise.
14737 (vreinterpretq_p16_u64): Likewise.
14738 (vreinterpretq_p16_p8): Likewise.
14739 (vreinterpret_f32_s8): Likewise.
14740 (vreinterpret_f32_s16): Likewise.
14741 (vreinterpret_f32_s32): Likewise.
14742 (vreinterpret_f32_s64): Likewise.
14743 (vreinterpret_f32_u8): Likewise.
14744 (vreinterpret_f32_u16): Likewise.
14745 (vreinterpret_f32_u32): Likewise.
14746 (vreinterpret_f32_u64): Likewise.
14747 (vreinterpret_f32_p8): Likewise.
14748 (vreinterpret_f32_p16): Likewise.
14749 (vreinterpretq_f32_s8): Likewise.
14750 (vreinterpretq_f32_s16): Likewise.
14751 (vreinterpretq_f32_s32): Likewise.
14752 (vreinterpretq_f32_s64): Likewise.
14753 (vreinterpretq_f32_u8): Likewise.
14754 (vreinterpretq_f32_u16): Likewise.
14755 (vreinterpretq_f32_u32): Likewise.
14756 (vreinterpretq_f32_u64): Likewise.
14757 (vreinterpretq_f32_p8): Likewise.
14758 (vreinterpretq_f32_p16): Likewise.
14759 (vreinterpret_s64_s8): Likewise.
14760 (vreinterpret_s64_s16): Likewise.
14761 (vreinterpret_s64_s32): Likewise.
14762 (vreinterpret_s64_f32): Likewise.
14763 (vreinterpret_s64_u8): Likewise.
14764 (vreinterpret_s64_u16): Likewise.
14765 (vreinterpret_s64_u32): Likewise.
14766 (vreinterpret_s64_u64): Likewise.
14767 (vreinterpret_s64_p8): Likewise.
14768 (vreinterpret_s64_p16): Likewise.
14769 (vreinterpretq_s64_s8): Likewise.
14770 (vreinterpretq_s64_s16): Likewise.
14771 (vreinterpretq_s64_s32): Likewise.
14772 (vreinterpretq_s64_f32): Likewise.
14773 (vreinterpretq_s64_u8): Likewise.
14774 (vreinterpretq_s64_u16): Likewise.
14775 (vreinterpretq_s64_u32): Likewise.
14776 (vreinterpretq_s64_u64): Likewise.
14777 (vreinterpretq_s64_p8): Likewise.
14778 (vreinterpretq_s64_p16): Likewise.
14779 (vreinterpret_u64_s8): Likewise.
14780 (vreinterpret_u64_s16): Likewise.
14781 (vreinterpret_u64_s32): Likewise.
14782 (vreinterpret_u64_s64): Likewise.
14783 (vreinterpret_u64_f32): Likewise.
14784 (vreinterpret_u64_u8): Likewise.
14785 (vreinterpret_u64_u16): Likewise.
14786 (vreinterpret_u64_u32): Likewise.
14787 (vreinterpret_u64_p8): Likewise.
14788 (vreinterpret_u64_p16): Likewise.
14789 (vreinterpretq_u64_s8): Likewise.
14790 (vreinterpretq_u64_s16): Likewise.
14791 (vreinterpretq_u64_s32): Likewise.
14792 (vreinterpretq_u64_s64): Likewise.
14793 (vreinterpretq_u64_f32): Likewise.
14794 (vreinterpretq_u64_u8): Likewise.
14795 (vreinterpretq_u64_u16): Likewise.
14796 (vreinterpretq_u64_u32): Likewise.
14797 (vreinterpretq_u64_p8): Likewise.
14798 (vreinterpretq_u64_p16): Likewise.
14799 (vreinterpret_s8_s16): Likewise.
14800 (vreinterpret_s8_s32): Likewise.
14801 (vreinterpret_s8_s64): Likewise.
14802 (vreinterpret_s8_f32): Likewise.
14803 (vreinterpret_s8_u8): Likewise.
14804 (vreinterpret_s8_u16): Likewise.
14805 (vreinterpret_s8_u32): Likewise.
14806 (vreinterpret_s8_u64): Likewise.
14807 (vreinterpret_s8_p8): Likewise.
14808 (vreinterpret_s8_p16): Likewise.
14809 (vreinterpretq_s8_s16): Likewise.
14810 (vreinterpretq_s8_s32): Likewise.
14811 (vreinterpretq_s8_s64): Likewise.
14812 (vreinterpretq_s8_f32): Likewise.
14813 (vreinterpretq_s8_u8): Likewise.
14814 (vreinterpretq_s8_u16): Likewise.
14815 (vreinterpretq_s8_u32): Likewise.
14816 (vreinterpretq_s8_u64): Likewise.
14817 (vreinterpretq_s8_p8): Likewise.
14818 (vreinterpretq_s8_p16): Likewise.
14819 (vreinterpret_s16_s8): Likewise.
14820 (vreinterpret_s16_s32): Likewise.
14821 (vreinterpret_s16_s64): Likewise.
14822 (vreinterpret_s16_f32): Likewise.
14823 (vreinterpret_s16_u8): Likewise.
14824 (vreinterpret_s16_u16): Likewise.
14825 (vreinterpret_s16_u32): Likewise.
14826 (vreinterpret_s16_u64): Likewise.
14827 (vreinterpret_s16_p8): Likewise.
14828 (vreinterpret_s16_p16): Likewise.
14829 (vreinterpretq_s16_s8): Likewise.
14830 (vreinterpretq_s16_s32): Likewise.
14831 (vreinterpretq_s16_s64): Likewise.
14832 (vreinterpretq_s16_f32): Likewise.
14833 (vreinterpretq_s16_u8): Likewise.
14834 (vreinterpretq_s16_u16): Likewise.
14835 (vreinterpretq_s16_u32): Likewise.
14836 (vreinterpretq_s16_u64): Likewise.
14837 (vreinterpretq_s16_p8): Likewise.
14838 (vreinterpretq_s16_p16): Likewise.
14839 (vreinterpret_s32_s8): Likewise.
14840 (vreinterpret_s32_s16): Likewise.
14841 (vreinterpret_s32_s64): Likewise.
14842 (vreinterpret_s32_f32): Likewise.
14843 (vreinterpret_s32_u8): Likewise.
14844 (vreinterpret_s32_u16): Likewise.
14845 (vreinterpret_s32_u32): Likewise.
14846 (vreinterpret_s32_u64): Likewise.
14847 (vreinterpret_s32_p8): Likewise.
14848 (vreinterpret_s32_p16): Likewise.
14849 (vreinterpretq_s32_s8): Likewise.
14850 (vreinterpretq_s32_s16): Likewise.
14851 (vreinterpretq_s32_s64): Likewise.
14852 (vreinterpretq_s32_f32): Likewise.
14853 (vreinterpretq_s32_u8): Likewise.
14854 (vreinterpretq_s32_u16): Likewise.
14855 (vreinterpretq_s32_u32): Likewise.
14856 (vreinterpretq_s32_u64): Likewise.
14857 (vreinterpretq_s32_p8): Likewise.
14858 (vreinterpretq_s32_p16): Likewise.
14859 (vreinterpret_u8_s8): Likewise.
14860 (vreinterpret_u8_s16): Likewise.
14861 (vreinterpret_u8_s32): Likewise.
14862 (vreinterpret_u8_s64): Likewise.
14863 (vreinterpret_u8_f32): Likewise.
14864 (vreinterpret_u8_u16): Likewise.
14865 (vreinterpret_u8_u32): Likewise.
14866 (vreinterpret_u8_u64): Likewise.
14867 (vreinterpret_u8_p8): Likewise.
14868 (vreinterpret_u8_p16): Likewise.
14869 (vreinterpretq_u8_s8): Likewise.
14870 (vreinterpretq_u8_s16): Likewise.
14871 (vreinterpretq_u8_s32): Likewise.
14872 (vreinterpretq_u8_s64): Likewise.
14873 (vreinterpretq_u8_f32): Likewise.
14874 (vreinterpretq_u8_u16): Likewise.
14875 (vreinterpretq_u8_u32): Likewise.
14876 (vreinterpretq_u8_u64): Likewise.
14877 (vreinterpretq_u8_p8): Likewise.
14878 (vreinterpretq_u8_p16): Likewise.
14879 (vreinterpret_u16_s8): Likewise.
14880 (vreinterpret_u16_s16): Likewise.
14881 (vreinterpret_u16_s32): Likewise.
14882 (vreinterpret_u16_s64): Likewise.
14883 (vreinterpret_u16_f32): Likewise.
14884 (vreinterpret_u16_u8): Likewise.
14885 (vreinterpret_u16_u32): Likewise.
14886 (vreinterpret_u16_u64): Likewise.
14887 (vreinterpret_u16_p8): Likewise.
14888 (vreinterpret_u16_p16): Likewise.
14889 (vreinterpretq_u16_s8): Likewise.
14890 (vreinterpretq_u16_s16): Likewise.
14891 (vreinterpretq_u16_s32): Likewise.
14892 (vreinterpretq_u16_s64): Likewise.
14893 (vreinterpretq_u16_f32): Likewise.
14894 (vreinterpretq_u16_u8): Likewise.
14895 (vreinterpretq_u16_u32): Likewise.
14896 (vreinterpretq_u16_u64): Likewise.
14897 (vreinterpretq_u16_p8): Likewise.
14898 (vreinterpretq_u16_p16): Likewise.
14899 (vreinterpret_u32_s8): Likewise.
14900 (vreinterpret_u32_s16): Likewise.
14901 (vreinterpret_u32_s32): Likewise.
14902 (vreinterpret_u32_s64): Likewise.
14903 (vreinterpret_u32_f32): Likewise.
14904 (vreinterpret_u32_u8): Likewise.
14905 (vreinterpret_u32_u16): Likewise.
14906 (vreinterpret_u32_u64): Likewise.
14907 (vreinterpret_u32_p8): Likewise.
14908 (vreinterpret_u32_p16): Likewise.
14909 (vreinterpretq_u32_s8): Likewise.
14910 (vreinterpretq_u32_s16): Likewise.
14911 (vreinterpretq_u32_s32): Likewise.
14912 (vreinterpretq_u32_s64): Likewise.
14913 (vreinterpretq_u32_f32): Likewise.
14914 (vreinterpretq_u32_u8): Likewise.
14915 (vreinterpretq_u32_u16): Likewise.
14916 (vreinterpretq_u32_u64): Likewise.
14917 (vreinterpretq_u32_p8): Likewise.
14918 (vreinterpretq_u32_p16): Likewise.
14919
14920 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
14921
14922 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
14923 Pattern extended.
14924 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
14925 (sqabs): Likewise.
14926 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
14927 (vqnegd_s64): Likewise.
14928 (vqabs_s64): Likewise.
14929 (vqabsd_s64): Likewise.
14930
14931 2014-04-22 Richard Henderson <rth@redhat.com>
14932
14933 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
14934 computation to the top of the loop.
14935
14936 2014-04-22 Renlin <renlin.li@arm.com>
14937 Jiong Wang <jiong.wang@arm.com>
14938
14939 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
14940 * config/aarch64/aarch64.c (aarch64_layout_frame)
14941 (aarch64_initial_elimination_offset): Likewise.
14942
14943 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
14944
14945 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
14946 Fix indentation.
14947
14948 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
14949
14950 * machmode.h (bitwise_mode_for_mode): Declare.
14951 * stor-layout.h (bitwise_type_for_mode): Likewise.
14952 * stor-layout.c (bitwise_mode_for_mode): New function.
14953 (bitwise_type_for_mode): Likewise.
14954 * builtins.c (fold_builtin_memory_op): Use it instead of
14955 int_mode_for_mode and build_nonstandard_integer_type.
14956
14957 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14958
14959 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
14960 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
14961 (*-*-solaris2*): Simplify.
14962 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
14963 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
14964 *-*-solaris2.9* handling.
14965
14966 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
14967 as bug.
14968 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
14969 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
14970 handling, simplify.
14971 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
14972 * configure: Regenerate.
14973
14974 * config/i386/sol2-9.h: Remove.
14975
14976 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
14977 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
14978 Remove Solaris 9 references.
14979
14980 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
14981
14982 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
14983 (floatuns<GPI:mode><GPF:mode>2): Remove.
14984 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
14985 and floatuns conversions.
14986 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
14987 and floatuns conversions.
14988 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
14989 (w1,w2): New mode attributes for inequal width conversions.
14990
14991 2014-04-22 Renlin Li <Renlin.Li@arm.com>
14992
14993 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
14994 the output asm format.
14995
14996 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
14997
14998 * config/aarch64/aarch64-simd.md
14999 (aarch64_cm<optab>di): Always split.
15000 (*aarch64_cm<optab>di): New.
15001 (aarch64_cmtstdi): Always split.
15002 (*aarch64_cmtstdi): New.
15003
15004 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15005
15006 PR tree-optimization/60823
15007 * omp-low.c (ipa_simd_modify_function_body): Go through
15008 all SSA_NAMEs and for those refering to vector arguments
15009 which are going to be replaced adjust SSA_NAME_VAR and,
15010 if it is a default definition, change it into a non-default
15011 definition assigned at the beginning of function from new_decl.
15012 (ipa_simd_modify_stmt_ops): Rewritten.
15013 * tree-dfa.c (set_ssa_default_def): When removing default def,
15014 check for NULL loc instead of NULL *loc.
15015
15016 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15017
15018 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15019 restrictions on core registers for DImode values in Thumb2.
15020
15021 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15022
15023 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15024 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15025
15026 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15027
15028 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15029 (*iordi_notzesidi_di): Likewise.
15030 (*iordi_notsesidi_di): Likewise.
15031
15032 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15033
15034 * config/arm/arm-protos.h (tune_params): New struct members.
15035 * config/arm/arm.c: Initialise tune_params per processor.
15036 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15037 for speed, based on new tune_params.
15038
15039 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15040
15041 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15042 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15043 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15044 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15045 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15046 (vrnda_f64): Likewise.
15047 (vrndi_f64): Likewise.
15048 (vrndm_f64): Likewise.
15049 (vrndn_f64): Likewise.
15050 (vrndp_f64): Likewise.
15051 (vrndx_f64): Likewise.
15052
15053 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15054
15055 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15056 GET_MODE_SIZE argument is enum machine_mode.
15057
15058 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15059
15060 PR target/60910
15061 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15062 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15063
15064 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15065
15066 PR middle-end/60281
15067 * asan.c (asan_emit_stack_protection): Force the base to align to
15068 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15069 appropriate bits if STRICT_ALIGNMENT.
15070 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15071 when asan is on.
15072 (expand_used_vars): Leave a space in the stack frame for alignment
15073 if STRICT_ALIGNMENT.
15074
15075 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15076
15077 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15078 than a gimple.
15079 (gimple_store_p): Likewise.
15080 (gimple_assign_load_p): Likewise.
15081 (gimple_assign_cast_p): Likewise.
15082 (gimple_clobber_p): Likewise.
15083
15084 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15085 rather than a gimple.
15086 (gimple_assign_cast_p): Likewise.
15087
15088 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15089
15090 PR target/60735
15091 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15092 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15093
15094 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15095 more debug information for E500 if -mdebug=reg.
15096
15097 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15098
15099 PR target/60909
15100 * config/i386/i386.c (ix86_expand_builtin)
15101 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15102 register for target RTX.
15103 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15104
15105 2014-04-18 Cong Hou <congh@google.com>
15106
15107 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15108 the widen-mult pattern by handling two operands with different sizes,
15109 and operands whose size is smaller than half of the result type.
15110
15111 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15112
15113 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15114 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15115 (do_estimate_edge_time): Compute it.
15116 * ipa-inline.c (want_inline_small_function_p): Bypass
15117 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15118
15119 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15120
15121 * ipa-inline.c (spec_rem): New static variable.
15122 (dump_overall_stats): New function.
15123 (dump_inline_stats): New function.
15124
15125 2014-04-18 Richard Henderson <rth@redhat.com>
15126
15127 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15128 to GET_MODE_SIZE, not a reg_class_t.
15129
15130 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15131
15132 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15133 (vsx_xxmrglw_<mode>): Likewise.
15134
15135 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15136
15137 PR target/60876
15138 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15139 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15140 (rs6000_init_hard_regno_mode_ok): Likewise.
15141
15142 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15143
15144 * ipa-inline.c (inline_small_functions): Account only non-cold
15145 functions.
15146 * doc/invoke.texi (inline-unit-growth): Update documentation.
15147
15148 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15149
15150 * config/rs6000/rs6000.md (addti3, subti3): New.
15151
15152 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15153
15154 PR target/60863
15155 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15156 comment. Check optimize_insn_for_size_p instead of
15157 optimize_insn_for_speed_p.
15158
15159 2014-04-17 Martin Jambor <mjambor@suse.cz>
15160
15161 * gimple-iterator.c (gsi_start_edge): New function.
15162 * gimple-iterator.h (gsi_start_edge): Declare.
15163 * tree-sra.c (single_non_eh_succ): New function.
15164 (disqualify_ops_if_throwing_stmt): Renamed to
15165 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15166 having one non-EH successor BB.
15167 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15168 generate loads into replacements.
15169 (sra_modify_assign): Likewise and and also use the simple path for
15170 such statements.
15171 (sra_modify_function_body): Commit statements on edges.
15172
15173 2014-04-17 Richard Biener <rguenther@suse.de>
15174
15175 PR middle-end/60849
15176 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15177 comparison results and add clarifying comment.
15178
15179 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15180
15181 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15182 (blank_mode): Initialize it.
15183 (emit_mode_size_inline, emit_mode_nunits_inline,
15184 emit_mode_inner_inline): New functions.
15185 (emit_insn_modes_h): Call them and surround their output with
15186 #if GCC_VERSION >= 4001 ... #endif.
15187 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15188 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15189 mode_* arrays if the argument is __builtin_constant_p.
15190 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15191 is enum machine_mode.
15192
15193 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15194
15195 * passes.c (opt_pass::execute): Adjust.
15196 (pass_manager::execute_pass_mode_switching): Likewise.
15197 (early_local_passes::execute): Likewise.
15198 (execute_one_pass): Pass cfun to the pass's execute method.
15199 * tree-pass.h (opt_pass::execute): Add function * argument.
15200 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15201 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15202 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15203 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15204 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15205 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15206 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15207 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15208 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15209 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15210 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15211 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15212 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15213 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15214 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15215 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15216 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15217 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15218 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15219 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15220 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15221 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15222 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15223 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15224 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15225 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15226 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15227 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15228 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15229 Adjust.
15230
15231 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15232
15233 * passes.c (opt_pass::gate): Take function * argument.
15234 (gate_all_early_local_passes): Merge into
15235 (early_local_passes::gate): this.
15236 (gate_all_early_optimizations): Merge into
15237 (all_early_optimizations::gate): this.
15238 (gate_all_optimizations): Mege into
15239 (all_optimizations::gate): this.
15240 (gate_all_optimizations_g): Merge into
15241 (all_optimizations_g::gate): this.
15242 (gate_rest_of_compilation): Mege into
15243 (rest_of_compilation::gate): this.
15244 (gate_postreload): Merge into
15245 (postreload::gate): this.
15246 (dump_one_pass): Pass cfun to the pass's gate method.
15247 (execute_ipa_summary_passes): Likewise.
15248 (execute_one_pass): Likewise.
15249 (ipa_write_summaries_2): Likewise.
15250 (ipa_write_optimization_summaries_1): Likewise.
15251 (ipa_read_summaries_1): Likewise.
15252 (ipa_read_optimization_summaries_1): Likewise.
15253 (execute_ipa_stmt_fixups): Likewise.
15254 * tree-pass.h (opt_pass::gate): Add function * argument.
15255 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15256 combine-stack-adj.c, combine.c, compare-elim.c,
15257 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15258 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15259 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15260 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15261 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15262 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15263 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15264 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15265 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15266 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15267 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15268 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15269 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15270 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15271 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15272 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15273 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15274 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15275 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15276 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15277 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15278 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15279 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15280 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15281 var-tracking.c, vtable-verify.c, web.c: Adjust.
15282
15283 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15284
15285 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15286 * configure: Regenerate.
15287
15288 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15289
15290 * passes.c (dump_one_pass): don't check pass->has_gate.
15291 (execute_ipa_summary_passes): Likewise.
15292 (execute_one_pass): Likewise.
15293 (ipa_write_summaries_2): Likewise.
15294 (ipa_write_optimization_summaries_1): Likewise.
15295 (ipa_read_optimization_summaries_1): Likewise.
15296 (execute_ipa_stmt_fixups): Likewise.
15297 * tree-pass.h (pass_data::has_gate): Remove.
15298 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15299 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15300 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15301 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15302 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15303 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15304 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15305 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15306 gimple-low.c, gimple-ssa-isolate-paths.c,
15307 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15308 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15309 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15310 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15311 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15312 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15313 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15314 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15315 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15316 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15317 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15318 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15319 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15320 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15321 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15322 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15323 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15324 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15325 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15326 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15327 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15328 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15329 Adjust.
15330
15331 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15332
15333 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15334 declaration.
15335 * passes.c (pass_manager::register_dump_files_1): Merge into
15336 (pass_manager::register_dump_files): this, and remove its handling of
15337 properties since the pass always has the properties anyway.
15338 (pass_manager::pass_manager): Adjust.
15339
15340 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15341
15342 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15343 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15344 dealing with properties.
15345 (pass_manager::register_dump_files): Adjust.
15346
15347 2014-03-20 Mark Wielaard <mjw@redhat.com>
15348
15349 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15350 then represent the bound as normal constant value.
15351
15352 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15353
15354 PR target/60847
15355 Forward port from 4.8 branch
15356 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15357
15358 * config/i386/bmiintrin.h (_blsi_u32): New.
15359 (_blsi_u64): Ditto.
15360 (_blsr_u32): Ditto.
15361 (_blsr_u64): Ditto.
15362 (_blsmsk_u32): Ditto.
15363 (_blsmsk_u64): Ditto.
15364 (_tzcnt_u32): Ditto.
15365 (_tzcnt_u64): Ditto.
15366
15367 2014-04-17 Kito Cheng <kito@0xlab.org>
15368
15369 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15370
15371 2014-04-17 Richard Biener <rguenther@suse.de>
15372
15373 PR middle-end/60849
15374 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15375 boolean results for comparisons.
15376
15377 2014-04-17 Richard Biener <rguenther@suse.de>
15378
15379 PR tree-optimization/60836
15380 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15381 initial PHI args to be gimple values.
15382
15383 2014-04-17 Richard Biener <rguenther@suse.de>
15384
15385 PR tree-optimization/60841
15386 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15387 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15388 of stmts to SLP build.
15389 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15390 (vect_analyze_slp): Likewise.
15391 (vect_analyze_slp_instance): Likewise.
15392 (vect_build_slp_tree): Limit overall SLP tree growth.
15393 * tree-vectorizer.h (vect_analyze_data_refs,
15394 vect_analyze_slp): Adjust prototypes.
15395
15396 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15397
15398 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15399 Silvermont.
15400
15401 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15402
15403 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15404 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15405 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15406 for TARGET_SLOW_PSHUFB
15407
15408 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15409
15410 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15411 * config/i386/i386.c (intel_cost): Ditto.
15412
15413 2014-04-17 Joey Ye <joey.ye@arm.com>
15414
15415 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15416
15417 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15418
15419 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15420 with -fuse-profile.
15421
15422 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15423
15424 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15425 (type_all_derivations_known_p): New predicate.
15426 (type_all_ctors_visible_p): New predicate.
15427 (type_possibly_instantiated_p): New predicate.
15428 (get_odr_type): Compute all_derivations_known.
15429 (dump_odr_type): Dump the flag.
15430 (maybe_record_type): Cleanup.
15431 (record_target_from_binfo): Add bases_to_consider array;
15432 record bases for types w/o instances and skip CXX destructor.
15433 (possible_polymorphic_call_targets_1): Add bases_to_consider
15434 and consider_construction parameters; check if type may have instance.
15435 (get_polymorphic_call_info): Set maybe_in_construction to true
15436 when we know nothing.
15437 (record_targets_from_bases): Skip CXX destructors; they are
15438 never called for types in construction.
15439 (possible_polymorphic_call_targets): Do not record target when
15440 type may not have instance.
15441
15442 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15443
15444 PR ipa/60854
15445 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15446 external aliases alive, too.
15447
15448 2014-04-16 Andrew Pinski <apinski@cavium.com>
15449
15450 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15451 definition.
15452
15453 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15454
15455 * final.c (compute_alignments): Do not apply loop alignment to a block
15456 falling through to the exit.
15457
15458 2014-04-16 Catherine Moore <clm@codesourcery.com>
15459
15460 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15461 Adjust constraints for microMIPS store patterns.
15462
15463 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15464
15465 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15466
15467 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15468
15469 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15470 (append_use): Run at -O0.
15471 (append_vdef): Likewise.
15472 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15473 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15474
15475 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15476
15477 PR tree-optimization/60844
15478 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15479 (propagate_op_to_single_use, remove_visited_stmt_chain,
15480 linearize_expr, repropagate_negates, reassociate_bb): Use it
15481 instead of gsi_remove.
15482
15483 2014-04-16 Martin Jambor <mjambor@suse.cz>
15484
15485 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15486 ipa_transforms_to_apply.
15487 (cgraph_function_versioning): Assert that old_node has empty
15488 ipa_transforms_to_apply.
15489 * trans-mem.c (ipa_tm_create_version): Likewise.
15490 * tree-inline.c (tree_function_versioning): Do not duplicate
15491 ipa_transforms_to_apply.
15492
15493 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15494
15495 PR target/60817
15496 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15497 x86_64-*-* cases.
15498 Pass necessary as flags on 64-bit Solaris/x86.
15499 Use lowercase relocs for x86_64-*-*.
15500 * configure: Regenerate.
15501
15502 2014-04-15 Jan Hubicka <jh@suse.cz>
15503
15504 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15505 (maybe_record_node, likely_target_p): Use it.
15506
15507 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15508
15509 PR target/60839
15510 Revert following patch
15511
15512 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15513
15514 PR target/60735
15515 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15516 software floating point or no floating point registers, do not
15517 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15518 in GPRs that occurs after we tested for GPRs that would never be
15519 true.
15520
15521 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15522 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15523 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15524 specifically allow DDmode, since that does not use the SPE SIMD
15525 instructions.
15526
15527 2014-03-21 Mark Wielaard <mjw@redhat.com>
15528
15529 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15530 as unsigned or int depending on type and value used.
15531
15532 2014-04-15 Richard Biener <rguenther@suse.de>
15533
15534 PR rtl-optimization/56965
15535 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15536 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15537 ... here.
15538 * alias.c (true_dependence_1): Do not call
15539 nonoverlapping_component_refs_p.
15540 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15541 nonoverlapping_component_refs_p.
15542 (indirect_refs_may_alias_p): Likewise.
15543
15544 2014-04-15 Teresa Johnson <tejohnson@google.com>
15545
15546 * cfg.c (dump_bb_info): Fix flags check.
15547 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15548
15549 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15550
15551 PR rtl-optimization/60663
15552 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15553 avoid 0 cost.
15554
15555 2014-04-15 Richard Biener <rguenther@suse.de>
15556
15557 * lto-streamer.h (LTO_major_version): Bump to 4.
15558
15559 2014-04-15 Richard Biener <rguenther@suse.de>
15560
15561 * common.opt (lto_partition_model): New enum.
15562 (flto-partition=): Merge separate options with a single with argument,
15563 add -flto-partition=one support.
15564 * flag-types.h (enum lto_partition_model): Declare.
15565 * opts.c (finish_options): Remove duplicate -flto-partition=
15566 option check.
15567 * lto-wrapper.c (run_gcc): Adjust.
15568
15569 2014-04-15 Richard Biener <rguenther@suse.de>
15570
15571 * alias.c (ncr_compar): New function.
15572 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15573
15574 2014-04-15 Richard Biener <rguenther@suse.de>
15575
15576 * alias.c (record_component_aliases): Do not walk BINFOs.
15577
15578 2014-04-15 Richard Biener <rguenther@suse.de>
15579
15580 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15581 Add struct function argument and adjust.
15582 (find_func_aliases_for_call): Likewise.
15583 (find_func_aliases): Likewise.
15584 (find_func_clobbers): Likewise.
15585 (intra_create_variable_infos): Likewise.
15586 (compute_points_to_sets): Likewise.
15587 (ipa_pta_execute): Adjust. Do not push/pop cfun.
15588
15589 2014-04-15 Richard Biener <rguenther@suse.de>
15590
15591 * tree.c (iterative_hash_expr): Use enum tree_code_class
15592 to store TREE_CODE_CLASS.
15593 (tree_block): Likewise.
15594 (tree_set_block): Likewise.
15595 * tree.h (fold_build_pointer_plus_loc): Use
15596 convert_to_ptrofftype_loc.
15597
15598 2014-04-15 Jakub Jelinek <jakub@redhat.com>
15599
15600 PR plugins/59335
15601 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
15602 added in 4.9.
15603
15604 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
15605
15606 * cfgloop.h (struct loop): Move force_vectorize down.
15607 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
15608 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
15609 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
15610 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
15611 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
15612 * tree-core.h (enum annot_expr_kind): Add new kind values.
15613 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
15614 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
15615 kinds.
15616 * tree.def (ANNOTATE_EXPR): Tweak comment.
15617
15618 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15619
15620 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
15621 cxa_pure_virtual).
15622
15623 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
15624
15625 * tree.h (TYPE_IDENTIFIER): Declare.
15626 * tree.c (subrange_type_for_debug_p): Use it.
15627 * godump.c (go_format_type): Likewise.
15628 * dwarf2out.c (is_cxx_auto, modified_type_die,
15629 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
15630 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
15631
15632 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15633
15634 PR lto/60820
15635 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
15636
15637 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
15638
15639 * config/i386/i386.c (examine_argument): Return bool. Return true if
15640 parameter should be passed in memory.
15641 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
15642 (construct_container): Update calls to examine_argument.
15643 (function_arg_advance_64): Ditto.
15644 (return_in_memory_32): Merge with ix86_return_in_memory.
15645 (return_in_memory_64): Ditto.
15646 (return_in_memory_ms_64): Ditto.
15647
15648 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
15649
15650 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
15651 * coverage.c (coverage_compute_profile_id): Handle externally visible
15652 symbols.
15653
15654 2014-04-14 Martin Jambor <mjambor@suse.cz>
15655
15656 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
15657 DECL_DISREGARD_INLINE_LIMITS functions.
15658
15659 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15660
15661 PR target/60827
15662 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
15663
15664 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
15665
15666 PR target/60827
15667 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
15668 optimize_insn_for_speed_p instead of
15669 optimize_function_for_speed_p.
15670
15671 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
15672
15673 * doc/invoke.texi (free): Document AArch64.
15674
15675 2014-04-14 Richard Biener <rguenther@suse.de>
15676
15677 PR tree-optimization/60042
15678 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
15679 (insert_into_preds_of_block): Do not prevent PHI insertion
15680 for REFERENCE exprs here ...
15681 (eliminate_dom_walker::before_dom_children): ... but prevent
15682 their use here under similar conditions when applied to the
15683 IL after PRE optimizations.
15684
15685 2014-04-14 Richard Biener <rguenther@suse.de>
15686
15687 * passes.def: Move early points-to after early SRA.
15688
15689 2014-04-14 Richard Biener <rguenther@suse.de>
15690
15691 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
15692 check for which sign-changes we allow when forwarding
15693 a converted value into a switch.
15694
15695 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15696
15697 * stor-layout.c (place_field): Finalize non-constant offset for the
15698 field, if any.
15699
15700 2014-04-14 Richard Biener <rguenther@suse.de>
15701
15702 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
15703 as argument.
15704 (expand_switch_using_bit_tests_p): Likewise.
15705 (process_switch): Compute and pass on speed_p based on the
15706 switch stmt.
15707 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
15708 optimize_bb_for_speed_p.
15709
15710 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
15711
15712 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
15713 * function.h (struct function): Rename has_force_vect_loops into
15714 has_force_vectorize_loops.
15715 * lto-streamer-in.c (input_cfg): Adjust for renaming.
15716 (input_struct_function_base): Likewise.
15717 * lto-streamer-out.c (output_cfg): Likewise.
15718 (output_struct_function_base): Likewise.
15719 * omp-low.c (expand_omp_simd): Likewise.
15720 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15721 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
15722 (version_loop_for_if_conversion): Likewise.
15723 (tree_if_conversion): Likewise.
15724 (main_tree_if_conversion): Likewise.
15725 (gate_tree_if_conversion): Likewise.
15726 * tree-inline.c (copy_loops): Likewise.
15727 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
15728 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
15729 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
15730 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
15731 * tree-vectorizer.c (vectorize_loops): Likewise.
15732 * tree-vectorizer.h (unlimited_cost_model): Likewise.
15733
15734 2014-04-14 Richard Biener <rguenther@suse.de>
15735
15736 PR lto/60720
15737 * lto-streamer-out.c (wrap_refs): New function.
15738 (lto_output): Wrap symbol references in global initializes in
15739 type-preserving MEM_REFs.
15740
15741 2014-04-14 Christian Bruel <christian.bruel@st.com>
15742
15743 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
15744
15745 2014-04-14 Christian Bruel <christian.bruel@st.com>
15746
15747 * config/sh/sh.md (setmemqi): New expand pattern.
15748 * config/sh/sh.h (CLEAR_RATIO): Define.
15749 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
15750 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
15751
15752 2014-04-14 Richard Biener <rguenther@suse.de>
15753
15754 PR middle-end/55022
15755 * fold-const.c (negate_expr_p): Don't negate directional rounding
15756 division.
15757 (fold_negate_expr): Likewise.
15758
15759 2014-04-14 Richard Biener <rguenther@suse.de>
15760
15761 PR tree-optimization/59817
15762 PR tree-optimization/60453
15763 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
15764 recursion to catch all CHRECs in the scalar evolution and restrict
15765 the predicate for the remains appropriately.
15766
15767 2014-04-12 Catherine Moore <clm@codesourcery.com>
15768
15769 * config/mips/constraints.md: Add new register constraint "kb".
15770 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
15771 (*movhi_internal): Likewise.
15772 (*movqi_internal): Likewise.
15773 * config/mips/mips.h (M16_STORE_REGS): New register class.
15774 (REG_CLASS_NAMES): Add M16_STORE_REGS.
15775 (REG_CLASS_CONTENTS): Likewise.
15776 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
15777
15778 2014-04-11 Tobias Burnus <burnus@net-b.de>
15779
15780 PR c/60194
15781 * doc/invoke.texi (-Wformat-signedness): Document it.
15782 (Wformat=2): Mention that this enables -Wformat-signedness.
15783
15784 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15785
15786 * common/config/epiphany/epiphany-common.c
15787 (epiphany_option_optimization_table): Enable section anchors by
15788 default at -O1 or higher.
15789 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
15790 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
15791 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
15792 carries no extra cost.
15793 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
15794 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
15795 * config/epiphany/predicates.md (memclob_operand): New predicate.
15796 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
15797 Use memclob_operand predicate and X constraint for operand 3.
15798
15799 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15800
15801 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
15802 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
15803 its operands.
15804
15805 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
15806
15807 PR rtl-optimization/60651
15808 * mode-switching.c (optimize_mode_switching): Make sure to emit
15809 sets of a lower numbered entity before sets of a higher numbered
15810 entity to a mode of the same or lower priority.
15811 When creating a seginfo for a basic block that starts with a code
15812 label, move the insertion point past the code label.
15813 (new_seginfo): Document and enforce requirement that
15814 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
15815 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
15816 * doc/tm.texi: Regenerate.
15817
15818 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
15819
15820 PR target/60811
15821 * config/arc/arc.c (arc_save_restore): Fix assert typo.
15822
15823 2013-04-11 Jakub Jelinek <jakub@redhat.com>
15824
15825 * BASE-VER: Set to 4.10.0.
15826
15827 2014-04-11 Tobias Burnus <burnus@net-b.de>
15828
15829 PR other/59055
15830 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
15831 * doc/gcc.texi (Service): Update description in the @menu
15832 * doc/invoke.texi (Option Summary): Remove misplaced and
15833 duplicated @menu.
15834
15835 2014-04-11 Steve Ellcey <sellcey@mips.com>
15836 Jakub Jelinek <jakub@redhat.com>
15837
15838 PR middle-end/60556
15839 * expr.c (convert_move): Use emit_store_flag_force instead of
15840 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
15841 argument to it.
15842
15843 2014-04-11 Richard Biener <rguenther@suse.de>
15844
15845 PR middle-end/60797
15846 * varasm.c (assemble_alias): Avoid endless error reporting
15847 recursion by setting TREE_ASM_WRITTEN.
15848
15849 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15850
15851 * config/s390/s390.md: Add a splitter for NOT rtx.
15852
15853 2014-04-11 Jakub Jelinek <jakub@redhat.com>
15854
15855 PR rtl-optimization/60663
15856 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
15857
15858 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
15859 Jakub Jelinek <jakub@redhat.com>
15860
15861 PR lto/60567
15862 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
15863 flag from decl_node to node.
15864
15865 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15866
15867 PR debug/60655
15868 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
15869 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
15870 ameliorating the cases where it can be.
15871
15872 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
15873
15874 Revert
15875 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15876
15877 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15878 (loadsync_<mode>): Change mode.
15879 (load_quadpti, store_quadpti): New.
15880 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15881 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15882 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
15883
15884 2014-04-09 Cong Hou <congh@google.com>
15885
15886 PR testsuite/60773
15887 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
15888 documentation.
15889
15890 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15891
15892 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
15893 instead of vnor to exploit possible fusion opportunity in the
15894 future.
15895 (altivec_expand_vec_perm_const_le): Likewise.
15896
15897 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
15898
15899 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15900 (loadsync_<mode>): Change mode.
15901 (load_quadpti, store_quadpti): New.
15902 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15903 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15904
15905 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
15906
15907 PR target/60763
15908 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
15909 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
15910 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
15911
15912 2014-04-08 Richard Biener <rguenther@suse.de>
15913
15914 PR middle-end/60706
15915 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
15916 a 64bit widest int print double-int similar to on HWI64 hosts.
15917
15918 2014-04-08 Richard Biener <rguenther@suse.de>
15919
15920 PR tree-optimization/60785
15921 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
15922 default defs properly.
15923
15924 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
15925
15926 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
15927 (Weffc++): Likewise.
15928
15929 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
15930
15931 * ipa-devirt.c (maybe_record_node): When node is not recorded,
15932 set completep to false rather than true.
15933
15934 2014-04-07 Douglas B Rupp <rupp@adacore.com>
15935
15936 PR target/60504
15937 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
15938 ARM_TARGET2_DWARF_FORMAT.
15939
15940 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
15941
15942 PR target/60609
15943 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
15944 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
15945 ADDR_DIFF_VEC.
15946
15947 2014-04-07 Richard Biener <rguenther@suse.de>
15948
15949 PR tree-optimization/60766
15950 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
15951 (may_eliminate_iv): Convert cand_value_at result to desired type.
15952
15953 2014-04-07 Jason Merrill <jason@redhat.com>
15954
15955 PR c++/60731
15956 * common.opt (-fno-gnu-unique): Add.
15957 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
15958
15959 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15960
15961 * haifa-sched.c: Fix outdated function reference and minor
15962 grammar errors in introductory comment.
15963
15964 2014-04-07 Richard Biener <rguenther@suse.de>
15965
15966 PR middle-end/60750
15967 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
15968 for noreturn calls.
15969 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
15970
15971 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
15972
15973 PR debug/55794
15974 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
15975 size accounting for thunks.
15976 (pa_asm_output_mi_thunk): Use final_start_function() and
15977 final_end_function() to output function start and end directives.
15978
15979 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15980
15981 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
15982 device specific ISA/ feature information. Remove short_sp and
15983 errata_skip ds. Add avr_device_specific_features enum to have device
15984 specific info.
15985 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
15986 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
15987 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
15988 updated device specific info.
15989 * config/avr/avr-mcus.def: Merge device specific details to
15990 dev_attribute field.
15991 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
15992 errata_skip.
15993 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
15994 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
15995 assembler if RMW isa supported by current device.
15996 * config/avr/genmultilib.awk: Update as device info structure changed.
15997 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
15998
15999 2014-04-04 Cong Hou <congh@google.com>
16000
16001 PR tree-optimization/60656
16002 * tree-vect-stmts.c (supportable_widening_operation):
16003 Fix a bug that elements in a vector with vect_used_by_reduction
16004 property are incorrectly reordered when the operation on it is not
16005 consistant with the one in reduction operation.
16006
16007 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16008
16009 PR rtl-optimization/60155
16010 * gcse.c (record_set_data): New function.
16011 (single_set_gcse): New function.
16012 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16013 (hoist_code): Likewise.
16014 (get_pressure_class_and_nregs): Likewise.
16015
16016 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16017
16018 * explow.c (probe_stack_range): Emit a final optimization blockage.
16019
16020 2014-04-04 Anthony Green <green@moxielogic.com>
16021
16022 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16023 typos.
16024
16025 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16026
16027 PR ipa/59626
16028 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16029 flags are set only during streaming.
16030 * ipa.c (process_references, walk_polymorphic_call_targets,
16031 symtab_remove_unreachable_nodes): Drop bodies of always inline
16032 after early inlining.
16033 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16034
16035 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16036 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16037
16038 PR debug/60655
16039 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16040 containing a NOT.
16041
16042 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16043
16044 PR bootstrap/60743
16045 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16046 duration.
16047 (cortex_a53_fdivd): Likewise.
16048
16049 2014-04-04 Martin Jambor <mjambor@suse.cz>
16050
16051 PR ipa/60640
16052 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16053 Adjust all callers.
16054 * cgraph.c (clone_of_p): Also return true if thunks match.
16055 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16056 cgraph_function_or_thunk_node and an obsolete comment.
16057 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16058 file.
16059 (build_function_decl_skip_args): Likewise.
16060 (set_new_clone_decl_and_node_flags): New function.
16061 (duplicate_thunk_for_node): Likewise.
16062 (redirect_edge_duplicating_thunks): Likewise.
16063 (cgraph_clone_node): New parameter args_to_skip, pass it to
16064 redirect_edge_duplicating_thunks which is called instead of
16065 cgraph_redirect_edge_callee.
16066 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16067 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16068
16069 2014-04-04 Jeff Law <law@redhat.com>
16070
16071 PR target/60657
16072 * config/arm/predicates.md (const_int_I_operand): New predicate.
16073 (const_int_M_operand): Similarly.
16074 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16075 const_int_operand.
16076 (insv_t2, extv_reg, extzv_t2): Likewise.
16077 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16078 (pop_multiple_with_writeback_and_return): Likewise.
16079 (vfp_pop_multiple_with_writeback): Likewise
16080
16081 2014-04-04 Richard Biener <rguenther@suse.de>
16082
16083 PR ipa/60746
16084 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16085 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16086 non-GIMPLE_LABELs.
16087 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16088 * gimplify.c (gimple_add_tmp_var_fn): New function.
16089 * gimple-expr.h (create_tmp_reg_fn): Declare.
16090 * gimple-expr.c (create_tmp_reg_fn): New function.
16091 * gimple-low.c (record_vars_into): Don't change cfun.
16092 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16093 code generation without cfun.
16094
16095 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16096
16097 PR bootstrap/60719
16098 * Makefile.in (install-driver): Fix shell scripting.
16099
16100 2014-04-03 Cong Hou <congh@google.com>
16101
16102 PR tree-optimization/60505
16103 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16104 threshold of number of iterations below which no vectorization
16105 will be done.
16106 * tree-vect-loop.c (new_loop_vec_info):
16107 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16108 * tree-vect-loop.c (vect_analyze_loop_operations):
16109 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16110 * tree-vect-loop.c (vect_transform_loop):
16111 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16112 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16113 of iterations of the loop and see if we should build the epilogue.
16114
16115 2014-04-03 Richard Biener <rguenther@suse.de>
16116
16117 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16118 (streamer_tree_cache_create): Adjust.
16119 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16120 to allow optional nodes array.
16121 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16122 (streamer_tree_cache_append): Likewise.
16123 (streamer_tree_cache_create): Create nodes array optionally
16124 as specified by parameter.
16125 * lto-streamer-out.c (create_output_block): Avoid maintaining
16126 the node array in the writer cache.
16127 (DFS_write_tree): Remove assertion.
16128 (produce_asm_for_decls): Free the out decl state hash table early.
16129 * lto-streamer-in.c (lto_data_in_create): Adjust for
16130 streamer_tree_cache_create prototype change.
16131
16132 2014-04-03 Richard Biener <rguenther@suse.de>
16133
16134 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16135 set TREE_CHAIN to NULL_TREE.
16136
16137 2014-04-03 Richard Biener <rguenther@suse.de>
16138
16139 PR tree-optimization/60740
16140 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16141 over all GIMPLE_COND operands.
16142
16143 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16144
16145 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16146 (Weffc++): Remove Scott's numbering, merge lists and reference
16147 Wnon-virtual-dtor.
16148
16149 2014-04-03 Nick Clifton <nickc@redhat.com>
16150
16151 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16152 properly.
16153
16154 2014-04-03 Martin Jambor <mjambor@suse.cz>
16155
16156 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16157 mention gcc_unreachable before failing.
16158 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16159 removed symbols.
16160
16161 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16162
16163 PR ipa/60659
16164 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16165 inconsistent code and instead mark the context inconsistent.
16166 (possible_polymorphic_call_targets): For inconsistent contexts
16167 return empty complete list.
16168
16169 2014-04-02 Anthony Green <green@moxielogic.com>
16170
16171 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16172 (extendqisi2, extendhisi2): Define.
16173 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16174 (WCHAR_TYPE): Change to unsigned int.
16175
16176 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16177
16178 PR tree-optimization/60733
16179 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16180 insertion point for PHI candidates to be the end of the feeding
16181 block for the PHI argument.
16182
16183 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16184
16185 PR rtl-optimization/60650
16186 * lra-constraints.c (process_alt_operands): Decrease reject for
16187 earlyclobber matching.
16188
16189 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16190
16191 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16192
16193 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16194
16195 * config/spu/spu.c (pad_bb): Do not crash when the last
16196 insn is CODE_FOR_blockage.
16197
16198 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16199
16200 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16201 lies outside the target mode.
16202
16203 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16204
16205 PR target/60735
16206 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16207 software floating point or no floating point registers, do not
16208 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16209 in GPRs that occurs after we tested for GPRs that would never be
16210 true.
16211
16212 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16213 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16214 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16215 specifically allow DDmode, since that does not use the SPE SIMD
16216 instructions.
16217
16218 2014-04-02 Richard Biener <rguenther@suse.de>
16219
16220 PR middle-end/60729
16221 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16222 MODE_INTs. Properly use negv_optab.
16223 (expand_abs): Likewise.
16224
16225 2014-04-02 Richard Biener <rguenther@suse.de>
16226
16227 PR bootstrap/60719
16228 * Makefile.in (install-driver): Guard extra installs with special
16229 names properly.
16230
16231 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16232
16233 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16234 Document vec_vgbbd.
16235
16236 2014-04-01 Richard Henderson <rth@redhat.com>
16237
16238 PR target/60704
16239 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16240 alternative enabled before register allocation.
16241
16242 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16243
16244 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16245 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16246 typo.
16247 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16248 (nios2_got_address): Update nios2_large_got_address call site.
16249 (nios2_delegitimize_address): New function.
16250 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16251 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16252 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16253
16254 2014-04-01 Martin Husemann <martin@duskware.de>
16255
16256 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16257 for -mabi=32.
16258
16259 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16260
16261 PR rtl-optimization/60604
16262 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16263 check from register_operand.
16264 (register_operand): Redefine in terms of general_operand.
16265 (nonmemory_operand): Use register_operand for the non-constant cases.
16266
16267 2014-04-01 Richard Biener <rguenther@suse.de>
16268
16269 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16270
16271 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16272
16273 * doc/invoke.texi (mapp-regs): Clarify.
16274
16275 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16276
16277 * config/i386/avx512fintrin.h (__v32hi): Define type.
16278 (__v64qi): Likewise.
16279 (_mm512_set1_epi8): Define.
16280 (_mm512_set1_epi16): Define.
16281 (_mm512_set4_epi32): Define.
16282 (_mm512_set4_epi64): Define.
16283 (_mm512_set4_pd): Define.
16284 (_mm512_set4_ps): Define.
16285 (_mm512_setr4_epi64): Define.
16286 (_mm512_setr4_epi32): Define.
16287 (_mm512_setr4_pd): Define.
16288 (_mm512_setr4_ps): Define.
16289 (_mm512_setzero_epi32): Define.
16290
16291 2014-03-31 Martin Jambor <mjambor@suse.cz>
16292
16293 PR middle-end/60647
16294 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16295 callsite_arguments_match_p. Updated all callers. Also check types of
16296 corresponding formal parameters and actual arguments.
16297 (not_all_callers_have_enough_arguments_p) Renamed to
16298 some_callers_have_mismatched_arguments_p.
16299
16300 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16301
16302 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16303
16304 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16305
16306 PR target/60034
16307 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16308 section anchor.
16309
16310 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16311
16312 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16313 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16314 Split out
16315 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16316 Use FMAMODE_NOVF512 mode iterator.
16317 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16318 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16319 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16320 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16321 Split out
16322 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16323 Use VF_128_256 mode iterator.
16324 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16325 Ditto.
16326
16327 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16328
16329 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16330 static chain if needed.
16331
16332 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16333
16334 PR target/60697
16335 * lra-constraints.c (index_part_to_reg): New.
16336 (process_address): Use it.
16337
16338 2014-03-27 Jeff Law <law@redhat.com>
16339 Jakub Jelinek <jakub@redhat.com>
16340
16341 PR target/60648
16342 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16343 gen_rtx_{PLUS,MULT} to build up the address expression.
16344
16345 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16346 creating non-canonical RTL.
16347
16348 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16349
16350 PR ipa/60243
16351 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16352 functions; reorganize to make cheap checks first.
16353 (inline_small_functions): Do not estimate growth when dumping;
16354 it is expensive.
16355 * ipa-inline.h (inline_summary): Add min_size.
16356 (growth_likely_positive): New function.
16357 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16358 (set_cond_stmt_execution_predicate): Cleanup.
16359 (estimate_edge_size_and_time): Compute min_size.
16360 (estimate_calls_size_and_time): Likewise.
16361 (estimate_node_size_and_time): Likewise.
16362 (inline_update_overall_summary): Update min_size.
16363 (do_estimate_edge_time): Likewise.
16364 (do_estimate_edge_size): Update.
16365 (do_estimate_edge_hints): Update.
16366 (growth_likely_positive): New function.
16367
16368 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16369
16370 PR target/60693
16371 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16372 also if addr has VOIDmode.
16373
16374 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16375
16376 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16377 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16378 Declare extern.
16379 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16380 instructions as well as AdvancedSIMD loads.
16381
16382 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16383
16384 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16385 Use crypto_aese type.
16386 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16387 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16388 crypto_aese, crypto_aesmc. Move to types.md.
16389 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16390 crypto_aesmc.
16391 * config/arm/iterators.md (crypto_type): Likewise.
16392
16393 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16394
16395 * cgraph.c: Include expr.h and tree-dfa.h.
16396 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16397 remove LHS.
16398
16399 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16400
16401 PR target/60675
16402 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16403 regs from checking multi-reg pseudos.
16404
16405 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16406
16407 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16408
16409 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16410
16411 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16412 if it would clobber the stack pointer, even temporarily.
16413
16414 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16415
16416 * mode-switching.c: Make small adjustments to the top comment.
16417
16418 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16419
16420 * config/rs6000/constraints.md (wD constraint): New constraint to
16421 match the constant integer to get the top DImode/DFmode out of a
16422 vector in a VSX register.
16423
16424 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16425 match the constant integer to get the top DImode/DFmode out of a
16426 vector in a VSX register.
16427
16428 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16429 for ISA 2.07.
16430
16431 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16432 vbpermq builtins.
16433
16434 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16435 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16436
16437 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16438 Optimize vec_extract of 64-bit values, where the value being
16439 extracted is in the top word, where we can use scalar
16440 instructions. Add direct move and store support. Combine the big
16441 endian/little endian vector select load support into a single insn.
16442 (vsx_extract_<mode>_internal1): Likewise.
16443 (vsx_extract_<mode>_internal2): Likewise.
16444 (vsx_extract_<mode>_load): Likewise.
16445 (vsx_extract_<mode>_store): Likewise.
16446 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16447 combined into vsx_extract_<mode>_load.
16448 (vsx_extract_<mode>_one_le): Likewise.
16449
16450 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16451 define the top 64-bit vector element.
16452
16453 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16454 constraint.
16455
16456 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16457 Document vec_vbpermq builtin.
16458
16459 PR target/60672
16460 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16461 enable use of xxsldwi and xxpermdi builtin functions.
16462 (vec_xxpermdi): Likewise.
16463
16464 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16465 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16466
16467 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16468
16469 PR rtl-optimization/60650
16470 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16471 first_p. Use it.
16472 (find_spills_for): New.
16473 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16474 Spill all pseudos on the second iteration.
16475
16476 2014-03-27 Marek Polacek <polacek@redhat.com>
16477
16478 PR c/50347
16479 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16480 types.
16481
16482 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16483
16484 * config/s390/s390.c (s390_can_use_return_insn): Check for
16485 call-saved FPRs on 31 bit.
16486
16487 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16488
16489 PR middle-end/60682
16490 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16491 if they need regimplification, just drop them instead of
16492 calling gimple_regimplify_operands on them.
16493
16494 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16495
16496 PR target/60580
16497 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16498 (aarch64_frame_pointer_required): Adjust logic.
16499 (aarch64_can_eliminate): Adjust logic.
16500 (aarch64_override_options_after_change): Adjust logic.
16501
16502 2014-03-27 Dehao Chen <dehao@google.com>
16503
16504 * ipa-inline.c (early_inliner): Update node's inline info.
16505
16506 2014-03-26 Dehao Chen <dehao@google.com>
16507
16508 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16509 compiler inserted conditional jumps for NAN float check.
16510
16511 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16512
16513 * ubsan.h (ubsan_create_data): Change second argument's type
16514 to const location_t *.
16515 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16516 _("<unknown>").
16517 (ubsan_create_data): Change second argument to const location_t *PLOC.
16518 Create Loc field whenever PLOC is non-NULL.
16519 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16520 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16521 callers.
16522
16523 PR other/59545
16524 * real.c (real_to_integer2): Change type of low to UHWI.
16525
16526 2014-03-26 Tobias Burnus <burnus@net-b.de>
16527
16528 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16529 (CILK_SELF_SPECS): New define.
16530 (driver_self_specs): Use it.
16531
16532 2014-03-26 Richard Biener <rguenther@suse.de>
16533
16534 * tree-pretty-print.c (percent_K_format): Implement special
16535 case for LTO and its stripped down BLOCK tree.
16536
16537 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16538
16539 PR sanitizer/60636
16540 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16541
16542 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16543 one range is range_int_cst_p, but not both, at least optimize
16544 addition/subtraction of 0 and multiplication by 0 or 1.
16545 * gimple-fold.c (gimple_fold_call): Fold
16546 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16547 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16548 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16549
16550 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16551
16552 PR rtl-optimization/60452
16553 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16554 <case REG>: Return 1 for invalid offsets from the frame pointer.
16555
16556 2014-03-26 Marek Polacek <polacek@redhat.com>
16557
16558 PR c/37428
16559 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16560 a structure/union.
16561
16562 2014-03-26 Marek Polacek <polacek@redhat.com>
16563
16564 PR c/39525
16565 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16566 field members.
16567
16568 2014-03-26 Marek Polacek <polacek@redhat.com>
16569
16570 PR other/59545
16571 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16572 multiplication in unsigned type.
16573
16574 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16575
16576 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16577
16578 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16579
16580 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16581
16582 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16583
16584 PR ipa/60315
16585 * cif-code.def (UNREACHABLE) New code.
16586 * ipa-inline.c (inline_small_functions): Skip edges to
16587 __builtlin_unreachable.
16588 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
16589 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
16590 predicate to __bulitin_unreachable.
16591 (set_cond_stmt_execution_predicate): Fix issue when
16592 invert_tree_comparison returns ERROR_MARK.
16593 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
16594 propagate to inline clones.
16595 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
16596 to unreachable.
16597 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
16598 * cgraphclones.c (cgraph_clone_node): If call destination is already
16599 ureachable, do not redirect it back.
16600 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
16601 unreachable.
16602
16603 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
16604
16605 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
16606 Do not modify inline clones.
16607
16608 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16609
16610 * config/i386/i386.md (general_sext_operand): New mode attr.
16611 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
16612 don't generate (sign_extend (const_int)).
16613 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
16614 operands[2]. Use We constraint instead of <i> and
16615 <general_sext_operand> predicate instead of <general_operand>.
16616 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
16617 * config/i386/constraints.md (We): New constraint.
16618 * config/i386/predicates.md (x86_64_sext_operand,
16619 sext_operand): New predicates.
16620
16621 2014-03-25 Martin Jambor <mjambor@suse.cz>
16622
16623 PR ipa/60600
16624 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
16625 inconsistent devirtualizations to __builtin_unreachable.
16626
16627 2014-03-25 Marek Polacek <polacek@redhat.com>
16628
16629 PR c/35449
16630 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
16631
16632 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
16633
16634 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
16635 order of elements for big-endian.
16636
16637 2014-03-25 Richard Biener <rguenther@suse.de>
16638
16639 PR middle-end/60635
16640 * gimplify-me.c (gimple_regimplify_operands): Update the
16641 re-gimplifed stmt.
16642
16643 2014-03-25 Martin Jambor <mjambor@suse.cz>
16644
16645 PR ipa/59176
16646 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
16647 (lto_output_varpool_node): Likewise.
16648 (input_overwrite_node): Likewise.
16649 (input_varpool_node): Likewise.
16650
16651 2014-03-25 Richard Biener <rguenther@suse.de>
16652
16653 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
16654 (run_gcc): Likewise.
16655
16656 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16657
16658 * combine.c (simplify_compare_const): Add MODE argument.
16659 Handle mode_width 0 as very large mode_width.
16660 (try_combine, simplify_comparison): Adjust callers.
16661
16662 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
16663 type to avoid signed integer overflow.
16664 * explow.c (plus_constant): Likewise.
16665
16666 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
16667
16668 * doc/generic.texi: Correct typos.
16669
16670 2014-03-24 Tobias Burnus <burnus@net-b.de>
16671
16672 * doc/invoke.texi (-flto): Expand section about
16673 using static libraries with LTO.
16674
16675 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16676
16677 PR rtl-optimization/60501
16678 * optabs.def (addptr3_optab): New optab.
16679 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
16680 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
16681 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
16682
16683 * lra.c (emit_add3_insn): Use the addptr pattern if available.
16684
16685 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
16686
16687 2014-03-24 Ulrich Drepper <drepper@gmail.com>
16688
16689 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
16690 _mm512_set1_pd.
16691
16692 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
16693 (_mm256_undefined_ps): Define.
16694 (_mm256_undefined_pd): Define.
16695 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
16696 (_mm_undefined_pd): Define.
16697 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
16698 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
16699 (_mm512_undefined_ps): Define.
16700 (_mm512_undefined_pd): Define.
16701 Use _mm*_undefined_*.
16702 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
16703
16704 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
16705
16706 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
16707 (lshr_simd): DI mode added.
16708 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
16709 (aarch64_ushr_simddi): Likewise.
16710 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
16711 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
16712 (vshrd_n_u64): Likewise.
16713
16714 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16715
16716 * Makefile.in (s-macro_list): Depend on cc1.
16717
16718 2014-03-23 Teresa Johnson <tejohnson@google.com>
16719
16720 * ipa-utils.c (ipa_print_order): Use specified dump file.
16721
16722 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
16723
16724 PR rtl-optimization/60601
16725 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
16726
16727 * gcc.c (eval_spec_function): Initialize save_growing_value.
16728
16729 2014-03-22 Jakub Jelinek <jakub@redhat.com>
16730
16731 PR sanitizer/60613
16732 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
16733 code == MINUS_EXPR, never swap op0 with op1.
16734
16735 * toplev.c (init_local_tick): Avoid signed integer multiplication
16736 overflow.
16737 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
16738 shift by first operand's bitsize.
16739
16740 2014-03-21 Jakub Jelinek <jakub@redhat.com>
16741
16742 PR target/60610
16743 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
16744 redefine to 1 or 0.
16745 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
16746 TARGET_ISA_64BIT_P(x).
16747
16748 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16749
16750 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
16751 pattern for vector nor instead of subtract from splat(-1).
16752 (altivec_expand_vec_perm_const_le): Likewise.
16753
16754 2014-03-21 Richard Henderson <rth@twiddle.net>
16755
16756 PR target/60598
16757 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
16758 related insns after epilogue_completed.
16759
16760 2014-03-21 Martin Jambor <mjambor@suse.cz>
16761
16762 PR ipa/59176
16763 * cgraph.h (symtab_node): New flag body_removed.
16764 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
16765 when removing bodies.
16766 * symtab.c (dump_symtab_base): Dump body_removed flag.
16767 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
16768 had their bodies removed.
16769
16770 2014-03-21 Martin Jambor <mjambor@suse.cz>
16771
16772 PR ipa/60419
16773 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
16774 in the border.
16775
16776 2014-03-21 Richard Biener <rguenther@suse.de>
16777
16778 PR tree-optimization/60577
16779 * tree-core.h (struct tree_base): Document nothrow_flag use
16780 in DECL_NONALIASED.
16781 * tree.h (DECL_NONALIASED): New.
16782 (may_be_aliased): Adjust.
16783 * coverage.c (build_var): Set DECL_NONALIASED.
16784
16785 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16786
16787 * expr.c (expand_expr_real_1): Remove outdated comment.
16788
16789 2014-03-20 Jakub Jelinek <jakub@redhat.com>
16790
16791 PR middle-end/60597
16792 * ira.c (adjust_cleared_regs): Call copy_rtx on
16793 *reg_equiv[REGNO (loc)].src_p before passing it to
16794 simplify_replace_fn_rtx.
16795
16796 PR target/60568
16797 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
16798 into CONST, put pic register as first operand of PLUS. Use
16799 gen_const_mem for both 32-bit and 64-bit PIC got loads.
16800
16801 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16802
16803 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
16804
16805 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16806
16807 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
16808 around for store forwarding issue in the FPU on the UT699.
16809 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
16810 loads and operations if -mfix-ut699 is specified.
16811 (divtf3_hq): Tweak attribute.
16812 (sqrttf2_hq): Likewise.
16813
16814 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
16815
16816 * calls.c (store_one_arg): Remove incorrect const qualification on the
16817 type of the temporary.
16818 * cfgexpand.c (expand_return): Likewise.
16819 * expr.c (expand_constructor): Likewise.
16820 (expand_expr_real_1): Likewise.
16821
16822 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16823
16824 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
16825 of parts.
16826
16827 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16828
16829 PR target/60039
16830 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
16831
16832 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
16833
16834 * config/arm/aarch-common-protos.h
16835 (alu_cost_table): Fix spelling of "extend".
16836 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
16837
16838 2014-03-19 Richard Biener <rguenther@suse.de>
16839
16840 PR middle-end/60553
16841 * tree-core.h (tree_type_common): Re-order pointer members
16842 to reduce recursion depth during GC walks.
16843
16844 2014-03-19 Marek Polacek <polacek@redhat.com>
16845
16846 PR sanitizer/60569
16847 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
16848 before accessing it.
16849
16850 2014-03-19 Richard Biener <rguenther@suse.de>
16851
16852 PR lto/59543
16853 * lto-streamer-in.c (input_function): In WPA stage do not drop
16854 debug stmts.
16855
16856 2014-03-19 Jakub Jelinek <jakub@redhat.com>
16857
16858 PR tree-optimization/60559
16859 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
16860 with build_zero_cst assignment.
16861
16862 2014-03-18 Kai Tietz <ktietz@redhat.com>
16863
16864 PR rtl-optimization/56356
16865 * sdbout.c (sdbout_parms): Verify that parms'
16866 incoming argument is valid.
16867 (sdbout_reg_parms): Likewise.
16868
16869 2014-03-18 Richard Henderson <rth@redhat.com>
16870
16871 PR target/60562
16872 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
16873 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
16874 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
16875
16876 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
16877
16878 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
16879 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
16880 Italicize plugin event names in description. Explain that
16881 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
16882 Remind that no GCC functions should be called after PLUGIN_FINISH.
16883 Explain what pragmas with expansion are.
16884
16885 2014-03-18 Martin Liska <mliska@suse.cz>
16886
16887 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
16888 gimple call statement is update.
16889 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
16890 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
16891
16892 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16893
16894 PR sanitizer/60557
16895 * ubsan.c (ubsan_instrument_unreachable): Call
16896 initialize_sanitizer_builtins.
16897 (ubsan_pass): Likewise.
16898
16899 PR sanitizer/60535
16900 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
16901 varpool_finalize_decl instead of rest_of_decl_compilation.
16902
16903 2014-03-18 Richard Biener <rguenther@suse.de>
16904
16905 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
16906 by using bitmap_and_compl instead of bitmap_and_compl_into.
16907 (df_rd_transfer_function): Likewise.
16908
16909 2014-03-18 Richard Biener <rguenther@suse.de>
16910
16911 * doc/lto.texi (fresolution): Fix typo.
16912
16913 2014-03-18 Richard Biener <rguenther@suse.de>
16914
16915 * doc/invoke.texi (flto): Update for changes in 4.9.
16916
16917 2014-03-18 Richard Biener <rguenther@suse.de>
16918
16919 * doc/loop.texi: Remove section on the removed lambda framework.
16920 Update loop docs with recent changes in preserving loop structure.
16921
16922 2014-03-18 Richard Biener <rguenther@suse.de>
16923
16924 * doc/lto.texi (-fresolution): Document.
16925
16926 2014-03-18 Richard Biener <rguenther@suse.de>
16927
16928 * doc/contrib.texi: Adjust my name.
16929
16930 2014-03-18 Jakub Jelinek <jakub@redhat.com>
16931
16932 PR ipa/58721
16933 * internal-fn.c: Include diagnostic-core.h.
16934 (expand_BUILTIN_EXPECT): New function.
16935 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
16936 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
16937 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
16938 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
16939 IFN_BUILTIN_EXPECT.
16940 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
16941 Revert 3 argument __builtin_expect code.
16942 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
16943 * gimple-fold.c (gimple_fold_call): Likewise.
16944 * tree.h (fold_builtin_expect): New prototype.
16945 * builtins.c (build_builtin_expect_predicate): Add predictor
16946 argument, if non-NULL, create 3 argument __builtin_expect.
16947 (fold_builtin_expect): No longer static. Add ARG2 argument,
16948 pass it through to build_builtin_expect_predicate.
16949 (fold_builtin_2): Adjust caller.
16950 (fold_builtin_3): Handle BUILT_IN_EXPECT.
16951 * internal-fn.def (BUILTIN_EXPECT): New.
16952
16953 2014-03-18 Tobias Burnus <burnus@net-b.de>
16954
16955 PR ipa/58721
16956 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
16957 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
16958 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
16959
16960 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
16961
16962 PR ipa/58721
16963 * predict.c (combine_predictions_for_bb): Fix up formatting.
16964 (expr_expected_value_1, expr_expected_value): Add predictor argument,
16965 fill what it points to if non-NULL.
16966 (tree_predict_by_opcode): Adjust caller, use the predictor.
16967 * predict.def (PRED_COMPARE_AND_SWAP): Add.
16968
16969 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
16970
16971 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
16972 proper constant for the store mode.
16973
16974 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
16975
16976 * symtab.c (change_decl_assembler_name): Fix transparent alias
16977 chain construction.
16978
16979 2014-03-16 Renlin Li <Renlin.Li@arm.com>
16980
16981 * config/aarch64/aarch64.c: Correct the comments about the
16982 aarch64 stack layout.
16983
16984 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
16985
16986 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
16987 check for GF_OMP_FOR_KIND_FOR.
16988
16989 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
16990
16991 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
16992 ymm and zmm register names.
16993
16994 2014-03-17 Jakub Jelinek <jakub@redhat.com>
16995
16996 PR target/60516
16997 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
16998 note creation for the 2010-08-31 changes.
16999
17000 2014-03-17 Marek Polacek <polacek@redhat.com>
17001
17002 PR middle-end/60534
17003 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17004 as -fno-tree-loop-vectorize.
17005 (expand_omp_simd): Likewise.
17006
17007 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17008
17009 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17010 (eligible_for_call_delay): New prototype.
17011 * config/sparc/sparc.c (tls_call_delay): Rename into...
17012 (eligible_for_call_delay): ...this. Return false if the instruction
17013 cannot be put in the delay slot of a branch.
17014 (eligible_for_restore_insn): Simplify.
17015 (eligible_for_return_delay): Return false if the instruction cannot be
17016 put in the delay slot of a branch and simplify.
17017 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17018 put in the delay slot of a branch.
17019 * config/sparc/sparc.md (fix_ut699): New attribute.
17020 (tls_call_delay): Delete.
17021 (in_call_delay): Reimplement.
17022 (eligible_for_sibcall_delay): Rename into...
17023 (in_sibcall_delay): ...this.
17024 (eligible_for_return_delay): Rename into...
17025 (in_return_delay): ...this.
17026 (in_branch_delay): Reimplement.
17027 (in_uncond_branch_delay): Delete.
17028 (in_annul_branch_delay): Delete.
17029
17030 2014-03-14 Richard Henderson <rth@redhat.com>
17031
17032 PR target/60525
17033 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17034 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17035 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17036 (floathi splitters): Remove.
17037 (float<SWI48x>xf2): New pattern.
17038 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17039 code that tried to handle DImode for 32-bit, but which was excluded
17040 by the pattern's condition. Drop allocation of stack temporary.
17041 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17042 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17043 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17044 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17045 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17046 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17047 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17048 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17049 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17050 (*float<SWI48x><X87MODEF>2_i387): Remove.
17051 (all float _with_temp splitters): Remove.
17052 (*float<SWI48x><MODEF>2_i387): New pattern.
17053 (*float<SWI48><MODEF>2_sse): New pattern.
17054 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17055 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17056
17057 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17058 Marek Polacek <polacek@redhat.com>
17059
17060 PR middle-end/60484
17061 * common.opt (dump_base_name_prefixed): New Variable.
17062 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17063 if x_dump_base_name_prefixed is already set, set it at the end.
17064
17065 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17066
17067 PR rtl-optimization/60508
17068 * lra-constraints.c (get_reload_reg): Add new parameter
17069 in_subreg_p.
17070 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17071 Pass the new parameter values.
17072
17073 2014-03-14 Richard Biener <rguenther@suse.de>
17074
17075 * common.opt: Revert unintented changes from r205065.
17076 * opts.c: Likewise.
17077
17078 2014-03-14 Richard Biener <rguenther@suse.de>
17079
17080 PR middle-end/60518
17081 * cfghooks.c (split_block): Properly adjust all loops the
17082 block was a latch of.
17083
17084 2014-03-14 Martin Jambor <mjambor@suse.cz>
17085
17086 PR lto/60461
17087 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17088 and simplify it.
17089
17090 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17091
17092 PR target/59396
17093 * config/avr/avr.c (avr_set_current_function): Pass function name
17094 through default_strip_name_encoding before sanity checking instead
17095 of skipping the first char of the assembler name.
17096
17097 2014-03-13 Richard Henderson <rth@redhat.com>
17098
17099 PR debug/60438
17100 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17101 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17102 * config/i386/i386-protos.h: Likewise.
17103 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17104 in the expander instead of a splitter.
17105 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17106 any possibility of requiring a memory.
17107 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17108 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17109 (fp branch splitters): Update for ix86_split_fp_branch.
17110 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17111 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17112 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17113 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17114 (*fop_<MODEF>_3_i387): Likewise.
17115 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17116 (splitters for the fop_* register patterns): Remove.
17117 (fscalexf4_i387): Rename from *fscalexf4_i387.
17118 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17119
17120 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17121
17122 PR tree-optimization/59779
17123 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17124 type for bitsize and maxsize instead of HOST_WIDE_INT.
17125
17126 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17127
17128 PR rtl-optimization/57320
17129 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17130 the CFG after thread_prologue_and_epilogue_insns.
17131
17132 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17133
17134 PR rtl-optimization/57189
17135 * lra-constraints.c (process_alt_operands): Disfavor spilling
17136 vector pseudos.
17137
17138 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17139
17140 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17141
17142 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17143
17144 PR tree-optimization/59025
17145 PR middle-end/60418
17146 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17147 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17148
17149 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17150
17151 PR target/60486
17152 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17153 calls of avr_out_plus_1.
17154
17155 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17156
17157 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17158 BB's single pred and update the father loop's latch info later.
17159
17160 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17161
17162 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17163 (VEC_M): Likewise.
17164 (VEC_N): Likewise.
17165 (VEC_R): Likewise.
17166 (VEC_base): Likewise.
17167 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17168 registers, we need to swap double words in little endian mode.
17169
17170 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17171 to be a container mode for 128-bit integer operations added in ISA
17172 2.07. Unlike TImode and PTImode, the preferred register set is
17173 the Altivec/VMX registers for the 128-bit operations.
17174
17175 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17176 declarations.
17177 (rs6000_split_128bit_ok_p): Likewise.
17178
17179 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17180 macros for creating ISA 2.07 normal and overloaded builtin
17181 functions with 3 arguments.
17182 (BU_P8V_OVERLOAD_3): Likewise.
17183 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17184 for use as overloaded functions.
17185 (VPERM_1TI_UNS): Likewise.
17186 (VSEL_1TI): Likewise.
17187 (VSEL_1TI_UNS): Likewise.
17188 (ST_INTERNAL_1ti): Likewise.
17189 (LD_INTERNAL_1ti): Likewise.
17190 (XXSEL_1TI): Likewise.
17191 (XXSEL_1TI_UNS): Likewise.
17192 (VPERM_1TI): Likewise.
17193 (VPERM_1TI_UNS): Likewise.
17194 (XXPERMDI_1TI): Likewise.
17195 (SET_1TI): Likewise.
17196 (LXVD2X_V1TI): Likewise.
17197 (STXVD2X_V1TI): Likewise.
17198 (VEC_INIT_V1TI): Likewise.
17199 (VEC_SET_V1TI): Likewise.
17200 (VEC_EXT_V1TI): Likewise.
17201 (EQV_V1TI): Likewise.
17202 (NAND_V1TI): Likewise.
17203 (ORC_V1TI): Likewise.
17204 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17205 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17206 overloaded builtin.
17207 (VADDUQM): Likewise.
17208 (VSUBCUQ): Likewise.
17209 (VADDEUQM): Likewise.
17210 (VADDECUQ): Likewise.
17211 (VSUBEUQM): Likewise.
17212 (VSUBECUQ): Likewise.
17213
17214 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17215 __int128_t and __uint128_t types.
17216 (__uint128_type): Likewise.
17217 (altivec_categorize_keyword): Add support for vector __int128_t,
17218 vector __uint128_t, vector __int128, and vector unsigned __int128
17219 as a container type for TImode operations that need to be done in
17220 VSX/Altivec registers.
17221 (rs6000_macro_to_expand): Likewise.
17222 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17223 to support 128-bit integer instructions vaddcuq, vadduqm,
17224 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17225 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17226
17227 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17228 for V1TImode, and set up preferences to use VSX/Altivec registers.
17229 Setup VSX reload handlers.
17230 (rs6000_debug_reg_global): Likewise.
17231 (rs6000_init_hard_regno_mode_ok): Likewise.
17232 (rs6000_preferred_simd_mode): Likewise.
17233 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17234 (easy_altivec_constant): Likewise.
17235 (output_vec_const_move): Likewise.
17236 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17237 simple move.
17238 (rs6000_expand_vector_extract): Likewise.
17239 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17240 addressing.
17241 (rs6000_const_vec): Add support for V1TImode.
17242 (rs6000_emit_le_vsx_load): Swap double words when loading or
17243 storing TImode/V1TImode.
17244 (rs6000_emit_le_vsx_store): Likewise.
17245 (rs6000_emit_le_vsx_move): Likewise.
17246 (rs6000_emit_move): Add support for V1TImode.
17247 (altivec_expand_ld_builtin): Likewise.
17248 (altivec_expand_st_builtin): Likewise.
17249 (altivec_expand_vec_init_builtin): Likewise.
17250 (altivec_expand_builtin): Likewise.
17251 (rs6000_init_builtins): Add support for V1TImode type. Add
17252 support for ISA 2.07 128-bit integer builtins. Define type names
17253 for the VSX/Altivec vector types.
17254 (altivec_init_builtins): Add support for overloaded vector
17255 functions with V1TImode type.
17256 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17257 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17258 external function.
17259 (rs6000_split_128bit_ok_p): Likewise.
17260 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17261 __int128_t and vector __uint128_t.
17262
17263 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17264 and mode attributes.
17265 (VSX_M): Likewise.
17266 (VSX_M2): Likewise.
17267 (VSm): Likewise.
17268 (VSs): Likewise.
17269 (VSr): Likewise.
17270 (VSv): Likewise.
17271 (VS_scalar): Likewise.
17272 (VS_double): Likewise.
17273 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17274
17275 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17276 we support the ISA 2.07 128-bit integer arithmetic instructions.
17277 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17278 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17279 and TImode types for use with the builtin functions.
17280 (V1TI_type_node): Likewise.
17281 (unsigned_V1TI_type_node): Likewise.
17282 (intTI_type_internal_node): Likewise.
17283 (uintTI_type_internal_node): Likewise.
17284
17285 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17286 128-bit builtin functions.
17287 (UNSPEC_VADDEUQM): Likewise.
17288 (UNSPEC_VADDECUQ): Likewise.
17289 (UNSPEC_VSUBCUQ): Likewise.
17290 (UNSPEC_VSUBEUQM): Likewise.
17291 (UNSPEC_VSUBECUQ): Likewise.
17292 (VM): Add V1TImode to vector mode iterators.
17293 (VM2): Likewise.
17294 (VI_unit): Likewise.
17295 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17296 (altivec_vaddcuq): Likewise.
17297 (altivec_vsubuqm): Likewise.
17298 (altivec_vsubcuq): Likewise.
17299 (altivec_vaddeuqm): Likewise.
17300 (altivec_vaddecuq): Likewise.
17301 (altivec_vsubeuqm): Likewise.
17302 (altivec_vsubecuq): Likewise.
17303
17304 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17305 mode iterators.
17306 (BOOL_128): Likewise.
17307 (BOOL_REGS_OUTPUT): Likewise.
17308 (BOOL_REGS_OP1): Likewise.
17309 (BOOL_REGS_OP2): Likewise.
17310 (BOOL_REGS_UNARY): Likewise.
17311 (BOOL_REGS_AND_CR0): Likewise.
17312
17313 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17314 128-bit integer builtin support.
17315 (vec_vadduqm): Likewise.
17316 (vec_vaddecuq): Likewise.
17317 (vec_vaddeuqm): Likewise.
17318 (vec_vsubecuq): Likewise.
17319 (vec_vsubeuqm): Likewise.
17320 (vec_vsubcuq): Likewise.
17321 (vec_vsubuqm): Likewise.
17322
17323 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17324 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17325 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17326 128-bit integer add/subtract to ISA 2.07.
17327
17328 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17329
17330 * config/arc/arc.c (arc_predicate_delay_insns):
17331 Fix third argument passed to conditionalize_nonjump.
17332
17333 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17334
17335 * config/aarch64/aarch64-builtins.c
17336 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17337 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17338 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17339 instead of __builtin_lfloor.
17340 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17341
17342 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17343
17344 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17345 (tree_ssa_ifcombine_bb_1): New function.
17346 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17347 is an empty forwarder block to then_bb or vice versa and then_bb
17348 and else_bb are effectively swapped.
17349
17350 2014-03-12 Christian Bruel <christian.bruel@st.com>
17351
17352 PR target/60264
17353 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17354 REG_CFA_DEF_CFA note.
17355 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17356 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17357
17358 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17359
17360 PR tree-optimization/60454
17361 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17362
17363 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17364
17365 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17366 Do not define target_cpu_default2 to generic.
17367 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17368 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17369 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17370
17371 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17372 Marc Glisse <marc.glisse@inria.fr>
17373
17374 PR tree-optimization/60502
17375 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17376 instead of build_low_bits_mask.
17377
17378 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17379
17380 PR middle-end/60482
17381 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17382 if there are multiple uses, but op doesn't live on E edge.
17383 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17384 clobber stmts before __builtin_unreachable.
17385
17386 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17387
17388 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17389 hard_frame_pointer_rtx.
17390 * cse.c (cse_insn): Remove volatile check.
17391 * cselib.c (cselib_process_insn): Likewise.
17392 * dse.c (scan_insn): Likewise.
17393
17394 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17395
17396 * config/arc/arc.c (conditionalize_nonjump): New function,
17397 broken out of ...
17398 (arc_ifcvt): ... this.
17399 (arc_predicate_delay_insns): Use it.
17400
17401 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17402
17403 * config/arc/predicates.md (extend_operand): During/after reload,
17404 allow const_int_operand.
17405 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17406 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17407 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17408 to "i".
17409 (umulsi3_highpart_i): Likewise.
17410
17411 2014-03-11 Richard Biener <rguenther@suse.de>
17412
17413 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17414 Add asserts to guard possible wrong-code bugs.
17415
17416 2014-03-11 Richard Biener <rguenther@suse.de>
17417
17418 PR tree-optimization/60429
17419 PR tree-optimization/60485
17420 * tree-ssa-structalias.c (set_union_with_increment): Properly
17421 take into account all fields that overlap the shifted vars.
17422 (do_sd_constraint): Likewise.
17423 (do_ds_constraint): Likewise.
17424 (get_constraint_for_ptr_offset): Likewise.
17425
17426 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17427
17428 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17429 (nios2_compute_frame_layout):
17430 Add calculation of cfun->machine->fp_save_offset.
17431 (nios2_expand_prologue): Correct setting of frame pointer register
17432 in prologue.
17433 (nios2_expand_epilogue): Update recovery of stack pointer from
17434 frame pointer accordingly.
17435 (nios2_initial_elimination_offset): Update calculation of offset
17436 for eliminating to HARD_FRAME_POINTER_REGNUM.
17437
17438 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17439
17440 PR ipa/60457
17441 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17442 cgraph_get_create_node on VAR_DECLs.
17443
17444 2014-03-10 Richard Biener <rguenther@suse.de>
17445
17446 PR middle-end/60474
17447 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17448
17449 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17450
17451 * config/vms/vms.opt (vms_float_format): New variable.
17452
17453 2014-03-08 Tobias Burnus <burnus@net-b.de>
17454
17455 * doc/invoke.texi (-fcilkplus): Update implementation status.
17456
17457 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17458 Richard Biener <rguenther@suse.de>
17459
17460 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17461 consistently accross all TUs.
17462 (run_gcc): Enable -fshort-double automatically at link at link-time
17463 and disallow override.
17464
17465 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17466
17467 PR target/58271
17468 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17469 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17470 if they can't be used.
17471
17472 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17473
17474 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17475 for Solaris 11/x86 ld.
17476 * configure: Regenerate.
17477
17478 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17479
17480 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17481 (LIB_TLS_SPEC): Save as ld_tls_libs.
17482 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17483 (HAVE_AS_IX86_TLSLDM): New test.
17484 * configure, config.in: Regenerate.
17485 * config/i386/i386.c (legitimize_tls_address): Fall back to
17486 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17487 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17488 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17489 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17490
17491 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17492
17493 * common.opt (fira-loop-pressure): Mark as optimization.
17494
17495 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17496
17497 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17498 an OpenMP mappable type.
17499
17500 2014-03-06 Matthias Klose <doko@ubuntu.com>
17501
17502 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17503 MULTILIB_OSDIRNAMES is not defined.
17504
17505 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17506 Meador Inge <meadori@codesourcery.com>
17507
17508 PR target/58595
17509 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17510 (arm_legitimize_address): Call legitimize_tls_address for any
17511 arm_tls_referenced_p expression, handle constant addend. Call it
17512 before testing for !TARGET_ARM.
17513 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17514
17515 2014-03-06 Richard Biener <rguenther@suse.de>
17516
17517 PR middle-end/60445
17518 PR lto/60424
17519 PR lto/60427
17520 Revert
17521 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17522
17523 * tree-streamer.c (record_common_node): Assert we don't record
17524 nodes with type double.
17525 (preload_common_node): Skip type double, complex double and double
17526 pointer since it is now frontend dependent due to fshort-double option.
17527
17528 2014-03-06 Richard Biener <rguenther@suse.de>
17529
17530 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17531 or -fno-lto is specified and the linker has full plugin support.
17532 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17533 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17534 * lto-wrapper.c (merge_and_complain): Merge compile-time
17535 optimization levels.
17536 (run_gcc): And pass it through to the link options.
17537
17538 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17539
17540 PR debug/60381
17541 Revert:
17542 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17543 PR debug/59992
17544 * cselib.c (remove_useless_values): Skip to avoid quadratic
17545 behavior if the condition moved from...
17546 (cselib_process_insn): ... here holds.
17547
17548 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17549
17550 PR plugins/59335
17551 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17552 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17553
17554 PR plugins/59335
17555 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17556 (TM_H): Add x86-tune.def.
17557
17558 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17559
17560 * config/aarch64/aarch64.c (generic_tunings):
17561 Use cortexa57_extra_costs.
17562
17563 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17564
17565 PR lto/60404
17566 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17567 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17568 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17569 cost for in_lto_p.
17570
17571 2014-03-04 Heiher <r@hev.cc>
17572
17573 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17574 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17575
17576 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17577
17578 * config/i386/predicates.md (const2356_operand): Change to ...
17579 (const2367_operand): ... this.
17580 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17581 const2367_operand.
17582 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17583 (*avx512pf_scatterpf<mode>sf): Ditto.
17584 (avx512pf_scatterpf<mode>df): Ditto.
17585 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17586 (*avx512pf_scatterpf<mode>df): Ditto.
17587 * config/i386/i386.c (ix86_expand_builtin): Update
17588 incorrect hint operand error message.
17589
17590 2014-03-04 Richard Biener <rguenther@suse.de>
17591
17592 * lto-section-in.c (lto_get_section_data): Fix const cast.
17593
17594 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17595
17596 * tree-streamer.c (record_common_node): Assert we don't record
17597 nodes with type double.
17598 (preload_common_node): Skip type double, complex double and double
17599 pointer since it is now frontend dependent due to fshort-double option.
17600
17601 2014-03-04 Richard Biener <rguenther@suse.de>
17602
17603 PR lto/60405
17604 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
17605 (lto_input_toplevel_asms): Likewise.
17606 * lto-section-in.c (lto_get_section_data): Instead do it here
17607 for every section.
17608
17609 2014-03-04 Richard Biener <rguenther@suse.de>
17610
17611 PR tree-optimization/60382
17612 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
17613 dead PHIs a reduction.
17614
17615 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
17616
17617 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
17618 hint value.
17619 (_mm_prefetch): Move out of GCC target("sse") pragma.
17620 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
17621 GCC target("prfchw") pragma.
17622 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
17623 for locality <= 2.
17624 * config/i386/i386.c (ix86_option_override_internal): Enable
17625 -mprfchw with -mprefetchwt1.
17626
17627 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17628
17629 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
17630 Mark as varying.
17631
17632 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
17633
17634 * opts.h (CL_PCH_IGNORE): Define.
17635 * targhooks.c (option_affects_pch_p):
17636 Return false for options that have CL_PCH_IGNORE set.
17637 * opt-functions.awk: Process PchIgnore.
17638 * doc/options.texi: Document PchIgnore.
17639
17640 * config/arc/arc.opt (misize): Add PchIgnore property.
17641
17642 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17643
17644 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
17645 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
17646 constraint on constants to permit them being loaded into
17647 GENERAL_REGS or BASE_REGS.
17648
17649 2014-03-03 Nick Clifton <nickc@redhat.com>
17650
17651 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
17652 anti-cacnonical alternatives.
17653 (negandhi3_real): New pattern.
17654 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
17655
17656 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17657
17658 * config/avr/avr-mcus.def: Remove atxmega16x1.
17659 * config/avr/avr-tables.opt: Regenerate.
17660 * config/avr/t-multilib: Regenerate.
17661 * doc/avr-mmcu.texi: Regenerate.
17662
17663 2014-03-03 Tobias Grosser <tobias@grosser.es>
17664 Mircea Namolaru <mircea.namolaru@inria.fr>
17665
17666 PR tree-optimization/58028
17667 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
17668 scalar dimensions.
17669
17670 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17671
17672 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
17673 not handled by recognizers.
17674
17675 2014-03-03 Jakub Jelinek <jakub@redhat.com>
17676
17677 PR middle-end/60175
17678 * function.c (expand_function_end): Don't emit
17679 clobber_return_register sequence if clobber_after is a BARRIER.
17680 * cfgexpand.c (construct_exit_block): Append instructions before
17681 return_label to prev_bb.
17682
17683 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17684
17685 * config/rs6000/constraints.md: Document reserved use of "wc".
17686
17687 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17688
17689 PR ipa/60150
17690 * ipa.c (function_and_variable_visibility): When dissolving comdat
17691 group, also set all symbols to local.
17692
17693 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
17694
17695 PR ipa/60306
17696
17697 Revert:
17698 2013-12-14 Jan Hubicka <jh@suse.cz>
17699 PR middle-end/58477
17700 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
17701
17702 2014-03-02 Jon Beniston <jon@beniston.com>
17703
17704 PR bootstrap/48230
17705 PR bootstrap/50927
17706 PR bootstrap/52466
17707 PR target/46898
17708 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
17709 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
17710 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
17711 (simple_return, *simple_return): New patterns
17712 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
17713 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
17714
17715 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
17716
17717 * dwarf2out.c (gen_subprogram_die): Tidy.
17718
17719 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17720
17721 PR target/60071
17722 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
17723 (*mov_t_msb_neg_negc): ... this new insn.
17724
17725 2014-02-28 Jason Merrill <jason@redhat.com>
17726
17727 PR c++/58678
17728 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
17729 function.
17730
17731 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
17732
17733 PR c++/60314
17734 * dwarf2out.c (decltype_auto_die): New static.
17735 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
17736 (gen_type_die_with_usage): Handle 'decltype(auto)'.
17737 (is_cxx_auto): Likewise.
17738
17739 2014-02-28 Ian Bolton <ian.bolton@arm.com>
17740
17741 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
17742 we are not using general regs only.
17743
17744 2014-02-28 Richard Biener <rguenther@suse.de>
17745
17746 PR target/60280
17747 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
17748 previous fix and only allow to remove trivial pre-headers
17749 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
17750 (remove_forwarder_block): Properly update the latch of a loop.
17751
17752 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17753
17754 PR debug/59992
17755 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
17756 (cselib_preserved_hash_table): New.
17757 (preserve_constants_and_equivs): Move preserved vals to it.
17758 (cselib_find_slot): Look it up first.
17759 (cselib_init): Initialize it.
17760 (cselib_finish): Release it.
17761 (dump_cselib_table): Dump it.
17762
17763 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17764
17765 PR debug/59992
17766 * cselib.c (remove_useless_values): Skip to avoid quadratic
17767 behavior if the condition moved from...
17768 (cselib_process_insn): ... here holds.
17769
17770 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17771
17772 PR debug/57232
17773 * var-tracking.c (vt_initialize): Apply the same condition to
17774 preserve the CFA base value.
17775
17776 2014-02-28 Joey Ye <joey.ye@arm.com>
17777
17778 PR target/PR60169
17779 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
17780 if reload in progress or completed.
17781
17782 2014-02-28 Tobias Burnus <burnus@net-b.de>
17783
17784 PR middle-end/60147
17785 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
17786 NAMELIST_DECL.
17787
17788 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
17789
17790 * doc/tm.texi.in (Condition Code Status): Update documention for
17791 relative locations of cc0-setter and cc0-user.
17792
17793 2014-02-27 Jeff Law <law@redhat.com>
17794
17795 PR rtl-optimization/52714
17796 * combine.c (try_combine): When splitting an unrecognized PARALLEL
17797 into two independent simple sets, if I3 is a jump, ensure the
17798 pattern we place into I3 is a (set (pc) ...).
17799
17800 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
17801 Jeff Law <law@redhat.com>
17802
17803 PR rtl-optimization/49847
17804 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
17805 are in different blocks.
17806 * doc/tm.texi (Condition Code Status): Update documention for
17807 relative locations of cc0-setter and cc0-user.
17808
17809 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
17810
17811 PR target/59222
17812 * lra.c (lra_emit_add): Check SUBREG too.
17813
17814 2014-02-27 Andreas Schwab <schwab@suse.de>
17815
17816 * config/m68k/m68k.c (m68k_option_override): Disable
17817 -flive-range-shrinkage for classic m68k.
17818 (m68k_override_options_after_change): Likewise.
17819
17820 2014-02-27 Marek Polacek <polacek@redhat.com>
17821
17822 PR middle-end/59223
17823 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
17824 -Wmaybe-uninitialized.
17825
17826 2014-02-27 Alan Modra <amodra@gmail.com>
17827
17828 PR target/57936
17829 * reload1.c (emit_input_reload_insns): When reload_override_in,
17830 set old to rl->in_reg when rl->in_reg is a subreg.
17831
17832 2014-02-26 Richard Biener <rguenther@suse.de>
17833
17834 PR bootstrap/60343
17835 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
17836
17837 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17838
17839 * common/config/i386/predicates.md (const1256_operand): Remove.
17840 (const2356_operand): New.
17841 (const_1_to_2_operand): Remove.
17842 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
17843 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
17844 (*avx512pf_gatherpf<mode>sf): Ditto.
17845 (avx512pf_gatherpf<mode>df): Ditto.
17846 (*avx512pf_gatherpf<mode>df_mask): Ditto.
17847 (*avx512pf_gatherpf<mode>df): Ditto.
17848 (avx512pf_scatterpf<mode>sf): Ditto.
17849 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
17850 (*avx512pf_scatterpf<mode>sf): Ditto.
17851 (avx512pf_scatterpf<mode>df): Ditto.
17852 (*avx512pf_scatterpf<mode>df_mask): Ditto.
17853 (*avx512pf_scatterpf<mode>df): Ditto.
17854 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
17855
17856 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
17857
17858 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
17859 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
17860 (_mm512_mask_testn_epi64_mask): Move to ...
17861 * config/i386/avx512cdintrin.h: Here.
17862 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
17863 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
17864 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
17865 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
17866 TARGET_AVX512F from TARGET_AVX512CD.
17867
17868 2014-02-26 Richard Biener <rguenther@suse.de>
17869
17870 PR ipa/60327
17871 * ipa.c (walk_polymorphic_call_targets): Properly guard
17872 call to inline_update_overall_summary.
17873
17874 2014-02-26 Bin Cheng <bin.cheng@arm.com>
17875
17876 PR target/60280
17877 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
17878 and latches only if requested. Fix latch if it is removed.
17879 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
17880 LOOPS_HAVE_PREHEADERS.
17881
17882 2014-02-25 Andrew Pinski <apinski@cavium.com>
17883
17884 * builtins.c (expand_builtin_thread_pointer): Create a new target
17885 when the target is NULL.
17886
17887 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
17888
17889 PR rtl-optimization/60317
17890 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17891 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
17892 * lra-assigns.c: Include params.h.
17893 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
17894 other reload pseudos considerations.
17895
17896 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17897
17898 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
17899 to use canonical form for nor<mode>3.
17900
17901 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17902
17903 PR target/55426
17904 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
17905 conversions.
17906
17907 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
17908
17909 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
17910 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
17911 (ix86_handle_option): Handle OPT_mprefetchwt1.
17912 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
17913 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17914 PREFETCHWT1 CPUID.
17915 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17916 OPTION_MASK_ISA_PREFETCHWT1.
17917 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
17918 (PTA_PREFETCHWT1): New.
17919 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
17920 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
17921 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
17922 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
17923 (*prefetch_avx512pf_<mode>_: Change into ...
17924 (*prefetch_prefetchwt1_<mode>: This.
17925 * config/i386/i386.opt (mprefetchwt1): New.
17926 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
17927 (_mm_prefetch): Handle intent to write.
17928 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
17929
17930 2014-02-25 Richard Biener <rguenther@suse.de>
17931
17932 PR middle-end/60291
17933 * emit-rtl.c (mem_attrs_htab): Remove.
17934 (mem_attrs_htab_hash): Likewise.
17935 (mem_attrs_htab_eq): Likewise.
17936 (set_mem_attrs): Always allocate new mem-attrs when something changed.
17937 (init_emit_once): Do not allocate mem_attrs_htab.
17938
17939 2014-02-25 Richard Biener <rguenther@suse.de>
17940
17941 PR lto/60319
17942 * lto-opts.c (lto_write_options): Output non-explicit conservative
17943 -fwrapv, -fno-trapv and -fno-strict-overflow.
17944 * lto-wrapper.c (merge_and_complain): Handle merging those options.
17945 (run_gcc): And pass them through.
17946
17947 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17948
17949 * sel-sched.c (calculate_new_fences): New parameter ptime.
17950 Calculate it as a maximum over all fence cycles.
17951 (sel_sched_region_2): Adjust the call to calculate_new_fences.
17952 Print the final schedule timing when sched_verbose.
17953
17954 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
17955
17956 PR rtl-optimization/60292
17957 * sel-sched.c (fill_vec_av_set): Do not reset target availability
17958 bit fot the fence instruction.
17959
17960 2014-02-24 Alangi Derick <alangiderick@gmail.com>
17961
17962 * calls.h: Fix typo in comment.
17963
17964 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
17965
17966 * config/pa/pa.c (pa_output_move_double): Don't valididate when
17967 adjusting offsetable addresses.
17968
17969 2014-02-24 Guozhi Wei <carrot@google.com>
17970
17971 * sparseset.h (sparseset_pop): Fix the wrong index.
17972
17973 2014-02-24 Walter Lee <walt@tilera.com>
17974
17975 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
17976 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
17977 triplet.
17978 * common/config/tilegx/tilegx-common.c
17979 (TARGET_DEFAULT_TARGET_FLAGS): Define.
17980 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
17981 (LINK_SPEC): Ditto.
17982 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
17983 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
17984 (tilegx_gimplify_va_arg_expr): Handle big endian.
17985 (tilegx_expand_unaligned_load): Ditto.
17986 (tilegx_expand_unaligned_store): Ditto.
17987 (TARGET_RETURN_IN_MSB): New.
17988 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
17989 (TARGET_ENDIAN_DEFAULT): New.
17990 (TARGET_BIG_ENDIAN): Handle big endian.
17991 (BYTES_BIG_ENDIAN): Ditto.
17992 (WORDS_BIG_ENDIAN): Ditto.
17993 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
17994 (ENDIAN_SPEC): New.
17995 (EXTRA_SPECS): New.
17996 * config/tilegx/tilegx.md (extv): Handle big endian.
17997 (extzv): Ditto.
17998 (insn_st<n>): Ditto.
17999 (insn_st<n>_add<bitsuffix>): Ditto.
18000 (insn_stnt<n>): Ditto.
18001 (insn_stnt<n>_add<bitsuffix>):Ditto.
18002 (vec_interleave_highv8qi): Handle big endian.
18003 (vec_interleave_highv8qi_be): New.
18004 (vec_interleave_highv8qi_le): New.
18005 (insn_v1int_h): Handle big endian.
18006 (vec_interleave_lowv8qi): Handle big endian.
18007 (vec_interleave_lowv8qi_be): New.
18008 (vec_interleave_lowv8qi_le): New.
18009 (insn_v1int_l): Handle big endian.
18010 (vec_interleave_highv4hi): Handle big endian.
18011 (vec_interleave_highv4hi_be): New.
18012 (vec_interleave_highv4hi_le): New.
18013 (insn_v2int_h): Handle big endian.
18014 (vec_interleave_lowv4hi): Handle big endian.
18015 (vec_interleave_lowv4hi_be): New.
18016 (vec_interleave_lowv4hi_le): New.
18017 (insn_v2int_l): Handle big endian.
18018 (vec_interleave_highv2si): Handle big endian.
18019 (vec_interleave_highv2si_be): New.
18020 (vec_interleave_highv2si_le): New.
18021 (insn_v4int_h): Handle big endian.
18022 (vec_interleave_lowv2si): Handle big endian.
18023 (vec_interleave_lowv2si_be): New.
18024 (vec_interleave_lowv2si_le): New.
18025 (insn_v4int_l): Handle big endian.
18026 * config/tilegx/tilegx.opt (mbig-endian): New option.
18027 (mlittle-endian): New option.
18028 * doc/install.texi: Document tilegxbe-linux.
18029 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18030
18031 2014-02-24 Martin Jambor <mjambor@suse.cz>
18032
18033 PR ipa/60266
18034 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18035 there are no parameter descriptors.
18036
18037 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18038
18039 PR rtl-optimization/60268
18040 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18041 initialization to ...
18042 (sched_rgn_init): ... here.
18043 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18044
18045 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18046
18047 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18048 names.
18049
18050 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18051
18052 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18053 definition.
18054
18055 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18056
18057 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18058 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18059
18060 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18061
18062 * config/microblaze/predicates.md: Add cmp_op predicate.
18063 * config/microblaze/microblaze.md: Add branch_compare instruction
18064 which uses cmp_op predicate and emits cmp insn before branch.
18065 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18066 to microblaze_expand_conditional_branch and consolidate logic.
18067 (microblaze_expand_conditional_branch): emit branch_compare
18068 insn instead of handling cmp op separate from branch insn.
18069
18070 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18071
18072 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18073 to permit subregs.
18074
18075 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18076
18077 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18078 define_insn with define_expand and new define_insn
18079 *altivec_lve<VI_char>x_internal.
18080 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18081 and new define_insn *altivec_stve<VI_char>x_internal.
18082 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18083 prototype.
18084 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18085 lve*x built-ins.
18086 (altivec_expand_stvex_be): New function.
18087
18088 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18089
18090 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18091 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18092 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18093 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18094
18095 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18096
18097 PR target/60298
18098 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18099 instead of emit_move_insn.
18100
18101 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18102
18103 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18104 vspltw with vsldoi.
18105 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18106 gen_altivec_vsumsws.
18107
18108 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18109
18110 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18111 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18112 (altivec_lvxl_<mode>): New define_expand incorporating
18113 -maltivec=be semantics where needed.
18114 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18115 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18116 semantics where needed.
18117 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18118 (altivec_stvx_<mode>): New define_expand incorporating
18119 -maltivec=be semantics where needed.
18120 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18121 VM2 iterator instead of V4SI.
18122 (altivec_stvxl_<mode>): New define_expand incorporating
18123 -maltivec=be semantics where needed.
18124 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18125 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18126 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18127 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18128 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18129 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18130 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18131 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18132 ALTIVEC_BUILTIN_STVXL.
18133 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18134 (altivec_expand_stvx_be): Likewise.
18135 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18136 (altivec_expand_lvx_be): Likewise.
18137 (altivec_expand_stvx_be): Likewise.
18138 (altivec_expand_builtin): Add cases for
18139 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18140 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18141 (altivec_init_builtins): Add definitions for
18142 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18143 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18144
18145 2014-02-21 Catherine Moore <clm@codesourcery.com>
18146
18147 * doc/invoke.texi (mvirt, mno-virt): Document.
18148 * config/mips/mips.opt (mvirt): New option.
18149 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18150
18151 2014-02-21 Richard Biener <rguenther@suse.de>
18152
18153 PR tree-optimization/60276
18154 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18155 (STMT_VINFO_MIN_NEG_DIST): New macro.
18156 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18157 STMT_VINFO_MIN_NEG_DIST.
18158 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18159 made for negative dependence distances still hold.
18160
18161 2014-02-21 Richard Biener <rguenther@suse.de>
18162
18163 PR middle-end/60291
18164 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18165 DECL_INITIAL for globals not in the current function context.
18166
18167 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18168
18169 PR tree-optimization/56490
18170 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18171 * tree-ssa-uninit.c: Include params.h.
18172 (compute_control_dep_chain): Add num_calls argument, return false
18173 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18174 num_calls to recursive call.
18175 (find_predicates): Change dep_chain into normal array,
18176 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18177 variable and adjust compute_control_dep_chain caller.
18178 (find_def_preds): Likewise.
18179
18180 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18181
18182 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18183 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18184
18185 2014-02-21 Nick Clifton <nickc@redhat.com>
18186
18187 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18188 (pushhi1): Likewise.
18189 (popqi1): Add mode to pre_dec.
18190 (pophi1): Likewise.
18191
18192 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18193
18194 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18195 mode for mask of V8SFmode permutation.
18196
18197 2014-02-20 Richard Henderson <rth@redhat.com>
18198
18199 PR c++/60272
18200 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18201 a new pseudo for OLDVAL.
18202
18203 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18204
18205 PR target/57896
18206 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18207 gen_reg_rtx if d->testing_p.
18208 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18209 if d->testing_p and we will certainly return true.
18210 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18211 if d->testing_p.
18212
18213 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18214
18215 * emit-rtl.c (gen_reg_rtx): Assert that
18216 crtl->emit.regno_pointer_align_length is non-zero.
18217
18218 2014-02-20 Richard Henderson <rth@redhat.com>
18219
18220 PR c++/60272
18221 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18222 on failure the store back into EXPECT.
18223
18224 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18225 Sandra Loosemore <sandra@codesourcery.com>
18226
18227 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18228 * config/nios2/nios2.c (nios2_function_profiler): Add
18229 -fPIC (flag_pic == 2) support.
18230 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18231 (nios2_large_offset_p): New function.
18232 (nios2_unspec_reloc_p): Move up position, update to use
18233 nios2_large_offset_p.
18234 (nios2_unspec_address): Remove function.
18235 (nios2_unspec_offset): New function.
18236 (nios2_large_got_address): New function.
18237 (nios2_got_address): Add large offset support.
18238 (nios2_legitimize_tls_address): Update usage of removed and new
18239 functions.
18240 (nios2_symbol_binds_local_p): New function.
18241 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18242 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18243 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18244 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18245 processing for (const (unspec ...)).
18246 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18247
18248 2014-02-20 Richard Biener <rguenther@suse.de>
18249
18250 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18251 doing the substitution.
18252 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18253
18254 2014-02-20 Martin Jambor <mjambor@suse.cz>
18255
18256 PR ipa/55260
18257 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18258 info when checking whether lattices are bottom.
18259
18260 2014-02-20 Richard Biener <rguenther@suse.de>
18261
18262 PR middle-end/60221
18263 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18264 regions at -O0.
18265
18266 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18267
18268 PR ipa/58555
18269 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18270 parameter specifying the scaling.
18271 (inline_call): Update.
18272 (want_inline_recursively): Guard division by zero.
18273 (recursive_inlining): Update.
18274 * ipa-inline.h (clone_inlined_nodes): Update.
18275
18276 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18277
18278 PR target/60204
18279 * config/i386/i386.c (classify_argument): Pass structures of size
18280 64 bytes or less in register.
18281
18282 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18283 Kirill Yukhin <kirill.yukhin@intel.com>
18284
18285 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18286 (_mm_rcp28_round_ss): Ditto.
18287 (_mm_rsqrt28_round_sd): Ditto.
18288 (_mm_rsqrt28_round_ss): Ditto.
18289 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18290 (_mm_rcp14_round_ss): Ditto.
18291 (_mm_rsqrt14_round_sd): Ditto.
18292 (_mm_rsqrt14_round_ss): Ditto.
18293 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18294 the first input operand, get rid of match_dup.
18295 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18296 attribute to sse.
18297 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18298 Ditto.
18299 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18300 operand as the first input operand, set type attribute.
18301 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18302 Set type attribute.
18303 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18304 operand as the first input operand, set type attribute.
18305
18306 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18307
18308 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18309 bit of zero.
18310
18311 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18312
18313 PR target/60207
18314 * config/i386/i386.c (construct_container): Remove TFmode check
18315 for X86_64_INTEGER_CLASS.
18316
18317 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18318
18319 PR target/59794
18320 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18321 only when -Wpsabi is enabled.
18322
18323 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18324
18325 PR target/59799
18326 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18327 passing arrays in registers are the same as for structs, so remove the
18328 special case for them.
18329
18330 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18331
18332 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18333 destination type, extract only the valid bits if the source type is not
18334 integral and has a different mode.
18335
18336 2014-02-19 Richard Biener <rguenther@suse.de>
18337
18338 PR ipa/60243
18339 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18340 for all calls.
18341
18342 2014-02-19 Richard Biener <rguenther@suse.de>
18343
18344 PR ipa/60243
18345 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18346 (ipa_modify_call_arguments): Emit an argument load explicitely and
18347 preserve virtual SSA form there and for the replacement call.
18348 Do not update SSA form nor free dominance info.
18349
18350 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18351
18352 * ipa.c (function_and_variable_visibility): Also clear WEAK
18353 flag when disolving COMDAT_GROUP.
18354
18355 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18356
18357 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18358 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18359 not devirtualizing.
18360 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18361 do more sanity checks.
18362 (detect_type_change): Return true when giving up early.
18363 (compute_complex_assign_jump_func): Fix type parameter of
18364 ipa_set_ancestor_jf.
18365 (compute_complex_ancestor_jump_func): Likewise.
18366 (update_jump_functions_after_inlining): Fix updating of
18367 ancestor function.
18368 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18369
18370 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18371
18372 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18373 inline clones when edge disappears.
18374
18375 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18376
18377 PR target/60203
18378 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18379 Split 64-bit moves into 2 patterns. Do not allow the use of
18380 direct move for TDmode in little endian, since the decimal value
18381 has little endian bytes within a word, but the 64-bit pieces are
18382 ordered in a big endian fashion, and normal subreg's of TDmode are
18383 not allowed.
18384 (mov<mode>_64bit_dm): Likewise.
18385 (movtd_64bit_nodm): Likewise.
18386
18387 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18388
18389 PR tree-optimization/60174
18390 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18391 statement of an SSA_NAME that occurs in an abnormal PHI node.
18392
18393 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18394
18395 PR sanitizer/60142
18396 * final.c (SEEN_BB): Remove.
18397 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18398 (final_scan_insn): Don't force_source_line on second
18399 NOTE_INSN_BASIC_BLOCK.
18400
18401 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18402
18403 PR target/60205
18404 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18405 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18406 (type_natural_mode): Warn ABI change when %zmm register is not
18407 available for AVX512F vector value passing.
18408
18409 2014-02-18 Kai Tietz <ktietz@redhat.com>
18410
18411 PR target/60193
18412 * config/i386/i386.c (ix86_expand_prologue): Use value in
18413 rax register as displacement when restoring %r10 or %rax.
18414 Fix wrong offset when restoring both registers.
18415
18416 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18417
18418 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18419 assertion with conditional return.
18420
18421 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18422 Uros Bizjak <ubizjak@gmail.com>
18423
18424 PR driver/60233
18425 * config/i386/driver-i386.c (host_detect_local_cpu): If
18426 YMM state is not saved by the OS, also clear has_f16c. Move
18427 CPUID 0x80000001 handling before YMM state saving checking.
18428
18429 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18430
18431 PR rtl-optimization/58960
18432 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18433 factored out from ...
18434 (sched_init): ... here.
18435 (free_global_sched_pressure_data): New, factored out from ...
18436 (sched_finish): ... here.
18437 * sched-int.h (free_global_sched_pressure_data): Declare.
18438 * sched-rgn.c (nr_regions_initial): New static global.
18439 (haifa_find_rgns): Initialize it.
18440 (schedule_region): Disable sched-pressure for the newly
18441 generated regions.
18442
18443 2014-02-17 Richard Biener <rguenther@suse.de>
18444
18445 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18446 release SSA defs of pattern stmts.
18447
18448 2014-02-17 Richard Biener <rguenther@suse.de>
18449
18450 * tree-inline.c (expand_call_inline): Release the virtual
18451 operand defined by the call we are about to inline.
18452
18453 2014-02-17 Richard Biener <rguenther@suse.de>
18454
18455 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18456
18457 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18458 Ilya Tocar <ilya.tocar@intel.com>
18459
18460 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18461 arguments order in builtin.
18462 (_mm512_permutexvar_epi64): Ditto.
18463 (_mm512_mask_permutexvar_epi64): Ditto
18464 (_mm512_maskz_permutexvar_epi32): Ditto
18465 (_mm512_permutexvar_epi32): Ditto
18466 (_mm512_mask_permutexvar_epi32): Ditto
18467
18468 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18469
18470 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18471 (p8_vmrgow): Likewise.
18472
18473 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18474
18475 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18476 endian targets.
18477
18478 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18479
18480 PR target/60203
18481 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18482 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18483 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18484 using direct move instructions on ISA 2.07. Also adjust
18485 instruction length for 64-bit.
18486 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18487 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18488
18489 2014-02-15 Alan Modra <amodra@gmail.com>
18490
18491 PR target/58675
18492 PR target/57935
18493 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18494 find_replacement on parts of insn rtl that might be reloaded.
18495
18496 2014-02-15 Richard Biener <rguenther@suse.de>
18497
18498 PR tree-optimization/60183
18499 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18500 (tree_ssa_phiprop): Calculate and free post-dominators.
18501
18502 2014-02-14 Jeff Law <law@redhat.com>
18503
18504 PR rtl-optimization/60131
18505 * ree.c (get_extended_src_reg): New function.
18506 (combine_reaching_defs): Use it rather than assuming location of REG.
18507 (find_and_remove_re): Verify first operand of extension is
18508 a REG before adding the insns to the copy list.
18509
18510 2014-02-14 Roland McGrath <mcgrathr@google.com>
18511
18512 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18513 * configure: Regenerated.
18514 * config.in: Regenerated.
18515 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18516 instead of ASM_SHORT.
18517
18518 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18519 Richard Earnshaw <rearnsha@arm.com>
18520
18521 PR rtl-optimization/59535
18522 * lra-constraints.c (process_alt_operands): Encourage alternative
18523 when unassigned pseudo class is superset of the alternative class.
18524 (inherit_reload_reg): Don't inherit when optimizing for code size.
18525 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18526 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18527 modes not less than 4 for Thumb1.
18528
18529 2014-02-14 Kyle McMartin <kyle@redhat.com>
18530
18531 PR pch/60010
18532 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18533
18534 2014-02-14 Richard Biener <rguenther@suse.de>
18535
18536 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18537 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18538 Do not strip INDIRECT_REFs.
18539
18540 2014-02-14 Richard Biener <rguenther@suse.de>
18541
18542 PR lto/60179
18543 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18544 DECL_FUNCTION_SPECIFIC_TARGET.
18545 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18546 * tree-streamer-out.c (pack_ts_target_option): Remove.
18547 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18548 (write_ts_function_decl_tree_pointers): Do not stream
18549 DECL_FUNCTION_SPECIFIC_TARGET.
18550 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18551 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18552 (lto_input_ts_function_decl_tree_pointers): Do not stream
18553 DECL_FUNCTION_SPECIFIC_TARGET.
18554
18555 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18556
18557 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18558 (get_initial_def_for_induction, vectorizable_induction): Ignore
18559 debug stmts when looking for exit_phi.
18560 (vectorizable_live_operation): Fix up condition.
18561
18562 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18563
18564 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18565 nreverse() because it changes the content of original tree list.
18566
18567 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18568
18569 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18570 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18571
18572 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18573
18574 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18575 GNU coding standards.
18576
18577 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18578
18579 PR debug/60152
18580 * dwarf2out.c (gen_subprogram_die): Don't call
18581 add_calling_convention_attribute if subr_die is old_die.
18582
18583 2014-02-13 Sharad Singhai <singhai@google.com>
18584
18585 * doc/optinfo.texi: Fix order of nodes.
18586
18587 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
18588
18589 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
18590 operands[2], not operands[3].
18591
18592 2014-02-13 Richard Biener <rguenther@suse.de>
18593
18594 PR bootstrap/59878
18595 * doc/install.texi (ISL): Update recommended version to 0.12.2,
18596 mention the possibility of an in-tree build.
18597 (CLooG): Update recommended version to 0.18.1, mention the
18598 possibility of an in-tree build and clarify that the ISL
18599 bundled with CLooG does not work.
18600
18601 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18602
18603 PR target/43546
18604 * expr.c (compress_float_constant): If x is a hard register,
18605 extend into a pseudo and then move to x.
18606
18607 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
18608
18609 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
18610 caused by bad second argument to warning_at() with -mhotpatch and
18611 nested functions (e.g. with gfortran).
18612
18613 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
18614
18615 * opts.c (option_name): Remove "enabled by default" rider.
18616
18617 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
18618
18619 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
18620
18621 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
18622 Uros Bizjak <ubizjak@gmail.com>
18623
18624 PR target/60151
18625 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
18626 * configure: Regenerated.
18627
18628 2014-02-12 Richard Biener <rguenther@suse.de>
18629
18630 * vec.c (vec_prefix::calculate_allocation): Move as
18631 inline variant to vec.h.
18632 (vec_prefix::calculate_allocation_1): New out-of-line version.
18633 * vec.h (vec_prefix::calculate_allocation_1): Declare.
18634 (vec_prefix::m_has_auto_buf): Rename to ...
18635 (vec_prefix::m_using_auto_storage): ... this.
18636 (vec_prefix::calculate_allocation): Inline the easy cases
18637 and dispatch to calculate_allocation_1 which doesn't need the
18638 prefix address.
18639 (va_heap::reserve): Use gcc_checking_assert.
18640 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
18641 m_using_auto_storage.
18642 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
18643 member and adjust.
18644 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
18645 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
18646 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
18647
18648 2014-02-12 Richard Biener <rguenther@suse.de>
18649
18650 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
18651 when we found a dependence.
18652
18653 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
18654
18655 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
18656 common code...
18657 (maybe_fold_stmt): ... into this new function.
18658 * omp-low.c (lower_omp): Update comment.
18659
18660 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
18661 last use.
18662
18663 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
18664 dereference.
18665
18666 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
18667
18668 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
18669 identifiers in comments.
18670 (cortexa53_extra_costs): Likewise.
18671 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
18672 (cortexa7_extra_costs): Likewise.
18673 (cortexa12_extra_costs): Likewise.
18674 (cortexa15_extra_costs): Likewise.
18675 (v7m_extra_costs): Likewise.
18676
18677 2014-02-12 Richard Biener <rguenther@suse.de>
18678
18679 PR middle-end/60092
18680 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
18681 of posix_memalign being successful.
18682 (lower_stmt): Restrict lowering of posix_memalign to when
18683 -ftree-bit-ccp is enabled.
18684
18685 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18686
18687 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
18688 arg_loc.
18689 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
18690
18691 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
18692
18693 PR rtl-optimization/60116
18694 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
18695 other_insn once the combination has been validated.
18696
18697 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
18698
18699 PR lto/59468
18700 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
18701 and wrapper.
18702 * ipa-devirt.c: Include demangle.h
18703 (odr_violation_reported): New static variable.
18704 (add_type_duplicate): Update odr_violations.
18705 (maybe_record_node): Add completep parameter; update it.
18706 (record_target_from_binfo): Add COMPLETEP parameter;
18707 update it as needed.
18708 (possible_polymorphic_call_targets_1): Likewise.
18709 (struct polymorphic_call_target_d): Add nonconstruction_targets;
18710 rename FINAL to COMPLETE.
18711 (record_targets_from_bases): Sanity check we found the binfo;
18712 fix COMPLETEP updating.
18713 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
18714 parameter, fix computing of COMPLETEP.
18715 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
18716 at LTO time do demangling.
18717 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
18718 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
18719 parameter.
18720 (gimple_get_virt_method_for_binfo): Likewise.
18721 * gimple-fold.h (gimple_get_virt_method_for_binfo,
18722 gimple_get_virt_method_for_vtable): Update prototypes.
18723
18724 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
18725
18726 PR target/49008
18727 * genautomata.c (add_presence_absence): Fix typo with
18728 {final_}presence_list.
18729
18730 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18731
18732 PR target/60137
18733 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
18734 for VSX/Altivec vectors that land in GPR registers.
18735
18736 2014-02-11 Richard Henderson <rth@redhat.com>
18737 Jakub Jelinek <jakub@redhat.com>
18738
18739 PR debug/59776
18740 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
18741 around drhs if type conversion to lacc->type is not useless.
18742
18743 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18744
18745 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
18746 tuning struct.
18747 (cortex-a57.cortex-a53): Likewise.
18748 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
18749
18750 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18751
18752 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
18753 arm_restrict_it.
18754
18755 2014-02-11 Renlin Li <Renlin.Li@arm.com>
18756
18757 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
18758 add_options_for_arm_vfp3.
18759
18760 2014-02-11 Jeff Law <law@redhat.com>
18761
18762 PR middle-end/54041
18763 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
18764 object with an undesirable mode.
18765
18766 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18767
18768 PR libgomp/60107
18769 * config/i386/sol2-9.h: New file.
18770 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
18771 *-*-solaris2.9*): Use it.
18772
18773 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18774
18775 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
18776 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
18777
18778 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
18779
18780 * config/microblaze/microblaze.c: Extend mcpu version format
18781
18782 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
18783
18784 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
18785
18786 2014-02-10 Richard Henderson <rth@redhat.com>
18787
18788 PR target/59927
18789 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
18790 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
18791 ms-abi vs -mno-accumulate-outgoing-args.
18792 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
18793 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
18794 respect to ms-abi.
18795
18796 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
18797
18798 PR middle-end/60080
18799 * cfgexpand.c (expand_asm_operands): Attach source location to
18800 ASM_INPUT rtx objects.
18801 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
18802
18803 2014-02-10 Nick Clifton <nickc@redhat.com>
18804
18805 * config/mn10300/mn10300.c (popcount): New function.
18806 (mn10300_expand_prologue): Include saved registers in stack usage
18807 count.
18808
18809 2014-02-10 Jeff Law <law@redhat.com>
18810
18811 PR middle-end/52306
18812 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
18813 when changing the SET_DEST of a prior insn to avoid an input reload.
18814
18815 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18816
18817 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
18818 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
18819 -mcall-openbsd, or -mcall-linux.
18820 (CC1_ENDIAN_BIG_SPEC): Remove.
18821 (CC1_ENDIAN_LITTLE_SPEC): Remove.
18822 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18823 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
18824 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
18825 and %cc1_endian_default.
18826 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
18827
18828 2014-02-10 Richard Biener <rguenther@suse.de>
18829
18830 PR tree-optimization/60115
18831 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
18832 MEM_REF handling. Properly verify that the accesses are not
18833 out of the objects bound.
18834
18835 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18836
18837 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
18838 coretex to cortex.
18839
18840 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
18841
18842 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
18843 proper constants and fix formatting.
18844 (possible_polymorphic_call_targets): Fix formatting.
18845
18846 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
18847 Ilya Tocar <ilya.tocar@intel.com>
18848
18849 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
18850 (_mm512_loadu_epi32): Renamed into...
18851 (_mm512_loadu_si512): This.
18852 (_mm512_storeu_epi32): Renamed into...
18853 (_mm512_storeu_si512): This.
18854 (_mm512_maskz_ceil_ps): Removed.
18855 (_mm512_maskz_ceil_pd): Ditto.
18856 (_mm512_maskz_floor_ps): Ditto.
18857 (_mm512_maskz_floor_pd): Ditto.
18858 (_mm512_floor_round_ps): Ditto.
18859 (_mm512_floor_round_pd): Ditto.
18860 (_mm512_ceil_round_ps): Ditto.
18861 (_mm512_ceil_round_pd): Ditto.
18862 (_mm512_mask_floor_round_ps): Ditto.
18863 (_mm512_mask_floor_round_pd): Ditto.
18864 (_mm512_mask_ceil_round_ps): Ditto.
18865 (_mm512_mask_ceil_round_pd): Ditto.
18866 (_mm512_maskz_floor_round_ps): Ditto.
18867 (_mm512_maskz_floor_round_pd): Ditto.
18868 (_mm512_maskz_ceil_round_ps): Ditto.
18869 (_mm512_maskz_ceil_round_pd): Ditto.
18870 (_mm512_expand_pd): Ditto.
18871 (_mm512_expand_ps): Ditto.
18872 * config/i386/i386.c (ix86_builtins): Remove
18873 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
18874 (bdesc_args): Ditto.
18875 * config/i386/predicates.md (const1256_operand): New.
18876 (const_1_to_2_operand): Ditto.
18877 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18878 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18879 (*avx512pf_gatherpf<mode>sf): Ditto.
18880 (avx512pf_gatherpf<mode>df): Ditto.
18881 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18882 (*avx512pf_gatherpf<mode>df): Ditto.
18883 (avx512pf_scatterpf<mode>sf): Ditto.
18884 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18885 (*avx512pf_scatterpf<mode>sf): Ditto.
18886 (avx512pf_scatterpf<mode>df): Ditto.
18887 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18888 (*avx512pf_scatterpf<mode>df): Ditto.
18889 (avx512f_expand<mode>): Removed.
18890 (<shift_insn><mode>3<mask_name>): Change predicate type.
18891
18892 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18893
18894 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
18895 not at the end of datarefs vector use ordered_remove to avoid
18896 reordering datarefs vector.
18897
18898 PR c/59984
18899 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
18900 mark local addressable non-static vars as GOVD_PRIVATE
18901 instead of GOVD_LOCAL.
18902 * omp-low.c (lower_omp_for): Move gimple_bind_vars
18903 and BLOCK_VARS of gimple_bind_block to new_stmt rather
18904 than copying them.
18905
18906 PR middle-end/60092
18907 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
18908 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
18909 assume_aligned or alloc_align attributes.
18910 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
18911 arguments. Handle also assume_aligned and alloc_align attributes.
18912 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
18913 calls to functions with assume_aligned or alloc_align attributes.
18914 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
18915
18916 2014-02-08 Terry Guo <terry.guo@arm.com>
18917
18918 * doc/invoke.texi: Document ARM -march=armv7e-m.
18919
18920 2014-02-08 Jakub Jelinek <jakub@redhat.com>
18921
18922 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
18923 flag on __cilkrts_rethrow builtin.
18924
18925 PR ipa/60026
18926 * ipa-cp.c (determine_versionability): Fail at -O0
18927 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
18928 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
18929
18930 Revert:
18931 2014-02-04 Jakub Jelinek <jakub@redhat.com>
18932
18933 PR ipa/60026
18934 * tree-inline.c (copy_forbidden): Fail for
18935 __attribute__((optimize (0))) functions.
18936
18937 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18938
18939 * varpool.c: Include pointer-set.h.
18940 (varpool_remove_unreferenced_decls): Variables in other partitions
18941 will not be output; be however careful to not lose information
18942 about partitioning.
18943
18944 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
18945
18946 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
18947 lookup in the vtable constructor.
18948
18949 2014-02-07 Jeff Law <law@redhat.com>
18950
18951 PR target/40977
18952 * config/m68k/m68k.md (ashldi_extsi): Turn into a
18953 define_insn_and_split.
18954
18955 * ipa-inline.c (inline_small_functions): Fix typos.
18956
18957 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18958
18959 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
18960 (s390_can_use_return_insn): Declare.
18961 * config/s390/s390.h (EPILOGUE_USES): Define.
18962 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
18963 instructions.
18964 (s390_chunkify_start): Handle return JUMP_LABELs.
18965 (s390_early_mach): Emit a main_pool instruction on the entry edge.
18966 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
18967 (s390_can_use_return_insn): New functions.
18968 (s390_fix_long_loop_prediction): Handle conditional returns.
18969 (TARGET_SET_UP_BY_PROLOGUE): Define.
18970 * config/s390/s390.md (ANY_RETURN): New code iterator.
18971 (*creturn, *csimple_return, return, simple_return): New patterns.
18972
18973 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18974
18975 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
18976 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
18977 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
18978 REG_CFA_RESTORE list when deciding not to restore a register.
18979
18980 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18981
18982 * config/s390/s390.c: Include tree-pass.h and context.h.
18983 (s390_early_mach): New function, split out from...
18984 (s390_emit_prologue): ...here.
18985 (pass_data_s390_early_mach): New pass structure.
18986 (pass_s390_early_mach): New class.
18987 (s390_option_override): Create and register early_mach pass.
18988 Move to end of file.
18989
18990 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18991
18992 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
18993 to match for the exit block.
18994
18995 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18996
18997 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
18998 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
18999 Reject misaligned operands.
19000
19001 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19002
19003 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19004
19005 2014-02-07 Richard Biener <rguenther@suse.de>
19006
19007 PR middle-end/60092
19008 * gimple-low.c (lower_builtin_posix_memalign): New function.
19009 (lower_stmt): Call it to lower posix_memalign in a way
19010 to make alignment info accessible.
19011
19012 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19013
19014 PR c++/60082
19015 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19016 __builtin_setjmp_receiver.
19017
19018 2014-02-07 Richard Biener <rguenther@suse.de>
19019
19020 PR middle-end/60092
19021 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19022 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19023 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19024 Handle BUILT_IN_POSIX_MEMALIGN.
19025 (find_func_clobbers): Likewise.
19026 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19027 (call_may_clobber_ref_p_1): Likewise.
19028
19029 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19030
19031 PR ipa/59918
19032 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19033 sanity check.
19034
19035 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19036
19037 PR ipa/59469
19038 * lto-cgraph.c (lto_output_node): Use
19039 symtab_get_symbol_partitioning_class.
19040 (lto_output_varpool_node): likewise.
19041 (symtab_get_symbol_partitioning_class): Move here from
19042 lto/lto-partition.c
19043 * cgraph.h (symbol_partitioning_class): Likewise.
19044 (symtab_get_symbol_partitioning_class): Declare.
19045
19046 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19047
19048 * ggc.h (ggc_internal_cleared_alloc): New macro.
19049 * vec.h (vec_safe_copy): Handle memory stats.
19050 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19051 * target-globals.c (save_target_globals): Likewise.
19052
19053 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19054
19055 PR target/60077
19056 * expr.c (emit_move_resolve_push): Export; be bit more selective
19057 on when to clear alias set.
19058 * expr.h (emit_move_resolve_push): Declare.
19059 * function.h (struct function): Add tail_call_marked.
19060 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19061 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19062 * config/i386/i386.md (TImode move expander): De not call
19063 ix86_expand_push.
19064 (FP push expanders): Preserve memory attributes.
19065 * config/i386/sse.md (push<mode>1): Remove.
19066 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19067 (ix86_expand_push): Remove.
19068 * config/i386/mmx.md (push<mode>1): Remove.
19069
19070 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19071
19072 PR rtl-optimization/60030
19073 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19074 lopart with paradoxical subreg before shifting it up by hprec.
19075
19076 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19077
19078 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19079 Remove extra newline at end of file.
19080 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19081 (arm_issue_rate): Handle cortexa57.
19082 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19083 (cortex-a57.cortex-a53): Likewise.
19084
19085 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19086
19087 PR target/59575
19088 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19089 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19090 bitmask.
19091 (arm_expand_prologue): Adjust all callers.
19092 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19093 info, registers also at the lowest numbered registers side. Use
19094 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19095 XEXP.
19096
19097 PR debug/59992
19098 * var-tracking.c (adjust_mems): Before adding a SET to
19099 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19100
19101 2014-02-06 Alan Modra <amodra@gmail.com>
19102
19103 PR target/60032
19104 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19105 change SDmode to DDmode when lra_in_progress.
19106
19107 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19108
19109 PR middle-end/59150
19110 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19111 free_data_ref on the dr first, and before goto again also set dr
19112 to the next dr. For simd_lane_access, free old datarefs[i] before
19113 overwriting it. For get_vectype_for_scalar_type failure, don't
19114 free_data_ref if simd_lane_access.
19115
19116 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19117
19118 PR target/60062
19119 * tree.h (opts_for_fn): New inline function.
19120 (opt_for_fn): Define.
19121 * config/i386/i386.c (ix86_function_regparm): Use
19122 opt_for_fn (decl, optimize) instead of optimize.
19123
19124 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19125
19126 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19127 for SYMBOL_REF in large memory model.
19128
19129 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19130
19131 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19132 and crypto support.
19133 (cortex-a57): Likewise.
19134 (cortex-a57.cortex-a53): Likewise.
19135
19136 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19137 Kugan Vivekanandarajah <kuganv@linaro.org>
19138
19139 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19140 unaligned_access.
19141 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19142
19143 2014-02-06 Richard Biener <rguenther@suse.de>
19144
19145 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19146 set_loop_copy and initialize_original_copy_tables.
19147
19148 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19149
19150 * config/aarch64/aarch64-simd.md
19151 (aarch64_ashr_simddi): Change QI to SI.
19152
19153 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19154 Jakub Jelinek <jakub@redhat.com>
19155
19156 PR middle-end/60013
19157 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19158 of the dataflow.
19159
19160 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19161
19162 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19163 CODE_FOR_altivec_vpku[hw]um to
19164 CODE_FOR_altivec_vpku[hw]um_direct.
19165 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19166 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19167 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19168 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19169
19170 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19171
19172 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19173 generation for -maltivec=be.
19174 (altivec_vsumsws): Simplify redundant test.
19175
19176 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19177
19178 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19179 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19180 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19181 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19182 gen_altivec_vpkuwum.
19183 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19184 BYTES_BIG_ENDIAN.
19185 (altivec_vpks<VI_char>ss): Likewise.
19186 (altivec_vpks<VI_char>us): Likewise.
19187 (altivec_vpku<VI_char>us): Likewise.
19188 (altivec_vpku<VI_char>um): Likewise.
19189 (altivec_vpku<VI_char>um_direct): New (copy of
19190 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19191 internal use).
19192 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19193 target is little endian and -maltivec=be is not specified.
19194 (*altivec_vupkhs<VU_char>_direct): New (copy of
19195 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19196 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19197 target is little endian and -maltivec=be is not specified.
19198 (*altivec_vupkls<VU_char>_direct): New (copy of
19199 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19200 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19201 little endian and -maltivec=be is not specified.
19202 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19203 little endian and -maltivec=be is not specified.
19204
19205 2014-02-05 Richard Henderson <rth@redhat.com>
19206
19207 PR debug/52727
19208 * combine-stack-adj.c: Revert r206943.
19209 * sched-int.h (struct deps_desc): Add last_args_size.
19210 * sched-deps.c (init_deps): Initialize it.
19211 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19212 contain REG_ARGS_SIZE notes.
19213
19214 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19215
19216 * lto-cgraph.c (asm_nodes_output): Make global.
19217 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19218 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19219 (driver_handle_option): Handle OPT_fwpa.
19220
19221 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19222
19223 PR ipa/59947
19224 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19225 a comment typo and formatting issue. If odr_hash hasn't been
19226 created, return vNULL and set *completep to false.
19227
19228 PR middle-end/57499
19229 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19230 bb with no successors.
19231
19232 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19233
19234 PR target/59718
19235 * doc/invoke.texi (-march): Clarify documentation for ARM.
19236 (-mtune): Likewise.
19237 (-mcpu): Likewise.
19238
19239 2014-02-05 Richard Biener <rguenther@suse.de>
19240
19241 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19242 when not vectorizing because of too many alias checks.
19243 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19244 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19245
19246 2014-02-05 Nick Clifton <nickc@redhat.com>
19247
19248 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19249 accept extended registers in any mode when compiling for the MN10300.
19250
19251 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19252
19253 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19254 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19255 sanitization attributes.
19256 (can_inline_edge_p): Likewise.
19257 (sanitize_attrs_match_for_inline_p): New function.
19258
19259 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19260
19261 * ipa-prop.c (detect_type_change): Shor circuit testing of
19262 type changes on THIS pointer.
19263
19264 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19265
19266 PR target/59777
19267 * config/pa/pa.c (legitimize_tls_address): Return original address
19268 if not passed a SYMBOL_REF rtx.
19269 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19270 addresses.
19271 (pa_emit_move_sequence): Simplify TLS source operands.
19272 (pa_legitimate_constant_p): Reject all TLS constants.
19273 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19274 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19275
19276 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19277
19278 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19279 groups when we know they are controlled by LTO.
19280 * varasm.c (default_binds_local_p_1): If object is in other partition,
19281 it will be resolved locally.
19282
19283 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19284
19285 * config/host-linux.c (linux_gt_pch_use_address): Don't
19286 use SSIZE_MAX because it is not always defined.
19287
19288 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19289
19290 PR bootstrap/59913
19291 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19292 threshold for pseudo splitting.
19293 (update_ebb_live_info): Process call argument hard registers and
19294 hard registers from insn definition too.
19295 (max_small_class_regs_num): New constant.
19296 (inherit_in_ebb): Update live hard regs through EBBs. Update
19297 reloads_num only for small register classes. Don't split for
19298 outputs of jumps.
19299
19300 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19301
19302 PR ipa/60058
19303 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19304 is non-null.
19305
19306 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19307
19308 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19309 visibility is safe.
19310
19311 2014-02-04 Marek Polacek <polacek@redhat.com>
19312
19313 * gdbinit.in (pel): Define.
19314
19315 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19316
19317 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19318 behavior.
19319
19320 2014-02-04 Richard Biener <rguenther@suse.de>
19321
19322 PR lto/59723
19323 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19324 in function context local.
19325 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19326 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19327 similar to LTO_imported_decl_ref.
19328
19329 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19330
19331 PR tree-optimization/60002
19332 * cgraphclones.c (build_function_decl_skip_args): Clear
19333 DECL_LANG_SPECIFIC.
19334
19335 PR tree-optimization/60023
19336 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19337 false to gsi_replace.
19338 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19339 has been in some EH region and vec_stmt could throw, add
19340 vec_stmt into the same EH region.
19341 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19342 has no lhs, ignore it.
19343 * internal-fn.c (expand_MASK_LOAD): Likewise.
19344
19345 PR ipa/60026
19346 * tree-inline.c (copy_forbidden): Fail for
19347 __attribute__((optimize (0))) functions.
19348
19349 PR other/58712
19350 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19351 is set, copy one less argument.
19352 (expand_simd_clones): Don't subtract clone_info->inbranch
19353 from simd_clone_struct_alloc argument.
19354
19355 PR rtl-optimization/57915
19356 * recog.c (simplify_while_replacing): If all unary/binary/relational
19357 operation arguments are constant, attempt to simplify those.
19358
19359 PR middle-end/59261
19360 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19361 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19362
19363 2014-02-04 Richard Biener <rguenther@suse.de>
19364
19365 PR tree-optimization/60012
19366 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19367 TBAA disambiguation to all DDRs.
19368
19369 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19370
19371 PR target/59788
19372 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19373 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19374
19375 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19376
19377 PR ipa/59882
19378 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19379
19380 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19381
19382 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19383 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19384
19385 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19386
19387 PR ipa/59831
19388 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19389 to figure out targets of polymorphic calls with known decl.
19390 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19391 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19392 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19393 (get_polymorphic_call_info): ... here.
19394 (get_polymorphic_call_info_from_invariant): New function.
19395
19396 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19397
19398 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19399 lookup via vtable pointer; check for type consistency
19400 and turn inconsitent facts into UNREACHABLE.
19401 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19402 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19403 type inconsistent querries; return UNREACHABLE instead.
19404
19405 2014-02-03 Richard Henderson <rth@twiddle.net>
19406
19407 PR tree-opt/59924
19408 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19409 already processed this node.
19410 (normalize_one_pred_1): Pass along mark_set.
19411 (normalize_one_pred): Create and destroy a pointer_set_t.
19412 (normalize_one_pred_chain): Likewise.
19413
19414 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19415
19416 PR gcov-profile/58602
19417 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19418
19419 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19420
19421 PR ipa/59831
19422 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19423 -fno-devirtualize; try to devirtualize by the knowledge of
19424 virtual table pointer given by aggregate propagation.
19425 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19426 (ipa_print_node_jump_functions): Dump also offset that
19427 is relevant for polymorphic calls.
19428 (determine_known_aggregate_parts): Add arg_type parameter; use it
19429 instead of determining the type from pointer type.
19430 (ipa_compute_jump_functions_for_edge): Update call of
19431 determine_known_aggregate_parts.
19432 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19433 (gimple_get_virt_method_for_binfo): ... here; simplify using
19434 vtable_pointer_value_to_vtable.
19435 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19436 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19437 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19438 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19439 POINTER_PLUS_EXPR.
19440 (vtable_pointer_value_to_binfo): ... here.
19441 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19442
19443 2014-02-03 Teresa Johnson <tejohnson@google.com>
19444
19445 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19446 redef of outer loop index variable.
19447
19448 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19449
19450 PR c++/53017
19451 PR c++/59211
19452 * doc/extend.texi (Function Attributes): Typo.
19453
19454 2014-02-03 Cong Hou <congh@google.com>
19455
19456 PR tree-optimization/60000
19457 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19458 if the vectorized statement is a store. A store statement can only
19459 appear at the end of pattern statements.
19460
19461 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19462
19463 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19464 (ix86_option_override_internal): Default long double to 64-bit for
19465 32-bit Bionic and to 128-bit for 64-bit Bionic.
19466
19467 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19468 TARGET_LONG_DOUBLE_128 is true.
19469 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19470
19471 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19472 (mlong-double-64): Negate -mlong-double-128.
19473 (mlong-double-128): New option.
19474
19475 * config/i386/i386-c.c (ix86_target_macros): Define
19476 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19477
19478 * doc/invoke.texi: Document -mlong-double-128.
19479
19480 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19481
19482 PR rtl-optimization/60024
19483 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19484
19485 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19486
19487 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19488
19489 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19490
19491 PR rtl-optimization/57662
19492 * sel-sched.c (code_motion_path_driver): Do not mark already not
19493 existing blocks in the visiting bitmap.
19494
19495 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19496
19497 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19498 on the insn being emitted.
19499
19500 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19501 Will Deacon <will.deacon@arm.com>
19502
19503 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19504
19505 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19506
19507 * config/arm/arm-tables.opt: Regenerate.
19508
19509 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19510
19511 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19512 for vector types other than V16QImode.
19513 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19514 define_expand, and call altivec_expand_vec_perm_le when producing
19515 code with little endian element order.
19516 (*altivec_vperm_<mode>_internal): New insn having previous
19517 behavior of altivec_vperm_<mode>.
19518 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19519 altivec_expand_vec_perm_le when producing code with little endian
19520 element order.
19521 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19522 behavior of altivec_vperm_<mode>_uns.
19523
19524 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19525
19526 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19527 (altivec_vsumsws): Add handling for -maltivec=be with a little
19528 endian target.
19529 (altivec_vsumsws_direct): New.
19530 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19531 gen_altivec_vsumsws.
19532
19533 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19534
19535 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19536 vtable_pointer_value_to_binfo): New functions.
19537 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19538 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19539
19540 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19541
19542 * config/nios2/nios2.md (load_got_register): Initialize GOT
19543 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19544 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19545
19546 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19547
19548 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19549 preserverd by passthrough, do not propagate the type.
19550
19551 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19552
19553 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19554 (mips_atomic_assign_expand_fenv): New function.
19555 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19556
19557 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19558
19559 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19560 (__builtin_mips_set_fcsr): Likewise.
19561 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19562 MIPS_USI_FTYPE_VOID.
19563 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19564 (mips16_expand_set_fcsr): Likewise.
19565 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19566 (mips16_set_fcsr_stub): Likewise.
19567 (mips16_get_fcsr_one_only_stub): New class.
19568 (mips16_set_fcsr_one_only_stub): Likewise.
19569 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19570 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19571 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19572 (hard_float): New availability predicate.
19573 (mips_builtins): Add get_fcsr and set_fcsr.
19574 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19575 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19576 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19577 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19578 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19579 patterns.
19580
19581 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19582
19583 * config/mips/mips.c (mips_one_only_stub): New class.
19584 (mips_need_mips16_rdhwr_p): Replace with...
19585 (mips16_rdhwr_stub): ...this new variable.
19586 (mips16_stub_call_address): New function.
19587 (mips16_rdhwr_one_only_stub): New class.
19588 (mips_expand_thread_pointer): Use mips16_stub_call_address.
19589 (mips_output_mips16_rdhwr): Delete.
19590 (mips_finish_stub): New function.
19591 (mips_code_end): Use it to handle rdhwr stubs.
19592
19593 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
19594
19595 PR target/60017
19596 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
19597 when calculating size of integer atomic types.
19598
19599 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
19600
19601 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
19602
19603 2014-02-01 Jakub Jelinek <jakub@redhat.com>
19604
19605 PR tree-optimization/60003
19606 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
19607 * profile.c (branch_prob): Use gimple_call_builtin_p
19608 to check for BUILT_IN_SETJMP_RECEIVER.
19609 * tree-inline.c (copy_bb): Call notice_special_calls.
19610
19611 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
19612
19613 PR bootstrap/59985
19614 * lra-constraints.c (process_alt_operands): Update reload_sum only
19615 on the first pass.
19616
19617 2014-01-31 Richard Henderson <rth@redhat.com>
19618
19619 PR middle-end/60004
19620 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
19621 until after else_eh is processed.
19622
19623 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19624
19625 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
19626 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
19627 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
19628 in smmintrin.h, remove them.
19629 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
19630 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
19631 * config/i386/i386.md (ROUND_SAE): Fix value.
19632 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
19633 (const48_operand): New.
19634 * config/i386/subst.md (round), (round_expand): Use
19635 const_4_or_8_to_11_operand.
19636 (round_saeonly), (round_saeonly_expand): Use const48_operand.
19637
19638 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
19639
19640 * config/i386/constraints.md (Yk): Swap meaning with k.
19641 * config/i386/i386.md (movhi_internal): Change Yk to k.
19642 (movqi_internal): Ditto.
19643 (*k<logic><mode>): Ditto.
19644 (*andhi_1): Ditto.
19645 (*andqi_1): Ditto.
19646 (kandn<mode>): Ditto.
19647 (*<code>hi_1): Ditto.
19648 (*<code>qi_1): Ditto.
19649 (kxnor<mode>): Ditto.
19650 (kortestzhi): Ditto.
19651 (kortestchi): Ditto.
19652 (kunpckhi): Ditto.
19653 (*one_cmplhi2_1): Ditto.
19654 (*one_cmplqi2_1): Ditto.
19655 * config/i386/sse.md (): Change k to Yk.
19656 (avx512f_load<mode>_mask): Ditto.
19657 (avx512f_blendm<mode>): Ditto.
19658 (avx512f_store<mode>_mask): Ditto.
19659 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
19660 (avx512f_storedqu<mode>_mask): Ditto.
19661 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
19662 Ditto.
19663 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
19664 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
19665 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
19666 (avx512f_maskcmp<mode>3): Ditto.
19667 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
19668 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
19669 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
19670 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
19671 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
19672 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
19673 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
19674 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
19675 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
19676 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
19677 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
19678 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
19679 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
19680 (vec_extract_lo_<mode>_maskm): Ditto.
19681 (vec_extract_hi_<mode>_maskm): Ditto.
19682 (avx512f_vternlog<mode>_mask): Ditto.
19683 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
19684 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
19685 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
19686 (avx512f_<code>v8div16qi2_mask): Ditto.
19687 (avx512f_<code>v8div16qi2_mask_store): Ditto.
19688 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
19689 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
19690 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
19691 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
19692 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19693 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19694 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19695 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19696 (avx512cd_maskb_vec_dupv8di): Ditto.
19697 (avx512cd_maskw_vec_dupv16si): Ditto.
19698 (avx512f_vpermi2var<mode>3_maskz): Ditto.
19699 (avx512f_vpermi2var<mode>3_mask): Ditto.
19700 (avx512f_vpermi2var<mode>3_mask): Ditto.
19701 (avx512f_vpermt2var<mode>3_maskz): Ditto.
19702 (*avx512f_gathersi<mode>): Ditto.
19703 (*avx512f_gathersi<mode>_2): Ditto.
19704 (*avx512f_gatherdi<mode>): Ditto.
19705 (*avx512f_gatherdi<mode>_2): Ditto.
19706 (*avx512f_scattersi<mode>): Ditto.
19707 (*avx512f_scatterdi<mode>): Ditto.
19708 (avx512f_compress<mode>_mask): Ditto.
19709 (avx512f_compressstore<mode>_mask): Ditto.
19710 (avx512f_expand<mode>_mask): Ditto.
19711 * config/i386/subst.md (mask): Change k to Yk.
19712 (mask_scalar_merge): Ditto.
19713 (sd): Ditto.
19714
19715 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
19716
19717 * doc/extend.texi (Vector Extensions): Document ?: in C++.
19718
19719 2014-01-31 Richard Biener <rguenther@suse.de>
19720
19721 PR middle-end/59990
19722 * builtins.c (fold_builtin_memory_op): Make sure to not
19723 use a floating-point mode or a boolean or enumeral type for
19724 the copy operation.
19725
19726 2014-01-30 DJ Delorie <dj@redhat.com>
19727
19728 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
19729 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
19730 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
19731 whenever main() has an epilogue.
19732
19733 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19734
19735 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
19736 unused variable "field".
19737 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
19738 (vsx_mergeh_<mode>): Likewise.
19739 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
19740 (altivec_vmrghh): Likewise.
19741 (altivec_vmrghw): Likewise.
19742 (altivec_vmrglb): Likewise.
19743 (altivec_vmrglh): Likewise.
19744 (altivec_vmrglw): Likewise.
19745 (altivec_vspltb): Add missing uses.
19746 (altivec_vsplth): Likewise.
19747 (altivec_vspltw): Likewise.
19748 (altivec_vspltsf): Likewise.
19749
19750 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19751
19752 PR target/59923
19753 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
19754 frame related instructions.
19755
19756 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
19757
19758 PR rtl-optimization/59959
19759 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
19760 any reload of register whose subreg is invalid.
19761
19762 2014-01-30 Jakub Jelinek <jakub@redhat.com>
19763
19764 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
19765 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
19766 Add missing return type - void.
19767
19768 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19769
19770 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
19771 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
19772 remove element index adjustment for endian (now handled in vsx.md
19773 and altivec.md).
19774 (altivec_expand_vec_perm_const): Use
19775 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
19776 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
19777 (vsx_xxspltw_<mode>): Adjust element index for little endian.
19778 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
19779 define_expand and a new define_insn *altivec_vspltb_internal;
19780 adjust for -maltivec=be on a little endian target.
19781 (altivec_vspltb_direct): New.
19782 (altivec_vsplth): Divide into a define_expand and a new
19783 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
19784 little endian target.
19785 (altivec_vsplth_direct): New.
19786 (altivec_vspltw): Divide into a define_expand and a new
19787 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
19788 little endian target.
19789 (altivec_vspltw_direct): New.
19790 (altivec_vspltsf): Divide into a define_expand and a new
19791 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
19792 a little endian target.
19793
19794 2014-01-30 Richard Biener <rguenther@suse.de>
19795
19796 PR tree-optimization/59993
19797 * tree-ssa-forwprop.c (associate_pointerplus): Check we
19798 can propagate form the earlier stmt and avoid the transform
19799 when the intermediate result is needed.
19800
19801 2014-01-30 Alangi Derick <alangiderick@gmail.com>
19802
19803 * README.Portability: Fix typo.
19804
19805 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
19806
19807 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
19808 comparison_operator with ordered_comparison_operator.
19809
19810 2014-01-30 Nick Clifton <nickc@redhat.com>
19811
19812 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
19813 Rename to mn10300_store_multiple_regs.
19814 * config/mn10300/mn10300.c: Likewise.
19815 * config/mn10300/mn10300.md (store_movm): Fix typo: call
19816 store_multiple_regs.
19817 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
19818 Call mn10300_store_multiple_regs.
19819
19820 2014-01-30 Nick Clifton <nickc@redhat.com>
19821 DJ Delorie <dj@redhat.com>
19822
19823 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
19824 %fp 2 to keep registers after it properly word-aligned.
19825 (rl78_alloc_physical_registers_umul): Handle the case where both
19826 input operands are the same.
19827
19828 2014-01-30 Richard Biener <rguenther@suse.de>
19829
19830 PR tree-optimization/59903
19831 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
19832 check properly.
19833
19834 2014-01-30 Jason Merrill <jason@redhat.com>
19835
19836 PR c++/59633
19837 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
19838
19839 PR c++/59645
19840 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
19841
19842 2014-01-30 Richard Biener <rguenther@suse.de>
19843
19844 PR tree-optimization/59951
19845 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
19846
19847 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
19848
19849 PR target/59784
19850 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
19851 SFmode to DFmode case.
19852
19853 2014-01-29 DJ Delorie <dj@redhat.com>
19854
19855 * config/msp430/msp430.opt (-minrt): New.
19856 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
19857 if -minrt given.
19858 (ENDFILE_SPEC): Likewise.
19859
19860 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
19861
19862 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
19863 (estimate_function_body_sizes): Use it.
19864
19865 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
19866
19867 PR c++/58561
19868 * dwarf2out.c (is_cxx_auto): New.
19869 (is_base_type): Use it.
19870 (gen_type_die_with_usage): Likewise.
19871
19872 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19873
19874 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
19875 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
19876 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
19877 -maltivec=be with LE targets.
19878 (vsx_mergeh_<mode>): Likewise.
19879 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
19880 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
19881 (altivec_vmrghb): Replace with define_expand and new
19882 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
19883 (altivec_vmrghb_direct): New define_insn.
19884 (altivec_vmrghh): Replace with define_expand and new
19885 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
19886 (altivec_vmrghh_direct): New define_insn.
19887 (altivec_vmrghw): Replace with define_expand and new
19888 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
19889 (altivec_vmrghw_direct): New define_insn.
19890 (*altivec_vmrghsf): Adjust for endianness.
19891 (altivec_vmrglb): Replace with define_expand and new
19892 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
19893 (altivec_vmrglb_direct): New define_insn.
19894 (altivec_vmrglh): Replace with define_expand and new
19895 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
19896 (altivec_vmrglh_direct): New define_insn.
19897 (altivec_vmrglw): Replace with define_expand and new
19898 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
19899 (altivec_vmrglw_direct): New define_insn.
19900 (*altivec_vmrglsf): Adjust for endianness.
19901 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19902 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19903 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
19904 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
19905 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19906 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19907 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
19908 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
19909
19910 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
19911
19912 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
19913 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
19914 whitespace.
19915
19916 2014-01-29 Richard Biener <rguenther@suse.de>
19917
19918 PR tree-optimization/58742
19919 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
19920 associate_pointerplus_align.
19921 (associate_pointerplus_diff): New function.
19922 (associate_pointerplus): Likewise. Call associate_pointerplus_align
19923 and associate_pointerplus_diff.
19924
19925 2014-01-29 Richard Biener <rguenther@suse.de>
19926
19927 * lto-streamer.h (LTO_major_version): Bump to 3.
19928 (LTO_minor_version): Reset to 0.
19929
19930 2014-01-29 Renlin Li <Renlin.Li@arm.com>
19931
19932 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
19933 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
19934 (arm_file_start): Generate correct asm header for armv7ve.
19935 * config/arm/bpabi.h: Add multilib support for armv7ve.
19936 * config/arm/driver-arm.c: Change the architectures of cortex-a7
19937 and cortex-a15 to armv7ve.
19938 * config/arm/t-aprofile: Add multilib support for armv7ve.
19939 * doc/invoke.texi: Document -march=armv7ve.
19940
19941 2014-01-29 Richard Biener <rguenther@suse.de>
19942
19943 PR tree-optimization/58742
19944 * tree-ssa-forwprop.c (associate_plusminus): Return true
19945 if we changed sth, defer EH cleanup to ...
19946 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
19947 (simplify_mult): New function.
19948
19949 2014-01-29 Jakub Jelinek <jakub@redhat.com>
19950
19951 PR middle-end/59917
19952 PR tree-optimization/59920
19953 * tree.c (build_common_builtin_nodes): Remove
19954 __builtin_setjmp_dispatcher initialization.
19955 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
19956 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
19957 instead of gsi_after_labels + manually skipping debug stmts.
19958 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
19959 ignore bbs with IFN_ABNORMAL_DISPATCHER.
19960 * tree-inline.c (copy_edges_for_bb): Remove
19961 can_make_abnormal_goto argument, instead add abnormal_goto_dest
19962 argument. Ignore computed_goto_p stmts. Don't call
19963 make_abnormal_goto_edges. If a call might need abnormal edges
19964 for non-local gotos, see if it already has an edge to
19965 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
19966 with true argument, don't do anything then, otherwise add
19967 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
19968 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
19969 caller.
19970 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
19971 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
19972 (lower_stmt): Don't set data->calls_builtin_setjmp.
19973 (lower_builtin_setjmp): Adjust comment.
19974 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
19975 * tree-cfg.c (found_computed_goto): Remove.
19976 (factor_computed_gotos): Remove.
19977 (make_goto_expr_edges): Return bool, true for computed gotos.
19978 Don't call make_abnormal_goto_edges.
19979 (build_gimple_cfg): Don't set found_computed_goto, don't call
19980 factor_computed_gotos.
19981 (computed_goto_p): No longer static.
19982 (make_blocks): Don't set found_computed_goto.
19983 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
19984 (make_edges): If make_goto_expr_edges returns true, push bb
19985 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
19986 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
19987 vector. Record mapping between bbs and OpenMP regions if there
19988 are any, adjust make_gimple_omp_edges caller. Call
19989 handle_abnormal_edges.
19990 (make_abnormal_goto_edges): Remove.
19991 * tree-cfg.h (make_abnormal_goto_edges): Remove.
19992 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
19993 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
19994 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
19995 * internal-fn.def (ABNORMAL_DISPATCHER): New.
19996 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
19997 filling *region also set *region_idx to (*region)->entry->index.
19998
19999 PR other/58712
20000 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20001 For REGs set ORIGINAL_REGNO.
20002
20003 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20004
20005 * doc/md.texi: Mention that a target shouldn't implement
20006 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20007 than hi/lo pair.
20008
20009 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20010
20011 PR tree-optimization/59594
20012 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20013 a copy of the datarefs vector rather than the vector itself.
20014
20015 2014-01-28 Jason Merrill <jason@redhat.com>
20016
20017 PR c++/53756
20018 * dwarf2out.c (auto_die): New static.
20019 (gen_type_die_with_usage): Handle C++1y 'auto'.
20020 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20021 on definition.
20022
20023 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20024
20025 PR target/59672
20026 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20027 (SPEC_X32): Likewise.
20028 (SPEC_64): Likewise.
20029 * config/i386/i386.c (ix86_option_override_internal): Turn off
20030 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20031 for TARGET_16BIT.
20032 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20033 * config/i386/i386.h (TARGET_16BIT): New macro.
20034 (TARGET_16BIT_P): Likewise.
20035 * config/i386/i386.opt: Add m16.
20036 * doc/invoke.texi: Document -m16.
20037
20038 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20039
20040 PR preprocessor/59935
20041 * input.c (location_get_source_line): Bail out on when line number
20042 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20043
20044 2014-01-28 Richard Biener <rguenther@suse.de>
20045
20046 PR tree-optimization/58742
20047 * tree-ssa-forwprop.c (associate_plusminus): Handle
20048 pointer subtraction of the form (T)(P + A) - (T)P.
20049
20050 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20051
20052 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20053 at const_int_cost.
20054
20055 2014-01-28 Richard Biener <rguenther@suse.de>
20056
20057 Revert
20058 2014-01-28 Richard Biener <rguenther@suse.de>
20059
20060 PR rtl-optimization/45364
20061 PR rtl-optimization/59890
20062 * var-tracking.c (local_get_addr_clear_given_value): Handle
20063 already cleared slot.
20064 (val_reset): Handle not allocated local_get_addr_cache.
20065 (vt_find_locations): Use post-order on the inverted CFG.
20066
20067 2014-01-28 Richard Biener <rguenther@suse.de>
20068
20069 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20070
20071 2014-01-28 Richard Biener <rguenther@suse.de>
20072
20073 PR rtl-optimization/45364
20074 PR rtl-optimization/59890
20075 * var-tracking.c (local_get_addr_clear_given_value): Handle
20076 already cleared slot.
20077 (val_reset): Handle not allocated local_get_addr_cache.
20078 (vt_find_locations): Use post-order on the inverted CFG.
20079
20080 2014-01-28 Alan Modra <amodra@gmail.com>
20081
20082 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20083 * configure.ac <recursive call for build != host>: Define
20084 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20085 and LD_FOR_BUILD too.
20086 * configure: Regenerate.
20087
20088 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20089
20090 * config/i386/i386.c (get_builtin_code_for_version): Separate
20091 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20092 Broadwell from Haswell.
20093
20094 2014-01-27 Steve Ellcey <sellcey@mips.com>
20095
20096 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20097 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20098 * config/mips/mips.c (mips_option_override): Change setting
20099 of TARGET_DSP.
20100 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20101 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20102 Change from Mask to Var.
20103
20104 2014-01-27 Jeff Law <law@redhat.com>
20105
20106 * ipa-inline.c (inline_small_functions): Fix typo.
20107
20108 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20109
20110 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20111 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20112 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20113 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20114 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20115 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20116 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20117 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20118 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20119 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20120 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20121 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20122 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20123 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20124 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20125 (_mm512_storeu_epi64): Ditto.
20126 (_mm512_cmpge_epi32_mask): Ditto.
20127 (_mm512_cmpge_epu32_mask): Ditto.
20128 (_mm512_cmpge_epi64_mask): Ditto.
20129 (_mm512_cmpge_epu64_mask): Ditto.
20130 (_mm512_cmple_epi32_mask): Ditto.
20131 (_mm512_cmple_epu32_mask): Ditto.
20132 (_mm512_cmple_epi64_mask): Ditto.
20133 (_mm512_cmple_epu64_mask): Ditto.
20134 (_mm512_cmplt_epi32_mask): Ditto.
20135 (_mm512_cmplt_epu32_mask): Ditto.
20136 (_mm512_cmplt_epi64_mask): Ditto.
20137 (_mm512_cmplt_epu64_mask): Ditto.
20138 (_mm512_cmpneq_epi32_mask): Ditto.
20139 (_mm512_cmpneq_epu32_mask): Ditto.
20140 (_mm512_cmpneq_epi64_mask): Ditto.
20141 (_mm512_cmpneq_epu64_mask): Ditto.
20142 (_mm512_expand_pd): Ditto.
20143 (_mm512_expand_ps): Ditto.
20144 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20145 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20146 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20147 * config/i386/i386.c (ix86_builtins): Add
20148 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20149 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20150 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20151 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20152 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20153 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20154 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20155 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20156 IX86_BUILTIN_PMOVUSQW512_MEM.
20157 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20158 __builtin_ia32_pmovsqd512mem_mask,
20159 __builtin_ia32_pmovqd512mem_mask,
20160 __builtin_ia32_pmovusqw512mem_mask,
20161 __builtin_ia32_pmovsqw512mem_mask,
20162 __builtin_ia32_pmovqw512mem_mask,
20163 __builtin_ia32_pmovusdw512mem_mask,
20164 __builtin_ia32_pmovsdw512mem_mask,
20165 __builtin_ia32_pmovdw512mem_mask,
20166 __builtin_ia32_pmovqb512mem_mask,
20167 __builtin_ia32_pmovusqb512mem_mask,
20168 __builtin_ia32_pmovsqb512mem_mask,
20169 __builtin_ia32_pmovusdb512mem_mask,
20170 __builtin_ia32_pmovsdb512mem_mask,
20171 __builtin_ia32_pmovdb512mem_mask.
20172 (bdesc_args): Add __builtin_ia32_expanddf512,
20173 __builtin_ia32_expandsf512.
20174 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20175 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20176 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20177 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20178 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20179 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20180 (avx512f_<code>v8div16qi2_mask_store): This.
20181 (avx512f_expand<mode>): New.
20182
20183 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20184
20185 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20186 New.
20187 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20188 (_mm512_prefetch_i32scatter_pd): Ditto.
20189 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20190 (_mm512_prefetch_i64scatter_pd): Ditto.
20191 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20192 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20193 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20194 (_mm512_prefetch_i32scatter_ps): Ditto.
20195 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20196 (_mm512_prefetch_i64scatter_ps): Ditto.
20197 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20198 * config/i386/i386-builtin-types.def: Define
20199 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20200 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20201 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20202 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20203 IX86_BUILTIN_SCATTERPFQPD.
20204 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20205 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20206 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20207 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20208 __builtin_ia32_scatterpfqps.
20209 (ix86_expand_builtin): Expand new built-ins.
20210 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20211 fix memory access data type.
20212 (*avx512pf_gatherpf<mode>_mask): Ditto.
20213 (*avx512pf_gatherpf<mode>): Ditto.
20214 (avx512pf_scatterpf<mode>): Ditto.
20215 (*avx512pf_scatterpf<mode>_mask): Ditto.
20216 (*avx512pf_scatterpf<mode>): Ditto.
20217 (GATHER_SCATTER_SF_MEM_MODE): New.
20218 (avx512pf_gatherpf<mode>df): Ditto.
20219 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20220 (*avx512pf_scatterpf<mode>df): Ditto.
20221
20222 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20223
20224 PR bootstrap/59934
20225 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20226 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20227 reached.
20228
20229 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20230
20231 * common/config/arm/arm-common.c
20232 (arm_rewrite_mcpu): Handle multiple names.
20233 * config/arm/arm.h
20234 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20235
20236 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20237
20238 * gimple-builder.h (create_gimple_tmp): Delete.
20239
20240 2014-01-27 Christian Bruel <christian.bruel@st.com>
20241
20242 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20243 words comparisons.
20244
20245 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20246
20247 * config/pa/pa.md (call): Generate indirect long calls to non-local
20248 functions when outputing 32-bit code.
20249 (call_value): Likewise except for special call to buggy powf function.
20250
20251 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20252 portable runtime and PIC indirect calls.
20253 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20254 and PIC call sequences. Use ldo instead of blr to set return register
20255 in PIC call sequence.
20256
20257 2014-01-25 Walter Lee <walt@tilera.com>
20258
20259 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20260 avoid clobbering a live register.
20261
20262 2014-01-25 Walter Lee <walt@tilera.com>
20263
20264 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20265 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20266 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20267 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20268
20269 2014-01-25 Walter Lee <walt@tilera.com>
20270
20271 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20272 arguments on even registers.
20273 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20274 STACK_BOUNDARY.
20275 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20276 (BIGGEST_ALIGNMENT): Ditto.
20277 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20278
20279 2014-01-25 Walter Lee <walt@tilera.com>
20280
20281 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20282 insns before bundling.
20283 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20284
20285 2014-01-25 Walter Lee <walt@tilera.com>
20286
20287 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20288 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20289 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20290
20291 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20292
20293 * config/mips/constraints.md (kl): Delete.
20294 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20295 define expands, using...
20296 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20297 instructions for MIPS16.
20298 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20299 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20300
20301 2014-01-25 Walter Lee <walt@tilera.com>
20302
20303 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20304 (clzdi2): Ditto.
20305 (ffsdi2): Ditto.
20306
20307 2014-01-25 Walter Lee <walt@tilera.com>
20308
20309 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20310 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20311
20312 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20313
20314 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20315 Handle XOR.
20316
20317 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20318
20319 * print-rtl.c (in_call_function_usage): New var.
20320 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20321 EXPR_LIST mode as mode and not as reg note name.
20322
20323 PR middle-end/59561
20324 * cfgloopmanip.c (copy_loop_info): If
20325 loop->warned_aggressive_loop_optimizations, make sure
20326 the flag is set in target loop too.
20327
20328 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20329
20330 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20331 flag_cilkplus.
20332 * builtins.def: Likewise.
20333 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20334 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20335 * ira.c (ira_setup_eliminable_regset): Likewise.
20336 * omp-low.c (gate_expand_omp): Likewise.
20337 (execute_lower_omp): Likewise.
20338 (diagnose_sb_0): Likewise.
20339 (gate_diagnose_omp_blocks): Likewise.
20340 (simd_clone_clauses_extract): Likewise.
20341 (gate): Likewise.
20342
20343 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20344
20345 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20346 correction for little endian...
20347 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20348 here.
20349
20350 2014-01-24 Jeff Law <law@redhat.com>
20351
20352 PR tree-optimization/59919
20353 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20354 for non-returning calls.
20355
20356 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20357
20358 * common/config/aarch64/aarch64-common.c
20359 (aarch64_rewrite_mcpu): Handle multiple names.
20360 * config/aarch64/aarch64.h
20361 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20362
20363 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20364
20365 * input.c (add_file_to_cache_tab): Handle the case where fopen
20366 returns NULL.
20367
20368 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20369
20370 PR target/59929
20371 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20372 from push operand if code of push isn't PRE_DEC.
20373
20374 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20375
20376 PR target/59909
20377 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20378 -mquad-memory-atomic. Update -mquad-memory documentation to say
20379 it is only used for non-atomic loads/stores.
20380
20381 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20382 -mquad-memory or -mquad-memory-atomic switches.
20383
20384 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20385 -mquad-memory-atomic to ISA 2.07 support.
20386
20387 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20388 to separate support of normal quad word memory operations (ldq, stq)
20389 from the atomic quad word memory operations.
20390
20391 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20392 support to separate non-atomic quad word operations from atomic
20393 quad word operations. Disable non-atomic quad word operations in
20394 little endian mode so that we don't have to swap words after the
20395 load and before the store.
20396 (quad_load_store_p): Add comment about atomic quad word support.
20397 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20398 options printed with -mdebug=reg.
20399
20400 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20401 -mquad-memory-atomic as the test for whether we have quad word
20402 atomic instructions.
20403 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20404 or -mp8-vector are used, allow byte/half-word atomic operations.
20405
20406 * config/rs6000/sync.md (load_lockedti): Insure that the address
20407 is a proper indexed or indirect address for the lqarx instruction.
20408 On little endian systems, swap the hi/lo registers after the lqarx
20409 instruction.
20410 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20411 insure the address is valid for the lqarx instruction.
20412 (store_conditionalti): Insure that the address is a proper indexed
20413 or indirect address for the stqcrx. instruction. On little endian
20414 systems, swap the hi/lo registers before doing the stqcrx.
20415 instruction.
20416 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20417 insure the address is valid for the stqcrx. instruction.
20418
20419 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20420 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20421 type of quad memory support is available.
20422
20423 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20424
20425 PR regression/59915
20426 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20427 there is a danger of looping.
20428
20429 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20430
20431 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20432 force flag_ira_loop_pressure if set via command line.
20433
20434 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20435
20436 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20437 (ashr_simd): New builtin handling DI mode.
20438 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20439 (aarch64_sshr_simddi): New match pattern.
20440 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20441 (vshrd_n_s64): Likewise.
20442 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20443
20444 2014-01-23 Nick Clifton <nickc@redhat.com>
20445
20446 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20447 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20448 favour of mcu specific scripts.
20449 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20450 430x multilibs.
20451
20452 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20453 Alex Velenko <Alex.Velenko@arm.com>
20454
20455 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20456 (vaddv_s16): Likewise.
20457 (vaddv_s32): Likewise.
20458 (vaddv_u8): Likewise.
20459 (vaddv_u16): Likewise.
20460 (vaddv_u32): Likewise.
20461 (vaddvq_s8): Likewise.
20462 (vaddvq_s16): Likewise.
20463 (vaddvq_s32): Likewise.
20464 (vaddvq_s64): Likewise.
20465 (vaddvq_u8): Likewise.
20466 (vaddvq_u16): Likewise.
20467 (vaddvq_u32): Likewise.
20468 (vaddvq_u64): Likewise.
20469 (vaddv_f32): Likewise.
20470 (vaddvq_f32): Likewise.
20471 (vaddvq_f64): Likewise.
20472 (vmaxv_f32): Likewise.
20473 (vmaxv_s8): Likewise.
20474 (vmaxv_s16): Likewise.
20475 (vmaxv_s32): Likewise.
20476 (vmaxv_u8): Likewise.
20477 (vmaxv_u16): Likewise.
20478 (vmaxv_u32): Likewise.
20479 (vmaxvq_f32): Likewise.
20480 (vmaxvq_f64): Likewise.
20481 (vmaxvq_s8): Likewise.
20482 (vmaxvq_s16): Likewise.
20483 (vmaxvq_s32): Likewise.
20484 (vmaxvq_u8): Likewise.
20485 (vmaxvq_u16): Likewise.
20486 (vmaxvq_u32): Likewise.
20487 (vmaxnmv_f32): Likewise.
20488 (vmaxnmvq_f32): Likewise.
20489 (vmaxnmvq_f64): Likewise.
20490 (vminv_f32): Likewise.
20491 (vminv_s8): Likewise.
20492 (vminv_s16): Likewise.
20493 (vminv_s32): Likewise.
20494 (vminv_u8): Likewise.
20495 (vminv_u16): Likewise.
20496 (vminv_u32): Likewise.
20497 (vminvq_f32): Likewise.
20498 (vminvq_f64): Likewise.
20499 (vminvq_s8): Likewise.
20500 (vminvq_s16): Likewise.
20501 (vminvq_s32): Likewise.
20502 (vminvq_u8): Likewise.
20503 (vminvq_u16): Likewise.
20504 (vminvq_u32): Likewise.
20505 (vminnmv_f32): Likewise.
20506 (vminnmvq_f32): Likewise.
20507 (vminnmvq_f64): Likewise.
20508
20509 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20510
20511 * config/aarch64/aarch64-simd.md
20512 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20513 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20514 (*aarch64_mul3_elt<mode>): Likewise.
20515 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20516 (*aarch64_mul3_elt_to_64v2df): Likewise.
20517 (*aarch64_mla_elt<mode>): Likewise.
20518 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20519 (*aarch64_mls_elt<mode>): Likewise.
20520 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20521 (*aarch64_fma4_elt<mode>): Likewise.
20522 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20523 (*aarch64_fma4_elt_to_64v2df): Likewise.
20524 (*aarch64_fnma4_elt<mode>): Likewise.
20525 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20526 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20527 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20528 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20529 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20530 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20531 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20532 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20533 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20534
20535 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20536
20537 * config/aarch64/aarch64-simd.md
20538 (aarch64_be_checked_get_lane<mode>): New define_expand.
20539 * config/aarch64/aarch64-simd-builtins.def
20540 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20541 New builtin definition.
20542 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20543 Use new safe be builtin.
20544
20545 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20546
20547 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20548 New define_insn.
20549 (aarch64_be_st1<mode>): Likewise.
20550 (aarch_ld1<VALL:mode>): Define_expand modified.
20551 (aarch_st1<VALL:mode>): Likewise.
20552 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20553 (UNSPEC_ST1): Likewise.
20554
20555 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20556
20557 * config/microblaze/microblaze.md: Add trap insn and attribute
20558
20559 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20560
20561 PR preprocessor/58580
20562 * input.h (location_get_source_line): Take an additional line_size
20563 parameter.
20564 (void diagnostics_file_cache_fini): Declare new function.
20565 * input.c (struct fcache): New type.
20566 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20567 New static constants.
20568 (diagnostic_file_cache_init, total_lines_num)
20569 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20570 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20571 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20572 (get_next_line, read_next_line, goto_next_line, read_line_num):
20573 New static function definitions.
20574 (diagnostic_file_cache_fini): New function.
20575 (location_get_source_line): Take an additional output line_len
20576 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20577 read_line_num.
20578 * diagnostic.c (diagnostic_finish): Call
20579 diagnostic_file_cache_fini.
20580 (adjust_line): Take an additional input parameter for the length
20581 of the line, rather than calculating it with strlen.
20582 (diagnostic_show_locus): Adjust the use of
20583 location_get_source_line and adjust_line with respect to their new
20584 signature. While displaying a line now, do not stop at the first
20585 null byte. Rather, display the zero byte as a space and keep
20586 going until we reach the size of the line.
20587 * Makefile.in: Add vec.o to OBJS-libcommon
20588
20589 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20590 Ilya Tocar <ilya.tocar@intel.com>
20591
20592 * config/i386/avx512fintrin.h (_mm512_kmov): New.
20593 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
20594 (__builtin_ia32_kmov16): Ditto.
20595 * config/i386/i386.md (UNSPEC_KMOV): New.
20596 (kmovw): Ditto.
20597
20598 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
20599
20600 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
20601 (_mm512_storeu_si512): Ditto.
20602
20603 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
20604
20605 PR target/52125
20606 * rtl.h (get_referenced_operands): Declare.
20607 * recog.c (get_referenced_operands): New function.
20608 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
20609 operands have been referenced when recording LO_SUM references.
20610
20611 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
20612
20613 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
20614
20615 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20616
20617 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
20618 Enable for generic and recent AMD targets.
20619
20620 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
20621
20622 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
20623 ARG_SIZE note when adjustment was eliminated.
20624
20625 2014-01-22 Jeff Law <law@redhat.com>
20626
20627 PR tree-optimization/59597
20628 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
20629 in file. Accept new argument REGISTERING and use it to modify
20630 dump output appropriately.
20631 (register_jump_thread): Corresponding changes.
20632 (mark_threaded_blocks): Reinstate code to cancel unprofitable
20633 thread paths involving joiner blocks. Add code to dump cancelled
20634 jump threading paths.
20635
20636 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
20637
20638 PR rtl-optimization/59477
20639 * lra-constraints.c (inherit_in_ebb): Process call for living hard
20640 regs. Update reloads_num and potential_reload_hard_regs for all insns.
20641
20642 2014-01-22 Tom Tromey <tromey@redhat.com>
20643
20644 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
20645 PARAMS.
20646 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
20647
20648 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20649
20650 PR rtl-optimization/59896
20651 * lra-constraints.c (process_alt_operands): Check unused note for
20652 matched operands of insn with no output reloads.
20653
20654 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
20655
20656 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
20657 (mips_move_from_gpr_cost): Likewise.
20658
20659 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
20660
20661 PR rtl-optimization/59858
20662 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
20663 ira_class_hard_regs_num.
20664 (process_alt_operands): Increase reject for dying matched operand.
20665
20666 2014-01-21 Jakub Jelinek <jakub@redhat.com>
20667
20668 PR target/59003
20669 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
20670 smaller than size, perform several stores or loads and stores
20671 at dst + count - size to store or copy all of size bytes, rather
20672 than just last modesize bytes.
20673
20674 2014-01-20 DJ Delorie <dj@redhat.com>
20675
20676 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
20677 that CLOBBERs are REGs before propogating their values.
20678
20679 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
20680
20681 PR middle-end/59789
20682 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
20683 (cgraph_inline_failed_type): New function.
20684 * cgraph.h (DEFCIFCODE): Add type.
20685 (cgraph_inline_failed_type_t): New enum.
20686 (cgraph_inline_failed_type): New prototype.
20687 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
20688 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
20689 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
20690 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
20691 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
20692 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
20693 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
20694 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
20695 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
20696 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
20697 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
20698 OPTIMIZATION_MISMATCH.
20699 * tree-inline.c (expand_call_inline): Emit errors during
20700 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
20701
20702 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20703
20704 PR target/59685
20705 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
20706 mode attribute in insn output.
20707
20708 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
20709
20710 * output.h (output_constant): Delete.
20711 * varasm.c (output_constant): Make private.
20712
20713 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
20714
20715 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
20716
20717 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20718
20719 PR middle-end/59860
20720 * tree.h (fold_builtin_strcat): New prototype.
20721 * builtins.c (fold_builtin_strcat): No longer static. Add len
20722 argument, if non-NULL, don't call c_strlen. Optimize
20723 directly into __builtin_memcpy instead of __builtin_strcpy.
20724 (fold_builtin_2): Adjust fold_builtin_strcat caller.
20725 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
20726
20727 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
20728
20729 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20730 for SImode_address_operand operands, having only a REG argument.
20731
20732 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
20733
20734 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
20735 loader name using mbig-endian.
20736 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
20737
20738 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20739
20740 * doc/invoke.texi (-march): Clarify documentation for AArch64.
20741 (-mtune): Likewise.
20742 (-mcpu): Likewise.
20743
20744 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
20745
20746 * config/aarch64/aarch64-protos.h
20747 (aarch64_cannot_change_mode_class_ptr): Declare.
20748 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
20749 aarch64_cannot_change_mode_class_ptr): New.
20750 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
20751 backend hook aarch64_cannot_change_mode_class.
20752
20753 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
20754
20755 * common/config/aarch64/aarch64-common.c
20756 (aarch64_handle_option): Don't handle any option order logic here.
20757 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
20758 selected_cpu, warn on architecture version mismatch.
20759 (aarch64_override_options): Fix parsing order for option strings.
20760
20761 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20762 Iain Sandoe <iain@codesourcery.com>
20763
20764 PR bootstrap/59496
20765 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
20766 warning. Amend comment to reflect current functionality.
20767
20768 2014-01-20 Richard Biener <rguenther@suse.de>
20769
20770 PR middle-end/59860
20771 * builtins.c (fold_builtin_strcat): Remove case better handled
20772 by tree-ssa-strlen.c.
20773
20774 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
20775
20776 * config/aarch64/aarch64.opt
20777 (mcpu, march, mtune): Make case-insensitive.
20778
20779 2014-01-20 Jakub Jelinek <jakub@redhat.com>
20780
20781 PR target/59880
20782 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
20783 if operands[1] is a REG or ZERO_EXTEND of a REG.
20784
20785 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
20786
20787 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
20788
20789 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
20790
20791 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
20792 long non-pic millicode calls.
20793
20794 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20795
20796 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
20797
20798 2014-01-19 Kito Cheng <kito@0xlab.org>
20799
20800 * builtins.c (expand_movstr): Check movstr expand done or fail.
20801
20802 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20803 H.J. Lu <hongjiu.lu@intel.com>
20804
20805 PR target/59379
20806 * config/i386/i386.md (*lea<mode>): Zero-extend return register
20807 to DImode for zero-extended addresses.
20808
20809 2014-01-19 Jakub Jelinek <jakub@redhat.com>
20810
20811 PR rtl-optimization/57763
20812 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
20813 on the new indirect jump_insn and increment LABEL_NUSES (label).
20814
20815 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
20816
20817 PR bootstrap/59580
20818 PR bootstrap/59583
20819 * config.gcc (x86_archs): New variable.
20820 (x86_64_archs): Likewise.
20821 (x86_cpus): Likewise.
20822 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
20823 --with-arch/--with-cpu= options.
20824 Support --with-arch=/--with-cpu={nehalem,westmere,
20825 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
20826
20827 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20828
20829 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
20830 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
20831
20832 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
20833
20834 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
20835
20836 2014-01-18 Jakub Jelinek <jakub@redhat.com>
20837
20838 PR target/58944
20839 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
20840 clear cpp_get_options (parse_in)->warn_unused_macros for
20841 ix86_target_macros_internal with cpp_define.
20842
20843 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
20844
20845 * jump.c (delete_related_insns): Keep (use (insn))s.
20846 * reorg.c (redundant_insn): Check for barriers too.
20847
20848 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20849
20850 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
20851
20852 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
20853
20854 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
20855 call to $$dyncall when TARGET_LONG_CALLS is true.
20856
20857 2014-01-17 Jeff Law <law@redhat.com>
20858
20859 * ree.c (combine_set_extension): Temporarily disable test for
20860 changing number of hard registers.
20861
20862 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20863
20864 PR middle-end/58125
20865 * ipa-inline-analysis.c (inline_free_summary):
20866 Do not free summary of aliases.
20867
20868 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20869
20870 PR middle-end/59706
20871 * gimplify.c (gimplify_expr): Use create_tmp_var
20872 instead of create_tmp_var_raw. If cond doesn't have
20873 integral type, don't add the IFN_ANNOTATE builtin at all.
20874
20875 2014-01-17 Martin Jambor <mjambor@suse.cz>
20876
20877 PR ipa/59736
20878 * ipa-cp.c (prev_edge_clone): New variable.
20879 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
20880 Also resize prev_edge_clone vector.
20881 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
20882 (ipcp_edge_removal_hook): New function.
20883 (ipcp_driver): Register ipcp_edge_removal_hook.
20884
20885 2014-01-17 Andrew Pinski <apinski@cavium.com>
20886 Steve Ellcey <sellcey@mips.com>
20887
20888 PR target/59462
20889 * config/mips/mips.c (mips_print_operand): Check operand mode instead
20890 of operator mode.
20891
20892 2014-01-17 Jeff Law <law@redhat.com>
20893
20894 PR middle-end/57904
20895 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
20896 so that pass_ccp runs first.
20897
20898 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20899
20900 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
20901 (ix86_adjust_cost): Use !TARGET_XXX.
20902 (do_reorder_for_imul): Likewise.
20903 (swap_top_of_ready_list): Likewise.
20904 (ix86_sched_reorder): Likewise.
20905
20906 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
20907
20908 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20909 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
20910 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
20911 (intel_memset): New. Duplicate slm_memset.
20912 (intel_cost): New. Duplicate slm_cost.
20913 (m_INTEL): New macro.
20914 (processor_target_table): Add "intel".
20915 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
20916 with PROCESSOR_INTEL for "intel".
20917 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
20918 PROCESSOR_SILVERMONT.
20919 (ix86_issue_rate): Likewise.
20920 (ix86_adjust_cost): Likewise.
20921 (ia32_multipass_dfa_lookahead): Likewise.
20922 (swap_top_of_ready_list): Likewise.
20923 (ix86_sched_reorder): Likewise.
20924 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
20925 instead of TARGET_OPT_AGU.
20926 * config/i386/i386.h (TARGET_INTEL): New.
20927 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
20928 (processor_type): Add PROCESSOR_INTEL.
20929 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
20930 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
20931
20932 2014-01-17 Marek Polacek <polacek@redhat.com>
20933
20934 PR c/58346
20935 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
20936 size is zero.
20937
20938 2014-01-17 Richard Biener <rguenther@suse.de>
20939
20940 PR tree-optimization/46590
20941 * opts.c (default_options_table): Add entries for
20942 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
20943 all enabled at -O1 but not for -Og.
20944 * common.opt (fbranch-count-reg): Remove Init(1).
20945 (fmove-loop-invariants): Likewise.
20946 (ftree-pta): Likewise.
20947
20948 2014-01-17 Jakub Jelinek <jakub@redhat.com>
20949
20950 * config/i386/i386.c (ix86_data_alignment): For compatibility with
20951 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
20952 decls to at least the GCC 4.8 used alignments.
20953
20954 PR fortran/59440
20955 * tree-nested.c (convert_nonlocal_reference_stmt,
20956 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
20957 of GIMPLE_BIND stmts, adjust associated decls.
20958
20959 2014-01-17 Richard Biener <rguenther@suse.de>
20960
20961 PR tree-optimization/46590
20962 * vec.h (vec<>::bseach): New member function implementing
20963 binary search according to C89 bsearch.
20964 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
20965 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
20966 bitmap pointer again. Make accesses_in_loop a flat array.
20967 (mem_ref_obstack): New global.
20968 (outermost_indep_loop): Adjust for mem_ref->stored changes.
20969 (mark_ref_stored): Likewise.
20970 (ref_indep_loop_p_2): Likewise.
20971 (set_ref_stored_in_loop): New helper function.
20972 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
20973 (memref_free): Adjust.
20974 (record_mem_ref_loc): Simplify.
20975 (gather_mem_refs_stmt): Adjust.
20976 (sort_locs_in_loop_postorder_cmp): New function.
20977 (analyze_memory_references): Sort accesses_in_loop after
20978 loop postorder number.
20979 (find_ref_loc_in_loop_cmp): New function.
20980 (for_all_locs_in_loop): Find relevant cluster of locs in
20981 accesses_in_loop and iterate without recursion.
20982 (execute_sm): Avoid uninit warning.
20983 (struct ref_always_accessed): Simplify.
20984 (ref_always_accessed::operator ()): Likewise.
20985 (ref_always_accessed_p): Likewise.
20986 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
20987 loop postorder numbers here.
20988 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
20989 numbers.
20990
20991 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
20992
20993 PR c++/57945
20994 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
20995 on decls for which assemble_alias has been called.
20996
20997 2014-01-17 Nick Clifton <nickc@redhat.com>
20998
20999 * config/msp430/msp430.opt: (mcpu): New option.
21000 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21001 (msp430_option_override): Parse target_cpu. If the MCU name
21002 matches a generic string, clear target_mcu.
21003 (msp430_attr): Allow numeric interrupt values up to 63.
21004 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21005 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21006 option.
21007 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21008 Add mcpu matches.
21009 * config/msp430/msp430.md (popm): Use %J rather than %I.
21010 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21011 (addhi_cy_i): Use immediate_operand for operand 2.
21012 * doc/invoke.texi: Document -mcpu option.
21013
21014 2014-01-17 Richard Biener <rguenther@suse.de>
21015
21016 PR rtl-optimization/38518
21017 * df.h (df_analyze_loop): Declare.
21018 * df-core.c: Include cfgloop.h.
21019 (df_analyze_1): Split out main part of df_analyze.
21020 (df_analyze): Adjust.
21021 (loop_inverted_post_order_compute): New function.
21022 (loop_post_order_compute): Likewise.
21023 (df_analyze_loop): New function avoiding whole-function
21024 postorder computes.
21025 * loop-invariant.c (find_defs): Use df_analyze_loop.
21026 (find_invariants): Adjust.
21027 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21028
21029 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21030
21031 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21032 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21033
21034 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21035
21036 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21037 traversal when removing references.
21038
21039 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21040
21041 PR ipa/59775
21042 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21043
21044 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21045
21046 PR middle-end/56791
21047 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21048 pushing a reload for an autoinc when we had previously reloaded an
21049 inner part of the address.
21050
21051 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21052
21053 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21054 field.
21055 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21056 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21057 when not giving up or versioning for alias only because of
21058 loop->safelen.
21059 (vect_analyze_data_ref_dependences): Set to true.
21060 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21061 is a GIMPLE_PHI.
21062 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21063 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21064 to the condition.
21065
21066 PR middle-end/58344
21067 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21068
21069 PR target/59839
21070 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21071 operand 0 predicate for gathers, use a new pseudo as subtarget.
21072
21073 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21074
21075 PR middle-end/59609
21076 * lra-constraints.c (process_alt_operands): Add printing debug info.
21077 Check absence of input/output reloads for matched operands too.
21078
21079 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21080
21081 PR rtl-optimization/59835
21082 * ira.c (ira_init_register_move_cost): Increase cost for
21083 impossible modes.
21084
21085 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21086
21087 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21088
21089 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21090
21091 PR target/59780
21092 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21093 non-register objects. Use gen_(high/low)part more consistently.
21094 Fix assertions.
21095
21096 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21097
21098 PR target/59844
21099 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21100 endian support, remove tests for WORDS_BIG_ENDIAN.
21101 (p8_mfvsrd_3_<mode>): Likewise.
21102 (reload_gpr_from_vsx<mode>): Likewise.
21103 (reload_gpr_from_vsxsf): Likewise.
21104 (p8_mfvsrd_4_disf): Likewise.
21105
21106 2014-01-16 Richard Biener <rguenther@suse.de>
21107
21108 PR rtl-optimization/46590
21109 * lcm.c (compute_antinout_edge): Use postorder iteration.
21110 (compute_laterin): Use inverted postorder iteration.
21111
21112 2014-01-16 Nick Clifton <nickc@redhat.com>
21113
21114 PR middle-end/28865
21115 * varasm.c (output_constant): Return the number of bytes actually
21116 emitted.
21117 (output_constructor_array_range): Update the field size with the
21118 number of bytes emitted by output_constant.
21119 (output_constructor_regular_field): Likewise. Also do not
21120 complain if the total number of bytes emitted is now greater
21121 than the expected fieldpos.
21122 * output.h (output_constant): Update prototype and descriptive comment.
21123
21124 2014-01-16 Marek Polacek <polacek@redhat.com>
21125
21126 PR middle-end/59827
21127 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21128 it is error_mark_node.
21129
21130 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21131
21132 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21133 VALID_AVX256_REG_OR_OI_MODE.
21134
21135 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21136
21137 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21138 current procedure should be profiled.
21139
21140 2014-01-15 Andrew Pinski <apinski@cavium.com>
21141
21142 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21143 of moving from/to the STACK_REG register class.
21144
21145 2014-01-15 Richard Henderson <rth@redhat.com>
21146
21147 PR debug/54694
21148 * reginfo.c (global_regs_decl): Globalize.
21149 * rtl.h (global_regs_decl): Declare.
21150 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21151 reserved via global_regs.
21152
21153 2014-01-15 Teresa Johnson <tejohnson@google.com>
21154
21155 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21156
21157 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21158
21159 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21160 and vmulosh rather than call gen_vec_widen_smult_*.
21161 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21162 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21163 (vec_widen_smult_even_v16qi): Likewise.
21164 (vec_widen_umult_even_v8hi): Likewise.
21165 (vec_widen_smult_even_v8hi): Likewise.
21166 (vec_widen_umult_odd_v16qi): Likewise.
21167 (vec_widen_smult_odd_v16qi): Likewise.
21168 (vec_widen_umult_odd_v8hi): Likewise.
21169 (vec_widen_smult_odd_v8hi): Likewise.
21170 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21171 vmuloub rather than call gen_vec_widen_umult_*.
21172 (vec_widen_umult_lo_v16qi): Likewise.
21173 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21174 vmulosb rather than call gen_vec_widen_smult_*.
21175 (vec_widen_smult_lo_v16qi): Likewise.
21176 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21177 rather than call gen_vec_widen_umult_*.
21178 (vec_widen_umult_lo_v8hi): Likewise.
21179 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21180 rather than call gen_vec_widen_smult_*.
21181 (vec_widen_smult_lo_v8hi): Likewise.
21182
21183 2014-01-15 Jeff Law <law@redhat.com>
21184
21185 PR tree-optimization/59747
21186 * ree.c (find_and_remove_re): Properly handle case where a second
21187 eliminated extension requires widening a copy created for elimination
21188 of a prior extension.
21189 (combine_set_extension): Ensure that the number of hard regs needed
21190 for a destination register does not change when we widen it.
21191
21192 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21193
21194 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21195 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21196 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21197 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21198 (avr-*-rtems*): Likewise.
21199 (bfin*-rtems*): Likewise.
21200 (moxie-*-rtems*): Likewise.
21201 (h8300-*-rtems*): Likewise.
21202 (i[34567]86-*-rtems*): Likewise.
21203 (lm32-*-rtems*): Likewise.
21204 (m32r-*-rtems*): Likewise.
21205 (m68k-*-rtems*): Likewise.
21206 (microblaze*-*-rtems*): Likewise.
21207 (mips*-*-rtems*): Likewise.
21208 (powerpc-*-rtems*): Likewise.
21209 (sh-*-rtems*): Likewise.
21210 (sparc-*-rtems*): Likewise.
21211 (sparc64-*-rtems*): Likewise.
21212 (v850-*-rtems*): Likewise.
21213 (m32c-*-rtems*): Likewise.
21214
21215 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21216
21217 PR rtl-optimization/59511
21218 * ira.c (ira_init_register_move_cost): Use memory costs for some
21219 cases of register move cost calculations.
21220 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21221 instead of BB frequency.
21222 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21223 * lra-assigns.c (find_hard_regno_for): Ditto.
21224
21225 2014-01-15 Richard Biener <rguenther@suse.de>
21226
21227 PR tree-optimization/59822
21228 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21229 (vectorizable_load): Use it to hoist defs of uses of invariant
21230 loads out of the loop.
21231
21232 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21233 Kugan Vivekanandarajah <kuganv@linaro.org>
21234
21235 PR target/59695
21236 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21237 truncation.
21238
21239 2014-01-15 Richard Biener <rguenther@suse.de>
21240
21241 PR rtl-optimization/59802
21242 * lcm.c (compute_available): Use inverted postorder to seed
21243 the initial worklist.
21244
21245 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21246
21247 PR target/59803
21248 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21249 ADDR_REGS for invalid symrefs in non-PIC code.
21250
21251 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21252
21253 PR other/58712
21254 * builtins.c (determine_block_size): Initialize *probable_max_size
21255 even if len_rtx is CONST_INT.
21256
21257 2014-01-14 Andrew Pinski <apinski@cavium.com>
21258
21259 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21260 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21261 (cortexa53_tunings): Likewise.
21262 (aarch64_sched_issue_rate): New function.
21263 (TARGET_SCHED_ISSUE_RATE): Define.
21264
21265 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21266
21267 * ira-costs.c (find_costs_and_classes): Add missed
21268 ira_init_register_move_cost_if_necessary.
21269
21270 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21271
21272 PR target/59787
21273 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21274
21275 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21276
21277 PR target/59794
21278 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21279 to indicate if type is used for function return value. Warn ABI
21280 change if the vector mode isn't available for function return value.
21281 (ix86_function_arg_advance): Pass false to type_natural_mode.
21282 (ix86_function_arg): Likewise.
21283 (ix86_gimplify_va_arg): Likewise.
21284 (function_arg_32): Don't warn ABI change.
21285 (ix86_function_value): Pass true to type_natural_mode.
21286 (ix86_return_in_memory): Likewise.
21287 (ix86_struct_value_rtx): Removed.
21288 (TARGET_STRUCT_VALUE_RTX): Likewise.
21289
21290 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21291
21292 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21293 converting a conditional jump into a conditional return.
21294
21295 2014-01-14 Richard Biener <rguenther@suse.de>
21296
21297 PR tree-optimization/58921
21298 PR tree-optimization/59006
21299 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21300 hoisting invariant stmts.
21301 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21302 invariant loads on the preheader edge if possible.
21303
21304 2014-01-14 Joey Ye <joey.ye@arm.com>
21305
21306 * doc/plugin.texi (Building GCC plugins): Update to C++.
21307
21308 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21309
21310 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21311 (_mm_rcp28_round_ss): Ditto.
21312 (_mm_rsqrt28_round_sd): Ditto.
21313 (_mm_rsqrt28_round_ss): Ditto.
21314 (_mm_rcp28_sd): Ditto.
21315 (_mm_rcp28_ss): Ditto.
21316 (_mm_rsqrt28_sd): Ditto.
21317 (_mm_rsqrt28_ss): Ditto.
21318 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21319 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21320 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21321 (IX86_BUILTIN_RCP28SD): Ditto.
21322 (IX86_BUILTIN_RCP28SS): Ditto.
21323 (IX86_BUILTIN_RSQRT28SD): Ditto.
21324 (IX86_BUILTIN_RSQRT28SS): Ditto.
21325 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21326 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21327 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21328 (ix86_expand_special_args_builtin): Expand new FTYPE.
21329 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21330 (srcp14<mode>): Make insn unary.
21331 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21332 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21333 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21334 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21335 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21336 Fix rounding: make it SAE only.
21337 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21338 Ditto.
21339 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21340 Ditto.
21341 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21342 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21343 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21344 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21345 (round_saeonly_mask_scalar_operand4): Ditto.
21346 (round_saeonly_mask_scalar_op3): Ditto.
21347 (round_saeonly_mask_scalar_op4): Ditto.
21348
21349 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21350
21351 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21352 Implement -maltivec=be for vec_insert and vec_extract.
21353
21354 2014-01-10 DJ Delorie <dj@redhat.com>
21355
21356 * config/msp430/msp430.md (call_internal): Don't allow memory
21357 references with SP as the base register.
21358 (call_value_internal): Likewise.
21359 * config/msp430/constraints.md (Yc): New. For memory references
21360 that don't use SP as a base register.
21361
21362 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21363 "an integer without a # prefix"
21364 * config/msp430/msp430.md (epilogue_helper): Use it.
21365
21366 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21367
21368 PR target/59617
21369 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21370 AVX512F gather builtins.
21371 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21372 on gather decls with INTEGER_TYPE masktype.
21373 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21374 directly into the builtin rather than hoisting it before loop.
21375
21376 PR tree-optimization/59387
21377 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21378 (scev_const_prop): If folded_casts and type has undefined overflow,
21379 use force_gimple_operand instead of force_gimple_operand_gsi and
21380 for each added stmt if it is assign with
21381 arith_code_with_undefined_signed_overflow, call
21382 rewrite_to_defined_overflow.
21383 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21384 gimple-fold.h instead.
21385 (arith_code_with_undefined_signed_overflow,
21386 rewrite_to_defined_overflow): Moved to ...
21387 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21388 rewrite_to_defined_overflow): ... here. No longer static.
21389 Include gimplify-me.h.
21390 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21391 rewrite_to_defined_overflow): New prototypes.
21392
21393 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21394
21395 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21396
21397 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21398
21399 * builtins.c (get_object_alignment_2): Minor tweak.
21400 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21401
21402 2014-01-13 Christian Bruel <christian.bruel@st.com>
21403
21404 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21405 optimized non constant lengths.
21406
21407 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21408
21409 PR libgomp/59194
21410 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21411 load as __atomic_load_N if possible.
21412
21413 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21414
21415 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21416 target parameter.
21417 (rs6000_expand_builtin): Adjust call.
21418
21419 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21420
21421 PR target/58115
21422 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21423 * config/rs6000/rs6000.c: Include target-globals.h.
21424 (rs6000_set_current_function): Instead of doing target_reinit
21425 unconditionally, use save_target_globals_default_opts and
21426 restore_target_globals.
21427
21428 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21429 FPSCR.
21430 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21431 (rs6000_expand_builtin): Handle mffs and mtfsf.
21432 (rs6000_init_builtins): Define mffs and mtfsf.
21433 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21434 (rs6000_mffs): New pattern.
21435 (rs6000_mtfsf): New pattern.
21436
21437 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21438
21439 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21440 Start narrowing with START. Apply candidate-use pair
21441 and check overall cost in narrowing.
21442 (iv_ca_prune): Pass new argument.
21443
21444 2014-01-10 Jeff Law <law@redhat.com>
21445
21446 PR middle-end/59743
21447 * ree.c (combine_reaching_defs): Ensure the defining statement
21448 occurs before the extension when optimizing extensions with
21449 different source and destination hard registers.
21450
21451 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21452
21453 PR ipa/58585
21454 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21455 vtables into the type inheritance graph.
21456
21457 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21458
21459 PR rtl-optimization/59754
21460 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21461 modes in the REGNO != REGNO case.
21462
21463 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21464
21465 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21466
21467 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21468
21469 PR tree-optimization/59745
21470 * tree-predcom.c (tree_predictive_commoning_loop): Call
21471 free_affine_expand_cache if giving up because components is NULL.
21472
21473 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21474 GC in payload of target_globals struct instead of allocating them on
21475 the heap and the larger structs separately using GC.
21476 * target-globals.h (struct target_globals): Make regs, hard_regs,
21477 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21478 of GTY((skip)) and change type to void *.
21479 (reset_target_globals): Cast loads from those fields to corresponding
21480 types.
21481
21482 2014-01-10 Steve Ellcey <sellcey@mips.com>
21483
21484 PR plugins/59335
21485 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21486 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21487 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21488
21489 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21490
21491 PR target/59744
21492 * aarch64-modes.def (CC_Zmode): New flags mode.
21493 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21494 represents an equality.
21495 (aarch64_get_condition_code): Handle CC_Zmode.
21496 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21497
21498 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21499
21500 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21501 extraction in good case.
21502
21503 2014-01-10 Richard Biener <rguenther@suse.de>
21504
21505 PR tree-optimization/59374
21506 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21507 checking after SLP discovery. Mark stmts not participating
21508 in any SLP instance properly.
21509
21510 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21511
21512 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21513 when handling a SET rtx.
21514
21515 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21516
21517 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21518 (cortex-a57): Likewise.
21519 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21520
21521 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21522
21523 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21524 non-iwmmxt builtins.
21525
21526 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21527
21528 PR ipa/58252
21529 PR ipa/59226
21530 * ipa-devirt.c record_target_from_binfo): Take as argument
21531 stack of binfos and lookup matching one for virtual inheritance.
21532 (possible_polymorphic_call_targets_1): Update.
21533
21534 2014-01-10 Huacai Chen <chenhc@lemote.com>
21535
21536 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21537 kernel strings for Loongson-2E/2F/3A.
21538
21539 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21540
21541 PR middle-end/59670
21542 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21543 is_gimple_call before calling gimple_call_internal_p.
21544
21545 2014-01-09 Steve Ellcey <sellcey@mips.com>
21546
21547 * Makefile.in (TREE_FLOW_H): Remove.
21548 (TREE_SSA_H): Add file names from tree-flow.h.
21549 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21550 * tree.h: Remove tree-flow.h reference.
21551 * hash-table.h: Remove tree-flow.h reference.
21552 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21553 reference with tree-ssa-loop.h.
21554
21555 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21556
21557 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21558 default element-order behavior for -maltivec.
21559 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21560 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21561 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21562 when targeting big endian, at least for now.
21563 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21564
21565 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21566
21567 PR middle-end/47735
21568 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21569 var satisfies use_register_for_decl, just take into account type
21570 alignment, rather than decl alignment.
21571
21572 PR tree-optimization/59622
21573 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21574 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21575 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21576 Don't devirtualize for inplace at all. For targets.length () == 1,
21577 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21578
21579 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21580
21581 * config/i386/i386.md (cpu): Remove the unused btver1.
21582
21583 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21584
21585 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
21586
21587 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21588
21589 PR target/58115
21590 * tree-core.h (struct target_globals): New forward declaration.
21591 (struct tree_target_option): Add globals field.
21592 * tree.h (TREE_TARGET_GLOBALS): Define.
21593 (prepare_target_option_nodes_for_pch): New prototype.
21594 * target-globals.h (struct target_globals): Define even if
21595 !SWITCHABLE_TARGET.
21596 * tree.c (prepare_target_option_node_for_pch,
21597 prepare_target_option_nodes_for_pch): New functions.
21598 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
21599 * config/i386/i386.c: Include target-globals.h.
21600 (ix86_set_current_function): Instead of doing target_reinit
21601 unconditionally, use save_target_globals_default_opts and
21602 restore_target_globals.
21603
21604 2014-01-09 Richard Biener <rguenther@suse.de>
21605
21606 PR tree-optimization/59715
21607 * tree-cfg.h (split_critical_edges): Declare.
21608 * tree-cfg.c (split_critical_edges): Export.
21609 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
21610
21611 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
21612
21613 * cfgexpand.c (expand_stack_vars): Optionally disable
21614 asan stack protection.
21615 (expand_used_vars): Likewise.
21616 (partition_stack_vars): Likewise.
21617 * asan.c (asan_emit_stack_protection): Optionally disable
21618 after return stack usage.
21619 (instrument_derefs): Optionally disable memory access instrumentation.
21620 (instrument_builtin_call): Likewise.
21621 (instrument_strlen_call): Likewise.
21622 (asan_protect_global): Optionally disable global variables protection.
21623 * doc/invoke.texi: Added doc for new options.
21624 * params.def: Added new options.
21625 * params.h: Likewise.
21626
21627 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21628
21629 PR rtl-optimization/59724
21630 * ifcvt.c (cond_exec_process_if_block): Don't call
21631 flow_find_head_matching_sequence with 0 longest_match.
21632 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
21633 non-active insns if !stop_after.
21634 (try_head_merge_bb): Revert 2014-01-07 changes.
21635
21636 2014-01-08 Jeff Law <law@redhat.com>
21637
21638 * ree.c (get_sub_rtx): New function, extracted from...
21639 (merge_def_and_ext): Here.
21640 (combine_reaching_defs): Use get_sub_rtx.
21641
21642 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
21643
21644 * cgraph.h (varpool_variable_node): Do not choke on null node.
21645
21646 2014-01-08 Catherine Moore <clm@codesourcery.com>
21647
21648 * config/mips/mips.md (simple_return): Attempt to use JRC
21649 for microMIPS.
21650 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
21651
21652 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21653
21654 PR rtl-optimization/59137
21655 * reorg.c (steal_delay_list_from_target): Call update_block for
21656 elided insns.
21657 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
21658
21659 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21660
21661 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21662 two duplicate entries.
21663
21664 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
21665
21666 Revert:
21667 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
21668
21669 * config/mips/mips.c (mips_truncated_op_cost): New function.
21670 (mips_rtx_costs): Adjust test for BADDU.
21671 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
21672
21673 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
21674
21675 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
21676 (*baddu_si): ...this new pattern.
21677
21678 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21679
21680 PR ipa/59722
21681 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
21682
21683 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21684
21685 PR middle-end/57748
21686 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
21687 inner_reference_p.
21688 (expand_expr, expand_normal): Adjust.
21689 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
21690 inner_reference_p. Use inner_reference_p to expand inner references.
21691 (store_expr): Adjust.
21692 * cfgexpand.c (expand_call_stmt): Adjust.
21693
21694 2014-01-08 Rong Xu <xur@google.com>
21695
21696 * gcov-io.c (gcov_var): Move from gcov-io.h.
21697 (gcov_position): Ditto.
21698 (gcov_is_error): Ditto.
21699 (gcov_rewrite): Ditto.
21700 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
21701 only part to libgcc/libgcov.h.
21702
21703 2014-01-08 Marek Polacek <polacek@redhat.com>
21704
21705 PR middle-end/59669
21706 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
21707
21708 2014-01-08 Marek Polacek <polacek@redhat.com>
21709
21710 PR sanitizer/59667
21711 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
21712
21713 2014-01-08 Jakub Jelinek <jakub@redhat.com>
21714
21715 PR rtl-optimization/59649
21716 * stor-layout.c (get_mode_bounds): For BImode return
21717 0 and STORE_FLAG_VALUE.
21718
21719 2014-01-08 Richard Biener <rguenther@suse.de>
21720
21721 PR middle-end/59630
21722 * gimple.h (is_gimple_builtin_call): Remove.
21723 (gimple_builtin_call_types_compatible_p): New.
21724 (gimple_call_builtin_p): New overload.
21725 * gimple.c (is_gimple_builtin_call): Remove.
21726 (validate_call): Rename to ...
21727 (gimple_builtin_call_types_compatible_p): ... this and export. Also
21728 check return types.
21729 (validate_type): New static function.
21730 (gimple_call_builtin_p): New overload and adjust.
21731 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
21732 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
21733 (gimple_fold_stmt_to_constant_1): Likewise.
21734 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
21735
21736 2014-01-08 Richard Biener <rguenther@suse.de>
21737
21738 PR middle-end/59471
21739 * gimplify.c (gimplify_expr): Gimplify register-register type
21740 VIEW_CONVERT_EXPRs to separate stmts.
21741
21742 2014-01-07 Jeff Law <law@redhat.com>
21743
21744 PR middle-end/53623
21745 * ree.c (combine_set_extension): Handle case where source
21746 and destination registers in an extension insn are different.
21747 (combine_reaching_defs): Allow source and destination registers
21748 in extension to be different under limited circumstances.
21749 (add_removable_extension): Remove restriction that the
21750 source and destination registers in the extension are the same.
21751 (find_and_remove_re): Emit a copy from the extension's
21752 destination to its source after the defining insn if
21753 the source and destination registers are different.
21754
21755 PR middle-end/59285
21756 * ifcvt.c (merge_if_block): If we are merging a block with more than
21757 one successor with a block with no successors, remove any BARRIER
21758 after the second block.
21759
21760 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
21761
21762 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
21763
21764 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
21765
21766 PR target/59652
21767 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
21768 for 14-bit register offsets when INT14_OK_STRICT is false.
21769
21770 2014-01-07 Roland Stigge <stigge@antcom.de>
21771 Michael Meissner <meissner@linux.vnet.ibm.com>
21772
21773 PR 57386/target
21774 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21775 Only check TFmode for SPE constants. Don't check TImode or TDmode.
21776
21777 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
21778
21779 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
21780 -mcpu.
21781
21782 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
21783
21784 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
21785 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
21786 rtx is const0_rtx or not.
21787
21788 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
21789
21790 PR target/58115
21791 * target-globals.c (save_target_globals): Remove this_fn_optab
21792 handling.
21793 * toplev.c: Include optabs.h.
21794 (target_reinit): Temporarily restore the global options if another
21795 set of options are in force.
21796
21797 2014-01-07 Jakub Jelinek <jakub@redhat.com>
21798
21799 PR rtl-optimization/58668
21800 * cfgcleanup.c (flow_find_cross_jump): Don't count
21801 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
21802 to determine what is counted.
21803 (flow_find_head_matching_sequence): Use active_insn_p to determine
21804 what is counted.
21805 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
21806 counting change.
21807 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
21808 determine what is counted.
21809
21810 PR tree-optimization/59643
21811 * tree-predcom.c (split_data_refs_to_components): If one dr is
21812 read and one write, determine_offset fails and the write isn't
21813 in the bad component, just put the read into the bad component.
21814
21815 2014-01-07 Mike Stump <mikestump@comcast.net>
21816 Jakub Jelinek <jakub@redhat.com>
21817
21818 PR pch/59436
21819 * tree-core.h (struct tree_optimization_option): Change optabs
21820 type from unsigned char * to void *.
21821 * optabs.c (init_tree_optimization_optabs): Adjust
21822 TREE_OPTIMIZATION_OPTABS initialization.
21823
21824 2014-01-06 Jakub Jelinek <jakub@redhat.com>
21825
21826 PR target/59644
21827 * config/i386/i386.h (struct machine_function): Add
21828 no_drap_save_restore field.
21829 * config/i386/i386.c (ix86_save_reg): Use
21830 !cfun->machine->no_drap_save_restore instead of
21831 crtl->stack_realign_needed.
21832 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
21833 this function clears frame_pointer_needed. Set
21834 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
21835 and DRAP reg is needed.
21836
21837 2014-01-06 Marek Polacek <polacek@redhat.com>
21838
21839 PR c/57773
21840 * doc/implement-c.texi: Mention that other integer types are
21841 permitted as bit-field types in strictly conforming mode.
21842
21843 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
21844
21845 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
21846 is newly allocated.
21847
21848 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
21849
21850 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
21851
21852 2014-01-06 Martin Jambor <mjambor@suse.cz>
21853
21854 PR ipa/59008
21855 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
21856 to int.
21857 * ipa-prop.c (ipa_print_node_params): Fix indentation.
21858
21859 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
21860
21861 PR debug/59350
21862 PR debug/59510
21863 * var-tracking.c (add_stores): Preserve the value of the source even if
21864 we don't record the store.
21865
21866 2014-01-06 Terry Guo <terry.guo@arm.com>
21867
21868 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
21869
21870 2014-01-05 Iain Sandoe <iain@codesourcery.com>
21871
21872 PR bootstrap/59541
21873 * config/darwin.c (darwin_function_section): Adjust return values to
21874 correspond to optimisation changes made in r206070.
21875
21876 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
21877
21878 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
21879 from prefetch_block tune setting.
21880 (nocona_cost): Correct size of prefetch block to 64.
21881
21882 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
21883
21884 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
21885 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
21886 used to save the static chain register in the computation of the offset
21887 from which the FP registers need to be restored.
21888
21889 2014-01-04 Jakub Jelinek <jakub@redhat.com>
21890
21891 PR tree-optimization/59519
21892 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
21893 ICE if get_current_def (current_new_name) is already non-NULL, as long
21894 as it is a phi result of some other phi in *new_exit_bb that has
21895 the same argument.
21896
21897 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
21898 or vmovdqu* for misaligned_operand.
21899 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
21900 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
21901 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
21902 aligned_mem for AVX512F masked aligned load and store builtins and for
21903 non-temporal moves.
21904
21905 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
21906
21907 PR tree-optimization/59651
21908 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21909 Address range for negative step should be added by TYPE_SIZE_UNIT.
21910
21911 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
21912
21913 * config/m68k/m68k.c (handle_move_double): Handle pushes with
21914 overlapping registers also for registers other than the stack pointer.
21915
21916 2014-01-03 Marek Polacek <polacek@redhat.com>
21917
21918 PR other/59661
21919 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
21920 __builtin_FILE.
21921
21922 2014-01-03 Jakub Jelinek <jakub@redhat.com>
21923
21924 PR target/59625
21925 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
21926 asm goto as jump.
21927
21928 * config/i386/i386.md (MODE_SIZE): New mode attribute.
21929 (push splitter): Use <P:MODE_SIZE> instead of
21930 GET_MODE_SIZE (<P:MODE>mode).
21931 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
21932 (mov -1, reg peephole2): Likewise.
21933 * config/i386/sse.md (*mov<mode>_internal,
21934 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
21935 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
21936 *<code><mode>3, *andnot<mode>3<mask_name>,
21937 <mask_codefor><code><mode>3<mask_name>): Likewise.
21938 * config/i386/subst.md (mask_mode512bit_condition,
21939 sd_mask_mode512bit_condition): Likewise.
21940
21941 2014-01-02 Xinliang David Li <davidxl@google.com>
21942
21943 PR tree-optimization/59303
21944 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
21945 (dump_predicates): Better output format.
21946 (pred_equal_p): New function.
21947 (is_neq_relop_p): Ditto.
21948 (is_neq_zero_form_p): Ditto.
21949 (pred_expr_equal_p): Ditto.
21950 (pred_neg_p): Ditto.
21951 (simplify_pred): Ditto.
21952 (simplify_preds_2): Ditto.
21953 (simplify_preds_3): Ditto.
21954 (simplify_preds_4): Ditto.
21955 (simplify_preds): Ditto.
21956 (push_pred): Ditto.
21957 (push_to_worklist): Ditto.
21958 (get_pred_info_from_cmp): Ditto.
21959 (is_degenerated_phi): Ditto.
21960 (normalize_one_pred_1): Ditto.
21961 (normalize_one_pred): Ditto.
21962 (normalize_one_pred_chain): Ditto.
21963 (normalize_preds): Ditto.
21964 (normalize_cond_1): Remove function.
21965 (normalize_cond): Ditto.
21966 (is_gcond_subset_of): Ditto.
21967 (is_subset_of_any): Ditto.
21968 (is_or_set_subset_of): Ditto.
21969 (is_and_set_subset_of): Ditto.
21970 (is_norm_cond_subset_of): Ditto.
21971 (pred_chain_length_cmp): Ditto.
21972 (convert_control_dep_chain_into_preds): Type change.
21973 (find_predicates): Ditto.
21974 (find_def_preds): Ditto.
21975 (destroy_predicates_vecs): Ditto.
21976 (find_matching_predicates_in_rest_chains): Ditto.
21977 (use_pred_not_overlap_with_undef_path_pred): Ditto.
21978 (is_pred_expr_subset): Ditto.
21979 (is_pred_chain_subset_of): Ditto.
21980 (is_included_in): Ditto.
21981 (is_superset_of): Ditto.
21982
21983 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21984
21985 Update copyright years.
21986
21987 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21988
21989 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
21990 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
21991 config/arc/arc.md, config/arc/arc.opt,
21992 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
21993 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
21994 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
21995 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
21996 config/linux-protos.h, config/linux.c, config/winnt-c.c,
21997 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
21998 vtable-verify.c, vtable-verify.h: Use the standard form for the
21999 copyright notice.
22000
22001 2014-01-02 Tobias Burnus <burnus@net-b.de>
22002
22003 * gcc.c (process_command): Update copyright notice dates.
22004 * gcov-dump.c: Ditto.
22005 * gcov.c: Ditto.
22006 * doc/cpp.texi: Bump @copying's copyright year.
22007 * doc/cppinternals.texi: Ditto.
22008 * doc/gcc.texi: Ditto.
22009 * doc/gccint.texi: Ditto.
22010 * doc/gcov.texi: Ditto.
22011 * doc/install.texi: Ditto.
22012 * doc/invoke.texi: Ditto.
22013
22014 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22015
22016 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22017
22018 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22019
22020 * config/i386/sse.md (*mov<mode>_internal): Guard
22021 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22022
22023 PR rtl-optimization/59647
22024 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22025 new_rtx into UNSIGNED_FLOAT rtxes.
22026 \f
22027 Copyright (C) 2014 Free Software Foundation, Inc.
22028
22029 Copying and distribution of this file, with or without modification,
22030 are permitted in any medium without royalty provided the copyright
22031 notice and this notice are preserved.